/* =========================================================
   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: 1 / 1; /* 게임사 아이콘이 정사각 */
  --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; }
html[data-mode="light"] .logo img.logo-dark, html:not([data-mode="light"]) .logo img.logo-light { display: none; } /* 모드별 로고 */
.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.txt-img strong, .side-promo.txt-img span { position: relative; z-index: 1; max-width: 70%; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-promo.txt-img span { color: rgba(255,255,255,.88); }
.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); }
.side-sub a.has-ic { gap: 10px; padding-left: 26px; }
.side-sub a.has-ic > svg { width: 17px; height: 17px; flex: none; color: var(--text-3, var(--text-2)); opacity: .9; }
.side-sub a.has-ic:hover > svg { color: var(--brand); opacity: 1; }

.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; width: max-content; animation: marquee 60s linear infinite; }
.bigwins-track > .win { margin-right: 8px; } /* gap 대신 오른쪽 여백 — 묶음 폭이 정확히 같아야 -50% 이동 때 이음새가 안 보임 */
.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 .thumb.sport { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 14px 4px 6px; }
.win .thumb.sport .i { width: 26px; height: 26px; }
.win .thumb.sport .sw-prov { position: absolute; top: 4px; left: 4px; font-size: 8px; line-height: 1; padding: 2px 3px; border-radius: 3px; background: rgba(0,0,0,.28); }
.win .thumb.sport .sw-m { font-size: 9px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.bets .g i.sp { display: grid; place-items: center; color: #fff; }
.bets .g i.sp .i { width: 10px; height: 10px; }
.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: repeat(var(--n, 2), 1fr); gap: var(--gap); }
.cat-small { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: var(--gap); margin-top: var(--gap); }
.cat-big:empty + .cat-small, .section > .cat-small:first-child { margin-top: 0; }
.cat .art.img { border-radius: 0; }
.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; }
  .mnav button { position: relative; }
  .mnav-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font: 700 10px/16px system-ui, sans-serif; font-style: normal; text-align: center; }
}
@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 { display: block; min-height: 0; padding: 0; background: none; }
.ad-banner.img img { display: block; width: 100%; height: auto; vertical-align: top; }
.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: sticky; top: 10px; float: right; margin: 10px 10px -42px 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; z-index: 4; } /* 창 안을 내려도 닫기 버튼은 오른쪽 위에 고정 */
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; margin-left: auto; } /* 빅윈·프로모션이 비어도 입금·닫기는 오른쪽 끝 */
.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; }
body.gf-open .modal { z-index: 320; } /* 게임 화면(300) 위에서 연 입금 · 출금 창이 게임 뒤로 숨지 않게 */
@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-coinbox { position: relative; }
.acct-coin { height: 40px; padding: 0 10px; border-radius: var(--radius); border: 0; background: var(--bg-card); color: var(--text); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.acct-coin:hover { background: var(--bg-card-hover); }
.acct-coins { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; min-width: 230px; padding: 6px; border-radius: var(--radius); background: var(--bg-elev); box-shadow: 0 10px 30px rgba(0,0,0,.35); display: grid; gap: 2px; }
.acct-coins[hidden] { display: none; }
.acct-coins button { display: grid; grid-template-columns: 14px auto 1fr auto; align-items: center; gap: 8px; padding: 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.acct-coins button:hover, .acct-coins button[aria-checked="true"] { background: var(--bg-card); }
.acct-coins small { color: var(--text-3); font-size: 11px; } .acct-coins .cb { font-variant-numeric: tabular-nums; font-weight: 700; }
.coin-dot { width: 12px; height: 12px; border-radius: 50%; background: #8a8f98; display: inline-block; } .coin-dot.c-USDT { background: #26a17b; } .coin-dot.c-USDC { background: #2775ca; }
.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; } .acct-coin { height: 36px; padding: 0 8px; } }

/* ===== 채팅 패널 ===== */
.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 { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; padding: 1px 7px 1px 5px; border-radius: 999px; color: var(--vc, #a685ff); background: color-mix(in srgb, var(--vc, #a685ff) 16%, transparent); letter-spacing: .2px; white-space: nowrap; }
.ch-vip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.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; }

/* "전체" 목록 */
.modal-box.modal-wide { width: min(1080px, 100%); }
.all-box { padding: 22px 22px 26px; }
.all-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; padding-right: 36px; }
.all-head h2 { font-size: 20px; } .all-head span { color: var(--text-2); font-size: 14px; }
.all-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.all-grid .game-card { width: auto; }
.all-grid.promos { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.all-grid.promos .promo-card { width: auto; }
@media (max-width: 640px) { .all-box { padding: 16px 14px 22px; } .all-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } .all-grid.promos { grid-template-columns: 1fr; } }

/* ---------- 2차 인증 · 설정 ---------- */
.au-sub { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.55; }
.au-2fa { text-align: center; } .au-2fa h3 { margin: 4px 0 0; font-size: 20px; } .au-2fa .au-f { text-align: left; }
.au-2fa input[name="code"] { text-align: center; font-size: 22px; letter-spacing: .3em; font-weight: 800; }
.au-2fa-ic { width: 56px; height: 56px; margin: 6px auto 0; display: grid; place-items: center; border-radius: 16px; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.au-2fa-ic svg { width: 26px; height: 26px; }
.au-main.danger { background: #e5484d; color: #fff; box-shadow: none; }
.au-ghost.sm { height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; display: inline-grid; place-items: center; text-decoration: none; }
.st-box .au-tabs button.on { pointer-events: none; }
.st-row { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.st-row b { display: block; font-size: 15px; } .st-row small { display: block; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.st-on, .st-off-b { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.st-on { background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); } .st-off-b { background: var(--line); color: var(--text-2); }
.st-off summary { cursor: pointer; color: var(--text-2); font-size: 13px; margin-bottom: 10px; } .st-off[open] { display: grid; gap: 12px; }
.st-steps { margin: 0; padding-left: 20px; display: grid; gap: 16px; } .st-steps li b { display: block; } .st-steps li small { display: block; color: var(--text-2); margin: 4px 0 8px; line-height: 1.5; }
.st-qr { width: 176px; height: 176px; padding: 8px; background: #fff; border-radius: 12px; display: grid; place-items: center; color: #333; font-size: 12px; text-align: center; }
.st-qr svg { width: 100%; height: 100%; }
.st-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; } .st-key code { font-size: 13px; letter-spacing: .04em; word-break: break-all; }
.st-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; border-radius: 12px; background: var(--bg-elev, rgba(255,255,255,.04)); }
.st-codes code { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-align: center; }
.st-box .au-row { grid-template-columns: 1fr 1fr; }

/* ---------- 언어 · 표시 통화 ---------- */
.locale-btn { cursor: pointer; border: 0; font: inherit; }
.lc-box { width: min(430px, 100%); display: flex; flex-direction: column; max-height: min(680px, calc(100dvh - 32px)); }
.lc-body { padding: 16px 20px 20px; overflow: auto; flex: 1; }
.lc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lc-lang { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-weight: 600; text-align: left; padding: 0 14px; cursor: pointer; }
.lc-lang:hover { background: var(--bg-card); } .lc-lang.on { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.lc-hint { margin: 0 0 12px; color: var(--text-2); font-size: 13px; }
.lc-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 10px; background: var(--bg-card); margin-bottom: 8px; }
.lc-search input { flex: 1; border: 0; background: none; color: var(--text); font: inherit; outline: none; } .lc-search .i { color: var(--text-2); }
.lc-list { display: grid; }
.lc-cur { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.lc-cur:hover { background: var(--bg-card); } .lc-cur b { flex: 1; font-weight: 700; }
.lc-sym { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: hsl(var(--h) 60% 45%); }
.lc-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--text-2); opacity: .6; }
.lc-cur.on .lc-radio { border: 5px solid var(--brand); opacity: 1; }
.lc-side { margin-top: 8px; } .lc-side small { color: var(--text-2); font-weight: 700; }
.popup-modal { position: relative; } .pp-count { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 800; }
/* 언어 · 표시 통화 탭 — 선택된 탭을 분명하게 */
.lc-box .au-tabs [role=tab] { color: var(--text-2); opacity: .55; transition: color .15s, opacity .15s; }
.lc-box .au-tabs [role=tab]:hover { opacity: .85; }
.lc-box .au-tabs [role=tab].on { color: var(--text); opacity: 1; font-weight: 800; }
.lc-box .au-tabs [role=tab].on::after { left: 12%; right: 12%; height: 3px; }
/* 설정 창: 탭이 하나라 닫기 버튼을 오른쪽 끝으로 */
.st-box .au-tabs { grid-template-columns: auto 1fr 64px; }
.st-box .au-tabs [role=tab] { padding: 0 6px; }
.st-box .au-tabs .au-x { grid-column: 3; }
/* 게임 아이콘 아래 제공사 이름 */
.gc-wrap { min-width: 0; display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; }
.gc-wrap .game-card { width: 100%; }
.gc-prov { font-size: 12px; color: var(--text-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.gc-title { font-size: 13px; font-weight: 700; color: var(--text); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; margin-bottom: -4px; }
.game-card .prov { display: none; } /* 카드 안 제공사 표기는 아래 줄로 대신 */
.st-tg { padding: 0 22px 22px; display: grid; gap: 12px; } .st-tg:empty { display: none; }
.st-tg .au-alt, .st-tg .au-ghost { width: 100%; }

/* ---------- 고객 지원 창 (오른쪽 아래) ---------- */
.fab-support.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 40%, transparent); }
.sp { position: fixed; right: 20px; bottom: 84px; z-index: 950; width: min(400px, calc(100vw - 24px)); height: min(680px, calc(100dvh - 120px)); display: flex; flex-direction: column;
  background: #fff; color: #1a1d21; border-radius: 22px; box-shadow: 0 24px 80px rgba(0,0,0,.45); overflow: hidden; animation: sp-in .18s ease-out; font-size: 15px; }
.sp[hidden] { display: none; }
@keyframes sp-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.sp-body { flex: 1; overflow: auto; display: flex; flex-direction: column; min-height: 0; }
.sp.sp-hero .sp-body { background: linear-gradient(180deg, var(--brand) 0, color-mix(in srgb, var(--brand) 70%, #fff) 300px, #fff 420px); }
.sp-top { position: relative; padding: 28px 24px 18px; color: var(--brand-ink); }
.sp-top h2 { margin: 52px 0 0; font-size: 28px; line-height: 1.3; font-weight: 800; color: inherit; }
.sp-avs { display: flex; } .sp-avs i { width: 46px; height: 46px; margin-right: -10px; border-radius: 50%; border: 3px solid var(--brand); display: grid; place-items: center; font-style: normal; font-weight: 900; background: #fff; color: #222; font-size: 15px; }
.sp-avs i:nth-child(2) { background: #1f2430; color: #fff; } .sp-avs .i { width: 20px; height: 20px; }
.sp-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
.sp-x:hover { background: rgba(0,0,0,.08); } .sp-x .i { width: 18px; height: 18px; }
.sp-cards { padding: 0 16px 16px; display: grid; gap: 12px; }
.sp-card { background: #fff; border: 1px solid #e6e8eb; border-radius: 16px; padding: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.sp-send { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px; font: inherit; cursor: pointer; text-align: left; color: #1a1d21; }
.sp-send b { font-weight: 700; } .sp-send .i { width: 20px; height: 20px; color: var(--brand); }
.sp-search { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 12px; background: #f2f3f5; }
.sp-search input { flex: 1; border: 0; background: none; box-shadow: none; height: auto; padding: 0; font: inherit; font-weight: 600; color: #1a1d21; outline: none; min-width: 0; } .sp-search .i { width: 18px; height: 18px; cursor: pointer; color: #333; }
.sp-li { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border: 0; background: none; font: inherit; color: #4a4f57; text-align: left; cursor: pointer; border-radius: 10px; }
.sp-li:hover { background: #f5f6f7; color: #1a1d21; } .sp-li .i { width: 16px; height: 16px; flex: none; }
.sp-mute { color: #8a9099; font-size: 14px; padding: 10px 14px; margin: 0; }
.sp-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 56px 0 20px; background: #fff; border-bottom: 1px solid #eef0f2; }
.sp-head h3 { margin: 0; font-size: 17px; flex: 1; text-align: center; } .sp-head .sp-x { top: 12px; }
.sp-back { width: 34px; height: 34px; margin-left: -10px; border: 0; background: none; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: #333; } .sp-back:hover { background: #f2f3f5; } .sp-back .i { width: 18px; height: 18px; }
.sp-who { flex: 1; display: flex; gap: 10px; align-items: center; min-width: 0; } .sp-who b { display: block; font-size: 15px; } .sp-who small { display: block; color: #8a9099; font-size: 12px; line-height: 1.35; }
.sp-av { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 900; }
.sp-pad { padding: 14px 16px; display: grid; gap: 8px; }
.sp-hl h4 { margin: 14px 4px 4px; font-size: 13px; color: #8a9099; } .sp-hl h4 small { font-weight: 600; }
.sp-art { padding: 6px 24px 6px; line-height: 1.7; color: #33373d; } .sp-art h2 { font-size: 21px; margin: 16px 0 12px; color: #1a1d21; } .sp-art p { margin: 0 0 12px; }
.sp-helpful { color: #8a9099; font-size: 13px; text-align: center; }
.sp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 12px; border: 1px solid #e1e4e8; background: #fff; font: inherit; font-weight: 700; color: #1a1d21; cursor: pointer; }
.sp-btn.primary { background: var(--brand); color: var(--brand-ink); border-color: transparent; } .sp-btn .i { width: 18px; height: 18px; }
.sp-th { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left; font: inherit; color: #1a1d21; }
.sp-th:hover { background: #f5f6f7; } .sp-th > span:nth-child(2) { flex: 1; min-width: 0; } .sp-th b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sp-th small { color: #8a9099; } .sp-th > .i { width: 16px; height: 16px; }
.sp-log { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f7f8fa; }
.sp-m { max-width: 86%; align-self: flex-start; } .sp-m p { margin: 0; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid #eceef1; line-height: 1.55; white-space: normal; word-break: break-word; }
.sp-m small { display: block; font-size: 11px; color: #8a9099; margin: 0 0 3px 4px; }
.sp-m.me { align-self: flex-end; } .sp-m.me p { background: var(--brand); color: var(--brand-ink); border-color: transparent; border-radius: 16px 16px 4px 16px; }
.sp-m.agent p { border-color: color-mix(in srgb, var(--brand) 50%, #fff); }
.sp-refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .sp-refs button { border: 1px solid #dfe3e8; background: #fff; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; color: #333; }
.sp-m.typing p { display: flex; gap: 4px; } .sp-m.typing i { width: 6px; height: 6px; border-radius: 50%; background: #b5bac1; animation: sp-dot 1s infinite; } .sp-m.typing i:nth-child(2) { animation-delay: .15s; } .sp-m.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sp-dot { 50% { opacity: .3; transform: translateY(-2px); } }
.sp-hand { padding: 0 16px; background: #f7f8fa; } .sp-hand:not(:empty) { padding-bottom: 10px; }
.sp-wait { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #6b7280; padding: 10px 12px; background: #fff; border-radius: 12px; border: 1px dashed #d6dae0; } .sp-wait .i { width: 16px; height: 16px; }
.sp-in { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid #eef0f2; background: #fff; }
.sp-in textarea { flex: 1; resize: none; background: #fff; border: 1px solid #e1e4e8; border-radius: 12px; padding: 11px 12px; font: inherit; line-height: 1.4; outline: none; max-height: 120px; color: #1a1d21; }
.sp-in textarea:focus { border-color: var(--brand); } .sp-in button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; cursor: pointer; } .sp-in .i { width: 18px; height: 18px; }
.sp-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #eef0f2; background: #fff; }
.sp-tabs button { display: grid; justify-items: center; gap: 4px; padding: 12px 0 14px; border: 0; background: none; font: inherit; font-size: 13px; color: #8a9099; cursor: pointer; }
.sp-tabs button.on { color: #1a1d21; font-weight: 700; } .sp-tabs .i { width: 22px; height: 22px; }
.sp-hm { width: 22px; height: 22px; border-radius: 7px 7px 9px 9px; border: 2px solid currentColor; position: relative; } .sp-tabs button.on .sp-hm { background: currentColor; }
.sp-hm::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 4px; border-bottom: 2px solid #fff; border-radius: 0 0 6px 6px; } .sp-tabs button:not(.on) .sp-hm::after { border-color: currentColor; }
@media (max-width: 900px) { .sp { right: 0; left: 0; bottom: 0; width: 100%; height: 100dvh; border-radius: 0; } body.sp-open { overflow: hidden; } }
@media (prefers-reduced-motion: reduce) { .bigwins-track { animation: none !important; } }
.bw-hint { font-size: 12px; font-weight: 600; color: var(--text-2); margin-left: 6px; }
.win[data-gid] { cursor: pointer; } .win .amt small { font-size: 11px; color: var(--text-2); font-weight: 700; }
/* 사이드바: 아직 준비 중인 메뉴는 흐리게 */
.side-item.soon { opacity: .55; } .side-item.soon:hover { opacity: .8; }
.soon-tag { margin-left: auto; margin-right: 6px; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: var(--bg-card); color: var(--text-2); white-space: nowrap; }
body.side-mini .soon-tag { display: none; }
.all-empty { color: var(--text-2); padding: 30px 0; text-align: center; }

.sp-rate { display: flex; align-items: center; gap: 6px; margin: 4px 0 0 4px; font-size: 12px; color: #8a9099; }
.sp-rate button { border: 1px solid #e1e4e8; background: #fff; border-radius: 999px; padding: 2px 8px; cursor: pointer; font-size: 13px; }
.sp-rate button:hover { background: #f2f3f5; }
.sp-m.kb p { border-color: color-mix(in srgb, var(--brand) 35%, #eceef1); }

/* ---------- VIP 클럽 · 승급 축하 ---------- */
.vip-box { width: min(520px, 100%); padding: 22px 22px 24px; }
.vip-box .au-x { position: absolute; top: 14px; right: 14px; }
.vip-head h2 { font-size: 20px; font-weight: 800; } .vip-head p { color: var(--text-2, #9aa3b5); font-size: 13px; margin-top: 4px; }
.vip-body { display: grid; gap: 14px; margin-top: 16px; }
.vip-me { border-radius: 14px; padding: 14px 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 28%, transparent), var(--bg-card)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); display: grid; gap: 8px; }
.vip-me.guest { background: var(--bg-card); border-color: transparent; }
.vip-me p { font-size: 13px; color: var(--text-2, #9aa3b5); } .vip-me p b { color: var(--text); }
.vip-me small { font-size: 11.5px; color: var(--text-3, #7d869a); }
.vip-badge { display: flex; align-items: center; gap: 8px; color: var(--c); font-size: 18px; } .vip-badge b { color: var(--text); }
.vip-badge .i { width: 22px; height: 22px; }
.vip-row { display: flex; justify-content: space-between; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.vip-bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.vip-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c); transition: width .6s ease; }
.vip-tiers { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.vip-tiers li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-card); opacity: .75; }
.vip-tiers li.on { opacity: 1; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
.vip-tiers b { font-size: 14px; } .vip-tiers small { display: block; font-size: 11.5px; color: var(--text-2, #9aa3b5); margin-top: 2px; }
.vip-tiers em { display: block; font-style: normal; font-size: 11.5px; color: var(--c); margin-top: 3px; }
.vip-dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.vip-dot .i { width: 20px; height: 20px; }
.vip-bonus { text-align: right; font-size: 10.5px; color: var(--text-3, #7d869a); line-height: 1.3; } .vip-bonus b { font-size: 12.5px; color: var(--text); }
.vip-off { font-size: 12px; color: var(--text-3, #7d869a); text-align: center; }
.vip-cele { position: relative; text-align: center; display: grid; justify-items: center; gap: 10px; padding: 10px 4px 2px; overflow: hidden; }
.vip-crown { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: 0 12px 40px color-mix(in srgb, var(--c) 55%, transparent); animation: vip-pop .7s cubic-bezier(.2, 1.6, .4, 1); }
.vip-crown .i { width: 44px; height: 44px; }
.vip-kicker { font-size: 13px; font-weight: 700; color: var(--c); letter-spacing: .3px; }
.vip-cele h2 { font-size: 22px; font-weight: 800; } .vip-cele h2 span { color: var(--text-3, #7d869a); font-weight: 600; } .vip-cele h2 b { color: var(--c); }
.vip-perks { font-size: 13px; color: var(--text-2, #9aa3b5); max-width: 340px; }
.vip-gift { padding: 10px 16px; border-radius: 12px; background: color-mix(in srgb, var(--c) 16%, var(--bg-card)); font-size: 13px; } .vip-gift b { font-size: 16px; margin-left: 4px; }
.vip-cele .au-main { width: 100%; margin-top: 6px; }
.vip-link { background: none; border: 0; color: var(--text-2, #9aa3b5); font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.vip-burst { position: absolute; inset: 0; pointer-events: none; }
.vip-burst i { position: absolute; left: 50%; top: 70px; width: 8px; height: 14px; border-radius: 3px; background: hsl(calc(var(--i) * 26deg) 85% 62%); animation: vip-fly 1.4s ease-out forwards; transform: rotate(calc(var(--i) * 26deg)) translateY(0); opacity: 0; }
@keyframes vip-fly { 0% { opacity: 1; transform: rotate(calc(var(--i) * 26deg)) translateY(0); } 100% { opacity: 0; transform: rotate(calc(var(--i) * 26deg)) translateY(-150px); } }
@keyframes vip-pop { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vip-crown, .vip-burst i { animation: none; } }
.dp-amt .dp-approx { font-style: normal; font-size: 12.5px; color: var(--text-3, #7d869a); white-space: nowrap; }
/* 고객 지원: 상담원 답변을 아직 안 읽었으면 개수 배지 (읽을 때까지 유지) */
.fab-support.has-new::after { content: attr(data-count); position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ef4444; color: #fff; font: 700 11px/20px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--bg, #0f1923); animation: spNew 1.6s ease-in-out infinite; }
@keyframes spNew { 50% { transform: scale(1.15); } }
.sp-tabs [data-t="msg"] { position: relative; }
.sp-tabs [data-t="msg"].sp-dot::after { content: ""; position: absolute; top: 6px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.sp-new { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font: 700 11px/18px system-ui, sans-serif; font-style: normal; text-align: center; vertical-align: 1px; }

/* 분양 테스트 모드 띠 */
.test-ribbon { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 80; background: #f59e0b; color: #1a1300; font: 700 12px/1 system-ui, sans-serif; padding: 9px 14px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.35); pointer-events: none; white-space: nowrap; }

/* 레이아웃 스타일별 요소 (기본 레이아웃에서는 숨김) */
.side-top { display: none; }

/* 게임 목록 검색 */
.all-tools { display: flex; gap: 10px; margin: 0 -22px 14px; padding: 10px 64px 10px 22px; position: sticky; top: 0; z-index: 3; background: var(--bg-layer); } /* 게임 목록을 내려도 게임사 메뉴 · 검색은 위에 고정 */
.all-search { flex: 1; min-width: 0; width: 100%; height: 44px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-input); color: var(--text); padding: 0 14px; font: inherit; margin: 0; }
.all-prov select { height: 44px; max-width: 260px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa3b8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--text); padding: 0 38px 0 14px; font: inherit; font-weight: 600; appearance: none; cursor: pointer; }
.all-prov select:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
@media (max-width: 640px) { .all-tools { flex-direction: column; gap: 8px; margin: 0 -14px 12px; padding: 8px 54px 8px 14px; } .all-search { flex: none; } .all-prov select { max-width: none; width: 100%; } }
.all-search:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.all-grid .gc-wrap[hidden] { display: none; }

/* 인게임 빅윈 브로드캐스트 */
.gf-cast { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--bg-app) 70%, transparent); padding: 0 6px 0 10px; overflow: hidden; position: relative; }
.gf-cast[hidden] { display: none; }
.gf-cast + .gf-promo { flex: 0 0 auto; }
.gf-cast-tag { flex: none; font: 800 10px/1 var(--font); letter-spacing: .6px; padding: 5px 7px; border-radius: 6px; color: #1b1300; background: linear-gradient(135deg, #ffd66b, #ff9f2e); }
/* 흐르는 띠는 이 창 안에서만 보임 — BIG WIN 표 아래로 겹쳐 지나가지 않게 */
.gf-cast-view { flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 24px), transparent); }
.gf-cast-track { display: flex; gap: 8px; min-width: 0; }
.gf-cast-track.flow { width: max-content; animation: gfCast var(--dur, 40s) linear infinite; }
.gf-cast:hover .gf-cast-track.flow { animation-play-state: paused; }
@keyframes gfCast { to { transform: translateX(-50%); } }
.gf-cw { flex: none; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 4px; border-radius: 9px; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); text-align: left; transition: background .15s; }
.gf-cw:hover { background: color-mix(in srgb, var(--brand) 22%, transparent); }
.gf-cw i { width: 28px; height: 28px; border-radius: 7px; background: var(--bg-card) center/cover no-repeat; display: grid; place-items: center; font: 800 10px/1 var(--font); font-style: normal; color: var(--text-2); flex: none; }
.gf-cw span { display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: baseline; line-height: 1.15; }
.gf-cw em { font-style: normal; font-size: 11px; color: var(--text-2); }
.gf-cw b { font-size: 13px; color: var(--up); }
.gf-cw small { grid-column: 1 / -1; font-size: 10.5px; color: var(--text-3); white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.gf-cw.fresh { box-shadow: 0 0 0 1px #ffd66b inset; background: color-mix(in srgb, #ffb020 18%, transparent); }
.gf-cast.ping::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px #ffd66b inset; animation: gfPing 1.6s ease-out forwards; pointer-events: none; }
@keyframes gfPing { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 640px) {
  .gf-bar { flex-wrap: wrap; height: auto; padding-top: 6px; padding-bottom: 6px; row-gap: 6px; }
  .gf-cast { order: 3; flex: 1 0 100%; height: 40px; }
  .gf-title { flex: 1; }
}

/* ---------- 쪽지함 (notes.js) ---------- */
.notes-btn { position: relative; }
.notes-dot { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; }

/* ---------- 리더보드 (leaderboard.js) ---------- */
.lb-btn { color: #f5b301; }
/* 좁은 화면: 리더보드 · 쪽지 아이콘까지 헤더 한 줄에 */
@media (max-width: 480px) {
  .header-left { min-width: 0; flex: 1 1 auto; } .header-left .logo { min-width: 0; overflow: hidden; white-space: nowrap; }
  .header-right { gap: 6px; flex: none; }
  .header-right .lb-btn, .header-right .notes-btn { width: 36px; height: 36px; }
  .header .btn { padding: 0 10px; }
}
@media (max-width: 380px) { .logo { font-size: 17px; } .header .btn-deposit span { display: none; } }
.notes-btn[hidden], .lb-btn[hidden] { display: none; }
@media (max-width: 480px) { .logo-mark { flex: none; } .header-left .logo { text-overflow: ellipsis; } }

/* ---------- 출금 신청 (withdraw.js) ---------- */
.wd .dp-amt .btn { height: 32px; padding: 0 12px; font-size: 12.5px; }
.wd-addr { height: 46px; padding: 0 14px; border-radius: var(--radius); background: var(--bg-input); border: 1.5px solid var(--line); color: var(--text); font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; outline: 0; width: 100%; }
.wd-addr:focus { border-color: var(--brand); }
.wd-hist { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.wd-hist > b { font-size: 13px; }
.wd-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-card); font-size: 13px; }
.wd-row > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; } .wd-row small { color: var(--text-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-row .btn { height: 30px; padding: 0 10px; font-size: 12px; }
.wd-st { font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--bg-chip); white-space: nowrap; }
.wd-st.st-paid { background: color-mix(in srgb, #26a17b 22%, transparent); color: #3fd0a0; }
.wd-st.st-pending, .wd-st.st-approved { background: color-mix(in srgb, #f5b301 20%, transparent); color: #f5b301; }
.wd-st.st-rejected, .wd-st.st-cancelled { color: var(--text-2); }
.wd-none { font-size: 12.5px; color: var(--text-3); }

/* ---------- 스폰서십 파트너 ---------- (고객 지원 창 .sp 와 이름이 겹치는 것은 범위를 좁혀 둠) */
.sp-intro { color: var(--text-2); font-size: 14px; margin: -4px 0 16px; line-height: 1.6; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
a.sp-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
a.sp-card:hover { transform: translateY(-2px); border-color: var(--brand-glow); }
.sp-card-logo { height: 110px; display: grid; place-items: center; padding: 16px; background: linear-gradient(150deg, color-mix(in srgb, var(--sp-bg), white 10%), var(--sp-bg)); }
.sp-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sp-card-body b { font-size: 15px; }
.sp-card-body small { color: var(--text-2); font-size: 12px; line-height: 1.5; }
.sp-kind { font-size: 11px; font-weight: 700; color: var(--brand); letter-spacing: .02em; }
.sp-logo { max-width: 100%; max-height: 72px; object-fit: contain; }
.sp-logo.big { max-height: 110px; }
.sp-txt { font-size: 18px; font-weight: 800; color: #fff; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-logo.big.sp-txt { font-size: 26px; }
.sp-hero:not(.sp) { height: 180px; display: grid; place-items: center; padding: 24px; background: linear-gradient(150deg, color-mix(in srgb, var(--sp-bg), white 12%), var(--sp-bg) 60%, color-mix(in srgb, var(--sp-bg), black 30%)); }
:not(.sp) > .sp-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
:not(.sp) > .sp-body h2 { font-size: 22px; }
.sp-tag { color: var(--text-2); font-size: 14px; }
.sp-text { font-size: 14px; line-height: 1.7; color: var(--text-2); white-space: normal; margin-top: 4px; }
.sp-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }
.sp-strip { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.sp-strip h4 { font-size: 13px; font-weight: 800; color: var(--text-2); margin-bottom: 14px; }
.sp-strip-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sp-strip-row a { height: 56px; min-width: 120px; padding: 10px 16px; border-radius: var(--radius); background: var(--bg-card); display: grid; place-items: center; opacity: .8; transition: opacity .15s, background .15s; }
.sp-strip-row a:hover { opacity: 1; background: var(--bg-card-hover); }
.sp-strip-row .sp-logo { max-height: 36px; max-width: 140px; }
.sp-strip-row .sp-txt { font-size: 14px; color: var(--text); }
@media (max-width: 480px) { .sp-grid { grid-template-columns: 1fr 1fr; } .sp-card-logo { height: 84px; } .sp-strip-row a { min-width: 0; flex: 1 1 calc(50% - 6px); } }
/* 쪽지 확인 후 게임 실행 */

/* ---------- 쪽지함 페이지 (게시판) — #notes ---------- */
.np { padding: 24px 0 40px; }
.np[hidden], #home[hidden] { display: none; }
.np-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.np-head h1 { font-size: 22px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.np-cnt { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #ef4444; color: #fff; font-size: 12px; line-height: 22px; text-align: center; }
.np-head .btn, .np-view .btn { height: 38px; padding: 0 14px; font-size: 13px; }
.np-head .btn:not(.btn-primary), .np-view .btn:not(.btn-primary) { background: var(--bg-chip); }
.np-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.np-gate { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; margin-bottom: 12px; border-radius: var(--radius-lg); background: color-mix(in srgb, #f59e0b 14%, transparent); border: 1px solid color-mix(in srgb, #f59e0b 35%, transparent); }
.np-gate b { font-size: 15px; }
.np-gate span { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.np-gate em { font-style: normal; font-size: 12.5px; font-weight: 800; color: #f59e0b; }
.np-gate.ok { flex-direction: row; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--up) 12%, transparent); border-color: color-mix(in srgb, var(--up) 35%, transparent); }
.np-gate.ok .btn { height: 40px; padding: 0 18px; }
.np-tabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.np-tabs button { height: 32px; padding: 0 14px; border-radius: 8px; color: var(--text-2); font-weight: 700; font-size: 13px; }
.np-tabs button.on { background: var(--bg-chip); color: var(--text); }
.np-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.np-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--text-3); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-row); }
.np-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.np-table tbody tr { cursor: pointer; transition: background .12s; }
.np-table tbody tr:hover { background: var(--bg-card-hover); }
.np-table tbody tr:last-child td { border-bottom: 0; }
.np-table .c-no { width: 70px; text-align: center; color: var(--text-3); font-variant-numeric: tabular-nums; }
.np-table .c-date { width: 130px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.np-table .c-st { width: 90px; text-align: center; }
.np-table .c-sub a { color: var(--text-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.np-table tr.new .c-sub a { color: var(--text); font-weight: 800; }
.np-table .m-date { display: none; }
.np-badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--bg-chip); color: var(--text-3); }
.np-badge.new { background: #ef4444; color: #fff; }
.np-empty { text-align: center; color: var(--text-2); padding: 56px 16px; }
.np-pager { display: flex; justify-content: center; gap: 4px; padding: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.np-pager button { min-width: 34px; height: 34px; border-radius: 8px; color: var(--text-2); font-weight: 700; }
.np-pager button.on { background: var(--brand); color: var(--brand-ink); }
.np-view header { padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.np-view h2 { font-size: 19px; font-weight: 800; line-height: 1.4; word-break: break-word; }
.np-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.np-tr { color: var(--text-3); } .np-link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; }
.np-body { padding: 24px 22px 32px; font-size: 15px; line-height: 1.8; color: var(--text); word-break: break-word; min-height: 160px; }
.np-view footer { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--bg-row); }
.np-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.np-del { color: var(--down) !important; }
@media (max-width: 640px) {
  .np { padding-top: 16px; }
  .np-table thead, .np-table .c-no, .np-table .c-date { display: none; }
  .np-table td { padding: 12px; }
  .np-table .c-sub a { max-width: 70vw; }
  .np-table .m-date { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
  .np-table .c-st { width: 70px; }
  .np-gate.ok { flex-direction: column; align-items: stretch; gap: 10px; }
}


/* ---------- 리더보드 페이지 — #leaderboard ---------- */
.lbp { padding: 24px 0 40px; }
.lbp[hidden] { display: none; }
.lbp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lbp-head h1 { font-size: 22px; font-weight: 900; }
.lbp-head p { margin-top: 4px; font-size: 13px; color: var(--text-2); }
.lbp-head .btn { height: 38px; padding: 0 14px; font-size: 13px; background: var(--bg-chip); }
.lbp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.lbp-seg { display: inline-flex; background: var(--bg-card); border-radius: 10px; padding: 3px; gap: 2px; }
.lbp-seg button { padding: 8px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.lbp-seg button.on { background: var(--bg-chip-hover); color: var(--text); }
.lbp-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; margin-bottom: 14px; }
.lbp-pod { --px: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px var(--px) 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, var(--bg-card)), var(--bg-card)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); border-bottom: 0; min-width: 0; }
.lbp-pod.p1 { --c: #f5b301; padding-top: 26px; }
.lbp-pod.p2 { --c: #b8c2d6; }
.lbp-pod.p3 { --c: #d08a4a; }
.lbp-pod.empty { opacity: .45; }
.lbp-pod.me { box-shadow: 0 0 0 2px var(--brand) inset; }
.lbp-medal { font-size: 34px; line-height: 1; }
.lbp-pod.p1 .lbp-medal { font-size: 44px; }
.lbp-name { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbp-amt { font-size: 14px; font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; }
.lbp-step { width: calc(100% + 2 * var(--px)); margin: 10px calc(-1 * var(--px)) 0; display: grid; place-items: center; font-size: 26px; font-weight: 900; color: color-mix(in srgb, var(--c) 80%, var(--text)); background: color-mix(in srgb, var(--c) 14%, transparent); height: 48px; }
.lbp-pod.p1 .lbp-step { height: 72px; }
.lbp-pod.p2 .lbp-step { height: 56px; }
.lbp-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.lbp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lbp-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--text-3); padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg-row); }
.lbp-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lbp-table tbody tr:last-child td { border-bottom: 0; }
.lbp-table tr.me td { background: var(--brand-soft); }
.lbp-table .c-rk { width: 70px; text-align: center; color: var(--text-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.lbp-table .c-u { font-weight: 600; }
.lbp-table .c-amt { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.lbp-empty { text-align: center; color: var(--text-2); padding: 56px 16px; }
.lbp-me { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.lbp-me b { color: var(--text); font-size: 15px; }
.lbp-me .btn { height: 36px; padding: 0 14px; font-size: 13px; }
.lbp-hint { margin-top: 10px; font-size: 12px; color: var(--text-3); }
@media (max-width: 640px) {
  .lbp { padding-top: 16px; }
  .lbp-podium { gap: 6px; }
  .lbp-pod { --px: 6px; padding-top: 12px; }
  .lbp-medal { font-size: 26px; } .lbp-pod.p1 .lbp-medal { font-size: 34px; }
  .lbp-name { font-size: 13px; } .lbp-amt { font-size: 12px; }
  .lbp-table th, .lbp-table td { padding: 11px 10px; }
  .lbp-table .c-rk { width: 48px; }
}

.np-tabs { align-items: center; }
.np-tabs .grow { flex: 1; }
.np-tabs .np-readall { height: 32px; padding: 0 12px; border-radius: 8px; background: var(--bg-chip); color: var(--text); font-weight: 700; font-size: 12.5px; }
.np-tabs .np-readall:hover { background: var(--bg-chip-hover); }
.np-pager button.nav { color: var(--text-3); }
.np-pager button:disabled { opacity: .35; cursor: default; }

/* ---------- 마이페이지 — #mypage ---------- */
.mp-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.mp-tabs button { padding: 10px 16px; font-weight: 800; font-size: 14px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.mp-tabs button.on { color: var(--text); border-color: var(--brand); }
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mp-grid h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.mp-profile, .mp-nick, .mp-quick { padding: 20px; }
.mp-profile { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; }
.mp-ava { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 900; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); }
.mp-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mp-who b { font-size: 19px; overflow: hidden; text-overflow: ellipsis; }
.mp-who span { font-size: 12.5px; font-weight: 800; color: var(--brand); }
.mp-dl { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; margin: 4px 0 0; }
.mp-dl dt { color: var(--text-3); }
.mp-dl dd { margin: 0; overflow: hidden; text-overflow: ellipsis; }
.mp-row { display: flex; gap: 8px; }
.mp-inp { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-input); color: var(--text); font-size: 15px; }
.mp-inp:focus { outline: 2px solid var(--brand-glow); }
.mp-inp:disabled, .mp-row .btn:disabled { opacity: .5; cursor: not-allowed; }
.mp-row .btn { height: 44px; }
.mp-hint { margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.mp-lock { margin-top: 10px; font-size: 13px; color: var(--text-2); }
.mp-err { margin-top: 8px; font-size: 13px; color: var(--down); font-weight: 700; }
.mp-quick { grid-column: 1 / -1; }
.mp-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.mp-links button { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-chip); font-weight: 700; font-size: 13.5px; text-align: left; }
.mp-links button:hover { background: var(--bg-chip-hover); }
.mp-links span { font-size: 17px; }
.mp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.mp-stats > div { padding: 14px 16px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.mp-stats small { font-size: 12px; color: var(--text-3); }
.mp-stats b { font-size: 17px; font-variant-numeric: tabular-nums; }
.mp .up { color: var(--up); } .mp .down { color: var(--down); }
.mp-table td, .mp-table th { padding: 11px 14px; }
.mp-table tbody tr { cursor: default; }
.mp-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.mp-table .c { text-align: center; }
.mp-table .b { font-weight: 800; }
.mp-table .sm { font-size: 12.5px; }
.mp-table .nowrap { white-space: nowrap; color: var(--text-2); font-size: 13px; }
.mp-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.mp-table a { color: var(--brand); }
.mp-sub { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.mp-cx td { opacity: .55; }
.mp-pick { color: var(--text-2); }
.mp-pick b { color: var(--text); font-weight: 600; }
.mp-pick summary { cursor: pointer; color: var(--text); }
.mp-pick > div { padding: 2px 0 0 12px; }
.mp-live { font-style: normal; font-size: 10px; font-weight: 700; color: #ff5c5c; }
.mp-open { font-size: 12px; font-weight: 600; color: var(--brand); }
.mp-st { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--bg-chip); color: var(--text-2); white-space: nowrap; }
.mp-st.completed, .mp-st.confirmed, .mp-st.paid { background: color-mix(in srgb, var(--up) 18%, transparent); color: var(--up); }
.mp-st.pending, .mp-st.approved, .mp-st.held { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #f59e0b; }
.mp-st.rejected, .mp-st.failed { background: color-mix(in srgb, var(--down) 18%, transparent); color: var(--down); }
.mp-mini { height: 28px !important; padding: 0 10px !important; font-size: 12px !important; background: var(--bg-chip); }
@media (max-width: 760px) {
  .mp-grid { grid-template-columns: 1fr; }
  .mp-table .hide-m { display: none; }
  .mp-table td, .mp-table th { padding: 10px 8px; font-size: 12.5px; }
  .mp-stats { grid-template-columns: 1fr 1fr; }
}
.mp-table .m-only { display: none; }
@media (max-width: 760px) { .mp-table .m-only { display: block; } .mp-table .nowrap { white-space: normal; } }
.community a img { width: 22px; height: 22px; object-fit: contain; }

/* 입금 코인 선택 (USDT · USDC) */
.dp-coins { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 4px 0 14px; }
.dp-coins button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-input); color: var(--text); font: inherit; cursor: pointer; }
.dp-coins button small { color: var(--text-3); margin-left: auto; font-size: 11px; }
.dp-coins button.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.mp-stats b.mp-multi { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; line-height: 1.3; }
.btn-withdraw { background: transparent; color: var(--text-2, inherit); border: 1.5px solid var(--line-2, var(--line)); font-weight: 800; }
.btn-withdraw:hover { background: var(--bg-hover, rgba(127,127,127,.12)); }
.btn-withdraw .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .header .btn-withdraw { width: 36px; padding: 0; } .header .btn-withdraw span { display: none; } }
/* 1:1 문의 (게시판) */
.sp-board { display: flex; flex-direction: column; gap: 6px; }
.sp-bp { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; row-gap: 2px; text-align: left; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid #e1e4e8; color: inherit; cursor: pointer; }
.sp-bp:hover { border-color: var(--brand, #7c5cff); }
.sp-bp b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sp-bp small { grid-column: 2; font-size: 12px; color: #8a9099; }
.sp-bst { grid-row: span 2; align-self: center; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 6px; white-space: nowrap; background: #eef0f3; color: #4a4f57; }
.sp-bst.w { background: color-mix(in srgb, #f59e0b 20%, transparent); color: #f59e0b; } .sp-bst.ok { background: color-mix(in srgb, #22c55e 20%, transparent); color: #22c55e; }
.sp-bform { display: flex; flex-direction: column; gap: 10px; } .sp-bform label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #4a4f57; }
.sp-bform input, .sp-bform select, .sp-bform textarea { font: inherit; font-size: 14px; padding: 9px 10px; border-radius: 8px; border: 1px solid #e1e4e8; background: #fff; color: #1f2328; resize: vertical; }
.sp-err { color: var(--down, #ef4444); font-size: 13px; margin: 0; }
.sp-bview { display: flex; flex-direction: column; gap: 10px; } .sp-bh h2 { font-size: 16px; margin: 6px 0 0; } .sp-bh small { color: #8a9099; margin-left: 6px; font-size: 12px; }
.sp-bh .sp-bst { display: inline-block; }
.sp-bm { padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid #e1e4e8; } .sp-bm small { color: #8a9099; font-size: 12px; } .sp-bm p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; }
.sp-bm.agent { border-color: color-mix(in srgb, var(--brand, #7c5cff) 50%, transparent); background: color-mix(in srgb, var(--brand, #7c5cff) 8%, #fff); }
/* 포인트 */
.acct-pts { display: flex; align-items: center; gap: 8px; } .acct-pts span { flex: 1; text-align: left; } .acct-pts b { color: var(--brand); font-variant-numeric: tabular-nums; }
.pt-bal { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border-radius: 12px; background: var(--bg-hover, rgba(127,127,127,.1)); }
.pt-bal b { font-size: 26px; font-variant-numeric: tabular-nums; } .pt-bal small { color: var(--text-3); font-size: 12px; }
.pt-log { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; max-height: 220px; overflow: auto; }
.pt-log > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pt-log small { display: block; color: var(--text-3); font-size: 11px; } .pt-log .pos { color: var(--up, #22c55e); } .pt-log .neg { color: var(--down, #ef4444); }

/* 채팅 빅윈 방송 — 개인 옵션으로 끄면(.cast-off) 숨김 */
.chat.cast-off .ch-win { display: none; }
/* 빅윈 방송 켜기/끄기 — 아이콘 + ON/OFF 글자 + 색으로 상태 구분 */
.ch-castbtn { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px 0 8px; border-radius: 10px; border: 1px solid color-mix(in srgb, #3bdc7c 55%, transparent); background: color-mix(in srgb, #3bdc7c 16%, transparent); color: #3bdc7c; font: inherit; font-size: 11.5px; font-weight: 800; letter-spacing: .4px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.ch-castbtn .i { width: 17px; height: 17px; }
.ch-castbtn.off { border-color: var(--line); background: var(--bg-card); color: var(--text-3, #8a93a6); }
.ch-castbtn[hidden] { display: none; }
.ch-win { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255, 196, 61, .35); background: linear-gradient(90deg, rgba(255, 196, 61, .16), rgba(255, 140, 61, .06)); color: inherit; cursor: pointer; font: inherit; animation: chWinIn .5s ease; }
.ch-win:hover { border-color: rgba(255, 196, 61, .7); }
.ch-win-ic { width: 34px; height: 34px; border-radius: 8px; flex: none; background: rgba(255, 255, 255, .08) center/cover no-repeat; display: grid; place-items: center; font-style: normal; font-size: 16px; }
.ch-win-c { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ch-win-tag { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #ffc43d; }
.ch-win-t { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
.ch-win-t em { font-style: normal; font-weight: 700; }
.ch-win-a { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.ch-win-a b { color: #ffc43d; font-size: 13.5px; }
.ch-win-a small { font-size: 11px; opacity: .75; }
@keyframes chWinIn { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.pp-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.pp-video iframe, .pp-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: contain; }

/* 최신 베팅 · 고액 플레이어 · 베팅 대회 (BC.GAME 스타일) */
.bx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bx-tabs { display: inline-flex; background: var(--bg-card); border-radius: 12px; padding: 4px; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.bx-tabs button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.bx-tabs button[aria-selected="true"] { background: var(--bg-row, rgba(255,255,255,.06)); color: var(--text); }
.bx-rows select { appearance: none; -webkit-appearance: none; background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aab' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--text); border: 0; border-radius: 10px; padding: 9px 32px 9px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.bx-body { background: var(--bg-card); border-radius: 14px; padding: 6px 8px; }
.bx-coin { width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; font-weight: 900; color: #fff; font-style: normal; flex: none; }
.bets td.r .amt { justify-content: flex-end; }
.bets td.pos { color: #3bdc7c; }
.bx-wrap { overflow: hidden; }
.bx-wrap .bets tr td { background: var(--bg-row); } .bx-wrap .bets tr.s1 td { background: transparent; }
.bx-new { animation: bxIn .45s cubic-bezier(.2,.8,.2,1); }
.bx-new td { animation: bxGlow 1.2s ease; }
@keyframes bxIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes bxGlow { from { background: rgba(59,220,124,.14); } }
.bx-out { opacity: 0; transition: opacity .35s ease !important; }
@media (prefers-reduced-motion: reduce) { .bx-new, .bx-new td { animation: none; } }
.bx-empty { padding: 28px; text-align: center; color: var(--text-3); font-size: 13px; }
.bx-contest { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; padding: 6px 4px 10px; }
.bx-c-card { background: var(--bg-row, rgba(255,255,255,.04)); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 84px; }
.bx-c-card > small { color: var(--text-3); font-size: 12px; text-align: center; }
.bx-c-main { flex-direction: row; align-items: center; gap: 14px; background: linear-gradient(120deg, rgba(59,220,124,.18), rgba(59,220,124,.04)); }
.bx-c-main b { display: block; font-size: 15px; } .bx-c-main small { color: var(--text-2); font-size: 12px; text-align: left; }
.bx-c-cup { font-size: 34px; }
.bx-clock { display: flex; justify-content: center; align-items: center; gap: 6px; font-weight: 800; }
.bx-clock span { display: flex; flex-direction: column; align-items: center; background: rgba(0,0,0,.25); border-radius: 8px; padding: 4px 8px; min-width: 42px; }
.bx-clock b { font-size: 18px; font-variant-numeric: tabular-nums; } .bx-clock i { font-style: normal; font-size: 10px; color: var(--text-3); font-weight: 500; }
.bx-champ { text-align: center; } .bx-champ b { display: block; } .bx-champ span { font-size: 12px; color: #3bdc7c; }
.bx-rank td:first-child { width: 60px; font-weight: 700; }
.bx-me td { background: rgba(59,220,124,.1) !important; }
.bx-mine { text-align: right; padding: 8px 12px 4px; font-size: 12px; color: var(--text-2); }
@media (max-width: 720px) { .bx-contest { grid-template-columns: 1fr 1fr; } .bx-c-main { grid-column: 1 / -1; } .bx-tabs button { padding: 8px 12px; } .bets th:nth-child(4), .bets td:nth-child(4) { display: none; } }
/* 언어 · 화폐 선택: 국기 · 화폐 기호 */
.lc-lang { display: flex; align-items: center; gap: 10px; }
.lc-lang span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-flag { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.lc-cur .lc-flag { width: 24px; height: 18px; }
.lc-cs { margin-left: auto; min-width: 34px; text-align: center; padding: 2px 8px; border-radius: 6px; background: var(--bg-card); color: var(--text-2); font-weight: 700; font-size: 13px; }
.lc-cur .lc-radio { margin-left: 10px; }
/* 채팅 규칙 펼침 */
.ch-ib.on { color: var(--brand); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 50%, transparent) inset; }
.ch-rules { flex: none; max-height: 55vh; overflow-y: auto; margin: 0 12px 8px; padding: 14px 16px 10px; border-radius: 12px; background: var(--bg-card); font-size: 13px; line-height: 1.55; color: var(--text-2); animation: chRulesIn .22s ease; }
.ch-rules[hidden] { display: none; }
.ch-rules-h { display: flex; align-items: center; gap: 6px; color: var(--text); margin-bottom: 8px; } .ch-rules-h .i { width: 16px; height: 16px; color: var(--brand); }
.ch-rules ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ch-rules-n { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; } .ch-rules-n .i { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--brand); }
.ch-rules-x { display: flex; align-items: center; gap: 4px; margin: 6px auto 0; border: 0; background: none; color: var(--text-3); font: inherit; font-size: 12px; cursor: pointer; } .ch-rules-x .i { width: 14px; height: 14px; transform: rotate(180deg); }
@keyframes chRulesIn { from { opacity: 0; transform: translateY(-6px); } }
.bx-pool { display: block; margin-top: 2px; font-size: 20px; color: #3bdc7c; } .bx-pool .amt { display: inline-flex; align-items: center; gap: 6px; }
.bx-pct { color: var(--text-3); font-weight: 500; }
.bx-note { margin: 6px 12px 4px; font-size: 11.5px; color: var(--text-3); }

/* 시스템 공지 — 점검 화면 · 팝업 · 아래 안내 띠 */
.sys-gate { z-index: 300; }
.sys-gate-ic { font-size: 44px; }
.sys-gate-when, .sys-gate-left { display: flex; flex-direction: column; gap: 2px; padding: 10px 18px; border-radius: 12px; background: var(--bg-card); min-width: 240px; }
.sys-gate-when span, .sys-gate-left span { font-size: 12px; color: var(--text-3); } .sys-gate-left b { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.sys-gate-sub { font-size: 12.5px; color: var(--text-3); }
.sys-pop-wrap { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.55); animation: chRulesIn .2s ease; }
.sys-pop { width: min(440px, 100%); background: var(--bg-layer); border-radius: 16px; padding: 22px 22px 18px; border-top: 4px solid var(--brand); box-shadow: 0 20px 60px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 12px; }
.sys-pop.lv-warn { border-top-color: #ffb020; } .sys-pop.lv-error { border-top-color: #ff5a5a; }
.sys-pop-h { display: flex; align-items: center; gap: 10px; font-size: 17px; } .sys-ic { font-size: 20px; }
.sys-pop-when { font-size: 13px; font-weight: 700; color: var(--text); background: var(--bg-card); padding: 8px 12px; border-radius: 10px; }
.sys-pop p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.sys-pop .btn { align-self: stretch; height: 44px; }
.sys-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 120; display: flex; align-items: center; gap: 10px; max-width: min(760px, calc(100vw - 24px)); padding: 10px 12px 10px 14px; border-radius: 12px; background: var(--bg-layer); border: 1px solid var(--line); border-left: 4px solid var(--brand); box-shadow: 0 10px 30px rgba(0,0,0,.4); font-size: 13px; }
.sys-bar.lv-warn { border-left-color: #ffb020; } .sys-bar.lv-error { border-left-color: #ff5a5a; }
.sys-bar-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sys-bar-x { border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 14px; padding: 2px 4px; }
@media (max-width: 720px) { .sys-bar { bottom: 76px; } }

/* 베팅 대회 상금 수령 — 축하 팝업 · 코인 트레일 */
.pz-wrap { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 20px; background: rgba(5,6,14,.72); backdrop-filter: blur(3px); animation: pzIn .3s ease; overflow: hidden; }
.pz-wrap.out { animation: pzOut .28s ease forwards; }
@keyframes pzIn { from { opacity: 0; } } @keyframes pzOut { to { opacity: 0; } }
.pz-box { position: relative; width: min(380px, 100%); padding: 30px 26px 20px; border-radius: 22px; text-align: center; background: linear-gradient(180deg, #2a2050, var(--bg-layer) 55%); border: 1px solid rgba(255,214,107,.35); box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 30px 80px rgba(0,0,0,.6), 0 0 80px rgba(255,190,60,.18); display: flex; flex-direction: column; align-items: center; gap: 10px; animation: pzPop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes pzPop { from { transform: scale(.7) translateY(20px); opacity: 0; } }
.pz-glow { position: absolute; top: -60px; left: 50%; width: 260px; height: 260px; margin-left: -130px; background: radial-gradient(circle, rgba(255,214,107,.45), transparent 65%); pointer-events: none; animation: pzSpin 6s linear infinite; }
@keyframes pzSpin { to { transform: rotate(360deg); } }
.pz-cup { position: relative; font-size: 64px; line-height: 1; filter: drop-shadow(0 8px 20px rgba(255,190,60,.5)); animation: pzBob 2.4s ease-in-out infinite; }
@keyframes pzBob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.pz-box h2 { position: relative; margin: 4px 0 0; font-size: 24px; font-weight: 900; }
.pz-sub { margin: 0; color: var(--text-2); font-size: 14px; } .pz-sub b { color: #ffd66b; }
.pz-amt { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; padding: 12px 20px; border-radius: 14px; background: rgba(0,0,0,.25); }
.pz-amt b { font-size: 28px; font-weight: 900; color: #3bdc7c; font-variant-numeric: tabular-nums; }
.pz-coin, .pz-fly { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font: 900 13px/1 var(--font); font-style: normal; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), 0 0 0 2px rgba(255,255,255,.15); flex: none; }
.pz-note { margin: 0; font-size: 12px; color: var(--text-3); }
.pz-claim { width: 100%; height: 50px; font-size: 16px; font-weight: 800; margin-top: 6px; background: linear-gradient(135deg, #ffd66b, #ff9f2e) !important; color: #1b1300 !important; box-shadow: 0 8px 24px rgba(255,160,40,.35); }
.pz-later { border: 0; background: none; color: var(--text-3); font: inherit; font-size: 12.5px; cursor: pointer; padding: 6px; }
.pz-confetti i { position: absolute; top: -20px; left: var(--x); width: 8px; height: 14px; border-radius: 2px; background: hsl(var(--h) 90% 60%); transform: rotate(var(--r)); animation: pzFall 3.2s linear var(--d) infinite; opacity: .9; }
@keyframes pzFall { to { transform: translateY(110vh) rotate(calc(var(--r) + 720deg)); } }
.pz-trail { position: fixed; inset: 0; z-index: 270; pointer-events: none; }
.pz-fly { position: absolute; left: 0; top: 0; width: 22px; height: 22px; font-size: 11px; will-change: transform; }
.pz-hit { animation: pzHit .3s ease; } @keyframes pzHit { 50% { transform: scale(1.12); } }
.pz-bump { animation: pzBumpGlow .9s ease; } @keyframes pzBumpGlow { 30% { box-shadow: 0 0 0 3px #3bdc7c, 0 0 24px rgba(59,220,124,.6); } }
@media (prefers-reduced-motion: reduce) { .pz-confetti, .pz-glow { display: none; } .pz-box, .pz-cup { animation: none; } }
/* 제목 하나짜리 창(포인트 · 비밀번호 · 설정): 제목이 왼쪽 넓게, 닫기 버튼은 오른쪽 끝 */
.au-tabs:not(:has(> button:nth-child(3))) { grid-template-columns: 1fr 64px; }
.au-tabs:not(:has(> button:nth-child(3))) > button:first-child { margin: 0; padding: 0 24px; background: none; border: 0; color: var(--text); font: inherit; font-size: 16px; font-weight: 800; text-align: left; pointer-events: none; }
.au-tabs:not(:has(> button:nth-child(3))) > button:first-child::after { display: none; }
/* 창 안 선택 상자 — 입력칸과 같은 모양 */
.au-f select { appearance: none; -webkit-appearance: none; height: 50px; width: 100%; padding: 0 44px 0 16px; border-radius: 12px; border: 2px solid var(--line); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; outline: none; cursor: pointer;
  background: var(--bg-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aab' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; transition: border-color .15s; }
.au-f select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.au-f select option { background: var(--bg-layer); color: var(--text); }
/* 포인트 전환: 입력칸 + 전체 버튼 */
.pt-amt { position: relative; display: block; }
.pt-amt input { padding-right: 78px; }
.pt-all { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 34px; padding: 0 14px; border-radius: 9px; border: 0; background: var(--brand-soft, rgba(166,133,255,.18)); color: var(--brand); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.pt-all:hover { background: color-mix(in srgb, var(--brand) 28%, transparent); } .pt-all:disabled { opacity: .4; cursor: default; }
/* 프로필 사진 */
.ava.has-img { padding: 0; overflow: hidden; background: var(--bg-card); }
.ava.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ava.xl { width: 112px; height: 112px; font-size: 44px; }
.acct-ava { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; flex: none; }
.acct-ava i { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 0 0 2px var(--bg-layer); }
.acct-ava i .i { width: 11px; height: 11px; }
.acct-menu .acct-ava { width: auto; height: auto; padding: 0; display: block; flex: none; } .acct-menu .acct-ava:hover { background: none; } /* 메뉴 버튼 공통 규칙(폭 100%)이 사진 버튼에 걸려 닉네임이 밖으로 밀리던 문제 */
.acct-who > div { flex: 1; } .acct-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-box .au-body { align-items: center; text-align: center; }
.pf-prev { display: grid; place-items: center; margin-top: 6px; }
.pf-nick { margin: 4px 0 0; font-weight: 800; font-size: 16px; }
.pf-pick { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; cursor: pointer; }
.pf-pick .i { width: 18px; height: 18px; }
.pf-del { border: 0; background: none; color: var(--text-3); font: inherit; font-size: 13px; cursor: pointer; padding: 6px; } .pf-del:hover { color: #ff6b6b; }
.ch-ava.has-img { padding: 0; }
/* 베팅 대회 안내 (ⓘ) */
.bx-c-main { position: relative; }
.bx-info-btn { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 9px; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--text-2); cursor: pointer; }
.bx-info-btn .i { width: 17px; height: 17px; } .bx-info-btn:hover, .bx-info-btn.on { color: #fff; background: rgba(59,220,124,.25); box-shadow: 0 0 0 1px rgba(59,220,124,.5) inset; }
.bx-info { margin: 0 4px 10px; padding: 16px 18px; border-radius: 12px; background: var(--bg-row, rgba(255,255,255,.04)); border: 1px solid var(--line); animation: chRulesIn .22s ease; font-size: 13px; }
.bx-info-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .bx-info-h b { font-size: 15px; }
.bx-info-x { border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 14px; }
.bx-info dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; margin: 0; }
.bx-info dt { color: var(--text-3); } .bx-info dd { margin: 0; color: var(--text); } .bx-info dd small { color: var(--text-3); }
.bx-info-pay { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); } .bx-info-pay > b { display: block; margin-bottom: 8px; }
.bx-info-pay > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.bx-info-pay span { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 9px; background: rgba(0,0,0,.2); }
.bx-info-pay em { font-style: normal; min-width: 26px; } .bx-info-pay span b { color: #3bdc7c; } .bx-info-pay small { margin-left: auto; color: var(--text-3); }
.bx-info-n { margin: 12px 0 0; font-size: 11.5px; color: var(--text-3); }
@media (max-width: 720px) { .bx-info dl { grid-template-columns: 1fr; gap: 2px; } .bx-info dt { margin-top: 6px; } }
.pf-box .au-main, .pf-box .pf-pick { align-self: stretch; width: 100%; }
.pt-amt input::-webkit-outer-spin-button, .pt-amt input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pt-amt input[type=number] { -moz-appearance: textfield; appearance: textfield; }
/* 마이페이지 — 프로필 사진 · 포인트 내역 */
button.mp-ava { border: 0; cursor: pointer; font: inherit; padding: 0; }
.mp-ava.has-img { overflow: hidden; background: var(--bg-card); } .mp-ava.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-pthint { margin: 0 0 10px; }
.mp-ptconv { margin-left: auto; height: 38px; padding: 0 16px; }

/* 미스테리 드랍 — 게임 화면 위로 떨어지는 편지 봉투 */
.md-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 8px; border-radius: 10px; border: 1px solid rgba(255,214,107,.45); background: linear-gradient(135deg, rgba(255,214,107,.2), rgba(255,120,80,.12)); color: var(--text); cursor: pointer; font: inherit; text-align: left; margin-right: 8px; animation: mdChip 2.4s ease-in-out infinite; }
.md-chip-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(135deg, #ffd66b, #ff9f2e); color: #3a2400; font-size: 14px; }
.md-chip b { display: block; font-size: 12px; } .md-chip small { display: block; font-size: 10.5px; color: #ffd66b; white-space: nowrap; }
@keyframes mdChip { 50% { box-shadow: 0 0 14px rgba(255,214,107,.35); } }
.gf-stage { position: relative; }
/* 미스테리 드랍 연출 — 상자가 떨어져 흔들리다 열리고(9컷 스프라이트) 상금 카드가 올라옴 */
.md-wrap { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(5,6,14,0); transition: background .27s; overflow: hidden; }
.md-wrap.md-page { position: fixed; z-index: 280; }
.md-wrap.drop { background: radial-gradient(circle at 50% 55%, rgba(120,60,200,.35), rgba(5,6,14,.75) 60%); }
.md-wrap.out { opacity: 0; transition: opacity .35s; }
.md-scene { position: relative; width: 540px; height: 400px; transform: scale(var(--md-s, 1)); }
.md-box { position: absolute; left: 0; bottom: 30px; width: 540px; height: 180px; z-index: 2; background: url("mystery-drop.webp") 0 0 / 100% 900% no-repeat; transform: translateY(-130vh); filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.md-shadow { position: absolute; left: 50%; bottom: 26px; width: 190px; height: 18px; margin-left: -95px; border-radius: 50%; background: rgba(0,0,0,.45); filter: blur(6px); transform: scale(.2); opacity: 0; }
.md-wrap.drop .md-box { animation: mdFall .6s cubic-bezier(.3,1.3,.5,1) forwards; }
.md-wrap.drop .md-shadow { animation: mdShadow .6s ease forwards; }
@keyframes mdFall { 0% { transform: translateY(-130vh) rotate(-10deg); } 70% { transform: translateY(10px) rotate(2deg) scaleY(.94); } 85% { transform: translateY(-8px) rotate(-1deg); } 100% { transform: none; } }
@keyframes mdShadow { 60% { transform: scale(.6); opacity: .3; } 100% { transform: scale(1); opacity: 1; } }
.md-wrap.shake .md-box, .md-wrap.open .md-box { transform: none; } /* 떨어진 뒤엔 제자리 */
.md-wrap.shake .md-box { animation: mdShake .4s ease-in-out; }
.md-wrap.shake .md-shadow, .md-wrap.open .md-shadow { transform: none; opacity: 1; }
@keyframes mdShake { 0%, 100% { transform: none; } 15% { transform: rotate(-5deg) translateY(-4px); } 30% { transform: rotate(5deg); } 45% { transform: rotate(-4deg) translateY(-6px); } 60% { transform: rotate(4deg); } 75% { transform: rotate(-2deg) scale(1.04); } }
.md-wrap.open .md-box { animation: mdOpen .66s steps(8, jump-none) forwards; }
@keyframes mdOpen { from { background-position: 0 0; } to { background-position: 0 100%; } }
.md-rays { position: absolute; left: 50%; bottom: 60px; width: 520px; height: 520px; margin-left: -260px; border-radius: 50%; z-index: 1; opacity: 0; background: repeating-conic-gradient(from 0deg, rgba(255,214,107,.28) 0 8deg, transparent 8deg 24deg); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%); mask-image: radial-gradient(circle, #000 20%, transparent 68%); }
.md-wrap.reveal .md-rays { opacity: 1; transition: opacity .33s; animation: pzSpin 9s linear infinite; }
.md-card { position: absolute; left: 50%; bottom: 120px; z-index: 3; width: 260px; margin-left: -130px; padding: 14px 16px 12px; border-radius: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: linear-gradient(180deg, #3b2370, #1d1240); border: 2px solid #ffd66b; box-shadow: 0 0 0 4px rgba(255,214,107,.15), 0 16px 40px rgba(0,0,0,.5), 0 0 40px rgba(182,124,255,.45);
  opacity: 0; transform: translateY(60px) scale(.6); }
.md-wrap.reveal .md-card { opacity: 1; transform: translateY(-40px) scale(1); transition: transform .4s cubic-bezier(.2,1.4,.4,1), opacity .2s; }
.md-card small { font: 900 11px/1 var(--font); letter-spacing: 3px; color: #ffd66b; }
.md-amt { font: 900 36px/1.15 var(--font); color: #fff; text-shadow: 0 0 18px rgba(255,214,107,.7); font-variant-numeric: tabular-nums; }
.md-name { font-size: 12px; font-weight: 700; color: #e9dcff; } .md-card em { font-style: normal; font-size: 11.5px; color: #b9a8e0; }
.md-sparkle { position: absolute; left: 50%; top: 52%; width: 0; height: 0; pointer-events: none; z-index: 4; }
.md-sparkle i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); opacity: 0; transform: rotate(var(--a)) translateX(0); }
.md-wrap.reveal .md-sparkle i { animation: mdSpark .67s ease-out var(--d) forwards; }
@keyframes mdSpark { 0% { opacity: 1; transform: rotate(var(--a)) translateX(20px) scale(1.2); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(220px) scale(.3); } }
.md-ok { position: absolute; bottom: 9%; left: 50%; transform: translateX(-50%); opacity: 0; pointer-events: none; height: 46px; padding: 0 40px; border-radius: 12px; border: 0; font: 800 15px/1 var(--font); color: #1b1300; background: linear-gradient(135deg, #ffd66b, #ff9f2e); box-shadow: 0 8px 24px rgba(255,160,40,.35); cursor: pointer; transition: opacity .3s .5s; }
.md-wrap.reveal .md-ok { opacity: 1; pointer-events: auto; }
@media (max-width: 600px) { .md-scene { --md-s: .66; } }
@media (prefers-reduced-motion: reduce) { .md-wrap.drop .md-box, .md-wrap.shake .md-box { animation: none; transform: none; } .md-wrap.open .md-box { animation: none; background-position: 0 100%; } .md-rays { display: none; } }

/* ---------- 도전 과제 (#challenges · 게임 칩 · 완료 배너) ---------- */
.chp[hidden] { display: none; }
.chp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.chp-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chp-card.done { opacity: .72; }
.chp-top { display: flex; gap: 12px; align-items: flex-start; }
.chp-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(255,170,60,.18)); flex: none; }
.chp-t { flex: 1; min-width: 0; } .chp-t b { display: block; font-size: 15px; font-weight: 800; } .chp-t small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-2); } .chp-t p { margin-top: 6px; font-size: 12.5px; color: var(--text-2); }
.chp-rw { text-align: right; flex: none; } .chp-rw small { display: block; font-size: 11px; color: var(--text-2); } .chp-rw b { font-size: 18px; font-weight: 900; color: var(--brand); white-space: nowrap; }
.chp-bar { height: 8px; border-radius: 99px; background: var(--overlay, rgba(255,255,255,.08)); overflow: hidden; }
.chp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #ffb547); transition: width .5s ease; }
.chp-card.done .chp-bar i { background: #22c08a; }
.chp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12px; color: var(--text-2); } .chp-meta b { color: var(--text); }
.chp-reset { margin-left: auto; }
.chp-st { padding: 2px 8px; border-radius: 99px; background: rgba(255,181,71,.15); color: #ffb547; font-weight: 700; } .chp-st.ok { background: rgba(34,192,138,.15); color: #22c08a; } .chp-st.off { background: var(--bg-chip); color: var(--text-2); }
.chp-play { align-self: flex-start; height: 34px; padding: 0 14px; font-size: 13px; background: var(--bg-chip); }
.ch-chip { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 8px; border-radius: 10px; border: 1px solid rgba(124,92,255,.5); background: rgba(124,92,255,.14); color: var(--text); cursor: pointer; font: inherit; text-align: left; margin-right: 8px; max-width: 230px; }
.ch-chip-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(124,92,255,.35); font-size: 14px; flex: none; }
.ch-chip b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ch-chip small { display: block; font-size: 10.5px; color: #c9b8ff; white-space: nowrap; }
.ch-chip span:nth-child(2) { min-width: 0; }
.ch-chip-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p); background: linear-gradient(90deg, var(--brand), #ffb547); transition: width .5s; }
.ch-done { position: absolute; top: 16px; left: 50%; z-index: 40; transform: translate(-50%, -24px); opacity: 0; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 14px; background: linear-gradient(135deg, #2b1f5c, #1b1838); border: 1px solid rgba(255,214,107,.5); box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 24px rgba(255,214,107,.18); color: #fff; transition: transform .35s cubic-bezier(.2,1.3,.4,1), opacity .25s; pointer-events: none; }
.ch-done.ch-page { position: fixed; top: 76px; z-index: 300; }
.ch-done.in { transform: translate(-50%, 0); opacity: 1; }
.ch-done-ic { font-size: 28px; } .ch-done small { display: block; font-size: 11px; color: #ffd66b; font-weight: 800; letter-spacing: .02em; } .ch-done b { display: block; font-size: 14px; }
.ch-done-rw { font-size: 18px !important; font-weight: 900; color: #ffd66b; margin-left: 6px; white-space: nowrap; }
@media (max-width: 600px) { .chp-list { grid-template-columns: 1fr; } .ch-chip { max-width: 170px; } }

/* ===== 스포츠 (568Win 스포츠북 · sports.js) — 사이트 안에 꽉 차게 ===== */
.sbp[hidden] { display: none; }
body[data-page="sports"] .container { max-width: none; padding: 0; }
body[data-page="sports"] .footer { display: none; }
.sbp-stage { height: calc(100dvh - var(--header-h)); }
.sbp-stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #0f1419; }
.sbp-stage { position: relative; }
.sbp-over { position: absolute; inset: 0; background: #0f1419; }
@media (max-width: 900px) { .sbp-stage { height: calc(100dvh - var(--header-h) - var(--mnav-h, 0px)); } }
.sbp-load, .sbp-msg { min-height: calc(100dvh - var(--header-h) - 80px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; color: var(--text-2, #b1bad3); }
.sbp-msg h2 { font-size: 20px; font-weight: 900; color: var(--text, #fff); }
.sbp-msg p { max-width: 420px; }
.sbp-ball { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 18%, #ffd36b 19% 45%, #f29d38 46%); box-shadow: 0 8px 30px rgba(242,157,56,.35); }
.sbp-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent, #3bc117); animation: sbpspin .8s linear infinite; }
@keyframes sbpspin { to { transform: rotate(360deg); } }
/* 홈 · 주요 경기 */
.sbm-all { font-size: 13px; color: var(--text-2, #b1bad3); }
.sbm-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.sbm-row::-webkit-scrollbar { display: none; }
.sbm-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--card, #1a2c38); color: inherit; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.sbm-card:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--card, #1a2c38), white 4%); }
.sbm-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-2, #b1bad3); white-space: nowrap; overflow: hidden; }
.sbm-top small:first-child { overflow: hidden; text-overflow: ellipsis; }
.sbm-live { font-style: normal; font-weight: 800; color: #ff4d4f; }
.sbm-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.sbm-team { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.sbm-team i { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08) center/contain no-repeat; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.sbm-team b { font-size: 13px; font-weight: 700; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sbm-score { font-weight: 900; font-size: 16px; }
.sbm-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sbm-odds span { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.06); font-weight: 800; font-size: 13px; }
.sbm-odds small { color: var(--text-2, #b1bad3); font-weight: 600; }

/* 고객 지원 홈 — 채팅 상담 · 1:1 문의 두 갈래 */
.sp-cards .sp-send { gap: 12px; padding: 16px 18px; width: 100%; }
.sp-sicon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #f1edff; flex: none; } .sp-sicon .i { width: 18px !important; height: 18px !important; color: var(--brand); }
.sp-chatgo .sp-sicon { background: var(--brand); } .sp-chatgo .sp-sicon .i { color: #fff; }
.sp-stx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .sp-stx small { font-size: 12.5px; color: #6b7280; font-weight: 500; line-height: 1.35; }
.sp-two { display: flex; flex-direction: column; gap: 8px; }

/* ---------- 친구 초대 · 추천 (#referral) ---------- */
.rf { display: flex; flex-direction: column; gap: 16px; }
.rf .btn.sm { height: 30px; padding: 0 10px; font-size: 12px; background: var(--bg-chip); }
.rf .inp { height: 38px; padding: 0 12px; border-radius: 10px; background: var(--bg-input); border: 1px solid var(--line); color: var(--text); font-size: 13px; min-width: 0; }
.rf .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.rf-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 230px; padding: 30px 34px; border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 85% 30%, var(--brand-soft) 0%, transparent 55%), linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elev) 100%); border: 1px solid var(--line); }
.rf-hero-t { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 560px; }
.rf-hero-t p { font-size: 20px; font-weight: 800; }
.rf-hero-t h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; line-height: 1.15; }
.rf-hero-t h1 b { color: var(--brand); }
.rf-hero-t h1 span { font-size: .7em; }
.rf-hero-t .btn-primary { height: 46px; padding: 0 28px; font-size: 15px; margin-top: 6px; }
.rf-link { font-size: 12.5px; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.rf-art { position: relative; width: 240px; height: 180px; flex: none; }
.rf-coin { position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 64px; font-weight: 900; color: #3b2600;
  background: radial-gradient(circle at 35% 30%, #fff3c4 0 12%, #ffd34e 30%, #e8a317 70%, #b97800 100%); box-shadow: 0 0 0 8px rgba(255, 211, 78, .18), 0 20px 50px -10px rgba(232, 163, 23, .6); animation: rf-float 4s ease-in-out infinite; }
.rf-bill { position: absolute; width: 58px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #3ddc84, #1a9e55); box-shadow: 0 6px 16px rgba(0,0,0,.3); animation: rf-float 5s ease-in-out infinite; }
.rf-bill::after { content: ""; position: absolute; inset: 7px 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); }
.rf-bill.a { left: 4px; top: 22px; transform: rotate(-24deg); animation-delay: -1.2s; }
.rf-bill.b { right: 2px; bottom: 18px; transform: rotate(18deg); animation-delay: -2.4s; }
.rf-spark { position: absolute; right: 40px; top: 12px; width: 14px; height: 14px; background: #ffe58a; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: rf-blink 1.8s ease-in-out infinite; }
@keyframes rf-float { 50% { translate: 0 -8px; } }
@keyframes rf-blink { 50% { opacity: .25; scale: .7; } }
.rf-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.rf-card { display: flex; justify-content: space-between; gap: 12px; padding: 22px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--line); }
.rf-card small { font-size: 18px; font-weight: 900; color: var(--brand); }
.rf-card h3 { margin-top: 2px; font-size: 18px; font-weight: 900; }
.rf-card p { margin: 8px 0 14px; font-size: 13px; color: var(--text-2); line-height: 1.55; }
.rf-card .btn { height: 36px; padding: 0 16px; font-size: 13px; background: var(--bg-chip); }
.rf-ic { font-size: 64px; font-style: normal; align-self: center; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.rf-live { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--line); overflow: hidden; }
.rf-live-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.rf-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c08a; box-shadow: 0 0 0 4px rgba(34, 192, 138, .2); animation: rf-blink 1.4s infinite; }
.rf-live-sum { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 10px; background: var(--bg-elev); white-space: nowrap; }
.rf-live-sum small { font-size: 12px; color: var(--text-2); }
.rf-live-sum b { font-size: 17px; font-weight: 900; color: var(--brand); }
.rf-tick { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); min-width: 0; }
.rf-tick-in { display: inline-flex; gap: 26px; white-space: nowrap; animation: rf-tick 40s linear infinite; }
.rf-tick:hover .rf-tick-in { animation-play-state: paused; }
@keyframes rf-tick { to { transform: translateX(-50%); } }
.rf-tk { display: inline-flex; gap: 8px; font-size: 12.5px; }
.rf-tk b { color: var(--text-2); font-weight: 600; } .rf-tk em { font-style: normal; font-weight: 800; color: #22c08a; }
.rf-tk-empty { font-size: 12.5px; color: var(--text-3); }
.rf-h2 { margin-top: 8px; font-size: 18px; font-weight: 900; }
.rf-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.rf-kpis > div { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--line); }
.rf-kpis small { font-size: 12px; color: var(--text-2); } .rf-kpis b { font-size: 18px; font-weight: 900; } .rf-kpis em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.rf-claim { background: linear-gradient(135deg, var(--brand-faint), var(--bg-card)) !important; border-color: var(--brand-soft) !important; }
.rf-claim b { color: var(--brand); } .rf-claim .btn { height: 36px; margin: 4px 0; }
.rf-claim .btn:disabled { opacity: .45; cursor: not-allowed; }
.rf-box { padding: 0; }
.rf-box-h { padding: 16px 18px 10px; } .rf-box-h h3 { font-size: 15px; font-weight: 800; } .rf-box-h p { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.rf-tbl { overflow-x: auto; }
.rf-tbl table, .rf-dt { width: 100%; border-collapse: collapse; font-size: 13px; }
.rf-tbl th, .rf-dt th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--text-3); padding: 8px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rf-tbl td, .rf-dt td { padding: 10px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rf-tbl .r, .rf-dt .r { text-align: right; }
.rf-tbl td small { display: block; font-size: 11.5px; color: var(--text-3); }
.rf-url { max-width: 320px; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); font-size: 12px; }
.rf-acts { display: flex; gap: 6px; justify-content: flex-end; }
.rf-add { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; padding: 14px 18px; }
.rf-add .btn { height: 38px; padding: 0 14px; font-size: 13px; background: var(--bg-chip); }
.rf-aff { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--bg-card), var(--bg-elev)); border: 1px solid var(--line); }
.rf-aff h3 { font-size: 18px; font-weight: 900; } .rf-aff h3::first-letter { color: var(--brand); }
.rf-aff p { margin-top: 6px; font-size: 13px; color: var(--text-2); max-width: 620px; line-height: 1.55; }
.rf-aff-b { display: flex; align-items: center; gap: 10px; }
.rf-contact { padding: 10px 14px; border-radius: 10px; background: var(--bg-input); font-size: 13px; }
.rf-aff .btn { height: 40px; padding: 0 18px; }
.rf-faq { padding: 20px 22px; } .rf-faq h2 { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.rf-faq-i { border-bottom: 1px solid var(--line); } .rf-faq-i:last-child { border-bottom: 0; }
.rf-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-size: 14px; font-weight: 800; text-align: left; color: var(--text); }
.rf-faq-q i { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--bg-chip); font-style: normal; transition: transform .15s; }
.rf-faq-a { display: none; padding: 0 0 14px; font-size: 13px; color: var(--text-2); line-height: 1.65; }
.rf-faq-i.open .rf-faq-a { display: block; } .rf-faq-i.open .rf-faq-q i { transform: rotate(180deg); }
.rf-dbox { width: min(520px, 100%); padding: 24px; }
.rf-dbox h3 { font-size: 18px; font-weight: 900; margin-bottom: 8px; } .rf-dbox > p { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.rf-dbox .rf-dt th, .rf-dbox .rf-dt td { padding: 9px 10px; }
.rf-note { margin-top: 12px; font-size: 12px; color: var(--text-3); }
.rf-terms { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-2); line-height: 1.55; list-style: decimal; }
.rf-x { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 8px; background: var(--bg-chip); }
@media (max-width: 720px) {
  .rf-hero { flex-direction: column; align-items: flex-start; padding: 22px; } .rf-art { width: 100%; height: 150px; }
  .rf-live { grid-template-columns: 1fr; } .rf-add { grid-template-columns: 1fr; } .rf-ic { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) { .rf-coin, .rf-bill, .rf-spark, .rf-tick-in, .rf-dot { animation: none; } }
.dp-hint.wd-free { color: #22c08a; font-weight: 700; }

/* ---------- 공정성 · 보안 (#fairness) ---------- */
.fair-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.fair-nav { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--line); position: sticky; top: calc(var(--header-h, 60px) + 12px); }
.fair-nav a { padding: 10px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.fair-nav a:hover { background: var(--bg-chip); color: var(--text); }
.fair-nav a.on { background: var(--bg-chip-hover); color: var(--text); font-weight: 800; box-shadow: inset 3px 0 0 var(--brand); }
.fair-body { padding: 22px 24px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--line); min-width: 0; }
.fair-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fair-top h2 { font-size: 20px; font-weight: 900; }
.fair-all { font-size: 12.5px; font-weight: 700; color: var(--brand); }
.fair-intro { margin: 12px 0 8px; font-size: 13.5px; line-height: 1.75; color: var(--text-2); }
.fair-i { border-bottom: 1px solid var(--line); } .fair-i:last-child { border-bottom: 0; }
.fair-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; text-align: left; font-size: 14.5px; font-weight: 800; color: var(--text); }
.fair-q i { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--bg-chip); font-style: normal; transition: transform .15s; }
.fair-a { display: none; padding: 0 0 16px; font-size: 13.5px; line-height: 1.75; color: var(--text-2); }
.fair-i.open .fair-a { display: block; } .fair-i.open .fair-q i { transform: rotate(180deg); }
@media (max-width: 860px) { .fair-wrap { grid-template-columns: 1fr; } .fair-nav { position: static; flex-direction: row; overflow-x: auto; } .fair-nav a { white-space: nowrap; } .fair-body { padding: 18px; } }
/* 사이드바 › 스포츠 — 연동된 게임사 목록 */
.side-sub a.side-prov { height: 48px; padding: 0 10px 0 14px; gap: 12px; font-size: 14px; font-weight: 600; color: var(--text); }
.side-sub a.side-prov > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-sub a.side-prov > svg { width: 16px; height: 16px; color: var(--text-2); flex: none; }
.side-prov .prov-ic { flex: none; display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 5px; border-radius: 6px; color: #fff; font: 800 10px/1 system-ui, sans-serif; font-style: normal; letter-spacing: -.2px; }
.side-prov[data-prov-toggle] > svg { transition: transform .15s; }
.side-prov.open[data-prov-toggle] > svg { transform: rotate(180deg); }
.side-sub .side-prov-sub a { height: 38px; padding-left: 56px; gap: 10px; font-size: 13px; }
.side-prov-sub .i { width: 18px; height: 18px; color: var(--text-2); }
.side-prov-g.hover > .side-prov { background: var(--overlay); }
.side-prov-g.hover > .side-prov > span { color: var(--brand, #24ee89); }
/* PC 펼침 메뉴 (bc.game: 사이드바 오른쪽 · 종목 아이콘 + 이름 · 지금 종목 강조) */
.prov-fly { position: fixed; z-index: 60; width: 232px; max-height: calc(100dvh - 16px); overflow-y: auto; padding: 8px; background: var(--bg-layer); border: 1px solid var(--overlay); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .4); }
.prov-fly a { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 12px; border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 600; }
.prov-fly a .i { width: 20px; height: 20px; color: var(--text-2); }
.prov-fly a:hover, .prov-fly a.on { background: var(--overlay); }
.prov-fly a.on .i { color: var(--brand, #24ee89); }

/* 게임사 점검 안내 막대 */
.maint-bar { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); color: var(--text, inherit); font-size: 13px; display: grid; gap: 4px; }
.maint-bar b { color: #f59e0b; }

/* 홈 주요 경기 — 롤링 중에는 양 끝을 흐리게 */
.sbm-row.rolling { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }

/* 최근 빅윈 — 제목 옆 카테고리 탭 (전체 · 슬롯 · 라이브 카지노 …) */
.bw-head { justify-content: flex-start; gap: 18px; flex-wrap: nowrap; min-width: 0; }
.bw-head .section-title { flex: none; }
.bw-tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.bw-tabs::-webkit-scrollbar { display: none; }
.bw-tabs button { position: relative; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; padding: 6px 10px 9px; cursor: pointer; white-space: nowrap; }
.bw-tabs button:hover { color: var(--text); }
.bw-tabs button[aria-selected="true"] { color: var(--text); font-weight: 800; }
.bw-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 2px; background: var(--brand, #24ee89); }
.bw-head .bw-hint { margin-left: auto; flex: none; }
@media (max-width: 720px) { .bw-head { gap: 8px; } .bw-head .bw-hint { display: none; } .bw-tabs button { font-size: 13px; padding: 6px 8px 9px; } }

/* ===== 메인 배너 — bc.game 스타일 카드 캐러셀 (PC 3장 · 태블릿 2장 · 모바일 1장) ===== */
.hb { position: relative; }
.hb-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hb-track::-webkit-scrollbar { display: none; }
.hb-card { --hb: #1f6f4a; position: relative; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 210px; padding: 14px; border-radius: 16px; background: var(--bg-card, #24282b); color: var(--text, #fff); overflow: hidden; isolation: isolate; }
.hb-card.cover { grid-template-columns: 1fr; color: #fff; background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.15) 70%), var(--hbi) center/cover; }
@media (max-width: 900px) { .hb-card.cover { background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.15) 70%), var(--hbim, var(--hbi)) center/cover; } }
.hb-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 6px 6px 10px; min-width: 0; }
.hb-tag { display: inline-block; padding: 4px 8px; border-radius: 6px; background: #e8eaed; color: #111; font-size: 12px; font-weight: 800; line-height: 1.2; }
.hb-copy h2 { font-size: 22px; font-weight: 900; line-height: 1.25; letter-spacing: -.3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
.hb-copy p { font-size: 14px; color: var(--text-2, #b1bad3); line-height: 1.45; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hb-card.cover .hb-copy p { color: rgba(255,255,255,.85); }
.hb-act { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; align-items: center; }
.hb-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); color: inherit; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.hb-btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.32); }
.hb-soc.social-btn { width: 40px; height: 40px; padding: 0; background: rgba(255,255,255,.08); }
.hb-art { position: relative; min-width: 0; }
.hb-plate { position: absolute; inset: 0 0 0 18%; border-radius: 12px; background: var(--hb); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); z-index: -1; }
.hb-art img { position: absolute; right: 0; bottom: 0; width: 100%; height: 108%; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); transition: transform .3s ease; }
.hb-card:hover .hb-art img { transform: scale(1.03); }
.hb-deco { position: absolute; inset: 0 0 0 30%; display: grid; place-items: center; color: rgba(255,255,255,.85); }
.hb-deco .i { width: 64px; height: 64px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.3)); }
.hb-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; min-height: 6px; }
.hb-dots button { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); transition: width .2s, background .2s; }
.hb-dots button.on { width: 22px; background: rgba(255,255,255,.85); }
html[data-mode="light"] .hb-dots button { background: rgba(0,0,0,.18); } html[data-mode="light"] .hb-dots button.on { background: rgba(0,0,0,.6); }
html[data-mode="light"] .hb-btn { border-color: rgba(0,0,0,.18); }
@media (max-width: 1180px) { .hb-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 720px) { .hb-track { grid-auto-columns: 88%; gap: 10px; } .hb-card { min-height: 170px; padding: 10px; } .hb-copy h2 { font-size: 18px; } .hb-copy p { font-size: 13px; } .hb-btn { height: 36px; padding: 0 14px; font-size: 13px; } }
.hb-card.cover .hb-copy { max-width: 62%; }

/* 최신 베팅 — 게임 이름 앞 카테고리 아이콘 */
.bets .g i.bx-cat { position: relative; flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.bets .g i.bx-cat .i { width: 14px; height: 14px; stroke-width: 2.2; }
.bets .g i.bx-cat .bx-live { position: absolute; top: -2px; right: -2px; width: 7px; height: 7px; border-radius: 50%; background: #ff4d4f; box-shadow: 0 0 0 2px var(--bg-card, #1a2c38); }

/* 모바일 — 입력칸 글자가 16px 보다 작으면 iOS 사파리가 누를 때 화면을 확대해 창이 커지고 잘림 → 터치 기기에서는 16px 이상 */
@media (pointer: coarse), (max-width: 900px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select { font-size: 16px !important; }
}

/* 쿠키 동의 배너 — 화면 아래 (두 버튼 같은 크기 · 미리 체크 없음) */
.ck-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 990; display: flex; justify-content: center; pointer-events: none; }
.ck-in { pointer-events: auto; width: min(880px, 100%); display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--bg-layer, #1f2a33); color: var(--text, #fff); border: 1px solid var(--overlay, rgba(255,255,255,.08)); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.ck-txt { flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; }
.ck-txt b { display: block; margin-bottom: 2px; }
.ck-txt p { color: var(--text-2, #b1bad3); }
.ck-link { color: var(--brand, #24ee89); text-decoration: underline; }
.ck-opts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13px; }
.ck-opts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ck-btns { display: flex; gap: 8px; flex: none; }
.ck-b { min-width: 112px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: inherit; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ck-b:hover { background: rgba(255,255,255,.14); }
.ck-b.ghost { min-width: 0; background: none; border-color: transparent; text-decoration: underline; font-weight: 600; color: var(--text-2, #b1bad3); }
html[data-mode="light"] .ck-b { border-color: rgba(0,0,0,.15); background: rgba(0,0,0,.04); }
@media (max-width: 720px) { .ck-bar { left: 8px; right: 8px; bottom: calc(8px + var(--mnav-h, 0px)); } .ck-in { flex-direction: column; align-items: stretch; gap: 12px; } .ck-btns { flex-wrap: wrap; } .ck-btns .ck-b:not(.ghost) { flex: 1; min-width: 0; } }

/* 미스테리 드랍 안내 말풍선 — 버튼 바로 아래 */
.md-tip { position: fixed; z-index: 320; padding: 14px 14px 12px; border-radius: 14px; background: #1b1530; color: #f3efff; border: 1px solid rgba(255,214,107,.45); box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: mdTipIn .16s ease-out; }
.md-tip::before { content: ""; position: absolute; top: -7px; left: calc(var(--md-arrow, 50%) - 7px); width: 12px; height: 12px; background: #1b1530; border-left: 1px solid rgba(255,214,107,.45); border-top: 1px solid rgba(255,214,107,.45); transform: rotate(45deg); }
.md-tip-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.md-tip-h b { flex: 1; font-size: 15px; }
.md-tip-x { border: 0; background: rgba(255,255,255,.08); color: inherit; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.md-tip-lead { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; color: #fff; }
.md-tip-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 10px; font-size: 13px; }
.md-tip-kv dt { color: #b7acd6; } .md-tip-kv dd { margin: 0; text-align: right; font-weight: 600; color: #ffd66b; font-variant-numeric: tabular-nums; }
.md-tip-f { display: block; font-size: 11.5px; color: #b7acd6; line-height: 1.4; }
@keyframes mdTipIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .md-tip { animation: none; } }

/* 로그인 전 메인 배너 (가입 배너 하나 · 로그인하면 카드 캐러셀) */
.gh-card { --gh: #16133a; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 300px; border-radius: 16px; overflow: hidden; background: linear-gradient(100deg, color-mix(in srgb, var(--gh), black 25%) 0%, var(--gh) 60%); }
.gh-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px 40px; max-width: 460px; }
.gh-copy h1 { font-size: 30px; font-weight: 800; line-height: 1.25; color: #fff; }
.gh-copy p { font-size: 15px; color: rgba(255,255,255,.8); }
.gh-join { height: 48px; border-radius: var(--radius); background: var(--brand); color: var(--brand-ink); font-size: 17px; font-weight: 800; margin-top: 4px; }
.gh-join:hover { filter: brightness(1.08); }
.gh-or { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 2px; }
.gh-soc { display: flex; gap: 8px; } .gh-soc .social-btn { flex: 1; background: rgba(255,255,255,.1); color: #fff; }
.gh-art { background: var(--ghi) right center / cover no-repeat; }
.gh-card:not(.has-img) .gh-art { background: radial-gradient(circle at 60% 50%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 60%); }
@media (max-width: 900px) {
  .gh-card { grid-template-columns: 1fr; min-height: 0; }
  .gh-art { order: -1; aspect-ratio: 16 / 9; background-image: var(--ghim, var(--ghi)); background-position: center; }
  .gh-card:not(.has-img) .gh-art { display: none; }
  .gh-copy { max-width: none; padding: 18px 16px 20px; } .gh-copy h1 { font-size: 22px; }
}

/* 사이드 메뉴 — 고급스럽게 반짝이는 그라데이션 테두리 (VIP 클럽 · 추천 · 공정성 묶음) */
.side-group.side-glow { position: relative; isolation: isolate; box-shadow: 0 0 0 1px rgba(255,255,255,.02), 0 6px 22px -10px rgba(185,140,255,.45); }
.side-group.side-glow::before { content: ""; position: absolute; inset: 0; z-index: 2; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, #f6d58a 0%, #c9a2ff 18%, #7fd8ff 34%, #f6d58a 50%, #ff9ad5 66%, #c9a2ff 82%, #f6d58a 100%); background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: sideGlowFlow 7s linear infinite; }
.side-group.side-glow::after { content: ""; position: absolute; inset: 0; z-index: 2; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, transparent 0 40%, rgba(255,255,255,.95) 50%, transparent 60% 100%); background-size: 250% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: sideGlowShine 4.5s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes sideGlowFlow { to { background-position: 300% 0; } }
@keyframes sideGlowShine { 0%, 55% { background-position: 150% 0; opacity: 0; } 62% { opacity: 1; } 100% { background-position: -100% 0; opacity: 0; } }
html[data-mode="light"] .side-group.side-glow { box-shadow: 0 6px 20px -12px rgba(140,90,230,.45); }
@media (prefers-reduced-motion: reduce) { .side-group.side-glow::before, .side-group.side-glow::after { animation: none; } }

/* 새 포인트 — 프로필 사진의 점 · 포인트 메뉴의 +X */
.acct-me { position: relative; }
.acct-me .pt-dot { position: absolute; top: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; background: #ff4d6a; border: 2px solid var(--bg-app, #0f1124); box-shadow: 0 0 0 0 rgba(255,77,106,.6); animation: ptPulse 1.8s ease-out infinite; }
.acct-pts .pt-new { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: #ff4d6a; border-radius: 999px; padding: 2px 7px; margin-left: 6px; vertical-align: 1px; }
@keyframes ptPulse { 0% { box-shadow: 0 0 0 0 rgba(255,77,106,.6); } 70% { box-shadow: 0 0 0 7px rgba(255,77,106,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,106,0); } }
@media (prefers-reduced-motion: reduce) { .acct-me .pt-dot { animation: none; } }
/* 포인트 전환 — 전환 비율 안내 · 받을 머니 미리 보기 */
.pt-rate, .pt-get { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.pt-rate { background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); margin: 0 0 12px; }
.pt-rate span, .pt-get > span { color: var(--text-2); font-weight: 600; } .pt-rate b { color: var(--brand); font-variant-numeric: tabular-nums; }
.pt-get { background: var(--bg-input); border: 1px solid var(--line); margin: 0 0 12px; } .pt-get b { font-size: 16px; font-variant-numeric: tabular-nums; } .pt-get .pt-cur { color: var(--text-2); font-size: 13px; font-weight: 600; }

/* 게임사 로고 — 게임 카드 오른쪽 위 (점검 표시는 그 아래로) */
.game-card .gc-plogo, .game-card.has-thumb .gc-plogo { position: absolute; top: 6px; right: 6px; z-index: 2; height: 22px; width: auto; max-width: 44%; object-fit: contain; padding: 3px 6px; border-radius: 6px; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); pointer-events: none; }
.game-card .gc-plogo ~ .maint { top: 34px; }
@media (max-width: 640px) { .game-card .gc-plogo, .game-card.has-thumb .gc-plogo { height: 18px; padding: 2px 5px; top: 5px; right: 5px; } }

/* 게임 아이콘 로딩 중 — 빛이 지나가는 자리 표시 + 작은 회전 표시, 다 받으면 부드럽게 나타남 */
.game-card.has-thumb .gc-img { opacity: 0; transition: opacity .25s ease; }
.game-card.has-thumb.loaded .gc-img { opacity: 1; }
.game-card.has-thumb:not(.loaded):not(.thumb-fail) { background: linear-gradient(100deg, var(--bg-card) 35%, color-mix(in srgb, var(--bg-card), #fff 9%) 50%, var(--bg-card) 65%) 0 0 / 300% 100%; animation: gcShim 1.3s linear infinite; }
.game-card.has-thumb:not(.loaded):not(.thumb-fail)::before { display: none; }
.game-card.has-thumb:not(.loaded):not(.thumb-fail)::after { display: block; content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--text-2), transparent 70%); border-top-color: var(--text-2); background: none; z-index: 0; animation: gcSpin .8s linear infinite; }
@keyframes gcShim { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@keyframes gcSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .game-card.has-thumb:not(.loaded) { animation: none; } .game-card.has-thumb:not(.loaded)::after { animation: none; } }
/* 입금 버튼 — 테두리를 따라 빛이 한 바퀴씩 도는 애니메이션 (브랜드 색 · 회전하는 그라데이션 테두리) */
@property --dep-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn-deposit { position: relative; isolation: isolate; border-color: transparent; }
.btn-deposit::before { content: ""; position: absolute; inset: -1.5px; z-index: -1; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--dep-a), color-mix(in srgb, var(--brand) 35%, transparent) 0deg, color-mix(in srgb, var(--brand) 35%, transparent) 220deg, var(--brand) 290deg, #fff 320deg, var(--brand) 340deg, color-mix(in srgb, var(--brand) 35%, transparent) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: depSpin 3s linear infinite; }
.btn-deposit::after { content: ""; position: absolute; inset: -1.5px; z-index: -2; border-radius: inherit; pointer-events: none; box-shadow: 0 0 14px -4px var(--brand); opacity: .55; animation: depGlow 3s ease-in-out infinite; }
@keyframes depSpin { to { --dep-a: 360deg; } }
@keyframes depGlow { 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .btn-deposit::before, .btn-deposit::after { animation: none; } }

/* 게임 실행 중 로딩 — 게임 화면을 먼저 띄우고, 게임이 다 뜨면 걷음 */
.gf-load { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--bg-app); transition: opacity .3s ease, visibility .3s; }
.gf-stage.ready .gf-load { opacity: 0; visibility: hidden; pointer-events: none; }
.gf-load-ic { width: 96px; height: 96px; border-radius: 18px; background: var(--bg-card) center / cover no-repeat; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: gfLoadPulse 1.6s ease-in-out infinite; }
.gf-load b { font-size: 16px; } .gf-load small { color: var(--text-2); font-size: 13px; }
.gf-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--brand) 25%, transparent); border-top-color: var(--brand); animation: gcSpin .8s linear infinite; }
@keyframes gfLoadPulse { 50% { transform: scale(.96); opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .gf-load-ic, .gf-spin { animation: none; } }

/* 보상 페이지 (#rewards · rewards.js) */
.rwp .rw-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.rw-tile { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.rw-tile small { display: block; font-size: 12px; color: var(--text-2); } .rw-tile b { display: block; margin-top: 4px; font-size: 20px; font-weight: 900; } .rw-tile span { display: block; margin-top: 2px; font-size: 12px; color: var(--text-2); }
.rw-code { display: flex; gap: 8px; margin-bottom: 18px; max-width: 480px; } .rw-code .inp { flex: 1; height: 42px; padding: 0 12px; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--line); color: var(--text); text-transform: uppercase; } .rw-code .btn { height: 42px; padding: 0 16px; }
.rw-sec { margin-bottom: 22px; } .rw-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; } .rw-h h2 { font-size: 16px; font-weight: 800; } .rw-h .btn { height: 32px; padding: 0 12px; font-size: 12.5px; background: var(--bg-chip); }
.rw-row { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.rw-row > div:first-child { flex: 1; min-width: 0; } .rw-row b { display: block; font-size: 14px; font-weight: 800; } .rw-row small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-2); }
.rw-row .btn { height: 36px; padding: 0 14px; font-size: 13px; flex: none; } .rw-row .btn:not(.btn-primary) { background: var(--bg-chip); }
.rw-rules { margin: 0; padding-left: 16px; font-size: 12px; color: var(--text-2); display: grid; gap: 3px; } .rw-rules b { color: var(--text); }
.rw-none { color: var(--text-2); font-size: 13px; padding: 6px 2px; }
.rw-tbl { overflow-x: auto; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; } .rw-tbl table { width: 100%; border-collapse: collapse; font-size: 13px; } .rw-tbl th, .rw-tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; } .rw-tbl th { font-size: 12px; color: var(--text-2); font-weight: 700; } .rw-tbl tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) { .rw-row { flex-wrap: wrap; } .rw-row > div:first-child { flex-basis: 100%; } }
.rw-row b.rw-in { display: inline; font-size: inherit; color: var(--text); }
.rw-row > div:first-child > .chp-st { display: inline-block; margin-top: 4px; font-size: 11px; }
