:root {
  color-scheme: dark;
  --bg: #070709;
  --bg-2: #0b0b0f;
  --surface: #111114;
  --surface-2: #17171c;
  --surface-3: #1f1f26;
  --line: rgba(255,255,255,.075);
  --line-2: rgba(255,255,255,.12);
  --text: #f3f3ee;
  --muted: #8d8d97;
  --muted-2: #6a6a74;
  --lime: #d2ff1f;
  --lime-2: #b8ec00;
  --lime-deep: #8fbf00;
  --lime-ink: #101400;
  --lime-glow: rgba(210,255,31,.35);
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --violet-glow: rgba(139,92,246,.4);
  --gold: #f5c542;
  --silver: #c9ccd6;
  --bronze: #d08a4b;
  --danger: #ff5c7a;
  --success: #6ee7a8;
  --radius: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-body: Manrope, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Jura, Manrope, ui-sans-serif, sans-serif;
  --font-num: "Chakra Petch", Jura, ui-sans-serif, sans-serif;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }
html { width: 100%; max-width: 100vw; overflow-x: hidden; background: var(--bg); scroll-behavior: smooth; }
body { width: 100%; max-width: 100vw; margin: 0; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; background: var(--bg); }
button, input { font: inherit; }
button, a { -webkit-user-select: none; user-select: none; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.is-hidden { display: none !important; }
.tap { transition: transform .16s ease, opacity .16s ease, background-color .16s ease, border-color .16s ease; }
.tap:active { transform: scale(.965); }

.ambient { position: fixed; pointer-events: none; filter: blur(80px); opacity: .18; z-index: 0; border-radius: 50%; }
.ambient-a { width: 300px; height: 300px; top: -140px; right: -120px; background: var(--violet); }
.ambient-b { width: 220px; height: 220px; bottom: 18%; left: -140px; background: var(--lime); opacity: .06; }

/* ---------- Typography helpers ---------- */
.eyebrow { display: block; color: var(--muted); font-family: var(--font-display); font-size: 10px; line-height: 1.2; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.accent { color: var(--lime); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 12px; }
/* The heading takes the slack so every control -- the "see all" link and the
   injected shelf arrows -- stays grouped against the right edge instead of
   being scattered across a wide desktop header by space-between. */
.section-head > h2 { flex: none; }
.section-head h2 { margin: 0 auto 0 0; font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.section-head h2 .count { margin-left: 6px; color: var(--muted-2); font-style: normal; font-size: 12px; letter-spacing: 0; }
.text-button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--lime); cursor: pointer; padding: 5px 0; font-size: 12px; font-weight: 700; }
.text-button .i8 { font-size: 12px; }
.text-button .short { display: none; }
@media (max-width: 430px) { .text-button .long { display: none; } .text-button .short { display: inline; } .balance-pill small { display: none; } .balance-pill { font-size: 12px; padding-left: 7px; gap: 4px; max-width: calc(50% - 64px); } .identity { gap: 6px; max-width: calc(50% - 64px); } .identity-copy small { font-size: 9px; } .wordmark-logo { height: 10px; } .wordmark-tag { height: 3.5px; } }
@media (max-width: 380px) { .balance-pill .coin-mark { display: none; } .balance-plus { width: 22px; height: 22px; } .section-head { gap: 8px; } .section-head h2 { font-size: 13px; letter-spacing: .06em; } .online-pill { margin-left: 0; padding: 3px 7px 3px 6px; font-size: 9px; gap: 4px; } .online-pill b { font-size: 11px; } }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; font-size: 16px; }
.subtle { color: var(--muted); font-size: 12px; }
.block { margin-top: 26px; }
.footnote { margin: 22px 4px 0; color: var(--muted-2); font-size: 10px; text-align: center; }
.coin-mark { display: inline-block; width: 16px; height: 16px; flex: none; border: 2px solid var(--lime); transform: rotate(45deg) scale(.82); border-radius: 3px; position: relative; }
.coin-mark::after { content: ""; position: absolute; inset: 3px; background: var(--lime); border-radius: 1px; }
.coin-mark.big { width: 30px; height: 30px; border-width: 3px; border-radius: 5px; }
.coin-mark.big::after { inset: 6px; border-radius: 2px; }

/* ---------- Boot ---------- */
.boot { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; z-index: 100; background: radial-gradient(circle at 50% 30%, rgba(139,92,246,.14), transparent 45%), var(--bg); }
.boot-logo { width: min(64vw, 260px); height: auto; display: block; animation: bootPulse 2s ease-in-out infinite; }
@keyframes bootPulse { 50% { transform: scale(1.03); filter: drop-shadow(0 0 22px rgba(210,255,31,.28)); } }
.boot-bar { width: 140px; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.08); }
.boot-bar i { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--lime); animation: bootBar 1.3s ease-in-out infinite; }
@keyframes bootBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
.boot span { color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.boot-retry { min-height: 42px; padding: 0 22px; border: 0; border-radius: 10px; color: var(--lime-ink); background: var(--lime); font-weight: 800; cursor: pointer; }

/* ---------- Gate (login) ---------- */
.gate { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; background: var(--bg); }
.gate-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 18%, rgba(139,92,246,.22), transparent 42%), radial-gradient(circle at 80% 90%, rgba(210,255,31,.08), transparent 40%); }
.gate-card { position: relative; width: min(100%, 400px); padding: 26px 22px 22px; border: 1px solid var(--line-2); border-radius: 26px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.gate-lang { position: absolute; top: 14px; right: 14px; display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.gate-lang button, .lang-switch button { min-width: 36px; padding: 5px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-family: var(--font-display); font-size: 11px; font-weight: 700; cursor: pointer; }
.gate-lang button.active, .lang-switch button.active { background: var(--lime); color: var(--lime-ink); }
.gate-logo { display: block; width: min(60%, 220px); margin: 8px auto 20px; }
.gate-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: var(--surface); }
.gate-tabs button { min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.gate-tabs button.active { background: var(--surface-3); color: var(--text); }
.gate-form { margin-top: 12px; }
.gate-form .btn { margin-top: 6px; min-height: 50px; }
.gate-note { margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; text-align: center; }
.gate-telegram-state { display: grid; justify-items: center; gap: 12px; padding: 10px 0 6px; text-align: center; }
.gate-telegram-state b { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.gate-telegram-state p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; min-height: 1em; }
.gate-spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(210,255,31,.2); border-top-color: var(--lime); animation: cardSpin .9s linear infinite; }
.gate-telegram-state.failed .gate-spinner { display: none; }
.gate-telegram[hidden] { display: none; }
/* Brand marks keep their own colours, so they sit as images rather than masks. */
.brand-mark { display: block; flex: none; border-radius: 50%; }
.gate-telegram { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); font-size: 12px; font-weight: 700; }

/* ---------- App shell ---------- */
.app { position: relative; z-index: 1; width: 100%; max-width: 720px; min-width: 0; min-height: 100dvh; overflow-x: hidden; margin: 0 auto; padding-bottom: calc(100px + var(--safe-bottom)); }
.topbar { position: sticky; top: 0; z-index: 50; min-height: calc(62px + var(--safe-top)); padding: calc(9px + var(--safe-top)) 12px 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(7,7,9,.86); border-bottom: 1px solid transparent; backdrop-filter: blur(22px) saturate(130%); -webkit-backdrop-filter: blur(22px) saturate(130%); }
.topbar.scrolled { border-bottom-color: var(--line); }
.identity { flex: 0 1 auto; max-width: calc(50% - 74px); border: 0; padding: 0; background: transparent; display: flex; align-items: center; gap: 8px; min-width: 0; text-align: left; cursor: pointer; }
.avatar-wrap { position: relative; flex: none; }
.avatar, .profile-avatar { display: block; flex: none; overflow: hidden; border-radius: 50%; background: var(--surface-2) url(/miniapp/avatar-default.png) center / cover; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--lime), 0 0 18px var(--lime-glow); }
.avatar { width: 36px; height: 36px; }
.avatar.has-photo, .profile-avatar.has-photo { background-size: cover; background-position: center; }
.level-badge { position: absolute; right: -4px; bottom: -4px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 6px; background: var(--lime); color: var(--lime-ink); font-family: var(--font-num); font-size: 10px; font-weight: 700; box-shadow: 0 0 0 2px var(--bg); }
.avatar-wrap.large .level-badge { right: -2px; bottom: 0; min-width: 24px; height: 24px; font-size: 12px; border-radius: 8px; }
.identity-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.identity-copy small { color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.identity-copy b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
/* The wordmark is centred on the bar itself, independent of the side blocks. */
.wordmark { position: absolute; left: 50%; top: calc(50% + var(--safe-top) / 2); display: flex; flex-direction: column; align-items: center; gap: 3px; transform: translate(-50%, -50%); }
.wordmark-logo { height: 11px; width: auto; display: block; }
.wordmark-tag { height: 4px; width: auto; display: block; opacity: .85; }
.balance-pill { flex: 0 1 auto; max-width: calc(50% - 74px); margin-left: auto; display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; border: 1px solid rgba(210,255,31,.28); border-radius: 12px; padding: 4px 4px 4px 9px; background: rgba(210,255,31,.06); cursor: pointer; font-family: var(--font-num); font-size: 13px; font-weight: 700; color: var(--lime); box-shadow: inset 0 0 20px rgba(210,255,31,.05); }
.balance-pill > span:nth-child(2) { flex: none; white-space: nowrap; }
.balance-pill small { flex: none; color: rgba(210,255,31,.6); font-size: 9px; font-weight: 700; }
.balance-pill .coin-mark { flex: none; width: 13px; height: 13px; }
.balance-plus { display: grid; place-items: center; width: 24px; height: 24px; margin-left: 1px; flex: none; border-radius: 8px; background: var(--lime); color: var(--lime-ink); font-size: 14px; line-height: 1; box-shadow: 0 0 14px var(--lime-glow); }

main { width: 100%; min-width: 0; padding: 0 14px; }
.screen { display: none; width: 100%; min-width: 0; padding: 12px 0 32px; animation: screenIn .24s ease both; }
.screen > section { min-width: 0; }
.screen.active { display: block; }
@keyframes screenIn { from { opacity: 0; transform: translateY(7px); } }
.notice { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 10px; border: 1px solid rgba(210,255,31,.2); border-radius: 12px; background: rgba(210,255,31,.05); color: #c8c9cf; font-size: 11px; }
.notice span { padding: 2px 6px; border-radius: 5px; background: var(--lime); color: var(--lime-ink); font-weight: 900; letter-spacing: .08em; font-size: 9px; }
.notice em { font-style: normal; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-head > div { min-width: 0; }
.panel-head h2 { margin: 5px 0 0; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.page-title { padding: 10px 4px 14px; }
.page-title h1 { max-width: 430px; margin: 8px 0 8px; font-family: var(--font-display); font-size: clamp(22px, 6.4vw, 32px); font-weight: 700; line-height: 1.1; letter-spacing: .02em; }
.page-title p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn { border: 0; border-radius: 12px; padding: 12px 16px; cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.btn:disabled { cursor: default; opacity: .42; }
.btn-primary { background: linear-gradient(180deg, #e2ff4a, var(--lime) 60%, var(--lime-2)); color: var(--lime-ink); box-shadow: 0 8px 26px rgba(210,255,31,.18), inset 0 1px rgba(255,255,255,.5); }
.btn-secondary { background: #fff; color: #111; }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--text); }
.btn-full { width: 100%; }

/* ---------- Streak card ---------- */
.streak-card { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 12px 12px 10px; overflow: hidden; }
.streak-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 0% 50%, rgba(210,255,31,.14), transparent 45%); }
.streak-box { display: grid; place-items: center; }
.lootbox { position: relative; width: 60px; height: 60px; display: grid; place-items: center; }
.lootbox::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle, var(--lime-glow), transparent 68%); filter: blur(6px); animation: lootGlow 2.6s ease-in-out infinite; }
.lootbox svg { position: relative; z-index: 1; width: 100%; height: 100%; filter: drop-shadow(0 6px 14px rgba(0,0,0,.55)); animation: lootFloat 3.4s ease-in-out infinite; }
@keyframes lootFloat { 50% { transform: translateY(-3px); } }
@keyframes lootGlow { 50% { opacity: .55; transform: scale(1.08); } }
.streak-copy { min-width: 0; display: grid; gap: 2px; }
.streak-copy .eyebrow { font-size: 9px; letter-spacing: .14em; }
.streak-day { display: block; color: var(--lime); font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.streak-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.streak-claim { justify-self: start; min-height: 26px; margin-top: 3px; padding: 4px 12px; border-radius: 8px; font-size: 10px; white-space: nowrap; }
.streak-claim:disabled { display: none; }
.streak-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.streak-week .d { display: grid; justify-items: center; gap: 4px; color: var(--muted-2); font-family: var(--font-num); font-size: 10px; font-weight: 700; }
.streak-week .d i { display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(255,255,255,.03); font-size: 10px; font-style: normal; }
.streak-week .d.done { color: var(--lime); }
.streak-week .d.done i { border-color: var(--lime); color: var(--lime); }
.streak-week .d.today { color: var(--lime); }
.streak-week .d.today i { border-color: var(--lime); box-shadow: 0 0 14px var(--lime-glow); position: relative; }
.streak-week .d.today i::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet-2); box-shadow: 0 0 12px var(--violet); }
.streak-week .d.gift i { border-color: rgba(167,139,250,.6); color: var(--violet-2); background: rgba(139,92,246,.14); box-shadow: 0 0 14px var(--violet-glow); }
.streak-week .d.gift.done i { color: var(--lime); }
@media (max-width: 400px) {
  .streak-card { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "box copy" "week week"; }
  .streak-box { grid-area: box; }
  .streak-copy { grid-area: copy; }
  .streak-week { grid-area: week; gap: 4px; margin-top: 4px; }
  .streak-week .d i { width: 28px; height: 28px; }
}

/* ---------- Online pill ---------- */
.online-pill { display: inline-flex; align-items: center; gap: 6px; margin-left: 2px; margin-right: auto; padding: 4px 9px 4px 7px; border: 1px solid rgba(210,255,31,.22); border-radius: 999px; background: rgba(210,255,31,.06); color: var(--muted); font-size: 10px; white-space: nowrap; }
.online-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: onlinePulse 2.2s ease-in-out infinite; }
@keyframes onlinePulse { 50% { opacity: .45; box-shadow: 0 0 2px var(--lime); } }
.online-pill b { color: var(--lime); font-family: var(--font-num); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Jackpot ---------- */
.jackpot { position: relative; margin-top: 12px; min-height: 236px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: #07060c; box-shadow: 0 30px 70px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.08); isolation: isolate; }
.jackpot-space { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.nebula { position: absolute; border-radius: 50%; filter: blur(30px); }
.n1 { width: 260px; height: 220px; left: -60px; top: -60px; background: radial-gradient(circle, rgba(139,92,246,.55), rgba(76,29,149,.25) 50%, transparent 72%); animation: drift 14s ease-in-out infinite alternate; }
.n2 { width: 300px; height: 240px; right: -90px; bottom: -80px; background: radial-gradient(circle, rgba(139,92,246,.42), rgba(210,255,31,.12) 55%, transparent 74%); animation: drift 18s ease-in-out infinite alternate-reverse; }
.n3 { width: 180px; height: 140px; left: 20%; bottom: -40px; background: radial-gradient(circle, rgba(210,255,31,.2), transparent 70%); }
@keyframes drift { to { transform: translate(18px, 12px) scale(1.06); } }
.stars { position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 12% 20%, #fff 50%, transparent 55%), radial-gradient(1px 1px at 30% 70%, #fff 50%, transparent 55%), radial-gradient(1.5px 1.5px at 55% 15%, #fff 50%, transparent 55%), radial-gradient(1px 1px at 70% 45%, rgba(255,255,255,.8) 50%, transparent 55%), radial-gradient(1.2px 1.2px at 88% 25%, #fff 50%, transparent 55%), radial-gradient(1px 1px at 40% 40%, rgba(255,255,255,.7) 50%, transparent 55%), radial-gradient(1.5px 1.5px at 80% 80%, #fff 50%, transparent 55%), radial-gradient(1px 1px at 20% 88%, rgba(255,255,255,.7) 50%, transparent 55%), radial-gradient(1px 1px at 62% 62%, #fff 50%, transparent 55%), radial-gradient(1px 1px at 95% 60%, rgba(255,255,255,.7) 50%, transparent 55%); opacity: .8; animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .45; } }
.asteroid { position: absolute; border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; background: linear-gradient(140deg, #3b3a44, #17171b 60%); box-shadow: inset -4px -4px 8px rgba(0,0,0,.6), 0 0 18px rgba(210,255,31,.15); }
.a1 { width: 44px; height: 38px; left: 6%; bottom: 14%; transform: rotate(-12deg); }
.a2 { width: 22px; height: 20px; left: 16%; bottom: 40%; transform: rotate(30deg); }
.a3 { width: 30px; height: 26px; right: 8%; top: 20%; transform: rotate(-30deg); }
.jackpot-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; padding: 30px 18px 26px; text-align: center; }
.jackpot-title { display: flex; align-items: center; gap: 12px; color: #d9d9e0; font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.jackpot-title i { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4)); }
.jackpot-title i:last-child { transform: scaleX(-1); }
.jackpot-amount { display: flex; align-items: center; gap: 12px; }
.jackpot-amount strong { font-family: var(--font-num); font-size: clamp(38px, 12vw, 58px); font-weight: 700; line-height: 1; letter-spacing: -.01em; color: var(--lime); text-shadow: 0 0 24px rgba(210,255,31,.45), 0 0 60px rgba(210,255,31,.2); font-variant-numeric: tabular-nums; }
.jackpot-amount small { align-self: flex-end; margin-bottom: 8px; color: var(--lime); font-family: var(--font-display); font-size: 14px; font-weight: 700; opacity: .8; }
.jackpot-play { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 240px; min-height: 52px; margin-top: 8px; padding: 0 28px; border: 0; color: var(--lime-ink); background: linear-gradient(180deg, #e6ff5c, var(--lime) 55%, var(--lime-2)); font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; clip-path: polygon(6% 0, 100% 0, 100% 70%, 94% 100%, 0 100%, 0 30%); box-shadow: 0 10px 40px rgba(210,255,31,.28); }
.jackpot-play .i8 { font-size: 14px; }

/* ---------- Live row ---------- */
.live-row, .originals-row { display: grid; width: 100%; grid-auto-flow: column; gap: 10px; padding: 2px 0 8px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.live-row::-webkit-scrollbar, .originals-row::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.live-row { grid-auto-columns: 148px; }
.live-card { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 10px; min-height: 118px; padding: 12px 10px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); scroll-snap-align: start; }
.live-card .p-avatar { width: 44px; height: 44px; }
.live-card > div { min-width: 0; }
.live-card b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.live-card small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }
.live-card .live-value { display: block; margin-top: 4px; color: var(--lime); font-family: var(--font-num); font-size: 19px; font-weight: 700; line-height: 1.05; white-space: nowrap; }
.live-card .live-value em { font-style: normal; font-size: 11px; opacity: .8; }
.live-card .live-game { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.live-card .live-game b { display: inline; color: var(--text); font-family: var(--font-body); font-size: 10px; letter-spacing: 0; text-transform: uppercase; }
.live-card time { position: absolute; left: 10px; bottom: 8px; color: var(--muted-2); font-size: 9px; }
.live-card .crown { position: absolute; left: 6px; top: 6px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); color: #3a2a00; font-size: 9px; box-shadow: 0 0 10px rgba(245,197,66,.6); }
.p-avatar { display: block; flex: none; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: #16161c; box-shadow: 0 0 0 1.5px var(--pa-ring, var(--violet)), 0 0 14px var(--pa-glow, var(--violet-glow)); }
.p-avatar svg { display: block; width: 100%; height: 100%; }

/* ---------- Originals ---------- */
.originals-row { grid-auto-columns: 132px; }
.original-card { position: relative; display: block; height: 186px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, #16151d, #0c0c11); text-align: left; cursor: pointer; scroll-snap-align: start; padding: 0; isolation: isolate; }
.original-card::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 50% 30%, var(--oc-glow, rgba(139,92,246,.35)), transparent 60%); }
.original-card svg { position: absolute; left: 50%; top: 16px; width: 96px; height: 96px; transform: translateX(-50%); z-index: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); }
.original-card .oc-copy { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; }
.original-card .oc-copy b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.original-card .oc-copy small { display: flex; align-items: center; gap: 4px; margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.original-card .oc-copy small .i8 { font-size: 10px; color: var(--muted); }
.original-card .hot { position: absolute; z-index: 3; left: 8px; top: 8px; padding: 3px 7px; border-radius: 6px; background: var(--lime); color: var(--lime-ink); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.original-card.oc-crash { --oc-glow: rgba(139,92,246,.4); }
.original-card.oc-plinko { --oc-glow: rgba(139,92,246,.42); }
.original-card.oc-blackjack { --oc-glow: rgba(139,92,246,.35); }
.original-card.oc-dice { --oc-glow: rgba(210,255,31,.2); }
.original-card.oc-slot { --oc-glow: rgba(210,255,31,.22); }
.original-card.oc-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .85; }
.original-card.oc-slot::after { content: ""; position: absolute; inset: 40% 0 0; z-index: 1; background: linear-gradient(transparent, rgba(7,7,9,.95)); }

/* ---------- Slots catalog ---------- */
.search-wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; max-height: 0; opacity: 0; overflow: hidden; padding: 0 13px; border: 1px solid transparent; border-radius: 12px; background: var(--surface); transition: max-height .24s ease, opacity .2s ease, padding .24s ease, margin .24s ease, border .2s; }
.search-wrap.open { max-height: 50px; opacity: 1; padding-top: 10px; padding-bottom: 10px; margin-bottom: 10px; border-color: var(--line); }
.search-wrap span { color: var(--muted); font-size: 16px; }
.search-wrap input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }
.search-wrap input::placeholder { color: var(--muted-2); }
.search-wrap button { border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.chips { display: flex; width: 100%; gap: 6px; margin: 0 0 12px; padding: 0 0 2px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chip { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; background: var(--surface); color: var(--muted); cursor: pointer; font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chip.active { border-color: var(--lime); background: var(--lime); color: var(--lime-ink); }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.game-card { position: relative; min-width: 0; cursor: pointer; }
/* Portrait, because the promo art is 3:4 -- a landscape box crops the game's
   own title straight out of the tile. */
.game-card .cover { position: relative; aspect-ratio: 384/516; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.game-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease, filter .3s ease; }
.game-card .cover::after { content: ""; position: absolute; inset: 72% 0 0; background: linear-gradient(transparent, rgba(3,3,6,.55)); pointer-events: none; }
.game-card .game-title { display: block; margin: 7px 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 700; }
.game-card .game-cat { display: block; margin: 1px 2px 0; color: var(--muted-2); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
/* Bottom-left: the promo art carries its own corner ribbon and centred title,
   so a top-left badge lands straight on top of both. */
.badge { position: absolute; z-index: 4; left: 6px; bottom: 6px; padding: 3px 6px; border-radius: 6px; background: var(--lime); color: var(--lime-ink); font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.badge.top { background: var(--violet); color: #fff; }
.favorite { position: absolute; z-index: 5; top: 5px; right: 5px; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 9px; color: #fff; background: rgba(8,8,12,.55); backdrop-filter: blur(8px); cursor: pointer; font-size: 13px; }
.favorite.on { color: var(--lime); }
.empty { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--muted); text-align: center; }
.empty span { font-size: 32px; }
.empty b { color: var(--text); font-size: 13px; }
.empty small { font-size: 11px; }
.show-all { margin-top: 14px; }

/* ---------- Leaderboard / podium ---------- */
.board-row { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(104px, 1fr); gap: 8px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 6px; padding: 14px 10px 12px; }
.podium .pl { display: grid; justify-items: center; gap: 5px; min-width: 0; text-align: center; }
.podium .pl .p-avatar { width: 46px; height: 46px; }
.podium .pl.first .p-avatar { width: 58px; height: 58px; --pa-ring: var(--gold); --pa-glow: rgba(245,197,66,.55); }
.podium .pl.second .p-avatar { --pa-ring: var(--silver); --pa-glow: rgba(201,204,214,.35); }
.podium .pl.third .p-avatar { --pa-ring: var(--bronze); --pa-glow: rgba(208,138,75,.4); }
.podium .pl .rk { display: grid; place-items: center; width: 20px; height: 20px; margin-bottom: -14px; z-index: 2; border-radius: 6px; background: var(--surface-3); color: var(--text); font-family: var(--font-num); font-size: 11px; font-weight: 700; box-shadow: 0 0 0 2px var(--bg); }
.podium .pl.first .rk { background: var(--gold); color: #3a2a00; }
.podium .pl.first .rk::before { content: "♛"; position: absolute; top: -13px; color: var(--gold); font-size: 11px; text-shadow: 0 0 8px rgba(245,197,66,.8); }
.podium .pl.first .rk { position: relative; }
.podium .pl.second .rk { background: #d5d7de; color: #222; }
.podium .pl.third .rk { background: var(--bronze); color: #2a1600; }
.podium .pl b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.podium .pl small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-family: var(--font-num); font-size: 10px; }
.podium .pl.first small { color: var(--lime); }
.podium.large { padding: 20px 12px 16px; }
.podium.large .pl .p-avatar { width: 56px; height: 56px; }
.podium.large .pl.first .p-avatar { width: 72px; height: 72px; }
.your-place { display: grid; align-content: center; justify-items: center; gap: 4px; padding: 12px 8px; text-align: center; }
.your-place b { color: var(--lime); font-family: var(--font-num); font-size: 30px; font-weight: 700; line-height: 1; text-shadow: 0 0 18px var(--lime-glow); }
.your-place small { color: var(--muted); font-family: var(--font-num); font-size: 11px; }
.rank-hero { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(104px, 1fr); gap: 8px; }
.leaderboard { display: grid; gap: 2px; padding: 6px; }
.leader { display: grid; grid-template-columns: 26px 34px 1fr auto; align-items: center; gap: 8px; min-height: 42px; padding: 4px 8px; border-radius: 10px; color: var(--muted); font-size: 12px; }
.leader.self { color: var(--text); background: rgba(210,255,31,.07); box-shadow: inset 0 0 0 1px rgba(210,255,31,.25); }
.leader i { color: var(--lime); font-family: var(--font-num); font-style: normal; font-weight: 700; }
.leader .p-avatar { width: 32px; height: 32px; }
.leader b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-family: var(--font-display); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.leader span { max-width: 32vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-num); font-weight: 700; }
.live-dot { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.live-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 9px var(--lime); }
.activity-list { display: grid; gap: 2px; padding: 6px; }
.activity { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; min-height: 46px; padding: 5px 8px; border-radius: 10px; }
.activity .p-avatar { width: 32px; height: 32px; }
.activity > div { min-width: 0; }
.activity b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.activity small { display: block; color: var(--muted); font-size: 10px; }
.activity .amt { color: var(--lime); font-family: var(--font-num); font-size: 14px; font-weight: 700; white-space: nowrap; }

/* ---------- Club: daily / tasks / promo / referral ---------- */
.daily-card { padding: 18px; background: radial-gradient(circle at 100% 0, rgba(139,92,246,.22), transparent 42%), var(--surface); }
.flame { display: flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 10px; background: rgba(255,255,255,.06); font-family: var(--font-num); font-size: 13px; }
.flame .i8 { color: #ffb528; font-size: 14px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 18px 0; }
.day { position: relative; min-width: 0; padding: 8px 2px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.18); text-align: center; }
.day small { display: block; color: var(--muted-2); font-size: 8px; }
.day b { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 4px; font-family: var(--font-num); font-size: 10px; }
.day b .i8 { font-size: 10px; }
.day.done { border-color: rgba(210,255,31,.25); color: var(--lime); }
.day.today { border-color: var(--lime); background: rgba(210,255,31,.08); box-shadow: 0 0 16px rgba(210,255,31,.12); }
.task-list { display: grid; gap: 8px; }
.task { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.task-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-3); color: var(--lime); font-size: 18px; }
.task-copy { min-width: 0; }
.task-copy b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.task-progress { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 3px; background: #26262e; }
.task-progress i { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
.task-reward { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 56px; border: 1px solid rgba(210,255,31,.25); border-radius: 10px; padding: 8px; color: var(--lime); background: rgba(210,255,31,.06); cursor: pointer; font-family: var(--font-num); font-size: 11px; font-weight: 700; }
.task-reward .coin-mark { width: 12px; height: 12px; }
.task-reward:disabled { color: var(--muted); border-color: var(--line); background: transparent; }
.promo-card { display: grid; grid-template-columns: 48px 1fr; gap: 13px; margin-top: 26px; padding: 18px; }
.promo-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--lime); color: var(--lime-ink); font-size: 21px; }
.promo-copy { min-width: 0; }
.promo-copy h2 { margin: 5px 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.promo-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.promo-form { grid-column: 1/-1; display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 6px; }
.promo-form input, .field input { width: 100%; min-width: 0; border: 1px solid var(--line-2); border-radius: 12px; outline: none; padding: 12px 12px; color: var(--text); background: rgba(0,0,0,.28); font-size: 13px; }
.promo-form input { text-transform: uppercase; }
.promo-form input:focus, .field input:focus { border-color: rgba(210,255,31,.6); }
.referral-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 17px; }
.referral-card > div { min-width: 0; }
.referral-card h2 { margin: 5px 0 5px; font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.referral-card p { max-width: 380px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.ref-code { flex: none; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px dashed rgba(210,255,31,.5); border-radius: 11px; padding: 10px; color: var(--lime); background: rgba(210,255,31,.05); cursor: pointer; font-family: var(--font-num); font-size: 12px; font-weight: 700; }

/* ---------- Wallet ---------- */
.wallet-title { padding-bottom: 12px; }
.wallet-card { position: relative; overflow: hidden; padding: 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: radial-gradient(circle at 105% -10%, rgba(210,255,31,.22), transparent 38%), radial-gradient(circle at -10% 110%, rgba(139,92,246,.25), transparent 40%), linear-gradient(145deg, #17171d, #0c0c10); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.wallet-card::before { content: ""; position: absolute; right: -30px; top: -30px; width: 170px; height: 170px; background: url(/miniapp/logo-mark.png) center / contain no-repeat; opacity: .05; transform: rotate(8deg); }
.wallet-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; color: var(--muted); font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.wallet-topline span:last-child { color: var(--lime); }
.wallet-amount { position: relative; z-index: 1; display: flex; flex-wrap: wrap; min-width: 0; align-items: center; gap: 6px 10px; margin: 18px 0 20px; }
.wallet-amount strong { min-width: 0; white-space: nowrap; font-family: var(--font-num); font-size: clamp(30px, 8vw, 44px); font-weight: 700; color: var(--lime); text-shadow: 0 0 20px var(--lime-glow); }
.wallet-amount small { color: var(--muted); font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.wallet-split { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wallet-split div { padding: 10px; border-radius: 12px; background: rgba(255,255,255,.045); }
.wallet-split small { display: block; color: var(--muted-2); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.wallet-split b { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-num); font-size: 13px; }
.wallet-actions { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 8px; margin-top: 15px; }
.payment-methods { display: grid; gap: 8px; }
.payment-method { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); border-radius: 15px; padding: 11px; background: var(--surface); text-align: left; cursor: pointer; }
.payment-method > span:nth-child(2) { min-width: 0; }
.payment-logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.payment-logo .i8 { width: 22px; height: 22px; }
.stars-logo { background: linear-gradient(145deg, #ffcf5a, #f5a623); color: #fff; }
.card-logo { background: linear-gradient(145deg, var(--violet), #5b21b6); color: #fff; }
.crypto-logo { background: linear-gradient(145deg, var(--lime), var(--lime-deep)); color: var(--lime-ink); }
.payment-method b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.payment-method small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.payment-method em { color: var(--danger); font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.payment-method em.ready { color: var(--success); }
.compliance-note { margin: 10px 4px 0; overflow-wrap: anywhere; color: var(--muted-2); font-size: 10px; line-height: 1.55; }
.transaction-list { display: grid; gap: 2px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.transaction { display: grid; width: 100%; min-width: 0; grid-template-columns: 37px minmax(0, 1fr) minmax(0, auto); align-items: center; gap: 10px; min-height: 57px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.transaction:last-child { border-bottom: 0; }
.transaction-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; background: var(--surface-3); color: var(--lime); font-size: 16px; }
.transaction-icon .brand-icon { width: 24px; height: 24px; }
.transaction > :nth-child(2) { min-width: 0; }
.transaction b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.transaction small { color: var(--muted); font-size: 10px; }
.transaction-amount { min-width: 0; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-family: var(--font-num); font-size: 13px; font-weight: 700; }
.transaction-amount.positive { color: var(--lime); }

/* ---------- Profile ---------- */
.profile-hero { display: flex; min-width: 0; align-items: center; gap: 16px; padding: 16px 4px 18px; }
.profile-hero > div:last-child { min-width: 0; }
.profile-avatar { width: 74px; height: 74px; }
.profile-hero h1 { margin: 6px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.profile-hero p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.vip-card { padding: 18px; background: radial-gradient(circle at 100% 0, rgba(139,92,246,.25), transparent 42%), var(--surface); }
.vip-badge { padding: 7px 9px; border: 1px solid rgba(210,255,31,.3); border-radius: 9px; color: var(--lime); background: rgba(210,255,31,.06); font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.progress { height: 7px; margin-top: 17px; overflow: hidden; border-radius: 6px; background: #22222a; }
.progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--lime)); transition: width .6s ease; }
.progress-copy { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: 10px; }
.achievement-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.achievement { min-width: 0; padding: 11px 5px 9px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; }
.achievement.locked { opacity: .35; filter: grayscale(1); }
.achievement .achievement-icon { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 7px; border-radius: 13px; background: var(--surface-3); color: var(--lime); font-size: 18px; }
.achievement b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.achievement small { display: block; margin-top: 3px; font-size: 7px; letter-spacing: .06em; text-transform: uppercase; }
.achievement[data-rarity="common"] small { color: #a9abb5; }
.achievement[data-rarity="rare"] small { color: var(--violet-2); }
.achievement[data-rarity="epic"] small { color: #c4b5fd; }
.achievement[data-rarity="legendary"] small { color: var(--lime); }
.achievement-claim { width: calc(100% - 6px); min-height: 26px; margin: 8px 3px 0; padding: 5px 3px; border: 1px solid rgba(210,255,31,.3); border-radius: 8px; color: var(--lime-ink); background: var(--lime); font-size: 8px; font-weight: 900; cursor: pointer; }
.achievement-claim:disabled { color: var(--muted); border-color: var(--line); background: #1a1a20; cursor: default; }
.achievement:not(.locked):has(.achievement-claim:not(:disabled)) { border-color: rgba(210,255,31,.45); box-shadow: inset 0 0 22px rgba(210,255,31,.06); }
.settings-list { margin-top: 12px; overflow: hidden; }
.settings-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; width: 100%; min-height: 52px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.settings-row:last-child { border-bottom: 0; }
.settings-row > span { color: var(--lime); font-size: 16px; }
.settings-row b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.settings-row em { display: grid; place-items: center; color: var(--muted-2); font-size: 13px; font-style: normal; }
.lang-row { cursor: default; }
.settings-row em.lang-switch, .lang-switch { display: flex; flex-direction: row; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }

/* ---------- Bottom nav ---------- */
.bottom-nav { position: fixed; z-index: 60; left: 50%; bottom: 0; width: min(100%, 720px); min-height: calc(70px + var(--safe-bottom)); padding: 8px 10px calc(8px + var(--safe-bottom)); display: grid; grid-template-columns: 1fr 1fr 78px 1fr 1fr; align-items: end; transform: translateX(-50%); border-top: 1px solid var(--line); background: rgba(9,9,12,.92); backdrop-filter: blur(24px) saturate(145%); -webkit-backdrop-filter: blur(24px) saturate(145%); }
.nav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; }
.nav-item > span { font-size: 21px; line-height: 1; }
.nav-item b { font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav-item.active { color: var(--lime); }
.nav-item.active > span { filter: drop-shadow(0 0 8px var(--lime-glow)); }
.nav-item i { position: absolute; top: 6px; right: calc(50% - 16px); display: none; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 7px var(--danger); }
.nav-item i.on { display: block; }
.nav-center { position: relative; display: grid; place-items: center; align-self: center; height: 60px; margin-top: -26px; border: 0; background: transparent; cursor: pointer; }
.nav-center-ring { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: radial-gradient(circle at 50% 30%, #1c1c24, #0a0a0e 70%); box-shadow: 0 0 0 5px var(--bg), 0 0 30px rgba(210,255,31,.22), inset 0 1px rgba(255,255,255,.1); }
.nav-center-ring img { width: 34px; height: auto; filter: drop-shadow(0 0 10px var(--lime-glow)); }
.nav-center.active .nav-center-ring { border-color: rgba(210,255,31,.5); box-shadow: 0 0 0 5px var(--bg), 0 0 40px rgba(210,255,31,.4); }

/* ---------- Sheet / modal ---------- */
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; padding: 20px 0 0; background: rgba(0,0,0,.72); opacity: 0; transition: opacity .24s, visibility .24s; backdrop-filter: blur(7px); }
.modal-backdrop.open { visibility: visible; opacity: 1; }
.sheet { position: relative; width: min(100%, 720px); max-height: min(90dvh, 760px); overflow-y: auto; overflow-x: hidden; padding: 18px 18px calc(24px + var(--safe-bottom)); border: 1px solid rgba(255,255,255,.12); border-bottom: 0; border-radius: 24px 24px 0 0; background: #101014; transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -30px 90px rgba(0,0,0,.5); }
#sheet-content { min-width: 0; }
.modal-backdrop.open .sheet { transform: translateY(0); }
.sheet-handle { width: 38px; height: 4px; margin: -7px auto 18px; border-radius: 4px; background: #33333c; }
.sheet-close { position: absolute; z-index: 2; top: 15px; right: 16px; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }
.sheet h2 { margin: 5px 42px 8px 0; overflow-wrap: anywhere; font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.1; letter-spacing: .02em; }
.sheet-intro { margin: 0 30px 18px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.quick-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.quick-amounts button { border: 1px solid var(--line); border-radius: 11px; padding: 10px 3px; background: var(--surface-2); cursor: pointer; font-family: var(--font-num); font-size: 12px; font-weight: 700; }
.quick-amounts button.active { border-color: var(--lime); color: var(--lime); background: rgba(210,255,31,.06); }
.field { display: block; margin: 13px 0; }
.field span { display: block; margin: 0 0 6px 2px; color: var(--muted); font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.card-review { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; padding: 14px 0 4px; text-align: center; }
.card-review h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.card-review .sheet-intro { margin: 0; }
.card-review-spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(210,255,31,.2); border-top-color: var(--lime); animation: cardSpin .9s linear infinite; }
@keyframes cardSpin { to { transform: rotate(360deg); } }
.card-review-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; }
.card-review-badge .i8 { width: 26px; height: 26px; }
.card-review-badge.is-ok { color: var(--success); background: rgba(110,231,168,.14); border: 1px solid rgba(110,231,168,.4); }
.card-review-badge.is-bad { color: var(--danger); background: rgba(255,92,122,.13); border: 1px solid rgba(255,92,122,.38); }
.card-review-facts { display: grid; gap: 6px; width: 100%; margin: 4px 0 0; }
.card-review-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.card-review-facts dt { margin: 0; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card-review-facts dd { margin: 0; min-width: 0; font-family: var(--font-num); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.card-sms-row { display: flex; gap: 8px; width: 100%; min-width: 0; max-width: 100%; margin-top: 4px; }
.card-sms-row input { flex: 1 1 0; width: 0; min-width: 0; border: 1px solid var(--line-2); border-radius: 12px; outline: none; padding: 11px 10px; color: var(--text); background: rgba(0,0,0,.28); text-align: center; letter-spacing: .16em; font-family: var(--font-num); font-weight: 700; font-size: 16px; }
.card-sms-row input:focus { border-color: rgba(210,255,31,.6); }
.card-sms-row .btn { flex: none; min-height: 46px; padding: 0 18px; }
.card-sms-status { margin: 8px 0 0; min-height: 14px; font-size: 11px; font-weight: 700; color: var(--muted); }
.card-sms-status.ok { color: var(--success); }
.deposit-bonus-banner { display: flex; align-items: center; gap: 9px; margin: 12px 0 2px; padding: 11px 13px; border-radius: 12px; border: 1px solid rgba(210,255,31,.4); background: linear-gradient(145deg, rgba(210,255,31,.12), rgba(139,92,246,.12)); color: var(--text); font-size: 12px; font-weight: 700; }
.deposit-bonus-banner .i8 { width: 20px; height: 20px; color: var(--lime); flex: none; }
.deposit-bonus-banner b { color: var(--lime); }
.card-fields { display: grid; gap: 10px; margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-fields .field, .field-row .field { margin: 0; }
.provider-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 15px 0; }
.provider-choice button { display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 13px; padding: 11px 8px; background: var(--surface-2); cursor: pointer; font-size: 11px; font-weight: 800; }
.provider-choice button.active { border-color: var(--lime); color: var(--lime); background: rgba(210,255,31,.06); }
.provider-choice button:disabled { opacity: .35; }
.sheet .compliance-note { padding: 10px; border-radius: 11px; background: rgba(255,255,255,.035); }
.sheet-actions { display: grid; gap: 7px; margin-top: 14px; }
.info-list { display: grid; gap: 8px; margin-top: 16px; }
.info-row { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.info-row b { display: block; font-size: 12px; }
.info-row p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: calc(90px + var(--safe-bottom)); width: max-content; max-width: calc(100% - 30px); padding: 10px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(24,24,30,.97); color: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.45); opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: opacity .2s, transform .2s; font-size: 12px; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* Above the game overlay, and clickable when it carries an action. */
.toast { z-index: 1200; }
.toast.show.has-action { pointer-events: auto; }
.toast.error { border-color: rgba(255,92,122,.35); color: #ffb0c0; }

/* ================= Native games (Royal Originals) ================= */
.classic-overlay { position: fixed; z-index: 110; inset: 0; width: 100%; margin: 0 auto; overflow: hidden; background: #08080b; color: #fff; }
.classic-header { position: relative; z-index: 3; min-height: calc(54px + var(--safe-top)); padding: calc(7px + var(--safe-top)) 10px 7px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); background: rgba(8,8,11,.96); backdrop-filter: blur(20px); }
.classic-back { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(180deg, #23232b, #131318); color: #fff; font-size: 17px; cursor: pointer; }
.classic-header > div { min-width: 0; }
.classic-header small { display: block; color: var(--lime); font-family: var(--font-display); font-size: 8px; font-weight: 700; letter-spacing: .18em; }
.classic-header > div b { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.classic-wallet { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 140px; padding: 7px 9px; border: 1px solid rgba(210,255,31,.25); border-radius: 9px; color: var(--lime); background: linear-gradient(180deg, rgba(210,255,31,.09), rgba(210,255,31,.03)); font-family: var(--font-num); }
.classic-wallet .coin-mark { width: 12px; height: 12px; }
.classic-wallet b { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.classic-content { height: calc(100dvh - 86px - var(--safe-top) - var(--safe-bottom)); overflow-y: auto; padding: 9px 10px 28px; overscroll-behavior: contain; }
.classic-footer { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 5px 10px calc(5px + var(--safe-bottom)); border-top: 1px solid var(--line); color: var(--muted-2); background: #0b0b0e; font-size: 8px; font-weight: 700; letter-spacing: .04em; text-align: center; }
.classic-game { --game-accent: var(--lime); display: grid; gap: 8px; width: 100%; max-width: 1480px; margin: 0 auto; }
.classic-game[data-game="crash"] { --game-accent: var(--lime); }
.classic-game[data-game="plinko"] { --game-accent: var(--violet-2); }
.classic-game[data-game="blackjack"] { --game-accent: #6ee7a8; }
.classic-game[data-game="dice"] { --game-accent: var(--lime); }
.classic-game-head { min-height: 27px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px; }
.classic-game-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.rtp-pill { flex: none; padding: 6px 8px; border: 1px solid color-mix(in srgb, var(--game-accent) 30%, transparent); border-radius: 6px; color: var(--game-accent); background: color-mix(in srgb, var(--game-accent) 6%, transparent); font-family: var(--font-num); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.classic-stage { position: relative; min-height: 250px; overflow: hidden; border: 1px solid #26262e; border-radius: 13px; background: linear-gradient(180deg, #16161d, #0d0d12); box-shadow: inset 0 1px rgba(255,255,255,.035), inset 0 -55px 90px rgba(0,0,0,.24), 0 8px 22px rgba(0,0,0,.2); }
.classic-controls { display: grid; gap: 7px; padding: 9px; border: 1px solid #26262e; border-radius: 12px; background: linear-gradient(180deg, #17171d, #101014); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.classic-bet-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: end; gap: 6px; }
.classic-bet-row > button { height: 40px; border: 1px solid #33333d; border-radius: 8px; color: #d8dae0; background: linear-gradient(180deg, #24242d, #17171d); font-family: var(--font-num); font-size: 12px; font-weight: 700; box-shadow: inset 0 1px rgba(255,255,255,.04); cursor: pointer; }
.classic-control-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.classic-label { display: grid; gap: 4px; color: var(--muted); font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.classic-label input, .classic-label select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #33333d; border-radius: 8px; outline: 0; background: #1c1c23; color: #fff; font-family: var(--font-num); font-size: 13px; font-weight: 700; }
.classic-label input:focus, .classic-label select:focus { border-color: color-mix(in srgb, var(--game-accent) 55%, transparent); }
.classic-bets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.classic-bets button, .classic-segments button { min-height: 34px; border: 1px solid #33333d; border-radius: 7px; background: linear-gradient(180deg, #22222a, #17171d); color: #9699a5; font-family: var(--font-num); font-size: 11px; font-weight: 700; cursor: pointer; box-shadow: inset 0 1px rgba(255,255,255,.03); }
.classic-bets button.active, .classic-segments button.active { border-color: var(--game-accent); color: var(--game-accent); background: color-mix(in srgb, var(--game-accent) 8%, transparent); box-shadow: inset 0 0 0 1px var(--game-accent), 0 0 12px color-mix(in srgb, var(--game-accent) 12%, transparent); }
.classic-play { width: 100%; min-height: 49px; border: 0; border-radius: 9px; color: #0a0b0f; background: linear-gradient(180deg, color-mix(in srgb, var(--game-accent) 85%, white), var(--game-accent)); box-shadow: inset 0 1px rgba(255,255,255,.4), 0 8px 20px color-mix(in srgb, var(--game-accent) 18%, transparent); font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.classic-play:disabled, .classic-action:disabled { opacity: .45; cursor: wait; }
.classic-result { min-height: 38px; display: grid; place-items: center; padding: 8px; border: 1px solid rgba(255,255,255,.035); border-radius: 8px; color: #8c8f9b; background: rgba(255,255,255,.025); font-size: 11px; font-weight: 700; text-align: center; }
.classic-result.win { color: var(--lime); background: rgba(210,255,31,.07); }
.classic-result.loss { color: #ff8ba7; background: rgba(255,92,122,.07); }
.classic-segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.labeled-segments button { min-height: 45px; display: grid; place-content: center; gap: 2px; }
.labeled-segments b { font-size: 11px; }
.labeled-segments small { color: #737682; font-family: var(--font-body); font-size: 9px; }
.labeled-segments button.active small { color: color-mix(in srgb, var(--game-accent) 72%, white); }

/* Crash */
.crash-history { display: flex; gap: 5px; min-height: 25px; overflow-x: auto; scrollbar-width: none; }
.crash-history::-webkit-scrollbar { display: none; }
.crash-history span { flex: none; min-width: 48px; padding: 6px 8px; border: 1px solid #2c2c35; border-radius: 6px; color: #8b8e98; background: #14141a; font-family: var(--font-num); font-size: 10px; font-weight: 700; text-align: center; }
.crash-history span.good { color: var(--lime); border-color: rgba(210,255,31,.25); }
.crash-history span.mega { color: var(--gold); border-color: rgba(245,197,66,.3); }
.crash-stage { min-height: 270px; background: linear-gradient(180deg, #14131c, #0c0b12 67%, #0f1408); }
.crash-sky { position: absolute; inset: 0; background: radial-gradient(circle at 75% 14%, rgba(139,92,246,.28), transparent 32%), linear-gradient(175deg, transparent 58%, rgba(210,255,31,.04) 59%); }
.crash-grid { position: absolute; inset: 33% -35% -40%; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px); background-size: 31px 31px; transform: perspective(260px) rotateX(61deg) scale(1.15); transform-origin: bottom; }
.crash-chart { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.crash-chart-line { fill: none; stroke: var(--lime); stroke-width: .42; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(210,255,31,.5)); }
.crash-chart-area { fill: url(#crash-area-gradient); }
.crash-round-status { position: absolute; top: 13px; left: 13px; padding: 5px 7px; border: 1px solid rgba(210,255,31,.25); border-radius: 5px; color: var(--lime); background: rgba(8,8,11,.72); font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.crash-multiplier { position: absolute; inset: 46px 0 auto; text-align: center; font-family: var(--font-num); font-size: clamp(38px, 11vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -.02em; text-shadow: 0 0 30px rgba(210,255,31,.25); }
.crash-caption { position: absolute; top: 120px; left: 0; right: 0; padding: 0 18px; color: #8a8d97; font-size: 10px; letter-spacing: .035em; text-align: center; }
.crash-betting-progress { position: absolute; top: 146px; left: 25%; right: 25%; height: 3px; overflow: hidden; border-radius: 5px; background: #292b33; }
.crash-betting-progress i { display: block; width: 100%; height: 100%; background: var(--lime); transform-origin: left; box-shadow: 0 0 8px rgba(210,255,31,.5); }
.crash-rocket { position: absolute; left: 9%; bottom: 16%; width: 42px; height: 27px; display: block; will-change: transform; }
.crash-rocket i { position: absolute; top: 4px; left: 4px; width: 35px; height: 16px; background: linear-gradient(180deg, #f4ffb0, var(--lime)); clip-path: polygon(0 48%, 65% 34%, 81% 0, 91% 0, 87% 35%, 100% 45%, 100% 57%, 86% 63%, 70% 100%, 61% 100%, 66% 63%, 0 62%); filter: drop-shadow(0 0 7px rgba(210,255,31,.7)); }
.crash-rocket::before { content: ""; position: absolute; top: 11px; right: 35px; width: 26px; height: 4px; border-radius: 50%; background: linear-gradient(90deg, transparent, var(--violet-2)); filter: blur(2px); opacity: .9; }
.crash-stage.crashed { animation: classic-shake .28s linear 2; }
.crash-stage.crashed .crash-rocket i { background: #ff5f78; filter: drop-shadow(0 0 9px rgba(255,95,120,.8)); }
@keyframes classic-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.crash-stage-foot { position: absolute; left: 12px; right: 12px; bottom: 9px; display: flex; justify-content: space-between; color: #70737d; font-family: var(--font-display); font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.crash-stage-foot b { color: #d5d5dc; }
.crash-option-row { display: grid; grid-template-columns: minmax(105px, .62fr) 1fr; gap: 6px; align-items: end; }
.crash-option-row .classic-result { min-height: 40px; }
.crash-feed { overflow: hidden; border: 1px solid #26262e; border-radius: 10px; background: #101014; }
.crash-feed-head { display: flex; justify-content: space-between; padding: 8px 9px; border-bottom: 1px solid #26262e; color: #d5d5dc; font-size: 10px; }
.crash-feed-head span { color: var(--lime); font-family: var(--font-display); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.crash-players { max-height: 116px; overflow-y: auto; }
.crash-players > div { min-height: 31px; display: grid; grid-template-columns: 1fr auto 52px; align-items: center; gap: 8px; padding: 5px 9px; border-bottom: 1px solid rgba(255,255,255,.035); font-size: 10px; }
.crash-players > div span { color: var(--muted); }
.crash-players > div b { color: #dddfe5; font-family: var(--font-num); }
.crash-players > div em { color: #777a84; font-style: normal; text-align: right; font-family: var(--font-num); }
.crash-players > div em.won { color: var(--lime); }
.crash-players p { margin: 0; padding: 13px; color: #6e717c; font-size: 9px; text-align: center; }

/* Plinko */
.plinko-stage { min-height: 340px; padding: 0 7px 7px; background: linear-gradient(180deg, #17142a, #0e0d16); }
.plinko-topline { position: absolute; z-index: 2; top: 8px; left: 10px; right: 10px; display: flex; justify-content: space-between; color: #777987; font-family: var(--font-display); font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.plinko-topline b { color: var(--violet-2); }
.plinko-canvas { display: block; width: 100%; height: 306px; margin-top: 20px; }
.plinko-buckets { position: absolute; left: 50%; bottom: 7px; width: var(--plinko-board-width, calc(100% - 16px)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; }
.plinko-buckets span { min-width: 0; padding: 5px 0; border: 1px solid rgba(255,255,255,.035); border-radius: 3px; color: #a7a8b1; background: linear-gradient(180deg, #2c2a3a, #201f2b); font-family: var(--font-num); font-size: 5px; font-weight: 700; text-align: center; }
.plinko-buckets span.hot { color: #111218; background: linear-gradient(180deg, #e2ff5c, var(--lime-2)); box-shadow: 0 0 16px rgba(210,255,31,.66); transform: translateY(-3px); }
.plinko-stage.settled .plinko-buckets span.hot { animation: bucket-hit .35s ease-out 2 alternate; }
@keyframes bucket-hit { to { transform: translateY(-5px) scale(1.08); filter: brightness(1.25); } }

/* Dice */
.dice-stage { min-height: 235px; display: block; padding: 18px 16px; background: linear-gradient(180deg, #171a12, #100f14); }
.dice-readout { text-align: center; }
.dice-readout small { display: block; color: var(--muted); font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.dice-readout strong { display: block; margin-top: 4px; font-family: var(--font-num); font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.dice-scale { position: absolute; left: 7%; right: 7%; bottom: 76px; display: flex; justify-content: space-between; color: #686b74; font-family: var(--font-num); font-size: 9px; font-weight: 700; }
.dice-track { position: absolute; left: 7%; right: 7%; bottom: 50px; height: 9px; overflow: visible; border: 1px solid #3a3a44; border-radius: 7px; background: #24242c; }
.dice-win-zone { position: absolute; inset: 0 auto 0 0; width: var(--dice-threshold); border-radius: 6px; background: linear-gradient(90deg, var(--lime-deep), var(--lime)); box-shadow: 0 0 10px rgba(210,255,31,.3); }
.dice-stage.over .dice-win-zone { left: var(--dice-threshold); right: 0; width: auto; }
.dice-threshold-marker, .dice-roll-marker { position: absolute; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; }
.dice-threshold-marker { left: var(--dice-threshold); width: 15px; height: 15px; border: 3px solid #eef4fb; background: #8d8d97; }
.dice-threshold-marker span { position: absolute; left: 50%; bottom: 17px; padding: 3px 4px; border-radius: 4px; color: #b5b7c0; background: #26262e; font-family: var(--font-num); font-size: 7px; transform: translateX(-50%); }
.dice-roll-marker { left: var(--dice-roll, 50%); width: 13px; height: 13px; border: 2px solid #fff; background: var(--violet-2); box-shadow: 0 0 11px var(--violet-glow); opacity: 0; transition: none; }
.dice-roll-marker.visible { opacity: 1; }
.dice-roll-marker.won { background: var(--lime); box-shadow: 0 0 12px rgba(210,255,31,.8); }
.dice-roll-marker.lost { background: #ff6b8b; box-shadow: 0 0 12px rgba(255,95,134,.7); }
.dice-roll-marker span { position: absolute; left: 50%; top: 16px; padding: 3px 5px; border-radius: 4px; color: #0c0d10; background: #fff; font-family: var(--font-num); font-size: 7px; font-weight: 700; transform: translateX(-50%); }
.dice-zone-copy { position: absolute; left: 0; right: 0; bottom: 14px; color: #8c8f98; font-size: 10px; font-weight: 700; text-align: center; }
.dice-settings { align-items: end; }
.dice-settings input[type="range"] { padding: 0; accent-color: var(--lime); }
.dice-side { grid-template-columns: repeat(2, 1fr); }

/* Blackjack */
.blackjack-stage { min-height: 330px; padding: 10px; border-color: #294238; border-radius: 13px; background: radial-gradient(ellipse at 50% 42%, rgba(20,117,77,.5), rgba(6,51,36,.76) 57%, #091610 88%); }
.blackjack-zone { min-height: 128px; display: grid; align-content: center; justify-items: center; gap: 5px; }
.blackjack-zone > span { color: rgba(255,255,255,.65); font-family: var(--font-display); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.card-hand { min-height: 82px; display: flex; justify-content: center; padding-left: 26px; }
.playing-card { width: 58px; height: 80px; margin-left: -26px; display: grid; grid-template-rows: auto 1fr; padding: 6px; border-radius: 7px; color: #11131a; background: #f4f6fb; box-shadow: 0 7px 18px rgba(0,0,0,.28); font-family: var(--font-num); font-size: 13px; font-weight: 700; transform: rotate(var(--card-rotate, 0)); }
.playing-card.red { color: #dc3159; }
.playing-card.hidden-card { place-items: center; color: var(--lime); background: repeating-linear-gradient(45deg, #15151b, #15151b 5px, #22222a 5px, #22222a 10px); }
.playing-card b:last-child { align-self: end; justify-self: end; font-size: 21px; }
.hand-value { min-width: 28px; padding: 4px 7px; border-radius: 10px; color: #0b2118; background: #78f1bc; font-family: var(--font-num); font-size: 9px; font-weight: 700; }
.blackjack-table-line { height: 1px; margin: 2px 9%; background: rgba(255,255,255,.18); box-shadow: 0 0 18px rgba(66,232,165,.35); }
.blackjack-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.classic-action { min-height: 48px; border: 1px solid color-mix(in srgb, var(--game-accent) 30%, var(--line)); border-radius: 9px; color: var(--game-accent); background: linear-gradient(180deg, color-mix(in srgb, var(--game-accent) 10%, #22222a), #16161c); font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.blackjack-ready { min-height: 315px; display: grid; place-items: center; text-align: center; }
.blackjack-ready h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 18px; }
.blackjack-ready p { margin: 0; color: var(--muted); font-size: 12px; }
.blackjack-ready-mark { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 13px; border: 1px solid rgba(110,231,168,.25); border-radius: 18px; color: #6ee7a8; background: rgba(110,231,168,.08); font-size: 34px; transform: rotate(-5deg); }

@media (max-width: 600px) {
  .classic-content { padding: 6px 5px 27px; }
  .classic-game { width: 100%; max-width: none; gap: 7px; }
  .classic-game-head { padding: 0 3px; }
  .classic-stage { width: 100%; border-radius: 10px; }
  .crash-stage { height: clamp(300px, 43dvh, 390px); }
  .plinko-stage { height: clamp(370px, 51dvh, 455px); min-height: 0; }
  .plinko-canvas { height: calc(100% - 27px); }
  .dice-stage { height: clamp(305px, 48dvh, 420px); min-height: 0; }
  .blackjack-stage { height: clamp(400px, 60dvh, 520px); min-height: 0; display: grid; grid-template-rows: 1fr 1px 1fr; }
  .blackjack-zone { min-height: 0; }
  .blackjack-ready { height: clamp(400px, 60dvh, 520px); min-height: 0; }
}
@media (max-width: 600px) and (max-height: 650px) {
  .classic-header { min-height: calc(50px + var(--safe-top)); }
  .classic-content { height: calc(100dvh - 82px - var(--safe-top) - var(--safe-bottom)); }
  .crash-stage { height: 300px; }
  .plinko-stage { height: 370px; }
  .dice-stage { height: 285px; }
  .blackjack-stage, .blackjack-ready { height: 370px; }
}
@media (min-width: 601px) and (max-width: 759px) {
  .classic-content { padding-inline: 10px; }
  .crash-stage { height: 400px; }
  .plinko-stage { height: 460px; }
  .plinko-canvas { height: calc(100% - 27px); }
  .dice-stage { height: 360px; }
  .blackjack-stage, .blackjack-ready { height: 460px; }
}
@media (min-width: 760px) {
  .classic-content { padding: 10px 14px 28px; }
  .classic-game { max-width: none; min-height: calc(100dvh - 110px - var(--safe-top) - var(--safe-bottom)); grid-template-columns: minmax(0, 1fr) clamp(310px, 28vw, 390px); gap: 10px 12px; align-items: stretch; }
  .classic-game > .classic-game-head { grid-column: 1 / -1; grid-row: 1; }
  .classic-game[data-game="crash"] { grid-template-rows: auto auto auto minmax(120px, 1fr); }
  .classic-game[data-game="crash"] > .crash-history { grid-column: 1; grid-row: 2; }
  .classic-game[data-game="crash"] > .crash-stage { grid-column: 1; grid-row: 3 / 5; min-height: 0; height: auto; }
  .classic-game[data-game="crash"] > .crash-option-row { grid-column: 2; grid-row: 2; }
  .classic-game[data-game="crash"] > .classic-controls { grid-column: 2; grid-row: 3; }
  .classic-game[data-game="crash"] > .crash-feed { grid-column: 2; grid-row: 4; min-height: 0; }
  .classic-game[data-game="crash"] .crash-players { max-height: none; height: 100%; }
  .classic-game[data-game="plinko"], .classic-game[data-game="dice"], .classic-game[data-game="blackjack"] { grid-template-rows: auto auto auto auto minmax(0, 1fr); }
  .classic-game[data-game="plinko"] > .plinko-stage, .classic-game[data-game="dice"] > .dice-stage, .classic-game[data-game="blackjack"] > .classic-stage { grid-column: 1; grid-row: 2 / 6; min-height: 0; height: auto; }
  .classic-game[data-game="plinko"] > .classic-segments, .classic-game[data-game="dice"] > .classic-control-row, .classic-game[data-game="blackjack"] > .classic-result { grid-column: 2; grid-row: 2; align-self: start; }
  .classic-game[data-game="plinko"] > .classic-result, .classic-game[data-game="dice"] > .classic-segments, .classic-game[data-game="blackjack"] > .classic-controls, .classic-game[data-game="blackjack"] > .blackjack-actions { grid-column: 2; grid-row: 3; align-self: start; }
  .classic-game[data-game="plinko"] > .classic-controls, .classic-game[data-game="dice"] > .classic-result { grid-column: 2; grid-row: 4; align-self: start; }
  .classic-game[data-game="dice"] > .classic-controls { grid-column: 2; grid-row: 5; align-self: start; }
  .plinko-canvas { height: calc(100% - 27px); }
  .plinko-buckets span { font-size: 6px; }
  .dice-readout { margin-top: clamp(24px, 8dvh, 74px); }
  .dice-scale { bottom: 30%; }
  .dice-track { bottom: 25%; }
  .dice-zone-copy { bottom: 16%; }
  .blackjack-zone { min-height: 0; }
  .blackjack-stage { display: grid; grid-template-rows: 1fr 1px 1fr; }
}

@media (hover:hover) {
  .game-card:hover img { transform: scale(1.05); filter: brightness(1.08); }
  .btn:hover { filter: brightness(1.05); }
  .original-card:hover { border-color: rgba(210,255,31,.4); }
}
@media (min-width: 540px) {
  main { padding-left: 20px; padding-right: 20px; }
  .topbar { padding-left: 20px; padding-right: 20px; }
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 11px; }
  .game-card .game-title { font-size: 11px; }
  .live-row { grid-auto-columns: 168px; }
  .originals-row { grid-auto-columns: 148px; }
  .jackpot { min-height: 270px; }
  .wordmark-logo { height: 15px; }
  .wordmark-tag { height: 5px; }
}
@media (max-width: 380px) {
  .identity-copy small { display: none; }
  .wordmark-tag { display: none; }
  .wordmark-logo { height: 10px; }
  .balance-pill { font-size: 12px; padding-left: 7px; }
  .balance-pill small { display: none; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .achievement-grid { grid-template-columns: repeat(2, 1fr); }
  .classic-bets { grid-template-columns: repeat(3, 1fr); }
  .board-row, .rank-hero { grid-template-columns: 1fr; }
  .jackpot-play { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================================================================
   Lobby layout — the Cazaro information architecture in Royal Spin's
   visual language. One markup serves a 1440px browser and a 390px
   Telegram Mini App: below 1024px the rail is hidden and the bottom
   nav owns navigation; at and above it the rail takes over and the
   bottom nav goes away.
   ================================================================ */

:root {
  --rail-w: 256px;
  --gutter: 14px;
  --shell-max: 1440px;
  --sp-8: 8px; --sp-12: 12px; --sp-16: 16px; --sp-20: 20px; --sp-24: 24px; --sp-40: 40px;
  --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-xl: 20px;
}

/* ---------- Desktop rail ---------- */
.rail { display: none; }
.rail-brand { display: flex; align-items: center; gap: 10px; padding: 4px 2px 10px; }
.rail-brand img:first-child { width: 34px; height: auto; filter: drop-shadow(0 0 10px var(--lime-glow)); }
.rail-wordmark { height: 12px; width: auto; }
.rail-search { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 46px; margin-bottom: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 13px; text-align: left; }
.rail-search:hover { border-color: var(--line-2); color: var(--text); }
.rail-search .i8 { font-size: 15px; }
.rail-nav, .rail-group { display: grid; gap: 8px; }
.rail-group { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.rail-group .eyebrow { padding: 0 12px 10px; }
.rail-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 12px; border: 0; border-radius: var(--r-m); background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.rail-item > span { font-size: 18px; line-height: 1; flex: none; }
.rail-item b { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rail-item:hover { background: rgba(255,255,255,.04); color: var(--text); }
.rail-item.active { background: rgba(210,255,31,.09); color: var(--lime); box-shadow: inset 2px 0 0 var(--lime); }
.rail-item.sub b { font-family: var(--font-body); font-size: 12px; letter-spacing: 0; text-transform: none; }
.rail-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: center; }

/* ---------- Hero carousel ---------- */
.hero { position: relative; margin: 0 0 var(--sp-24); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(180deg, #101018, #0a0a0d); box-shadow: var(--e-2, 0 20px 50px rgba(0,0,0,.35)); }
.hero-track { display: flex; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.hero-slide { position: relative; flex: 0 0 100%; display: block; aspect-ratio: 16 / 9; border: 0; padding: 0; background: transparent; cursor: pointer; color: inherit; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide .hero-copy { position: absolute; left: 6%; right: 38%; top: 50%; transform: translateY(-50%); text-align: left; pointer-events: none; }
.hero-slide .hero-copy b { display: block; font-family: var(--font-display); font-size: clamp(15px, 3.4vw, 26px); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hero-slide .hero-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: clamp(10px, 1.7vw, 13px); }
/* House slide: shown when the operator has configured no banners. */
.hero.is-empty .hero-slide { background: radial-gradient(120% 90% at 20% 0%, rgba(139,92,246,.28), transparent 55%), radial-gradient(90% 70% at 95% 100%, rgba(210,255,31,.14), transparent 55%), linear-gradient(180deg, #101018, #0a0a0d); }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.hero-dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.35); transition: width .2s, background .2s; cursor: pointer; }
.hero-dots i.on { width: 20px; background: var(--lime); box-shadow: 0 0 10px var(--lime-glow); }
.hero-arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; place-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(8,8,11,.7); color: var(--text); cursor: pointer; backdrop-filter: blur(8px); }
.hero-arrow.prev { left: 12px; } .hero-arrow.next { right: 12px; }
.hero-arrow:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- Inline promo strip ---------- */
.promo-strip { position: relative; display: block; margin: var(--sp-24) 0 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.promo-strip img { display: block; width: 100%; height: 92px; object-fit: cover; }
.promo-strip-copy { position: absolute; left: 16px; bottom: 12px; }
.promo-strip-copy b { display: block; font-family: var(--font-display); font-size: 14px; letter-spacing: .05em; text-transform: uppercase; }
.promo-strip-copy small { color: var(--muted); font-size: 11px; }

/* ---------- Shelf ‹ › controls ---------- */
.shelf-nav { display: none; gap: 6px; }
.shelf-nav button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--text); cursor: pointer; }
.shelf-nav button:disabled { opacity: .4; cursor: default; }
.shelf-nav button:not(:disabled):hover { border-color: var(--lime); color: var(--lime); }

/* ---------- Bet table ---------- */
.tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 30px; padding: 0 11px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tab.active { background: var(--surface-3); color: var(--text); }
.bet-table { overflow: hidden; }
.bet-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.bet-row:last-child { border-bottom: 0; }
.bet-row .p-avatar { width: 32px; height: 32px; }
.bet-row > div { min-width: 0; }
.bet-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.bet-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.bet-row .bet-cell { display: none; color: var(--muted); font-family: var(--font-num); font-size: 12px; text-align: right; white-space: nowrap; }
.bet-row .bet-win { color: var(--lime); font-family: var(--font-num); font-size: 14px; font-weight: 700; text-align: right; white-space: nowrap; }
.bet-empty { padding: 26px 12px; color: var(--muted); font-size: 12px; text-align: center; }
.bet-head { display: none; }

/* ---------- Browser footer ---------- */
.site-footer { display: none; padding: var(--sp-24) var(--gutter) calc(var(--sp-24) + var(--safe-bottom)); border-top: 1px solid var(--line); }
.site-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer-logo { height: 46px; width: auto; }
.site-footer-legal { margin: 16px 0 0; color: var(--muted-2); font-size: 11px; line-height: 1.6; max-width: 760px; }
.site-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; color: var(--muted-2); font-size: 11px; }
.age-badge { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--font-num); font-size: 11px; font-weight: 700; }

/* ---------- Desktop: rail on, bottom nav off ---------- */
@media (min-width: 1024px) {
  .app { max-width: var(--shell-max); padding-bottom: 0; padding-left: var(--rail-w); }
  .rail { display: flex; flex-direction: column; gap: 4px; position: fixed; top: 0; bottom: 0; left: max(0px, calc(50% - var(--shell-max) / 2)); z-index: 60; width: var(--rail-w); padding: calc(16px + var(--safe-top)) 14px 16px; border-right: 1px solid var(--line); background: var(--bg-2); overflow-y: auto; }

  main { padding: 0 var(--sp-40); }
  .topbar { padding-left: var(--sp-40); padding-right: var(--sp-40); }
  .topbar .identity { display: none; }
  .wordmark { display: none; }
  .bottom-nav { display: none; }
  .site-footer { display: block; padding-left: var(--sp-40); padding-right: var(--sp-40); }
  /* Keep the 16:9 art uncropped horizontally and simply cap the height, rather
     than slicing it to a letterbox that cuts the headline out of the picture. */
  /* The wide 3:1 art is drawn for this frame, so it needs no cropping. */
  .hero-slide { aspect-ratio: 3 / 1; max-height: 380px; }
  .hero-arrow { display: grid; }
  .shelf-nav { display: flex; }
  .game-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .live-row { grid-auto-columns: 200px; }
  .originals-row { grid-auto-columns: 168px; }
  .bet-head { display: grid; }
  .bet-row, .bet-head { grid-template-columns: 34px minmax(0,1.4fr) minmax(0,.7fr) minmax(0,.6fr) minmax(0,.8fr); }
  .bet-row .bet-cell { display: block; }
  .promo-strip img { height: 120px; }
  .screen { padding-top: 20px; }
}

@media (min-width: 1440px) {
  .game-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

.payment-logo img, .pay-mark { display: block; border-radius: 11px; }
.pay-mark { width: 22px; height: 22px; border-radius: 6px; }

/* ============================ Table card games ============================ */
.cards-stage { min-height: 330px; padding: 10px; display: grid; align-content: center; gap: 4px; border: 1px solid #294238; border-radius: 13px; background: radial-gradient(ellipse at 50% 42%, rgba(20,117,78,.55), rgba(8,26,19,.95) 70%), #0a1711; }
.cards-ready { place-items: center; text-align: center; }
.cards-ready h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 18px; }
.cards-ready p { margin: 0; max-width: 28ch; color: var(--muted); font-size: 12px; line-height: 1.5; }
.cards-zone { min-height: 104px; display: grid; align-content: center; justify-items: center; gap: 5px; }
.cards-zone > span { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; color: rgba(255,255,255,.65); font-family: var(--font-display); font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cards-zone > span small { font-family: var(--font-body); font-size: 9px; font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,.55); }
.cards-board { min-height: 96px; }
.cards-board .card-hand { padding-left: 18px; }
.cards-board .playing-card { width: 48px; height: 66px; margin-left: -18px; }
.cards-board .playing-card b:last-child { font-size: 17px; }
.hand-label { display: inline-block; padding: 3px 8px; border-radius: 10px; color: #0b2118; background: #78f1bc; font-family: var(--font-num); font-size: 9px; font-weight: 700; font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.qual { font-style: normal; font-size: 8px; letter-spacing: .06em; }
.qual.ok { color: #78f1bc; }
.qual.no { color: #ffb8c8; }
.card-hand.is-selectable .playing-card { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.card-hand.is-selectable .playing-card:hover { transform: translateY(-4px); }
.playing-card { position: relative; }
.playing-card.held { transform: translateY(-10px); box-shadow: 0 0 0 2px var(--lime), 0 10px 24px rgba(0,0,0,.45); }
.playing-card.held:hover { transform: translateY(-12px); }
.hold-tag { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); padding: 2px 6px; border-radius: 5px; background: var(--lime); color: var(--lime-ink); font-family: var(--font-display); font-size: 7px; font-weight: 900; font-style: normal; letter-spacing: .12em; }
.cards-actions { position: sticky; bottom: 0; display: grid; gap: 6px; }
.cards-actions.cols-1 { grid-template-columns: 1fr; }
.cards-actions.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards-actions.cols-3 { grid-template-columns: repeat(3, 1fr); }
.classic-action.ghost { color: var(--text); border-color: var(--line-2); background: var(--surface); }
.cards-side { display: grid; gap: 6px; padding: 9px; border: 1px solid #26262e; border-radius: 12px; background: linear-gradient(180deg, #17171d, #101014); }
.cards-side > span { color: var(--muted); font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cards-side > span small { font-family: var(--font-body); font-weight: 500; letter-spacing: 0; text-transform: none; }
.cards-side .seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; }
.cards-side .seg button { min-height: 36px; padding: 0 6px; border: 1px solid #33333d; border-radius: 8px; color: #d8dae0; background: linear-gradient(180deg, #24242d, #17171d); font-family: var(--font-num); font-size: 11px; font-weight: 700; cursor: pointer; }
.cards-side .seg button.active { border-color: var(--lime); color: var(--lime); background: rgba(210,255,31,.08); }
.cards-breakdown { display: flex; flex-wrap: wrap; gap: 5px; }
.cards-breakdown span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-num); font-size: 10px; color: var(--muted); }
.cards-breakdown span b { color: var(--text); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.cards-breakdown span.up { border-color: rgba(210,255,31,.35); color: var(--lime); }
.cards-breakdown span.down { border-color: rgba(255,92,122,.3); color: #ff8ba7; }
.pg-split { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.pg-split > div { display: grid; justify-items: center; gap: 3px; }
.pg-split small { color: rgba(255,255,255,.6); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.pg-split .card-hand { min-height: 0; }
.pg-split .playing-card { width: 42px; height: 58px; margin-left: -16px; padding: 4px; }
.pg-split .playing-card b:last-child { font-size: 14px; }
.pg-split .card-hand { padding-left: 16px; }
.vp-paytable { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 6px; }
.vp-paytable span { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; background: rgba(0,0,0,.25); font-size: 9px; color: rgba(255,255,255,.7); }
.vp-paytable span b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-paytable span i { font-family: var(--font-num); font-style: normal; font-weight: 700; color: #fff; }
.vp-paytable span.lit { border-color: var(--lime); background: rgba(210,255,31,.12); color: var(--lime); }
.vp-paytable span.lit i { color: var(--lime); }
.vp-zone { min-height: 120px; }
.vp-zone .card-hand { padding-left: 0; gap: 6px; }
.vp-zone .playing-card { margin-left: 0; }

/* Originals covers: rendered art fills the tile, the SVG fallback is hidden once it loads. */
.original-card .oc-cover { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.original-card.has-cover .oc-cover { opacity: 1; }
.original-card.has-cover svg { display: none; }
.original-card.has-cover::after { content: ""; position: absolute; inset: 52% 0 0; z-index: 1; background: linear-gradient(transparent, rgba(7,7,9,.92)); }
.original-card.has-cover::before { display: none; }

@media (min-width: 1024px) {
  .cards-stage { height: clamp(420px, 62dvh, 560px); min-height: 0; }
  .cards-ready { height: clamp(420px, 62dvh, 560px); }
  .vp-paytable { grid-template-columns: repeat(9, 1fr); }
}
@media (min-width: 760px) {
  /* Card games share blackjack's two-column desk: table on the left, result,
     side bets, actions and bet controls stacked on the right. */
  .classic-game[data-game="baccarat"], .classic-game[data-game="casinowar"], .classic-game[data-game="threecard"], .classic-game[data-game="caribbean"], .classic-game[data-game="paigow"], .classic-game[data-game="ultimate"], .classic-game[data-game="videopoker"] { grid-template-rows: auto auto auto auto auto minmax(0, 1fr); }
  .classic-game[data-game="baccarat"] > .classic-stage, .classic-game[data-game="casinowar"] > .classic-stage, .classic-game[data-game="threecard"] > .classic-stage, .classic-game[data-game="caribbean"] > .classic-stage, .classic-game[data-game="paigow"] > .classic-stage, .classic-game[data-game="ultimate"] > .classic-stage, .classic-game[data-game="videopoker"] > .classic-stage { grid-column: 1; grid-row: 2 / 7; min-height: 0; height: auto; }
  .classic-game[data-game="baccarat"] > :not(.classic-stage):not(.classic-game-head), .classic-game[data-game="casinowar"] > :not(.classic-stage):not(.classic-game-head), .classic-game[data-game="threecard"] > :not(.classic-stage):not(.classic-game-head), .classic-game[data-game="caribbean"] > :not(.classic-stage):not(.classic-game-head), .classic-game[data-game="paigow"] > :not(.classic-stage):not(.classic-game-head), .classic-game[data-game="ultimate"] > :not(.classic-stage):not(.classic-game-head), .classic-game[data-game="videopoker"] > :not(.classic-stage):not(.classic-game-head) { grid-column: 2; align-self: start; }
  .cards-stage { display: grid; grid-template-rows: auto; align-content: center; }
  .cards-actions { position: static; }
}

/* Footer: payment strip, info links, rights line. */
.site-footer-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 20px; }
.site-footer-col > b { display: block; margin-bottom: 10px; font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pay-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-family: var(--font-num); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.pay-chip img { width: 20px; height: 20px; border-radius: 50%; display: block; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer-links a { color: var(--muted-2); font-size: 12px; text-decoration: none; }
.site-footer-links a:hover { color: var(--text); }
.site-footer-badges { display: inline-flex; align-items: center; gap: 8px; }
.secure-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.secure-badge .i8 { font-size: 10px; }
@media (min-width: 760px) { .site-footer-grid { grid-template-columns: 1.2fr 1fr; gap: 32px; } }
.toast.has-action { display: inline-flex; align-items: center; gap: 12px; padding-right: 8px; }
.toast-action { padding: 6px 12px; border: 0; border-radius: 8px; background: var(--lime); color: var(--lime-ink); font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: .06em; cursor: pointer; white-space: nowrap; }
