/* # 확인요망 - 2026-11-06 : 스타또 미니게임(파워볼·사다리 계열) 화면 스타일
   대상: 동행 파워볼5·사다리5, 보글 파워볼2·사다리3, 보스코어 별다리 3·2·1, EOS 파워볼 5·3·1, PBG 파워볼5 (화면 맨 위 .st_pb)
   피그마 값(1920 기준): 영상 칸 725×575 바탕 #070816 테두리 #4d3f68 둥글기 5 / 배당판 565×575 바탕 rgba(15,16,34,.96) 테두리 rgba(78,64,104,.72) 둥글기 8
     머리: 제목 이사만루 Bold 20 #f6f1ff(가운데 y35.5) · 회차 Medium 12 #c2b9d6(가운데 y62.5, 101 칸 가운데)
           베팅 마감 시계 68(x477,y10) 안 시간 Bold 12 #e8dcff · "베팅 마감" Medium 12 #dccff2(오른끝 x467)
     구분선 y85 rgba(78,66,106,.52) / 안내 글 Medium 15 #dad4e9(가운데 y111.5) / 선택 칸 목록 y130 높이 425, 스크롤 줄 3 #3b3237
     묶음 제목 Bold 15 #ddd1f1(줄 높이 23, 위 17·아래 12) — 사다리 조합 제목만 Medium 15 #dad4e9(줄 높이 27, 위 17·아래 8)
     배당 칸 높이 79 둥글기 8 칸 사이 14: 아이콘 22(x10,y11) · 이름 Bold 16 #faf7ff(x37, 가운데 y19.5) · "배당" Medium 12 #cbc4e2(x9, y53) · 배당 Bold 18 오른쪽 12(y50.5)
       파랑 #121a32/#4b94aa/#a5dbe8 · 빨강 #21152f/#af5f70/#f0bdc3 · 초록 #142a24/#4f9a78/#a8dcc2 · 사다리 조합 #17132b/#73c8d2·#d48094/#cdb5ff
     마감 잠금: 바탕 rgba(9,5,9,.68), 자물쇠 104 가운데. 업체 로고 워터마크 285(아래 10, 가운데) — PBG 만 210(아래 52)
   시안과 다르게: 칸 사이 10 → 사이트 규칙 --st-c, 스크롤 손잡이·잠금 테두리 금색 → 강조색 연보라(#c7bbff 톤) */

.st_pb .con_box10 { margin-top: var(--st-c); }
.st_pb .con_box10:has(> .st_pb_zone) { container: stpbzone / inline-size; }

/* ── 영상 칸 + 배당판 ── */
.st_pb_zone { display: flex; gap: var(--st-c); align-items: stretch; }
.st_pb_video { flex: 1 1 0; min-width: 0; height: 575px; display: flex; align-items: center; justify-content: center; overflow: hidden;
    background: #070816; border: 1px solid #4d3f68; border-radius: 5px; }
.st_pb_video .broadcast { width: 100%; min-width: 0; }
.st_pb_panel { flex: 0 0 calc((100% - var(--st-c)) * 565 / 1290); min-width: 0; height: 575px; position: relative; overflow: hidden; isolation: isolate; container-type: inline-size;
    display: flex; flex-direction: column; padding: 0 10px 0 19px;
    background: rgba(15, 16, 34, 0.96); border: 1px solid rgba(78, 64, 104, 0.72); border-radius: 8px; font-family: 'EsaManru'; }
.st_pb_wm { position: absolute; z-index: -1; left: 50%; bottom: 10px; width: 285px; height: 285px; transform: translateX(-50%); pointer-events: none; user-select: none; }
.st_pb_wm.st_pb_wm_pbg { width: 210px; height: 210px; bottom: 52px; }

/* 머리(제목·회차·시계) — 피그마 글 상자 가운데 좌표에 맞춰 놓음 */
.st_pb_head { flex: none; position: relative; height: 84px; margin-right: 9px; border-bottom: 1px solid rgba(78, 66, 106, 0.52); }
.st_pb_head p { position: absolute; margin: 0; line-height: normal; white-space: nowrap; transform: translateY(-50%); }
.st_pb_title { left: 0; top: 34.5px; font-weight: 700; font-size: 20px; color: #f6f1ff; }
.st_pb_round { left: 0; top: 61.5px; width: 101px; text-align: center; font-weight: 500; font-size: 12px; color: #c2b9d6; }
.st_pb_timer { position: absolute; right: 0; top: 9px; width: 158px; height: 68px; }
.st_pb_tlabel { position: absolute; right: 78px; top: 35px; transform: translateY(-50%); font-weight: 500; font-size: 12px; line-height: normal; color: #dccff2; white-space: nowrap; }
.st_pb_dial { position: absolute; right: 0; top: 0; width: 68px; height: 68px; }
.st_pb_dial img { display: block; width: 68px; height: 68px; }
.st_pb_dial b { position: absolute; left: 0; right: 0; top: 36px; /* 2026-11-20 사용자 "시계 안 카운트 숫자도 틀어졌소" → 원(clock.svg 원 가운데 = 위에서 36/68) 가운데로, 예전 38 은 2px 아래 */ transform: translateY(-50%); text-align: center; font-weight: 700; font-size: 12px; line-height: normal; color: #e8dcff; white-space: nowrap; }

.st_pb_guide { flex: none; margin: 0 9px 0 0; height: 45px; padding-top: 28px; font-weight: 500; font-size: 15px; line-height: 0; color: #dad4e9; white-space: nowrap; }

/* 선택 칸 목록 — 넘치면 이 안에서만 스크롤 */
.st_pb_scroll { flex: 1 1 auto; min-height: 0; margin-bottom: 18px; padding-right: 6px; overflow-y: auto; overscroll-behavior: contain; }
/* 크롬은 scrollbar-color 를 주면 아래 ::-webkit-scrollbar 꾸밈을 무시해서, 그걸 모르는 브라우저(파이어폭스)에만 줌 */
@supports not selector(::-webkit-scrollbar) { .st_pb_scroll { scrollbar-width: thin; scrollbar-color: rgba(199, 187, 255, 0.85) #22224b; } }
.st_pb_scroll::-webkit-scrollbar { width: 3px; }
.st_pb_scroll::-webkit-scrollbar-track { background: #22224b; border-radius: 2px; margin: 2px 0 4px; }
.st_pb_scroll::-webkit-scrollbar-thumb { background: rgba(199, 187, 255, 0.85); border-radius: 2px; }
.st_pb_ladder .st_pb_scroll { padding-top: 2px; }
.st_pb_list { margin: 0; padding: 0 0 2px; list-style: none; }
.st_pb_group { list-style: none; }
.st_pb_group + .st_pb_group { margin-top: 17px; }
.st_pb_gtitle { position: relative; top: 1.5px; margin: 0 0 12px; height: 23px; font-weight: 700; font-size: 15px; line-height: 23px; color: #ddd1f1; white-space: nowrap; }
.st_pb_gtitle.m { margin-bottom: 8px; height: 27px; font-weight: 500; line-height: 27px; color: #dad4e9; }

.st_pb_grid { display: grid; gap: 14px; }
.st_pb_grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st_pb_grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st_pb_grid.bmsc .st_pb_btn:nth-child(n+5) { grid-column: span 2; }

/* 배당 칸 */
.st_pb_btn { position: relative; height: 79px; min-width: 0; overflow: hidden; container-type: inline-size; cursor: pointer;
    background: #121a32; border: 1px solid #4b94aa; border-radius: 8px; transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.st_pb_btn.r { background: #21152f; border-color: #af5f70; }
.st_pb_btn.g { background: #142a24; border-color: #4f9a78; }
.st_pb_btn.cl, .st_pb_btn.cr { background: #17132b; border-color: #73c8d2; }
.st_pb_btn.cr { border-color: #d48094; }
.st_pb_ico { position: absolute; left: 9px; top: 10px; display: block; }
.st_pb_ico.s22 { width: 22px; height: 22px; }
.st_pb_bms { width: 22px; height: 22px; }
.st_pb_bms img { position: absolute; left: -1.69px; top: -1.69px; width: 25.385px; height: 25.385px; }
.st_pb_bms img.st_pb_shine { left: 4.23px; top: 4.23px; width: 6.769px; height: 3.385px; }
.st_pb_bms i { position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    font-style: normal; font-family: 'Noto Sans KR', sans-serif; font-weight: 700; font-size: 10.154px; line-height: 1; color: #29333b; }
.st_pb_btn b, .st_pb_btn em, .st_pb_btn strong { position: absolute; line-height: normal; white-space: nowrap; transform: translateY(-50%); font-style: normal; }
.st_pb_lbl { left: 36.5px; top: 19.5px; font-weight: 700; font-size: 16px; color: #faf7ff; }
.st_pb_btn em { left: 8px; top: 53.5px; font-weight: 500; font-size: 12px; color: #cbc4e2; }
.st_pb_btn strong { right: 11px; top: 50px; font-weight: 700; font-size: 18px; color: #a5dbe8; }
.st_pb_btn.r strong { color: #f0bdc3; }
.st_pb_btn.g strong { color: #a8dcc2; }
.st_pb_btn.cl strong, .st_pb_btn.cr strong { color: #cdb5ff; }
.st_pb_btn.cl b, .st_pb_btn.cr b { color: #f8f4ff; }
.st_pb_btn.cl em, .st_pb_btn.cr em { color: #bfb6d5; }
/* 이사만루는 글자가 줄 상자 위로 붙어 그려져서 피그마 좌표보다 1~2.5px 아래로 보정함(픽셀 재서 맞춤) */
/* 이름이 긴 칸(일홀언/파홀 등)은 16 이면 칸을 넘어서 14 */
.st_pb_btn.long .st_pb_lbl { font-size: 14px; }
/* 칸이 좁아지면(1920 보다 작은 창) 이름 글자만 줄임 */
@container (max-width: 112px) { .st_pb_lbl { font-size: 14px; } .st_pb_btn.long .st_pb_lbl { font-size: 12px; } }
@container (max-width: 98px) { .st_pb_lbl { font-size: 13px; left: 34px; } .st_pb_btn.long .st_pb_lbl { font-size: 11px; } }

/* 마우스 올림: 메인 카드처럼 연보라 테두리 + 보라 빛 / 고른 칸: 보라 바탕 + 연보라 테두리 */
.st_pb_btn:hover { border-color: rgba(199, 187, 255, 0.9); box-shadow: 0 0 14px rgba(154, 114, 255, 0.5); }
.st_pb_btn.on { background: linear-gradient(180deg, rgba(122, 92, 230, 0.55) 0%, rgba(68, 44, 150, 0.55) 100%); border-color: #c7bbff;
    box-shadow: 0 0 14px rgba(154, 114, 255, 0.6), inset 0 0 10px rgba(199, 187, 255, 0.35); }
.st_pb_btn.on strong, .st_pb_btn.on em { color: #ffffff; }

/* 베팅 마감(end) — 배당판 전체 잠금 */
.st_pb_lock { position: absolute; z-index: 5; inset: -1px; display: flex; align-items: center; justify-content: center; cursor: not-allowed;
    background: rgba(9, 5, 9, 0.68); border: 1px solid rgba(199, 187, 255, 0.48); border-radius: 8px; }
.st_pb_lock img { display: block; width: 104px; height: 104px; }

/* ── 가운데 칸이 좁으면(창 1700 아래 등) 영상 위·배당판 아래로 쌓음. 배당판은 높이 자동(안 스크롤 없이 다 펼침) ── */
@container stpbzone (max-width: 1099px) {
    .st_pb_zone { flex-direction: column; gap: var(--st-g); }
    .st_pb_video { flex: none; height: auto; min-height: 0; }
    .st_pb_panel { flex: none; height: auto; padding-right: 19px; }
    .st_pb_head, .st_pb_guide { margin-right: 0; }
    .st_pb_scroll { overflow: visible; padding-right: 0; }
}
/* 휴대폰 폭 */
@container stpbzone (max-width: 559px) {
    .st_pb_panel { padding: 0 8px; }
    .st_pb_head { height: 66px; }
    .st_pb_title { left: 0; top: 24px; font-size: 17px; }
    .st_pb_round { left: 0; top: 48px; width: auto; text-align: left; }
    .st_pb_timer { top: 6px; }
    .st_pb_tlabel { right: 60px; top: 27px; }
    .st_pb_dial { width: 54px; height: 54px; }
    .st_pb_dial img { width: 54px; height: 54px; }
    .st_pb_dial b { top: 28.6px; font-size: 11px; } /* 54px 시계 원 가운데 = 54×36/68 */
    .st_pb_guide { height: 34px; padding-top: 18px; font-size: 14px; }
    .st_pb_gtitle { margin-bottom: 6px; font-size: 14px; }
    .st_pb_gtitle.m { margin-bottom: 4px; }
    .st_pb_group + .st_pb_group { margin-top: 10px; }
    .st_pb_scroll { margin-bottom: 8px; }
    .st_pb_grid { gap: 5px; }
    .st_pb_grid.w { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .st_pb_grid.bmsc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .st_pb_grid.bmsc .st_pb_btn:nth-child(n+5) { grid-column: auto; }
    .st_pb_btn { height: 58px; }
    .st_pb_ico { left: 6px; top: 6px; transform: scale(0.82); transform-origin: 0 0; }
    .st_pb_lbl, .st_pb_btn.long .st_pb_lbl { left: 29px; top: 15px; font-size: 13px; }
    .st_pb_btn em { left: 6px; top: 41px; font-size: 10px; }
    .st_pb_btn strong { right: 7px; top: 40px; font-size: 15px; }
    .st_pb_wm { width: 200px; height: 200px; }
    .st_pb_wm.st_pb_wm_pbg { width: 150px; height: 150px; bottom: 30px; }
    .st_pb_lock img { width: 80px; height: 80px; }
}

/* # 확인요망 - 2026-11-06 : 사용자 지적 "이상한 갈색" — 이 파일의 어두운 자줏빛 갈색 2곳을 밝기·투명도는 그대로 두고 색만 사이트 남보라(색상 240°)로 바꿈 */
/* # 확인요망 - 2026-11-06 : 베팅 마감 잠금 바탕 붉은기 검정 → 남보라 검정 */
.st_pb_lock { background-color: rgba(6, 7, 20, 0.68); }

/* # 확인요망 - 2026-11-07 : 전체 검수 — 파랑(홀) 칸의 청록빛(#4b94aa 테두리 · #a5dbe8 배당 · #73c8d2 사다리 조합 테두리)이 "예전 틀 색"으로 잡힘(스타토는 청록 금지) → 같은 밝기의 파랑(하늘 쪽 말고 남보라 쪽)으로 */
.st_pb_btn { border-color: #5a7ccc; }
.st_pb_btn strong { color: #a9c4ff; }
.st_pb_btn.cl, .st_pb_btn.cr { border-color: #7f9cf5; }
/* 2026-11-07 휴대폰·태블릿: 마우스 효과 빛이 칸 밖으로 번지던 것 → 안쪽 빛 */
@media (max-width: 1024px) { .st_pb_btn:hover { box-shadow: inset 0 0 14px rgba(154, 114, 255, 0.45); } }

/* # 확인요망 - 2026-11-09 : 사용자 지시 — 휴대폰에서 베팅 칸이 873px 로 길어 화면을 넘음 → 칸 높이를 제한하고 막대 없이 안에서 위아래로 밀어서 봄. 머리(회차·시간)는 고정, 아래쪽을 흐리게 해 더 있음을 표시 */
@container stpbzone (max-width: 559px) {
    .st_pb_panel { display: flex; flex-direction: column; max-height: clamp(360px, 62dvh, 500px); }
    .st_pb_head, .st_pb_guide { flex: none; }
    .st_pb_scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; padding-bottom: 20px; overscroll-behavior: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
        -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 20px), transparent); }
    .st_pb_scroll::-webkit-scrollbar { display: none; }
}
