/* 쇼부카지노 시안 - 모든 페이지 공통 부품(site.css 다음에 읽음). 하위 페이지 머리·표·양식·칩·카드·마이페이지 틀.
   페이지 전용 모양은 assets/css/p/<이름>.css 에 둔다. 금색은 재질(--gold-btn, .gilt)로 쓰고 평평한 노랑은 쓰지 않는다. */
:root {
  --rise: #ef5a46;
  --fall: #4d8ef0;
  --long: #2fbf7a;
  --short: #ef5a46;
  --ok: #5fd08f;
  --warn: #f0b04a;
  --radius: 12px;
}

/* ───────── 머리띠: 주 메뉴 하위 칸 · 손님/회원 · 내 메뉴 ───────── */
html:not(.authed) .member-only { display: none !important; }
html.authed .guest-only { display: none !important; }
body.sub main { padding-top: var(--hd-h); }

.gnb { gap: 0; margin-left: 4px; }
.gnb-i { position: relative; }
.gnb-i > a { display: inline-flex; align-items: center; padding: 10px 12px; white-space: nowrap; }
.gnb-i > a::after { left: 12px; right: 12px; }
/* 하위 메뉴 표시: 글자 폭을 차지하지 않는 작은 금빛 점(오른쪽 위 여백 안). 모든 글자 사이 간격이 같다 */
.gnb-i.has-sub > a::before { content: ""; position: absolute; top: 9px; right: 5px; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); opacity: .7; transition: opacity .3s, transform .3s var(--ease); }
.gnb-i.has-sub:hover > a::before, .gnb-i.has-sub:focus-within > a::before, .gnb-i.has-sub.open > a::before { opacity: 1; transform: scale(1.5); }
.gnb-i > a.on { opacity: 1; color: var(--gold-hi); }
.gnb-i > a.on::after { transform: scaleX(1); }
.gnb-sub { position: absolute; left: -6px; top: 100%; z-index: 5; padding-top: 12px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s; }
.gnb-i:hover .gnb-sub, .gnb-i:focus-within .gnb-sub, .gnb-i.open .gnb-sub { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--ease); }
.gnb-sub-in { min-width: 250px; padding: 8px; border-radius: 12px; background: rgba(22, 17, 11, .98); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px rgba(0, 0, 0, .62); }
.gnb .gnb-sub a { display: flex; flex-direction: column; gap: 4px; padding: 11px 13px; border-radius: 8px; opacity: 1; }
.gnb .gnb-sub a::after { display: none; }
.gnb-sub a b { font: 600 15px/1.2 var(--sans); color: var(--ivory); }
.gnb-sub a span { font: 400 12.5px/1.35 var(--sans); color: var(--ivory-3); }
.gnb .gnb-sub a:hover, .gnb .gnb-sub a:focus-visible { background: rgba(217, 177, 101, .1); }
.gnb-sub a:hover b { color: var(--gold-hi); }

.hd-guest, .hd-member { display: flex; align-items: center; gap: 8px; }
.hd-bal { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(11, 8, 6, .55); box-shadow: inset 0 0 0 1px var(--line-2); text-decoration: none; white-space: nowrap; }
.hd-bal:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.hd-bal-k { font-size: 12.5px; color: var(--ivory-3); }
.hd-bal b { font: 700 15px/1 var(--sans); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
/* 실연동에서 잔액을 읽으면(html.sb-money) 알약이 원화·테더 두 줄이 된다(폭은 한 줄 때와 거의 같아 좁은 휴대폰 머리띠에서도 넘치지 않는다). 시안 모드는 윗줄(원화)만 */
.hd-bal-v { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-width: 0; }
.hd-bal .hd-bal-u { display: none; font: 600 11.5px/1 var(--sans); color: var(--ivory-3); }
html.sb-money .hd-bal .hd-bal-u { display: block; }
html[data-mk="usdt_anonymous"] .hd-bal .hd-bal-u { order: -1; font: 700 15px/1 var(--sans); color: var(--gold-hi); } /* 테더 회원은 테더가 윗줄 */
html[data-mk="usdt_anonymous"] .hd-bal .hd-bal-w { font: 600 11.5px/1 var(--sans); color: var(--ivory-3); }
/* 가입머니 지갑(zxc 0396): 보유 알약 옆 따로 한 알약(회원 돈과 합치지 않음). 잔액이 있을 때만(html.sb-money.sb-mission) 보이고 누르면 미션 게임 화면 */
.hd-mis { display: none; align-items: center; gap: 7px; height: 40px; padding: 0 13px; border-radius: 999px; background: rgba(11, 8, 6, .55); box-shadow: inset 0 0 0 1px var(--gold); text-decoration: none; white-space: nowrap; }
html.sb-money.sb-mission .hd-mis { display: inline-flex; }
.hd-mis:hover { background: rgba(217, 177, 101, .14); }
.hd-mis-k { font-size: 12.5px; color: var(--ivory-3); }
.hd-mis b { font: 700 15px/1 var(--sans); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
html:not(.sb-mission) [data-mis-row] { display: none; }
.hd-bal .hd-bal-m { display: none; font: 700 11.5px/1 var(--sans); color: var(--gold-hi); }
.side-bal .side-mis { color: var(--gold-hi); text-decoration: none; font-variant-numeric: tabular-nums; }
.side-bal .side-mis:hover { text-decoration: underline; }
.hd-ico { position: relative; flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(11, 8, 6, .45); color: var(--ivory); cursor: pointer; text-decoration: none; }
.hd-ico:hover { border-color: var(--gold); color: var(--gold-hi); }
.hd-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hd-me img { width: 30px; height: 30px; }
.hd-dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--seal); font: 700 11px/18px var(--sans); font-style: normal; color: #fff; text-align: center; }
/* 휴대폰(≤760)은 머리띠의 알림 종이 없어 안 읽은 알림 수를 메뉴 단추 모서리에 단다([data-noti] 를 common.js 가 채운다) */
.menu-btn { position: relative; }
.menu-btn .hd-dot { display: none; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 10.5px; line-height: 17px; }
.umenu { position: relative; }
.umenu-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 5; width: 300px; padding: 14px; border-radius: 14px; background: rgba(22, 17, 11, .98); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px rgba(0, 0, 0, .62); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s; }
.umenu.open .umenu-pop { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--ease); }
.umenu-hd { display: flex; flex-direction: column; gap: 4px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); }
.umenu-hd b { font: 700 17px/1.3 var(--serif); color: var(--ivory); }
.umenu-hd span { font-size: 13px; color: var(--ivory-3); }
.umenu-hd em { font-style: normal; font-weight: 700; color: var(--gold-hi); }
html.sb-money .umenu-pt { display: none; } /* 실연동에서는 아래 보유 자산 구획에 포인트가 있다 */
/* 내 메뉴의 보유 자산(zxc layout/UserMenu.tsx 의 원화·테더·포인트) */
.umenu-bal { padding: 12px 6px 4px; border-bottom: 1px solid var(--line); }
.umenu-bal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 12.5px; color: var(--ivory-3); }
.umenu-bal-h a { color: var(--gold); text-decoration: none; }
.umenu-bal-h a:hover { color: var(--gold-hi); }
.umenu-bal dl { margin: 0; display: grid; gap: 6px; }
.umenu-bal dl div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 8px; background: rgba(11, 8, 6, .5); box-shadow: inset 0 0 0 1px var(--line); }
.umenu-bal dt { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; color: var(--ivory-2); white-space: nowrap; }
.umenu-bal dt i { flex: none; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(217, 177, 101, .14); font: 700 12px/1 var(--sans); font-style: normal; color: var(--gold-hi); }
.umenu-bal dt small { font-size: 11px; color: var(--ivory-3); }
.umenu-bal dd { margin: 0; flex: none; font: 700 14.5px/1.2 var(--sans); color: var(--gold-hi); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.umenu-conv { display: flex; align-items: center; justify-content: center; min-height: 40px; margin: 6px 0 8px; border-radius: 8px; font-size: 13.5px; color: var(--ivory-2); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.umenu-conv:hover, .umenu-conv:focus-visible { color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.umenu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px 0; }
.umenu-grid a { padding: 9px 8px; border-radius: 8px; font-size: 14px; color: var(--ivory-2); text-decoration: none; }
.umenu-grid a:hover, .umenu-grid a:focus-visible { background: rgba(217, 177, 101, .1); color: var(--gold-hi); }
.umenu-out { width: 100%; height: 40px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ivory-3); font-size: 13.5px; cursor: pointer; }
.umenu-out:hover { color: var(--ivory); }

/* 전체 메뉴(서랍): 무리별 두 줄 */
.drawer-act { margin: 4px 0 0; }
.drawer-nav { gap: 20px; margin-top: 20px; }
.dr-g h2 { margin: 0 0 4px; font: 700 12.5px/1 var(--sans); letter-spacing: .04em; color: var(--gold); }
.dr-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.drawer-nav .dr-links a { padding: 12px 2px; border-bottom: 1px solid rgba(217, 177, 101, .08); font: 600 15.5px/1.3 var(--sans); color: var(--ivory); text-decoration: none; }
.drawer-nav .dr-links a:hover { color: var(--gold-hi); }
.dr-me { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.dr-me > img { width: 40px; height: 40px; }
/* 옛 서랍 회원 칸 마크업(아직 다시 조립하지 않은 쪽) 호환: 이름과 보유 머니를 두 줄로. 모든 쪽을 다시 조립한 뒤에는 지워도 된다 */
.dr-me > div:not(.dr-me-id):not(.dr-me-st) { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dr-me > div:not(.dr-me-id):not(.dr-me-st) b { font: 700 16px/1.3 var(--serif); }
.dr-me > div:not(.dr-me-id):not(.dr-me-st) span { font-size: 13px; color: var(--ivory-3); }
.dr-me > div:not(.dr-me-id):not(.dr-me-st) em { font-style: normal; font-weight: 700; color: var(--gold-hi); }
.dr-me-id { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dr-me-id b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 16px/1.3 var(--serif); }
.dr-me-id span { font-size: 13px; color: var(--ivory-3); }
.dr-me-st { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dr-me-kv { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.dr-me-kv div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dr-me-kv dt { flex: none; font-size: 12.5px; color: var(--ivory-3); }
.dr-me-kv dd { margin: 0; min-width: 0; font: 700 15px/1.25 var(--sans); color: var(--gold-hi); font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.dr-me-kv .dr-usdt { display: none; }
html.sb-money .dr-me-kv .dr-usdt { display: flex; } /* 실연동에서 잔액을 읽으면 보인다(시안 모드는 그대로 두 줄) */
.dr-me-kv dt small { font-size: 11px; color: var(--ivory-3); } /* 테더 줄의 단위(USDT)는 이름 옆에 둬 좁은 휴대폰에서 숫자가 한 줄에 들어간다 */
.dr-out { margin-top: 22px; height: 46px; border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--ivory-3); cursor: pointer; }

/* 로그인 창 보탬 */
.dlg-sub { margin: 12px 0 0; text-align: center; font-size: 13.5px; }
.dlg-sub a { color: var(--ivory-3); }
.dlg-sub a:hover { color: var(--gold-hi); }

/* 바닥 지도 */
.ft-map { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.ft-col h2 { margin: 0 0 12px; font: 700 14px/1.2 var(--sans); color: var(--champagne); }
.ft-col a { display: block; padding: 5px 0; font-size: 13.5px; color: var(--ivory-3); text-decoration: none; }
.ft-col a:hover { color: var(--gold-hi); }

/* ───────── 하위 페이지 머리(.ph) ───────── */
.ph { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 6vw, 88px) 0 clamp(36px, 4.4vw, 60px); border-bottom: 1px solid var(--line); background: #080604; }
.ph::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--ph-img, none) var(--ph-pos, 70% 50%) / cover no-repeat; }
.ph::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 6, 4, .96) 0%, rgba(8, 6, 4, .82) 32%, rgba(8, 6, 4, .3) 66%, rgba(8, 6, 4, .08) 100%), linear-gradient(0deg, rgba(8, 6, 4, .92) 0%, rgba(8, 6, 4, 0) 42%); }
.ph-lg { min-height: clamp(320px, 30vw, 440px); display: flex; align-items: flex-end; }
.ph-lg > .wrap { width: min(100% - 2 * var(--gut), var(--wrap)); }
.ph-sm { padding: clamp(34px, 4vw, 52px) 0 clamp(26px, 3vw, 38px); background: radial-gradient(ellipse 60% 120% at 88% 0%, rgba(217, 177, 101, .16), transparent 62%), linear-gradient(180deg, #140f09, #0b0806); }
.ph-sm::after { display: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--ivory-3); }
.crumbs a { color: var(--ivory-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs > * + *::before { content: "›"; margin-right: 8px; opacity: .6; }
.ph-t { margin: 0; font: 900 clamp(36px, 4.2vw, 60px)/1.12 var(--serif); letter-spacing: -.04em; filter: drop-shadow(0 2px 0 rgba(40, 24, 6, .5)) drop-shadow(0 10px 26px rgba(0, 0, 0, .55)); }
.ph-sm .ph-t { font-size: clamp(30px, 3.2vw, 44px); }
.ph-d { margin: 14px 0 0; max-width: 40em; font-size: 16px; line-height: 1.7; color: var(--ivory-2); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.ph-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ph-stats { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 26px 0 0; }
.ph-stats div { display: flex; flex-direction: column; gap: 4px; }
.ph-stats dt { font-size: 13px; color: var(--ivory-3); }
.ph-stats dd { margin: 0; font: 800 24px/1.1 var(--serif); color: var(--ivory); font-variant-numeric: tabular-nums; }
.ph-stats dd.gilt { font-weight: 900; }

/* ───────── 본문 틀 ───────── */
.pg { padding: clamp(28px, 3.4vw, 44px) 0 clamp(70px, 7vw, 110px); }
.blk + .blk { margin-top: clamp(44px, 5vw, 68px); }
.blk-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.blk-t { margin: 0; font: 700 clamp(22px, 2vw, 28px)/1.3 var(--serif); letter-spacing: -.03em; color: var(--champagne); }
.blk-d { margin: 6px 0 0; font-size: 14.5px; color: var(--ivory-2); }
.blk-hd .more { white-space: nowrap; text-decoration: none; }
.g2, .g3, .g4 { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.sticky { position: sticky; top: calc(var(--hd-h) + 16px); }

/* 상자 */
.box { min-width: 0; padding: 22px; border-radius: var(--radius); background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); }
.box-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.box-t { margin: 0; font: 700 19px/1.3 var(--serif); letter-spacing: -.03em; color: var(--champagne); }
.box-d { margin: 4px 0 0; font-size: 13.5px; color: var(--ivory-3); }
.box.gold { box-shadow: inset 0 0 0 1px var(--line-2), 0 0 50px -18px rgba(217, 177, 101, .5); }
.box.pad-0 { padding: 0; overflow: hidden; }
.hr { height: 1px; margin: 18px 0; border: 0; background: var(--line); }

/* 하위 메뉴 줄(고객지원·폴리마켓 등) */
.subnav { display: flex; gap: 2px; overflow-x: auto; margin-top: 8px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a, .subnav button { flex: none; margin-bottom: -1px; padding: 15px 16px 13px; border: 0; border-bottom: 2px solid transparent; background: none; font: 600 15px/1 var(--sans); color: var(--ivory-2); text-decoration: none; cursor: pointer; white-space: nowrap; }
.subnav a:hover, .subnav button:hover { color: var(--ivory); }
.subnav a[aria-current="page"], .subnav [aria-selected="true"] { color: var(--gold-hi); border-bottom-color: var(--gold); }

/* 칩·도구 줄·찾기 */
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(19, 15, 10, .6); color: var(--ivory-2); font: 600 14px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: color .2s, border-color .2s; }
.chip:hover { color: var(--ivory); border-color: var(--gold); }
.chip[aria-pressed="true"], .chip.on, .chip[aria-current="page"], .chip[aria-selected="true"] { background: var(--gold-btn); border-color: rgba(122, 84, 28, .9); color: #1d1408; box-shadow: inset 0 1px 0 rgba(255, 250, 230, .7); }
.chip .n { font-size: 12px; font-weight: 500; opacity: .7; }
.chip img { width: 20px; height: 20px; border-radius: 50%; }
.search { position: relative; flex: 0 1 320px; min-width: 200px; }
.search input { width: 100%; height: 42px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid var(--line-2); background: #0c0907; color: var(--ivory); font: 500 15px/1 var(--sans); }
.search input::placeholder { color: var(--ivory-3); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 177, 101, .2); }
.search svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--ivory-3); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }

/* 게임 카드 묶음(.ggrid > .gcard) — --cols 로 칸 수, --ar 로 그림 비율 */
.ggrid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 22px 14px; margin: 0; padding: 0; list-style: none; }
.gcard { position: relative; display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; border-radius: var(--radius); }
.gcard-img { position: relative; display: block; aspect-ratio: var(--ar, 1); overflow: hidden; isolation: isolate; border-radius: var(--radius); background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.gcard-img img, .gcard-img video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform .8s var(--ease); }
.gcard-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(246, 226, 164, 0); transition: box-shadow .3s; }
.gcard:hover .gcard-img img, .gcard:hover .gcard-img video { transform: scale(1.05); }
.gcard:hover .gcard-img::after, .gcard:focus-visible .gcard-img::after { box-shadow: inset 0 0 0 1px rgba(246, 226, 164, .7); }
.gcard-tag { position: absolute; left: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 4px; background: rgba(8, 6, 4, .74); box-shadow: inset 0 0 0 1px var(--line-2); font: 700 12px/1 var(--sans); color: var(--gold-hi); }
.gcard-tag.red { background: var(--seal); box-shadow: none; color: #fff; }
.gcard-live { position: absolute; right: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(8, 6, 4, .66); font: 500 12px/1 var(--sans); color: var(--ivory-2); }
.gcard-live b { color: var(--ivory); font-weight: 700; font-variant-numeric: tabular-nums; }
.gcard-play { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--gold-btn); color: #1d1408; font: 700 13.5px/1 var(--sans); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease); }
.gcard:hover .gcard-play, .gcard:focus-visible .gcard-play { opacity: 1; transform: none; }
.gcard-t { display: block; margin: 12px 2px 0; font: 700 17px/1.3 var(--serif); letter-spacing: -.03em; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard-d { display: block; margin: 4px 2px 0; font-size: 13.5px; color: var(--ivory-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard-meta { display: flex; justify-content: space-between; gap: 8px; margin: 6px 2px 0; font-size: 13px; color: var(--ivory-2); }
/* 글을 그림 위에 얹는 카드 */
.gcard.over .gcard-img::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(8, 6, 4, .95) 0%, rgba(8, 6, 4, .55) 34%, rgba(8, 6, 4, 0) 62%); }
.gcard.over .gcard-cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; }
.gcard.over .gcard-t { margin: 0; font-size: clamp(19px, 1.6vw, 24px); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.gcard.over .gcard-d { margin: 5px 0 0; color: var(--ivory-2); }

/* 표 */
.dt-wrap { overflow-x: auto; border-radius: var(--radius); background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); }
.dt { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.dt th { padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(217, 177, 101, .05); text-align: left; font: 600 13px/1.2 var(--sans); color: var(--ivory-3); white-space: nowrap; }
.dt td { padding: 14px 16px; border-bottom: 1px solid rgba(217, 177, 101, .07); color: var(--ivory); white-space: nowrap; }
.dt tbody tr:last-child td { border-bottom: 0; }
.dt tbody tr:hover td { background: rgba(217, 177, 101, .04); }
.dt .r { text-align: right; }
.dt .c { text-align: center; }
.dt .wrap-txt { white-space: normal; min-width: 14em; }
.dt a { color: var(--ivory); text-decoration: none; }
.dt a:hover { color: var(--gold-hi); }
.dt.compact th, .dt.compact td { padding: 10px 12px; }
.rise, .up { color: var(--rise); }
.fall, .down { color: var(--fall); }
.ok { color: var(--ok); }
.muted { color: var(--ivory-3); }
.gold-t { color: var(--gold-hi); }
.num { font-variant-numeric: tabular-nums; }

/* 딱지 */
.bdg { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 4px; font: 700 12px/1 var(--sans); white-space: nowrap; background: rgba(217, 177, 101, .14); color: var(--gold-hi); }
.bdg-red { background: var(--seal); color: #fff; }
.bdg-green { background: rgba(63, 174, 114, .16); color: #8fdcb0; }
.bdg-blue { background: rgba(77, 142, 240, .16); color: #9cc0ff; }
.bdg-gray { background: rgba(196, 181, 151, .12); color: var(--ivory-2); }
.bdg-line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ivory-2); }
.bdg-live { background: var(--seal); color: #fff; }
.bdg-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }

/* 숫자 칸 */
.tiles { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 12px; margin: 0; }
.tile { min-width: 0; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); }
.tile dt { font-size: 13px; color: var(--ivory-3); }
.tile dd { margin: 8px 0 0; font: 800 clamp(21px, 1.9vw, 27px)/1.15 var(--sans); letter-spacing: -.02em; color: var(--ivory); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .sub { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ivory-3); }
.tile.hl { box-shadow: inset 0 0 0 1px var(--line-2), 0 0 44px -16px rgba(217, 177, 101, .5); }
.tile.hl dd { color: var(--gold-hi); }

/* 양식 */
.fld select, .fld textarea { width: 100%; padding: 0 14px; border-radius: 6px; border: 1px solid rgba(217, 177, 101, .28); background: #0c0907; color: var(--ivory); font: 500 16px/1.4 var(--sans); }
.fld select { height: 50px; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8b064' stroke-width='1.8'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
.fld textarea { min-height: 150px; padding: 12px 14px; resize: vertical; }
.fld select:focus, .fld textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 177, 101, .2); }
.fld input[readonly] { color: var(--ivory-2); background: #110d09; }
.fld .hint { display: block; margin: 6px 0 0; font-size: 12.5px; color: var(--ivory-3); }
.fld-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inp-btn { display: flex; gap: 8px; }
.inp-btn input { flex: 1; min-width: 0; }
.inp-btn .btn { height: 50px; flex: none; }
.amts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.amts button { height: 42px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(19, 15, 10, .6); color: var(--ivory); font: 600 14px/1 var(--sans); cursor: pointer; }
.amts button:hover { border-color: var(--gold); color: var(--gold-hi); }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ivory-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
.opts { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(19, 15, 10, .6); transition: border-color .2s, background-color .2s; }
.opt b { font: 700 16px/1.3 var(--sans); color: var(--ivory); }
.opt small { font-size: 13px; color: var(--ivory-3); }
.opt input:checked + span { border-color: var(--gold); background: rgba(217, 177, 101, .1); box-shadow: inset 0 0 0 1px var(--gold); }
.opt input:checked + span b { color: var(--gold-hi); }
.opt input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.sw { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14.5px; color: var(--ivory-2); }
.sw input { position: absolute; opacity: 0; }
.sw i { position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .25s; }
.sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ivory-2); transition: transform .3s var(--ease), background .25s; }
.sw input:checked + i { background: var(--gold-btn); }
.sw input:checked + i::after { transform: translateX(20px); background: #1d1408; }
.sw input:focus-visible + i { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
input[type="range"].range { width: 100%; height: 26px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; }
input[type="range"].range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--gold) 0 var(--p, 0%), var(--ink-3) var(--p, 0%)); }
input[type="range"].range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 4px rgba(217, 177, 101, .25); }
input[type="range"].range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--ink-3); }
input[type="range"].range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--gold); }
input[type="range"].range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--gold-hi); }

/* 단추 보탬 */
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-long { color: #fff; background: linear-gradient(180deg, #38c983, #23a565); border-color: #1d8a54; }
.btn-short { color: #fff; background: linear-gradient(180deg, #f2664f, #d1432e); border-color: #b23a28; }
.btn-long:hover, .btn-short:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--ivory-2); background: transparent; border-color: transparent; }
.btn-ghost:hover { color: var(--gold-hi); }
.btn-xs { height: 32px; padding: 0 12px; font-size: 13px; }

/* 쪽 넘김 */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 26px; }
.pager a, .pager button { min-width: 38px; height: 38px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--line); background: rgba(19, 15, 10, .6); color: var(--ivory-2); font: 600 14px/1 var(--sans); text-decoration: none; cursor: pointer; }
.pager a:hover, .pager button:hover { border-color: var(--gold); color: var(--ivory); }
.pager [aria-current="page"] { background: var(--gold-btn); border-color: rgba(122, 84, 28, .9); color: #1d1408; }

/* 비었을 때·안내·접는 글·막대·이름표 목록 */
.empty { padding: 56px 20px; text-align: center; color: var(--ivory-3); font-size: 14.5px; }
.empty b { display: block; margin-bottom: 6px; font: 700 18px/1.3 var(--serif); color: var(--ivory-2); }
.note { padding: 14px 16px; border-radius: 10px; background: rgba(217, 177, 101, .08); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.7; color: var(--ivory-2); }
.note b, .note strong { color: var(--gold-hi); }
.note.warn { background: rgba(200, 64, 42, .1); box-shadow: inset 0 0 0 1px rgba(200, 64, 42, .35); }
.note ul { margin: 6px 0 0; padding-left: 18px; }
details.acc { border-bottom: 1px solid var(--line); }
details.acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 4px; list-style: none; cursor: pointer; font: 600 15.5px/1.45 var(--sans); color: var(--ivory); }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 1.8px solid var(--gold); border-bottom: 1.8px solid var(--gold); transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--ease); }
details.acc[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
details.acc > summary:hover { color: var(--gold-hi); }
.acc-b { padding: 0 4px 20px; font-size: 14.5px; line-height: 1.8; color: var(--ivory-2); }
.acc-b p { margin: 0 0 10px; }
.prog { height: 8px; overflow: hidden; border-radius: 99px; background: var(--ink-3); }
.prog > i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--gold-lo), var(--gold) 60%, var(--gold-hi)); transition: width .8s var(--ease); }
.kv { display: grid; gap: 10px; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.kv dt { color: var(--ivory-3); }
.kv dd { margin: 0; color: var(--ivory); text-align: right; font-variant-numeric: tabular-nums; }
.list { margin: 0; padding: 0; list-style: none; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(217, 177, 101, .08); font-size: 14.5px; }
.list > li:last-child { border-bottom: 0; }
.prose { max-width: 820px; font-size: 15.5px; line-height: 1.85; color: var(--ivory-2); }
.prose h2 { margin: 2.2em 0 .7em; font: 700 21px/1.4 var(--serif); color: var(--champagne); }
.prose h3 { margin: 1.6em 0 .5em; font: 700 17px/1.4 var(--sans); color: var(--ivory); }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose strong { color: var(--ivory); }
.prose table { width: 100%; margin: 1em 0 1.4em; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: rgba(217, 177, 101, .06); color: var(--ivory); }

/* 숫자가 바뀔 때 반짝 */
.flash-up { animation: flashUp .9s ease; }
.flash-down { animation: flashDown .9s ease; }
@keyframes flashUp { from { background-color: rgba(239, 90, 70, .28); } }
@keyframes flashDown { from { background-color: rgba(77, 142, 240, .28); } }

/* ───────── 마이페이지 틀(.my = 왼쪽 메뉴 + 본문) ───────── */
.my { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; align-items: start; padding: 32px 0 clamp(70px, 7vw, 110px); }
.side { position: sticky; top: calc(var(--hd-h) + 20px); padding: 20px; border-radius: 14px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); }
.side-me { display: flex; align-items: center; gap: 12px; }
.side-me img { width: 52px; height: 52px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.side-me div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.side-me b { font: 700 18px/1.3 var(--serif); color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-me span { font-size: 13px; color: var(--gold); }
.side-me .side-kind { font-size: 12.5px; color: var(--ivory-3); } /* 회원 종류 줄(common.js paint 가 채운다. p/my.css 에도 같은 규칙) */
.side-bal { display: grid; gap: 8px; margin: 16px 0 0; padding: 14px 0; border-block: 1px solid var(--line); }
.side-bal div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.side-bal dt { color: var(--ivory-3); }
.side-bal dd { margin: 0; font-weight: 700; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.side-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.side-nav { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.side-g h2 { margin: 0 0 4px; padding: 0 10px; font: 700 12px/1 var(--sans); letter-spacing: .04em; color: var(--gold); }
.side-g a { display: block; padding: 9px 10px; border-radius: 8px; font-size: 14.5px; color: var(--ivory-2); text-decoration: none; }
.side-g a:hover { background: rgba(217, 177, 101, .08); color: var(--ivory); }
.side-g a[aria-current="page"] { background: rgba(217, 177, 101, .14); color: var(--gold-hi); font-weight: 600; }
.my-body { min-width: 0; }
.my-hd { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.my-t { margin: 0; font: 700 clamp(26px, 2.4vw, 34px)/1.2 var(--serif); letter-spacing: -.035em; color: var(--champagne); }
.my-d { margin: 8px 0 0; font-size: 15px; color: var(--ivory-2); }
.my-body > * + * { margin-top: 18px; }
.my-body > .my-hd + * { margin-top: 0; }

/* ───────── 반응형 ───────── */
@media (max-width: 1240px) {
  .gnb { display: none; }
  .menu-btn { display: inline-flex; }
  .ggrid { --cols: 3; }
  .split { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1100px) {
  .my { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 18px; }
  .side { position: static; padding: 0; background: none; box-shadow: none; }
  .side-me, .side-bal, .side-btns { display: none; }
  .side-nav { flex-direction: row; gap: 6px; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; overflow-x: auto; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-g { display: contents; }
  .side-g h2 { display: none; }
  .side-g a { flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
  .side-g a[aria-current="page"] { background: var(--gold-btn); color: #1d1408; box-shadow: none; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { --cols: 2; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .ft-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ggrid { --cols: 2; }
}
@media (max-width: 760px) {
  .menu-btn .hd-dot { display: block; }
  .hd-member { gap: 6px; }
  .hd-dep, .hd-member > .hd-ico { display: none; }
  .hd-bal { height: 36px; padding: 0 11px; }
  .hd-bal-k { display: none; }
  .hd-bal b { font-size: 14px; }
  /* 휴대폰: 알약을 하나 더 두면 메뉴 단추가 화면 밖으로 밀린다(360·390px 실측) — 보유 알약 둘째 줄(테더, 테더 회원은 원화)을 가입머니로 바꾼다 */
  html.sb-money.sb-mission .hd-mis { display: none; }
  html.sb-money.sb-mission .hd-bal .hd-bal-m { display: block; font-size: 11px; }
  html.sb-money.sb-mission:not([data-mk="usdt_anonymous"]) .hd-bal .hd-bal-u { display: none; }
  html.sb-money.sb-mission[data-mk="usdt_anonymous"] .hd-bal .hd-bal-w { display: none; }
  .hd-bal .hd-bal-u, html[data-mk="usdt_anonymous"] .hd-bal .hd-bal-w { font-size: 11px; }
  html[data-mk="usdt_anonymous"] .hd-bal .hd-bal-u { font-size: 14px; }
  .hd-ico { width: 36px; height: 36px; }
  .hd-me img { width: 26px; height: 26px; }
  .umenu-pop { position: fixed; left: 12px; right: 12px; top: calc(var(--hd-h) + 6px); width: auto; }

  .ph { padding: 34px 0 30px; }
  .ph-lg { min-height: 300px; }
  .ph::after { background: linear-gradient(90deg, rgba(8, 6, 4, .9) 0%, rgba(8, 6, 4, .66) 60%, rgba(8, 6, 4, .4) 100%), linear-gradient(0deg, rgba(8, 6, 4, .95) 0%, rgba(8, 6, 4, 0) 55%); }
  .ph-t { font-size: clamp(30px, 8.6vw, 40px); }
  .ph-sm .ph-t { font-size: clamp(26px, 7.4vw, 34px); }
  .ph-d { font-size: 14.5px; }
  .ph-act { margin-top: 20px; }
  .ph-stats { gap: 12px 22px; margin-top: 20px; }
  .ph-stats dd { font-size: 20px; }

  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ggrid { gap: 16px 10px; }
  .gcard-t { font-size: 15px; margin-top: 9px; }
  .gcard-d { font-size: 12.5px; }
  .gcard-play { display: none; }
  .box { padding: 18px 16px; }
  .tiles { gap: 8px; }
  .tile { padding: 14px; }
  .bar { gap: 10px; }
  .search { flex: 1 1 100%; }
  .blk-hd { flex-wrap: wrap; align-items: flex-start; }
  .fld-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .amts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opts { --cols: 1; }

  /* 휴대폰 표: .dt.stack 은 줄마다 카드처럼 쌓는다(td 에 data-th 로 제목) */
  .dt.stack thead { display: none; }
  .dt.stack, .dt.stack tbody, .dt.stack tr, .dt.stack td { display: block; width: 100%; }
  .dt.stack tr { padding: 12px 16px; border-bottom: 1px solid rgba(217, 177, 101, .1); }
  .dt.stack tbody tr:last-child { border-bottom: 0; }
  .dt.stack td { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; border: 0; white-space: normal; text-align: right; }
  .dt.stack td::before { content: attr(data-th); flex: none; color: var(--ivory-3); font-size: 13px; text-align: left; }
  .dt.stack td[data-th=""]::before { display: none; }
  .dt.stack tbody tr:hover td { background: none; }

  .ft-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding-bottom: 30px; margin-bottom: 30px; }
}

/* ───────── 첫 화면 보탬(하위 페이지 연결) ───────── */
.sec-tools { display: flex; align-items: center; gap: 22px; }
.notice li { display: block; }
.notice li a { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 100%; color: inherit; text-decoration: none; }
.notice li a:hover .tt { color: var(--gold-hi); }
.panel-hd .more { text-decoration: none; }
.more-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.more-games a { display: flex; align-items: center; gap: 14px; height: 92px; padding: 0 16px 0 0; overflow: hidden; border-radius: var(--radius); background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; transition: box-shadow .3s; }
.more-games a:hover { box-shadow: inset 0 0 0 1px rgba(246, 226, 164, .62); }
.more-games img { flex: none; width: 108px; height: 100%; object-fit: cover; }
.more-games span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.more-games b { font: 700 18px/1.25 var(--serif); letter-spacing: -.03em; color: var(--ivory); }
.more-games small { font-size: 13px; color: var(--ivory-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .more-games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .more-games { gap: 10px; }
  .more-games a { height: 76px; gap: 10px; padding-right: 10px; }
  .more-games img { width: 64px; }
  .more-games b { font-size: 15.5px; }
  .more-games small { font-size: 12px; }
  .sec-tools { width: 100%; justify-content: space-between; flex-direction: row-reverse; }
}

/* 화면에서는 숨기고 화면 읽기 프로그램만 읽는 글 */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.notice li[hidden] { display: none; }

/* ───────── 공통 틀 다듬기(머리띠·서랍·바닥·아래 메뉴·창·알림·왼쪽 메뉴 틀) ───────── */
/* 주 메뉴 하위 칸: Esc 로 닫으면 마우스·초점이 아직 안에 있어도 접어 둔다 */
.gnb .gnb-i.closed .gnb-sub { opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, visibility 0s; }
.gnb-sub a { min-height: 40px; }

/* 내 메뉴: 가로로 누운 휴대폰처럼 낮은 화면은 팝업 안에서 스크롤 */
.umenu-pop { max-height: calc(100dvh - var(--hd-h) - 20px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.umenu-pop::-webkit-scrollbar { display: none; }
.umenu-grid a { display: flex; align-items: center; min-height: 40px; }
.umenu-out { height: 44px; }
.dr-out { height: 48px; }
.drawer-panel { padding-top: calc(18px + env(safe-area-inset-top)); padding-right: calc(20px + env(safe-area-inset-right)); overscroll-behavior: contain; }
.drawer-x { width: 44px; height: 44px; }

/* 바닥·아래 메뉴: 터치 화면은 누르는 곳 40px 이상, 아이폰 홈 막대·가로 노치 자리 */
.tabbar { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
@media (max-width: 1024px) {
  .ft-col a, .ft-links a { padding-block: 10px; }
  .ft-links { gap: 0 24px; }
  .side-g a { height: 40px; }
  .dlg-sub a { display: inline-block; padding: 10px 8px; }
}
.dlg-sub a { display: inline-block; padding: 8px 8px; }

/* 머리띠: 폭이 좁을수록 한 줄에 겹치지 않게(로고·잔액·단추 40px) */
@media (max-width: 760px) {
  .hd-in { gap: 10px; }
  .hd-act .btn-sm { height: 40px; }
  .menu-btn { width: 40px; height: 40px; }
  .hd-bal { height: 40px; }
  .hd-ico { width: 40px; height: 40px; }
  .hd-me img { width: 28px; height: 28px; }
  .toast { bottom: auto; top: calc(var(--hd-h) + 10px + env(safe-area-inset-top)); transform: translate(-50%, -12px); }
  .toast.show { transform: translate(-50%, 0); }
  .tabbar a { font-size: 12px; }
}
@media (max-width: 380px) {
  .hd-member .umenu { display: none; }
}
@media (max-width: 349px) {
  .hd-guest .hd-login { display: none; }
  .brand img { height: 30px; }
}

/* 로그인·가입 창: 화면 키보드(보이는 높이 --vvh)가 올라오면 위쪽에 붙이고 안에서 스크롤 */
.dlg, .dlg-in { max-height: calc(var(--vvh, 100dvh) - 24px); }
.dlg-in { overscroll-behavior: contain; }
.kb-open .dlg { margin-top: calc(12px + var(--vvtop, 0px)); margin-bottom: auto; }
@media (max-width: 380px) {
  .dlg-in { padding: 30px 16px 20px; }
  .dlg h2 { font-size: 21px; }
}
@media (max-height: 520px) {
  .dlg-logo { display: none; }
  .dlg-in { padding-top: 24px; }
  .dlg h2 { margin-bottom: 12px; }
}

/* 로고 링크: 그림 크기는 그대로, 누르는 영역만 40px 이상 */
.brand { display: flex; align-items: center; min-height: 40px; }

/* 게임사 그림 서버에 썸네일이 없는 게임의 자리 그림(zxc-data.js 가 깨진 그림 바로 뒤에 넣는다, 2026-10-12) */
.zx-ph.zx-ph-gone { background: radial-gradient(120% 80% at 50% 0%, rgba(217, 177, 101, .2), transparent 62%), linear-gradient(180deg, #241a10, #0b0806); box-shadow: inset 0 0 0 1px rgba(217, 177, 101, .26); }
.zx-ph.zx-ph-gone::before { content: "勝"; position: absolute; top: 12%; left: 50%; transform: translateX(-50%); font: 700 clamp(14px, 1vw + 8px, 20px)/1 var(--serif); color: rgba(217, 177, 101, .5); }
.zx-ph.zx-ph-gone b { color: var(--champagne); font-size: clamp(13px, .8vw + 9px, 17px); letter-spacing: -.02em; }
/* 공급사 머리의 작은 부채꼴 썸네일 묶음은 그림이 기울어져 있어 자리 그림이 겹친다 → 거기서는 예전처럼 비워 둔다 */
.sl-pv-art .zx-ph.zx-ph-gone { display: none; } /* slots.css 의 .sl-pv-art .zx-ph{display:grid} 가 뒤에 읽혀 같은 우선순위면 지므로 한 단계 높임 */
/* 목록 문장 끝의 금색 글 링크는 줄 높이는 그대로 두고 누르는 영역만 위아래로 넓힌다(휴대폰 손가락 기준 32px 이상) */
li > a.gold-t { display: inline-block; padding: 8px 0; margin: -8px 0; }
/* 아주 좁은 휴대폰(≤420px)에서는 섹션 머리의 탭과 "전체 보기" 링크가 한 줄에 다 안 들어가 탭이 왼쪽 밖으로 밀려났다 → 두 줄로 쌓는다(2026-10-12) */
@media (max-width: 420px) {
  .sec-tools { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .sec-tools .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .sec-tools .tabs::-webkit-scrollbar { display: none; }
}
/* 실연동 손님에게는 마이페이지 왼쪽 회원 카드·메뉴를 숨긴다 — my.css 를 싣지 않는 출석·퀘스트·지인 콤프·룰렛 쪽까지(my.css 537~538 과 같은 규칙, 2026-10-12) */
html.api-live:not(.authed) .wrap.my { grid-template-columns: minmax(0, 1fr); }
html.api-live:not(.authed) .wrap.my > .side { display: none; }
