/* =========================================================
   Global B2C Layout Template — v0.1 (레퍼런스 레이아웃 1차 카피)
   토큰 값은 레퍼런스에서 실측한 값 기준
   ========================================================= */
:root {
  /* ---- 백오피스에서 바꾸는 기본 토큰 (config.js가 덮어씀) ---- */
  --brand: #a685ff;           /* 메인 포인트 컬러 */
  --brand-ink: #0b0d1c;       /* 포인트 컬러 위 글자색 */
  --bg-app: #0b0d1c;          /* 페이지 배경 */
  --bg-layer: #11142a;        /* 헤더 / 사이드바 */
  --bg-card: #1a1e3a;         /* 카드, 사이드바 아이템 */
  --text: #f2f1ff;            /* 기본 글자색 */
  --up: #2ee6a8;              /* 상승 / 당첨 */
  --down: #ff5c7a;            /* 하락 */
  --radius: 8px;

  /* ---- 위 값에서 자동 파생 (직접 수정 불필요) ---- */
  --brand-hover: color-mix(in srgb, var(--brand), white 18%);
  --brand-2: color-mix(in srgb, var(--brand) 45%, #ff6fd8);   /* 노바 글로우 (포인트 → 핑크) */
  --brand-glow: color-mix(in srgb, var(--brand) 35%, transparent);
  --brand-soft: color-mix(in srgb, var(--brand) 15%, transparent);
  --brand-faint: color-mix(in srgb, var(--brand) 8%, transparent);
  --bg-card-hover: color-mix(in srgb, var(--bg-card), var(--text) 5%);
  --bg-elev: color-mix(in srgb, var(--bg-layer) 75%, var(--bg-app));
  --bg-row: color-mix(in srgb, var(--bg-elev), var(--text) 3%);
  --bg-chip: color-mix(in srgb, var(--bg-card), var(--text) 5%);
  --bg-chip-hover: color-mix(in srgb, var(--bg-card), var(--text) 10%);
  --bg-input: color-mix(in srgb, var(--bg-app), black 20%);
  --line: color-mix(in srgb, var(--text) 10%, transparent);
  --overlay: color-mix(in srgb, var(--text) 5%, transparent);
  --text-2: color-mix(in srgb, var(--text) 70%, var(--bg-app));
  --text-3: color-mix(in srgb, var(--text) 48%, var(--bg-app));
  --usdt: #26a17b;

  /* size */
  --header-h: 60px;
  --side-w: 240px;
  --side-w-mini: 72px;
  --radius-lg: calc(var(--radius) + 4px);
  --gap: 12px;
  --pad: 16px;
  --content-max: 1200px;
  --card-ratio: 139 / 185;
  --mnav-h: 64px;

  --font: "Pretendard Variable", Pretendard, "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.hidden { display: none !important; }

/* scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--bg-chip-hover); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- buttons ---------- */
.btn {
  height: 40px; padding: 0 16px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; white-space: nowrap; transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-outline { border: 2px solid var(--line); font-size: 16px; font-weight: 600; }
.btn-outline:hover { background: var(--overlay); }
.btn-ghost { background: var(--bg-card); }
.btn-ghost:hover { background: var(--bg-card-hover); }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius); background: var(--bg-card);
  display: inline-grid; place-items: center; color: var(--text-2);
}
.icon-btn:hover { color: var(--text); background: var(--bg-card-hover); }
.icon-btn.sm { width: 32px; height: 32px; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50;
  background: var(--bg-layer); display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; box-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.header-left, .header-right { display: flex; align-items: center; gap: 8px; }
.header-left { gap: 16px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 900; letter-spacing: -.5px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-size: 18px; font-weight: 900;
}
.logo b { color: var(--brand); }
.logo img.logo-img { height: 32px; width: auto; max-width: 180px; object-fit: contain; }
.foot-brand .logo img.logo-img { height: 28px; }
.header .btn-outline { width: 96px; }
.header .btn-primary { width: 96px; }
.locale-btn {
  height: 40px; border-radius: var(--radius); background: var(--bg-card); display: flex; align-items: center;
  padding: 0 12px; gap: 10px; font-weight: 700; color: var(--text);
}
.locale-btn .sep { width: 1px; height: 20px; background: var(--line); }

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar {
  position: fixed; top: var(--header-h); left: 0; bottom: 0; width: var(--side-w); z-index: 40;
  background: var(--bg-layer); overflow-y: auto; overflow-x: hidden; padding: 16px 16px 24px;
  transition: width .2s ease;
}
.sidebar::-webkit-scrollbar { width: 0; }
.side-stack { display: flex; flex-direction: column; gap: 8px; }

.side-promo {
  position: relative; height: 60px; border-radius: var(--radius); overflow: hidden; padding: 10px;
  display: flex; flex-direction: column; justify-content: center; background: var(--bg-card);
}
.side-promo.tall { height: 74px; }
.side-promo strong { font-size: 14px; font-weight: 800; }
.side-promo span { font-size: 12px; color: var(--text-2); }
.side-promo .art {
  position: absolute; right: 8px; bottom: 0; width: 56px; height: 54px; border-radius: 6px 6px 0 0;
}
.side-promo.app { background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 22%, var(--bg-card)) 0%, var(--bg-card) 100%); }
.side-promo.app .art { background: linear-gradient(160deg, #1d1f20, #3b4244); border: 2px solid #111; }
.side-promo.event { background: linear-gradient(90deg, #4b3b7b 0%, #7b4fb1 100%); }
.side-promo.event .art { background: radial-gradient(circle at 50% 40%, #ff8a3d 0 30%, transparent 31%), radial-gradient(circle at 70% 30%, #c08bff 0 22%, transparent 23%); }

.token-card {
  border-radius: var(--radius); background: var(--bg-card); padding: 12px; display: flex; align-items: center; justify-content: space-between;
}
.token-card .lbl { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.token-card .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); }
.token-card .price { margin-top: 6px; font-size: 16px; font-weight: 800; }
.token-card .chg { font-size: 12px; color: var(--down); margin-left: 6px; font-weight: 600; }
.token-card .chev { width: 24px; height: 24px; border-radius: 6px; background: var(--overlay); display: grid; place-items: center; }

.side-group { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; }
.side-item {
  height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 12px; width: 100%;
  font-size: 14px; font-weight: 600; color: var(--text); border-radius: var(--radius); text-align: left;
}
.side-item:hover { background: var(--bg-card-hover); }
.side-item .i { color: var(--text-2); }
.side-item .label { flex: 1; white-space: nowrap; }
.side-item .caret {
  width: 24px; height: 24px; border-radius: 6px; background: var(--overlay); display: grid; place-items: center; transition: transform .2s;
}
.side-item .caret .i { width: 14px; height: 14px; }
.side-item .ext .i { width: 12px; height: 12px; }
.side-item .badge-new {
  font-size: 10px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 6px; border-radius: 4px;
}
.side-item .vip { color: var(--brand); }
.side-acc.open > .side-item .caret { transform: rotate(180deg); }
.side-sub { display: none; padding: 0 8px 8px; }
.side-acc.open .side-sub { display: block; }
.side-sub a { display: flex; height: 36px; align-items: center; padding-left: 32px; color: var(--text-2); font-size: 13px; border-radius: 6px; }
.side-sub a:hover { color: var(--text); background: var(--overlay); }

.theme-toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-card); border-radius: var(--radius); padding: 4px; }
.theme-toggle button { height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; color: var(--text-3); }
.theme-toggle button.on { background: var(--bg-chip-hover); color: var(--text); }
.theme-toggle .i { width: 16px; height: 16px; }

/* collapsed sidebar (icon rail) */
body.side-mini .sidebar { width: var(--side-w-mini); padding: 16px 12px; }
body.side-mini .sidebar .label,
body.side-mini .sidebar .caret,
body.side-mini .sidebar .badge-new,
body.side-mini .sidebar .ext,
body.side-mini .sidebar .side-sub,
body.side-mini .sidebar .token-card,
body.side-mini .sidebar .side-promo,
body.side-mini .sidebar .theme-toggle { display: none; }
body.side-mini .side-item { justify-content: center; padding: 0; }
body.side-mini .main { margin-left: var(--side-w-mini); }

/* =========================================================
   MAIN
   ========================================================= */
.main { margin-left: var(--side-w); padding-top: var(--header-h); transition: margin-left .2s ease; min-width: 0; }
.container { max-width: calc(var(--content-max) + 32px); margin: 0 auto; padding: 16px 16px 0; }
.section { margin-top: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; min-height: 32px; }
.section-title { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }
.section-tools { display: flex; align-items: center; gap: 8px; }
.pill-all { height: 32px; padding: 0 10px; border-radius: var(--radius); background: var(--bg-card); font-size: 12px; font-weight: 700; }
.pill-all:hover { background: var(--bg-card-hover); }
.arrow { width: 32px; height: 32px; border-radius: var(--radius); background: var(--bg-card); display: grid; place-items: center; color: var(--text); }
.arrow:disabled { opacity: .4; cursor: default; }
.arrow .i { width: 16px; height: 16px; }
.tabs-inline { display: flex; gap: 4px; margin-left: 8px; }
.tabs-inline button { font-size: 12px; font-weight: 600; color: var(--text-2); padding: 4px; border-bottom: 2px solid transparent; }
.tabs-inline button.on { color: var(--text); border-bottom-color: var(--brand); }

/* ---------- HERO ---------- */
.hero {
  position: relative; height: 260px; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(120% 140% at 0% 50%, var(--bg-card-hover) 0%, var(--bg-elev) 45%, var(--bg-layer) 100%);
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 24px; z-index: 1; }
.hero-copy h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.hero-copy .btn-primary { width: 248px; }
.hero-copy .or { font-size: 14px; color: var(--text-2); }
.social-row { display: flex; gap: 8px; }
.social-btn { width: 120px; height: 40px; border-radius: var(--radius); background: var(--overlay); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 16px; }
.social-btn:hover { background: rgba(255,255,255,.1); }
.social-btn .g { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.social-btn .t { width: 18px; height: 18px; border-radius: 50%; background: #27a6e5; }
.hero-art { position: relative; height: 100%; }
.hero-art .stripes { position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 40px, var(--brand-faint) 40px 44px); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.hero-art .figure { position: absolute; bottom: 0; width: 120px; height: 210px; border-radius: 60px 60px 0 0; background: linear-gradient(180deg, var(--bg-chip-hover), var(--bg-app)); border-top: 3px solid var(--brand); }
.hero-art .badge-txt { position: absolute; right: 24px; top: 50px; font-weight: 900; font-size: 18px; letter-spacing: 1px; color: var(--text); text-align: center; line-height: 1; }
.hero-art .badge-txt small { display: block; font-size: 10px; color: var(--brand); margin-top: 4px; letter-spacing: 2px; }
.hero-deco { position: absolute; left: -40px; top: 20px; width: 220px; height: 220px; border-radius: 40px; transform: rotate(-20deg); background: linear-gradient(145deg, var(--bg-chip), var(--bg-app)); opacity: .7; }

/* ---------- GAME CARD ROW (slider) ---------- */
.slider { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--gap) * 7) / 8); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.track::-webkit-scrollbar { display: none; }
.game-card {
  position: relative; aspect-ratio: var(--card-ratio); border-radius: var(--radius); overflow: hidden; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 8px; text-align: center; isolation: isolate;
  transition: transform .2s;
}
.game-card:hover { transform: translateY(-4px); }
.game-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 50% at 50% 35%, rgba(255,255,255,.25), transparent 70%); }
.game-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45)); }
.game-card .name { font-size: 20px; font-weight: 900; line-height: 1.05; text-shadow: 0 2px 0 rgba(0,0,0,.35); word-break: keep-all; }
.game-card .prov { margin-top: 6px; font-size: 9px; font-weight: 700; opacity: .8; letter-spacing: .5px; text-transform: uppercase; }
.game-card .players {
  position: absolute; top: 6px; right: 6px; height: 22px; padding: 0 6px; border-radius: 6px; background: rgba(0,0,0,.45);
  display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700;
}
.game-card .players::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 6px 0 -1px #fff; transform: translateY(-2px); }
.game-card .maint { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.9); color: #333; display: grid; place-items: center; font-size: 12px; }
.game-card .tag-hot { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: #ff5a3c; }
.game-card .play-over { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.game-card .play-over span { width: 48px; height: 48px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; color: #000; }
.game-card:hover .play-over { opacity: 1; }

/* ---------- BIG WINS ---------- */
.bigwins { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.bigwins-track { display: flex; gap: 8px; width: max-content; animation: marquee 60s linear infinite; }
.bigwins:hover .bigwins-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.win { width: 66px; flex: none; }
.win .thumb { width: 66px; height: 88px; border-radius: 6px; display: grid; place-items: end center; padding-bottom: 6px; font-size: 10px; font-weight: 900; text-align: center; line-height: 1.05; }
.win .user { margin-top: 6px; font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 3px; }
.win .user::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); flex: none; }
.win .amt { font-size: 12px; color: var(--brand); font-weight: 800; }

/* ---------- CATEGORY TILES ---------- */
.cat-big { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cat-small { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); margin-top: var(--gap); }
.cat {
  position: relative; border-radius: var(--radius-lg); background: var(--bg-elev); overflow: hidden; padding: 20px;
  transition: background .2s;
}
.cat:hover { background: var(--bg-card-hover); }
.cat-big .cat { height: 180px; display: flex; flex-direction: column; justify-content: space-between; }
.cat-small .cat { height: 120px; padding: 16px; }
.cat h3 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.cat-small .cat h3 { font-size: 18px; }
.cat p { max-width: 260px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.cat .art { position: absolute; right: 16px; bottom: 12px; width: 130px; height: 130px; border-radius: 50%; }
.cat-small .cat .art { width: 80px; height: 80px; right: 12px; bottom: 10px; }

/* ---------- SPORTS HIGHLIGHT ---------- */
.match-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.match {
  background: var(--bg-elev); border-radius: var(--radius-lg); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px;
}
.match .league { font-size: 12px; color: var(--text-2); text-align: center; display: flex; justify-content: center; align-items: center; gap: 6px; }
.match .teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; gap: 8px; }
.match .crest { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 6px; }
.match .tname { font-size: 12px; }
.match .time { font-size: 20px; font-weight: 800; }
.match .date { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.match .mkt { font-size: 10px; color: var(--text-3); text-align: center; }
.odds { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; }
.odd { height: 36px; border-radius: 6px; background: var(--bg-chip); display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 12px; color: var(--text-2); }
.odd b { color: var(--brand); font-weight: 800; }
.odd:hover { background: var(--bg-chip-hover); }
.odd.more { padding: 0 10px; color: var(--text); font-weight: 700; }

/* ---------- PAY YOUR WAY ---------- */
.payway {
  border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--bg-elev), var(--bg-card)); padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.payway h3 { font-size: 22px; font-weight: 800; }
.pay-logos { display: flex; gap: 28px; align-items: center; color: var(--text-2); font-weight: 800; font-size: 13px; }
.coins { display: flex; }
.coins i { width: 22px; height: 22px; border-radius: 50%; margin-left: -4px; border: 2px solid var(--bg-elev); }

/* ---------- BET TABLE ---------- */
.bet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.seg { display: inline-flex; background: var(--bg-elev); border-radius: var(--radius); padding: 4px; }
.seg button { height: 32px; padding: 0 22px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.seg button.on { background: var(--bg-chip); color: var(--text); }
.select { height: 32px; padding: 0 10px; border-radius: var(--radius); background: var(--bg-elev); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.table-wrap { background: var(--bg-elev); border-radius: var(--radius-lg); padding: 4px 8px 8px; }
table.bets { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 13px; }
.bets th { text-align: left; font-weight: 500; font-size: 11px; color: var(--text-3); padding: 10px 12px; }
.bets td { padding: 0 12px; height: 44px; background: var(--bg-row); }
.bets tr:nth-child(even) td { background: transparent; }
.bets td:first-child { border-radius: 6px 0 0 6px; } .bets td:last-child { border-radius: 0 6px 6px 0; }
.bets .g { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.bets .g i { width: 14px; height: 14px; border-radius: 3px; background: linear-gradient(135deg,#6d8cff,#a66bff); }
.bets .amt { display: flex; align-items: center; gap: 6px; }
.bets .cur { width: 16px; height: 16px; border-radius: 50%; background: var(--usdt); display: inline-grid; place-items: center; font-size: 9px; font-weight: 900; color: #fff; }
.bets .r { text-align: right; }
.bets .pos { color: var(--up); font-weight: 700; } .bets .neg { color: var(--text-2); }
.bets .r .amt { justify-content: flex-end; }
.bets tr.new td { animation: rowin .5s ease; }
@keyframes rowin { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- LOTTERY ---------- */
.lotto-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.lotto { background: var(--bg-elev); border-radius: var(--radius-lg); overflow: hidden; }
.lotto .top { position: relative; height: 92px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.lotto .flag { position: absolute; left: 10px; top: 8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); }
.lotto .ttl { font-size: 13px; font-weight: 700; text-align: center; line-height: 1.25; padding: 0 22px; }
.lotto .jack { font-size: 20px; font-weight: 900; }
.lotto .body { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.lotto .btn { height: 32px; width: 100%; font-size: 13px; }
.lotto .next { font-size: 12px; color: var(--text-2); }
.cd { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 4px; align-items: center; }
.cd span { height: 28px; border-radius: 6px; background: var(--bg-chip); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.cd em { font-style: normal; color: var(--text-3); }

/* ---------- SEO / INFO ---------- */
.divider-deco { height: 60px; margin-top: 40px; background: radial-gradient(60% 100% at 50% 0%, var(--overlay), transparent 70%); border-top: 1px solid var(--line); }
.info { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; padding: 8px 0 24px; }
.info h2 { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.info p { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 12px; }
.info a.link { color: var(--brand); text-decoration: underline; }

/* ---------- AWARDS / PARTNERS ---------- */
.awards { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; padding: 24px 0; border-top: 1px solid var(--line); }
.award { height: 80px; border-radius: var(--radius); background: var(--bg-elev); display: grid; place-items: center; text-align: center; font-size: 9px; font-weight: 800; color: #c9a94f; letter-spacing: .5px; line-height: 1.3; }
.award b { display: block; font-size: 12px; color: #e6c768; }
.partners { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--text-3); font-weight: 800; font-size: 18px; flex-wrap: wrap; }
.partners .circle { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--text-3); display: grid; place-items: center; font-size: 12px; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 32px; }
.foot-cols { display: grid; grid-template-columns: repeat(5, 1fr) 1.6fr; gap: 24px; }
.foot-cols h4 { font-size: 14px; font-weight: 800; margin-bottom: 16px; }
.foot-cols ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.foot-cols li a { font-size: 13px; color: var(--text-2); }
.foot-cols li a:hover { color: var(--text); }
.community { display: grid; grid-template-columns: repeat(4, 40px); gap: 12px; margin-bottom: 24px; }
.community a { width: 40px; height: 40px; border-radius: var(--radius); background: var(--bg-card); display: grid; place-items: center; color: var(--text-2); font-weight: 800; font-size: 13px; }
.community a:hover { color: var(--text); }
.verify-badge { width: 130px; height: 40px; border-radius: 4px; background: #fff; color: #135c2a; display: flex; align-items: center; gap: 6px; padding: 4px; font-size: 9px; font-weight: 800; }
.verify-badge i { width: 32px; height: 32px; background: repeating-conic-gradient(#000 0 25%, #fff 0 50%) 0 0 / 6px 6px; }
.foot-brand { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 32px 0; margin-top: 32px; border-top: 1px solid var(--line); }
.foot-brand .logo { font-size: 22px; margin-bottom: 16px; }
.foot-brand p { font-size: 12px; color: var(--text-2); line-height: 1.6; margin-bottom: 10px; }
.license-seal { width: 40px; height: 48px; border-radius: 6px; background: var(--bg-elev); margin-bottom: 16px; display: grid; place-items: center; font-size: 9px; color: var(--brand); font-weight: 800; }
.copyright { text-align: center; padding: 20px 0 28px; font-size: 12px; color: var(--text-2); border-top: 1px solid var(--line); }

/* ---------- FLOATING ---------- */
.fab { position: fixed; right: 16px; width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; z-index: 45; }
.fab-top { bottom: 72px; background: var(--bg-chip); opacity: 0; pointer-events: none; transition: opacity .2s; }
.fab-top.show { opacity: 1; pointer-events: auto; }
.fab-support { bottom: 20px; background: var(--brand); color: #000; }

/* ---------- MOBILE NAV ---------- */
.mnav { display: none; }
.scrim { display: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1280px) {
  .track { grid-auto-columns: calc((100% - var(--gap) * 6) / 7); }
  .awards { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  .track { grid-auto-columns: calc((100% - var(--gap) * 5) / 6); }
  .lotto-row { grid-template-columns: repeat(3, 1fr); }
  .match-row { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  :root { --gap: 8px; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; width: var(--side-w) !important; bottom: var(--mnav-h); }
  body.side-open .sidebar { transform: none; }
  body.side-open .scrim { display: block; position: fixed; inset: var(--header-h) 0 var(--mnav-h); background: rgba(0,0,0,.5); z-index: 39; }
  body.side-mini .sidebar .label, body.side-mini .sidebar .caret, body.side-mini .sidebar .token-card, body.side-mini .sidebar .side-promo, body.side-mini .sidebar .theme-toggle { display: revert; }
  .main, body.side-mini .main { margin-left: 0; padding-bottom: var(--mnav-h); }
  .header-left .menu-btn, .header-right .search-btn, .header-right .chat-btn, .header-right .locale-btn { display: none; }
  .header .btn-outline, .header .btn-primary { width: auto; }
  .hero { grid-template-columns: 1fr; height: auto; }
  .hero-art { display: none; }
  .track { grid-auto-columns: calc((100% - var(--gap) * 2.5) / 3.3); }
  .cat-big { grid-template-columns: 1fr 1fr; }
  .cat-big .cat { height: 140px; }
  .cat-big .cat p { display: none; }
  .cat-big .cat .art { width: 72px; height: 72px; right: 10px; bottom: 10px; }
  .cat h3 { position: relative; z-index: 1; font-size: 16px; }
  .cat-small { grid-template-columns: repeat(5, 120px); overflow-x: auto; scrollbar-width: none; }
  .match-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 85%; overflow-x: auto; scrollbar-width: none; }
  .lotto-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%; overflow-x: auto; scrollbar-width: none; }
  .bets th:nth-child(2), .bets td:nth-child(2), .bets th:nth-child(4), .bets td:nth-child(4) { display: none; }
  .info { grid-template-columns: 1fr; gap: 16px; }
  .awards { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-template-columns: 1fr; gap: 16px; }
  .section-tools .arrow { display: none; }
  .fab-top { bottom: calc(var(--mnav-h) + 64px); } .fab-support { bottom: calc(var(--mnav-h) + 12px); }
  .mnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; height: var(--mnav-h); z-index: 50;
    background: var(--bg-layer); border-top: 1px solid var(--line);
  }
  .mnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; color: var(--text-2); }
  .mnav button.on { color: var(--text); }
  .mnav .i { width: 22px; height: 22px; }
}
@media (max-width: 480px) {
  .logo { font-size: 20px; }
  .seg button { padding: 0 12px; }
}

/* ---------- 테마 무관 고정 흰 글씨 영역 (컬러 썸네일 위) ---------- */
.game-card, .win .thumb, .lotto .top, .side-promo.event { color: #fff; }
.side-promo.event span { color: rgba(255,255,255,.8); }
.theme-toggle.locked { display: none; }

/* ---------- 모바일 디테일 ---------- */
.more-btn { display: none; }
.foot-cols h4 .chev { display: none; }
@media (max-width: 900px) {
  .header { padding: 0 12px; }
  .header .btn { height: 36px; padding: 0 14px; font-size: 14px; }
  .logo { gap: 6px; }
  .logo-mark { width: 28px; height: 28px; font-size: 15px; }
  .hero-copy { padding: 28px 16px; }
  .hero-copy h1 { font-size: 22px; }
  .hero-copy .btn-primary { width: 100%; max-width: 320px; }
  .cat-small .cat { height: 96px; padding: 12px; }
  .cat-small .cat h3 { font-size: 15px; position: relative; z-index: 1; }
  .cat-small .cat .art { width: 52px; height: 52px; right: 8px; bottom: 8px; }
  .odd { padding: 0 8px; }
  .odd .lbl-long { display: none; }
  .odd .lbl-short { display: inline !important; }
  .table-wrap { padding: 2px 4px 4px; }
  .bets { table-layout: fixed; font-size: 12px; }
  .bets th, .bets td { padding: 0 8px; }
  .bets td { height: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bets .g { min-width: 0; } .bets .g span { overflow: hidden; text-overflow: ellipsis; }
  .bets .cur { width: 14px; height: 14px; font-size: 8px; }
  .lotto .ttl { padding: 0 6px 0 30px; font-size: 12px; }
  .lotto .jack { font-size: 18px; }
  .info .clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .info .clamp.open { display: block; }
  .more-btn { display: inline-flex; height: 36px; padding: 0 12px; border-radius: var(--radius); background: var(--bg-card); align-items: center; gap: 4px; font-weight: 700; margin-top: 4px; }
  .partners { justify-content: flex-start; gap: 16px 24px; font-size: 15px; }
  .foot-cols { grid-template-columns: 1fr; gap: 0; }
  .foot-cols > div:not(.foot-community) { border-bottom: 1px solid var(--line); }
  .foot-cols > div:not(.foot-community) h4 { margin: 0; height: 48px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
  .foot-cols h4 .chev { display: inline-flex; transition: transform .2s; color: var(--text-2); }
  .foot-cols h4 .chev .i { width: 16px; height: 16px; }
  .foot-cols > div:not(.foot-community) ul { display: none; padding-bottom: 16px; }
  .foot-cols > div.open ul { display: flex; }
  .foot-cols > div.open h4 .chev { transform: rotate(180deg); }
  .foot-community { padding-top: 24px; }
  .community { grid-template-columns: repeat(6, 40px); }
  .copyright { padding-bottom: 16px; }
}

/* =========================================================
   CMS 기반 컴포넌트 (배너 캐러셀 · 광고 · 프로모션 · 모달)
   ========================================================= */
#home > .section:first-child { margin-top: 0; }
.only-mobile { display: none !important; }
@media (max-width: 900px) { .only-pc { display: none !important; } .only-mobile { display: revert !important; } }

/* hero carousel */
.hero-carousel { position: relative; }
.hero-carousel .hero-slide { display: none; }
.hero-carousel .hero-slide.on { display: grid; animation: heroIn .45s ease; }
@keyframes heroIn { from { opacity: .3; } }
.hero-sub { color: rgba(255,255,255,.8); font-size: 14px; max-width: 360px; line-height: 1.5; margin-top: -4px; }
.hero-slide .hero-copy h1 { color: inherit; }
.hero-slide { color: var(--text); }
.hero-slide[style*="url("] { color: #fff; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.hero-dots button { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.35); transition: width .2s; }
.hero-dots button.on { width: 22px; background: var(--brand); }
.hero-copy a.btn-primary { width: 248px; }

/* ad banner */
.ad-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; padding: 18px 28px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; }
.ad-banner.img { min-height: 120px; }
.ad-copy { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; }
.ad-copy strong { font-size: 20px; font-weight: 800; }
.ad-copy span { font-size: 13px; color: rgba(255,255,255,.82); }
.ad-tag { align-self: flex-start; font-size: 10px !important; font-weight: 800; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.25); color: rgba(255,255,255,.85) !important; }
.ad-cta { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 16px; border-radius: var(--radius); background: rgba(255,255,255,.95); color: #111; font-weight: 800; white-space: nowrap; }
.ad-cta .i { width: 14px; height: 14px; }
.ad-art { position: absolute; right: 180px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%); }

/* promotions */
.promo-track { grid-auto-columns: calc((100% - var(--gap) * 3) / 4); }
.promo-card { position: relative; height: 180px; border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 6px; color: #fff; overflow: hidden; scroll-snap-align: start; transition: transform .2s; }
.promo-card:hover { transform: translateY(-3px); }
.promo-card::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.25), transparent 65%); }
.promo-top { display: flex; justify-content: space-between; align-items: center; }
.promo-type { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.25); }
.promo-badge { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: #fff; color: #111; }
.promo-card strong { font-size: 17px; font-weight: 800; line-height: 1.3; margin-top: 4px; }
.promo-sum { font-size: 12px; color: rgba(255,255,255,.82); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo-more { margin-top: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; }
.promo-more .i { width: 14px; height: 14px; }
.tag-hot.new { background: #2f7cf6; }
.game-card.has-thumb::before, .game-card.has-thumb::after { display: none; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.modal-box { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg-layer); border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,.4); animation: modalIn .2s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; z-index: 2; }
body.modal-open { overflow: hidden; }
.pm-hero { padding: 28px 22px 22px; color: #fff; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pm-hero h2 { font-size: 22px; font-weight: 800; line-height: 1.3; }
.pm-hero p { font-size: 13px; color: rgba(255,255,255,.85); }
.pm-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.pm-dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 13px; }
.pm-dl dt { color: var(--text-3); white-space: nowrap; }
.pm-dl dd { font-weight: 600; }
.pm-code { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: var(--radius); border: 1.5px dashed var(--brand); }
.pm-code span { color: var(--text-2); font-size: 12px; } .pm-code b { font-size: 18px; letter-spacing: 2px; color: var(--brand); }
.pm-body h4 { font-size: 13px; }
.pm-terms { font-size: 12px; color: var(--text-2); line-height: 1.7; background: var(--bg-card); border-radius: var(--radius); padding: 12px; }
.pm-cta { width: 100%; height: 44px; }
.popup-modal { width: min(400px, 100%); }
.pp-img { width: 100%; display: block; }
.pp-hero { height: 180px; display: grid; place-items: center; padding: 20px; color: #fff; text-align: center; }
.pp-hero h2 { font-size: 24px; font-weight: 900; line-height: 1.3; }
.pp-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.pp-body h3 { font-size: 18px; }
.pp-body p { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.pp-body .btn { width: 100%; }
.pp-foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pp-foot button { height: 44px; font-size: 13px; color: var(--text-2); }
.pp-foot button + button { border-left: 1px solid var(--line); color: var(--text); font-weight: 700; }

/* 백오피스 미리보기 포커스 */
.pv-flash { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: var(--radius-lg); transition: outline-color 1s; }

@media (max-width: 1100px) { .promo-track { grid-auto-columns: calc((100% - var(--gap) * 2) / 3); } }
@media (max-width: 900px) {
  .promo-track { grid-auto-columns: 78%; }
  .ad-banner { padding: 16px; min-height: 0; flex-direction: column; align-items: flex-start; }
  .ad-copy strong { font-size: 17px; }
  .ad-art { right: -60px; }
  .hero-copy a.btn-primary { width: 100%; max-width: 320px; }
  .modal { place-items: end center; padding: 0; }
  .modal-box { width: 100%; border-radius: 16px 16px 0 0; max-height: 88vh; }
  .popup-modal { width: calc(100% - 32px); border-radius: var(--radius-lg); margin-bottom: auto; margin-top: auto; }
}

/* =========================================================
   입금 (T9Pay · USDT TRC-20)
   ========================================================= */
.btn-deposit { background: var(--brand-soft); color: var(--brand); border: 1.5px solid color-mix(in srgb, var(--brand) 45%, transparent); font-weight: 800; }
.btn-deposit:hover { background: color-mix(in srgb, var(--brand) 22%, transparent); }
.btn-deposit .i { width: 18px; height: 18px; }
.dp-modal { width: min(440px, 100%); }
.dp { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.dp-head { display: flex; align-items: center; gap: 10px; padding-right: 36px; }
.dp-t { font-size: 20px; font-weight: 800; }
.dp-chip { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, #26a17b 20%, transparent); color: #3fd0a0; }
.dp-l { font-size: 12px; font-weight: 700; color: var(--text-2); margin-top: 4px; }
.dp-amt { display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 14px; border-radius: var(--radius); background: var(--bg-input); border: 1.5px solid var(--line); }
.dp-amt:focus-within { border-color: var(--brand); }
.dp-amt span { font-size: 20px; font-weight: 800; color: var(--text-2); }
.dp-amt input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 22px; font-weight: 800; }
.dp-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.dp-presets button { height: 34px; border-radius: 8px; background: var(--bg-card); font-weight: 700; font-size: 13px; }
.dp-presets button:hover { background: var(--bg-card-hover); }
.dp-hint { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.dp-promos { display: flex; flex-direction: column; gap: 6px; }
.dp-pr { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-card); cursor: pointer; border: 1.5px solid transparent; }
.dp-pr:has(input:checked) { border-color: var(--brand); }
.dp-pr input { accent-color: var(--brand); margin-top: 3px; }
.dp-pr b { display: block; font-size: 13px; } .dp-pr small { font-size: 11.5px; color: var(--text-2); }
.dp-notes { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2); line-height: 1.5; background: var(--bg-card); border-radius: var(--radius); padding: 12px 14px; }
.dp-notes li { padding-left: 12px; position: relative; } .dp-notes li::before { content: "·"; position: absolute; left: 0; font-weight: 900; }
.dp-notes b { color: var(--text); }
.dp-err { font-size: 12.5px; color: var(--down); min-height: 0; }
.dp-err:empty { display: none; }
.dp-go { height: 48px; width: 100%; font-size: 15px; }
.dp-go:disabled { opacity: .6; cursor: default; }
.dp-mock { text-align: center; font-size: 11px; color: var(--text-3); }
.dp-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dp-sum div { background: var(--bg-card); border-radius: var(--radius); padding: 10px 12px; } .dp-sum small { display: block; font-size: 11px; color: var(--text-3); } .dp-sum b { font-size: 16px; }
.dp-steps { list-style: none; display: flex; flex-direction: column; gap: 0; margin: 4px 0; }
.dp-steps li { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--text-3); font-weight: 600; position: relative; }
.dp-steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 36px; height: 12px; width: 2px; background: var(--line); }
.dp-steps i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; background: var(--bg-card); }
.dp-steps li.done { color: var(--text); } .dp-steps li.done i { background: var(--brand); color: var(--brand-ink); }
.dp-steps li.now { color: var(--text); } .dp-steps li.now i { background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 2px var(--brand); animation: pulse 1.6s infinite; }
.dp-ok, .dp-warn, .dp-info { font-size: 13px; line-height: 1.55; padding: 12px 14px; border-radius: var(--radius); }
.dp-ok { background: color-mix(in srgb, var(--up) 15%, transparent); } .dp-ok b { color: var(--up); }
.dp-warn { background: color-mix(in srgb, var(--down) 13%, transparent); } .dp-warn small { display: block; margin-top: 6px; color: var(--text-2); }
.dp-info { background: var(--bg-card); }
.dp-link { font-size: 13px; color: var(--brand); font-weight: 700; }
@media (max-width: 900px) {
  .header .btn-deposit { width: 36px; padding: 0; } .header .btn-deposit span { display: none; }
  .dp-presets { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   NOVA 테마 효과 — 포인트 컬러에서 파생되므로 백오피스 색 변경을 그대로 따름
   ========================================================= */
body { background: radial-gradient(1100px 520px at 72% -8%, color-mix(in srgb, var(--brand) 11%, transparent), transparent 62%), radial-gradient(900px 480px at 8% 108%, color-mix(in srgb, var(--brand-2) 7%, transparent), transparent 60%), var(--bg-app); background-attachment: fixed; }
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); box-shadow: 0 4px 18px -6px var(--brand-glow); }
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-hover) 0%, color-mix(in srgb, var(--brand-2), white 15%) 100%); }
.logo-mark { background: radial-gradient(circle at 35% 30%, #fff 0 8%, transparent 9%), linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 14px var(--brand-glow); }
.logo b { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* 히어로: 이미지가 없을 때 별 + 성운 */
.hero-slide:not([style*="url("])::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(1.2px 1.2px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 28% 68%, #fff, transparent), radial-gradient(1.5px 1.5px at 46% 18%, #fff, transparent),
    radial-gradient(1px 1px at 63% 44%, #fff, transparent), radial-gradient(1.3px 1.3px at 78% 76%, #fff, transparent), radial-gradient(1px 1px at 88% 30%, #fff, transparent),
    radial-gradient(1px 1px at 36% 88%, #fff, transparent), radial-gradient(1.4px 1.4px at 92% 58%, #fff, transparent), radial-gradient(1px 1px at 6% 52%, #fff, transparent),
    radial-gradient(420px 220px at 78% 40%, color-mix(in srgb, var(--brand-2) 26%, transparent), transparent 70%); }
.hero-deco { background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 62%); opacity: .55; border-radius: 50%; filter: blur(8px); }
.hero-art .figure { border-top-color: var(--brand); box-shadow: 0 -6px 24px -10px var(--brand-glow); }
.hero-art .stripes { background: repeating-linear-gradient(115deg, transparent 0 40px, color-mix(in srgb, var(--brand) 12%, transparent) 40px 44px); }
.hero-dots button.on { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.live-dot { background: var(--up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 25%, transparent); }
.tabs-inline button.on { border-image: linear-gradient(90deg, var(--brand), var(--brand-2)) 1; }
.dp-steps li.done i { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
html[data-mode="light"] body { background-attachment: fixed; }
/* 히어로 배너는 배경색을 직접 지정하므로 모드와 상관없이 밝은 글자 */
.hero-slide { color: #fff; }
.hero-slide .or, .hero-slide .hero-sub { color: rgba(255,255,255,.75); }
.hero-slide .social-btn { background: rgba(255,255,255,.1); color: #fff; }
.hero-slide .social-btn:hover { background: rgba(255,255,255,.16); }
.hero-slide .badge-txt { color: #fff; }
.hero-art .figure { background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(0,0,0,.35)); }
/* B2C 점검 · 준비중 안내 */
.site-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: radial-gradient(800px 400px at 50% 30%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%), var(--bg-app); }
.site-gate-box { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 420px; }
.site-gate-box .logo { font-size: 28px; }
.site-gate-box h2 { font-size: 22px; } .site-gate-box p { color: var(--text-2); line-height: 1.6; }

/* ===== 게임 프레임 (게임사 게임 실행 · 추후 프로모션 오버레이) ===== */
.game-frame { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; background: #05060d; }
.gf-bar { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 12px 0 16px; background: var(--bg-layer); border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.gf-title { display: flex; flex-direction: column; min-width: 0; } .gf-title b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gf-title small, .gf-bal small { font-size: 11px; color: var(--text-2); }
.gf-promo { flex: 1; min-width: 0; }
.gf-bal { display: flex; flex-direction: column; align-items: flex-end; } .gf-bal b { font-variant-numeric: tabular-nums; }
.gf-dep { height: 36px; }
.gf-x { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--bg-card); color: var(--text); font-size: 16px; cursor: pointer; }
.gf-stage { flex: 1; position: relative; } .gf-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body.gf-open { overflow: hidden; }
@media (max-width: 640px) { .gf-bar { height: 48px; gap: 8px; } .gf-dep { display: none; } }
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 400; transform: translate(-50%, 12px); opacity: 0; transition: .25s; padding: 12px 18px; border-radius: 12px; background: var(--bg-card); color: var(--text); box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 14px; max-width: 90vw; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ===== 로그인 · 가입 모달 ===== */
.au-modal { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; padding: 16px; }
.au-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
.au-box { position: relative; width: min(470px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--bg-layer); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: au-in .18s ease-out; }
@keyframes au-in { from { transform: translateY(10px) scale(.98); opacity: 0; } }
body.au-open { overflow: hidden; }
.au-tabs { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 1fr 1fr 64px; align-items: stretch; height: 54px; background: var(--bg-layer); border-bottom: 1px solid var(--line); }
.au-tabs [role=tab] { background: none; border: 0; color: var(--text-2); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; position: relative; margin: 0 4px 0 22px; }
.au-tabs [role=tab] + [role=tab] { margin: 0 4px; }
.au-tabs [role=tab].on { color: var(--text); }
.au-tabs [role=tab].on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); box-shadow: 0 0 12px var(--brand-glow); }
.au-x { align-self: center; justify-self: center; width: 34px; height: 34px; border-radius: 9px; border: 0; background: var(--bg-card); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.au-x .i { width: 16px; height: 16px; stroke-width: 2.6; }
.au-body { display: flex; flex-direction: column; gap: 16px; padding: 22px 30px 28px; }
.au-body[hidden] { display: none; }
.au-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--bg-card); margin-top: 8px; }
.au-seg button { height: 38px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font: inherit; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.au-seg button.on { background: var(--bg-chip-hover); color: var(--text); }
.au-seg .i, .au-alt .i { width: 17px; height: 17px; }
.au-f { display: flex; flex-direction: column; gap: 8px; } .au-f[hidden] { display: none; }
.au-f > span { color: var(--text-2); font-size: 14px; font-weight: 600; }
.au-f i, .au-chk i { color: var(--down); font-style: normal; }
.au-f input, .au-code input { height: 50px; width: 100%; padding: 0 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg-input); color: var(--text); font: inherit; font-size: 15px; outline: none; transition: border-color .15s; }
.au-f input:focus, .au-code input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.au-pw { position: relative; } .au-pw input { padding-right: 52px; }
.au-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.au-eye:hover { color: var(--text); background: var(--overlay); }
.au-rule { color: var(--text-3); font-size: 12px; } .au-rule.ok { color: var(--up); } .au-rule.bad { color: var(--down); }
.au-rule.ok::before { content: "✓ "; }
.au-link { align-self: flex-end; color: var(--text-2); font-size: 14px; font-weight: 700; margin-top: -6px; }
.au-link:hover { color: var(--text); }
.au-otp { display: flex; flex-direction: column; gap: 8px; } .au-otp[hidden] { display: none; } .au-otp small { color: var(--text-3); font-size: 12px; }
.au-ghost { height: 48px; border-radius: 12px; border: 2px solid var(--line); background: none; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.au-err { margin: 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--down) 14%, transparent); color: var(--down); font-size: 13px; line-height: 1.45; }
.au-err[hidden] { display: none; }
.au-main { height: 54px; border: 0; border-radius: 14px; background: var(--brand); color: var(--brand-ink); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: filter .15s, opacity .15s; box-shadow: 0 8px 24px var(--brand-glow); }
.au-main:hover { filter: brightness(1.08); } .au-main.dim { opacity: .55; box-shadow: none; } .au-main:disabled { opacity: .7; cursor: progress; } .au-main[hidden] { display: none; }
.au-div { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; font-weight: 600; margin-top: 4px; }
.au-div::before, .au-div::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.au-alt { height: 48px; border: 0; border-radius: 12px; background: var(--bg-card); color: var(--text); font: inherit; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.au-alt:hover { background: var(--bg-card-hover); }
.au-alt.line { background: none; border: 2px solid var(--line); } .au-alt.line:hover { background: var(--overlay); }
.au-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; } .au-more { padding: 0 16px; color: var(--text-2); font-weight: 600; }
.au-socs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 2px; }
.au-soc { aspect-ratio: 1; max-height: 52px; border-radius: 12px; border: 2px solid var(--line); background: none; color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.au-soc:hover { color: var(--text); background: var(--overlay); } .au-soc .i { width: 20px; height: 20px; }
.au-g { font-family: Arial, sans-serif; font-weight: 900; font-size: 19px; }
.au-code summary { list-style: none; height: 52px; padding: 0 18px; border-radius: 12px; background: var(--bg-card); color: var(--text-2); font-size: 15px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.au-code summary::-webkit-details-marker { display: none; }
.au-code[open] summary .i { transform: rotate(180deg); } .au-code input { margin-top: 8px; }
.au-chk { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--text-2); cursor: pointer; }
.au-chk input { position: absolute; opacity: 0; pointer-events: none; }
.au-chk .box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 2px solid var(--line); position: relative; transition: .15s; }
.au-chk input:checked + .box { border-color: var(--brand); background: var(--brand-soft); }
.au-chk input:checked + .box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--brand); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.au-chk input:focus-visible + .box { box-shadow: 0 0 0 3px var(--brand-soft); }
.au-chk a { color: var(--text); text-decoration: underline; font-weight: 700; }
@media (max-width: 520px) { .au-modal { padding: 0; place-items: end stretch; } .au-box { width: 100%; border-radius: 20px 20px 0 0; max-height: 94dvh; } .au-body { padding: 18px 18px 24px; } .au-socs { gap: 8px; } }

/* 헤더 계정 */
.acct { display: flex; align-items: center; gap: 8px; position: relative; } .acct[hidden] { display: none; }
.acct-bal { height: 40px; padding: 0 14px; border-radius: var(--radius); border: 0; background: var(--bg-card); color: var(--text); font: inherit; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; }
.acct-bal:hover { background: var(--bg-card-hover); }
.acct-me { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.ava { --h: 260; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 50) 70% 40%)); flex: none; }
.ava.lg { width: 44px; height: 44px; font-size: 18px; }
.acct-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 120; width: 260px; padding: 8px; border-radius: 14px; background: var(--bg-layer); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.acct-menu[hidden] { display: none; }
.acct-who { display: flex; gap: 10px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-who div { display: flex; flex-direction: column; min-width: 0; } .acct-who small { color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-menu button { width: 100%; height: 40px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; font-weight: 600; display: flex; align-items: center; gap: 10px; padding: 0 10px; cursor: pointer; }
.acct-menu button:hover { background: var(--overlay); }
@media (max-width: 640px) { .acct-bal { height: 36px; padding: 0 10px; font-size: 13px; } }

/* ===== 채팅 패널 ===== */
.chat { --cw: 380px; position: fixed; top: 0; right: 0; bottom: 0; z-index: 140; width: var(--cw); display: flex; flex-direction: column; background: var(--bg-layer); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .22s ease; }
.chat.on { transform: none; box-shadow: -20px 0 50px rgba(0,0,0,.25); }
@media (min-width: 1200px) { body.chat-open .main { margin-right: 380px; } body.chat-open .header { padding-right: 396px; } body.chat-open .fab { right: 396px; } }
.ch-head { display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line); flex: none; }
.ch-room { position: relative; margin-right: auto; }
.ch-roombtn { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; padding: 6px 4px; }
.ch-roombtn .i { width: 18px; height: 18px; stroke-width: 2.6; }
.ch-rooms { position: absolute; top: 100%; left: 0; z-index: 2; min-width: 160px; padding: 6px; border-radius: 12px; background: var(--bg-card); box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.ch-rooms[hidden] { display: none; }
.ch-rooms button { display: block; width: 100%; text-align: left; height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.ch-rooms button:hover, .ch-rooms [aria-selected=true] { background: var(--overlay); }
.ch-online { display: flex; align-items: center; gap: 5px; color: var(--text-2); font-size: 12px; margin-right: 4px; }
.ch-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); }
.ch-ib { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--bg-card); color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.ch-ib:hover { color: var(--text); } .ch-ib .i { width: 18px; height: 18px; }
.ch-pin { display: flex; gap: 10px; padding: 12px 14px 12px 16px; background: var(--bg-elev); border-bottom: 1px solid var(--line); position: relative; flex: none; }
.ch-pin[hidden] { display: none; }
.ch-pin::before { content: ""; position: absolute; left: 10px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--brand); }
.ch-pin-c { flex: 1; min-width: 0; padding-left: 8px; }
.ch-pin-by { font-size: 13px; color: var(--text-2); } .ch-pin-by b { color: var(--text); font-size: 14px; }
.ch-pin-t { margin-top: 6px; font-weight: 800; font-size: 13px; display: flex; gap: 6px; align-items: center; letter-spacing: .2px; }
.ch-pin-t .i { width: 16px; height: 16px; color: #f5b83d; flex: none; }
.ch-pin-b { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--text-2); white-space: pre-line; }
.ch-pin-a { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.ch-pin-x { border: 0; background: none; color: var(--text-2); cursor: pointer; padding: 2px; } .ch-pin-x .i { width: 16px; height: 16px; stroke-width: 2.6; }
.ch-pin-more { border: 0; background: none; color: var(--brand); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.ch-pin-more .i { width: 15px; height: 15px; stroke-width: 2.6; transition: transform .2s; } .ch-pin-more.on .i { transform: rotate(180deg); }
.ch-list { flex: 1; overflow-y: auto; padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain;
  background: radial-gradient(600px 300px at 80% 10%, var(--brand-faint), transparent 60%); }
.ch-empty { margin: auto; color: var(--text-3); font-size: 14px; }
.ch-msg { display: flex; gap: 10px; align-items: flex-start; }
.ch-ava { width: 40px; height: 40px; font-size: 15px; box-shadow: 0 0 0 2px var(--bg-layer), 0 0 0 3px color-mix(in srgb, hsl(var(--h) 70% 55%) 60%, transparent); }
.ch-c { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.ch-meta { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.ch-vip { font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 5px; background: var(--bg-card); color: var(--text-2); letter-spacing: .3px; }
.ch-vip.v2 { color: #8fd3ff; } .ch-vip.v3 { color: #ffd166; } .ch-vip.v4 { color: #ff9f6e; } .ch-vip.v5 { color: #ff6fd8; background: color-mix(in srgb, #ff6fd8 15%, transparent); }
.ch-nick { border: 0; background: none; padding: 0; color: var(--text-2); font: inherit; font-weight: 700; cursor: pointer; }
.ch-nick:hover { color: var(--text); text-decoration: underline; }
.ch-meta time { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.ch-bub { padding: 9px 13px; border-radius: 4px 14px 14px 14px; background: var(--bg-card); font-size: 14px; line-height: 1.5; word-break: break-word; white-space: pre-wrap; max-width: 100%; }
.ch-msg.mine .ch-bub { background: color-mix(in srgb, var(--brand) 22%, var(--bg-card)); }
.ch-at { color: var(--up); font-weight: 700; }
.ch-sys { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); font-size: 13px; line-height: 1.5; }
.ch-sys .i { width: 15px; height: 15px; color: var(--brand); flex: none; margin-top: 2px; }
.ch-newmsg { position: absolute; left: 50%; bottom: 86px; transform: translateX(-50%); border: 0; border-radius: 99px; padding: 7px 14px; background: var(--brand); color: var(--brand-ink); font: inherit; font-size: 13px; font-weight: 800; display: flex; gap: 4px; align-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.ch-newmsg[hidden] { display: none; } .ch-newmsg .i { width: 15px; height: 15px; }
.ch-emojis { position: absolute; left: 14px; right: 14px; bottom: 80px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; padding: 8px; border-radius: 14px; background: var(--bg-card); box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.ch-emojis[hidden] { display: none; }
.ch-emojis button { border: 0; background: none; font-size: 22px; height: 38px; border-radius: 8px; cursor: pointer; } .ch-emojis button:hover { background: var(--overlay); }
.ch-foot { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex: none; }
.ch-form { display: flex; gap: 10px; align-items: flex-end; }
.ch-box { flex: 1; display: flex; align-items: flex-end; border-radius: 14px; background: var(--bg-card); padding: 4px 6px 4px 14px; }
.ch-box:focus-within { box-shadow: 0 0 0 2px var(--brand-soft); }
.ch-input { flex: 1; resize: none; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; line-height: 1.45; padding: 10px 0; max-height: 96px; outline: none; }
.ch-input::placeholder { color: var(--text-3); }
.ch-ib2 { width: 38px; height: 38px; border: 0; background: none; color: var(--text-2); display: grid; place-items: center; cursor: pointer; border-radius: 10px; } .ch-ib2:hover { color: var(--text); }
.ch-ib2 .i { width: 22px; height: 22px; }
.ch-send { width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.ch-send .i { width: 20px; height: 20px; stroke-width: 2.4; } .ch-send:disabled { opacity: .6; }
.ch-guest { display: flex; align-items: center; gap: 12px; justify-content: space-between; font-size: 14px; color: var(--text-2); } .ch-guest .btn { height: 40px; }
@media (max-width: 640px) { .chat { width: 100%; z-index: 160; } }
[data-guest][hidden] { display: none !important; }
.game-card .name.long { font-size: 15px; overflow-wrap: anywhere; }
/* 게임 썸네일 — 정사각형 아이콘도 세로 카드에 맞게: 흐린 배경 + 가운데 원본 */
.game-card.has-thumb { background: #10121f; }
.game-card.has-thumb::before { display: block; z-index: 0; inset: -12px; background: var(--thumb) center/cover; filter: blur(14px) brightness(.55); }
.game-card .gc-img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: contain; }
.game-card.has-thumb .name, .game-card.has-thumb .prov { display: none; }
.game-card.has-thumb > :not(.gc-img) { position: relative; z-index: 1; }
.game-card.has-thumb .tag-hot, .game-card.has-thumb .players, .game-card.has-thumb .maint { position: absolute; }
.game-card.has-thumb .play-over { position: absolute; }
.game-card.thumb-fail::before { display: none; }
.game-card.thumb-fail { background: linear-gradient(160deg, var(--bg-card), var(--bg-app)); }
.game-card.thumb-fail .name, .game-card.thumb-fail .prov { display: block; }
