/* # 확인요망 - 2026-11-06 : 스타또 minigame 화면 스타일 (starto.css 다음에 읽힘) */

/* ===================================================================================
   # 확인요망 - 2026-11-06 : 미니게임 공통 부품 — powerball 쪽 화면도 같이 쓴다. 클래스 이름 바꾸지 말 것
   업체 탭(MinigameVendors.vue, 피그마 3:6614) .st_mg_vendors
     줄 높이 70, 칸은 같은 폭. 로고 28(위 7), 이름 이사만루 13(가운데 y51.5) — 선택 Bold #e7daff / 나머지 Medium #d4cee7·로고 68%
     선택 표시 22×2 rgba(179,141,255,.92)(y66), 아래 구분선 1px rgba(137,109,211,.42)(y69)
   게임 탭(MinigameMenu.vue, 피그마 3:6648 등) .st_mg_games
     줄 높이 51, 칸은 같은 폭. 업체 로고 30 + 게임 그림 + 이름 17 — 선택 Bold #e9defa / 나머지 Medium #c5bdda
     로고·그림·이름 사이 9(로투스·크라운) / 5(그 밖 "공통 정렬 5px"), 선택 밑줄 100×2 rgba(169,137,242,.9)(y48), 아래 구분선 1px rgba(81,67,109,.45)(y50)
   =================================================================================== */
.st_mg_vendors, .st_mg_games { position: relative; width: 100%; container-type: inline-size; }
.st_mg_vendors ul, .st_mg_games ul { display: flex; width: 100%; margin: 0; padding: 0; list-style: none; }
.st_mg_vendors li, .st_mg_games li { flex: 1 1 0; min-width: 0; }
.st_mg_vendors::after, .st_mg_games::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none; }
.st_mg_vendors::after { background: rgba(137, 109, 211, 0.42); }
.st_mg_games::after { background: rgba(81, 67, 109, 0.45); }

.st_mg_vendor a { position: relative; display: block; height: 70px; text-decoration: none; }
.st_mg_vlogo { position: absolute; left: 50%; top: 7px; width: 28px; height: 28px; margin-left: -14px; object-fit: contain; opacity: 0.68; transition: opacity 0.2s ease, filter 0.2s ease; }
.st_mg_vname { position: absolute; left: 0; right: 0; top: 51.5px; transform: translateY(-50%); text-align: center; white-space: nowrap;
    font-family: 'EsaManru'; font-weight: 500; font-size: 13px; line-height: normal; color: #d4cee7; transition: color 0.2s ease, text-shadow 0.2s ease; }
.st_mg_vendor.active .st_mg_vlogo { opacity: 1; }
.st_mg_vendor.active .st_mg_vname { font-weight: 700; color: #e7daff; }
.st_mg_vendor.active a::after { content: ''; position: absolute; left: 50%; top: 66px; width: 22px; height: 2px; margin-left: -11px; background: rgba(179, 141, 255, 0.92); }
.st_mg_vendor a:hover .st_mg_vlogo { opacity: 1; filter: drop-shadow(0 0 6px rgba(154, 114, 255, 0.55)); }
.st_mg_vendor a:hover .st_mg_vname { color: #c7bbff; text-shadow: 0 0 8px rgba(154, 114, 255, 0.6); }

.st_mg_game a { position: relative; display: flex; align-items: center; justify-content: center; height: 51px; text-decoration: none; overflow: hidden; }
.st_mg_gin { display: flex; align-items: center; gap: 5px; min-width: 0; }
.st_mg_gv_lotus, .st_mg_gv_crown { gap: 9px; }
.st_mg_glogo { flex: none; width: 30px; height: 30px; object-fit: contain; }
.st_mg_gpic { flex: none; display: flex; align-items: center; justify-content: center; }
.st_mg_gpic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.st_mg_gpic_oddeven, .st_mg_gpic_baccarat { width: 38px; height: 32px; }
.st_mg_gpic_sutda { width: 29px; height: 26px; }
.st_mg_gpic_penalty, .st_mg_gpic_hammer, .st_mg_gpic_pig, .st_mg_gpic_split { width: 38px; height: 38px; }
.st_mg_gpic_lionmuzi { width: 38px; height: 38px; align-items: flex-start; padding-top: 2px; }
.st_mg_gpic_lionmuzi img { width: 19px; height: 34px; }
/* 2026-11-20 사용자 "텍스트랑 이모지가 틀어진 것" → 그림 안 여백이 달라 실제 그림이 글자 가운데서 벗어난 것(패널티킥 +1.25px 아래, 망치 -1.38px 위) 만큼 되돌림 — 휴대폰 scale(.75) 에도 같은 비율 */
.st_mg_gpic_penalty img { transform: translateY(-1.25px); }
.st_mg_gpic_hammer img { transform: translateY(1.4px); }
.st_mg_gpic_powerball, .st_mg_gpic_ladder { width: 29px; height: 29px; }
.st_mg_gname { white-space: nowrap; font-family: 'EsaManru'; font-weight: 500; font-size: 17px; line-height: normal; color: #c5bdda; transition: color 0.2s ease, text-shadow 0.2s ease; }
.st_mg_game.active .st_mg_gname { font-weight: 700; color: #e9defa; }
.st_mg_game.active a::after { content: ''; position: absolute; left: 50%; top: 48px; width: 100px; height: 2px; margin-left: -50px; background: rgba(169, 137, 242, 0.9); }
.st_mg_game a:hover .st_mg_gname { color: #c7bbff; text-shadow: 0 0 8px rgba(154, 114, 255, 0.6); }
.st_mg_game a:hover .st_mg_gpic { filter: drop-shadow(0 0 6px rgba(154, 114, 255, 0.55)); }

/* 좁은 칸: 이름표 한 줄 고정 — 업체 이름 줄이고, 게임 탭은 로고·그림을 줄이고 더 좁으면 업체 로고를 뺀다 */
@container (max-width: 560px) {
    .st_mg_vname { font-size: 11px; }
    .st_mg_gin, .st_mg_gv_lotus, .st_mg_gv_crown { gap: 3px; }
    .st_mg_glogo { width: 22px; height: 22px; }
    .st_mg_gpic { transform: scale(0.75); margin: 0 -4px; }
    .st_mg_gname { font-size: 13px; }
}
@container (max-width: 400px) {
    .st_mg_vname { font-size: 10px; }
    .st_mg_glogo { display: none; }
    .st_mg_gname { font-size: 12px; }
}

/* ===================================================================================
   # 확인요망 - 2026-11-06 : 최근 베팅내역(BetDetailMinigames.vue, 피그마 3:6707) .st_mg_bets — powerball 쪽도 같이 씀
     바탕 rgba(21,17,40,.42) 테두리 1px rgba(67,54,95,.38). 제목줄 38: 위로 갈수록 어두운 rgba(53,41,52,.78)→rgba(33,24,32,.78),
     위 1px rgba(159,131,233,.38) / 아래 1px rgba(9,8,25,.72). 영수증 아이콘 17(x11) + "최근 베팅내역" 이사만루 Bold 16 #f3edff(x34),
     오른쪽 휴지통 14 + "전체삭제" Medium 12 #b99af5.
     머리줄 32 rgba(36,27,60,.48) Medium 12 #e1d9f4 / 내역 줄 35 + 경계 1px rgba(44,36,71,.5), 홀수 rgba(27,23,48,.35) 짝수 rgba(24,21,45,.28),
     Light 12 #f3efff(게임종류만 Medium). 상태 색 적중 #7acde4 / 미적중 #e98f9a / 적특 #c6b0ff / 진행중 #a98cff, 삭제 × #b8acd4
   =================================================================================== */
.st_mg_bets { width: 100%; background: rgba(21, 17, 40, 0.42); border: 1px solid rgba(67, 54, 95, 0.38); container-type: inline-size; }
.st_mg_bets_head { position: relative; display: flex; align-items: center; height: 38px; margin: -1px -1px 0; padding: 0 12px 0 12px;
    background: linear-gradient(0deg, rgba(29, 29, 65, 0.78) 0%, rgba(18, 18, 39, 0.78) 100%);
    box-shadow: inset 0 1px 0 rgba(159, 131, 233, 0.38), inset 0 -1px 0 rgba(9, 8, 25, 0.72); }
.st_mg_bets_ic { width: 17px; height: 17px; margin-right: 6px; }
.st_mg_bets_head b { font-family: 'EsaManru'; font-weight: 700; font-size: 16px; line-height: normal; color: #f3edff; white-space: nowrap; }
.st_mg_bets_del { margin-left: auto; display: flex; align-items: center; gap: 6px; font-family: 'EsaManru'; font-weight: 500; font-size: 12px; line-height: normal; color: #b99af5; white-space: nowrap; transition: color 0.2s ease, text-shadow 0.2s ease; }
.st_mg_bets_del img { width: 14px; height: 14px; }
.st_mg_bets_del:hover { color: #c7bbff; text-shadow: 0 0 8px rgba(154, 114, 255, 0.6); }

.st_mg_bets_th, .st_mg_bets_tr { display: grid; grid-template-columns: 175fr 100fr 180fr 160fr 145fr 120fr 145fr 170fr 105fr; }
.st_mg_bets_th > span, .st_mg_bets_tr > span { display: flex; align-items: center; justify-content: center; min-width: 0; text-align: center; white-space: nowrap;
    font-family: 'EsaManru'; font-size: 12px; line-height: normal; }
.st_mg_bets_th { height: 32px; background: rgba(36, 27, 60, 0.48); }
.st_mg_bets_th > span { font-weight: 500; color: #e1d9f4; }
.st_mg_bets_tr { height: 36px; background: rgba(27, 23, 48, 0.35); box-shadow: inset 0 -1px 0 rgba(44, 36, 71, 0.5); }
.st_mg_bets_tr:nth-child(even) { background: rgba(24, 21, 45, 0.28); }
.st_mg_bets_tr > span { font-weight: 300; color: #f3efff; }
.st_mg_bets_tr:hover { background: rgba(83, 62, 150, 0.22); }
.st_mg_bets_game { gap: 8px; }
.st_mg_bets_game img { flex: none; width: 20px; height: 20px; object-fit: contain; }
.st_mg_bets_game em, .st_mg_bets_pick em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.st_mg_bets_game em { font-weight: 500; }
.st_mg_bets_pick { gap: 6px; }
.st_mg_bets_pick img { flex: none; width: 20px; height: 20px; }
.st_mg_bets_res { gap: 6px; }
.st_mg_bets_res img { flex: none; width: 14px; height: 14px; }
.st_mg_bets_tr > .st_mg_win { color: #7acde4; }
.st_mg_bets_tr > .st_mg_lose { color: #e98f9a; }
.st_mg_bets_tr > .st_mg_void { color: #c6b0ff; }
.st_mg_bets_tr > .st_mg_ing { color: #a98cff; }
.st_mg_bets_x { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: #b8acd4; font-size: 12px; border-radius: 50%; transition: color 0.2s ease, background 0.2s ease; }
.st_mg_bets_x:hover { color: #fff; background: rgba(154, 114, 255, 0.35); }
/* 내역 속 작은 플레잉카드 24×26 (카드 18×24 #fbfaf7, 테두리 #c4c9cc, 둥글기 2) */
.st_mg_mcard { position: relative; flex: none; display: block; width: 24px; height: 26px; font-style: normal; }
.st_mg_mcard::before { content: ''; position: absolute; left: 3px; top: 1px; width: 18px; height: 24px; box-sizing: border-box; background: #fbfaf7; border: 1px solid #c4c9cc; border-radius: 2px; }
.st_mg_mcard b, .st_mg_mcard u { position: absolute; font-family: 'Inter', Arial, sans-serif; font-weight: 700; line-height: normal; text-decoration: none; color: #17191d; }
.st_mg_mcard b { left: 5px; top: 2px; font-size: 9px; }
.st_mg_mcard u { left: 12px; top: 17px; transform: translate(-50%, -50%); font-size: 15px; }
.st_mg_mcard.st_mg_red b, .st_mg_mcard.st_mg_red u { color: #c42838; }
/* 좁은 칸(휴대폰): 한 내역을 3칸씩 3줄로 접어 넣는다(예전 사이트 방식). 글자는 한 줄 고정 */
@container (max-width: 700px) {
    .st_mg_bets_th, .st_mg_bets_tr { grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; }
    .st_mg_bets_th > span { height: 26px; }
    .st_mg_bets_tr > span { height: 28px; }
    .st_mg_bets_tr { box-shadow: inset 0 -1px 0 rgba(84, 66, 136, 0.7); }
    .st_mg_bets_head b { font-size: 14px; }
}

/* ===================================================================================
   # 확인요망 - 2026-11-06 : 카드형 미니게임 화면(로투스·크라운·알파게임·게임스타·런닝볼) .st_mg — StMgZone.vue
   피그마 3:6543 / 3:7356 / 3:8199 / 3:9043 / 3:27462 / 3:28269 / 3:29078 (1920 기준 가운데 1300)
   위에서부터 업체 탭 70 · 게임 탭 51 · (칸 사이) · 영상 725×575 + 배당판 565×575 · (칸 사이) · 최근 베팅내역.
   칸 사이 간격은 피그마 10 대신 사이트 규칙 --st-c.
   배당판 안쪽 값은 모두 565 폭 기준 단위(--u = 판 폭/565)로 적어 판이 줄면 같이 줄어든다(PC 모양 그대로 접어 넣기).
   판 폭이 900 아래(1024 이하 화면)로 내려가면 영상 위·배당판 아래로 쌓고, 배당판은 휴대폰 시안(168:11581, 375 폭) 값으로 바꾼다.
   =================================================================================== */
.st_mg .con_box10 { float: none; width: 100%; margin-top: var(--st-c); padding: 0; background: none; border: 0; }
.st_mg .st_mg_games + .con_box10 { margin-top: var(--st-c); }
/* 판 폭으로 모양을 바꾸려고 바깥 상자(st_mg_zonebox)를 기준 상자로 둔다 */
.st_mg_zonebox { width: 100%; container: stmgzone / inline-size; }
.st_mg_zone { display: grid; grid-template-columns: minmax(0, 725fr) minmax(0, 565fr); gap: var(--st-c); width: 100%; }
.st_mg_video { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden;
    background: #070816; border: 1px solid #4d3f68; border-radius: 5px; }
.st_mg_video .broadcast { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; }
.st_mg_panel { position: relative; min-width: 0; aspect-ratio: 565 / 575; overflow: hidden; container: stmgpanel / inline-size;
    background: rgba(15, 16, 34, 0.96); border: 1px solid rgba(78, 64, 104, 0.72); border-radius: 8px; }
.st_mg_panel > *, .st_mg_panel .st_mg_pick { --u: calc(100cqw / 565); }

/* 뒤 반투명 업체 마크 (테두리 1 을 뺀 안쪽 좌표) */
.st_mg_mark { position: absolute; z-index: 0; pointer-events: none; display: block; }
.st_mg_mk_lotus .st_mg_mark { left: calc(133 * var(--u)); top: calc(262 * var(--u)); width: calc(315 * var(--u)); height: calc(315 * var(--u)); }
.st_mg_mk_crown .st_mg_mark { left: calc(130.5 * var(--u)); top: calc(338 * var(--u)); width: calc(300 * var(--u)); height: calc(195 * var(--u)); opacity: 0.2; transform: scaleY(-1); }
.st_mg_mk_alpha .st_mg_mark { left: calc(152.25 * var(--u)); top: calc(297.25 * var(--u)); width: calc(256.5 * var(--u)); height: calc(253.65 * var(--u)); opacity: 0.18; transform: scaleY(-1); }
.st_mg_mk_running .st_mg_mark { left: calc(131.5 * var(--u)); top: calc(262 * var(--u)); width: calc(300 * var(--u)); height: calc(300 * var(--u)); opacity: 0.2; }
.st_mg_mark_g { left: calc(146 * var(--u)); top: calc(273 * var(--u)); font-family: 'EsaManru'; font-weight: 700; font-size: calc(240 * var(--u)); line-height: normal; color: rgba(31, 69, 69, 0.22); }

/* 글자 자리: 이사만루가 피그마보다 1.5 왼쪽·1~3 위로 그려져서 실제 글자 픽셀을 재서 x+1.5, y+1.2~3 보정한 값이 들어 있다
   머리: 제목 Bold 20 #f6f1ff(가운데 y33.5) · 회차 Medium 12 #c2b9d6(18~119 가운데, y60.5) · "베팅 마감" Medium 12 #dccff2(오른끝 465, y43)
   · 시계 68(475, 8) 안 숫자 Bold 12 #e8dcff · 아래 선 525×1 rgba(78,66,106,.52)(y83) */
.st_mg_title, .st_mg_round, .st_mg_tlabel { position: absolute; z-index: 1; margin: 0; white-space: nowrap; font-family: 'EsaManru'; line-height: normal; transform: translateY(-50%); }
.st_mg_title { left: calc(19.5 * var(--u)); top: calc(33.5 * var(--u)); font-weight: 700; font-size: calc(20 * var(--u)); color: #f6f1ff; }
.st_mg_round { left: calc(19.5 * var(--u)); width: calc(101 * var(--u)); top: calc(61.8 * var(--u)); text-align: center; font-weight: 500; font-size: calc(12 * var(--u)); color: #c2b9d6; }
.st_mg_timer { position: absolute; z-index: 1; left: 0; right: 0; top: 0; }
.st_mg_tlabel { left: calc(388 * var(--u)); width: calc(80 * var(--u)); top: calc(44.2 * var(--u)); text-align: right; font-weight: 500; font-size: calc(12 * var(--u)); color: #dccff2; }
.st_mg_dial { position: absolute; left: calc(475 * var(--u)); top: calc(8 * var(--u)); width: calc(68 * var(--u)); height: calc(68 * var(--u)); }
.st_mg_dial img { display: block; width: 100%; height: 100%; }
.st_mg_dial b { position: absolute; left: calc(36 * var(--u)); top: calc(40.2 * var(--u)); transform: translate(-50%, -50%); white-space: nowrap;
    font-family: 'EsaManru'; font-weight: 700; font-size: calc(12 * var(--u)); line-height: normal; color: #e8dcff; }
.st_mg_line { position: absolute; z-index: 1; left: calc(18 * var(--u)); top: calc(83 * var(--u)); width: calc(525 * var(--u)); height: 1px; background: rgba(78, 66, 106, 0.52); }

/* 몸: "○○ 선택" Medium 15 #dad4e9(가운데 y109.5) → 베팅 칸 y127 부터. 칸 2개 252×139 사이 21 / 3개 169×143 사이 9 */
.st_mg_body { position: absolute; z-index: 1; left: calc(18 * var(--u)); top: calc(84 * var(--u)); width: calc(525 * var(--u)); }
.st_mg_label { margin: calc(13.5 * var(--u)) 0 0; padding-left: calc(1.5 * var(--u)); height: calc(27 * var(--u)); display: flex; align-items: center; white-space: nowrap;
    font-family: 'EsaManru'; font-weight: 500; font-size: calc(15 * var(--u)); line-height: normal; color: #dad4e9; }
.st_mg_picks { display: grid; margin-top: calc(2.5 * var(--u)); }
.st_mg_n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(21 * var(--u)); }
.st_mg_n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(9 * var(--u)); }
.st_mg_n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(9 * var(--u)); }

/* 베팅 칸: 홀(파랑) 바탕 #121a32 테두리 #4b94aa 배당 #a5dbe8 / 짝(빨강) #21152f · #af5f70 · #f0bdc3 / 타이(초록) #142a24 · #4f9a78 · #a8dcc2, 둥글기 10
   이름 Bold 25 #faf7ff · "배당" Medium 12 #cbc4e2 · 배당 숫자 Bold 22 */
.st_mg_pick { position: relative; overflow: hidden; cursor: pointer; border: 1px solid #4b94aa; border-radius: calc(10 * var(--u)); background: #121a32;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.st_mg_pick.st_mg_red { background: #21152f; border-color: #af5f70; }
.st_mg_pick.st_mg_green { background: #142a24; border-color: #4f9a78; }
.st_mg_nm, .st_mg_odl, .st_mg_od { position: absolute; margin: 0; white-space: nowrap; font-style: normal; font-family: 'EsaManru'; line-height: normal; transform: translateY(-50%); }
.st_mg_nm { font-weight: 700; color: #faf7ff; }
.st_mg_odl { font-weight: 500; color: #cbc4e2; }
.st_mg_od { font-weight: 700; color: #a5dbe8; }
.st_mg_red .st_mg_od { color: #f0bdc3; }
.st_mg_green .st_mg_od { color: #a8dcc2; }
/* 마우스 올림·선택: 메인 카드처럼 연보라 테두리 + 보라 빛 */
.st_mg_pick:hover { border-color: rgba(199, 187, 255, 0.9); box-shadow: 0 0 14px rgba(154, 114, 255, 0.5); }
.st_mg_pick.on { border-color: #c7bbff; box-shadow: 0 0 0 1px #c7bbff inset, 0 0 18px rgba(154, 114, 255, 0.7); background-color: #2a1f52; }

.st_mg_n2 .st_mg_pick { height: calc(139 * var(--u)); }
.st_mg_n2 .st_mg_nm { left: calc(108.5 * var(--u)); top: calc(42.2 * var(--u)); font-size: calc(25 * var(--u)); }
.st_mg_n2 .st_mg_odl { left: calc(108.5 * var(--u)); top: calc(113 * var(--u)); font-size: calc(12 * var(--u)); }
.st_mg_n2 .st_mg_od { right: calc(17.5 * var(--u)); top: calc(113 * var(--u)); font-size: calc(22 * var(--u)); }
.st_mg_n3 .st_mg_pick { height: calc(143 * var(--u)); }
.st_mg_n3 .st_mg_nm { left: calc(1.5 * var(--u)); right: calc(-1.5 * var(--u)); text-align: center; top: calc(72.5 * var(--u)); font-size: calc(25 * var(--u)); }
.st_mg_n3 .st_mg_odl { left: calc(25 * var(--u)); top: calc(116.5 * var(--u)); font-size: calc(12 * var(--u)); transform: translate(-50%, -50%); }
.st_mg_n3 .st_mg_od { right: calc(15.5 * var(--u)); top: calc(113 * var(--u)); font-size: calc(22 * var(--u)); }
/* 런닝볼4 (시안 없음 — 3칸 모양을 4칸으로) */
.st_mg_n4 .st_mg_pick { height: calc(126 * var(--u)); }
.st_mg_n4 .st_mg_nm { left: 0; right: 0; text-align: center; top: calc(72 * var(--u)); font-size: calc(20 * var(--u)); }
.st_mg_n4 .st_mg_odl { left: calc(20 * var(--u)); top: calc(104 * var(--u)); font-size: calc(11 * var(--u)); transform: translate(-50%, -50%); }
.st_mg_n4 .st_mg_od { right: calc(12 * var(--u)); top: calc(103 * var(--u)); font-size: calc(18 * var(--u)); }
.st_mg_group + .st_mg_group { margin-top: calc(6 * var(--u)); }

/* 베팅 그림: 디자인 상자 76×82(칸 안 15,12) — 안쪽 값은 --a 단위(판에서는 --u 와 같고, 쌓인 모양에서는 줄인다) */
.st_mg_pick { --a: var(--u); }
.st_mg_art { position: absolute; z-index: 0; left: calc(17 * var(--u)); top: calc(14.5 * var(--u)); width: calc(76 * var(--a)); height: calc(82 * var(--a)); }
.st_mg_art.st_mg_art_up { top: calc(0.5 * var(--u)); }
.st_mg_art > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.st_mg_art.st_mg_art_flag { left: calc(21 * var(--u)); top: calc(18.5 * var(--u)); width: calc(68 * var(--a)); height: calc(68 * var(--a)); }
.st_mg_art.st_mg_art_ic { left: 50%; top: calc(11 * var(--u)); width: calc(36 * var(--a)); height: calc(36 * var(--a)); transform: translateX(-50%); }
.st_mg_art.st_mg_art_ball { left: 50%; top: calc(4 * var(--u)); width: calc(50 * var(--a)); height: calc(50 * var(--a)); transform: translateX(-50%); }
.st_mg_n2 .st_mg_art.st_mg_art_ball { left: calc(15 * var(--u)); top: calc(5 * var(--u)); width: calc(76 * var(--a)); height: calc(76 * var(--a)); transform: none; }
.st_mg_art_ball > img { width: 147.37%; height: 147.37%; max-width: none; margin: -23.68%; }
/* 흰 플레잉카드 42×58(17,12) #fbfaf7 테두리 #c4c9cc 둥글기 4 그림자 0 1 2 rgba(0,0,0,.22). 글자 Inter Bold */
.st_mg_card { position: absolute; inset: 0; display: block; font-style: normal; }
.st_mg_card::before { content: ''; position: absolute; left: calc(17 * var(--a)); top: calc(12 * var(--a)); width: calc(42 * var(--a)); height: calc(58 * var(--a)); box-sizing: border-box;
    background: #fbfaf7; border: 1px solid #c4c9cc; border-radius: calc(4 * var(--a)); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22); }
.st_mg_card b, .st_mg_card u { position: absolute; font-family: 'Inter', Arial, sans-serif; font-weight: 700; line-height: normal; text-decoration: none; color: #17191d; }
.st_mg_card b { left: calc(20 * var(--a)); top: calc(14 * var(--a)); font-size: calc(15 * var(--a)); }
.st_mg_card u { left: calc(38 * var(--a)); transform: translate(-50%, -50%); }
.st_mg_card.st_mg_red b, .st_mg_card.st_mg_red u { color: #c42838; }
/* 무늬 글자는 피그마 Inter Bold 24·18 — 사이트 글꼴로는 무늬가 작게 그려져 실제 무늬 높이(♦ 약 20, ♣ 약 17)에 맞춰 키움 */
.st_mg_card_a u { top: calc(46 * var(--a)); font-size: calc(38 * var(--a)); }
.st_mg_card_2 u { font-size: calc(30 * var(--a)); }
.st_mg_card_2 .st_mg_s1 { top: calc(33.5 * var(--a)); }
.st_mg_card_2 .st_mg_s2 { top: calc(57.5 * var(--a)); }

/* ---- 쌓인 모양(판 폭 900 아래 = 1024 이하 화면): 영상 위 · 배당판 아래. 배당판은 휴대폰 시안 168:11581(375 폭) 값 ----
   제목 Bold 17(14, 가운데 y26) · 회차 11(14~124 가운데, y50) · 시계 68(오른쪽 16, 위 1) · "베팅 마감" 12(시계 왼쪽 10, y34) · 선 y78 rgba(143,121,181,.52)
   "○○ 선택" 12(y95) · 칸 높이 94 사이 7(좌 9 우 11) · 칸 안: 그림 30(위 6) · 이름 Bold 14(y48.5) · "배당" 9(왼쪽 17, y74) · 배당 Bold 16(오른쪽 21, y73.5) · 아래 44 */
@container stmgzone (max-width: 899px) {
    .st_mg_zone { grid-template-columns: minmax(0, 1fr); }
    .st_mg_video .broadcast { position: relative; inset: auto; display: block; }
    .st_mg_panel { aspect-ratio: auto; padding: 79px 11px 44px 9px; background: rgba(21, 21, 27, 0.96); border-color: rgba(57, 38, 83, 0.72); }
    .st_mg_panel > *, .st_mg_panel .st_mg_pick { --u: 1px; }
    .st_mg_title { left: 14px; top: 26px; font-size: 17px; color: #f4f0ff; }
    .st_mg_round { left: 14px; width: 110px; top: 50px; font-size: 11px; color: #f4f0ff; }
    .st_mg_dial { left: auto; right: 16px; top: 1px; }
    .st_mg_tlabel { left: auto; right: 94px; width: auto; top: 34px; color: #f4f0ff; }
    .st_mg_line { left: 14px; right: 16px; width: auto; top: 78px; background: rgba(143, 121, 181, 0.52); }
    .st_mg_body { position: relative; left: auto; top: auto; width: auto; }
    .st_mg_label { margin: 4px 0 0 5px; height: 24px; font-size: 12px; color: #f4f0ff; }
    .st_mg_picks, .st_mg_n2, .st_mg_n3, .st_mg_n4 { margin-top: 3px; gap: 7px; }
    .st_mg_group + .st_mg_group { margin-top: 2px; }
    .st_mg_n2 .st_mg_pick, .st_mg_n3 .st_mg_pick, .st_mg_n4 .st_mg_pick { height: 94px; }
    .st_mg_n2 .st_mg_nm, .st_mg_n3 .st_mg_nm, .st_mg_n4 .st_mg_nm { left: 0; right: 0; text-align: center; top: 48.5px; font-size: 14px; color: #f4f0ff; }
    .st_mg_n2 .st_mg_odl, .st_mg_n3 .st_mg_odl, .st_mg_n4 .st_mg_odl { left: 17px; top: 74px; font-size: 9px; transform: translateY(-50%); color: #f4f0ff; }
    .st_mg_n2 .st_mg_od, .st_mg_n3 .st_mg_od, .st_mg_n4 .st_mg_od { left: auto; right: 21px; top: 73.5px; font-size: 16px; }
    .st_mg_n4 .st_mg_odl { display: none; }
    .st_mg_n4 .st_mg_od { left: 0; right: 0; text-align: center; }
    .st_mg_pick .st_mg_art, .st_mg_n2 .st_mg_art.st_mg_art_ball { left: 50%; top: 6px; transform: translateX(-50%); }
    .st_mg_pick .st_mg_art.st_mg_art_up { top: 4px; }
    .st_mg_pick { --a: 0.366px; }
    .st_mg_pick.st_mg_pf { --a: 0.441px; }
    .st_mg_pick.st_mg_pi { --a: 0.833px; }
    .st_mg_pick.st_mg_pb { --a: 0.6px; }
    .st_mg_n2 .st_mg_pick.st_mg_pb { --a: 0.395px; }
    .st_mg_mark { left: 50% !important; top: 147px !important; margin-left: calc(-0.5 * var(--mw)); }
    .st_mg_mk_lotus .st_mg_mark { --mw: 315px; }
    .st_mg_mk_crown .st_mg_mark { --mw: 300px; }
    .st_mg_mk_alpha .st_mg_mark { --mw: 256.5px; }
    .st_mg_mk_running .st_mg_mark { --mw: 300px; }
    .st_mg_mark_g { --mw: 150px; top: 110px !important; }
}

/* # 확인요망 - 2026-11-06 : 사용자 지적 "이상한 갈색" — 이 파일의 어두운 자줏빛 갈색 2곳을 밝기·투명도는 그대로 두고 색만 사이트 남보라(색상 240°)로 바꿈 */

/* # 확인요망 - 2026-11-07 : 미니게임 화면 "최근 베팅내역" 표도 베팅내역 페이지와 같은 색 체계(적중 형광 하늘·미적중 형광 분홍빨강·적특 호박, 칸별 역할 색) */
.st_mg_bets { --st-bl-win: #3fd4ff; --st-bl-lose: #ff4f7b; --st-bl-void: #ffbe55; }
.st_mg_bets_th > span { color: #8a85a8; }
.st_mg_bets_tr > span:nth-child(1) { color: #e9c8ff; }
.st_mg_bets_tr > span:nth-child(2) { color: #9d96c6; }
.st_mg_bets_tr > span:nth-child(3) { color: #aab3ff; }
.st_mg_bets_tr > span:nth-child(4) { color: #c7bbff; }
.st_mg_bets_tr > span:nth-child(5), .st_mg_bets_tr > span:nth-child(7) { color: #ffffff; }
.st_mg_bets_tr > span:nth-child(6) { color: #ffc98f; }
.st_mg_bets_tr > .st_mg_win, .st_mg_bets_tr:has(.st_mg_win) > span:nth-child(7) { color: var(--st-bl-win); text-shadow: 0 0 10px rgba(63, 212, 255, 0.55); }
.st_mg_bets_tr > .st_mg_lose, .st_mg_bets_tr:has(.st_mg_lose) > span:nth-child(7) { color: var(--st-bl-lose); text-shadow: 0 0 10px rgba(255, 79, 123, 0.5); }
.st_mg_bets_tr > .st_mg_void, .st_mg_bets_tr:has(.st_mg_void) > span:nth-child(7) { color: var(--st-bl-void); }
.st_mg_bets_tr > .st_mg_ing { color: #e2e2ea; }
.st_mg_bets_tr > .st_mg_win, .st_mg_bets_tr > .st_mg_lose { text-shadow: none; }

/* # 확인요망 - 2026-11-07 : 전체 검수 — 홀(파랑) 칸 청록빛 테두리·배당 글자 → 남보라 쪽 파랑(미니게임 파워볼과 같은 값) */
.st_mg_pick { border-color: #5a7ccc; }
.st_mg_od { color: #a9c4ff; }

/* # 확인요망 - 2026-11-07 : 사용자 "모바일 미니게임 아래 칸 이름 표(게임종류·회차…삭제 3×3) 없어도 됨, 베팅내역만" — 좁은 칸(700 이하)에서 머리줄 숨김. PC 표는 그대로 */
@container (max-width: 700px) { .st_mg_bets_th { display: none; } }
/* 2026-11-07 휴대폰·태블릿: 선택·마우스 효과 빛이 칸 밖으로 번지던 것 → 안쪽 빛 */
@media (max-width: 1024px) { .st_mg_pick:hover { box-shadow: inset 0 0 14px rgba(154, 114, 255, 0.45); } .st_mg_pick.on { box-shadow: inset 0 0 0 1px #c7bbff, inset 0 0 18px rgba(154, 114, 255, 0.6); } }
/* 2026-11-07 2차 검수: 적특 금색 → 회보라(베팅내역과 같은 값) */
.st_mg_bets { --st-bl-void: #b7aee6; }
