/* =========================================================
   팩팡 데모 — 카드 뒷면 네이비 + 에너지 옐로 + 슬랩 라벨
   ========================================================= */
@font-face {
  font-family: 'SUIT Variable';
  font-weight: 100 900;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/variable/woff2/SUIT-Variable.woff2') format('woff2-variations');
}

:root {
  --n-950: #050B22;
  --n-900: #08112E;
  --n-850: #0C183B;
  --n-800: #112050;
  --n-700: #182C66;
  --n-600: #22397E;
  --ink: #EEF2FF;
  --ink-2: #B4BFE2;
  --ink-3: #7D8BBA;
  --ink-4: #56628F;
  --line: rgba(150, 175, 255, .13);
  --line-2: rgba(150, 175, 255, .24);
  --volt: #FFD23F;
  --volt-2: #FFE07A;
  --volt-ink: #1C1500;
  --live: #FF3D5A;
  --ok: #3BE0A4;
  --warn: #FFB547;
  --gold: #E8B64C;
  --label: #EEF1F7;
  --label-ink: #141821;
  --holo: linear-gradient(115deg, #FF6FB5, #FFD23F 25%, #5EF0C8 50%, #6EA8FF 75%, #C77DFF);
  --f-body: 'SUIT Variable', 'SUIT', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --f-disp: 'Black Han Sans', var(--f-body);
  --f-cond: 'Barlow Condensed', 'Arial Narrow', var(--f-body);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --hdr: 60px;
  --gut: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(56, 92, 214, .28), transparent 62%),
    radial-gradient(800px 500px at -10% 30%, rgba(33, 56, 140, .22), transparent 60%),
    var(--n-900);
  background-attachment: fixed;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; border-radius: 6px; }
.ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1340px; margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { font: 700 12.5px/1 var(--f-cond); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.h3 { font-size: 16.5px; font-weight: 800; }
.sec { margin-top: 40px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-h p { color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.more { display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.more:hover { color: var(--volt); }
.page { padding-top: 24px; padding-bottom: 72px; min-height: 60vh; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-h p { color: var(--ink-2); margin-top: 6px; max-width: 640px; }

/* ---------- 헤더 ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(8, 17, 46, .86); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 18px; height: var(--hdr); }
.logo { display: flex; align-items: center; gap: 9px; flex: none; }
.logo-mark { width: 24px; height: 32px; }
.logo-ko { font-family: var(--f-disp); font-size: 25px; line-height: 1; color: var(--volt); letter-spacing: -.01em; }
.logo-en { display: block; font: 700 10.5px/1 var(--f-cond); letter-spacing: .24em; color: var(--ink-3); margin-top: 3px; }
.logo-tag { font: 700 10px/1 var(--f-cond); color: var(--ink-4); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 4px; letter-spacing: .08em; }
.nav { display: flex; gap: 2px; margin-left: 6px; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav a.on { color: var(--ink); background: rgba(255, 255, 255, .08); }
.nav .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(255, 61, 90, .25); animation: pulse 1.6s infinite; }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.pts { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-weight: 800; font-size: 13px; white-space: nowrap; }
.pts .ic { width: 15px; height: 15px; color: var(--volt); }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--ink-2); flex: none; }
.icon-btn:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
.icon-btn .ic { width: 21px; height: 21px; }
.dot-n { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--live); color: #fff; font: 700 11px/18px var(--f-cond); text-align: center; letter-spacing: .02em; }
.hdr-demo { display: none; }
.me-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 4px; border-radius: 999px; }
.me-btn:hover { background: rgba(255, 255, 255, .07); }
.me-btn b { font-size: 13.5px; }

/* 오늘의 히트 티커 */
.ticker { position: relative; height: 38px; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #0A1642, #08112E); }
.ticker-label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 0 14px 0 var(--gut); background: #0A1642; font: 700 13px/1 var(--f-cond); letter-spacing: .16em; color: var(--volt); }
.ticker-label .ic { width: 15px; height: 15px; }
.ticker-label::after { content: ''; position: absolute; top: 0; bottom: 0; right: -36px; width: 36px; background: linear-gradient(90deg, #0A1642, transparent); pointer-events: none; }
.ticker-track { display: flex; align-items: center; gap: 34px; height: 100%; width: max-content; padding-left: 168px; animation: tick 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tk b { color: var(--ink); font-weight: 700; }
.tk .t { font: 600 12.5px var(--f-cond); color: var(--ink-4); letter-spacing: .04em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* 하단 탭바 (모바일) */
.bnav { display: none; }

/* ---------- 버튼 · 칩 · 탭 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 800; font-size: 15px; white-space: nowrap; transition: transform .12s ease, background-color .15s, box-shadow .15s, opacity .15s; user-select: none; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn .ic { width: 18px; height: 18px; }
.btn-volt { background: var(--volt); color: var(--volt-ink); box-shadow: 0 8px 24px -8px rgba(255, 210, 63, .55); }
.btn-volt:hover { background: var(--volt-2); }
.btn-live { background: var(--live); color: #fff; box-shadow: 0 8px 24px -8px rgba(255, 61, 90, .6); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-line { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover { color: var(--ink); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-lg { height: 54px; padding: 0 24px; font-size: 16.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-off { opacity: .42; pointer-events: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.chip:hover { color: var(--ink); }
.chip.on { background: var(--ink); color: var(--n-900); box-shadow: none; }
.chip .ic { width: 15px; height: 15px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { min-height: 40px; padding: 6px 8px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); line-height: 1.25; }
.seg button small { display: block; font-weight: 600; font-size: 11.5px; color: var(--ink-3); }
.seg button.on { background: var(--n-600); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.seg button.on small { color: var(--ink-2); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 12px 12px; font-weight: 800; font-size: 14.5px; color: var(--ink-3); white-space: nowrap; }
.tabs button:hover, .tabs a:hover { color: var(--ink-2); }
.tabs .on { color: var(--ink); }
.tabs .on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--volt); }
.tabs .cnt { font: 700 12px var(--f-cond); color: var(--ink-3); }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 800; white-space: nowrap; background: rgba(255, 255, 255, .08); color: var(--ink-2); }
.badge.b-volt { background: var(--volt); color: var(--volt-ink); }
.badge.b-live { background: var(--live); color: #fff; }
.badge.b-ok { background: rgba(59, 224, 164, .14); color: var(--ok); }
.badge.b-warn { background: rgba(255, 181, 71, .14); color: var(--warn); }
.badge .ic { width: 13px; height: 13px; }

.live-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--live); color: #fff; font: 700 13px/1 var(--f-cond); letter-spacing: .1em; }
.live-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 90, .55); } 70% { box-shadow: 0 0 0 7px rgba(255, 61, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 61, 90, 0); } }

/* ---------- 패널 ---------- */
.panel { background: linear-gradient(180deg, rgba(27, 46, 104, .5), rgba(16, 30, 72, .5)); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 0; }
.panel-b { padding: 14px 18px 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* 폼 */
.field { display: grid; gap: 7px; }
.field > label, .field > .lbl { font-weight: 800; font-size: 13.5px; color: var(--ink-2); }
.input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .22); color: var(--ink); outline: none; }
.input:focus { border-color: var(--volt); box-shadow: 0 0 0 3px rgba(255, 210, 63, .18); }
.input::placeholder { color: var(--ink-4); }
.hint { font-size: 12.5px; color: var(--ink-3); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--volt); flex: none; }
.toggle { position: relative; width: 44px; height: 26px; flex: none; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle i { position: absolute; inset: 0; border-radius: 13px; background: rgba(255, 255, 255, .14); transition: background .2s; }
.toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + i { background: var(--ok); }
.toggle input:checked + i::after { transform: translateX(18px); }
.toggle input:focus-visible + i { outline: 2px solid var(--volt); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.stepper button { width: 42px; height: 100%; display: grid; place-items: center; color: var(--ink-2); }
.stepper button:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.stepper input { width: 48px; height: 100%; border: 0; background: transparent; text-align: center; font-weight: 800; font-size: 16px; -moz-appearance: textfield; outline: none; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- 트레이너 ---------- */
.av { --s: 32px; width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-weight: 900; font-size: calc(var(--s) * .44); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: 0 0 0 2px var(--n-850), 0 0 0 3.5px var(--ring); vertical-align: middle; }
.lv { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border-radius: 5px; font: 700 12px/1 var(--f-cond); letter-spacing: .03em; color: var(--ring); background: color-mix(in srgb, var(--ring) 14%, transparent); vertical-align: middle; white-space: nowrap; }
.ball { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--ring); }
.ball i { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(180deg, var(--ring) 0 46%, #10162e 46% 54%, #fff 54%); box-shadow: 0 0 0 1.5px #10162e; }

/* ---------- 등급 칩 ---------- */
.rchip { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 20px; padding: 0 6px; border-radius: 5px; font: 700 12.5px/1 var(--f-cond); letter-spacing: .05em; color: #10162E; background: #AEB9D6; vertical-align: middle; flex: none; }
.rc-C, .rc-U { background: rgba(255, 255, 255, .1); color: var(--ink-3); }
.rc-R { background: #8EA0C8; }
.rc-RR { background: #8C7BFF; color: #fff; }
.rc-AR { background: #2FD3C7; }
.rc-SR { background: linear-gradient(115deg, #C9D3E8, #FFFFFF 45%, #AFBCD6); }
.rc-SAR { background: var(--holo); color: #1A0F2E; }
.rc-UR { background: linear-gradient(115deg, #B8862B, #FFE7A0 45%, #D9A53A); color: #2A1C00; }
.rc-MUR { background: #0B0B0F; color: #FFD86B; box-shadow: inset 0 0 0 1.5px #FFD86B; }

/* =========================================================
   포켓몬 카드 (CSS 아트) — 공식 이미지 대신 속성 엠블럼
   ========================================================= */
.tcg { --w: 110px; width: var(--w); aspect-ratio: 63 / 88; position: relative; flex: none; border-radius: 5.2% / 3.8%; padding: calc(var(--w) * .043); container-type: inline-size; background: linear-gradient(160deg, #F1F3F8, #C2CAD9 55%, #E9ECF3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 16px rgba(0, 0, 0, .38); overflow: hidden; isolation: isolate; }
.tcg-in { position: relative; height: 100%; border-radius: 3.5% / 2.5%; overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(170deg, color-mix(in srgb, var(--c2) 55%, #fff), color-mix(in srgb, var(--c1) 40%, #fff)); }
.tcg-head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: baseline; gap: 3cqw; padding: 4.5cqw 5cqw 2.5cqw; color: #10131C; line-height: 1.15; }
.tcg-head b { font-size: 8.6cqw; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tcg-head i { font: 700 6.8cqw/1 var(--f-cond); font-style: normal; white-space: nowrap; flex: none; }
.tcg-art { position: relative; margin: 0 5cqw; height: 46%; flex: none; display: grid; place-items: center; border: 1.4cqw solid rgba(255, 255, 255, .85); border-radius: 1.6cqw; overflow: hidden; background: radial-gradient(circle at 50% 62%, var(--c2), var(--c1) 72%); box-shadow: 0 .8cqw 1.6cqw rgba(0, 0, 0, .18); }
.tcg-art::before { content: ''; position: absolute; inset: -30%; background: repeating-conic-gradient(from 8deg, rgba(255, 255, 255, .16) 0 7deg, transparent 7deg 20deg); }
.tcg-emb { position: relative; width: 44%; height: auto; fill: rgba(255, 255, 255, .94); filter: drop-shadow(0 1.2cqw 2cqw rgba(0, 0, 0, .28)); }
.tcg-txt { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 3.4cqw; padding: 3cqw 8cqw; }
.tcg-txt span { height: 3.2cqw; border-radius: 2cqw; background: rgba(16, 19, 28, .17); }
.tcg-txt span:nth-child(2) { width: 76%; }
.tcg-txt span:nth-child(3) { width: 52%; }
.tcg-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 2cqw; padding: 2cqw 5cqw 4.5cqw; font: 700 6.4cqw/1 var(--f-cond); color: rgba(16, 19, 28, .72); letter-spacing: .03em; }
.tcg-foot em { font-style: normal; padding: 1.2cqw 2.4cqw; border-radius: 1.4cqw; background: #10131C; color: #fff; }
.tcg-foot span { white-space: nowrap; }
.r-RR .tcg-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .45) 48%, transparent 62%); mix-blend-mode: overlay; }

/* 풀아트 (AR 이상) */
.tcg.full .tcg-art { position: absolute; inset: 0; margin: 0; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.tcg.full .tcg-emb { width: 62%; margin-top: 4%; }
.tcg.full .tcg-head, .tcg.full .tcg-foot { color: #fff; text-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .55); }
.tcg.full .tcg-head { background: linear-gradient(rgba(6, 10, 30, .5), transparent); }
.tcg.full .tcg-foot { background: linear-gradient(transparent, rgba(6, 10, 30, .45)); }
.r-UR.full .tcg-head, .r-UR.full .tcg-foot { background: none; }
.tcg.full .tcg-foot { margin-top: auto; }
.tcg.full .tcg-foot em { background: rgba(255, 255, 255, .92); color: #10131C; text-shadow: none; }
.r-AR .tcg-art { background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c2) 80%, #fff), transparent 55%), radial-gradient(circle at 75% 80%, color-mix(in srgb, var(--c1) 70%, #7FE3FF), transparent 60%), linear-gradient(165deg, var(--c2), var(--c1)); }
.tcg.r-SR { background: linear-gradient(160deg, #E8ECF5, #9FAAC2 50%, #F5F7FB); }
.r-SR .tcg-art { background: linear-gradient(160deg, var(--c1), color-mix(in srgb, var(--c1) 60%, #0b1030)); }
.r-SR .tcg-art::before { background: repeating-linear-gradient(-35deg, rgba(255, 255, 255, .2) 0 1.4cqw, transparent 1.4cqw 4cqw); }
.r-SAR .tcg-art { background: radial-gradient(circle at 25% 20%, var(--c2), transparent 50%), radial-gradient(circle at 85% 75%, #FF7AC6, transparent 45%), radial-gradient(circle at 15% 90%, #5EF0C8, transparent 40%), linear-gradient(160deg, var(--c1), #1A1F45); }
.r-SAR .tcg-art::before { background: repeating-conic-gradient(from 0deg at 50% 60%, rgba(255, 255, 255, .14) 0 4deg, transparent 4deg 14deg); }
.tcg.r-UR { background: linear-gradient(160deg, #F7DE8E, #B98A2E 50%, #FFF1BE); }
.r-UR .tcg-art { background: radial-gradient(circle at 50% 55%, #FFF0B8, #D7A23E 55%, #7A5713); }
.r-UR .tcg-emb { fill: #6B4A0E; filter: drop-shadow(0 1cqw 0 rgba(255, 240, 190, .6)); }
.r-UR .tcg-head, .r-UR .tcg-foot { color: #3A2700; text-shadow: 0 .4cqw 0 rgba(255, 245, 210, .7); }
.tcg.r-MUR { background: linear-gradient(160deg, #2A2A30, #0A0A0D 50%, #3A3A44); }
.r-MUR .tcg-art { background: radial-gradient(circle at 50% 50%, #3B2A0B, #050506 70%); }
.r-MUR .tcg-emb { fill: #FFD86B; filter: drop-shadow(0 0 3cqw rgba(255, 216, 107, .7)); }
.r-MUR .tcg-head, .r-MUR .tcg-foot { color: #FFD86B; }

/* 포일 (반짝임) */
.tcg-foil { position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: color-dodge; background-size: 260% 260%; background-position: var(--mx, 30%) var(--my, 30%); opacity: .35; }
.r-RR .tcg-foil { opacity: .25; background-image: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .7) 48%, transparent 60%); }
.r-AR .tcg-foil { opacity: .3; background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .12) 0 2px, transparent 2px 5px), linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 47%, transparent 64%); }
.r-SR .tcg-foil { opacity: .5; background-image: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .85) 46%, rgba(200, 220, 255, .3) 52%, transparent 66%); }
.r-SAR .tcg-foil, .r-MUR .tcg-foil { opacity: .55; background-image: linear-gradient(115deg, transparent 22%, rgba(255, 255, 255, .55) 44%, transparent 60%), repeating-linear-gradient(-55deg, #ff5fa2 0 5%, #ffd23f 10%, #5ef0c8 15%, #6ea8ff 20%, #c77dff 25%, #ff5fa2 30%); }
.r-UR .tcg-foil { opacity: .55; background-image: linear-gradient(115deg, transparent 25%, rgba(255, 244, 200, .9) 45%, transparent 64%), repeating-linear-gradient(60deg, rgba(255, 220, 120, .35) 0 2%, transparent 2% 5%); }
.tcg.shine .tcg-foil, .tcg:hover .tcg-foil { animation: foil 4.5s ease-in-out infinite alternate; }
.tcg.foil-ptr .tcg-foil { animation: none; }
@keyframes foil { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

/* 카드 뒷면 */
.tcg-back { background: #1B3482; padding: calc(var(--w) * .05); }
.tcg-back .tcg-in { background: conic-gradient(from 20deg at 50% 50%, #1C3A9C, #2E5BD0 12%, #1C3A9C 25%, #2E5BD0 37%, #1C3A9C 50%, #2E5BD0 62%, #1C3A9C 75%, #2E5BD0 87%, #1C3A9C); display: grid; place-items: center; }
.tcg-back i { width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0 18%, #10162E 18% 26%, transparent 26%), linear-gradient(180deg, var(--volt) 0 46%, #10162E 46% 54%, #F2F4FA 54%); box-shadow: 0 0 0 1.4cqw #10162E, 0 0 6cqw rgba(255, 210, 63, .45); }

/* 크기 */
.sz-xs { --w: 42px; }
.sz-sm { --w: 64px; }
.sz-md { --w: 110px; }
.sz-lg { --w: 180px; }
@container (max-width: 72px) {
  .tcg-head i, .tcg-txt, .tcg-foot span { display: none; }
  .tcg-head b { font-size: 12cqw; }
  .tcg-foot em { font-size: 13cqw; padding: 2cqw 4cqw; }
  .tcg-foot { justify-content: flex-end; }
}

/* 3D 기울기 */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease-out; will-change: transform; }

/* =========================================================
   그레이딩 슬랩 — 명예의 전당의 기본 단위
   ========================================================= */
.slab { --w: 170px; width: var(--w); flex: none; position: relative; container-type: inline-size; }
.slab-c { position: relative; padding: 4.6cqw; border-radius: 6cqw; background: linear-gradient(160deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .06) 38%, rgba(255, 255, 255, .14)); border: 1px solid rgba(255, 255, 255, .38); box-shadow: inset 0 0 0 1.6cqw rgba(255, 255, 255, .04), 0 16px 34px -10px rgba(0, 0, 0, .6); }
.slab-c::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .17) 44%, transparent 56%); }
.slab-label { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 3cqw; align-items: center; margin-bottom: 4.4cqw; padding: 2.6cqw 3.4cqw; border-radius: 2cqw; background: var(--label); color: var(--label-ink); box-shadow: inset 0 0 0 1.3cqw var(--live); }
.sl-l1 { font: 700 5.4cqw/1.25 var(--f-cond); letter-spacing: .05em; text-transform: uppercase; color: #565E70; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-l2 { font-size: 7.6cqw; font-weight: 900; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-l3 { font: 700 5.4cqw/1.25 var(--f-cond); letter-spacing: .05em; color: #565E70; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-grade { grid-column: 2; grid-row: 1 / 4; text-align: right; }
.sl-grade b { display: block; font: 700 11.5cqw/1 var(--f-cond); letter-spacing: .02em; }
.sl-grade span { font: 700 5.2cqw/1 var(--f-cond); color: #565E70; letter-spacing: .04em; }
.slab-win { display: grid; place-items: center; padding: 5.5cqw 8cqw; border-radius: 3cqw; background: rgba(4, 9, 28, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.slab-win .tcg { --w: 100%; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
.slab-god { position: absolute; top: -8px; right: 10px; padding: 3px 8px; border-radius: 6px; background: var(--holo); color: #1A0F2E; font: 700 11.5px/1.2 var(--f-cond); letter-spacing: .1em; }
.slab[role='button'] { cursor: pointer; transition: transform .2s ease; }
.slab[role='button']:hover { transform: translateY(-4px); }

/* =========================================================
   상품 아트 — 부스터팩 톱니 · 박스 · 묶음
   ========================================================= */
.pa { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: var(--r-md); background: radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--c2) 38%, transparent), transparent 62%), radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--c1) 70%, transparent), transparent 70%), #0A1438; }
.pk { width: 40%; aspect-ratio: 5 / 8.4; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); transform: rotate(-4deg); container-type: inline-size; }
.pk-body { position: relative; height: 100%; clip-path: var(--crimp); background: linear-gradient(165deg, color-mix(in srgb, var(--c2) 85%, #fff) 0%, var(--c2) 28%, var(--c1) 78%); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 15% 8% 13%; text-align: center; overflow: hidden; }
.pk-body::before { content: ''; position: absolute; left: 0; right: 0; top: 7%; height: 1.5%; background: rgba(255, 255, 255, .35); }
.pk-body::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 44%, transparent 56%); }
.pk-ver { position: relative; z-index: 1; padding: 2cqw 5cqw; border-radius: 99px; background: rgba(0, 0, 0, .35); color: #fff; font-size: 7.5cqw; font-weight: 800; white-space: nowrap; }
.pk-emb { position: relative; z-index: 1; width: 52%; fill: rgba(255, 255, 255, .95); filter: drop-shadow(0 2cqw 3cqw rgba(0, 0, 0, .35)); }
.pk-name { position: relative; z-index: 1; font: 700 10.5cqw/1 var(--f-cond); letter-spacing: .04em; color: #fff; text-shadow: 0 1cqw 2cqw rgba(0, 0, 0, .4); }
.pk-sub { position: relative; z-index: 1; font: 700 6cqw/1 var(--f-cond); letter-spacing: .2em; color: rgba(255, 255, 255, .7); }
.pk-fan { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.pk-fan .pk { position: absolute; width: 34%; }
.pk-fan .f1 { transform: translateX(-42%) rotate(-14deg); }
.pk-fan .f2 { transform: translateX(42%) rotate(12deg); }
.pk-fan .f3 { transform: translateY(-3%) rotate(-1deg); z-index: 2; }
.pa-count { position: absolute; left: 10px; bottom: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(4, 9, 28, .78); font: 700 13px/1 var(--f-cond); letter-spacing: .08em; color: var(--volt); }
.bx { width: 68%; aspect-ratio: 1.28; transform: perspective(600px) rotateX(10deg) rotateY(-18deg); filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .5)); container-type: inline-size; }
.bx-front { position: relative; height: 100%; border-radius: 3cqw; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4cqw; text-align: center; background: linear-gradient(160deg, color-mix(in srgb, var(--c2) 80%, #fff) 0%, var(--c2) 30%, var(--c1) 85%); box-shadow: inset 0 3cqw 0 rgba(255, 255, 255, .22), inset -4cqw 0 0 rgba(0, 0, 0, .18); }
.bx-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .3) 45%, transparent 58%); }
.bx-front .pk-ver { font-size: 5cqw; }
.bx-emb { width: 24%; fill: rgba(255, 255, 255, .95); filter: drop-shadow(0 1.5cqw 2cqw rgba(0, 0, 0, .3)); }
.bx-front b { font: 700 8cqw/1 var(--f-cond); letter-spacing: .04em; color: #fff; text-shadow: 0 1cqw 2cqw rgba(0, 0, 0, .35); }
.bx-front span { font: 700 4.6cqw/1 var(--f-cond); letter-spacing: .24em; color: rgba(255, 255, 255, .75); }
.pa-single .slab { transform: rotate(-3deg); }
.sup { position: relative; width: 46%; aspect-ratio: .74; container-type: inline-size; }
.sup i { position: absolute; inset: 0; border-radius: 6cqw; background: linear-gradient(160deg, var(--c2), var(--c1)); box-shadow: 0 10px 20px rgba(0, 0, 0, .4); }
.sup i:nth-child(1) { transform: translate(-14%, 6%) rotate(-10deg); opacity: .6; }
.sup i:nth-child(2) { transform: translate(12%, 3%) rotate(8deg); opacity: .8; }
.sup b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 14cqw/1 var(--f-cond); color: rgba(255, 255, 255, .92); letter-spacing: .06em; }

/* =========================================================
   잭팟 게이지
   ========================================================= */
.gauge { position: relative; padding: 16px 16px 14px; border-radius: var(--r-lg); background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 55%, var(--n-800)), var(--n-850) 70%); border: 1px solid var(--line); overflow: hidden; }
.gauge::before { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c2) 35%, transparent), transparent 70%); }
.g-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.g-title { font-weight: 800; font-size: 14px; color: var(--ink-2); }
.g-title i { font-style: normal; margin-left: 6px; font: 700 12.5px var(--f-cond); color: var(--ink-3); letter-spacing: .06em; }
.g-hot { padding: 3px 7px; border-radius: 6px; background: var(--live); color: #fff; font-size: 11.5px; font-weight: 800; animation: blink 1.1s infinite; }
.g-prize { position: relative; display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 15.5px; }
.g-prize .ic { color: var(--volt); width: 17px; height: 17px; }
.g-num { position: relative; display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.g-num b { font: 700 34px/1 var(--f-cond); letter-spacing: .01em; }
.g-num span { font: 700 15px var(--f-cond); color: var(--ink-3); letter-spacing: .06em; }
.g-bar { position: relative; height: 14px; margin-top: 10px; border-radius: 4px; background: rgba(255, 255, 255, .09); -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(2.5% - 2px), transparent calc(2.5% - 2px) 2.5%); mask: repeating-linear-gradient(90deg, #000 0 calc(2.5% - 2px), transparent calc(2.5% - 2px) 2.5%); }
.g-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #FFB000, var(--volt)); transition: width .5s ease; }
.gauge.hot .g-bar i { background: linear-gradient(90deg, #FF7A1A, var(--volt)); box-shadow: 0 0 16px rgba(255, 210, 63, .6); }
.g-meta { position: relative; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 9px; font-size: 12.5px; color: var(--ink-3); }
.g-meta b { color: var(--ink); }
.gauge.compact { padding: 12px 14px; }
.gauge.compact .g-num b { font-size: 26px; }
.gauge.compact .g-prize { font-size: 14px; margin-top: 4px; }

/* =========================================================
   가격
   ========================================================= */
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-size: 18px; font-weight: 900; letter-spacing: -.01em; }
.price b small { font-size: .72em; font-weight: 800; margin-left: 1px; }
.price s { font-size: 13px; color: var(--ink-4); }
.p-off { font-weight: 900; color: var(--live); font-size: 16px; }
.price.is-deal b { color: var(--volt); }
.p-per { font-size: 12.5px; color: var(--ink-3); }

/* =========================================================
   상품 카드
   ========================================================= */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 18px 16px; }
.prod { position: relative; display: flex; flex-direction: column; gap: 10px; }
.prod .pa { transition: transform .25s ease; }
.prod:hover .pa { transform: translateY(-3px); }
.prod-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; z-index: 2; }
.prod-name { font-weight: 800; font-size: 15px; line-height: 1.35; }
.prod-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.prod-live { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.prod-live .ic { width: 14px; height: 14px; color: var(--live); }
.prod-add { position: absolute; right: 10px; top: calc(100% - 10px); }
.prod .q-add { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--volt); color: var(--volt-ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.prod:hover .q-add, .prod .q-add:focus-visible { opacity: 1; transform: none; }
.prod-art { position: relative; }

/* =========================================================
   토스트 · 모달 · 축하
   ========================================================= */
.toasts { position: fixed; z-index: 700; top: calc(var(--hdr) + 50px); right: 18px; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(17, 32, 80, .97); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-size: 14px; animation: toastIn .38s cubic-bezier(.2, .9, .3, 1.2); }
.toast.out { animation: toastOut .3s ease forwards; }
.toast-i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 210, 63, .14); color: var(--volt); flex: none; }
.toast-b { flex: 1; min-width: 0; line-height: 1.45; }
.toast-b b { color: var(--ink); }
.toast-a { flex: none; font-weight: 800; font-size: 13.5px; color: var(--volt); padding: 6px 4px; }
.toast.t-hit { border-color: transparent; background: linear-gradient(rgba(17, 32, 80, .98), rgba(17, 32, 80, .98)) padding-box, var(--holo) border-box; border: 1.5px solid transparent; }
.toast.t-live .toast-i { background: rgba(255, 61, 90, .16); color: var(--live); }
.toast .tcg { --w: 38px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(16px); } }

.modal-bg { position: fixed; inset: 0; z-index: 800; display: grid; place-items: center; padding: 20px; background: rgba(3, 7, 22, .7); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: fade .2s ease; }
.modal-bg.out { animation: fadeOut .2s ease forwards; }
.modal { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; background: var(--n-850); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: pop .3s cubic-bezier(.2, .9, .3, 1.12); }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 0 22px; }
.modal-h h3 { font-size: 18px; font-weight: 800; }
.modal-b { padding: 16px 22px 22px; }
.modal-f { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 8px; padding: 12px 22px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--n-850) 14px); }
.modal-f .btn { flex: 1; }
.modal-x { position: absolute; top: 10px; right: 10px; z-index: 3; }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes sheetIn { from { transform: translateY(100%); } }

.cele { position: fixed; inset: 0; z-index: 850; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 42%, rgba(255, 210, 63, .2), rgba(3, 7, 22, .9) 62%); animation: fade .25s ease; }
.cele.out { animation: fadeOut .25s ease forwards; }
.cele-in { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.cele-stamp, .stamp {
  font-family: var(--f-disp);
  font-size: clamp(40px, 8.4vw, 92px);
  line-height: 1;
  color: var(--volt);
  -webkit-text-stroke: .085em #2A1A00;
  paint-order: stroke fill;
  text-shadow: 0 .07em 0 #B07A00, 0 .16em .3em rgba(0, 0, 0, .55);
  transform: rotate(-4deg);
  animation: stampIn .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
.cele-slab { animation: slabDrop .7s cubic-bezier(.2, 1.1, .3, 1) .15s both; }
.cele-sub { color: var(--ink-2); font-size: 15.5px; max-width: 420px; }
.cele-act { display: flex; gap: 8px; }
@keyframes stampIn { from { opacity: 0; transform: rotate(-4deg) scale(2.2); } }
@keyframes slabDrop { from { opacity: 0; transform: translateY(-60px) rotate(-6deg) scale(.9); } }

.empty { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; text-align: center; color: var(--ink-3); }
.empty > .ic { width: 34px; height: 34px; color: var(--ink-4); }
.empty b { color: var(--ink); font-size: 16px; }
.empty p { max-width: 340px; font-size: 14px; }
.empty .btn { margin-top: 8px; }

/* 명예의 전당 상세 모달 */
.m-hall { width: min(760px, 100%); }
.hall-detail { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: center; padding-top: 18px; }
.hd-card { display: grid; place-items: center; padding: 18px; border-radius: 18px; background: radial-gradient(circle at 50% 40%, rgba(255, 210, 63, .12), transparent 70%); }
.hd-card .tcg { --w: min(260px, 64vw); box-shadow: 0 24px 50px rgba(0, 0, 0, .6); }
.hd-eyebrow { font: 700 13px var(--f-cond); letter-spacing: .16em; color: var(--volt); }
.hd-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 24px; font-weight: 900; margin-top: 6px; }
.hd-name .rchip { height: 24px; font-size: 14px; }
.hd-dl { margin: 18px 0; display: grid; gap: 10px; }
.hd-dl div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; font-size: 14px; }
.hd-dl dt { color: var(--ink-3); }
.hd-dl dd { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hd-act { display: flex; gap: 8px; flex-wrap: wrap; }
.hd-note { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }

/* 다시보기 모달 */
.m-replay { width: min(620px, 100%); }
.rp-player { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 12px; }
.rp-screen { aspect-ratio: 16 / 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ink-2); font-size: 14px; background: radial-gradient(ellipse at 50% 60%, #17406A, #081526 75%); }
.rp-screen .ic { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--live); color: #fff; fill: #fff; }
.rp-meta { display: grid; gap: 2px; padding: 12px 14px; background: rgba(0, 0, 0, .2); }
.rp-meta span { color: var(--ink-3); font-size: 13px; }
.rp-list { display: grid; gap: 6px; margin-top: 14px; }
.rp-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.rp-row.hit { background: linear-gradient(90deg, rgba(255, 122, 198, .14), rgba(110, 168, 255, .06)); }
.rp-row.mine { box-shadow: inset 3px 0 0 var(--volt); }
.rp-n { font: 700 13px var(--f-cond); color: var(--ink-3); letter-spacing: .08em; width: 56px; flex: none; }
.rp-cards { display: flex; gap: 6px; }
.rp-o { margin-left: auto; font-size: 12.5px; color: var(--ink-2); }

/* =========================================================
   라이브 홈 — 무대 · 개봉 보드 · 사이드바
   ========================================================= */
.live-wrap { padding-top: 18px; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 18px; align-items: start; }
.live-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.live-side { position: sticky; top: calc(var(--hdr) + 14px); display: flex; flex-direction: column; gap: 12px; height: calc(100dvh - var(--hdr) - 66px); min-height: 560px; }

.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; isolation: isolate; container-type: inline-size; background: #081526; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px var(--line); }
.stage-mat { position: absolute; inset: 0; background: radial-gradient(ellipse 72% 64% at 50% 58%, #1B4B78 0%, #0F2C4E 52%, #071426 100%); }
.stage-mat::before { content: ''; position: absolute; left: 50%; top: 54%; width: 64%; height: 64%; transform: translate(-50%, -50%); border-radius: 2cqw; background-image: radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1.5px); background-size: 2.2cqw 2.2cqw; mask: radial-gradient(ellipse at center, #000 40%, transparent 75%); }
.stage-mat::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(255, 240, 200, .14), transparent 70%), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55)); }
.stage-yt { position: absolute; inset: 0; z-index: 1; }
.stage-yt iframe { width: 100%; height: 100%; border: 0; }
.scene { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.scene[hidden] { display: none; }
.zones { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); display: flex; gap: 3.4cqw; }
.zones i { width: 14.5cqw; aspect-ratio: 63 / 88; border-radius: 1cqw; border: .25cqw dashed rgba(255, 255, 255, .14); }
.scene-cards { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); display: flex; gap: 3.4cqw; perspective: 1200px; }
.scene-cards .slot { width: 14.5cqw; position: relative; transition: transform .45s cubic-bezier(.2, .9, .3, 1.1), opacity .3s, filter .3s; }
.scene-cards .tcg { --w: 14.5cqw; }
.flip { position: relative; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.flip.down { transform: rotateY(180deg); }
.flip > .tcg { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip > .tcg-back { position: absolute; inset: 0; transform: rotateY(180deg); }
.slot.enter { animation: dealIn .5s cubic-bezier(.2, .9, .3, 1.1) both; }
@keyframes dealIn { from { opacity: 0; transform: translateY(-40%) rotate(-8deg) scale(.8); } }
.scene.celebrate .slot:not(.is-hit) { opacity: .28; filter: saturate(.4); }
.scene.celebrate .slot.is-hit { transform: translateY(-6%) scale(1.42); z-index: 3; }
.scene.celebrate .slot.is-hit .tcg-foil { animation: foil 1.6s ease-in-out infinite alternate; }
.slot.is-hit::before { content: ''; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 63, .55), transparent 65%); filter: blur(6px); z-index: -1; animation: glow 1.2s ease-in-out infinite alternate; }
@keyframes glow { to { opacity: .45; transform: scale(1.1); } }
.scene-pack { position: absolute; left: 50%; top: 52%; width: 15cqw; transform: translate(-50%, -50%); }
.scene-pack .pk { width: 100%; transform: rotate(-3deg); }
.scene-pack.tear .pk { animation: shake .5s ease both; }
.scene-pack.tear::after { content: ''; position: absolute; left: -10%; right: -10%; top: 4%; height: 7%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent); animation: rip .6s ease .25s both; }
.scene-pack.gone { animation: packOut .45s ease forwards; }
@keyframes shake { 20% { transform: rotate(-6deg) translateX(-2%); } 40% { transform: rotate(3deg) translateX(2%); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(2deg); } }
@keyframes rip { from { opacity: 0; transform: scaleX(0); } 60% { opacity: 1; } to { opacity: 0; transform: scaleX(1) translateY(-30%); } }
@keyframes packOut { to { opacity: 0; transform: translate(-50%, 10%) scale(.85) rotate(8deg); } }
.scene-title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 1.4cqw; text-align: center; }
.scene-title .eyebrow { font-size: max(10px, 1.5cqw); color: var(--volt); }
.scene-title b { font-size: max(16px, 3.6cqw); font-weight: 900; line-height: 1.2; }
.scene-title span { font-size: max(12px, 1.9cqw); color: var(--ink-2); }
.scene-title .pk { width: 11cqw; margin-bottom: 1cqw; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4%) rotate(-3deg); } }
.stage-stamp { position: absolute; left: 50%; top: 14%; z-index: 4; transform: translateX(-50%); pointer-events: none; }
.stage-stamp .stamp { font-size: max(28px, 6.4cqw); display: block; white-space: nowrap; }
.stage-cf { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }

.hud { position: absolute; inset: 0; z-index: 6; pointer-events: none; font-size: max(11px, 1.45cqw); }
.hud-tl { position: absolute; left: 2.4cqw; top: 2.4cqw; display: flex; align-items: center; gap: 1cqw; }
.hud-v { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 6px; background: rgba(4, 9, 28, .7); font: 700 13px/1 var(--f-cond); letter-spacing: .04em; }
.hud-v .ic { width: 14px; height: 14px; }
.hud-tr { position: absolute; right: 2.4cqw; top: 2.2cqw; text-align: right; }
.hud-tr .logo-ko { font-size: max(16px, 2.4cqw); opacity: .9; }
.hud-tr span { display: block; font: 700 max(9px, 1.1cqw)/1.2 var(--f-cond); letter-spacing: .14em; color: rgba(255, 255, 255, .55); }
.lower { position: absolute; left: 2.4cqw; right: 2.4cqw; bottom: 2.4cqw; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.6cqw; }
.lower-card { display: flex; align-items: center; gap: 1.4cqw; min-width: 0; padding: 1cqw 1.6cqw 1cqw 1.1cqw; border-radius: 1.4cqw; background: rgba(4, 9, 28, .78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); backdrop-filter: blur(6px); }
.lower-card .av { --s: max(26px, 4cqw); }
.lc-t { min-width: 0; line-height: 1.3; }
.lc-t small { display: block; font: 700 max(9px, 1.15cqw)/1.1 var(--f-cond); letter-spacing: .14em; color: var(--volt); }
.lc-t b { display: block; font-size: max(12px, 1.75cqw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-t > span { display: block; font-size: max(10.5px, 1.35cqw); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lower-kw { flex: none; max-width: 36%; padding: 1cqw 1.4cqw; border-radius: 1.2cqw; background: var(--volt); color: var(--volt-ink); font-weight: 900; font-size: max(11px, 1.5cqw); line-height: 1.3; transform: rotate(1.5deg); box-shadow: 0 .6cqw 0 #B07A00; }
.lower-kw small { display: block; font: 700 max(9px, 1.05cqw)/1 var(--f-cond); letter-spacing: .14em; opacity: .7; }
.pack-ct { font: 700 max(11px, 1.6cqw)/1 var(--f-cond); letter-spacing: .06em; color: var(--ink); }
.hud-notice { position: absolute; left: 50%; top: 2.4cqw; transform: translateX(-50%); max-width: 62%; padding: 1cqw 2cqw; border-radius: 99px; background: rgba(255, 61, 90, .92); color: #fff; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: pop .35s ease; }
@container (max-width: 560px) {
  .lower-kw { display: none; }
  .lower-card { padding: 6px 10px 6px 7px; gap: 8px; }
  .lower-card .av { --s: 26px; }
  .scene-cards, .zones { top: 46%; }
  .scene-cards .tcg, .scene-cards .slot, .zones i { --w: 16.5cqw; width: 16.5cqw; }
}
.stage-off { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; text-align: center; background: rgba(4, 9, 28, .82); }
.stage-off b { font-size: 20px; }

/* 개봉 보드 */
.board { padding: 14px 16px 16px; }
.board-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.board-h .h3 { display: flex; align-items: center; gap: 8px; }
.board-sum { display: flex; gap: 6px; flex-wrap: wrap; }
.board-sum span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.board-rows { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.bp { flex: none; display: grid; gap: 6px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 1px var(--line); scroll-snap-align: end; }
.bp.hit { box-shadow: inset 0 0 0 1.5px transparent; background: linear-gradient(rgba(10, 20, 56, .95), rgba(10, 20, 56, .95)) padding-box, var(--holo) border-box; border: 1.5px solid transparent; }
.bp.now { box-shadow: inset 0 0 0 1.5px var(--volt); }
.bp-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 700 12.5px/1 var(--f-cond); letter-spacing: .08em; color: var(--ink-3); }
.bp-h b { color: var(--ink); }
.bp-cards { display: flex; gap: 5px; }
.bp-cards .tcg { --w: 46px; }
.bp-own { font-size: 11.5px; color: var(--ink-3); max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-empty { padding: 18px 2px 4px; color: var(--ink-3); font-size: 14px; }

/* 타임딜 */
.deal { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(100deg, rgba(255, 61, 90, .22), rgba(255, 210, 63, .1) 60%, rgba(17, 32, 80, .5)); border: 1px solid rgba(255, 61, 90, .4); overflow: hidden; }
.deal-t { display: grid; justify-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(4, 9, 28, .6); }
.deal-t small { font: 700 11px/1 var(--f-cond); letter-spacing: .16em; color: var(--live); }
.deal-t b { font: 700 24px/1.1 var(--f-cond); letter-spacing: .04em; }
.deal-m { min-width: 0; display: grid; gap: 4px; }
.deal-m .nm { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.deal-bar i { display: block; height: 100%; background: var(--live); border-radius: 3px; transition: width .4s; }
.deal-meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); }

/* 사이드: 지금 개봉 중 티켓 */
.ticket { position: relative; padding: 16px 16px 22px; border-radius: 18px 18px 0 0; background: linear-gradient(170deg, #1A2E6C, #101E4C); clip-path: var(--crimp-b); }
.tk-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tk-who { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-width: 0; }
.tk-who .av { --s: 40px; }
.tk-who b { font-size: 16px; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.tk-who > div > span { display: block; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-prog { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.tk-prog .pack-ct { font-size: 15px; flex: none; }
.tk-bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.tk-bar i { display: block; height: 100%; border-radius: 4px; background: var(--volt); transition: width .4s; }
.tk-kw { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 210, 63, .1); color: var(--volt-2); font-size: 13.5px; font-weight: 700; }
.tk-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tk-idle { margin-top: 10px; color: var(--ink-2); font-size: 14px; }

/* 사이드 탭 패널 */
.side-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 18px; background: rgba(12, 24, 59, .7); border: 1px solid var(--line); overflow: hidden; }
.side-panel .tabs { padding: 0 8px; flex: none; }
.side-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.side-body[hidden] { display: none; }
.chat-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; scrollbar-width: thin; }
.cm { line-height: 1.5; animation: cmIn .3s ease; }
.cm .lv { margin-right: 5px; }
.cm-n { font-weight: 800; margin-right: 6px; color: var(--ink-2); }
.cm.me .cm-n { color: var(--volt); }
.cm-sys { display: flex; gap: 8px; align-items: flex-start; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .045); color: var(--ink-2); font-size: 13px; }
.cm-sys .ic { width: 15px; height: 15px; margin-top: 2px; flex: none; color: var(--ink-3); }
.cm-sys.k-hit, .cm-sys.k-god { background: linear-gradient(90deg, rgba(255, 122, 198, .2), rgba(110, 168, 255, .1)); color: var(--ink); font-weight: 700; }
.cm-sys.k-hit .ic, .cm-sys.k-god .ic { color: #FF9AD5; }
.cm-sys.k-jackpot { background: rgba(255, 210, 63, .16); color: var(--volt-2); font-weight: 700; }
.cm-sys.k-jackpot .ic { color: var(--volt); }
.cm-sys.k-deal, .cm-sys.k-notice { background: rgba(255, 61, 90, .14); color: #FFC2CC; }
.cm-sys.k-deal .ic, .cm-sys.k-notice .ic { color: var(--live); }
.cm-sys.k-order .ic { color: var(--ok); }
@keyframes cmIn { from { opacity: 0; transform: translateY(6px); } }
.chat-form { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.quick button { flex: none; height: 28px; padding: 0 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.quick button:hover { background: rgba(255, 255, 255, .12); color: var(--ink); }
.chat-row { display: flex; gap: 8px; }
.chat-row .input { height: 42px; }
.chat-row .btn { height: 42px; padding: 0 14px; }
.chat-new { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); }

.q-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px 12px; display: grid; align-content: start; gap: 6px; }
.q-item { display: grid; grid-template-columns: 26px 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .035); }
.q-item.mine { background: rgba(255, 210, 63, .1); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .4); }
.q-item.now { background: rgba(255, 61, 90, .1); box-shadow: inset 0 0 0 1px rgba(255, 61, 90, .35); }
.q-no { font: 700 18px/1 var(--f-cond); color: var(--ink-3); text-align: center; }
.q-item .av { --s: 32px; }
.q-t { min-width: 0; line-height: 1.35; }
.q-t b { display: flex; align-items: center; gap: 5px; font-size: 14px; white-space: nowrap; overflow: hidden; }
.q-t span { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-eta { text-align: right; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.q-eta b { display: block; font: 700 15px/1.1 var(--f-cond); color: var(--ink); letter-spacing: .03em; }
.q-sum { padding: 10px 14px; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); flex: none; }

.qb-list { flex: 1; min-height: 0; overflow-y: auto; padding: 10px; display: grid; align-content: start; gap: 8px; }
.qb { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .035); text-align: left; width: 100%; }
.qb:hover { background: rgba(255, 255, 255, .07); }
.qb .pa { border-radius: 9px; }
.qb .pa-count { display: none; }
.qb-t { min-width: 0; }
.qb-t b { display: block; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qb-t .price b { font-size: 14.5px; }
.qb-t .price s, .qb-t .p-off { font-size: 12px; }
.qb .ic { color: var(--ink-3); }

/* 예측 */
.pred { padding: 14px 16px; border-radius: 16px; background: linear-gradient(140deg, rgba(110, 168, 255, .16), rgba(17, 32, 80, .6)); border: 1px solid rgba(110, 168, 255, .3); }
.pred-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pred-q { margin-top: 6px; font-weight: 800; font-size: 15px; }
.pred-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pred-side { position: relative; overflow: hidden; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); text-align: left; box-shadow: inset 0 0 0 1px var(--line-2); }
.pred-side b { font: 700 22px/1 var(--f-cond); }
.pred-side span { font-size: 12px; color: var(--ink-3); position: relative; }
.pred-side i { position: absolute; left: 0; bottom: 0; height: 3px; background: currentColor; opacity: .7; }
.pred-side.o { color: #6EA8FF; }
.pred-side.x { color: #FF7A8E; }
.pred-side.picked { box-shadow: inset 0 0 0 2px currentColor; }
.pred-side.win { background: rgba(59, 224, 164, .15); }
.pred-amt { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.pred-amt .chip { height: 30px; font-size: 12.5px; padding: 0 10px; }
.pred-note { margin-top: 8px; font-size: 12px; color: var(--ink-3); }

/* 홈 하단 섹션 */
.home-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.slab-row { display: flex; gap: 16px; overflow-x: auto; padding: 10px 2px 18px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.slab-row .slab { scroll-snap-align: start; }
.rank-mini { display: grid; gap: 4px; }
.rk { display: grid; grid-template-columns: 26px 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; }
.rk.me { background: rgba(255, 210, 63, .09); }
.rk-n { font: 700 19px/1 var(--f-cond); text-align: center; color: var(--ink-3); }
.rk:nth-child(1) .rk-n { color: var(--volt); }
.rk .av { --s: 30px; }
.rk-t { min-width: 0; }
.rk-t b { display: flex; gap: 5px; align-items: center; font-size: 14px; white-space: nowrap; overflow: hidden; }
.rk-bar { height: 4px; margin-top: 5px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.rk-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4D8DFF, #9F7BFF); }
.rk-v { text-align: right; font: 700 15px/1.1 var(--f-cond); letter-spacing: .03em; }
.rk-v small { display: block; font: 600 11.5px var(--f-body); color: var(--ink-3); letter-spacing: 0; }
.mvp { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; overflow: hidden; background: linear-gradient(120deg, rgba(255, 210, 63, .2), rgba(17, 32, 80, .4) 70%); border: 1px solid rgba(255, 210, 63, .3); }
.mvp .av { --s: 52px; font-size: 22px; }
.mvp-t small { display: block; font: 700 12px var(--f-cond); letter-spacing: .16em; color: var(--volt); }
.mvp-t b { display: block; font-size: 19px; font-weight: 900; }
.mvp-t span { font-size: 13px; color: var(--ink-2); }
.mvp > .ic { position: absolute; right: -8px; bottom: -14px; width: 84px; height: 84px; color: rgba(255, 210, 63, .14); }

/* 내 차례 플로팅 */
.myturn { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 999px; background: rgba(17, 32, 80, .96); border: 1px solid rgba(255, 210, 63, .45); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); animation: pop .35s ease; max-width: calc(100vw - 36px); }
.myturn .mt-i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--volt); color: var(--volt-ink); font: 700 17px/1 var(--f-cond); flex: none; }
.myturn b { display: block; font-size: 13.5px; }
.myturn span { display: block; font-size: 12px; color: var(--ink-2); }
.myturn.now { border-color: var(--live); }
.myturn.now .mt-i { background: var(--live); color: #fff; animation: pulse 1.4s infinite; }

/* 데모 안내 버튼 */
.demo-fab { position: fixed; left: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px 0 12px; border-radius: 999px; background: #F2F4FA; color: #0C183B; font-weight: 800; font-size: 13.5px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
@media (min-width: 900px) and (max-width: 1599px) {
  .demo-fab { left: 8px; width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .demo-fab .ic { width: 20px; height: 20px; }
  .demo-fab:hover, .demo-fab:focus-visible { width: auto; padding: 0 14px 0 10px; font-size: 13.5px; gap: 7px; }
}
.demo-fab .ic { width: 18px; height: 18px; }
.demo-panel { display: grid; gap: 14px; }
.demo-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-link { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.demo-link:hover { background: rgba(255, 255, 255, .09); }
.demo-link b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.demo-link span { font-size: 12.5px; color: var(--ink-3); }
.demo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.demo-row span small { display: block; color: var(--ink-3); font-size: 12.5px; }
.demo-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.welcome { display: grid; gap: 16px; }
.welcome ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: w; }
.welcome li { counter-increment: w; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: 14.5px; color: var(--ink-2); }
.welcome li::before { content: counter(w); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--volt); color: var(--volt-ink); font: 700 15px/1 var(--f-cond); }
.welcome li b { color: var(--ink); }

/* 알림 패널 */
.noti-list { display: grid; gap: 4px; margin: 0 -8px; }
.noti { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 10px 8px; border-radius: 12px; }
.noti:hover { background: rgba(255, 255, 255, .05); }
.noti .ni { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--ink-2); }
.noti.unread .ni { background: rgba(255, 210, 63, .14); color: var(--volt); }
.noti b { display: block; font-size: 14px; }
.noti p { font-size: 13px; color: var(--ink-3); }
.noti time { font-size: 12px; color: var(--ink-4); }

/* 카카오 알림톡 미리보기 */
.kakao { width: 100%; max-width: 330px; border-radius: 16px; overflow: hidden; background: #B2C7D9; padding: 14px 12px; color: #111; }
.kakao-who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #333; margin-bottom: 6px; }
.kakao-who i { width: 30px; height: 30px; border-radius: 11px; background: var(--n-800); display: grid; place-items: center; color: var(--volt); font: 400 13px/1 var(--f-disp); font-style: normal; }
.kakao-msg { margin-left: 38px; border-radius: 4px 14px 14px 14px; background: #fff; overflow: hidden; font-size: 13px; line-height: 1.55; }
.kakao-msg .kh { padding: 9px 12px; background: #FEE500; font-weight: 800; }
.kakao-msg .kb { padding: 12px; }
.kakao-msg .kb b { display: block; margin-bottom: 4px; }
.kakao-msg .kbtn { display: block; margin: 0 12px 12px; padding: 9px; border-radius: 6px; background: #F2F2F2; text-align: center; font-weight: 700; }

/* 푸터 */
.foot { border-top: 1px solid var(--line); padding: 28px 0 90px; color: var(--ink-3); font-size: 12.5px; }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot b { color: var(--ink-2); }
.foot a { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1180px) {
  .live-grid { grid-template-columns: minmax(0, 1fr) 330px; }
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gauges .gauge:nth-child(3) { display: none; }
  .nav a { padding: 0 9px; font-size: 14px; }
  .me-btn b { display: none; }
}
@media (max-width: 1020px) {
  .nav .nv-x { display: none; }
}
@media (max-width: 899px) {
  :root { --hdr: 54px; --gut: 16px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); font-size: 14.5px; }
  .nav, .pts, .me-btn { display: none; }
  .logo-ko { font-size: 22px; }
  .logo-mark { width: 21px; height: 28px; }
  .ticker { height: 34px; }
  .ticker-label { padding-right: 14px; }
  .ticker-label span { display: none; }
  .ticker-track { padding-left: 54px; }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: rgba(8, 17, 46, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bnav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; font-size: 11px; font-weight: 700; color: var(--ink-3); }
  .bnav a .ic { width: 22px; height: 22px; }
  .bnav a.on { color: var(--volt); }
  .bnav .live-dot { position: absolute; top: 7px; left: calc(50% + 9px); width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
  .toasts { top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); left: 16px; right: 16px; width: auto; }
  .demo-fab { bottom: calc(76px + env(safe-area-inset-bottom)); left: 12px; height: 38px; padding: 0 12px 0 10px; font-size: 12.5px; }
  .myturn { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .live-wrap { padding-top: 0; }
  .live-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .live-main { gap: 12px; }
  .stage-sticky { position: sticky; top: var(--hdr); z-index: 20; margin: 0 calc(var(--gut) * -1); }
  .stage { border-radius: 0; box-shadow: none; }
  .live-side { position: static; height: auto; min-height: 0; }
  .side-panel { height: 460px; flex: none; }
  .home-row, .split { grid-template-columns: minmax(0, 1fr); }
  .gauges { grid-template-columns: minmax(0, 1fr); }
  .gauges .gauge:nth-child(3) { display: block; }
  .hall-detail { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 6px; }
  .hd-card .tcg { --w: min(210px, 56vw); }
  .modal-bg { place-items: end center; padding: 0; }
  .modal { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; animation: sheetIn .32s cubic-bezier(.2, .9, .3, 1); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .prod .q-add { opacity: 1; transform: none; width: 36px; height: 36px; }
  .deal { grid-template-columns: auto minmax(0, 1fr); }
  .deal .btn { grid-column: 1 / -1; }
  .page { padding-top: 18px; }
  .demo-fab { display: none; }
  .hdr-demo { display: grid; }
}
@media (max-width: 420px) {
  .hdr-r { gap: 0; }
  .cele-act { flex-direction: column; width: 100%; }
  .demo-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker-track { animation: none; }
  .ticker { overflow-x: auto; }
}

/* 방송 콘솔에서는 고객용 머리·꼬리 숨김 */
body.is-studio .hdr, body.is-studio .ticker, body.is-studio .foot, body.is-studio .bnav { display: none; }
body.is-studio { padding-bottom: 0; }
