/* 쇼부카지노 해시게임 전용 — 허브(/hash) + 게임 9쪽(/hash/<게임>).
   공통 틀: 머리(.hg-ph) · 게임 줄(.hg-nav) · 베팅 칸(.hg-panel) + 게임 판(.hg-stage) · 공정성(.hg-fair) · 기록 표(.hg-dt) · 게임 설명.
   그 아래 게임별 판(cr- dc- lb- mn- pk- oe- ud- hl- rs-) 과 허브(hh-). 움직임 줄이기 설정과 상관없이 연출은 늘 움직인다. */

/* site.css 의 금박 토큰은 상대 주소(../img/)라 p/ 폴더 CSS 에서 var() 로 쓰면 /assets/css/img/ 로 잘못 찾는다 → 절대 주소로 다시 정의 */
:root {
  --leaf: url("/assets/img/goldleaf.webp");
  --leaf-soft: url("/assets/img/goldleaf-soft.webp");
  --gold-btn: linear-gradient(180deg, rgba(250, 233, 180, .9) 0%, rgba(229, 196, 124, .86) 42%, rgba(198, 154, 78, .88) 70%, rgba(160, 114, 44, .92) 100%), var(--leaf-soft) 50% 50% / 720px auto;
}

/* ───────── 게임 머리 ───────── */
.hg-ph { padding: 30px 0 26px; }
.hg-ph-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 26px; }
.hg-ph-art { width: 104px; height: 104px; border-radius: 18px; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -16px rgba(0, 0, 0, .85), 0 0 46px -14px rgba(217, 177, 101, .55); }
.hg-ph .crumbs { margin-bottom: 8px; }
.hg-ph .ph-t { font-size: clamp(32px, 3vw, 44px); }
.hg-ph .ph-d { margin-top: 8px; font-size: 15px; }
.hg-ph-stats { flex-wrap: nowrap; margin: 0; gap: 0; }
.hg-ph-stats > div { padding: 2px 24px; }
.hg-ph-stats > div + div { border-left: 1px solid var(--line); }
.hg-ph-stats dd { font-size: 22px; white-space: nowrap; }

/* 게임 줄 */
.hg-nav { margin-top: 0; }
.hg-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 14px 12px; }
.hg-nav img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.hg-nav a[aria-current="page"] img { box-shadow: 0 0 0 1px var(--gold); }

/* ───────── 베팅 칸 + 게임 판 ───────── */
.hg { padding-top: 22px; }
.hg-play { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.hg-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px; border-radius: 16px; background: linear-gradient(180deg, #1e170f, #110c08); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -36px rgba(0, 0, 0, .95); }
.hg-panel-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hg-panel-t { margin: 0; font: 700 19px/1.2 var(--serif); letter-spacing: -.02em; color: var(--champagne); }
.hg-bal { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 999px; border: 0; background: rgba(11, 8, 6, .65); box-shadow: inset 0 0 0 1px var(--line-2); font: 500 13px/1 var(--sans); color: var(--ivory-3); text-decoration: none; white-space: nowrap; cursor: pointer; }
.hg-bal b { color: var(--gold-hi); font-weight: 700; font-variant-numeric: tabular-nums; }
button.hg-bal { color: var(--gold-hi); font-weight: 600; }
.hg-bal:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.hg-fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hg-lab { margin: 0; font: 600 13px/1.2 var(--sans); color: var(--ivory-2); }
.hg-lab-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hg-amt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 4px; height: 52px; padding: 5px; border-radius: 9px; background: #0a0705; box-shadow: inset 0 0 0 1px rgba(217, 177, 101, .32); }
.hg-amt:focus-within, .hg-inp:focus-within, .hg-sel:focus-within { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 3px rgba(217, 177, 101, .18); }
.hg-cur { padding: 0 2px 0 9px; font: 700 15px/1 var(--sans); color: var(--gold); }
.hg-amt input { min-width: 0; height: 100%; padding: 0 4px; border: 0; background: none; color: var(--ivory); font: 700 18px/1 var(--sans); font-variant-numeric: tabular-nums; }
.hg-amt input:focus, .hg-inp input:focus, .hg-sel select:focus { outline: none; }
.hg-amt button { height: 40px; min-width: 42px; padding: 0 9px; border: 0; border-radius: 6px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); color: var(--ivory); font: 700 13px/1 var(--sans); cursor: pointer; }
.hg-amt button:hover, .hg-quick button:hover { color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.hg-quick { display: flex; gap: 6px; }
.hg-quick button { flex: 1 1 0; min-width: 0; height: 36px; padding: 0 4px; border: 0; border-radius: 6px; background: rgba(19, 15, 10, .7); box-shadow: inset 0 0 0 1px var(--line); color: var(--ivory-2); font: 600 13px/1 var(--sans); white-space: nowrap; cursor: pointer; }
.hg-quick button[aria-pressed="true"] { color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); background: rgba(217, 177, 101, .1); }
.hg-seg { display: flex; gap: 4px; padding: 4px; border-radius: 9px; background: #0a0705; box-shadow: inset 0 0 0 1px var(--line); }
.hg-seg button { flex: 1 1 0; min-width: 0; height: 36px; padding: 0 4px; border: 0; border-radius: 6px; background: none; color: var(--ivory-2); font: 600 13.5px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: color .2s, background-color .2s; }
.hg-seg button:hover { color: var(--ivory); }
.hg-seg button[aria-pressed="true"] { background: var(--gold-btn); color: #1d1408; box-shadow: inset 0 1px 0 rgba(255, 250, 230, .7); }
.hg-inp { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 12px; border-radius: 9px; background: #0a0705; box-shadow: inset 0 0 0 1px rgba(217, 177, 101, .32); }
.hg-inp input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--ivory); font: 700 16px/1 var(--sans); font-variant-numeric: tabular-nums; }
.hg-inp input[readonly] { color: var(--ivory-2); }
.hg-inp > span { flex: none; font: 600 14px/1 var(--sans); color: var(--ivory-3); }
.hg-sel { position: relative; border-radius: 9px; background: #0a0705; box-shadow: inset 0 0 0 1px rgba(217, 177, 101, .32); }
.hg-sel select { width: 100%; height: 46px; padding: 0 40px 0 14px; border: 0; border-radius: 9px; background: transparent 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") no-repeat right 12px center / 20px; color: var(--ivory); font: 700 16px/1 var(--sans); -webkit-appearance: none; appearance: none; cursor: pointer; }
.hg-sel select option { background: #16110b; color: var(--ivory); }
.hg-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hg-row3 .hg-inp { padding: 0 10px; }
.hg-sw { gap: 0; }
.hg-go { flex-direction: column; gap: 4px; height: 62px; font-size: 17.5px; font-weight: 700; }
.hg-go-s { font: 600 12px/1 var(--sans); opacity: .78; text-shadow: none; }
.hg-go.is-stop { background: linear-gradient(180deg, #f2664f, #c43a26); border-color: #9c2f1f; color: #fff; text-shadow: none; box-shadow: inset 0 1px 0 rgba(255, 210, 200, .4), 0 8px 22px -12px rgba(200, 64, 42, .8); }
.hg-go.is-cash { background: linear-gradient(180deg, #4ad690, #1f9a5c); border-color: #187a49; color: #04210f; text-shadow: none; box-shadow: inset 0 1px 0 rgba(220, 255, 235, .5), 0 8px 22px -10px rgba(47, 191, 122, .9); }
.hg-go.is-wait { background: linear-gradient(180deg, #33281a, #211910); border-color: var(--line-2); color: var(--gold-hi); text-shadow: none; box-shadow: inset 0 0 0 1px var(--line); }
.hg-go:disabled { opacity: .55; pointer-events: none; }
.hg-sub-btn { height: 44px; }
.hg-sub-btn:disabled { opacity: .45; pointer-events: none; }
.hg-sum { display: grid; gap: 9px; margin: 0; padding: 13px 14px; border-radius: 10px; background: rgba(217, 177, 101, .05); box-shadow: inset 0 0 0 1px var(--line); }
.hg-sum div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.hg-sum dt { color: var(--ivory-3); }
.hg-sum dd { margin: 0; font-weight: 700; color: var(--ivory); font-variant-numeric: tabular-nums; text-align: right; }
.hg-limit { margin: -2px 0 0; font-size: 12px; line-height: 1.5; color: var(--ivory-3); text-align: center; }
.hg-pend { padding: 11px 13px; border-radius: 10px; background: rgba(77, 142, 240, .06); box-shadow: inset 0 0 0 1px rgba(77, 142, 240, .26); }
.hg-pend-t { font: 700 13px/1.2 var(--sans); color: #9cc0ff; }
.hg-pend ul { display: grid; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; }
.hg-pend li { display: flex; justify-content: space-between; gap: 8px; color: var(--ivory-2); font-variant-numeric: tabular-nums; }
.hg-pend li b { color: var(--ivory); }

/* 게임 판 공통 */
.hg-stage { position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; min-height: 580px; overflow: hidden; border-radius: 16px; background: radial-gradient(ellipse 80% 60% at 50% 42%, rgba(217, 177, 101, .1), transparent 72%), linear-gradient(180deg, #18120b, #0b0806); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -36px rgba(0, 0, 0, .95); }
.hg-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--leaf-soft) 50% 50% / 900px auto; opacity: .035; }
.hg-stage-top { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.hg-stage-k { flex: none; font: 600 12px/1 var(--sans); letter-spacing: .02em; color: var(--ivory-3); }
.hg-hist { display: flex; gap: 6px; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.hg-pill { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); font: 700 12.5px/1 var(--sans); color: var(--ivory-2); font-variant-numeric: tabular-nums; animation: hgPill .5s var(--ease); }
.hg-pill.win { background: rgba(217, 177, 101, .16); box-shadow: inset 0 0 0 1px rgba(217, 177, 101, .5); color: var(--gold-hi); }
.hg-pill.lose { color: var(--ivory-3); }
.hg-pill.hot { background: linear-gradient(180deg, #e0503b, #b3321f); box-shadow: none; color: #fff; }
.hg-pill.cold { color: #ff8a73; box-shadow: inset 0 0 0 1px rgba(200, 64, 42, .35); }
@keyframes hgPill { from { opacity: 0; transform: translateX(-12px) scale(.85); } }
.hg-stage-ft { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); background: rgba(11, 8, 6, .45); }
.hg-stage-ft div { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 12px 8px; }
.hg-stage-ft div + div { border-left: 1px solid var(--line); }
.hg-stage-ft dt { font-size: 12px; color: var(--ivory-3); }
.hg-stage-ft dd { margin: 0; font: 700 16px/1.1 var(--sans); color: var(--ivory); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hg-pop { position: absolute; left: 50%; bottom: 84px; z-index: 6; padding: 14px 26px; border-radius: 14px; background: rgba(11, 8, 6, .9); box-shadow: inset 0 0 0 1px var(--gold), 0 18px 50px rgba(0, 0, 0, .6), 0 0 70px -10px rgba(217, 177, 101, .65); font: 800 24px/1.2 var(--sans); color: var(--gold-hi); text-align: center; white-space: nowrap; pointer-events: none; animation: hgPop 2s var(--ease) forwards; }
.hg-pop small { display: block; margin-top: 4px; font: 600 13px/1.3 var(--sans); color: var(--ivory-2); }
.hg-pop.lose { box-shadow: inset 0 0 0 1px rgba(200, 64, 42, .7), 0 18px 50px rgba(0, 0, 0, .6); color: #ff8a73; }
.hg-pop.push { box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 50px rgba(0, 0, 0, .6); color: var(--ivory); }
@keyframes hgPop { 0% { opacity: 0; transform: translate(-50%, 22px) scale(.9); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1); } 78% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -26px); } }

/* ───────── 공정성 칸 ───────── */
.hg-fair { margin-top: 16px; padding: 18px 20px 20px; border-radius: 16px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); }
.hg-fair-hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hg-fair-t { display: flex; align-items: center; gap: 9px; margin: 0; font: 700 18px/1.2 var(--serif); color: var(--champagne); }
.hg-fair-t svg, .hh-step svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hg-fair-t small { font: 600 12px/1 var(--sans); letter-spacing: .05em; color: var(--ivory-3); }
.hg-fair-act { display: flex; align-items: center; gap: 18px; }
.hg-fair-kv { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.3fr) minmax(0, .7fr); gap: 10px; margin: 0; }
.hg-fair-kv > div, .hg-prev dl > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 11px 13px; border-radius: 9px; background: #0a0705; box-shadow: inset 0 0 0 1px var(--line); }
.hg-fair-kv > div:focus-within { box-shadow: inset 0 0 0 1px var(--gold); }
.hg-fair-kv dt, .hg-prev dt { font-size: 12px; color: var(--ivory-3); }
.hg-fair-kv dt small { font-size: 11px; opacity: .8; }
.hg-fair-kv dd, .hg-prev dd { margin: 0; min-width: 0; }
.hg-fair-kv code, .hg-prev code { display: block; font: 500 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ivory); word-break: break-all; }
.hg-fair-kv input { width: 100%; height: 40px; padding: 0 10px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); color: var(--gold-hi); font: 600 13.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hg-fair-kv input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--gold); }
.hg-fair-kv b { font: 700 18px/1.1 var(--sans); color: var(--ivory); font-variant-numeric: tabular-nums; }
.hg-prev { margin-top: 12px; padding: 14px; border-radius: 10px; background: rgba(63, 174, 114, .06); box-shadow: inset 0 0 0 1px rgba(63, 174, 114, .3); }
.hg-prev > b { display: block; margin-bottom: 10px; font: 700 13.5px/1.2 var(--sans); color: #8fdcb0; }
.hg-prev dl { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 0; }

/* ───────── 기록 표 ───────── */
.hg-logs { margin-top: clamp(36px, 4vw, 52px); }
.hg-tabs { margin: 0 0 14px; }
.hg-tabs button { display: inline-flex; align-items: center; gap: 8px; }
.hg-n { display: inline-block; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(217, 177, 101, .16); font: 700 11.5px/20px var(--sans); color: var(--gold-hi); text-align: center; }
.hg-dt td { font-variant-numeric: tabular-nums; }
.hg-dt tr.new td { animation: hgRow .9s var(--ease); }
@keyframes hgRow { from { opacity: 0; background-color: rgba(217, 177, 101, .16); } 40% { opacity: 1; } }
.hg-mine-row td { background: rgba(217, 177, 101, .055); }
.bdg.hg-me { height: 19px; padding: 0 6px; font-size: 11px; vertical-align: 1px; background: var(--gold-btn); color: #1d1408; }
.hg-mine-ft { display: flex; justify-content: flex-end; margin-top: 6px; }
.hg-rules { margin-top: clamp(36px, 4vw, 52px); }
.hg-rules-b { padding: 4px 24px 6px; border-radius: 16px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); }
.hg-rules-b details.acc:last-child { border-bottom: 0; }
.hg-rules-b code { padding: 1px 6px; border-radius: 4px; background: rgba(217, 177, 101, .1); font: 500 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--gold-hi); }
.hg-rules-b a { color: var(--gold-hi); }
.hg-rules-b b { color: var(--ivory); }

/* ───────── 크래시 ───────── */
.cr-board { position: relative; flex: 1; min-height: 400px; }
.cr-board canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cr-mid { position: absolute; left: 0; right: 0; top: 30%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; pointer-events: none; }
.cr-mid b { font: 900 clamp(56px, 6.6vw, 96px)/1 var(--serif); letter-spacing: -.02em; color: var(--ivory); font-variant-numeric: tabular-nums; text-shadow: 0 4px 30px rgba(0, 0, 0, .7); }
.cr-stage.is-fly .cr-mid b { color: var(--gold-hi); text-shadow: 0 0 46px rgba(217, 177, 101, .55), 0 4px 20px rgba(0, 0, 0, .7); }
.cr-stage.is-bust .cr-mid b { color: #ff6a52; text-shadow: 0 0 46px rgba(200, 64, 42, .7); animation: crShake .5s; }
.cr-stage.is-bet .cr-mid b { color: var(--ivory-2); font-size: clamp(40px, 4.4vw, 64px); }
.cr-mid span { padding: 7px 15px; border-radius: 999px; background: rgba(11, 8, 6, .7); box-shadow: inset 0 0 0 1px var(--line); font: 600 14.5px/1.3 var(--sans); color: var(--ivory-2); }
.cr-stage.is-bust .cr-mid span { box-shadow: inset 0 0 0 1px rgba(200, 64, 42, .6); color: #ffb3a5; }
.cr-count { position: absolute; left: 50%; top: calc(30% + 150px); width: 240px; height: 6px; margin-left: -120px; overflow: hidden; border-radius: 99px; background: rgba(217, 177, 101, .15); }
.cr-count i { display: block; width: var(--p, 100%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); }
.cr-outs { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 6px; max-height: calc(100% - 28px); margin: 0; padding: 0; overflow: hidden; list-style: none; }
.cr-outs li { display: flex; justify-content: space-between; gap: 10px; min-width: 156px; padding: 6px 10px; border-radius: 8px; background: rgba(11, 8, 6, .78); box-shadow: inset 0 0 0 1px rgba(47, 191, 122, .4); font-size: 12.5px; color: var(--ivory-2); animation: hgPill .45s var(--ease); }
.cr-outs li b { color: #8fdcb0; font-variant-numeric: tabular-nums; }
.cr-outs li.me { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-hi); }
.cr-outs li.me b { color: var(--gold-hi); }
@keyframes crShake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

/* ───────── 다이스 ───────── */
.dc-roll { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 34px 20px 10px; text-align: center; }
.dc-dice { display: flex; gap: 16px; margin-bottom: 6px; perspective: 600px; }
.dc-dice i { position: relative; width: 46px; height: 46px; border-radius: 11px; background: radial-gradient(circle at 30% 25%, #fff3cc, #e3bd6c 45%, #9c6f2c 100%); box-shadow: inset 0 -3px 0 rgba(80, 50, 10, .45), inset 0 2px 0 rgba(255, 250, 230, .7), 0 10px 22px -8px rgba(0, 0, 0, .8); animation: dcFloat 3.2s ease-in-out infinite; }
.dc-dice i + i { animation-delay: -1.6s; }
.dc-dice i::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, #2a1606 0 4px, transparent 4.5px) 0 0 / 50% 50%; border-radius: inherit; }
.dc-dice i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #2a1606; }
.dc-stage.is-roll .dc-dice i { animation: dcSpin .5s linear infinite; }
.dc-stage.is-roll .dc-dice i + i { animation-direction: reverse; }
@keyframes dcFloat { 50% { transform: translateY(-7px) rotate(8deg); } }
@keyframes dcSpin { to { transform: rotate3d(1, 1, 0, 360deg); } }
.dc-num { font: 900 clamp(70px, 8.4vw, 118px)/1 var(--serif); letter-spacing: -.02em; color: var(--ivory); font-variant-numeric: tabular-nums; text-shadow: 0 4px 30px rgba(0, 0, 0, .7); transition: color .3s; }
.dc-stage.win .dc-num { color: var(--gold-hi); text-shadow: 0 0 50px rgba(217, 177, 101, .6); }
.dc-stage.lose .dc-num { color: #ff6a52; }
.dc-msg { min-height: 1.3em; font: 600 15px/1.3 var(--sans); color: var(--ivory-2); }
.dc-stage.win .dc-msg { color: var(--gold-hi); }
.dc-track { padding: 50px 30px 34px; }
.dc-scale { display: flex; justify-content: space-between; margin: 0 0 12px; font: 600 12px/1 var(--sans); color: var(--ivory-3); }
.dc-rail { position: relative; height: 16px; border-radius: 99px; background: #0a0705; box-shadow: inset 0 0 0 1px var(--line-2); }
.dc-zone { position: absolute; top: 3px; bottom: 3px; border-radius: 99px; transition: background .3s; }
.dc-zone.a { left: 3px; width: calc(var(--t) - 3px); }
.dc-zone.b { left: var(--t); right: 3px; }
.dc-stage[data-dir="over"] .dc-zone.a, .dc-stage[data-dir="under"] .dc-zone.b { background: linear-gradient(180deg, #e0503b, #9e2b1b); }
.dc-stage[data-dir="over"] .dc-zone.b, .dc-stage[data-dir="under"] .dc-zone.a { background: linear-gradient(180deg, #f6e2a4, #c99a48 60%, #8d6428); box-shadow: 0 0 16px rgba(217, 177, 101, .4); }
.dc-range { position: absolute; left: -14px; right: -14px; top: 50%; width: calc(100% + 28px); height: 44px; margin: -22px 0 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.dc-range::-webkit-slider-runnable-track { height: 44px; background: transparent; }
.dc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 40px; margin-top: 2px; border-radius: 8px; background: linear-gradient(180deg, #fff1c1, #d8b064 55%, #8d6428); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 6px 14px rgba(0, 0, 0, .6), 0 0 0 1px rgba(80, 50, 10, .8); }
.dc-range::-moz-range-track { height: 44px; background: transparent; }
.dc-range::-moz-range-thumb { width: 28px; height: 38px; border: 0; border-radius: 8px; background: linear-gradient(180deg, #fff1c1, #d8b064 55%, #8d6428); box-shadow: 0 6px 14px rgba(0, 0, 0, .6); }
.dc-range:focus-visible { outline: none; }
.dc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--gold-hi), 0 6px 14px rgba(0, 0, 0, .6); }
.dc-pin { position: absolute; left: var(--r, 50%); bottom: calc(100% + 18px); z-index: 2; transform: translateX(-50%); transition: left .55s var(--ease); pointer-events: none; }
.dc-pin em { display: block; padding: 7px 11px; border-radius: 8px; background: var(--ivory); font: 800 15px/1 var(--sans); font-style: normal; color: #1d1408; font-variant-numeric: tabular-nums; box-shadow: 0 8px 18px rgba(0, 0, 0, .55); }
.dc-pin::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--ivory); }
.dc-pin.win em { background: var(--gold-btn); }
.dc-pin.win::after { border-top-color: #c99a48; }
.dc-pin.lose em { background: #e0503b; color: #fff; }
.dc-pin.lose::after { border-top-color: #e0503b; }

/* ───────── 림보 ───────── */
.lb-board { position: relative; flex: 1; display: grid; place-items: center; min-height: 420px; overflow: hidden; }
.lb-rings { position: absolute; inset: 0; pointer-events: none; }
.lb-rings i { position: absolute; left: 50%; bottom: -60px; width: 300px; height: 74px; margin-left: -150px; border-radius: 50%; border: 2px solid rgba(232, 199, 122, .6); box-shadow: 0 0 26px rgba(217, 177, 101, .35), inset 0 0 20px rgba(217, 177, 101, .25); opacity: 0; animation: lbRise 5.4s linear infinite; }
.lb-rings i:nth-child(2) { animation-delay: -.9s; }
.lb-rings i:nth-child(3) { animation-delay: -1.8s; }
.lb-rings i:nth-child(4) { animation-delay: -2.7s; }
.lb-rings i:nth-child(5) { animation-delay: -3.6s; }
.lb-rings i:nth-child(6) { animation-delay: -4.5s; }
@keyframes lbRise { 0% { transform: translateY(0) scale(1.25); opacity: 0; } 14% { opacity: .9; } 85% { opacity: .35; } 100% { transform: translateY(-520px) scale(.4); opacity: 0; } }
.lb-beam { position: absolute; left: 50%; bottom: 0; width: 220px; height: 100%; margin-left: -110px; background: radial-gradient(ellipse 45% 100% at 50% 100%, rgba(246, 226, 164, .3), transparent 72%); animation: lbBeam 2.6s ease-in-out infinite; pointer-events: none; }
.lb-stage.is-roll .lb-beam { animation-duration: .5s; }
@keyframes lbBeam { 50% { opacity: .55; transform: scaleX(.85); } }
.lb-mid { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.lb-mid b { font: 900 clamp(70px, 9vw, 128px)/1 var(--serif); letter-spacing: -.03em; color: var(--ivory); font-variant-numeric: tabular-nums; text-shadow: 0 4px 30px rgba(0, 0, 0, .7); }
.lb-stage.is-roll .lb-mid b { color: var(--champagne); }
.lb-stage.win .lb-mid b { color: var(--gold-hi); text-shadow: 0 0 60px rgba(217, 177, 101, .65); }
.lb-stage.lose .lb-mid b { color: #ff6a52; text-shadow: 0 0 40px rgba(200, 64, 42, .5); }
.lb-mid span { padding: 7px 15px; border-radius: 999px; background: rgba(11, 8, 6, .7); box-shadow: inset 0 0 0 1px var(--line); font: 600 14.5px/1.3 var(--sans); color: var(--ivory-2); }
.lb-stage.win .lb-mid span { color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }

/* ───────── 지뢰찾기 ───────── */
.mn-wrap { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 22px 18px; }
.mn-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: min(100%, 480px); aspect-ratio: 1; perspective: 1000px; }
.mn-cell { position: relative; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform .55s var(--ease); }
.mn-cell:disabled { cursor: default; }
.mn-cell .f, .mn-cell .b { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.mn-cell .f { background: radial-gradient(circle at 50% 30%, rgba(255, 236, 190, .08), transparent 60%), linear-gradient(160deg, #2c2215, #150f09); box-shadow: inset 0 1px 0 rgba(255, 236, 190, .14), inset 0 0 0 1px rgba(217, 177, 101, .3), 0 8px 16px -8px rgba(0, 0, 0, .9); transition: box-shadow .25s, transform .25s; }
.mn-cell .f::after { content: ""; width: 30%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(246, 226, 164, .5), rgba(141, 100, 40, .25) 60%, transparent 72%); box-shadow: inset 0 0 0 1px rgba(217, 177, 101, .3); }
.mn-stage.is-play .mn-cell:not(:disabled):hover .f { box-shadow: inset 0 1px 0 rgba(255, 236, 190, .2), inset 0 0 0 1px var(--gold), 0 0 22px -4px rgba(217, 177, 101, .55); transform: translateY(-2px); }
.mn-stage.is-play .mn-cell:not(.open) .f { animation: mnBreath 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.13s); }
@keyframes mnBreath { 50% { box-shadow: inset 0 1px 0 rgba(255, 236, 190, .16), inset 0 0 0 1px rgba(217, 177, 101, .55), 0 0 16px -6px rgba(217, 177, 101, .5); } }
.mn-cell .b { transform: rotateY(180deg); background: #120d08; box-shadow: inset 0 0 0 1px var(--line); }
.mn-cell.open { transform: rotateY(180deg); }
.mn-cell.gem .b { background: radial-gradient(circle at 50% 45%, rgba(246, 226, 164, .28), transparent 62%), linear-gradient(160deg, #241a0e, #120d08); box-shadow: inset 0 0 0 1px var(--gold), 0 0 22px -6px rgba(217, 177, 101, .6); }
.mn-cell.mine .b { background: radial-gradient(circle at 50% 45%, rgba(239, 90, 70, .5), #2a0c07 72%); box-shadow: inset 0 0 0 1px #e0503b, 0 0 26px -4px rgba(224, 80, 59, .8); }
.mn-cell.dim .b { opacity: .38; box-shadow: inset 0 0 0 1px var(--line); }
.mn-cell.boom { animation: mnBoom .6s ease; }
.mn-cell svg { width: 60%; height: 60%; }
@keyframes mnBoom { 20% { transform: rotateY(180deg) scale(1.12); } 40% { transform: rotateY(180deg) translateX(-5px); } 60% { transform: rotateY(180deg) translateX(5px); } 100% { transform: rotateY(180deg); } }
.mn-hint { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--ivory-3); text-align: center; }
.mn-hint b { color: var(--gold-hi); }
.mn-stage.is-lost .mn-hint { color: #ff8a73; }

/* ───────── 플린코 ───────── */
.pk-board { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 470px; padding: 14px 16px 18px; }
.pk-board canvas { flex: 1; width: 100%; min-height: 380px; }
.pk-slots { display: grid; grid-template-columns: repeat(var(--n, 17), minmax(0, 1fr)); gap: 3px; width: var(--sw, 100%); margin: 4px auto 0; }
.pk-slot { display: grid; place-items: center; height: 32px; border-radius: 6px; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .25); font: 800 var(--fs, 11px)/1 var(--sans); letter-spacing: -.03em; color: #1d1408; font-variant-numeric: tabular-nums; }
.pk-slot.hit { animation: pkHit .55s var(--ease); }
@keyframes pkHit { 30% { transform: translateY(7px); filter: brightness(1.45); box-shadow: 0 0 22px var(--c); } }

/* ───────── 1분 홀짝 · 30초 업다운(가격 회차) ───────── */
.rd-top { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.rd-clock { position: relative; display: grid; grid-template-columns: 60px auto; grid-template-rows: auto auto auto; column-gap: 14px; align-items: center; }
.rd-ring { grid-row: 1 / span 3; grid-column: 1; width: 60px; height: 60px; }
.rd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rd-ring circle { fill: none; stroke: rgba(217, 177, 101, .16); stroke-width: 3.5; }
.rd-ring .rd-ring-v { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 106.8; stroke-dashoffset: 0; transition: stroke-dashoffset .25s linear; }
.rd-clock.hurry .rd-ring-v { stroke: #e0503b; }
.rd-k { grid-column: 2; font: 600 12.5px/1.2 var(--sans); color: var(--ivory-3); }
.rd-left { grid-column: 2; font: 800 30px/1.1 var(--sans); letter-spacing: -.01em; color: var(--ivory); font-variant-numeric: tabular-nums; }
.rd-clock.hurry .rd-left { color: #ff8a73; }
.rd-sub { grid-column: 2; font-size: 12.5px; color: var(--ivory-3); }
.rd-px { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 0; text-align: right; }
.rd-px .rd-k, .rd-px .rd-sub { grid-column: auto; }
.rd-price { font: 800 clamp(24px, 2.4vw, 32px)/1.1 var(--sans); letter-spacing: -.02em; color: var(--ivory); font-variant-numeric: tabular-nums; }
.rd-price i { display: inline-block; margin-left: 1px; padding: 0 5px; border-radius: 6px; background: var(--gold-btn); font-style: normal; color: #1d1408; }
.rd-price.up { color: #ff8a73; }
.rd-price.down { color: #8bb5ff; }
.oe-last { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(217, 177, 101, .2); font-style: normal; font-weight: 800; color: var(--gold-hi); }
.rd-chart { position: relative; flex: 1; min-height: 320px; }
.rd-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.oe-judge { position: absolute; left: 50%; top: 46%; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 28px; border-radius: 16px; background: rgba(11, 8, 6, .88); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px rgba(0, 0, 0, .6); transform: translate(-50%, -50%); text-align: center; animation: hgPill .5s var(--ease); }
.oe-judge span { font: 600 13.5px/1.2 var(--sans); color: var(--ivory-2); }
.oe-judge b { font: 900 40px/1 var(--serif); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.oe-judge .ball { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; font: 900 38px/1 var(--serif); color: #fff; animation: oeBall .8s var(--ease); }
.oe-judge .ball.odd, .oe-beads li.odd { background: radial-gradient(circle at 35% 28%, #ff9a85, #c8402a 62%, #7a1d10); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .35); }
.oe-judge .ball.even, .oe-beads li.even { background: radial-gradient(circle at 35% 28%, #a8c8ff, #2f64c4 62%, #173a7a); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .35); }
.oe-judge .tags { display: flex; gap: 6px; }
.oe-judge .spin { font: 900 40px/1 var(--serif); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
@keyframes oeBall { from { transform: scale(.3) rotate(-120deg); opacity: 0; } }
.oe-road { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 18px; border-top: 1px solid var(--line); background: rgba(11, 8, 6, .45); }
.oe-beads { display: flex; gap: 6px; min-width: 0; margin: 0; padding: 0; overflow: hidden; list-style: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.oe-beads li { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 800 14px/1 var(--sans); color: #fff; animation: hgPill .5s var(--ease); }
.ud-beads li.up { background: radial-gradient(circle at 35% 28%, #ff9a85, #c8402a 62%, #7a1d10); }
.ud-beads li.down { background: radial-gradient(circle at 35% 28%, #a8c8ff, #2f64c4 62%, #173a7a); }
.ud-beads li.tie { background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ivory-2); }
.ud-beads li svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ud-live { position: absolute; left: 16px; top: 12px; z-index: 2; display: flex; flex-direction: column; gap: 3px; padding: 9px 13px; border-radius: 10px; background: rgba(11, 8, 6, .78); box-shadow: inset 0 0 0 1px var(--line); }
.ud-live span { font-size: 12px; color: var(--ivory-3); }
.ud-live b { font: 700 14px/1.2 var(--sans); color: var(--ivory); font-variant-numeric: tabular-nums; }
.oe-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.oe-p { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 56px; padding: 0 2px; border: 1px solid var(--line-2); border-radius: 9px; background: rgba(19, 15, 10, .7); color: var(--ivory); cursor: pointer; transition: border-color .2s, background-color .2s; }
.oe-p b { font: 800 15px/1 var(--sans); white-space: nowrap; }
.oe-p small { font: 600 11.5px/1 var(--sans); color: var(--ivory-3); }
.oe-p.odd b { color: #ff8a73; }
.oe-p.even b { color: #8bb5ff; }
.oe-p:hover, .oe-d:hover { border-color: var(--gold); }
.oe-p[aria-pressed="true"], .oe-d[aria-pressed="true"] { border-color: var(--gold); background: rgba(217, 177, 101, .14); box-shadow: inset 0 0 0 1px var(--gold), 0 0 18px -6px rgba(217, 177, 101, .6); }
.oe-p[aria-pressed="true"] small { color: var(--gold-hi); }
.oe-dl { margin-top: 4px; }
.oe-digits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.oe-d { height: 40px; min-width: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(19, 15, 10, .7); font: 800 15px/1 var(--sans); color: var(--ivory); cursor: pointer; }
.oe-d:nth-child(odd) { color: #8bb5ff; }
.oe-d:nth-child(even) { color: #ff8a73; }
.ud-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ud-p { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 92px; border: 1px solid transparent; border-radius: 12px; color: #fff; cursor: pointer; transition: filter .2s, transform .2s, box-shadow .2s; }
.ud-p svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ud-p b { font: 800 18px/1 var(--sans); }
.ud-p small { font: 600 12px/1 var(--sans); opacity: .82; }
.ud-p.up { background: linear-gradient(180deg, rgba(239, 90, 70, .26), rgba(160, 40, 25, .22)); border-color: rgba(239, 90, 70, .45); color: #ffb3a5; }
.ud-p.down { background: linear-gradient(180deg, rgba(77, 142, 240, .26), rgba(30, 70, 150, .22)); border-color: rgba(77, 142, 240, .45); color: #b5d0ff; }
.ud-p.up[aria-pressed="true"] { background: linear-gradient(180deg, #f2664f, #b3321f); border-color: #ff9a85; color: #fff; box-shadow: 0 10px 26px -10px rgba(239, 90, 70, .9); }
.ud-p.down[aria-pressed="true"] { background: linear-gradient(180deg, #5b9bff, #2556b8); border-color: #a8c8ff; color: #fff; box-shadow: 0 10px 26px -10px rgba(77, 142, 240, .9); }

/* ───────── 하이로우 ───────── */
.hl-table { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 22px; padding: 30px 28px 20px; }
.hl-side { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 22px 10px; border-radius: 14px; background: rgba(11, 8, 6, .55); box-shadow: inset 0 0 0 1px var(--line); text-align: center; transition: box-shadow .3s, transform .3s; }
.hl-side span { font: 700 14px/1 var(--sans); color: var(--ivory-2); }
.hl-side b { font: 800 26px/1.1 var(--serif); }
.hl-side em { font: 700 16px/1 var(--sans); font-style: normal; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.hl-side.hi b { color: #ff8a73; }
.hl-side.lo b { color: #8bb5ff; }
.hl-side.on.hi { box-shadow: inset 0 0 0 1px rgba(239, 90, 70, .7), 0 0 30px -8px rgba(239, 90, 70, .6); }
.hl-side.on.lo { box-shadow: inset 0 0 0 1px rgba(77, 142, 240, .7), 0 0 30px -8px rgba(77, 142, 240, .6); }
.hl-deck { display: flex; flex-direction: column; align-items: center; gap: 16px; perspective: 1100px; }
.hl-card { position: relative; width: clamp(132px, 13vw, 176px); aspect-ratio: 5 / 7; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.hl-card.show { transform: rotateY(180deg); }
.hl-card.pulse { animation: hlPulse 2.6s ease-in-out infinite; }
@keyframes hlPulse { 50% { filter: drop-shadow(0 0 18px rgba(217, 177, 101, .55)); } }
.hl-face { position: absolute; inset: 0; border-radius: 14px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.hl-back { background: url("/assets/img/seal.webp") 50% 50% / 46% no-repeat, repeating-linear-gradient(45deg, rgba(217, 177, 101, .2) 0 1.5px, transparent 1.5px 11px), repeating-linear-gradient(-45deg, rgba(217, 177, 101, .2) 0 1.5px, transparent 1.5px 11px), linear-gradient(160deg, #4a120c, #1a0705); box-shadow: inset 0 0 0 5px #1a0705, inset 0 0 0 6px var(--gold), 0 18px 40px -12px rgba(0, 0, 0, .9); }
.hl-front { transform: rotateY(180deg); background: linear-gradient(160deg, #fbf5e8, #efe2c4); box-shadow: inset 0 0 0 1px rgba(141, 100, 40, .5), inset 0 0 0 5px #fbf5e8, inset 0 0 0 6px rgba(201, 154, 72, .7), 0 18px 40px -12px rgba(0, 0, 0, .9); color: #1d1408; }
.hl-front.red, .hl-mini.red { color: #c8402a; }
.hl-front .c1, .hl-front .c2 { position: absolute; display: flex; flex-direction: column; align-items: center; font: 900 clamp(22px, 2.2vw, 30px)/1 var(--serif); }
.hl-front .c1 { left: 12px; top: 12px; }
.hl-front .c2 { right: 12px; bottom: 12px; transform: rotate(180deg); }
.hl-front .c1 small, .hl-front .c2 small { font-size: .7em; margin-top: 2px; }
.hl-front .big { position: absolute; inset: 0; display: grid; place-items: center; font: 400 clamp(56px, 5.6vw, 78px)/1 var(--serif); }
.hl-front.joker { background: radial-gradient(circle at 50% 40%, #fff7da, #e9cf8f 70%, #c99a48); }
.hl-front.joker .big { display: flex; flex-direction: column; align-items: center; justify-content: center; font: 900 22px/1.2 var(--serif); letter-spacing: .1em; color: #7a1d10; }
.hl-front.joker .big svg { width: 54px; height: 54px; margin: 0 auto 6px; fill: #c8402a; }
.hl-cap { min-height: 1.4em; font: 600 14px/1.4 var(--sans); color: var(--ivory-2); text-align: center; }
.hl-stage.win .hl-cap { color: var(--gold-hi); }
.hl-stage.lose .hl-cap { color: #ff8a73; }
.hl-trail { display: flex; gap: 8px; min-height: 92px; margin: 0; padding: 4px 22px 18px; overflow: hidden; list-style: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.hl-trail li { position: relative; flex: none; animation: hgPill .45s var(--ease); }
.hl-mini { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 66px; border-radius: 7px; background: linear-gradient(160deg, #fbf5e8, #efe2c4); box-shadow: inset 0 0 0 1px rgba(141, 100, 40, .5); font: 900 17px/1 var(--serif); color: #1d1408; }
.hl-mini small { font-size: 14px; }
.hl-mini.joker { font-size: 10px; letter-spacing: .04em; color: #7a1d10; }
.hl-trail .tag { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 2px 6px; border-radius: 4px; font: 700 10.5px/1.2 var(--sans); white-space: nowrap; background: var(--ink-3); color: var(--ivory-2); box-shadow: inset 0 0 0 1px var(--line); }
.hl-trail .tag.ok { background: rgba(217, 177, 101, .2); color: var(--gold-hi); }
.hl-trail .tag.no { background: #c8402a; color: #fff; box-shadow: none; }
.hl-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hl-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; height: 70px; border: 1px solid transparent; border-radius: 12px; color: #fff; cursor: pointer; transition: filter .2s, opacity .2s; }
.hl-act b { display: inline-flex; align-items: center; gap: 4px; font: 800 17px/1 var(--sans); }
.hl-act svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hl-act small { font: 600 12px/1 var(--sans); opacity: .85; white-space: nowrap; }
.hl-act.hi { background: linear-gradient(180deg, #f2664f, #b3321f); border-color: #ff9a85; }
.hl-act.lo { background: linear-gradient(180deg, #5b9bff, #2556b8); border-color: #a8c8ff; }
.hl-act:hover { filter: brightness(1.1); }
.hl-act:disabled { opacity: .35; filter: saturate(.4); cursor: default; }
button.hl-side { border: 0; font: inherit; color: inherit; cursor: pointer; }
button.hl-side:disabled { cursor: default; }
button.hl-side:not(:disabled):hover { transform: translateY(-2px); }

/* ───────── 레드 스트라이크 ───────── */
.rs-stage { background: linear-gradient(180deg, rgba(24, 7, 5, .86), rgba(10, 4, 3, .95)), url("/assets/img/hash-redstrike.webp") 50% 40% / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(239, 90, 70, .35), 0 30px 60px -36px rgba(0, 0, 0, .95); }
.rs-stage::before { display: none; }
.rs-hud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 16px 6px; }
.rs-hud-i { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 10px 6px; border-radius: 12px; background: rgba(11, 6, 4, .68); box-shadow: inset 0 0 0 1px rgba(239, 90, 70, .3); }
.rs-hud-i span { font-size: 12px; color: var(--ivory-3); }
.rs-hud-i b { font: 800 22px/1 var(--sans); color: var(--gold-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-hud-i b.bump { animation: rsBump .5s var(--ease); }
@keyframes rsBump { 40% { transform: scale(1.3); color: #fff; } }
.rs-fs { box-shadow: inset 0 0 0 1px var(--gold), 0 0 24px -8px rgba(217, 177, 101, .7); }
.rs-board { position: relative; flex: 1; display: grid; place-items: center; padding: 10px 16px 16px; }
.rs-gw { position: relative; width: min(100%, 760px); }
.rs-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 8px; width: 100%; }
.rs-cell { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: radial-gradient(circle at 50% 35%, rgba(255, 140, 110, .1), transparent 65%), linear-gradient(160deg, #2e100b, #120605); box-shadow: inset 0 0 0 1px rgba(239, 90, 70, .28), inset 0 2px 0 rgba(255, 200, 180, .07); }
.rs-cell svg { width: 78%; height: 78%; overflow: visible; }
.rs-cell.drop svg { animation: rsDrop .48s var(--ease) both; animation-delay: var(--d, 0s); }
.rs-cell.win { box-shadow: inset 0 0 0 2px var(--gold-hi), 0 0 26px rgba(246, 226, 164, .55); }
.rs-cell.win svg { animation: rsWin .55s ease-in-out infinite alternate; }
.rs-cell.gone svg { animation: rsGone .32s ease forwards; }
.rs-cell.wildin { box-shadow: inset 0 0 0 2px #ff9a85, 0 0 30px rgba(239, 90, 70, .7); }
.rs-cell.sc { box-shadow: inset 0 0 0 2px #e0503b, 0 0 26px rgba(224, 80, 59, .65); }
.rs-cell.sc svg { animation: rsWin .7s ease-in-out infinite alternate; }
.rs-stage.turbo .rs-cell.drop svg { animation-duration: .22s; }
@keyframes rsDrop { from { transform: translateY(-140%); opacity: 0; } 70% { transform: translateY(6%); opacity: 1; } to { transform: none; } }
@keyframes rsWin { to { transform: scale(1.12); filter: drop-shadow(0 0 10px rgba(246, 226, 164, .8)); } }
@keyframes rsGone { to { transform: scale(.2) rotate(30deg); opacity: 0; } }
.rs-cell.spin svg { animation: rsSpin .14s linear infinite; }
@keyframes rsSpin { from { transform: translateY(-60%); opacity: .4; filter: blur(2px); } to { transform: translateY(60%); opacity: .4; filter: blur(2px); } }
.rs-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.rs-cell:where([data-s="WILD"], [data-s="SCATTER"], [data-s="JERSEY"]) svg { animation: rsIdle 2.6s ease-in-out infinite; }
@keyframes rsIdle { 50% { filter: drop-shadow(0 0 8px rgba(246, 226, 164, .55)); transform: scale(1.04); } }
.rs-lines polyline { fill: none; stroke: var(--gold-hi); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(246, 226, 164, .9)); opacity: .85; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: rsLine .5s ease forwards; }
@keyframes rsLine { to { stroke-dashoffset: 0; } }
.rs-banner { position: absolute; left: 50%; top: 50%; z-index: 5; min-width: 260px; padding: 22px 34px; border-radius: 16px; background: radial-gradient(ellipse at 50% 0%, rgba(239, 90, 70, .35), transparent 70%), rgba(14, 5, 3, .94); box-shadow: inset 0 0 0 1px var(--gold), 0 0 80px -10px rgba(239, 90, 70, .8), 0 30px 60px rgba(0, 0, 0, .7); transform: translate(-50%, -50%); text-align: center; animation: rsBanner .6s var(--ease); pointer-events: none; }
.rs-banner small { display: block; font: 700 13px/1.3 var(--sans); letter-spacing: .12em; color: #ff9a85; }
.rs-banner b { display: block; margin-top: 6px; font: 900 34px/1.1 var(--serif); }
.rs-banner span { display: block; margin-top: 6px; font: 600 14px/1.4 var(--sans); color: var(--ivory-2); }
@keyframes rsBanner { from { opacity: 0; transform: translate(-50%, -50%) scale(.7); } }
.rs-skip { position: absolute; right: 22px; bottom: 22px; z-index: 6; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(11, 6, 4, .85); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 13.5px/1 var(--sans); color: var(--gold-hi); cursor: pointer; }
.rs-hist-row { border-top: 1px solid rgba(239, 90, 70, .2); border-bottom: 0; }
.rs-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rs-tg { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 11px; border-radius: 10px; background: rgba(19, 15, 10, .7); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.rs-tg input { position: absolute; opacity: 0; pointer-events: none; }
.rs-tg i { position: relative; flex: none; width: 36px; height: 22px; border-radius: 999px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .25s; }
.rs-tg i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ivory-2); transition: transform .3s var(--ease), background .25s; }
.rs-tg input:checked + i { background: linear-gradient(180deg, #f2664f, #b3321f); }
.rs-tg input:checked + i::after { transform: translateX(14px); background: #fff; }
.rs-tg input:focus-visible + i { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.rs-tg span { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 11.5px; line-height: 1.3; color: var(--ivory-3); }
.rs-tg span b { font: 700 14px/1.1 var(--sans); color: var(--ivory); }
.rs-buy { display: flex; flex-direction: column; gap: 8px; }
.rs-buy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rs-bc { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 11px 11px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: linear-gradient(160deg, rgba(60, 18, 12, .6), rgba(19, 10, 7, .8)); color: var(--ivory); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.rs-bc:hover { border-color: #ff9a85; box-shadow: 0 0 22px -8px rgba(239, 90, 70, .8); }
.rs-bc:disabled { opacity: .45; pointer-events: none; }
.rs-bc b { font: 700 14px/1.2 var(--sans); }
.rs-bc span { font-size: 11.5px; line-height: 1.35; color: var(--ivory-3); }
.rs-bc em { margin-top: 2px; font: 700 12.5px/1.2 var(--sans); font-style: normal; color: var(--gold-hi); font-variant-numeric: tabular-nums; }

/* ───────── 허브 /hash ───────── */
.hh-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.hh-games li:first-child { grid-column: span 2; grid-row: span 2; }
.hh-card { position: relative; display: block; height: 100%; min-height: 250px; overflow: hidden; isolation: isolate; border-radius: 14px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; }
.hh-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 40%); transition: transform 1s var(--ease); }
.hh-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 6, 4, .97) 0%, rgba(8, 6, 4, .8) 30%, rgba(8, 6, 4, .1) 64%, rgba(8, 6, 4, .3) 100%); }
.hh-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(246, 226, 164, 0); transition: box-shadow .35s; pointer-events: none; }
.hh-card:hover img { transform: scale(1.06); }
.hh-card:hover::after, .hh-card:focus-visible::after { box-shadow: inset 0 0 0 1px rgba(246, 226, 164, .75), inset 0 0 50px -20px rgba(217, 177, 101, .5); }
.hh-tags { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hh-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; 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); }
.hh-tag.red { background: var(--seal); box-shadow: none; color: #fff; }
.hh-live { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(8, 6, 4, .7); font: 500 12px/1 var(--sans); color: var(--ivory-2); }
.hh-live b { color: var(--ivory); font-weight: 700; font-variant-numeric: tabular-nums; }
.hh-cap { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.hh-t { font: 700 22px/1.2 var(--serif); letter-spacing: -.03em; color: var(--ivory); text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.hh-d { font-size: 13.5px; line-height: 1.5; color: var(--ivory-2); }
.hh-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 2px; font-size: 12.5px; color: var(--ivory-3); }
.hh-meta b { color: var(--gold-hi); font-weight: 700; }
.hh-go { display: none; }
.hh-games li:first-child .hh-card { min-height: 520px; }
.hh-games li:first-child .hh-t { font-size: clamp(30px, 2.8vw, 40px); }
.hh-games li:first-child .hh-d { max-width: 30em; font-size: 15px; }
.hh-games li:first-child .hh-go { display: inline-flex; align-self: flex-start; margin-top: 10px; }
.hh-games li:first-child .hh-cap { left: 26px; right: 26px; bottom: 24px; }
.hh-games li:first-child .hh-meta { font-size: 13.5px; }

/* 실시간 큰 당첨 띠 */
.hh-tick { display: flex; align-items: center; gap: 18px; height: 54px; margin-top: 20px; padding: 0 18px; overflow: hidden; border-radius: 12px; background: linear-gradient(90deg, rgba(217, 177, 101, .1), rgba(19, 15, 10, .7)); box-shadow: inset 0 0 0 1px var(--line); }
.hh-tick-l { flex: none; display: inline-flex; align-items: center; gap: 9px; font: 700 14px/1 var(--sans); color: var(--ivory); }
.hh-tick-tr { position: relative; flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.hh-tick-list { display: flex; gap: 40px; width: max-content; margin: 0; padding: 0 40px 0 0; list-style: none; animation: hhMarq 60s linear infinite; }
.hh-tick-list li { white-space: nowrap; font-size: 14px; color: var(--ivory-2); }
.hh-tick-list b { color: var(--ivory); font-weight: 600; }
.hh-tick-list span { margin: 0 6px; color: var(--ivory-3); }
.hh-tick-list em { font-style: normal; font-weight: 800; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.hh-tick-list i { margin-left: 6px; font-style: normal; font-size: 12.5px; color: #ff9a85; font-weight: 700; }
@keyframes hhMarq { to { transform: translateX(-50%); } }
.hh-wins .dt td:first-child { color: var(--ivory-3); }
.hh-wins .hh-g { display: inline-flex; min-height: 40px; align-items: center; gap: 9px; color: var(--ivory); text-decoration: none; }
.hh-wins .hh-g img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.hh-wins .x { font-weight: 800; color: var(--champagne); }
.hh-wins .x.hot { color: #ff8a73; }
.hh-wins .pay { font-weight: 800; color: var(--gold-hi); }
.hh-tiles { --cols: 4; margin-bottom: 14px; }

/* 공정성 설명 + 직접 검증 */
.hh-fair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 16px; align-items: start; }
.hh-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.hh-step { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: 12px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); }
.hh-step-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(217, 177, 101, .1); box-shadow: inset 0 0 0 1px var(--line-2); }
.hh-step h3 { margin: 0; font: 700 16.5px/1.35 var(--serif); color: var(--champagne); }
.hh-step p { margin: 5px 0 0; font-size: 14px; line-height: 1.7; color: var(--ivory-2); }
.hh-step code { padding: 1px 6px; border-radius: 4px; background: rgba(217, 177, 101, .1); font: 500 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--gold-hi); }
.hh-ver { padding: 22px; }
.hh-ver .fld-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.hh-ver .fld input, .hh-ver .fld select { font-size: 15px; }
.hh-ver .fld input.mono { font: 500 14px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hh-ver-btns { display: flex; gap: 8px; margin: 4px 0 16px; }
.hh-ver-btns .btn { flex: 1; }
.hh-out { display: grid; gap: 8px; margin: 0; }
.hh-out > div { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border-radius: 9px; background: #0a0705; box-shadow: inset 0 0 0 1px var(--line); }
.hh-out dt { font-size: 12px; color: var(--ivory-3); }
.hh-out dd { margin: 0; font: 500 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ivory); word-break: break-all; }
.hh-out .res { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--line-2), 0 0 40px -18px rgba(217, 177, 101, .7); background: linear-gradient(180deg, rgba(217, 177, 101, .1), #0a0705); }
.hh-out .res dd { font: 800 24px/1.25 var(--sans); color: var(--gold-hi); }
.hh-out .res dd small { display: block; font: 500 13px/1.5 var(--sans); color: var(--ivory-2); }
.hh-out .flash { animation: hgRow .9s var(--ease); }

/* ───────── 반응형 ───────── */
@media (max-width: 1240px) {
  .hg-ph-in { grid-template-columns: auto minmax(0, 1fr); }
  .hg-ph-stats { grid-column: 1 / -1; justify-content: flex-start; }
  .hg-ph-stats > div:first-child { padding-left: 0; }
  .hg-play { grid-template-columns: 320px minmax(0, 1fr); }
  .hh-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hh-games li:first-child { grid-column: span 3; grid-row: auto; }
  .hh-games li:first-child .hh-card { min-height: 380px; }
}
@media (max-width: 980px) {
  .hg-play { grid-template-columns: minmax(0, 1fr); }
  .hg-stage { order: -1; min-height: 0; }
  .hg-fair-kv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hg-fair-kv > .wide { grid-column: 1 / -1; }
  .hg-prev dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hh-fair { grid-template-columns: minmax(0, 1fr); }
  .hh-tiles { --cols: 2; }
  .hh-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hh-games li:first-child { grid-column: span 2; }
}
@media (max-width: 760px) {
  .hg-ph { padding: 22px 0 20px; }
  .hg-ph-in { gap: 14px 16px; }
  .hg-ph-art { width: 72px; height: 72px; border-radius: 14px; }
  .hg-ph .ph-t { font-size: 30px; }
  .hg-ph .ph-d { font-size: 13.5px; line-height: 1.6; }
  .hg-ph-stats > div { padding: 0 14px; }
  .hg-ph-stats dd { font-size: 17px; }
  .hg-ph-stats dt { font-size: 12px; }
  .hg-nav { margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); }
  .hg-nav a { padding: 12px 10px 11px; font-size: 14px; }
  .hg { padding-top: 14px; }
  .hg-play { gap: 12px; }
  .hg-panel { padding: 16px 14px; border-radius: 14px; }
  .hg-quick button, .hg-seg button { height: 40px; }
  .hg-stage { border-radius: 14px; }
  .hg-stage-top { padding: 10px 12px; min-height: 48px; }
  .hg-stage-ft div { padding: 10px 4px; }
  .hg-stage-ft dd { font-size: 14px; }
  .hg-pop { font-size: 19px; padding: 12px 18px; }
  .hg-fair { padding: 16px 14px; }
  .hg-fair-act { width: 100%; justify-content: space-between; }
  .hg-fair-kv { grid-template-columns: minmax(0, 1fr); }
  .hg-fair-kv > div:last-child:not(.wide) { flex-direction: row; justify-content: space-between; align-items: center; }
  .hg-prev dl { grid-template-columns: minmax(0, 1fr); }
  .hg-rules-b { padding: 0 16px 4px; }
  .hg-dt .hide-m, .hh-dt .hide-m { display: none; }
  .hh-dt th, .hh-dt td { padding: 10px 9px; font-size: 13px; }
  .hh-wins .hh-g img { width: 24px; height: 24px; }
  .hg-dt th, .hg-dt td { padding: 10px 9px; font-size: 13px; }
  .hg-dt td.wrap-txt { min-width: 0; white-space: normal; font-size: 12.5px; }

  .cr-board { min-height: 300px; }
  .cr-mid { top: 26%; }
  .cr-mid b { font-size: 52px; }
  .cr-stage.is-bet .cr-mid b { font-size: 38px; }
  .cr-mid span { font-size: 13px; }
  .cr-count { top: calc(26% + 112px); width: 180px; margin-left: -90px; }
  .cr-outs { right: 8px; top: 8px; gap: 4px; }
  .cr-outs li { min-width: 0; padding: 4px 8px; font-size: 11.5px; }
  .cr-outs li:nth-child(n + 4) { display: none; }

  .dc-roll { padding: 26px 12px 4px; }
  .dc-dice i { width: 36px; height: 36px; }
  .dc-num { font-size: 68px; }
  .dc-track { padding: 50px 22px 28px; }
  .lb-board { min-height: 300px; }
  .lb-mid b { font-size: 64px; }
  .lb-rings i { width: 220px; margin-left: -110px; }
  .mn-wrap { padding: 16px 12px 14px; }
  .mn-grid { gap: 7px; }
  .pk-board { min-height: 0; padding: 10px 8px 14px; }
  .pk-board canvas { min-height: 0; height: 300px; flex: none; }
  .pk-slot { height: 26px; border-radius: 4px; }
  .pk-slots { gap: 2px; }

  .rd-top { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; }
  .rd-clock { grid-template-columns: 48px auto; column-gap: 10px; }
  .rd-ring { width: 48px; height: 48px; }
  .rd-left { font-size: 24px; }
  .rd-price { font-size: 21px; }
  .rd-px .rd-sub { font-size: 11.5px; }
  .rd-chart { min-height: 250px; }
  .oe-judge { padding: 14px 18px; }
  .oe-judge .ball { width: 60px; height: 60px; font-size: 30px; }
  .oe-road { padding: 10px 12px; }
  .oe-beads li { width: 28px; height: 28px; font-size: 13px; }
  .ud-live { left: 10px; top: 8px; padding: 7px 10px; }
  .ud-p { height: 80px; }

  .hl-table { gap: 10px; padding: 22px 12px 14px; }
  .hl-side { padding: 14px 4px; gap: 6px; }
  .hl-side b { font-size: 20px; }
  .hl-side em { font-size: 14px; }
  .hl-card { width: 120px; }
  .hl-cap { font-size: 13px; }
  .hl-trail { padding: 4px 12px 16px; min-height: 84px; }
  .hl-mini { width: 40px; height: 56px; font-size: 15px; }

  .rs-hud { padding: 10px 10px 4px; gap: 6px; }
  .rs-hud-i { padding: 8px 4px; }
  .rs-hud-i b { font-size: 17px; }
  .rs-board { padding: 8px 10px 12px; }
  .rs-grid { gap: 5px; }
  .rs-cell { border-radius: 10px; }
  .rs-banner { min-width: 0; width: calc(100% - 40px); padding: 18px 16px; }
  .rs-banner b { font-size: 26px; }
  .rs-skip { right: 14px; bottom: 14px; }

  .hh-games { gap: 10px; }
  .hh-card { min-height: 210px; }
  .hh-games li:first-child .hh-card { min-height: 320px; }
  .hh-games li:first-child .hh-cap { left: 18px; right: 18px; bottom: 18px; }
  .hh-games li:first-child .hh-d { font-size: 13.5px; }
  .hh-tags { left: 10px; right: 10px; top: 10px; }
  .hh-live { display: none; }
  .hh-games li:first-child .hh-live { display: inline-flex; }
  .hh-cap { left: 12px; right: 12px; bottom: 12px; gap: 4px; }
  .hh-t { font-size: 17px; }
  .hh-d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; }
  .hh-meta { gap: 2px 10px; font-size: 11.5px; }
  .hh-tick { height: 48px; gap: 12px; padding: 0 12px; }
  .hh-tick-l { font-size: 13px; }
  .hh-tick-list li { font-size: 13px; }
  .hh-step { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .hh-step-n { width: 40px; height: 40px; }
  .hh-ver { padding: 18px 16px; }
  .hh-ver .fld-row { grid-template-columns: minmax(0, 1fr); }
  .hh-out .res dd { font-size: 20px; }
}
.hg-hist:empty { -webkit-mask-image: none; mask-image: none; }
.hg-hist:empty::before { content: attr(data-empty); font-size: 12.5px; color: var(--ivory-3); white-space: nowrap; }
.pk-slot { overflow: hidden; white-space: nowrap; }

.pk-slots.narrow .pk-slot { writing-mode: vertical-rl; height: 46px; padding: 3px 0; letter-spacing: 0; }
@media (max-width: 760px) { .pk-slots.narrow .pk-slot { height: 46px; } }
@media (max-width: 760px) {
  .hg-stage-ft { display: flex; }
  .hg-stage-ft div { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .hg-stage-ft div { padding: 10px 3px; }
  .hg-stage-ft dd { font-size: 12.5px; }
}
@media (max-width: 440px) {
  /* 좁은 휴대폰: 크래시 캐시아웃 목록은 윗줄 두 칸, 하이로우는 카드를 위에 두고 높게/낮게를 아래 두 칸으로 */
  .cr-outs { flex-direction: row; left: 8px; right: 8px; top: 8px; justify-content: flex-end; }
  .cr-outs li { flex: 0 1 50%; }
  .cr-outs li:nth-child(n + 3) { display: none; }
  .hl-table { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .hl-table .hl-deck { grid-column: 1 / -1; order: -1; }
  .hl-side { padding: 12px 4px; }
}
