/* axom-ui.css */
/* ============================================================
   AXOM UI — "The Private Ledger" design system
   Canonical source: shared_ui/axom-ui.css
   NEVER edit the per-webapp copies — run sync_shared_ui.py.

   Palette is harmonized with axom_theme.py (the Telegram card
   system): graphite surfaces + brushed champagne, semantic
   win/loss #49D299/#EF6670. One brand across images and web.
   ============================================================ */

/* ---------- Fonts are loaded by each page with:
   https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Instrument+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap
------------------------------------------------------------- */

:root {
  /* surfaces (graphite, matches axom_theme.py BG/CARD/PANEL/PANEL_HI) */
  --ax-bg0: #06090D;
  --ax-bg1: #0D1117;
  --ax-bg2: #161B23;
  --ax-bg3: #1F252F;
  --ax-line: rgba(166, 174, 190, .12);
  --ax-line-hi: rgba(166, 174, 190, .22);
  --ax-rail: rgba(205, 170, 101, .38);      /* champagne rail (branded frames) */
  --ax-rail-dim: rgba(136, 111, 66, .34);
  --ax-top-light: inset 0 1px 0 rgba(255, 255, 255, .04);

  /* ink (TEXT/MUTED/FAINT) */
  --ax-ink: #F4F6FA;
  --ax-ink-2: #A6AEBE;
  --ax-ink-3: #747E91;

  /* brand — brushed champagne (ACCENT/ACCENT_TEXT/ACCENT_DIM) */
  --ax-champ-hi: #EFD399;
  --ax-champ: #CDAA65;
  --ax-champ-dk: #77623A;
  --ax-gold: #EBBE5B;                        /* jackpot / VIP / reward moments */
  --ax-jade: #2EE6C8;                        /* Axom peak gem / live game motion */
  --ax-jade-dk: #12A596;
  --ax-on-gold: #251B06;
  --ax-cta: linear-gradient(135deg, #F0D68A, #CDAA65);

  /* semantics (GOOD/BAD are hue-invariant in axom_theme.py — keep) */
  --ax-win: #49D299;
  --ax-loss: #EF6670;
  --ax-warn: #EBA459;
  --ax-err: #EF6670;
  --ax-info: #6C98EB;
  --ax-demo: #59BFEB;

  /* type */
  --ax-font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ax-display: "Archivo", "Instrument Sans", system-ui, sans-serif;
  --ax-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* shape */
  --ax-r-chip: 6px;
  --ax-r-ctl: 10px;
  --ax-r-card: 14px;
  --ax-r-modal: 20px;

  /* space */
  --ax-gutter: 16px;

  /* motion */
  --ax-fast: 160ms cubic-bezier(.2, .7, .3, 1);
  --ax-med: 220ms cubic-bezier(.2, .7, .3, 1);

  /* z */
  --ax-z-header: 40;
  --ax-z-sheet: 70;
  --ax-z-modal: 80;
  --ax-z-toast: 90;

  /* safe areas (TG WebApp + notches) */
  --ax-safe-t: env(safe-area-inset-top, 0px);
  --ax-safe-b: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 900px) { :root { --ax-gutter: 24px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ax-body {
  margin: 0;
  background: var(--ax-bg0);
  color: var(--ax-ink);
  font-family: var(--ax-font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  min-height: 100dvh;
}
/* signature atmosphere from the card system: one asymmetric champagne
   glow + 45° hairlines + horizon vignette. No blur, no animation. */
body.ax-body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(90% 60% at 72% -18%, rgba(205, 170, 101, .05), transparent 55%),
    repeating-linear-gradient(45deg, rgba(166, 174, 190, .014) 0 1px, transparent 1px 56px),
    radial-gradient(140% 100% at 50% 112%, rgba(0, 0, 0, .5), transparent 60%);
}
/* Do not force positioning here: app children include fixed headers, drawers
   and game canvases whose positioning is part of their functional layout. */
body.ax-body > * { z-index: 1; }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ax-champ); text-decoration: none; }
a:hover { color: var(--ax-champ-hi); }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--ax-champ);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: rgba(205, 170, 101, .3); }

* { scrollbar-width: thin; scrollbar-color: #2A3140 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #2A3140; border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- typography ---------- */
.ax-display { font-family: var(--ax-display); font-weight: 800; letter-spacing: -.01em; }
.ax-h1 { font-family: var(--ax-display); font-weight: 800; font-size: 26px; line-height: 1.15; margin: 0; }
.ax-h2 { font-family: var(--ax-display); font-weight: 700; font-size: 19px; line-height: 1.2; margin: 0; }
.ax-h3 { font-family: var(--ax-display); font-weight: 700; font-size: 15px; line-height: 1.25; margin: 0; }
.ax-label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ax-ink-3);
}
.ax-num { font-variant-numeric: tabular-nums; }
.ax-mono { font-family: var(--ax-mono); font-size: .86em; }
.ax-muted { color: var(--ax-ink-3); }
.ax-sub { color: var(--ax-ink-2); }
.ax-win-text { color: var(--ax-win); }
.ax-loss-text { color: var(--ax-loss); }
.ax-gold-text { color: var(--ax-champ-hi); }

/* money values always tabular */
.ax-money { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------- buttons ---------- */
.ax-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: var(--ax-r-ctl);
  font-weight: 700; font-size: 14px; line-height: 1;
  border: 1px solid transparent;
  transition: transform var(--ax-fast), background var(--ax-fast), filter var(--ax-fast),
              border-color var(--ax-fast), color var(--ax-fast), opacity var(--ax-fast);
  user-select: none; white-space: nowrap;
}
.ax-btn:active { transform: translateY(1px) scale(.99); }
.ax-btn:disabled, .ax-btn[aria-disabled="true"] {
  opacity: .45; pointer-events: none;
}

.ax-btn--primary {
  background: var(--ax-cta);
  color: var(--ax-on-gold);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 6px 18px rgba(205, 170, 101, .16);
}
.ax-btn--primary:hover { filter: brightness(1.06); }

.ax-btn--secondary {
  background: var(--ax-bg3);
  border-color: var(--ax-line-hi);
  color: var(--ax-ink);
  box-shadow: var(--ax-top-light);
}
.ax-btn--secondary:hover { border-color: rgba(166, 174, 190, .36); }

.ax-btn--ghost { background: transparent; color: var(--ax-ink-2); }
.ax-btn--ghost:hover { background: var(--ax-bg2); color: var(--ax-ink); }

.ax-btn--danger {
  background: rgba(239, 102, 112, .12);
  border-color: rgba(239, 102, 112, .35);
  color: #F79AA2;
}
.ax-btn--danger:hover { background: rgba(239, 102, 112, .2); }

.ax-btn--win {
  background: linear-gradient(135deg, #5FDCA8, #34B380);
  color: #05261A;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset;
}

.ax-btn--lg { height: 52px; font-size: 16px; border-radius: 12px; padding: 0 24px; }
.ax-btn--sm { height: 34px; font-size: 12.5px; padding: 0 12px; border-radius: 8px; }
.ax-btn--block { width: 100%; }
.ax-btn--icon { width: 44px; padding: 0; flex: none; }
.ax-btn--icon.ax-btn--sm { width: 34px; }

/* the one primary game action (BET / CASH OUT) */
.ax-betbtn {
  height: 54px; width: 100%;
  border-radius: 12px;
  font-family: var(--ax-display); font-weight: 800; font-size: 17px; letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- chips & badges ---------- */
.ax-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px;
  border-radius: 999px;
  background: var(--ax-bg2); border: 1px solid var(--ax-line);
  font-size: 12px; font-weight: 600; color: var(--ax-ink-2);
  transition: border-color var(--ax-fast), color var(--ax-fast), background var(--ax-fast);
}
.ax-chip:hover { border-color: var(--ax-line-hi); color: var(--ax-ink); }
.ax-chip[aria-pressed="true"], .ax-chip.is-on {
  background: rgba(205, 170, 101, .13); border-color: rgba(205, 170, 101, .45); color: var(--ax-champ-hi);
}

.ax-badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 7px;
  border-radius: var(--ax-r-chip);
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  line-height: 1;
}
.ax-badge--demo { background: rgba(89, 191, 235, .15); color: var(--ax-demo); border: 1px solid rgba(89, 191, 235, .4); }
.ax-badge--real { background: rgba(205, 170, 101, .14); color: var(--ax-champ-hi); border: 1px solid rgba(205, 170, 101, .38); }
.ax-badge--new { background: rgba(108, 152, 235, .16); color: var(--ax-info); }
.ax-badge--hot { background: rgba(239, 102, 112, .16); color: #F58F98; }
.ax-badge--maint { background: rgba(235, 164, 89, .15); color: var(--ax-warn); }
.ax-badge--win { background: rgba(73, 210, 153, .14); color: var(--ax-win); }
.ax-badge--loss { background: rgba(239, 102, 112, .14); color: var(--ax-loss); }
.ax-badge--neutral { background: var(--ax-bg3); color: var(--ax-ink-2); }

/* ---------- cards / panels ---------- */
.ax-card {
  background: var(--ax-bg1);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-r-card);
  box-shadow: var(--ax-top-light);
}
.ax-card--raised { background: var(--ax-bg2); }
.ax-card--pad { padding: 16px; }
.ax-hairline { border: 0; border-top: 1px solid var(--ax-line); margin: 0; }

/* branded frame: champagne corner brackets (top-left + bottom-right),
   the signature motif from the Telegram card system */
.ax-corners { position: relative; }
.ax-corners::before, .ax-corners::after {
  content: ""; position: absolute;
  width: 42px; height: 42px;
  pointer-events: none;
}
.ax-corners::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--ax-rail); border-left: 2px solid var(--ax-rail);
  border-top-left-radius: var(--ax-r-card);
}
.ax-corners::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--ax-rail); border-right: 2px solid var(--ax-rail);
  border-bottom-right-radius: var(--ax-r-card);
}

/* metric tile: accent top-bar + uppercase label + big tabular value
   (the PIL stat-tile grammar, ported) */
.ax-metric {
  position: relative;
  padding: 14px 14px 12px;
  background: var(--ax-bg2);
  border: 1px solid var(--ax-line);
  border-radius: 12px;
  box-shadow: var(--ax-top-light);
}
.ax-metric::before {
  content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--ax-metric-accent, var(--ax-champ));
  opacity: .85;
}
.ax-metric .ml { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ax-ink-3); }
.ax-metric .mv {
  margin-top: 4px;
  font-family: var(--ax-display); font-weight: 800; font-size: 20px;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.ax-metric .ms { margin-top: 2px; font-size: 11.5px; color: var(--ax-ink-3); }

.ax-section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 12px;
}
.ax-section-head .ax-h2 { display: flex; align-items: center; gap: 8px; }
.ax-section-head .ax-h2::before {
  content: ""; width: 3px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--ax-champ), var(--ax-champ-dk));
}

/* ---------- forms ---------- */
.ax-field { display: grid; gap: 6px; }
.ax-field > label { font-size: 12px; font-weight: 600; color: var(--ax-ink-2); }
.ax-input, .ax-select, .ax-textarea {
  width: 100%; height: 44px; padding: 0 12px;
  background: var(--ax-bg0);
  border: 1px solid var(--ax-line-hi);
  border-radius: var(--ax-r-ctl);
  color: var(--ax-ink); font-weight: 600;
  transition: border-color var(--ax-fast), box-shadow var(--ax-fast);
}
.ax-textarea { height: auto; padding: 10px 12px; resize: vertical; }
.ax-input::placeholder { color: var(--ax-ink-3); font-weight: 500; }
.ax-input:focus, .ax-select:focus, .ax-textarea:focus {
  outline: none; border-color: rgba(205, 170, 101, .55);
  box-shadow: 0 0 0 3px rgba(205, 170, 101, .12);
}
.ax-input[aria-invalid="true"] { border-color: rgba(239, 102, 112, .6); }
.ax-input-hint { font-size: 12px; color: var(--ax-ink-3); }
.ax-input-err { font-size: 12px; color: var(--ax-loss); }

/* amount group: input + ½ 2× MAX */
.ax-amount {
  display: flex; align-items: stretch;
  background: var(--ax-bg0);
  border: 1px solid var(--ax-line-hi);
  border-radius: var(--ax-r-ctl);
  overflow: hidden;
  transition: border-color var(--ax-fast), box-shadow var(--ax-fast);
}
.ax-amount:focus-within {
  border-color: rgba(205, 170, 101, .55);
  box-shadow: 0 0 0 3px rgba(205, 170, 101, .12);
}
.ax-amount .ax-amount-cur {
  display: flex; align-items: center; padding: 0 0 0 12px;
  color: var(--ax-champ); font-weight: 700; font-size: 14px;
}
.ax-amount input {
  flex: 1; min-width: 0; height: 44px; padding: 0 10px;
  background: transparent; border: 0; outline: none;
  color: var(--ax-ink); font-weight: 700; font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.ax-amount .ax-amount-btn {
  flex: none; padding: 0 11px;
  border-left: 1px solid var(--ax-line);
  background: var(--ax-bg2);
  color: var(--ax-ink-2); font-weight: 700; font-size: 12px;
  transition: background var(--ax-fast), color var(--ax-fast);
}
.ax-amount .ax-amount-btn:hover { background: var(--ax-bg3); color: var(--ax-ink); }

/* segmented control */
.ax-seg {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--ax-bg0);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-r-ctl);
}
.ax-seg > button {
  flex: 1; height: 34px; padding: 0 14px;
  border-radius: 8px;
  font-weight: 700; font-size: 13px; color: var(--ax-ink-3);
  transition: background var(--ax-fast), color var(--ax-fast);
  white-space: nowrap;
}
.ax-seg > button:hover { color: var(--ax-ink-2); }
.ax-seg > button.is-on, .ax-seg > button[aria-selected="true"] {
  background: var(--ax-bg3); color: var(--ax-ink);
  box-shadow: var(--ax-top-light), 0 1px 4px rgba(0, 0, 0, .4);
}

/* toggle */
.ax-toggle { position: relative; width: 44px; height: 26px; flex: none; }
.ax-toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ax-toggle .tk {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--ax-bg3); border: 1px solid var(--ax-line-hi);
  transition: background var(--ax-fast), border-color var(--ax-fast);
  pointer-events: none;
}
.ax-toggle .tk::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--ax-ink-2);
  transition: transform var(--ax-fast), background var(--ax-fast);
}
.ax-toggle input:checked + .tk { background: rgba(205, 170, 101, .25); border-color: rgba(205, 170, 101, .5); }
.ax-toggle input:checked + .tk::after { transform: translateX(18px); background: var(--ax-champ); }
.ax-toggle input:focus-visible + .tk { outline: 2px solid var(--ax-champ); outline-offset: 2px; }

/* ---------- tabs ---------- */
.ax-tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--ax-line);
  overflow-x: auto; scrollbar-width: none;
}
.ax-tabs::-webkit-scrollbar { display: none; }
.ax-tabs > button {
  position: relative; height: 40px; padding: 0 14px;
  font-weight: 700; font-size: 13.5px; color: var(--ax-ink-3);
  white-space: nowrap;
  transition: color var(--ax-fast);
}
.ax-tabs > button:hover { color: var(--ax-ink-2); }
.ax-tabs > button.is-on, .ax-tabs > button[aria-selected="true"] { color: var(--ax-ink); }
.ax-tabs > button.is-on::after, .ax-tabs > button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  border-radius: 2px; background: var(--ax-champ);
}

/* ---------- modal / bottom sheet ---------- */
.ax-scrim {
  position: fixed; inset: 0; z-index: var(--ax-z-modal);
  background: rgba(3, 5, 8, .74);
  display: flex; align-items: center; justify-content: center;
  padding: var(--ax-gutter);
  opacity: 0; pointer-events: none;
  transition: opacity var(--ax-med);
}
.ax-scrim.is-open { opacity: 1; pointer-events: auto; }
.ax-modal {
  width: min(440px, 100%);
  max-height: min(84vh, 720px);
  display: flex; flex-direction: column;
  background: var(--ax-bg1);
  border: 1px solid var(--ax-line-hi);
  border-radius: var(--ax-r-modal);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  transform: translateY(10px) scale(.98);
  transition: transform var(--ax-med);
}
.ax-scrim.is-open .ax-modal { transform: none; }
.ax-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--ax-line);
  flex: none;
}
.ax-modal-body { padding: 16px 18px; overflow-y: auto; overscroll-behavior: contain; }
.ax-modal-foot {
  display: flex; gap: 10px; padding: 12px 18px 16px;
  border-top: 1px solid var(--ax-line); flex: none;
}
.ax-close {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 8px; background: var(--ax-bg2); border: 1px solid var(--ax-line);
  color: var(--ax-ink-2); font-size: 16px; line-height: 1;
}
.ax-close:hover { color: var(--ax-ink); border-color: var(--ax-line-hi); }

/* bottom sheet on small screens */
@media (max-width: 640px) {
  .ax-scrim--sheet { align-items: flex-end; padding: 0; }
  .ax-scrim--sheet .ax-modal {
    width: 100%; max-height: 88dvh;
    border-radius: var(--ax-r-modal) var(--ax-r-modal) 0 0;
    border-bottom: 0;
    padding-bottom: var(--ax-safe-b);
    transform: translateY(24px);
  }
  .ax-scrim--sheet.is-open .ax-modal { transform: none; }
  .ax-scrim--sheet .ax-modal::before {
    content: ""; display: block; flex: none; width: 40px; height: 4px; border-radius: 2px;
    background: var(--ax-line-hi); margin: 10px auto 0;
  }
}

/* ---------- toasts ---------- */
.ax-toasts {
  position: fixed; z-index: var(--ax-z-toast);
  left: 50%; transform: translateX(-50%);
  bottom: calc(16px + var(--ax-safe-b));
  display: flex; flex-direction: column; gap: 8px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.ax-toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--ax-bg2);
  border: 1px solid var(--ax-line-hi);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  font-weight: 600; font-size: 13.5px;
  pointer-events: auto;
  animation: ax-toast-in var(--ax-med) both;
}
.ax-toast--win { border-color: rgba(73, 210, 153, .4); }
.ax-toast--err { border-color: rgba(239, 102, 112, .45); }
.ax-toast--warn { border-color: rgba(235, 164, 89, .45); }
.ax-toast .tico { flex: none; font-size: 15px; }
.ax-toast--win .tico { color: var(--ax-win); }
.ax-toast--err .tico { color: var(--ax-loss); }
.ax-toast--warn .tico { color: var(--ax-warn); }
.ax-toast.is-out { animation: ax-toast-out var(--ax-fast) both; }
@keyframes ax-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ax-toast-out { to { opacity: 0; transform: translateY(6px); } }

/* ---------- skeleton / spinner ---------- */
.ax-skel {
  position: relative; overflow: hidden;
  background: var(--ax-bg2); border-radius: 8px;
}
.ax-skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent);
  transform: translateX(-100%);
  animation: ax-skel 1.4s infinite;
}
@keyframes ax-skel { to { transform: translateX(100%); } }

.ax-spin {
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  border: 2px solid var(--ax-line-hi);
  border-top-color: var(--ax-champ);
  animation: ax-rot .8s linear infinite;
}
@keyframes ax-rot { to { transform: rotate(360deg); } }

/* ---------- ledger rows (history / transactions) ---------- */
.ax-ledger { display: flex; flex-direction: column; }
.ax-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ax-line);
  transition: background var(--ax-fast);
}
.ax-row:last-child { border-bottom: 0; }
.ax-row:hover { background: rgba(255, 255, 255, .015); }
.ax-row .rico {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px; background: var(--ax-bg3);
  font-size: 14px;
}
.ax-row .rmain { flex: 1; min-width: 0; }
.ax-row .rtitle { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-row .rsub { font-size: 12px; color: var(--ax-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-row .rval { text-align: right; flex: none; }
.ax-row .ramt { font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ax-row .ramt.up { color: var(--ax-win); }
.ax-row .ramt.down { color: var(--ax-loss); }

/* ---------- state screens ---------- */
.ax-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center;
  padding: 48px 24px;
  color: var(--ax-ink-2);
}
.ax-state .sico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--ax-bg2); border: 1px solid var(--ax-line);
  font-size: 24px;
}
.ax-state .stitle { font-family: var(--ax-display); font-weight: 700; font-size: 17px; color: var(--ax-ink); }
.ax-state .sdesc { font-size: 13.5px; color: var(--ax-ink-3); max-width: 340px; }

/* connection banner */
.ax-conn {
  position: fixed; top: calc(8px + var(--ax-safe-t)); left: 50%;
  transform: translate(-50%, -160%);
  z-index: var(--ax-z-toast);
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ax-bg2); border: 1px solid rgba(235, 164, 89, .5);
  color: var(--ax-warn); font-weight: 700; font-size: 12.5px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .5);
  transition: transform var(--ax-med);
}
.ax-conn.is-on { transform: translate(-50%, 0); }
.ax-conn.is-ok { border-color: rgba(73, 210, 153, .5); color: var(--ax-win); }

/* ---------- shared game shell ---------- */
.ax-shell {
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
}
.ax-header {
  position: sticky; top: 0; z-index: var(--ax-z-header);
  display: flex; align-items: center; gap: 10px;
  padding: calc(8px + var(--ax-safe-t)) var(--ax-gutter) 8px;
  background: rgba(6, 9, 13, .94);
  border-bottom: 1px solid var(--ax-line);
  min-height: 56px;
}
@supports (backdrop-filter: blur(1px)) {
  /* single, cheap blur allowed on the sticky header only */
  .ax-header { background: rgba(6, 9, 13, .82); backdrop-filter: blur(10px); }
}
.ax-header .hspacer { flex: 1; }
.ax-back {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 10px; flex: none;
  border-radius: 8px;
  background: var(--ax-bg2); border: 1px solid var(--ax-line);
  color: var(--ax-ink-2); font-weight: 700; font-size: 12.5px;
}
.ax-back:hover { color: var(--ax-ink); border-color: var(--ax-line-hi); }
.ax-brandline { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.ax-brandline .wm { height: 26px; width: auto; }
.ax-gamename {
  padding-left: 9px; border-left: 1px solid rgba(205, 170, 101, .4);
  color: var(--ax-ink-3); font-size: 10px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
}
.ax-balance {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 6px 0 12px; flex: none;
  border-radius: 999px;
  background: var(--ax-bg2); border: 1px solid var(--ax-line-hi);
  box-shadow: var(--ax-top-light);
}
.ax-balance .bval { font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ax-balance .bcoin {
  width: 24px; height: 24px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ax-cta); color: var(--ax-on-gold);
  font-size: 11px; font-weight: 800;
}
.ax-balance.is-demo { border-color: rgba(89, 191, 235, .45); }
.ax-balance.is-demo .bcoin { background: linear-gradient(135deg, #8AD4E4, #3E93A8); color: #06222B; }

.ax-main { flex: 1; width: 100%; }
.ax-footer {
  padding: 14px var(--ax-gutter) calc(14px + var(--ax-safe-b));
  border-top: 1px solid var(--ax-line);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--ax-ink-3); font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.ax-footer .suits { color: var(--ax-champ-dk); letter-spacing: .05em; }

/* ---------- result banner ---------- */
.ax-result {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--ax-r-card);
  border: 1px solid var(--ax-line-hi);
  background: var(--ax-bg2);
  animation: ax-result-in var(--ax-med) both;
}
@keyframes ax-result-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ax-result .rlabel { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ax-result .rbig { font-family: var(--ax-display); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.ax-result--win { border-color: rgba(73, 210, 153, .45); }
.ax-result--win .rlabel, .ax-result--win .rbig { color: var(--ax-win); }
.ax-result--loss { border-color: rgba(239, 102, 112, .4); }
.ax-result--loss .rlabel { color: var(--ax-loss); }
.ax-result--push .rlabel { color: var(--ax-info); }
.ax-result--win.ax-result--shimmer { position: relative; overflow: hidden; }
.ax-result--win.ax-result--shimmer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(239, 211, 153, .13) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: ax-shimmer .9s .15s ease-out both;
}
@keyframes ax-shimmer { to { transform: translateX(120%); } }

/* ---------- fairness panel ---------- */
.ax-fair-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--ax-win);
}
.ax-fair-kv { display: grid; gap: 8px; }
.ax-fair-kv .kv {
  display: grid; gap: 3px;
  padding: 10px 12px;
  background: var(--ax-bg0); border: 1px solid var(--ax-line);
  border-radius: 10px;
}
.ax-fair-kv .k { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ax-ink-3); }
.ax-fair-kv .v {
  font-family: var(--ax-mono); font-size: 11.5px; color: var(--ax-ink-2);
  word-break: break-all; line-height: 1.5;
  display: flex; align-items: flex-start; gap: 8px;
}
.ax-copy {
  flex: none; margin-left: auto;
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 6px; background: var(--ax-bg2); border: 1px solid var(--ax-line);
  color: var(--ax-ink-3); font-size: 12px;
}
.ax-copy:hover { color: var(--ax-champ); border-color: var(--ax-line-hi); }
.ax-copy.is-done { color: var(--ax-win); }

/* ---------- cinematic startup transitions ---------- */
.ax-startup {
  position: fixed !important;
  inset: 0;
  z-index: 10000 !important;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #05080c;
  color: var(--ax-ink);
  opacity: 1;
  transition: opacity 420ms ease, filter 420ms ease;
  isolation: isolate;
}
.ax-startup::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(48% 36% at 50% 46%, rgba(205, 170, 101, .1), transparent 75%),
    linear-gradient(145deg, #080d13, #04070a 58%, #07100e);
}
.ax-startup::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(205, 170, 101, .12);
  clip-path: polygon(0 0, 82px 0, 82px 1px, 1px 1px, 1px 82px, 0 82px, 0 0, 100% 0, 100% 82px, calc(100% - 1px) 82px, calc(100% - 1px) 1px, calc(100% - 82px) 1px, calc(100% - 82px) 0, 100% 0, 100% 100%, calc(100% - 82px) 100%, calc(100% - 82px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(100% - 82px), 100% calc(100% - 82px), 100% 100%, 0 100%, 0 calc(100% - 82px), 1px calc(100% - 82px), 1px calc(100% - 1px), 82px calc(100% - 1px), 82px 100%, 0 100%);
  opacity: 0;
  animation: ax-frame-in .8s .15s ease forwards;
}
.ax-startup.is-leaving { opacity: 0; filter: blur(5px); pointer-events: none; }
.ax-startup-atmosphere {
  position: absolute;
  inset: -20%;
  z-index: -1;
  opacity: .4;
  background:
    repeating-linear-gradient(115deg, transparent 0 54px, rgba(255, 255, 255, .018) 55px, transparent 56px 112px);
  animation: ax-atmosphere 8s linear infinite;
}
.ax-startup-inner {
  position: relative;
  width: min(520px, 88vw);
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  perspective: 800px;
}
.ax-startup-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ax-champ);
  font: 800 10px/1 var(--ax-font);
  letter-spacing: .28em;
  padding-left: .28em;
  opacity: 0;
  animation: ax-rise .45s .12s ease forwards;
}
.ax-startup-kicker i { width: 28px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.ax-startup-kicker i:last-child { transform: scaleX(-1); }
.ax-startup-label {
  min-height: 14px;
  color: var(--ax-ink-3);
  font: 800 10px/1 var(--ax-font);
  letter-spacing: .24em;
  padding-left: .24em;
  text-transform: uppercase;
  opacity: 0;
  animation: ax-rise .45s 1.25s ease forwards;
}
.ax-startup-progress {
  width: min(230px, 54vw);
  height: 1px;
  overflow: hidden;
  background: rgba(205, 170, 101, .16);
}
.ax-startup-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--ax-champ), var(--ax-jade), transparent);
  transform: translateX(-100%);
  animation: ax-progress 2.1s .12s cubic-bezier(.2, .7, .2, 1) forwards;
}
.ax-write-mark { width: min(520px, 88vw); overflow: visible; }
.ax-write-line {
  fill: transparent;
  stroke: url(#axWriteGold);
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-dasharray: 330;
  stroke-dashoffset: 330;
  animation: ax-path-write .9s .12s ease-out forwards, ax-peak-fill .5s .92s ease forwards;
}
.ax-write-line-gem {
  stroke: url(#axWriteJade);
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: ax-path-write .5s .76s ease-out forwards, ax-gem-fill .45s 1.18s ease forwards;
}
.ax-write-word {
  fill: transparent;
  stroke: #efd399;
  stroke-width: 1.45;
  stroke-dasharray: 1100;
  stroke-dashoffset: 1100;
  paint-order: stroke fill;
  font: 800 92px/1 var(--ax-display);
  letter-spacing: 15px;
  animation: ax-word-write 1.25s .25s cubic-bezier(.35, .02, .15, 1) forwards, ax-word-fill .52s 1.35s ease forwards;
}
.ax-write-rule {
  fill: none;
  stroke: rgba(205, 170, 101, .6);
  stroke-width: 1;
  stroke-dasharray: 324;
  stroke-dashoffset: 324;
  animation: ax-path-write .65s 1.25s ease forwards;
}
.ax-write-casino {
  fill: #dbe1e9;
  font: 700 15px/1 var(--ax-font);
  letter-spacing: 13px;
  opacity: 0;
  animation: ax-rise .55s 1.55s ease forwards;
}
.ax-startup[data-variant="lobby"] .ax-startup-label { animation-delay: 1.85s; color: var(--ax-champ); }
.ax-startup[data-variant="lobby"] .ax-startup-progress { margin-top: 2px; }
.ax-startup[data-variant="lobby"] .ax-startup-progress i { animation-duration: 2.7s; }
.ax-startup-scene {
  position: relative;
  width: min(340px, 82vw);
  height: 185px;
  overflow: hidden;
  border: 1px solid rgba(205, 170, 101, .13);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(17, 25, 34, .88), rgba(6, 11, 15, .96));
  box-shadow: 0 28px 70px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .025);
  opacity: 0;
  transform: translateY(12px) rotateX(5deg);
  animation: ax-scene-in .55s .2s cubic-bezier(.2, .8, .2, 1) forwards;
}
/* Crash: a live curve and ship climb through the chart. */
.ax-scene-crash svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ax-crash-grid {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(101, 224, 196, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(101, 224, 196, .06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to top right, #000, transparent 85%);
}
.ax-crash-curve {
  fill: none; stroke: var(--ax-jade); stroke-width: 3; stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(46, 230, 200, .65));
  stroke-dasharray: 420; stroke-dashoffset: 420;
  animation: ax-path-write 1.35s .38s ease-out forwards;
}
.ax-crash-ship { fill: var(--ax-champ); offset-path: path("M18 143C78 141 95 123 135 118S205 82 238 65 271 31 306 18"); offset-distance: 0%; animation: ax-crash-fly 1.35s .38s ease-out forwards; filter: drop-shadow(0 0 8px rgba(205,170,101,.5)); }
.ax-crash-flame { fill: var(--ax-jade); animation: ax-flame .16s ease-in-out infinite alternate; }
.ax-scene-value { position: absolute; top: 18px; left: 20px; color: var(--ax-ink); font: 800 28px/1 var(--ax-mono); letter-spacing: -.05em; opacity: 0; animation: ax-rise .35s 1.25s ease forwards; }
.ax-startup[data-variant="fast-crash"] .ax-crash-curve { stroke: #f3bd5f; animation-duration: .75s; }
.ax-startup[data-variant="fast-crash"] .ax-crash-ship { animation-duration: .75s; }
.ax-startup[data-variant="fast-crash"] .ax-crash-grid { animation: ax-speed-grid .48s linear infinite; }
/* Plinko: three balls choose different paths through a field of pegs. */
.ax-scene-plinko { overflow: visible; }
.ax-plinko-pegs { position: absolute; left: 54px; right: 54px; top: 22px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px 20px; }
.ax-plinko-pegs i { width: 6px; height: 6px; border-radius: 50%; background: #bdc9d7; box-shadow: 0 0 7px rgba(189, 201, 215, .3); }
.ax-plinko-pockets { position: absolute; display: flex; gap: 4px; left: 42px; right: 42px; bottom: 12px; }
.ax-plinko-pockets i { flex: 1; height: 18px; border-radius: 4px 4px 8px 8px; background: linear-gradient(#b98a32, #674a1b); }
.ax-plinko-pockets i:nth-child(3n + 2) { background: linear-gradient(#16c99a, #075c4b); }
.ax-plinko-ball { position: absolute; z-index: 3; top: 8px; left: 50%; width: 13px; height: 13px; border-radius: 50%; background: var(--ax-jade); box-shadow: 0 0 14px rgba(46, 230, 200, .8); animation: ax-plinko-drop 1.35s .32s cubic-bezier(.42,0,.55,1) forwards; }
.ax-plinko-ball.b2 { animation-delay: .55s; --ax-ball-x: 62px; background: var(--ax-champ); }
.ax-plinko-ball.b3 { animation-delay: .78s; --ax-ball-x: -78px; }
/* Limbo: the multiplier clears a scanning threshold. */
.ax-scene-limbo { display: grid; place-items: center; overflow: hidden; }
.ax-scene-limbo::before { content: ""; position: absolute; width: 290px; height: 1px; background: linear-gradient(90deg, transparent, var(--ax-jade), transparent); top: 68%; box-shadow: 0 0 16px var(--ax-jade); }
.ax-limbo-ring { position: absolute; border: 1px solid rgba(46, 230, 200, .32); border-radius: 50%; animation: ax-limbo-ring 1.5s .25s ease-out infinite; }
.ax-limbo-ring.r1 { width: 94px; height: 94px; }.ax-limbo-ring.r2 { width: 150px; height: 150px; animation-delay: .55s; }
.ax-limbo-scan { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(46,230,200,.08) 50%, transparent 55%); animation: ax-limbo-scan 1.25s linear infinite; }
.ax-scene-limbo b { position: relative; color: #f5f7fa; font: 800 44px/1 var(--ax-mono); text-shadow: 0 0 22px rgba(46,230,200,.35); animation: ax-limbo-value 1.1s .28s cubic-bezier(.2,.8,.2,1) both; }
.ax-scene-limbo span { position: absolute; bottom: 19px; color: var(--ax-jade); font: 800 9px/1 var(--ax-font); letter-spacing: .22em; }
/* Ladder: the climber and rungs illuminate from the floor upward. */
.ax-scene-ladder { display: grid; place-items: center; }
.ax-ladder-rails { position: relative; width: 112px; height: 150px; border-left: 3px solid #887044; border-right: 3px solid #887044; display: flex; flex-direction: column-reverse; justify-content: space-around; }
.ax-ladder-rails i { height: 3px; margin: 0 -3px; background: #725e39; animation: ax-rung .25s both; }
.ax-ladder-rails i:nth-child(1){animation-delay:.25s}.ax-ladder-rails i:nth-child(2){animation-delay:.48s}.ax-ladder-rails i:nth-child(3){animation-delay:.71s}.ax-ladder-rails i:nth-child(4){animation-delay:.94s}.ax-ladder-rails i:nth-child(5){animation-delay:1.17s}.ax-ladder-rails i:nth-child(6){animation-delay:1.4s}
.ax-ladder-climber { position: absolute; z-index: 3; width: 18px; height: 18px; border: 4px solid var(--ax-jade); border-radius: 50%; left: calc(50% - 9px); bottom: 18px; box-shadow: 0 0 14px rgba(46,230,200,.65); animation: ax-climb 1.3s .32s steps(5,end) forwards; }
.ax-scene-ladder b { position: absolute; right: 17px; top: 50%; writing-mode: vertical-rl; color: var(--ax-ink-3); font: 800 9px/1 var(--ax-font); letter-spacing: .18em; }
/* Money Tree: branches grow, leaves bloom and a gold coin drops. */
.ax-scene-tree { overflow: visible; }
.ax-tree-trunk { position: absolute; left: calc(50% - 6px); bottom: 18px; width: 12px; height: 92px; border-radius: 8px 8px 2px 2px; background: linear-gradient(90deg,#60421d,#ba8744,#60421d); transform-origin: bottom; animation: ax-tree-grow .65s .25s both; }
.ax-tree-branch { position: absolute; bottom: 73px; left: 50%; width: 72px; height: 7px; border-radius: 8px; background: #946831; transform-origin: left; animation: ax-branch-grow .45s .68s both; }
.ax-tree-branch.l { transform: rotate(151deg); }.ax-tree-branch.r { transform: rotate(29deg); }
.ax-tree-crown { position: absolute; left: 50%; top: 18px; width: 190px; height: 110px; transform: translateX(-50%); }
.ax-tree-crown span { position: absolute; width: 52px; height: 52px; border-radius: 58% 42% 62% 38%; background: linear-gradient(145deg,#24d19c,#087054); transform: scale(0); box-shadow: inset 0 1px rgba(255,255,255,.16); animation: ax-leaf .38s cubic-bezier(.2,.9,.2,1.2) forwards; }
.ax-tree-crown span:nth-child(1){left:10px;top:44px;animation-delay:.88s}.ax-tree-crown span:nth-child(2){left:42px;top:8px;animation-delay:.95s}.ax-tree-crown span:nth-child(3){left:76px;top:39px;animation-delay:1.02s}.ax-tree-crown span:nth-child(4){left:110px;top:5px;animation-delay:1.09s}.ax-tree-crown span:nth-child(5){left:135px;top:48px;animation-delay:1.16s}.ax-tree-crown span:nth-child(6){left:70px;top:-7px;animation-delay:1.23s}.ax-tree-crown span:nth-child(7){left:105px;top:55px;animation-delay:1.3s}
.ax-tree-coin { position: absolute; z-index: 4; left: calc(50% + 36px); top: 47px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #f3d17f; background: #b98321; color: #fff2bd; font: 800 15px/1 var(--ax-mono); opacity: 0; animation: ax-coin-drop .7s 1.25s ease-in forwards; }
/* Blackjack: two cards are dealt and settle into twenty-one. */
.ax-scene-blackjack { overflow: visible; perspective: 600px; }
.ax-card { position: absolute; top: 38px; left: calc(50% - 68px); width: 82px; height: 112px; padding: 10px; border-radius: 9px; background: linear-gradient(145deg,#fff,#dfe5e9); color: #121820; border: 1px solid #fff; box-shadow: 0 18px 35px rgba(0,0,0,.35); transform: translate(-190px,-90px) rotate(-28deg); animation: ax-deal-left .7s .28s cubic-bezier(.2,.85,.25,1) forwards; }
.ax-card.c2 { left: calc(50% - 11px); color: #c93447; transform: translate(190px,-90px) rotate(28deg); animation-name: ax-deal-right; animation-delay: .55s; }
.ax-card b { display: block; font: 800 22px/1 var(--ax-display); }.ax-card span { display: grid; place-items: center; height: 67px; font-size: 38px; }
.ax-scene-blackjack strong { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: var(--ax-champ); font: 800 10px/1 var(--ax-font); letter-spacing: .25em; opacity: 0; animation: ax-rise .35s 1.24s forwards; }
/* Chess: the knight makes the opening move across a four-square board. */
.ax-scene-chess { display: grid; place-items: center; overflow: visible; }
.ax-chess-board { position: relative; width: 148px; height: 148px; display: grid; grid-template-columns: repeat(4,1fr); border: 5px solid #8f7242; box-shadow: 0 15px 35px rgba(0,0,0,.35); transform: rotateX(10deg); }
.ax-chess-board i { background: #e5e2d3; }.ax-chess-board i:nth-child(2n),.ax-chess-board i:nth-child(5),.ax-chess-board i:nth-child(7),.ax-chess-board i:nth-child(10),.ax-chess-board i:nth-child(12),.ax-chess-board i:nth-child(13),.ax-chess-board i:nth-child(15){background:#498167}
.ax-chess-board b { position: absolute; z-index: 3; font: 42px/1 Georgia,serif; filter: drop-shadow(0 4px 3px rgba(0,0,0,.35)); }
.ax-chess-knight { left: 2px; bottom: 34px; color: #151a1d; animation: ax-knight-move .9s .45s cubic-bezier(.2,.7,.25,1) forwards; }
.ax-chess-king { right: 1px; top: 0; color: #f4eee0; }
.ax-scene-chess > span { position:absolute;right:18px;bottom:17px;color:var(--ax-champ);font:800 9px/1 var(--ax-font);letter-spacing:.2em;opacity:0;animation:ax-rise .35s 1.32s forwards}
.ax-scene-fair { display:grid;place-items:center}.ax-scene-fair i{position:absolute;width:105px;height:105px;border:1px solid var(--ax-jade);transform:rotate(45deg);animation:ax-fair-spin 1.4s ease both}.ax-scene-fair b{font:800 56px/1 var(--ax-display);color:var(--ax-jade)}.ax-scene-fair span{position:absolute;bottom:24px;color:var(--ax-champ);font:800 9px/1 var(--ax-font);letter-spacing:.2em}
@keyframes ax-frame-in { to { opacity: 1; } }
@keyframes ax-atmosphere { to { transform: translate3d(7%, -3%, 0); } }
@keyframes ax-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ax-scene-in { to { opacity: 1; transform: none; } }
@keyframes ax-progress { to { transform: translateX(100%); } }
@keyframes ax-path-write { to { stroke-dashoffset: 0; } }
@keyframes ax-word-write { to { stroke-dashoffset: 0; } }
@keyframes ax-word-fill { to { fill: url(#axWriteGold); stroke: rgba(245,221,167,.45); } }
@keyframes ax-peak-fill { to { fill: url(#axWriteGold); stroke: rgba(245,221,167,.5); } }
@keyframes ax-gem-fill { to { fill: url(#axWriteJade); stroke: rgba(99,245,217,.45); } }
@keyframes ax-crash-fly { to { offset-distance: 100%; } }
@keyframes ax-flame { to { transform: scaleX(1.5); } }
@keyframes ax-speed-grid { to { transform: translateX(-32px); } }
@keyframes ax-plinko-drop { 0%{transform:translate(0,0)}22%{transform:translate(22px,31px)}42%{transform:translate(-12px,62px)}63%{transform:translate(31px,94px)}82%{transform:translate(var(--ax-ball-x, -28px),122px)}100%{transform:translate(var(--ax-ball-x, -28px),146px)} }
@keyframes ax-limbo-ring { from{opacity:.75;transform:scale(.4)}to{opacity:0;transform:scale(1.35)} }
@keyframes ax-limbo-scan { from{transform:translateY(-75%)}to{transform:translateY(75%)} }
@keyframes ax-limbo-value { from{opacity:0;transform:scale(.45);filter:blur(8px)}to{opacity:1;transform:none;filter:none} }
@keyframes ax-rung { from{background:#725e39;box-shadow:none}to{background:var(--ax-jade);box-shadow:0 0 10px rgba(46,230,200,.75)} }
@keyframes ax-climb { to { transform: translateY(-122px); } }
@keyframes ax-tree-grow { from{transform:scaleY(0)}to{transform:scaleY(1)} }
@keyframes ax-branch-grow { from{scale:0 1}to{scale:1 1} }
@keyframes ax-leaf { to { transform:scale(1) rotate(12deg); } }
@keyframes ax-coin-drop { 0%{opacity:0;transform:translateY(-20px) rotateY(0)}25%{opacity:1}100%{opacity:1;transform:translateY(92px) rotateY(540deg)} }
@keyframes ax-deal-left { to { transform:rotate(-9deg); } }
@keyframes ax-deal-right { to { transform:rotate(9deg); } }
@keyframes ax-knight-move { 0%{transform:translate(0,0) rotate(-8deg)}55%{transform:translate(76px,-45px) rotate(8deg)}100%{transform:translate(38px,-76px)} }
@keyframes ax-fair-spin { from{opacity:0;transform:rotate(0) scale(.6)}to{opacity:.55;transform:rotate(225deg) scale(1)} }

/* ---------- utility ---------- */
.ax-flex { display: flex; align-items: center; gap: 10px; }
.ax-grid { display: grid; gap: 12px; }
.ax-scroll-x {
  display: flex; gap: 10px; overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--ax-gutter)); padding: 2px var(--ax-gutter);
}
.ax-scroll-x::-webkit-scrollbar { display: none; }
.ax-scroll-x > * { scroll-snap-align: start; flex: none; }
.ax-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .ax-startup::after { display: none; }
  .ax-startup-label,
  .ax-startup-kicker,
  .ax-startup-scene { opacity: 1; transform: none; }
  .ax-write-word { fill: url(#axWriteGold); stroke-dashoffset: 0; }
  .ax-write-line-a { fill: url(#axWriteGold); stroke-dashoffset: 0; }
  .ax-write-line-gem { fill: url(#axWriteJade); stroke-dashoffset: 0; }
}

/* lobby-v2.css */
/* ============================================================
   AXOM CASINO V2 — "The Private Ledger" lobby
   Loaded after the legacy monolith so every visible surface moves
   to the graphite/champagne system without changing API contracts.
   ============================================================ */

:root {
  --bg: var(--ax-bg0);
  --bg-2: var(--ax-bg1);
  --surface: var(--ax-bg1);
  --surface-2: var(--ax-bg2);
  --glass: var(--ax-bg1);
  --border: var(--ax-line);
  --border-2: var(--ax-line-hi);
  --jade: var(--ax-champ);
  --jade-2: var(--ax-champ-dk);
  --jade-soft: rgba(205, 170, 101, .11);
  --teal: var(--ax-info);
  --gold: var(--ax-gold);
  --gold-2: var(--ax-champ-hi);
  --red: var(--ax-loss);
  --text: var(--ax-ink);
  --text-2: var(--ax-ink-2);
  --muted: var(--ax-ink-3);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 20px;
  --shadow: 0 24px 72px rgba(0, 0, 0, .52);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, .3);
  --glow-jade: 0 8px 20px rgba(205, 170, 101, .13);
  --glow-gold: 0 8px 20px rgba(205, 170, 101, .13);
  --font: var(--ax-font);
  --display: var(--ax-display);
  --ease-spring: cubic-bezier(.2, .7, .3, 1);
  --ease-out: cubic-bezier(.2, .7, .3, 1);
  --side-w: 228px;
  --nav-h: 68px;
}

html { background: var(--ax-bg0); }
body.ax-lobby {
  background: var(--ax-bg0);
  color: var(--ax-ink);
  font-family: var(--ax-font);
}
body.ax-lobby::before {
  background:
    radial-gradient(75% 44% at 70% -12%, rgba(205, 170, 101, .055), transparent 65%),
    repeating-linear-gradient(45deg, rgba(166, 174, 190, .012) 0 1px, transparent 1px 58px),
    radial-gradient(120% 80% at 50% 112%, rgba(0, 0, 0, .55), transparent 70%);
}
.bg-glow,
.bg-grid { display: none !important; }

/* Legacy splash is visually replaced by AxomUI.startup(). */
#loadingScreen {
  background: var(--ax-bg0) !important;
  opacity: 0;
  pointer-events: none;
}

/* Pre-navigation launch: the same restrained table-opening language. */
.game-launch {
  background:
    radial-gradient(44% 32% at 50% 44%, rgba(205, 170, 101, .07), transparent 72%),
    var(--ax-bg0) !important;
}
.game-launch::before {
  background: repeating-linear-gradient(45deg, rgba(166, 174, 190, .014) 0 1px, transparent 1px 58px) !important;
  animation: none !important;
}
.game-launch-inner {
  padding: 22px;
  border: 1px solid var(--ax-line);
  border-radius: 14px;
  background: var(--ax-bg1);
  box-shadow: var(--ax-top-light);
}
.game-launch-scene {
  width: 116px !important;
  height: 116px !important;
  margin: 0 auto 12px;
  filter: grayscale(.72) saturate(.35) contrast(1.04);
  opacity: .72;
}
.game-launch-kicker { color: var(--ax-champ) !important; }
.game-launch-title {
  color: var(--ax-ink);
  font-family: var(--ax-display) !important;
  font-size: 28px !important;
}
.game-launch-copy { color: var(--ax-ink-3) !important; }
.game-launch-track {
  height: 1px !important;
  background: var(--ax-line) !important;
}
.game-launch-track span {
  background: linear-gradient(90deg, transparent, var(--ax-champ), transparent) !important;
}
.game-launch.active .game-launch-track span { animation-duration: 520ms !important; }

/* Shared text and focus language. */
body.ax-lobby :where(button, input, select, textarea) { font-family: var(--ax-font); }
body.ax-lobby :where(.amt, .v, .amount, .jp-amount, .jp-count, .profile-balance-amount, .stat-value, .hist-amt, .txn-v) {
  font-variant-numeric: tabular-nums;
}
body.ax-lobby :focus-visible {
  outline: 2px solid var(--ax-champ) !important;
  outline-offset: 2px !important;
}
body.ax-lobby svg { filter: none !important; }

/* Desktop navigation: a restrained gaming rail rather than a glowing drawer. */
.side {
  width: var(--side-w);
  padding: 18px 12px 116px;
  background: #090C11;
  border-right: 1px solid var(--ax-line);
  box-shadow: none;
}
.side::after {
  content: "";
  position: absolute;
  top: 16px;
  right: -1px;
  width: 1px;
  height: 86px;
  background: linear-gradient(var(--ax-champ), transparent);
  opacity: .5;
}
.side-brand {
  min-height: 62px;
  padding: 8px 10px 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--ax-line);
}
.side-brand .brand-mark {
  width: 30px;
  height: 26px;
}
.side .wordmark {
  font-family: var(--ax-display);
  font-size: 14px;
  letter-spacing: .05em;
}
.side .wordmark b { color: var(--ax-ink); }
.side .wordmark .tag {
  margin-top: 3px;
  color: var(--ax-ink-3);
  font: 700 8px/1 var(--ax-font);
  letter-spacing: .14em;
}
.side-group-label {
  margin: 18px 10px 6px;
  color: #606A7C;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}
.side-item {
  min-height: 38px;
  margin: 2px 0;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ax-ink-2);
  font-size: 12.5px;
  font-weight: 650;
  transition: background var(--ax-fast), border-color var(--ax-fast), color var(--ax-fast);
}
.side-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  color: #727D8F;
}
.side-item:hover {
  background: var(--ax-bg2);
  border-color: var(--ax-line);
  color: var(--ax-ink);
}
.side-item.active {
  background: rgba(205, 170, 101, .105);
  border-color: rgba(205, 170, 101, .24);
  color: var(--ax-champ-hi);
  box-shadow: inset 2px 0 var(--ax-champ);
}
.side-item.active svg { color: var(--ax-champ); }
.side-badge {
  background: rgba(239, 102, 112, .12);
  color: #F58F98;
  border-radius: 5px;
}
.side-cta {
  left: 12px;
  right: 12px;
  bottom: 14px;
  padding: 12px 0 0;
  border-top: 1px solid var(--ax-line);
  background: #090C11;
}

/* Main header and balance command. */
.topbar {
  min-height: 62px;
  padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
  background: rgba(6, 9, 13, .94);
  border-bottom: 1px solid var(--ax-line);
  box-shadow: none;
  backdrop-filter: none;
}
.topbar .brand { gap: 7px; }
.topbar .brand-mark { width: 28px; height: 24px; }
.topbar .wordmark {
  color: var(--ax-ink);
  font-family: var(--ax-display);
  font-size: 14px;
}
.topbar .wordmark .tag { color: var(--ax-ink-3); }
.top-right { gap: 8px; }
.bal-pill {
  min-height: 38px;
  padding: 0 5px 0 11px;
  gap: 8px;
  background: var(--ax-bg2);
  border: 1px solid rgba(89, 191, 235, .36);
  border-radius: 999px;
  box-shadow: var(--ax-top-light);
}
.bal-pill:hover { border-color: rgba(89, 191, 235, .55); }
.bal-pill .demo-prefix {
  height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 5px;
  background: rgba(89, 191, 235, .13);
  color: var(--ax-demo);
  font-size: 9px;
  letter-spacing: .08em;
}
.bal-pill .amt {
  color: var(--ax-ink);
  font-size: 13.5px;
}
.demo-help {
  width: 26px;
  height: 26px;
  background: var(--ax-bg3);
  border: 1px solid var(--ax-line);
  color: var(--ax-ink-2);
}
.notification-btn,
.topbar .avatar {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--ax-bg2);
  border: 1px solid var(--ax-line);
  box-shadow: var(--ax-top-light);
  color: var(--ax-ink-2);
}
.notification-btn:hover,
.topbar .avatar:hover { border-color: var(--ax-line-hi); color: var(--ax-ink); }
.notification-btn svg { fill: currentColor; }
.notification-badge {
  background: var(--ax-loss);
  border-color: var(--ax-bg0);
}

.wrap {
  width: min(1460px, 100%);
  padding: 18px 14px 40px;
}

/* Command deck: compact, useful account action + jackpot. */
.hero {
  min-height: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--ax-line);
  border-radius: 16px;
  background:
    linear-gradient(112deg, rgba(205, 170, 101, .06), transparent 38%),
    var(--ax-bg1);
  box-shadow: var(--ax-top-light);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 74px;
  height: 2px;
  background: linear-gradient(90deg, var(--ax-champ), transparent);
}
.hero::after {
  width: 38%;
  height: 100%;
  right: -6%;
  top: 0;
  background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(166, 174, 190, .018) 18px 19px);
  opacity: 1;
}
.hero-aurora,
.spark { display: none !important; }
.hero-inner {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .75fr);
  gap: 26px;
  align-items: stretch;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 620px;
}
.hero-eyebrow {
  width: fit-content;
  padding: 0;
  margin-bottom: 14px;
  background: transparent;
  border: 0;
  color: var(--ax-champ);
  font-size: 9.5px;
  letter-spacing: .15em;
}
.hero h1 {
  max-width: 600px;
  color: var(--ax-ink);
  font-family: var(--ax-display);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.hero h1 .accent {
  color: var(--ax-champ-hi);
  -webkit-text-fill-color: currentColor;
  background: none;
}
.hero p {
  width: 100%;
  max-width: 590px;
  margin: 12px 0 20px;
  color: var(--ax-ink-2);
  font-size: 13px;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
}
.hero-cta { gap: 9px; }
.btn {
  min-height: 44px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  box-shadow: none;
}
.btn-primary,
.btn-gold {
  background: var(--ax-cta);
  color: var(--ax-on-gold);
  box-shadow: inset 0 1px rgba(255, 255, 255, .24), 0 7px 18px rgba(205, 170, 101, .12);
}
.hero-cta a.btn-primary,
.hero-cta a.btn-primary:visited {
  border-color: rgba(205, 170, 101, .42);
  background: var(--ax-bg3);
  color: var(--ax-ink);
  box-shadow: var(--ax-top-light), 0 7px 18px rgba(0, 0, 0, .18);
}
.hero-cta a.btn-primary:hover,
.hero-cta a.btn-primary:focus-visible {
  border-color: var(--ax-champ);
  background: #272f3b;
  color: #fff;
  filter: none;
}
.btn-ghost {
  background: var(--ax-bg2);
  color: var(--ax-ink);
  border-color: var(--ax-line-hi);
}
.jp-card {
  padding: 18px;
  border: 1px solid rgba(205, 170, 101, .25);
  border-radius: 12px;
  background: #101319;
  box-shadow: var(--ax-top-light);
}
.jp-card::before,
.jp-card::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
}
.jp-card::before {
  left: -1px;
  top: -1px;
  border-left: 2px solid rgba(205, 170, 101, .48);
  border-top: 2px solid rgba(205, 170, 101, .48);
  border-radius: 12px 0 0;
}
.jp-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid rgba(205, 170, 101, .48);
  border-bottom: 2px solid rgba(205, 170, 101, .48);
  border-radius: 0 0 12px;
}
.jp-head {
  color: var(--ax-ink-2);
  font-size: 10px;
  letter-spacing: .11em;
}
.jp-head svg { fill: var(--ax-champ); }
.jp-live {
  background: rgba(73, 210, 153, .1);
  border-color: rgba(73, 210, 153, .24);
  color: var(--ax-win);
}
.jp-amount {
  margin: 13px 0;
  color: var(--ax-champ-hi);
  font-family: var(--ax-display);
  font-size: clamp(28px, 4vw, 40px);
  text-shadow: none;
}
.jp-count-row {
  border-top: 1px solid var(--ax-line);
  padding-top: 9px;
}
.jp-count-label,
.jp-note,
#jackpotProgress,
#jackpotWinner { color: var(--ax-ink-3) !important; }
.jp-count { color: var(--ax-ink); }
.sec-link { color: var(--ax-champ) !important; }

.floor-status {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 36px;
  margin: 10px 2px 0;
  color: var(--ax-ink-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.floor-status span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.floor-status span + span::before {
  content: "";
  width: 1px;
  height: 12px;
  margin: 0 12px;
  background: var(--ax-line-hi);
}
.status-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ax-win);
  box-shadow: none;
}

/* Claim entry becomes a quiet reward command, not a promotion banner. */
.surprise-entry-card {
  min-height: 66px;
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--ax-line);
  border-radius: 12px;
  background: var(--ax-bg1);
  box-shadow: var(--ax-top-light);
}
.surprise-entry-card::before { display: none; }
.surprise-entry-icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(205, 170, 101, .28);
  border-radius: 9px;
  background: rgba(205, 170, 101, .09);
  color: var(--ax-champ);
  box-shadow: none;
}
.surprise-entry-icon svg { width: 19px; fill: currentColor; }
.surprise-entry-copy strong {
  color: var(--ax-ink);
  font-size: 13px;
}
.surprise-entry-copy span { color: var(--ax-ink-3); }
.surprise-entry-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(108, 152, 235, .72);
  border-radius: 8px;
  background: linear-gradient(135deg, #82A9F3, var(--ax-info));
  color: #081426;
  box-shadow: inset 0 1px rgba(255, 255, 255, .24), 0 8px 20px rgba(108, 152, 235, .18);
  font-weight: 850;
}
.surprise-entry-btn:hover {
  border-color: #A8C2F7;
  filter: brightness(1.06);
}

/* Sections and discovery. */
.section { margin-top: 30px; }
#games {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--ax-line);
  border-radius: 16px;
  background: rgba(13, 17, 23, .72);
  box-shadow: var(--ax-top-light);
}
#games > .sec-head { margin-bottom: 14px; }
.sec-head .title {
  color: var(--ax-ink);
  font-family: var(--ax-display);
  font-size: 18px;
}
.sec-head .title::before {
  content: "";
  width: 3px;
  height: 16px;
  margin-right: 8px;
  border-radius: 2px;
  background: linear-gradient(var(--ax-champ), var(--ax-champ-dk));
}
.sec-head .title .ic { display: none; }
.sec-head .count,
.sec-head .sub { color: var(--ax-ink-3); }
.games-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.search-box {
  min-height: 42px;
  background: var(--ax-bg0);
  border: 1px solid var(--ax-line-hi);
  border-radius: 9px;
  box-shadow: none;
}
.search-box:focus-within {
  border-color: rgba(205, 170, 101, .5);
  box-shadow: 0 0 0 3px rgba(205, 170, 101, .1);
}
.search-box svg { fill: var(--ax-ink-3); }
.search-box input { color: var(--ax-ink); font-size: 13px; }
.chips { gap: 5px; }
.chip {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--ax-line);
  border-radius: 999px;
  background: var(--ax-bg1);
  color: var(--ax-ink-3);
  font-size: 11.5px;
}
.chip:hover { background: var(--ax-bg2); color: var(--ax-ink-2); }
.chip.active {
  border-color: rgba(205, 170, 101, .42);
  background: rgba(205, 170, 101, .1);
  color: var(--ax-champ-hi);
  box-shadow: none;
}
.chip svg { fill: currentColor; }
.catalog-sort {
  min-height: 38px;
  border: 1px solid var(--ax-line);
  border-radius: 8px;
  background: var(--ax-bg1);
  color: var(--ax-ink-3);
}
.catalog-sort select { color: var(--ax-ink-2); }

/* Cards: image-first gaming covers with a hard information rail. */
.tile-grid {
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 12px;
}
.gcard {
  border: 1px solid var(--ax-line);
  border-radius: 12px;
  background: var(--ax-bg1);
  box-shadow: var(--ax-top-light);
  transform: none;
  transition: transform var(--ax-fast), border-color var(--ax-fast), background var(--ax-fast);
}
.gcard::before { display: none; }
.gcard:hover {
  transform: translateY(-2px);
  border-color: rgba(205, 170, 101, .3);
  background: var(--ax-bg2);
  box-shadow: 0 14px 26px rgba(0, 0, 0, .22);
}
.gcard:active { transform: translateY(0) scale(.99); }
.gcard-art {
  aspect-ratio: 1.22 / 1;
  border-radius: 11px 11px 0 0;
  background: #090C11;
}
.gcard-art::after {
  background: linear-gradient(transparent 56%, rgba(6, 9, 13, .7));
}
.gcard-art img {
  filter: saturate(.82) contrast(1.04);
  transition: transform 260ms ease;
}
.gcard:hover .gcard-art img { transform: scale(1.025); }
.gcard-info {
  min-height: 57px;
  padding: 9px 10px 10px;
  border-top: 1px solid var(--ax-line);
}
.gcard-name {
  color: var(--ax-ink);
  font-size: 13px;
}
.gcard-sub {
  min-height: 16px;
  margin-top: 4px;
  gap: 7px;
}
.players,
.rtp {
  color: var(--ax-ink-3);
  font-size: 9.5px;
}
.players i { background: var(--ax-win); box-shadow: none; }
.gcard .badge {
  left: 8px;
  top: 8px;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  box-shadow: none;
  backdrop-filter: none;
}
.badge.hot {
  background: rgba(239, 102, 112, .16);
  color: #F58F98;
}
.badge.new {
  background: rgba(108, 152, 235, .18);
  color: #8CB0F0;
}
.badge.live {
  background: rgba(73, 210, 153, .14);
  color: var(--ax-win);
}
.badge.maintenance,
.badge.soon {
  background: rgba(235, 164, 89, .16);
  color: var(--ax-warn);
}
.gcard.maintenance .gcard-art img { filter: grayscale(.8) brightness(.48); }
.fav-btn,
.game-info-btn {
  border: 1px solid var(--ax-line-hi);
  background: rgba(6, 9, 13, .88);
  color: var(--ax-ink-2);
  box-shadow: none;
  backdrop-filter: none;
}
.fav-btn.faved { color: var(--ax-champ-hi); background: rgba(205, 170, 101, .14); }
.hrow {
  gap: 10px;
  margin-inline: -18px;
  padding-inline: 18px;
}
.hrow .gcard {
  flex: 0 0 224px;
  width: 224px;
  display: grid;
  grid-template-columns: 102px 1fr;
}
.hrow .gcard-art {
  aspect-ratio: auto;
  min-height: 92px;
  border-radius: 11px 0 0 11px;
}
.hrow .gcard-info {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 0;
  border-left: 1px solid var(--ax-line);
}
#hotSection,
#recentSection,
#favSection {
  padding: 14px 0 0;
  margin-top: 0 !important;
  border-top: 1px solid var(--ax-line);
}
#hotSection + #favSection,
#favSection + #originalsSection,
#hotSection + #originalsSection { margin-top: 22px !important; }
#tgSection .tile-grid {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

/* Live wins becomes an account-style ledger, not a marquee. */
.wins-table-container {
  border: 1px solid var(--ax-line);
  border-radius: 12px;
  background: var(--ax-bg1);
  box-shadow: var(--ax-top-light);
}
.wins-table thead { background: var(--ax-bg2); }
.wins-table th {
  color: var(--ax-ink-3);
  font-size: 9.5px;
  letter-spacing: .11em;
}
.wins-table td {
  border-color: var(--ax-line);
  color: var(--ax-ink-2);
}
.wins-table tbody tr:hover { background: rgba(255, 255, 255, .015); }
.win-amount { color: var(--ax-win); }
.ticker-wrap { display: none !important; }

/* Rewards and promotion ecosystem. */
.vip-strip {
  padding: 18px;
  border: 1px solid rgba(205, 170, 101, .24);
  border-radius: 12px;
  background:
    linear-gradient(105deg, rgba(205, 170, 101, .07), transparent 45%),
    var(--ax-bg1);
  box-shadow: var(--ax-top-light);
}
.vip-strip::after { display: none; }
.vs-crown {
  border: 1px solid rgba(205, 170, 101, .3);
  border-radius: 10px;
  background: rgba(205, 170, 101, .09);
  box-shadow: none;
}
.vs-crown svg { fill: var(--ax-champ); }
.vs-text h3 { font-family: var(--ax-display); }
.vs-text h3 b { color: var(--ax-champ-hi); }
.vs-text p { color: var(--ax-ink-3); }
.promo-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}
.promo-card {
  min-height: 156px;
  padding: 16px;
  border: 1px solid var(--ax-line);
  border-radius: 12px;
  background: var(--ax-bg1);
  box-shadow: var(--ax-top-light);
}
.promo-card::before {
  top: 0;
  left: 16px;
  right: 16px;
  width: auto;
  height: 2px;
  border-radius: 0;
  background: var(--a, var(--ax-champ));
  opacity: .55;
}
.promo-card:hover {
  transform: translateY(-2px);
  border-color: var(--ax-line-hi);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .22);
}
.promo-card .pic {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ax-line);
  border-radius: 8px;
  background: var(--ax-bg2);
}
.promo-card .pic svg { fill: var(--ax-champ); }
.promo-card h4 { color: var(--ax-ink); font-family: var(--ax-display); }
.promo-card p { color: var(--ax-ink-3); }
.promo-card .plink { color: var(--ax-champ); }

.trust-strip {
  gap: 7px;
  margin-top: 30px;
  padding: 12px;
  border-block: 1px solid var(--ax-line);
}
.trust-pill {
  min-height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ax-ink-3);
  font-size: 10px;
}
.trust-pill svg { fill: var(--ax-champ-dk); }
.footer {
  margin-top: 20px;
  border-top: 0;
  color: var(--ax-ink-3);
}
.footer .fbrand,
.footer .ftag { color: var(--ax-ink-2); }

/* Financial/account surfaces. */
.profile-overlay,
.chat-overlay,
.wallet-popup-overlay,
.modal-overlay {
  background: rgba(3, 5, 8, .76);
  backdrop-filter: none;
}

/* One page lock for every overlay and drawer. Preserving the exact scroll
   offset prevents scrollbar-width shifts and Telegram/iOS viewport jumps
   while nested detail sheets are opened. */
html.app-scrollable.ui-layer-open,
html.app-scrollable.ui-layer-open body.ax-lobby {
  overflow: hidden !important;
  overscroll-behavior: none;
}
html.app-scrollable.ui-layer-open body.ax-lobby {
  position: fixed;
  inset: var(--ax-layer-scroll-y, 0) 0 auto;
  width: 100%;
  padding-right: var(--ax-layer-scrollbar-gap, 0);
}

.modal-overlay {
  pointer-events: none;
  isolation: isolate;
  transform: translateZ(0);
  will-change: opacity;
  transition:
    opacity 180ms cubic-bezier(.2, .7, .3, 1),
    visibility 0s linear 180ms;
}
.modal-overlay.active {
  pointer-events: auto;
  transition:
    opacity 180ms cubic-bezier(.2, .7, .3, 1),
    visibility 0s;
}
.profile-sidebar,
.chat-sidebar,
.history-page,
.wallet-popup,
.modal-container {
  background: var(--ax-bg1);
  border-color: var(--ax-line-hi);
  box-shadow: var(--shadow);
}
.profile-sidebar,
.chat-sidebar,
.history-page {
  backface-visibility: hidden;
  will-change: transform;
  transform: translate3d(100%, 0, 0);
}
.profile-sidebar.open,
.chat-sidebar.open,
.history-page.open { transform: translate3d(0, 0, 0); }
.profile-sidebar,
.chat-sidebar { width: min(440px, 94vw); }
.profile-header-section {
  background:
    linear-gradient(120deg, rgba(205, 170, 101, .07), transparent 45%),
    var(--ax-bg1);
  border-color: var(--ax-line);
}
.profile-close,
.modal-close,
.chat-close {
  border: 1px solid var(--ax-line);
  border-radius: 8px;
  background: var(--ax-bg2);
}
.profile-avatar-large {
  border: 1px solid rgba(205, 170, 101, .3);
  border-radius: 16px;
  background: var(--ax-bg2);
  box-shadow: var(--ax-top-light);
}
.profile-balance-display {
  border: 1px solid rgba(89, 191, 235, .34);
  border-radius: 12px;
  background: var(--ax-bg0);
  backdrop-filter: none;
}
.profile-balance-amount { color: var(--ax-demo); }
.profile-action-btn {
  min-height: 44px;
  border-radius: 9px;
}
.profile-action-btn.deposit,
.wallet-deposit-btn,
.withdraw-submit-btn {
  background: var(--ax-cta);
  color: var(--ax-on-gold);
  box-shadow: inset 0 1px rgba(255, 255, 255, .22);
}
.profile-action-btn.withdraw,
.wallet-withdraw-btn {
  border: 1px solid var(--ax-line-hi);
  background: var(--ax-bg2);
  color: var(--ax-ink);
}
.profile-section-title,
.method-group-label {
  color: var(--ax-ink-3);
  letter-spacing: .12em;
}
.vip-card,
.stat-card,
.rakeback-item,
.hist-item,
.method-card,
.withdraw-summary,
.game-fact,
.safety-note {
  border-color: var(--ax-line);
  border-radius: 10px;
  background: var(--ax-bg2);
  box-shadow: var(--ax-top-light);
}
.vip-progress-bar { background: var(--ax-bg0); }
.vip-progress-fill { background: var(--ax-cta); box-shadow: none; }
.vip-tier-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--ax-line);
  border-radius: 10px;
  background: var(--ax-bg0);
}
.vip-tier-icon img,
.tier-row .t-ic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tier-row .t-ic {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--ax-line);
  border-radius: 10px;
  background: var(--ax-bg0);
  font-size: 20px;
}
.stat-card.accent .stat-value,
.stat-card.blue .stat-value { color: var(--ax-ink); }
.history-toggle,
.history-tab,
.seg button,
.load-more-btn,
.modal-back-btn {
  border-color: var(--ax-line);
  border-radius: 8px;
  background: var(--ax-bg2);
  color: var(--ax-ink-2);
}
.history-tab.active,
.seg button.active {
  border-color: rgba(205, 170, 101, .4);
  background: rgba(205, 170, 101, .1);
  color: var(--ax-champ-hi);
}
.hist-badge.ok {
  background: rgba(73, 210, 153, .12);
  color: var(--ax-win);
}
.hist-badge.pend {
  background: rgba(235, 164, 89, .12);
  color: var(--ax-warn);
}
.hist-badge.fail {
  background: rgba(239, 102, 112, .12);
  color: var(--ax-loss);
}
.hist-amt.in { color: var(--ax-win); }
.hist-amt.out { color: var(--ax-loss); }
.hist-ref,
.txn-v.mono,
.address-value { font-family: var(--ax-mono); }

.modal-container {
  border-radius: 20px 20px 0 0;
  max-height: 90dvh;
  transform: translate3d(0, 20px, 0);
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 220ms cubic-bezier(.2, .7, .3, 1);
}
.modal-overlay.active .modal-container { transform: translate3d(0, 0, 0); }
#vipModal .modal-container { height: min(760px, 90dvh); }
#txnDetailModal .modal-container { min-height: min(420px, 90dvh); }
#withdrawModal .wallet-modal {
  width: min(620px, 100%);
  max-width: 620px;
  height: min(760px, 90dvh);
}
.modal-header {
  background: rgba(13, 17, 23, .98);
  border-bottom: 1px solid var(--ax-line);
}
.modal-title {
  color: var(--ax-ink);
  font-family: var(--ax-display);
}
.modal-grabber { background: var(--ax-line-hi); }
.method-card.selected {
  border-color: rgba(205, 170, 101, .5);
  background: rgba(205, 170, 101, .09);
  box-shadow: none;
}
.withdraw-amount-input,
.withdraw-address-input,
.claim-code-input {
  min-height: 46px;
  border: 1px solid var(--ax-line-hi);
  border-radius: 9px;
  background: var(--ax-bg0);
  color: var(--ax-ink);
}
.withdraw-amount-input:focus,
.withdraw-address-input:focus,
.claim-code-input:focus {
  border-color: rgba(205, 170, 101, .55);
  box-shadow: 0 0 0 3px rgba(205, 170, 101, .1);
}
.quick-amount-btn,
.copy-btn {
  border: 1px solid var(--ax-line);
  border-radius: 7px;
  background: var(--ax-bg2);
  color: var(--ax-ink-2);
}
.deposit-warning,
.network-info {
  border-color: rgba(235, 164, 89, .3);
  background: rgba(235, 164, 89, .08);
  color: var(--ax-warn);
}
.qr-frame,
.address-box,
.memo-box {
  border-color: var(--ax-line);
  background: var(--ax-bg0);
}
.safety-note {
  color: var(--ax-ink-2);
}
.confirm-check input { accent-color: var(--ax-champ); }

/* Compact two-step withdrawal flow. Fees and 2FA belong to review, keeping
   destination entry short and decision-focused. */
.withdraw-stepper {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 0 4px;
}
.withdraw-stepper > i {
  height: 1px;
  background: var(--ax-line);
}
.withdraw-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ax-ink-3);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.withdraw-step span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ax-line-hi);
  border-radius: 50%;
  background: var(--ax-bg0);
  font: 700 10px var(--ax-mono);
}
.withdraw-step.active,
.withdraw-step.complete { color: var(--ax-champ-hi); }
.withdraw-step.active span,
.withdraw-step.complete span {
  border-color: rgba(205, 170, 101, .55);
  background: rgba(205, 170, 101, .12);
  color: var(--ax-champ-hi);
}
.withdraw-stage[hidden] { display: none !important; }
.withdraw-stage.active { display: grid; gap: 12px; }
#withdrawModal .wallet-panel + .wallet-panel { margin-top: 0; }
#withdrawModal .wallet-balance-banner {
  margin: 0;
  padding: 11px 14px;
  border-radius: 10px;
}
#withdrawModal .wallet-panel {
  padding: 14px;
  border-radius: 12px;
}
#withdrawModal .wallet-section-head { margin-bottom: 10px; }
#withdrawModal .wallet-asset-strip { padding-bottom: 5px; }
#withdrawModal .wallet-asset-chip { min-height: 40px; }
#withdrawModal .wallet-method-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#withdrawModal .method-card { min-height: 52px; padding: 8px 10px; }
#withdrawModal .wallet-form-field { margin-top: 11px; }
#withdrawModal .withdraw-address-input,
#withdrawModal .withdraw-amount-input { min-height: 46px; }
#withdrawModal .amount-quick-btns { margin-top: 6px; }
#withdrawModal .quick-amount-btn { min-height: 34px; }
#withdrawContinueBtn { margin-top: 0; }
.withdraw-review-head,
.withdraw-review-address {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.withdraw-review-head span,
.withdraw-review-address span {
  display: block;
  color: var(--ax-ink-3);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.withdraw-review-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ax-ink);
  font-size: 15px;
}
.withdraw-review-head button {
  padding: 6px 9px;
  border: 1px solid var(--ax-line);
  border-radius: 7px;
  background: var(--ax-bg2);
  color: var(--ax-champ-hi);
  font-size: 11px;
  font-weight: 700;
}
.withdraw-review-address {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ax-line);
}
.withdraw-review-address strong {
  max-width: 72%;
  color: var(--ax-ink-2);
  font: 600 11px/1.45 var(--ax-mono);
  text-align: right;
  overflow-wrap: anywhere;
}
#withdrawModal .withdraw-summary { margin: 14px 0 0; }
.withdraw-security-card .confirm-check { margin-top: 0; }
.withdraw-otp-input {
  font: 700 19px/1 var(--ax-mono) !important;
  letter-spacing: .3em;
  text-align: center;
}
.withdraw-otp-help {
  margin-top: 6px;
  color: var(--ax-ink-3);
  font-size: 10px;
  text-align: center;
}
.withdraw-review-actions {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
}
.withdraw-review-actions .modal-back-btn,
.withdraw-review-actions .withdraw-submit-btn { min-height: 48px; margin: 0; }
.withdraw-result-stage {
  min-height: 470px;
  align-content: center;
  justify-items: center;
  padding: 28px 18px;
  text-align: center;
}
.withdraw-result-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border: 1px solid rgba(205, 170, 101, .45);
  border-radius: 50%;
  background: rgba(205, 170, 101, .1);
  color: var(--ax-champ-hi);
  font-size: 30px;
  font-weight: 700;
}
.withdraw-result-icon.processing {
  border-top-color: transparent;
  font-size: 0;
  animation: spin .8s linear infinite;
}
.withdraw-result-icon.pending {
  color: var(--ax-warn);
  border-color: rgba(235, 164, 89, .45);
  background: rgba(235, 164, 89, .1);
}
.withdraw-result-icon.complete {
  color: var(--ax-win);
  border-color: rgba(73, 210, 153, .45);
  background: rgba(73, 210, 153, .1);
}
.withdraw-result-icon.failed {
  color: var(--ax-loss);
  border-color: rgba(239, 102, 112, .45);
  background: rgba(239, 102, 112, .1);
}
.withdraw-result-kicker {
  margin-top: 12px;
  color: var(--ax-champ);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.withdraw-result-stage h3 {
  margin: 8px 0;
  color: var(--ax-ink);
  font: 700 25px var(--ax-display);
}
.withdraw-result-stage p {
  max-width: 410px;
  margin: 0;
  color: var(--ax-ink-2);
  font-size: 13px;
  line-height: 1.55;
}
.withdraw-result-ref {
  width: min(360px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid var(--ax-line);
  border-radius: 9px;
  background: var(--ax-bg0);
}
.withdraw-result-ref span { color: var(--ax-ink-3); font-size: 11px; }
.withdraw-result-ref strong { color: var(--ax-ink); font: 600 11px var(--ax-mono); }
.withdraw-result-actions {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.withdraw-result-actions > * { min-height: 46px; margin: 0; }

@media (min-width: 680px) {
  #withdrawDetailsStage.active,
  #withdrawReviewStage.active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  #withdrawDetailsStage .wallet-balance-banner,
  #withdrawDetailsStage #withdrawContinueBtn,
  #withdrawReviewStage .withdraw-review-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 679px) {
  .withdraw-step strong { display: none; }
  .withdraw-stepper { grid-template-columns: 24px 1fr 24px 1fr 24px; }
  #withdrawModal .wallet-method-grid { grid-template-columns: 1fr; }
  .withdraw-review-actions { grid-template-columns: 96px 1fr; }
  .withdraw-result-actions { grid-template-columns: 1fr; }
}

/* Bonus claim follows the same finance sheet, without a separate green theme. */
.claim-modal,
.claim-modal .modal-header {
  background: var(--ax-bg1);
  border-color: var(--ax-line-hi);
  backdrop-filter: none;
}
.claim-title-mark,
.claim-check-btn,
.claim-submit {
  background: var(--ax-cta);
  color: var(--ax-on-gold);
  box-shadow: none;
}
.claim-hero {
  border-color: rgba(205, 170, 101, .24);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(205, 170, 101, .08), transparent), var(--ax-bg2);
}
.claim-hero::after { display: none; }
.claim-code-input:focus { border-color: var(--ax-champ); }
.claim-req,
.claim-drop-summary,
.claim-secure-chip {
  border-color: var(--ax-line);
  background: var(--ax-bg0);
}
.claim-req.ok i { background: var(--ax-win); color: #062419; }

/* Chat */
.chat-header {
  background: var(--ax-bg1);
  border-color: var(--ax-line);
}
.online-dot { background: var(--ax-win); box-shadow: none; }
.rain-banner {
  border-color: var(--ax-line);
  background: rgba(108, 152, 235, .08);
}
.rain-icon { background: rgba(108, 152, 235, .12); }
.rain-icon svg { fill: var(--ax-info); }
.rain-join-btn,
.chat-send-btn {
  background: var(--ax-cta);
  color: var(--ax-on-gold);
}
.chat-message.system .msg-text,
.chat-commands-hint span {
  border-color: var(--ax-line);
  border-radius: 8px;
  background: var(--ax-bg2);
}
.msg-avatar {
  border: 1px solid var(--ax-line);
  border-radius: 8px;
  background: var(--ax-bg2);
}
.msg-username { color: var(--ax-champ); }
.chat-message.rain .msg-text { color: var(--ax-info); }
.chat-input-area { border-color: var(--ax-line); background: var(--ax-bg1); }
.chat-input {
  min-height: 44px;
  border-color: var(--ax-line-hi);
  border-radius: 9px;
  background: var(--ax-bg0);
}
.chat-input:focus { border-color: var(--ax-champ); }
.chat-send-btn { border-radius: 9px; }

/* Toast and state screens. */
.toast {
  border: 1px solid var(--ax-line-hi);
  border-radius: 10px;
  background: var(--ax-bg2);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .52);
  backdrop-filter: none;
}
.toast.success { border-color: rgba(73, 210, 153, .42); }
.toast.error { border-color: rgba(239, 102, 112, .42); }
.toast.success .t-ic { background: rgba(73, 210, 153, .12); }
.toast.success .t-ic svg { fill: var(--ax-win); }
.toast.error .t-ic { background: rgba(239, 102, 112, .12); }
.toast.error .t-ic svg { fill: var(--ax-loss); }
.toast.info .t-ic { background: rgba(108, 152, 235, .12); }
.toast.info .t-ic svg { fill: var(--ax-info); }

#maintenanceGate {
  background:
    radial-gradient(50% 34% at 50% 34%, rgba(205, 170, 101, .07), transparent),
    var(--ax-bg0);
}
.maint-title { font-family: var(--ax-display); }
.maint-title b {
  color: var(--ax-champ-hi);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.maint-btn {
  border-radius: 9px;
  background: var(--ax-cta);
  color: var(--ax-on-gold);
  box-shadow: none;
}
.maint-btn.ghost {
  border-color: var(--ax-line-hi);
  background: var(--ax-bg2);
}

/* Mobile navigation prioritises lobby, catalogue, wallet, rewards, profile. */
.bottom-nav {
  min-height: var(--nav-h);
  padding: 7px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(6, 9, 13, .96);
  border-top: 1px solid var(--ax-line);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, .3);
  backdrop-filter: none;
}
.nav-item {
  min-width: 54px;
  color: var(--ax-ink-3);
  font-size: 9px;
}
.nav-item.active { color: var(--ax-champ-hi); }
.nav-item svg { fill: currentColor; }
.nav-deposit-btn {
  width: 42px;
  height: 34px;
  margin-top: 0;
  border: 1px solid rgba(205, 170, 101, .34);
  border-radius: 9px;
  background: rgba(205, 170, 101, .12);
  box-shadow: none;
}
.nav-deposit-btn svg { fill: var(--ax-champ); }
.wallet-popup {
  border-radius: 16px 16px 0 0;
}
.wallet-popup-balance .amount { color: var(--ax-demo); }

.chat-toggle {
  display: grid;
  right: 10px;
  bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border: 1px solid rgba(205, 170, 101, .3);
  border-radius: 12px;
  background: var(--ax-bg2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .4);
}
.chat-toggle svg { fill: var(--ax-champ); }

@media (min-width: 560px) {
  .modal-container { border-radius: 20px; }
}

@media (min-width: 1180px) {
  .main { margin-left: var(--side-w); }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .hero { padding: 32px 36px; }
  .chat-toggle {
    right: 18px;
    bottom: 24px;
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 960px) {
  .games-toolbar {
    grid-template-columns: minmax(220px, 1fr) auto;
  }
  .games-toolbar .chips {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 719px) {
  .wrap { padding: 12px 10px 30px; }
  .hero { padding: 20px 16px; }
  .hero-inner { grid-template-columns: 1fr; gap: 16px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 12.5px; }
  .jp-card { padding: 15px; }
  .floor-status {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  #games {
    margin-top: 12px;
    padding: 14px 12px;
    border-radius: 14px;
  }
  .games-toolbar {
    grid-template-columns: 1fr auto;
  }
  .games-toolbar .chips { margin-right: -12px; padding-right: 12px; }
  .hrow { margin-inline: -12px; padding-inline: 12px; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .gcard-art { aspect-ratio: 1.14 / 1; }
  #tgSection .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #tgSection .gcard-info { padding-inline: 7px; }
  #tgSection .gcard-name { font-size: 11.5px; }
  .promo-grid { grid-template-columns: 1fr; }
  .trust-strip { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .trust-pill { flex: none; }
}

@media (max-width: 430px) {
  .topbar { padding-inline: 9px; }
  .bal-pill { padding-left: 7px; gap: 6px; }
  .bal-pill .demo-prefix { padding-inline: 5px; }
  .demo-help { display: none; }
  .hero-cta .btn { flex: 1; padding-inline: 10px; }
  .surprise-entry-card { grid-template-columns: 38px 1fr; }
  .surprise-entry-btn { grid-column: 1 / -1; width: 100%; }
  .games-toolbar {
    grid-template-columns: 1fr;
  }
  .catalog-sort-row { display: none; }
  .games-toolbar .chips { grid-column: 1; }
  .hrow .gcard { flex-basis: 204px; width: 204px; grid-template-columns: 90px 1fr; }
  #tgSection .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 340px) {
  .tile-grid { grid-template-columns: 1fr 1fr; }
  .gcard-name { font-size: 12px; }
  .gcard-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gcard:hover,
  .promo-card:hover { transform: none; }
}

/* lobby-light.css */
/* ============================================================
   AXOM LOBBY — Clean light interface
   This file intentionally sits after the legacy and V2 sheets.
   It changes presentation only; API contracts and element IDs stay put.
   ============================================================ */

:root {
  color-scheme: light;

  --ax-bg0: #d5e6eb;
  --ax-bg1: #e7f0f3;
  --ax-bg2: #dce9ed;
  --ax-bg3: #cbdde2;
  --ax-line: rgba(25, 61, 73, .1);
  --ax-line-hi: rgba(25, 61, 73, .18);
  --ax-rail: rgba(112, 182, 54, .34);
  --ax-rail-dim: rgba(112, 182, 54, .22);
  --ax-top-light: inset 0 1px 0 rgba(255, 255, 255, .82);

  --ax-ink: #16201c;
  --ax-ink-2: #516058;
  --ax-ink-3: #7b8981;
  --ax-champ-hi: #4c921d;
  --ax-champ: #70b636;
  --ax-champ-dk: #4c8c23;
  --ax-gold: #f4bd3f;
  --ax-jade: #8dde43;
  --ax-jade-dk: #68b92a;
  --ax-on-gold: #172111;
  --ax-cta: linear-gradient(135deg, #9be84e, #78cf34);
  --ax-win: #2d9b62;
  --ax-loss: #df565e;
  --ax-warn: #c98120;
  --ax-err: #df565e;
  --ax-info: #4b7ee8;
  --ax-demo: #2f8cc7;

  --bg: var(--ax-bg0);
  --bg-2: #ccdee4;
  --surface: var(--ax-bg1);
  --surface-2: var(--ax-bg2);
  --glass: rgba(255, 255, 255, .84);
  --border: var(--ax-line);
  --border-2: var(--ax-line-hi);
  --jade: var(--ax-jade-dk);
  --jade-2: var(--ax-champ-dk);
  --jade-soft: rgba(132, 210, 67, .13);
  --teal: #2fbf98;
  --gold: var(--ax-gold);
  --gold-2: #ffda77;
  --red: var(--ax-loss);
  --text: var(--ax-ink);
  --text-2: var(--ax-ink-2);
  --muted: var(--ax-ink-3);
  --shadow: 0 24px 70px -30px rgba(26, 48, 37, .32);
  --shadow-sm: 0 12px 34px -20px rgba(26, 48, 37, .25);
  --glow-jade: 0 14px 34px -18px rgba(110, 186, 47, .55);
  --glow-gold: 0 14px 34px -18px rgba(224, 164, 34, .38);
  --side-w: 238px;
  --nav-h: 76px;
}

html {
  background: var(--ax-bg0);
  color-scheme: light;
}

body.ax-lobby.ax-light-lobby {
  background:
    radial-gradient(900px 460px at 88% -12%, rgba(91, 184, 218, .22), transparent 62%),
    radial-gradient(760px 400px at -8% 24%, rgba(74, 153, 190, .14), transparent 66%),
    var(--ax-bg0);
  color: var(--ax-ink);
}

body.ax-lobby.ax-light-lobby::before {
  background-image:
    linear-gradient(rgba(40, 72, 57, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 72, 57, .025) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

body.ax-light-lobby :focus-visible {
  outline-color: #6dbc30 !important;
}

body.ax-light-lobby * {
  scrollbar-color: #cbd5ca transparent;
}

body.ax-light-lobby *::-webkit-scrollbar-thumb {
  background: #cbd5ca;
}

body.ax-light-lobby ::selection {
  background: rgba(137, 215, 67, .3);
}

.bg-glow,
.bg-grid { display: none !important; }

/* Brand and shell */
.side {
  background: rgba(222, 235, 239, .96);
  border-right: 1px solid var(--ax-line);
  box-shadow: 16px 0 42px -38px rgba(22, 48, 35, .36);
  backdrop-filter: blur(18px);
}

.side::after {
  background: linear-gradient(#8dde43, transparent);
}

.side-brand {
  border-color: var(--ax-line);
}

.brand-mark {
  filter: none !important;
}

.wordmark,
.side .wordmark,
.topbar .wordmark {
  color: var(--ax-ink);
  letter-spacing: -.015em;
}

.wordmark b,
.side .wordmark b,
.topbar .wordmark b {
  color: var(--ax-ink);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
}

.wordmark .tag,
.side .wordmark .tag,
.topbar .wordmark .tag { color: var(--ax-ink-3); }

.side-group-label { color: #87938c; }

.side-item {
  color: #59675f;
  border-radius: 11px;
}

.side-item svg { color: #7f8d84; }

.side-item:hover {
  background: #f4f7f1;
  border-color: transparent;
  color: var(--ax-ink);
}

.side-item.active {
  background: #edf8e4;
  border-color: #d4edc0;
  color: #4f9220;
  box-shadow: inset 3px 0 #83d63d;
}

.side-item.active svg { color: #67b72c; }

.side-badge,
.side-item .side-badge {
  background: #e9f7de;
  color: #4e8c23;
}

.side-cta {
  background: rgba(222, 235, 239, .97);
  border-color: var(--ax-line);
}

.topbar {
  min-height: 68px;
  background: rgba(218, 233, 237, .92);
  border-bottom: 1px solid rgba(28, 52, 41, .07);
  box-shadow: 0 10px 34px -30px rgba(25, 48, 37, .42);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.topbar .brand { gap: 9px; }
.topbar .brand-mark { width: 31px; height: 27px; }
.topbar .wordmark { font-size: 15px; }

.bal-pill {
  min-height: 42px;
  padding: 0 7px 0 14px;
  background: #e6f0f2;
  border: 1px solid #cfe8bb;
  color: var(--ax-ink);
  box-shadow: 0 8px 22px -16px rgba(67, 121, 38, .45), inset 0 1px #fff;
}

.bal-pill::after {
  content: "$";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ax-cta);
  color: #172110;
  font-size: 16px;
  font-weight: 900;
}

.bal-pill:hover {
  border-color: #91cf61;
  box-shadow: 0 0 0 4px rgba(133, 211, 67, .12);
}

.notification-btn,
.topbar .avatar {
  width: 42px;
  height: 42px;
  background: #e3eef1;
  border-color: var(--ax-line);
  border-radius: 13px;
  color: #607067;
  box-shadow: 0 8px 24px -18px rgba(23, 47, 35, .42);
}

.notification-btn:hover,
.topbar .avatar:hover {
  border-color: #b7d6a2;
  color: #4c9221;
}

.notification-badge {
  background: #ff6b67;
  color: white;
  border-color: white;
}

.wrap {
  width: min(1320px, 100%);
  max-width: 100%;
  padding: 22px clamp(12px, 2vw, 26px) 54px;
}

/* Buttons */
.btn,
.maint-btn,
.surprise-entry-btn,
.withdraw-submit-btn,
.wallet-deposit-btn,
.profile-action-btn.deposit,
.rain-join-btn,
.chat-send-btn {
  border-radius: 12px;
}

.btn-primary,
.btn-gold,
.maint-btn,
.surprise-entry-btn,
.withdraw-submit-btn,
.wallet-deposit-btn,
.profile-action-btn.deposit,
.rain-join-btn,
.chat-send-btn,
.claim-check-btn,
.claim-submit {
  border-color: #7ecb3f;
  background: var(--ax-cta);
  color: #172110;
  box-shadow: 0 12px 24px -16px rgba(86, 153, 34, .55), inset 0 1px rgba(255, 255, 255, .7);
}

.btn-primary:hover,
.btn-gold:hover,
.withdraw-submit-btn:hover {
  filter: brightness(1.02) saturate(1.04);
  box-shadow: 0 15px 30px -17px rgba(86, 153, 34, .62);
}

.btn-ghost,
.profile-action-btn.withdraw,
.wallet-withdraw-btn {
  background: #fff;
  border-color: var(--ax-line-hi);
  color: var(--ax-ink);
}

/* Hero: a real, responsive promo surface rendered entirely in CSS/SVG. */
.hero {
  min-height: 338px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(96, 164, 49, .17);
  border-radius: 28px;
  background:
    radial-gradient(circle at 74% 20%, rgba(255, 255, 255, .78) 0 4%, transparent 4.5%),
    radial-gradient(circle at 79% 27%, rgba(255, 255, 255, .45) 0 1.5%, transparent 1.8%),
    linear-gradient(122deg, #e3f3f6 0%, #cfeaf0 48%, #b8dde7 100%);
  box-shadow: 0 28px 70px -44px rgba(46, 107, 132, .42), inset 0 1px rgba(255, 255, 255, .8);
  isolation: isolate;
}

.hero::before {
  content: "";
  top: auto;
  left: auto;
  right: 27%;
  bottom: -46px;
  width: 230px;
  height: 230px;
  border: 42px solid rgba(52, 151, 187, .12);
  border-radius: 50%;
  background: transparent;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 38%;
  top: 22px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(45, 128, 160, .16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .15));
  transform: rotate(17deg);
  box-shadow: 0 24px 44px -28px rgba(38, 95, 117, .35);
}

.hero-inner {
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .76fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
}

.hero-left { max-width: 670px; }

.hero-eyebrow {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  margin-bottom: 17px;
  border: 1px solid rgba(53, 128, 158, .2);
  border-radius: 999px;
  background: rgba(232, 247, 250, .7);
  color: #397d98;
  font-size: 10px;
  letter-spacing: .105em;
  backdrop-filter: blur(8px);
}

.hero h1 {
  max-width: 620px;
  color: #17221c;
  font-size: clamp(36px, 5.6vw, 68px);
  line-height: .96;
  letter-spacing: -.055em;
}

.hero h1 .accent {
  color: #357f9c;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero p {
  max-width: 590px;
  margin: 18px 0 24px;
  color: #4d6154;
  font-size: 14px;
  line-height: 1.62;
}

.hero-cta { gap: 10px; }

.hero-cta .btn {
  min-height: 48px;
  padding-inline: 19px;
}

.hero-cta a.btn-primary,
.hero-cta a.btn-primary:visited {
  border-color: #203129;
  background: #17221c;
  color: #fff;
  box-shadow: 0 14px 28px -18px rgba(17, 34, 25, .7);
}

.hero-cta a.btn-primary:hover,
.hero-cta a.btn-primary:focus-visible {
  border-color: #263c31;
  background: #263c31;
  color: #fff;
}

.hero-shapes {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(230, 246, 249, .56);
  box-shadow: 0 20px 38px -28px rgba(37, 95, 118, .4);
  backdrop-filter: blur(8px);
}

.hero-shape svg { width: 55%; height: 55%; color: #398baa; }
.hero-shape.dice { width: 64px; height: 64px; left: 47%; bottom: 28px; border-radius: 19px; transform: rotate(-12deg); }
.hero-shape.coin { width: 52px; height: 52px; left: 57%; top: 34px; border-radius: 50%; transform: rotate(8deg); }
.hero-shape.sparkle { width: 33px; height: 33px; left: 42%; top: 33%; border-radius: 11px; transform: rotate(20deg); }

.jp-card {
  padding: 21px;
  border: 1px solid rgba(69, 112, 48, .13);
  border-radius: 20px;
  background: rgba(225, 239, 243, .9);
  box-shadow: 0 22px 54px -34px rgba(43, 77, 28, .45), inset 0 1px rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px);
}

.jp-card::before,
.jp-card::after { display: none; }

.jp-head {
  color: #627168;
  font-size: 10px;
}

.jp-head svg { fill: #69b62e; }

.jp-live {
  background: #edf8e5;
  border-color: #d4edc2;
  color: #3f8d43;
}

.jp-amount {
  margin: 15px 0;
  color: #1c2b23;
  font-size: clamp(33px, 4vw, 46px);
  letter-spacing: -.045em;
}

.jp-count-row { border-color: rgba(31, 58, 44, .09); }
.jp-count-label,
.jp-note,
#jackpotProgress,
#jackpotWinner { color: #77857d !important; }
.jp-count { color: #26352d; }
.sec-link { color: #569e27 !important; }

.live-dot,
.status-mark,
.online-dot { background: #68bd34; }

/* Utility panels */
.surprise-entry-card {
  min-height: 72px;
  margin-top: 12px;
  padding: 13px 15px;
  border-color: var(--ax-line);
  border-radius: 18px;
  background: rgba(226, 238, 241, .92);
  box-shadow: var(--shadow-sm);
}

.surprise-entry-icon {
  width: 42px;
  height: 42px;
  border-color: #d9edc8;
  border-radius: 13px;
  background: #eff9e7;
  color: #62ad2d;
}

.surprise-entry-copy strong { color: var(--ax-ink); }
.surprise-entry-copy span { color: var(--ax-ink-3); }

.floor-status {
  min-height: 38px;
  margin-inline: 5px;
  color: #7b8981;
}

.floor-status span + span::before { background: #d9e0d8; }

/* Catalogue */
.section { margin-top: 34px; }

#games {
  margin-top: 18px;
  padding: clamp(16px, 2.3vw, 26px);
  border: 1px solid rgba(26, 51, 39, .075);
  border-radius: 26px;
  background: rgba(224, 237, 240, .82);
  box-shadow: 0 26px 66px -50px rgba(24, 48, 36, .36);
  backdrop-filter: blur(10px);
}

.sec-head { margin-bottom: 15px; }

.sec-head .title {
  color: var(--ax-ink);
  font-size: 20px;
  letter-spacing: -.025em;
}

.sec-head .title::before {
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 50%;
  background: #87d641;
}

.sec-head .count,
.sec-head .sub { color: var(--ax-ink-3); }

.games-toolbar {
  grid-template-columns: minmax(245px, 1fr) minmax(0, 2fr) auto;
  gap: 11px;
  margin-bottom: 23px;
}

.search-box {
  min-height: 50px;
  padding-inline: 3px;
  border: 1px solid #dce4da;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 26px -22px rgba(22, 45, 33, .38);
}

.search-box:focus-within {
  border-color: #91d45f;
  box-shadow: 0 0 0 4px rgba(137, 213, 75, .14), 0 12px 26px -22px rgba(22, 45, 33, .38);
}

.search-box svg { fill: #76b943; }
.search-box input { color: var(--ax-ink); font-size: 14px; }
.search-box input::placeholder { color: #9ba69f; }
.search-clear { background: #edf1eb; }
.search-clear svg { fill: #67766d; }

.chips { gap: 6px; }

.chip {
  min-height: 39px;
  padding-inline: 13px;
  border-color: #e0e6de;
  border-radius: 999px;
  background: #fff;
  color: #6b7971;
}

.chip:hover { background: #f3f7f0; color: #37473f; }

.chip.active {
  border-color: #cbe8b5;
  background: #edf8e4;
  color: #4e9121;
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
}

.catalog-sort {
  min-height: 42px;
  border-color: #e0e6de;
  border-radius: 12px;
  background: #fff;
  color: #77847c;
}

.catalog-sort select { color: #4d5c54; }

.tile-grid {
  grid-template-columns: repeat(auto-fill, minmax(174px, 1fr));
  gap: 15px;
}

.gcard {
  border: 1px solid rgba(32, 61, 46, .085);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 15px 38px -30px rgba(24, 50, 36, .42);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gcard::before { display: none; }

.gcard:hover {
  border-color: color-mix(in srgb, var(--a) 33%, #d9e1d7);
  background: #fff;
  box-shadow: 0 22px 44px -27px color-mix(in srgb, var(--a) 27%, rgba(25, 50, 37, .35));
  transform: translateY(-5px);
}

.gcard:active { transform: translateY(-1px) scale(.985); }

.gcard-art {
  aspect-ratio: 1.17 / 1;
  border-radius: 19px 19px 15px 15px;
  background:
    radial-gradient(circle at 23% 18%, rgba(255, 255, 255, .74) 0 3%, transparent 3.4%),
    radial-gradient(circle at 78% 72%, color-mix(in srgb, var(--a) 28%, transparent) 0 16%, transparent 16.5%),
    linear-gradient(145deg, color-mix(in srgb, var(--a) 17%, #fff) 0%, color-mix(in srgb, var(--a) 36%, #f7fbf4) 100%);
  overflow: hidden;
}

.gcard-art::before {
  content: "";
  position: absolute;
  inset: auto -12% -38% 27%;
  width: 88%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--a) 24%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 17px color-mix(in srgb, var(--a) 5%, transparent),
    0 0 0 35px color-mix(in srgb, var(--a) 4%, transparent);
}

.gcard-art::after {
  background: linear-gradient(180deg, transparent 64%, rgba(255, 255, 255, .25));
}

.gcard-art .glyph-scene {
  position: absolute;
  z-index: 2;
  inset: 14% 14% 10%;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--a) 78%, #26462f);
  filter: drop-shadow(0 14px 14px color-mix(in srgb, var(--a) 23%, transparent));
}

.gcard-art .glyph-scene svg {
  width: 100%;
  height: 100%;
  transition: transform 240ms cubic-bezier(.2, .8, .2, 1);
}

.gcard:hover .glyph-scene svg { transform: translateY(-3px) scale(1.07) rotate(-2deg); }

.gcard-info {
  min-height: 73px;
  padding: 12px 13px 13px;
  background: #fff;
}

.gcard-name {
  color: #1d2923;
  font-size: 14px;
  letter-spacing: -.01em;
}

.gcard-sub { color: #87938c; }
.gcard-sub .rtp { color: #87938c; }

.badge {
  top: 10px;
  left: 10px;
  min-height: 23px;
  padding-inline: 8px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  box-shadow: 0 6px 14px -9px rgba(28, 47, 37, .4);
  backdrop-filter: blur(8px);
}

.badge.hot { background: rgba(255, 239, 232, .9); color: #d75d3f; }
.badge.new { background: rgba(236, 246, 255, .92); color: #3976c5; }
.badge.live { background: rgba(236, 249, 229, .92); color: #438b2c; }
.badge.soon,
.badge.maintenance { background: rgba(255, 255, 255, .9); color: #78847d; }

.fav-btn,
.game-info-btn {
  border: 1px solid rgba(31, 58, 44, .09);
  background: rgba(255, 255, 255, .84);
  color: #607067;
  box-shadow: 0 8px 18px -14px rgba(21, 42, 31, .5);
  backdrop-filter: blur(8px);
}

.fav-btn svg { fill: #809087; }
.fav-btn.faved svg { fill: #ef6f72; }

.gcard.soon .gcard-art,
.gcard.maintenance .gcard-art { filter: saturate(.46) opacity(.72); }
.gcard.soon .gcard-name,
.gcard.maintenance .gcard-name { color: #69776f; }

.hrow {
  gap: 13px;
  padding: 3px 3px 10px;
  scroll-snap-type: x proximity;
}

.hrow .gcard {
  flex: 0 0 218px;
  scroll-snap-align: start;
}

.hrow .gcard-art { aspect-ratio: 1.45 / 1; }

.no-results {
  border: 1px dashed #cfd9cd;
  border-radius: 18px;
  background: rgba(255, 255, 255, .74);
  color: #738178;
}

/* Wins, rewards, fair-play and footer */
.wins-panel,
.fair-card,
.promo-card,
.reward-card,
.vip-card,
.stat-card,
.rakeback-item,
.hist-item,
.game-fact,
.safety-note,
.method-card,
.withdraw-summary {
  border-color: var(--ax-line);
  background: #fff;
  box-shadow: 0 14px 36px -30px rgba(24, 48, 36, .35);
}

.wins-head,
.wins-table th,
.wins-table td { border-color: #e7ebe5; }
.wins-table th { background: #f6f8f4; color: #7e8a83; }
.wins-table td { color: #405047; }
.wins-table tr:hover td { background: #f8faf7; }

.promo-grid { gap: 14px; }

.promo-card {
  min-height: 178px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--a) 6%, #fff), #fff 58%);
}

.promo-card:hover {
  border-color: color-mix(in srgb, var(--a) 26%, #dce3da);
  box-shadow: 0 20px 40px -30px color-mix(in srgb, var(--a) 28%, rgba(27, 53, 39, .28));
}

.promo-card .pic {
  border-color: color-mix(in srgb, var(--a) 18%, #e0e7de);
  border-radius: 12px;
  background: color-mix(in srgb, var(--a) 9%, #fff);
}

.promo-card h4 { color: var(--ax-ink); }
.promo-card p { color: var(--ax-ink-2); }
.promo-card .plink { color: color-mix(in srgb, var(--a) 75%, #31522f); }

.fair-card {
  border-radius: 22px;
  background:
    radial-gradient(circle at 94% 15%, rgba(139, 215, 72, .13), transparent 26%),
    #fff;
}

.fair-icon {
  border-color: #d6ebc5;
  background: #eef8e6;
}

.fair-icon svg { fill: #65ad31; }
.fair-copy h3 { color: var(--ax-ink); }
.fair-copy p { color: var(--ax-ink-2); }
.fair-checks span { color: #68786e; }
.fair-checks span::before { background: #7ac63d; }

.trust-strip { border-color: #dfe5dd; }
.trust-pill { color: #76837b; }
.trust-pill svg { fill: #77b747; }
.footer { color: #7b8981; }
.footer .fbrand,
.footer .ftag { color: #526159; }
.footer a { color: #5d6d63; }
.footer a:hover { color: #4e9221; }

/* Overlays and account flows keep all existing behaviour in a light shell. */
.profile-overlay,
.chat-overlay,
.wallet-popup-overlay,
.modal-overlay {
  background: rgba(27, 39, 33, .32);
  backdrop-filter: blur(5px);
}

.profile-sidebar,
.chat-sidebar,
.history-page,
.wallet-popup,
.modal-container,
.claim-modal {
  border-color: rgba(28, 55, 42, .13);
  background: #fbfcfa;
  color: var(--ax-ink);
  box-shadow: 0 32px 90px -28px rgba(20, 37, 29, .36);
}

.profile-header-section,
.chat-header,
.modal-header,
.claim-modal .modal-header {
  border-color: var(--ax-line);
  background:
    radial-gradient(circle at 95% 0, rgba(142, 219, 74, .14), transparent 34%),
    rgba(255, 255, 255, .96);
}

.profile-close,
.modal-close,
.chat-close {
  border-color: var(--ax-line);
  background: #f1f4ef;
  color: #5d6c63;
}

.profile-avatar-large {
  border-color: #d3e9c1;
  background: #edf8e4;
}

.profile-username,
.modal-title,
.chat-header h3,
.history-page-title { color: var(--ax-ink); }
.profile-uid { color: var(--ax-ink-3); }

.profile-balance-display,
.wallet-popup-balance {
  border-color: #d3e9c1;
  background: #f1f9eb;
}

.profile-balance-amount,
.wallet-popup-balance .amount { color: #4f9322; }
.profile-section-title,
.method-group-label { color: #849088; }

.vip-progress-bar { background: #e8ede6; }
.vip-progress-fill { background: var(--ax-cta); }

.vip-tier-icon,
.tier-row .t-ic {
  border-color: var(--ax-line);
  background: #f1f4ef;
}

.history-toggle,
.history-tab,
.seg button,
.load-more-btn,
.modal-back-btn,
.quick-amount-btn,
.copy-btn {
  border-color: var(--ax-line);
  background: #f1f4ef;
  color: #56665d;
}

.history-tab.active,
.seg button.active {
  border-color: #cbe6b5;
  background: #edf8e4;
  color: #4f9322;
}

.modal-grabber { background: #cbd4c9; }

.withdraw-amount-input,
.withdraw-address-input,
.claim-code-input,
.chat-input {
  border-color: #d9e1d7;
  background: #fff;
  color: var(--ax-ink);
}

.withdraw-amount-input::placeholder,
.withdraw-address-input::placeholder,
.claim-code-input::placeholder,
.chat-input::placeholder { color: #9ca7a0; }

.withdraw-amount-input:focus,
.withdraw-address-input:focus,
.claim-code-input:focus,
.chat-input:focus {
  border-color: #91d35e;
  box-shadow: 0 0 0 4px rgba(137, 213, 75, .13);
}

.method-card.selected {
  border-color: #a9d884;
  background: #f0f9e9;
}

.deposit-warning,
.network-info {
  border-color: #efd8a8;
  background: #fff8e9;
  color: #a56b18;
}

.qr-frame,
.address-box,
.memo-box,
.withdraw-result-ref {
  border-color: var(--ax-line);
  background: #fff;
}

.claim-hero {
  border-color: #d8ebc7;
  background: linear-gradient(120deg, #eef8e6, #fff);
}

.claim-req,
.claim-drop-summary,
.claim-secure-chip {
  border-color: var(--ax-line);
  background: #f3f6f1;
}

.rain-banner {
  border-color: #d5e7c7;
  background: #eff8e8;
}

.rain-icon { background: #dfefd4; }
.rain-icon svg { fill: #63aa31; }
.chat-message.system .msg-text,
.chat-commands-hint span { border-color: var(--ax-line); background: #f1f4ef; }
.msg-avatar { border-color: var(--ax-line); background: #edf2eb; }
.msg-username { color: #559529; }
.chat-input-area { border-color: var(--ax-line); background: #fff; }

.toast {
  border-color: var(--ax-line-hi);
  background: #fff;
  color: var(--ax-ink);
  box-shadow: 0 18px 54px -26px rgba(21, 43, 31, .38);
}

.game-launch {
  background:
    radial-gradient(circle at 50% 42%, rgba(140, 219, 71, .17), transparent 36%),
    #f6f8f3 !important;
}

.game-launch-inner {
  border-color: var(--ax-line);
  background: #fff;
  box-shadow: var(--shadow);
}

.game-launch-title { color: var(--ax-ink); }
.game-launch-copy { color: var(--ax-ink-3) !important; }

#maintenanceGate {
  background:
    radial-gradient(circle at 50% 30%, rgba(139, 215, 72, .14), transparent 35%),
    #f6f8f3;
  color: var(--ax-ink);
}

.maint-title b { color: #579b2a; }
.maint-copy,
.maint-foot { color: var(--ax-ink-3); }
.maint-btn.ghost { border-color: var(--ax-line-hi); background: #fff; color: var(--ax-ink); }

/* Mobile floating navigation, inspired by the compact reference shell. */
.bottom-nav {
  left: 10px;
  right: 10px;
  bottom: calc(9px + env(safe-area-inset-bottom));
  min-height: 70px;
  padding: 7px 6px;
  border: 1px solid rgba(29, 52, 41, .1);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 50px -22px rgba(21, 43, 31, .38);
  backdrop-filter: blur(18px) saturate(150%);
}

.nav-item {
  min-width: 55px;
  min-height: 56px;
  border: 1px solid transparent;
  border-radius: 17px;
  color: #89958e;
  font-size: 9.5px;
}

.nav-item.active {
  border-color: #d1eabb;
  background: #eff8e7;
  color: #58a026;
}

.nav-deposit-btn {
  width: 40px;
  height: 34px;
  border-color: #cbe7b5;
  border-radius: 12px;
  background: var(--ax-cta);
  box-shadow: 0 10px 20px -14px rgba(76, 142, 31, .55);
}

.nav-deposit-btn svg { fill: #22311b; }

.wallet-popup {
  border-radius: 24px 24px 0 0;
  background: #fff;
}

.chat-toggle {
  border-color: #c8e4b2;
  border-radius: 16px;
  background: #f0f9e8;
  box-shadow: 0 15px 35px -20px rgba(52, 100, 28, .42);
}

.chat-toggle svg { fill: #5aa02a; }

@media (min-width: 1180px) {
  .main { margin-left: var(--side-w); }
  .topbar { padding-inline: 26px; }
  .hero { padding: 46px 48px; }
}

@media (max-width: 1050px) {
  .games-toolbar { grid-template-columns: minmax(230px, 1fr) auto; }
  .games-toolbar .chips {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
}

@media (max-width: 760px) {
  body.ax-lobby.ax-light-lobby {
    padding-bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom));
  }

  .wrap { padding: 13px 10px 38px; }

  .hero {
    min-height: 0;
    padding: 25px 18px 19px;
    border-radius: 23px;
  }

  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-left { max-width: none; }
  .hero h1 { max-width: 530px; font-size: clamp(35px, 11vw, 52px); }
  .hero p { font-size: 13px; }
  .hero::before { right: -70px; bottom: -100px; }
  .hero::after { right: 18px; top: 24px; width: 64px; height: 64px; border-radius: 18px; opacity: .6; }
  .hero-shape.dice { left: auto; right: 16px; bottom: 42%; opacity: .55; }
  .hero-shape.coin { left: auto; right: 90px; top: 25px; opacity: .55; }
  .hero-shape.sparkle { display: none; }
  .jp-card { padding: 17px; border-radius: 17px; }

  #games {
    margin-top: 12px;
    padding: 16px 12px 19px;
    border-radius: 22px;
  }

  .games-toolbar { grid-template-columns: 1fr auto; }
  .games-toolbar .chips { margin-right: -12px; padding-right: 12px; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .gcard-art { aspect-ratio: 1.08 / 1; }
  .gcard-info { min-height: 67px; padding: 10px; }
  .gcard-name { font-size: 13px; }
  .gcard-sub { font-size: 9.5px; }

  #tgSection .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tgSection .gcard-info { padding-inline: 10px; }
  #tgSection .gcard-name { font-size: 12.5px; }

  .hrow { margin-inline: -12px; padding-inline: 12px; }
  .hrow .gcard { flex-basis: 205px; width: 205px; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-card { min-height: 158px; }
}

@media (max-width: 480px) {
  .topbar { padding-inline: 10px; }
  .topbar .wordmark .tag { display: none; }
  .topbar .notification-btn { display: none; }
  .bal-pill { padding-left: 11px; }

  .hero-eyebrow { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { padding-inline: 10px; }

  .surprise-entry-card { grid-template-columns: 42px 1fr; }
  .surprise-entry-btn { grid-column: 1 / -1; width: 100%; }

  .floor-status { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .games-toolbar { grid-template-columns: 1fr; }
  .catalog-sort-row { display: none; }
  .games-toolbar .chips { grid-column: 1; }

  .gcard-art .glyph-scene { inset: 13% 11% 7%; }
  .badge { top: 7px; left: 7px; min-height: 20px; font-size: 8px; }
  .fav-btn { top: 7px; right: 7px; }
  .game-info-btn { bottom: 7px; right: 7px; }

  .trust-strip { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
  .trust-pill { flex: none; }
  .chat-toggle { display: none; }
}

@media (max-width: 350px) {
  .hero h1 { font-size: 32px; }
  .topbar .brand-mark { width: 27px; }
  .topbar .wordmark { font-size: 13px; }
  .bal-pill .amt { font-size: 12px; }
  .tile-grid { gap: 8px; }
  .gcard-name { font-size: 12px; }
  .gcard-sub { display: none; }
  .gcard-info { min-height: 49px; }
}

@media (prefers-reduced-motion: reduce) {
  .gcard,
  .gcard-art .glyph-scene svg,
  .hero-shape { transition: none !important; }
}

/* Sage surfaces: retain a light UI without turning the lobby into a white page. */
body.ax-light-lobby .main,
body.ax-light-lobby .wrap,
body.ax-light-lobby .hero,
body.ax-light-lobby #games {
  min-width: 0;
  max-width: 100%;
}

body.ax-light-lobby #games {
  background: rgba(220, 234, 238, .9);
}

.search-box,
.chip,
.catalog-sort,
.gcard,
.gcard-info,
.wins-panel,
.fair-card,
.promo-card,
.reward-card,
.vip-card,
.stat-card,
.rakeback-item,
.hist-item,
.game-fact,
.safety-note,
.method-card,
.withdraw-summary,
.surprise-entry-card {
  background-color: #e5eff2;
}

.gcard-info,
.search-box,
.chip,
.catalog-sort {
  background: #e5eff2;
}

.gcard:hover,
.chip:hover,
.wins-table tr:hover td {
  background-color: #ebf3f5;
}

.profile-sidebar,
.chat-sidebar,
.history-page,
.wallet-popup,
.modal-container,
.claim-modal,
.wallet-popup,
.game-launch-inner {
  background: #e1ecef;
}

.profile-header-section,
.chat-header,
.modal-header,
.claim-modal .modal-header,
.chat-input-area {
  background-color: #e5eff2;
}

.profile-close,
.modal-close,
.chat-close,
.btn-ghost,
.profile-action-btn.withdraw,
.wallet-withdraw-btn,
.maint-btn.ghost,
.history-toggle,
.history-tab,
.seg button,
.load-more-btn,
.modal-back-btn,
.quick-amount-btn,
.copy-btn,
.withdraw-amount-input,
.withdraw-address-input,
.claim-code-input,
.chat-input,
.qr-frame,
.address-box,
.memo-box,
.withdraw-result-ref {
  background-color: #dce8ec;
}

.jp-card,
.no-results,
.toast {
  background: rgba(220, 234, 238, .96);
}

.bottom-nav {
  width: calc(100% - 20px);
  max-width: calc(100vw - 20px);
  background: rgba(220, 234, 238, .97);
}

@media (max-width: 760px) {
  body.ax-light-lobby .main,
  body.ax-light-lobby .wrap {
    width: 100%;
    overflow: clip;
  }

  body.ax-light-lobby .hero,
  body.ax-light-lobby #games {
    width: 100%;
  }

  .hero-inner,
  .hero-left,
  .jp-card {
    width: 100%;
    min-width: 0;
  }

  .bottom-nav .nav-item {
    min-width: 0;
  }
}

@media (min-width: 1180px) {
  body.ax-light-lobby .topbar {
    justify-content: flex-end;
  }
}

/* lobby-fresh.css */
/* ============================================================
   AXOM LOBBY V3 — structural redesign
   Full-width discovery dashboard + typographic AXOM startup.
   Loaded after the compatibility/light sheets.
   ============================================================ */

:root {
  --fresh-navy: #102f40;
  --fresh-navy-2: #173f54;
  --fresh-blue: #62b8d5;
  --fresh-blue-soft: #cce7ee;
  --fresh-panel: #e3eff2;
  --fresh-panel-2: #d8e8ec;
  --fresh-line: rgba(20, 65, 82, .13);
  --fresh-lime: #83dc37;
  --fresh-ink: #12232b;
  --fresh-muted: #60757e;
  --fresh-shadow: 0 22px 55px -38px rgba(12, 55, 73, .5);
}

body.ax-fresh-lobby {
  background:
    radial-gradient(950px 520px at 104% -5%, rgba(92, 180, 210, .27), transparent 64%),
    radial-gradient(800px 520px at -10% 38%, rgba(67, 145, 176, .14), transparent 70%),
    #d2e4e9;
}

body.ax-fresh-lobby::before {
  opacity: .7;
  background-image:
    linear-gradient(rgba(31, 81, 99, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 81, 99, .035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(#000 0%, transparent 78%);
  mask-image: linear-gradient(#000 0%, transparent 78%);
}

/* The old desktop rail is replaced by a horizontal product header. */
body.ax-fresh-lobby > .side { display: none !important; }

body.ax-fresh-lobby .main {
  width: 100%;
  max-width: none;
  margin-left: 0 !important;
}

body.ax-fresh-lobby .topbar {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
  padding: calc(10px + env(safe-area-inset-top)) clamp(18px, 4vw, 58px) 10px;
  border-bottom: 1px solid rgba(24, 67, 82, .11);
  background: rgba(215, 232, 237, .88);
  box-shadow: 0 15px 44px -38px rgba(11, 50, 66, .55);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

body.ax-fresh-lobby .topbar .brand {
  display: flex !important;
  min-width: max-content;
}

body.ax-fresh-lobby .topbar .brand-mark {
  width: 34px;
  height: 29px;
}

body.ax-fresh-lobby .topbar .wordmark {
  font-size: 15.5px;
}

.fresh-topnav {
  width: fit-content;
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(23, 66, 83, .1);
  border-radius: 15px;
  background: rgba(229, 240, 243, .72);
  box-shadow: inset 0 1px rgba(255, 255, 255, .55);
}

.fresh-topnav a,
.fresh-topnav button {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #647881;
  font-size: 12px;
  font-weight: 750;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.fresh-topnav a:hover,
.fresh-topnav button:hover {
  color: #1d3844;
  background: rgba(255, 255, 255, .3);
}

.fresh-topnav .active {
  color: #f4fbfd;
  background: var(--fresh-navy);
  box-shadow: 0 8px 18px -12px rgba(10, 46, 61, .72);
}

body.ax-fresh-lobby .top-right { justify-self: end; }

body.ax-fresh-lobby .bal-pill {
  min-height: 44px;
  border-color: rgba(86, 158, 48, .3);
  background: rgba(229, 241, 243, .92);
}

body.ax-fresh-lobby .notification-btn,
body.ax-fresh-lobby .topbar .avatar {
  background: rgba(226, 238, 241, .9);
}

body.ax-fresh-lobby .wrap {
  width: min(1440px, 100%);
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(18px, 2.6vw, 38px) clamp(14px, 3vw, 38px) 60px;
}

/* Welcome deck: dark editorial panel + a light live account card. */
body.ax-fresh-lobby .hero {
  min-height: 300px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(9, 47, 64, .14);
  border-radius: 32px;
  background:
    radial-gradient(circle at 65% 120%, rgba(99, 189, 218, .24), transparent 37%),
    linear-gradient(116deg, #102e3e 0%, #173f54 64%, #9bd3e1 64.2%, #c5e8ef 100%);
  box-shadow: 0 34px 76px -48px rgba(6, 41, 57, .78);
}

body.ax-fresh-lobby .hero::before {
  right: 25%;
  bottom: -100px;
  width: 290px;
  height: 290px;
  border: 48px solid rgba(124, 211, 232, .09);
}

body.ax-fresh-lobby .hero::after {
  right: 31%;
  top: 28px;
  border-color: rgba(160, 221, 236, .16);
  background: rgba(102, 185, 210, .09);
}

body.ax-fresh-lobby .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .72fr);
  gap: clamp(30px, 5vw, 74px);
  align-items: center;
}

body.ax-fresh-lobby .hero-left {
  max-width: 680px;
}

body.ax-fresh-lobby .hero-eyebrow {
  border-color: rgba(154, 218, 234, .24);
  background: rgba(128, 199, 218, .1);
  color: #aee1ed;
}

body.ax-fresh-lobby .hero h1 {
  max-width: 680px;
  color: #f4fbfd;
  font-size: clamp(44px, 5.1vw, 72px);
  line-height: .94;
  letter-spacing: -.06em;
}

body.ax-fresh-lobby .hero h1 .accent { color: #9ee7f4; }

body.ax-fresh-lobby .hero p {
  max-width: 590px;
  color: #b5cbd4;
  font-size: 14px;
}

body.ax-fresh-lobby .hero-cta a.btn-primary,
body.ax-fresh-lobby .hero-cta a.btn-primary:visited {
  border-color: rgba(255, 255, 255, .18);
  background: #eff9fb;
  color: #153442;
  box-shadow: 0 13px 30px -18px rgba(2, 24, 34, .8);
}

body.ax-fresh-lobby .hero-cta a.btn-primary:hover {
  border-color: #fff;
  background: #fff;
  color: #102f40;
}

body.ax-fresh-lobby .hero-shape {
  border-color: rgba(160, 221, 236, .18);
  background: rgba(113, 194, 218, .1);
}

body.ax-fresh-lobby .hero-shape svg { color: #7bd0e4; }

body.ax-fresh-lobby .jp-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 22px;
  background: rgba(223, 240, 244, .91);
  box-shadow: 0 28px 54px -34px rgba(5, 49, 65, .48), inset 0 1px rgba(255, 255, 255, .7);
}

body.ax-fresh-lobby .jp-head { color: #607780; }
body.ax-fresh-lobby .jp-amount { color: #173746; }
body.ax-fresh-lobby .jp-count-row { border-color: rgba(26, 70, 86, .1); }

/* Quick actions are now a primary piece of the information architecture. */
.fresh-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
  margin-top: 14px;
}

.fresh-action {
  min-height: 88px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--fresh-line);
  border-radius: 19px;
  background: rgba(226, 239, 242, .9);
  color: var(--fresh-ink);
  text-align: left;
  box-shadow: var(--fresh-shadow);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.fresh-action:hover {
  transform: translateY(-3px);
  border-color: rgba(43, 118, 146, .25);
  background: #eaf4f6;
}

.fresh-action > span {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #cce6ed;
  color: #267a9a;
}

.fresh-action.rewards > span,
.fresh-action.code > span { background: #e7f4dc; color: #5da62a; }
.fresh-action.activity > span { background: #e3e6f8; color: #6670c5; }
.fresh-action.chat > span { background: #d8eef0; color: #248891; }
.fresh-action.support > span { background: #f4e3b7; color: #8e6617; }
.fresh-action svg { width: 21px; height: 21px; fill: currentColor; }
.fresh-action strong { align-self: end; font-size: 13px; line-height: 1.2; }
.fresh-action small { align-self: start; margin-top: 4px; color: #788b93; font-size: 10px; }

.fresh-command-strip {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.fresh-command-strip .surprise-entry-card {
  min-height: 58px;
  margin: 0;
  border-radius: 17px;
  box-shadow: none;
}

.fresh-command-strip .floor-status {
  margin: 0;
  padding-inline: 10px;
}

/* Two-column content model: discovery canvas and contextual activity rail. */
.fresh-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
  margin-top: 24px;
}

.fresh-catalog-column,
.fresh-activity-column { min-width: 0; }

body.ax-fresh-lobby #games {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.ax-fresh-lobby #games > .sec-head {
  min-height: 48px;
  margin: 0 2px 12px;
}

body.ax-fresh-lobby .sec-head .title {
  color: #142b35;
  font-size: 21px;
}

body.ax-fresh-lobby .sec-head .title::before {
  width: 27px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fresh-lime), var(--fresh-blue));
}

body.ax-fresh-lobby .games-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
  margin-bottom: 13px;
  padding: 12px;
  border: 1px solid var(--fresh-line);
  border-radius: 20px;
  background: rgba(224, 237, 240, .87);
}

body.ax-fresh-lobby .search-box {
  min-height: 47px;
  border-color: rgba(22, 68, 85, .13);
  background: rgba(214, 231, 236, .8);
  box-shadow: none;
}

body.ax-fresh-lobby .games-toolbar .chips {
  grid-column: 1 / -1;
  grid-row: 2;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

body.ax-fresh-lobby .chip {
  flex: none;
  background: #e7f1f3;
}

body.ax-fresh-lobby .chip.active {
  border-color: #9bc6d5;
  background: var(--fresh-navy);
  color: #eff9fb;
}

body.ax-fresh-lobby .catalog-sort-row { align-self: center; }
body.ax-fresh-lobby .catalog-sort { background: #e7f1f3; }

body.ax-fresh-lobby #hotSection,
body.ax-fresh-lobby #recentSection,
body.ax-fresh-lobby #favSection,
body.ax-fresh-lobby #originalsSection,
body.ax-fresh-lobby #tgSection {
  margin-top: 13px !important;
  padding: 17px;
  border: 1px solid var(--fresh-line);
  border-radius: 23px;
  background: rgba(224, 237, 240, .86);
  box-shadow: var(--fresh-shadow);
}

body.ax-fresh-lobby #hotSection {
  background:
    radial-gradient(circle at 92% -20%, rgba(99, 189, 218, .22), transparent 34%),
    var(--fresh-navy);
}

body.ax-fresh-lobby #hotSection .sec-head .title,
body.ax-fresh-lobby #hotSection .sec-head .count { color: #edf9fb; }

body.ax-fresh-lobby #hotGamesRow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  padding: 0;
}

body.ax-fresh-lobby #hotGamesRow .gcard {
  width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #dcecf0;
}

body.ax-fresh-lobby #hotGamesRow .gcard-art { aspect-ratio: 1.35 / 1; }

body.ax-fresh-lobby .tile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.ax-fresh-lobby .gcard {
  border-color: rgba(23, 67, 83, .11);
  border-radius: 18px;
  background: #e6f0f2;
  box-shadow: 0 14px 32px -28px rgba(9, 48, 64, .6);
}

body.ax-fresh-lobby .gcard-info { background: #e6f0f2; }

body.ax-fresh-lobby .gcard-art {
  border-radius: 17px 17px 12px 12px;
  background:
    radial-gradient(circle at 22% 17%, rgba(255, 255, 255, .68) 0 3%, transparent 3.4%),
    radial-gradient(circle at 78% 72%, color-mix(in srgb, var(--a) 23%, transparent) 0 16%, transparent 16.5%),
    linear-gradient(145deg, color-mix(in srgb, var(--a) 13%, #dcecf0), color-mix(in srgb, var(--a) 30%, #dcecf0));
}

body.ax-fresh-lobby .gcard:hover {
  background: #edf5f6;
  box-shadow: 0 22px 42px -28px rgba(9, 48, 64, .6);
}

/* Context rail */
.fresh-activity-column {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 13px;
}

.fresh-activity-column > .section {
  margin: 0;
}

.fresh-activity-column #wins {
  padding: 18px;
  border: 1px solid rgba(8, 43, 58, .18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(88, 179, 209, .2), transparent 35%),
    var(--fresh-navy);
  box-shadow: 0 24px 56px -38px rgba(5, 38, 53, .78);
}

.fresh-activity-column #wins .sec-head .title { color: #f1fafc; font-size: 16px; }
.fresh-activity-column #wins .sec-head .sub { color: #96b2bd; font-size: 9px; }
.fresh-activity-column #wins .sec-head .title::before { width: 17px; }

.fresh-activity-column .wins-table-container {
  max-height: 348px;
  border: 0;
  border-radius: 15px;
  background: rgba(222, 239, 243, .07);
  backdrop-filter: none;
}

.fresh-activity-column .wins-table thead { display: none; }

.fresh-activity-column .wins-table tbody,
.fresh-activity-column .wins-table tr { display: block; }

.fresh-activity-column .wins-table tr {
  position: relative;
  min-height: 62px;
  padding: 10px 88px 9px 10px;
  border-bottom: 1px solid rgba(194, 227, 237, .1);
}

.fresh-activity-column .wins-table td {
  display: block;
  padding: 0;
  border: 0;
}

.fresh-activity-column .wins-table td:nth-child(2) {
  position: absolute;
  top: 13px;
  right: 10px;
  color: #9be060;
  font-size: 11px;
}

.fresh-activity-column .wins-table td:nth-child(3) { margin: 5px 0 0 35px; }
.fresh-activity-column .wins-table td:nth-child(4) { display: none; }
.fresh-activity-column .win-user { color: #eaf7f9; font-size: 11px; }
.fresh-activity-column .win-user .avatar { background: rgba(105, 191, 217, .2); color: #c9eef5; }
.fresh-activity-column .win-game-badge { border: 0; background: transparent; color: #80bdcf; padding: 0; font-size: 9px; }
.fresh-activity-column .ticker-wrap { display: none !important; }

.fresh-activity-column .vip-strip {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(183, 144, 46, .22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(244, 189, 63, .16), transparent 42%),
    #e3edf0;
  box-shadow: var(--fresh-shadow);
}

.fresh-activity-column .vip-strip .vs-crown {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.fresh-activity-column .vip-strip .vs-text { min-width: 0; }
.fresh-activity-column .vip-strip h3 { color: #19333e; font-size: 15px; }
.fresh-activity-column .vip-strip h3 b { color: #a67614; }
.fresh-activity-column .vip-strip p { color: #677c84; font-size: 10.5px; }
.fresh-activity-column .vip-strip > div:last-child { grid-column: 1 / -1; }
.fresh-activity-column .vip-strip .btn { flex: 1; min-height: 38px; }

/* Supporting content becomes a bento system rather than stacked strips. */
body.ax-fresh-lobby #promos {
  margin-top: 30px;
}

body.ax-fresh-lobby .promo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.ax-fresh-lobby .promo-card {
  min-height: 202px;
  padding: 19px;
  border-radius: 23px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--a) 14%, transparent), transparent 42%),
    #e2eef1;
}

body.ax-fresh-lobby #provablyFair {
  margin-top: 24px;
}

body.ax-fresh-lobby .fair-card {
  min-height: 150px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(126, 220, 55, .14), transparent 30%),
    #dcebef;
}

body.ax-fresh-lobby .trust-strip { border-color: rgba(25, 66, 82, .12); }

/* Mobile navigation belongs to the new light-blue shell. */
body.ax-fresh-lobby .bottom-nav {
  border-color: rgba(20, 64, 81, .14);
  background: rgba(218, 233, 237, .96);
  box-shadow: 0 18px 50px -25px rgba(8, 43, 58, .55);
}

body.ax-fresh-lobby .nav-item.active {
  border-color: rgba(83, 150, 47, .3);
  background: #e8f5df;
}

/* Completely new AXOM typographic startup. */
.ax-startup.ax-startup-fresh {
  overflow: hidden;
  background: #0c2837;
  color: #eefafd;
}

.ax-startup.ax-startup-fresh::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 49.9%, rgba(130, 212, 233, .11) 50%, transparent 50.1%),
    linear-gradient(rgba(130, 212, 233, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 212, 233, .045) 1px, transparent 1px),
    radial-gradient(circle at 50% 46%, rgba(75, 163, 194, .2), transparent 46%);
  background-size: auto, 48px 48px, 48px 48px, auto;
  opacity: 1;
  transform: none;
  animation: axFreshGrid 2.8s ease both;
}

.ax-startup.ax-startup-fresh::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -22%;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(178, 234, 245, .13), transparent);
  transform: skewX(-12deg);
  animation: axFreshSweep 2.5s .25s cubic-bezier(.2, .75, .25, 1) both;
}

.ax-startup-fresh .ax-startup-atmosphere { display: none; }

.ax-startup-fresh .ax-startup-inner {
  width: min(820px, 92vw);
  max-width: none;
}

.ax-type-stage {
  position: relative;
  width: 100%;
  padding: 24px;
}

.ax-type-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #6fa9bd;
  font: 700 9px/1 var(--ax-font);
  letter-spacing: .18em;
  opacity: 0;
  animation: axFreshMeta .5s .15s ease forwards;
}

.ax-type-meta i { width: 40px; height: 1px; background: #417f96; }

.ax-type-word {
  display: flex;
  justify-content: center;
  gap: clamp(2px, 1.2vw, 15px);
  margin: 18px 0 9px;
  perspective: 800px;
}

.ax-type-word span {
  display: inline-block;
  color: #edf9fc;
  font: 800 clamp(74px, 18vw, 178px)/.82 var(--ax-display);
  letter-spacing: -.09em;
  opacity: 0;
  transform: translateY(72px) rotateX(-58deg) scale(.82);
  transform-origin: 50% 100%;
  text-shadow: 0 20px 45px rgba(0, 0, 0, .24);
  animation: axFreshLetter .72s calc(.35s + var(--i) * .13s) cubic-bezier(.18, .8, .2, 1.18) forwards;
}

.ax-type-word span:first-child { color: #8cdf45; }
.ax-type-word span:nth-child(3) { color: #93d8e8; }

.ax-type-rule {
  display: grid;
  grid-template-columns: minmax(30px, 1fr) auto minmax(30px, 1fr);
  align-items: center;
  gap: 14px;
  width: min(560px, 82%);
  margin: 0 auto;
  opacity: 0;
  animation: axFreshMeta .55s 1.2s ease forwards;
}

.ax-type-rule i {
  height: 1px;
  background: linear-gradient(90deg, transparent, #5da2b9);
}

.ax-type-rule i:last-child { transform: scaleX(-1); }

.ax-type-rule strong {
  color: #8ebdcb;
  font: 700 11px/1 var(--ax-font);
  letter-spacing: .42em;
}

.ax-type-loading {
  width: min(280px, 70%);
  margin: 34px auto 0;
  color: #7099a8;
  font: 650 9px/1 var(--ax-font);
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: 0;
  animation: axFreshMeta .45s 1.45s ease forwards;
}

.ax-type-loading > span { display: block; margin-bottom: 10px; }
.ax-type-loading > b { height: 2px; display: block; overflow: hidden; background: rgba(141, 203, 220, .12); }
.ax-type-loading > b i { width: 100%; height: 100%; display: block; background: linear-gradient(90deg, #68bdd5, #8cdf45); transform-origin: left; animation: axFreshLoad 1.35s 1.35s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes axFreshGrid {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes axFreshSweep {
  from { transform: translateX(0) skewX(-12deg); }
  to { transform: translateX(760%) skewX(-12deg); }
}

@keyframes axFreshLetter {
  0% { opacity: 0; transform: translateY(72px) rotateX(-58deg) scale(.82); filter: blur(8px); }
  70% { opacity: 1; transform: translateY(-7px) rotateX(5deg) scale(1.025); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes axFreshMeta {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes axFreshLoad {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 1120px) {
  .fresh-topnav a,
  .fresh-topnav button { padding-inline: 10px; }

  .fresh-dashboard-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .fresh-actions { grid-template-columns: repeat(3, 1fr); }
  .fresh-action:nth-child(n + 4) { grid-column: span 1; }
  body.ax-fresh-lobby .promo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .fresh-topnav { display: none; }
  body.ax-fresh-lobby .topbar { grid-template-columns: auto 1fr; }
  body.ax-fresh-lobby .top-right { grid-column: 2; }

  .fresh-dashboard-grid { grid-template-columns: 1fr; }
  .fresh-activity-column {
    position: static;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  }

  .fresh-activity-column #wins { min-width: 0; }
}

@media (max-width: 720px) {
  body.ax-fresh-lobby .chat-toggle {
    display: none !important;
  }

  body.ax-fresh-lobby .fresh-actions {
    scroll-snap-type: x proximity;
  }

  body.ax-fresh-lobby .fresh-action {
    scroll-snap-align: start;
  }

  body.ax-fresh-lobby .wrap { padding: 12px 10px 42px; }
  body.ax-fresh-lobby .topbar { min-height: 66px; padding-inline: 10px; gap: 10px; }

  body.ax-fresh-lobby .hero {
    min-height: 0;
    padding: 27px 18px 18px;
    border-radius: 25px;
    background:
      radial-gradient(circle at 90% 25%, rgba(105, 197, 222, .18), transparent 30%),
      linear-gradient(165deg, #102e3e 0%, #173f54 58%, #bde4ec 58.2%, #ccebf1 100%);
  }

  body.ax-fresh-lobby .hero-inner { grid-template-columns: 1fr; gap: 22px; }
  body.ax-fresh-lobby .hero h1 { max-width: 470px; font-size: clamp(40px, 12vw, 57px); }
  body.ax-fresh-lobby .hero p { color: #b7ccd4; }
  body.ax-fresh-lobby .jp-card { width: 100%; }

  .fresh-actions {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 1px 1px 8px;
    scrollbar-width: none;
  }

  .fresh-action {
    flex: 0 0 164px;
    min-height: 78px;
    padding: 11px;
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .fresh-action > span { width: 38px; height: 38px; }

  .fresh-command-strip { grid-template-columns: 1fr; gap: 6px; }
  .fresh-command-strip .floor-status { overflow-x: auto; }

  body.ax-fresh-lobby .games-toolbar { grid-template-columns: 1fr; }
  body.ax-fresh-lobby .catalog-sort-row { display: none; }
  body.ax-fresh-lobby .games-toolbar .chips { grid-row: 2; }

  body.ax-fresh-lobby #hotGamesRow {
    display: flex;
    overflow-x: auto;
    margin-inline: -17px;
    padding-inline: 17px;
  }

  body.ax-fresh-lobby #hotGamesRow .gcard { flex: 0 0 205px; }
  body.ax-fresh-lobby .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .fresh-activity-column { grid-template-columns: 1fr; }
  .fresh-activity-column #wins { order: 2; }
  .fresh-activity-column > .section:last-child { order: 1; }

  body.ax-fresh-lobby .promo-grid { grid-template-columns: 1fr; }
  body.ax-fresh-lobby .promo-card { min-height: 166px; }

  .ax-type-stage { padding: 12px; }
  .ax-type-word span { font-size: clamp(64px, 22vw, 108px); }
  .ax-type-rule { width: 90%; }
}

@media (max-width: 480px) {
  body.ax-fresh-lobby .topbar .brand-mark { width: 29px; }
  body.ax-fresh-lobby .topbar .wordmark { font-size: 13px; }
  body.ax-fresh-lobby .topbar .avatar { display: grid; }

  body.ax-fresh-lobby .hero h1 { font-size: 41px; }
  body.ax-fresh-lobby .hero p { font-size: 12.5px; }
  body.ax-fresh-lobby .hero::before { display: none; }
  body.ax-fresh-lobby .hero-shape { opacity: .32; }

  .fresh-command-strip .surprise-entry-card { grid-template-columns: 42px 1fr auto; }
  .fresh-command-strip .surprise-entry-btn { grid-column: auto; width: auto; }
  .fresh-command-strip .surprise-entry-copy span { display: none; }

  body.ax-fresh-lobby #hotSection,
  body.ax-fresh-lobby #recentSection,
  body.ax-fresh-lobby #favSection,
  body.ax-fresh-lobby #originalsSection,
  body.ax-fresh-lobby #tgSection { padding: 13px; border-radius: 20px; }

  body.ax-fresh-lobby #hotGamesRow { margin-inline: -13px; padding-inline: 13px; }
  body.ax-fresh-lobby .gcard-info { min-height: 60px; }

  .ax-type-meta { font-size: 7px; }
  .ax-type-word { gap: 4px; }
  .ax-type-word span { font-size: clamp(60px, 23vw, 92px); }
  .ax-type-rule strong { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .ax-type-meta,
  .ax-type-word span,
  .ax-type-rule,
  .ax-type-loading,
  .ax-type-loading > b i {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* lobby-ocean.css */
/* ============================================================
   AXOM OCEAN STEEL THEME
   Final visual layer: blue surfaces only, with explicit wallet
   tokens so legacy dark controls cannot leak into finance flows.
   ============================================================ */

:root {
  --ocean-base: #83afbe;
  --ocean-base-2: #94becb;
  --ocean-shell: #a5cbd5;
  --ocean-panel: #b5d5dd;
  --ocean-panel-2: #96c1cd;
  --ocean-control: #82b3c2;
  --ocean-deep: #1f5a70;
  --ocean-deep-2: #327b92;
  --ocean-ink: #092a37;
  --ocean-ink-2: #244e5d;
  --ocean-muted: #4f7481;
  --ocean-pale: #cfe8ed;
  --ocean-pale-2: #bfe0e7;
  --ocean-line: rgba(9, 51, 66, .2);
  --ocean-line-hi: rgba(9, 51, 66, .34);
  --ocean-lime: #81da39;
  --ocean-lime-deep: #4b971e;
  --ocean-gold: #e0b54b;
  --ocean-shadow: 0 24px 52px -34px rgba(8, 48, 63, .58);
}

html:has(body.ax-fresh-lobby) { color-scheme: light; }

body.ax-fresh-lobby {
  --text: var(--ocean-ink);
  --text-2: var(--ocean-ink-2);
  --muted: var(--ocean-muted);
  --surface: var(--ocean-shell);
  --surface-2: var(--ocean-panel-2);
  --bg: var(--ocean-base);
  --bg-2: var(--ocean-shell);
  --border: var(--ocean-line);
  --border-2: var(--ocean-line-hi);
  --ax-bg0: var(--ocean-panel-2);
  --ax-bg1: var(--ocean-shell);
  --ax-bg2: var(--ocean-control);
  --ax-ink: var(--ocean-ink);
  --ax-ink-2: var(--ocean-ink-2);
  --ax-ink-3: var(--ocean-muted);
  --ax-line: var(--ocean-line);
  --ax-line-hi: var(--ocean-line-hi);
  --ax-champ: #8a651b;
  --ax-champ-hi: #72500d;
  --fresh-panel: var(--ocean-panel);
  --fresh-panel-2: var(--ocean-panel-2);
  --fresh-line: var(--ocean-line);
  --fresh-ink: var(--ocean-ink);
  --fresh-muted: var(--ocean-muted);
  color: var(--ocean-ink);
  background:
    radial-gradient(850px 480px at 102% -4%, rgba(199, 232, 238, .5), transparent 62%),
    radial-gradient(760px 520px at -8% 42%, rgba(45, 118, 145, .2), transparent 68%),
    linear-gradient(145deg, var(--ocean-base-2), var(--ocean-base));
}

body.ax-fresh-lobby::before {
  opacity: .75;
  background-image:
    linear-gradient(rgba(15, 74, 94, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 74, 94, .07) 1px, transparent 1px);
}

body.ax-fresh-lobby .bg-glow {
  background:
    radial-gradient(660px circle at 10% -5%, rgba(198, 231, 238, .3), transparent 58%),
    radial-gradient(630px circle at 102% 18%, rgba(35, 108, 134, .16), transparent 55%);
}

body.ax-fresh-lobby .bg-grid { opacity: .2; }

/* Product header */
body.ax-fresh-lobby .topbar {
  border-color: var(--ocean-line);
  background: rgba(133, 179, 193, .94);
  box-shadow: 0 14px 34px -28px rgba(8, 47, 62, .62);
}

body.ax-fresh-lobby .fresh-topnav {
  border-color: var(--ocean-line);
  background: rgba(170, 207, 216, .72);
  box-shadow: inset 0 1px rgba(207, 232, 237, .58);
}

body.ax-fresh-lobby .fresh-topnav a,
body.ax-fresh-lobby .fresh-topnav button { color: #365e6c; }

body.ax-fresh-lobby .fresh-topnav a:hover,
body.ax-fresh-lobby .fresh-topnav button:hover {
  color: var(--ocean-ink);
  background: rgba(111, 168, 185, .36);
}

body.ax-fresh-lobby .fresh-topnav .active {
  color: var(--ocean-pale);
  background: var(--ocean-deep);
}

body.ax-fresh-lobby .bal-pill,
body.ax-fresh-lobby .notification-btn,
body.ax-fresh-lobby .topbar .avatar {
  border-color: var(--ocean-line-hi);
  background: #9bc4cf;
  color: var(--ocean-ink);
  box-shadow: none;
}

/* Welcome deck */
body.ax-fresh-lobby .hero {
  border-color: rgba(7, 52, 69, .28);
  background:
    radial-gradient(circle at 78% 10%, rgba(178, 224, 233, .35), transparent 24%),
    linear-gradient(118deg, #286d85 0%, #3989a0 63%, #76b3c3 63.2%, #8fc3cf 100%);
  box-shadow: 0 34px 68px -46px rgba(7, 48, 64, .72);
}

body.ax-fresh-lobby .hero::before { border-color: rgba(178, 223, 232, .16); }

/* The welcome deck is a permanent lobby anchor, including code-claim launches.
   Its former jackpot card is mounted above Provably Fair by the controller. */
body.ax-fresh-lobby #hero { display: block !important; }
body.ax-fresh-lobby #hero .jp-card { display: none; }
body.ax-fresh-lobby .wrap > .fresh-actions { display: none; }
body.ax-fresh-lobby .fresh-catalog-column > .fresh-actions {
  display: grid;
  margin: 24px 0 0;
}
body.ax-fresh-lobby .fresh-catalog-column > .floor-status { margin: 12px 0 0; }

body.ax-fresh-lobby .fresh-dashboard-grid { margin-top: 14px; }

body.ax-fresh-lobby .jackpot-results-section {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  scroll-margin-top: 88px;
}
body.ax-fresh-lobby .jackpot-inline-mount .jp-card {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 15px 16px;
  border-radius: 18px;
  transition: box-shadow .3s ease, transform .3s ease;
}
body.ax-fresh-lobby .jackpot-results-section.is-highlighted .jp-card {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(129, 218, 57, .24), var(--ocean-shadow);
}
body.ax-fresh-lobby .jackpot-inline-mount .jp-amount {
  margin: 7px 0 8px;
  font-size: clamp(25px, 6vw, 34px);
}
body.ax-fresh-lobby .jackpot-inline-mount .jp-count-row { padding: 7px 10px; }
body.ax-fresh-lobby .jackpot-inline-mount .jp-note { margin-top: 7px; }

@media (min-width: 721px) {
  body.ax-fresh-lobby .jackpot-inline-mount .jp-card {
    display: grid;
    grid-template-columns: minmax(150px, .8fr) 1fr 1fr;
    gap: 8px 10px;
    align-items: center;
  }
  body.ax-fresh-lobby .jackpot-inline-mount .jp-head { grid-column: 1 / -1; }
  body.ax-fresh-lobby .jackpot-inline-mount .jp-amount { grid-row: 2 / 4; margin: 0; }
  body.ax-fresh-lobby .jackpot-inline-mount #jackpotProgress { grid-column: 2 / -1; margin: 0 !important; }
  body.ax-fresh-lobby .jackpot-inline-mount #jackpotWinner { margin: 0 !important; }
  body.ax-fresh-lobby .jackpot-inline-mount #jackpotVerify { margin: 0 !important; }
  body.ax-fresh-lobby .jackpot-inline-mount .jp-note { grid-column: 1 / -1; margin: 0; }
}

body.ax-fresh-lobby .jackpot-float {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 121;
  display: grid;
  grid-template-columns: 35px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 9px;
  min-width: 142px;
  min-height: 53px;
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(52, 111, 128, .38);
  border-radius: 17px;
  color: #184756;
  background: linear-gradient(145deg, #c3e1e6, #9fcbd4);
  box-shadow: 0 14px 35px rgba(7, 53, 68, .25), inset 0 1px rgba(222, 244, 246, .66);
  cursor: pointer;
}

body.ax-fresh-lobby .jackpot-float:active { transform: scale(.97); }
body.ax-fresh-lobby .jackpot-float-mark {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 12px;
  color: #153b45;
  background: linear-gradient(145deg, #b8ee8d, #7bd441);
  font-weight: 950;
}
body.ax-fresh-lobby .jackpot-float-copy { display: flex; align-items: baseline; gap: 6px; }
body.ax-fresh-lobby .jackpot-float-copy small { color: #537a84; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
body.ax-fresh-lobby .jackpot-float-copy strong { color: #123d4b; font-size: 13px; }
body.ax-fresh-lobby .jackpot-float-time { color: #4f7781; font: 800 9px/1 ui-monospace, monospace; }

body.ax-fresh-lobby .jackpot-floating-layer {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  place-items: end center;
  padding: 16px 13px max(14px, env(safe-area-inset-bottom));
  background: rgba(10, 48, 60, .56);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
body.ax-fresh-lobby .jackpot-floating-layer.is-open { display: grid; }
body.ax-fresh-lobby .jackpot-floating-sheet {
  position: relative;
  width: min(100%, 430px);
  border: 1px solid rgba(51, 112, 128, .34);
  border-radius: 27px;
  padding: 16px;
  background: linear-gradient(155deg, #cde7eb, #a7d1d9);
  box-shadow: 0 26px 68px rgba(7, 45, 58, .37);
}
body.ax-fresh-lobby .jackpot-floating-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(49, 108, 122, .28);
  border-radius: 13px;
  color: #174858;
  background: #9fc8d1;
  font: 500 24px/1 system-ui, sans-serif;
  cursor: pointer;
}
body.ax-fresh-lobby .jackpot-floating-mount .jp-card {
  width: 100%;
  min-width: 0;
  padding: 21px;
  border-radius: 20px;
  background: #b7d9df;
  box-shadow: none;
}
body.ax-fresh-lobby .jackpot-floating-mount .jp-head { padding-right: 47px; }
body.ax-fresh-lobby .jackpot-floating-mount .jp-amount {
  color: #123e4c;
  background: none;
  -webkit-text-fill-color: #123e4c;
  filter: none;
}
body.ax-fresh-lobby .jackpot-floating-mount .jp-count-row { background: #a8ced6; }

@media (min-width: 721px) {
  body.ax-fresh-lobby .jackpot-floating-layer { place-items: center; }
}

@media (max-width: 720px) {
  body.ax-fresh-lobby .jackpot-float {
    right: 12px;
    bottom: calc(var(--nav-h, 70px) + 13px + env(safe-area-inset-bottom));
  }
  body.ax-fresh-lobby .fresh-command-strip { margin-top: 4px; }
  body.ax-fresh-lobby .fresh-dashboard-grid { margin-top: 10px; }
}
body.ax-fresh-lobby .hero::after {
  border-color: rgba(186, 226, 234, .26);
  background: rgba(154, 208, 220, .18);
}

body.ax-fresh-lobby .hero-eyebrow {
  border-color: rgba(195, 229, 236, .36);
  background: rgba(39, 102, 124, .4);
  color: var(--ocean-pale-2);
}

body.ax-fresh-lobby .hero h1 { color: var(--ocean-pale); }
body.ax-fresh-lobby .hero h1 .accent { color: #a9e5ec; }
body.ax-fresh-lobby .hero p { color: #b8dce3; }

body.ax-fresh-lobby .hero-cta a.btn-primary,
body.ax-fresh-lobby .hero-cta a.btn-primary:visited {
  border-color: rgba(10, 60, 77, .3);
  background: #8fd0dc;
  color: var(--ocean-ink);
  box-shadow: 0 13px 28px -19px rgba(5, 42, 56, .72);
}

body.ax-fresh-lobby .hero-cta a.btn-primary:hover {
  border-color: #4a91a6;
  background: #9bd8e2;
  color: var(--ocean-ink);
}

body.ax-fresh-lobby .jp-card {
  border-color: rgba(18, 75, 94, .28);
  background: rgba(157, 201, 211, .94);
  box-shadow: 0 24px 48px -34px rgba(5, 45, 61, .58), inset 0 1px rgba(200, 229, 235, .6);
}

body.ax-fresh-lobby .jp-head { color: #345f6e; }
body.ax-fresh-lobby .jp-amount { color: var(--ocean-ink); }
body.ax-fresh-lobby .jp-count-row { border-color: var(--ocean-line); }

/* Main information surfaces */
body.ax-fresh-lobby .fresh-action,
body.ax-fresh-lobby .fresh-command-strip .surprise-entry-card,
body.ax-fresh-lobby .games-toolbar,
body.ax-fresh-lobby #recentSection,
body.ax-fresh-lobby #favSection,
body.ax-fresh-lobby #originalsSection,
body.ax-fresh-lobby #tgSection,
body.ax-fresh-lobby .promo-card,
body.ax-fresh-lobby .fair-card,
body.ax-fresh-lobby .fresh-activity-column .vip-strip {
  border-color: var(--ocean-line);
  background-color: var(--ocean-panel);
  box-shadow: var(--ocean-shadow);
}

body.ax-fresh-lobby .fresh-action:hover,
body.ax-fresh-lobby .gcard:hover,
body.ax-fresh-lobby .chip:hover { background-color: #c0dce3; }

body.ax-fresh-lobby .fresh-action > span {
  background: #81b8c7;
  color: #144f65;
}

body.ax-fresh-lobby .fresh-action.rewards > span,
body.ax-fresh-lobby .fresh-action.code > span {
  background: #9acb83;
  color: #356d1b;
}

body.ax-fresh-lobby .fresh-action.activity > span {
  background: #929fcb;
  color: #344279;
}

body.ax-fresh-lobby .fresh-action.chat > span {
  background: #77b8c3;
  color: #155865;
}

body.ax-fresh-lobby .fresh-action.support > span {
  background: #d7b966;
  color: #62450d;
}

body.ax-fresh-lobby .fresh-action small { color: var(--ocean-muted); }

body.ax-fresh-lobby .floor-status,
body.ax-fresh-lobby .search-box,
body.ax-fresh-lobby .chip,
body.ax-fresh-lobby .catalog-sort {
  border-color: var(--ocean-line);
  background: var(--ocean-panel-2);
  color: var(--ocean-ink-2);
}

body.ax-fresh-lobby .search-box input,
body.ax-fresh-lobby .catalog-sort select {
  color: var(--ocean-ink);
  background: transparent;
}

body.ax-fresh-lobby .search-box input::placeholder { color: #547987; }

body.ax-fresh-lobby .chip.active {
  border-color: var(--ocean-deep);
  background: var(--ocean-deep);
  color: var(--ocean-pale);
}

body.ax-fresh-lobby .gcard,
body.ax-fresh-lobby .gcard-info,
body.ax-fresh-lobby #hotGamesRow .gcard {
  border-color: var(--ocean-line);
  background: #a8ced7;
}

body.ax-fresh-lobby .gcard .badge,
body.ax-fresh-lobby .gcard .fav-btn,
body.ax-fresh-lobby .gcard .game-info-btn {
  border-color: rgba(9, 51, 66, .28);
  background: rgba(104, 164, 181, .92);
  color: var(--ocean-ink);
}

body.ax-fresh-lobby .gcard .fav-btn svg { fill: var(--ocean-ink-2); }

body.ax-fresh-lobby .gcard-art {
  background:
    radial-gradient(circle at 22% 17%, rgba(199, 230, 236, .62) 0 3%, transparent 3.4%),
    radial-gradient(circle at 78% 72%, color-mix(in srgb, var(--a) 27%, transparent) 0 16%, transparent 16.5%),
    linear-gradient(145deg, color-mix(in srgb, var(--a) 18%, #91bfca), color-mix(in srgb, var(--a) 36%, #a1cad4));
}

body.ax-fresh-lobby #hotSection,
body.ax-fresh-lobby .fresh-activity-column #wins {
  border-color: rgba(9, 50, 66, .3);
  background:
    radial-gradient(circle at 100% 0, rgba(113, 190, 210, .27), transparent 35%),
    var(--ocean-deep);
}

body.ax-fresh-lobby #hotSection .sec-head .title,
body.ax-fresh-lobby #hotSection .sec-head .count,
body.ax-fresh-lobby .fresh-activity-column #wins .sec-head .title,
body.ax-fresh-lobby .fresh-activity-column .win-user { color: var(--ocean-pale); }

body.ax-fresh-lobby .fresh-activity-column .wins-table-container {
  background: rgba(134, 192, 207, .14);
}

body.ax-fresh-lobby .fresh-activity-column .wins-table tr { border-color: rgba(175, 218, 227, .17); }

body.ax-fresh-lobby .promo-card {
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--a) 18%, transparent), transparent 42%),
    var(--ocean-panel);
}

body.ax-fresh-lobby .fair-card {
  background:
    radial-gradient(circle at 100% 0, rgba(119, 193, 72, .2), transparent 30%),
    #a9ced7;
}

body.ax-fresh-lobby .bottom-nav {
  border-color: var(--ocean-line-hi);
  background: rgba(146, 190, 201, .97);
  box-shadow: 0 18px 44px -25px rgba(7, 48, 63, .6);
}

body.ax-fresh-lobby .nav-item { color: #4d707b; }
body.ax-fresh-lobby .nav-item.active {
  border-color: rgba(76, 139, 39, .4);
  background: #a6cf95;
  color: #315f1a;
}

body.ax-fresh-lobby .nav-deposit-btn {
  border-color: #5fa52d;
  background: var(--ocean-lime);
}

/* All account surfaces use the same medium-blue language. */
body.ax-fresh-lobby .profile-sidebar,
body.ax-fresh-lobby .chat-sidebar,
body.ax-fresh-lobby .history-page,
body.ax-fresh-lobby .wallet-popup,
body.ax-fresh-lobby .modal-container,
body.ax-fresh-lobby .claim-modal,
body.ax-fresh-lobby .game-launch-inner {
  border-color: var(--ocean-line-hi);
  background: var(--ocean-shell);
  color: var(--ocean-ink);
  box-shadow: 0 30px 72px -30px rgba(7, 44, 58, .58);
}

body.ax-fresh-lobby .profile-header-section,
body.ax-fresh-lobby .chat-header,
body.ax-fresh-lobby .modal-header,
body.ax-fresh-lobby .claim-modal .modal-header,
body.ax-fresh-lobby .chat-input-area {
  border-color: var(--ocean-line);
  background: #92bdc9;
}

body.ax-fresh-lobby .profile-close,
body.ax-fresh-lobby .modal-close,
body.ax-fresh-lobby .chat-close,
body.ax-fresh-lobby .modal-back-btn,
body.ax-fresh-lobby .quick-amount-btn,
body.ax-fresh-lobby .copy-btn,
body.ax-fresh-lobby .history-toggle,
body.ax-fresh-lobby .history-tab,
body.ax-fresh-lobby .seg button,
body.ax-fresh-lobby .load-more-btn {
  border-color: var(--ocean-line-hi);
  background: #83b3c1;
  color: var(--ocean-ink);
}

body.ax-fresh-lobby .vip-tier-icon,
body.ax-fresh-lobby .tier-row .t-ic,
body.ax-fresh-lobby .chat-message.system .msg-text,
body.ax-fresh-lobby .chat-commands-hint span {
  border-color: var(--ocean-line);
  background: #89b8c5;
  color: var(--ocean-ink-2);
}

body.ax-fresh-lobby .profile-overlay,
body.ax-fresh-lobby .chat-overlay,
body.ax-fresh-lobby .wallet-popup-overlay,
body.ax-fresh-lobby .modal-overlay {
  background: rgba(31, 78, 94, .48);
  backdrop-filter: blur(7px) saturate(115%);
}

body.ax-fresh-lobby .toast {
  border-color: var(--ocean-line-hi);
  background: #8bb9c6;
  color: var(--ocean-ink);
}

body.ax-fresh-lobby .chat-input,
body.ax-fresh-lobby .claim-code-input,
body.ax-fresh-lobby #histSearchInput {
  border-color: var(--ocean-line-hi);
  background: #88b6c4;
  color: var(--ocean-ink);
}

/* Deposit + withdrawal: explicit finance theme */
body.ax-fresh-lobby #depositModal,
body.ax-fresh-lobby #withdrawModal {
  background: rgba(30, 75, 91, .5);
  backdrop-filter: blur(8px) saturate(110%);
}

body.ax-fresh-lobby #depositModal .wallet-modal,
body.ax-fresh-lobby #withdrawModal .wallet-modal {
  --text: var(--ocean-ink);
  --text-2: var(--ocean-ink-2);
  --muted: var(--ocean-muted);
  --surface-2: var(--ocean-panel-2);
  --bg-2: var(--ocean-shell);
  --border: var(--ocean-line);
  --border-2: var(--ocean-line-hi);
  --ax-bg0: var(--ocean-panel-2);
  --ax-bg1: var(--ocean-shell);
  --ax-bg2: var(--ocean-control);
  --ax-ink: var(--ocean-ink);
  --ax-ink-2: var(--ocean-ink-2);
  --ax-ink-3: var(--ocean-muted);
  --ax-line: var(--ocean-line);
  --ax-line-hi: var(--ocean-line-hi);
  border-color: #6798a8;
  background: var(--ocean-shell);
  color: var(--ocean-ink);
  box-shadow: 0 30px 70px -28px rgba(5, 42, 56, .65);
}

body.ax-fresh-lobby #depositModal .modal-header,
body.ax-fresh-lobby #withdrawModal .modal-header {
  border-bottom: 1px solid var(--ocean-line);
  background:
    radial-gradient(circle at 84% -30%, rgba(198, 231, 237, .44), transparent 38%),
    #8ab8c5;
}

body.ax-fresh-lobby #depositModal .modal-title,
body.ax-fresh-lobby #withdrawModal .modal-title,
body.ax-fresh-lobby #depositModal .wallet-heading p,
body.ax-fresh-lobby #withdrawModal .wallet-heading p { color: var(--ocean-ink); }

body.ax-fresh-lobby #depositModal .modal-close,
body.ax-fresh-lobby #withdrawModal .modal-close {
  border-color: var(--ocean-line-hi);
  background: #a5cdd6;
  color: var(--ocean-ink);
}

body.ax-fresh-lobby #depositModal .modal-close svg,
body.ax-fresh-lobby #withdrawModal .modal-close svg { fill: var(--ocean-ink-2); }

body.ax-fresh-lobby #depositModal .modal-grabber,
body.ax-fresh-lobby #withdrawModal .modal-grabber { background: #638d9a; }

body.ax-fresh-lobby #depositModal .wallet-tabs {
  border-color: var(--ocean-line);
  background: #91bdc8;
}

body.ax-fresh-lobby #depositModal .wallet-tab { color: #4c717e; }
body.ax-fresh-lobby #depositModal .wallet-tab.active { color: var(--ocean-ink); }
body.ax-fresh-lobby #depositModal .wallet-tab.active::after {
  background: linear-gradient(90deg, var(--ocean-lime-deep), #25869c);
}

body.ax-fresh-lobby #depositModal .wallet-modal-body,
body.ax-fresh-lobby #withdrawModal .wallet-modal-body { background: var(--ocean-shell); }

body.ax-fresh-lobby #depositModal .wallet-panel,
body.ax-fresh-lobby #withdrawModal .wallet-panel {
  border-color: var(--ocean-line);
  background: linear-gradient(145deg, #b3d3dc, #9fc7d2);
  box-shadow: inset 0 1px rgba(203, 231, 236, .55);
}

body.ax-fresh-lobby #depositModal .wallet-section-head strong,
body.ax-fresh-lobby #withdrawModal .wallet-section-head strong,
body.ax-fresh-lobby #depositModal .wallet-step-head strong,
body.ax-fresh-lobby #withdrawModal .wallet-step-head strong,
body.ax-fresh-lobby #depositModal .mc-name,
body.ax-fresh-lobby #withdrawModal .mc-name { color: var(--ocean-ink); }

body.ax-fresh-lobby #depositModal .wallet-section-head span,
body.ax-fresh-lobby #withdrawModal .wallet-section-head span,
body.ax-fresh-lobby #depositModal .wallet-field-label,
body.ax-fresh-lobby #withdrawModal .wallet-field-label,
body.ax-fresh-lobby #depositModal .wallet-form-label,
body.ax-fresh-lobby #withdrawModal .wallet-form-label,
body.ax-fresh-lobby #depositModal .mc-net,
body.ax-fresh-lobby #withdrawModal .mc-net { color: var(--ocean-ink-2); }

body.ax-fresh-lobby #depositModal .wallet-secure,
body.ax-fresh-lobby #withdrawModal .wallet-secure {
  border-color: rgba(67, 139, 30, .34);
  background: #a4cf92;
  color: #315f1a !important;
}

body.ax-fresh-lobby #depositModal .wallet-asset-chip,
body.ax-fresh-lobby #withdrawModal .wallet-asset-chip,
body.ax-fresh-lobby #depositModal .method-card,
body.ax-fresh-lobby #withdrawModal .method-card,
body.ax-fresh-lobby #depositModal .wallet-step-head {
  border-color: var(--ocean-line);
  background: #8fbcca;
  color: var(--ocean-ink);
}

body.ax-fresh-lobby #depositModal .wallet-asset-chip:hover,
body.ax-fresh-lobby #depositModal .wallet-asset-chip.active,
body.ax-fresh-lobby #withdrawModal .wallet-asset-chip:hover,
body.ax-fresh-lobby #withdrawModal .wallet-asset-chip.active,
body.ax-fresh-lobby #depositModal .method-card.selected,
body.ax-fresh-lobby #withdrawModal .method-card.selected {
  border-color: #4e9825;
  background: #a5cf94;
  color: #214d13;
  box-shadow: 0 0 0 2px rgba(75, 151, 30, .14);
}

body.ax-fresh-lobby #depositModal .coin-ic.mono::after,
body.ax-fresh-lobby #withdrawModal .coin-ic.mono::after { color: var(--ocean-pale); }

body.ax-fresh-lobby #depositModal .deposit-selector-card {
  border-color: var(--ocean-line-hi);
  background: #80b1c0;
  color: var(--ocean-ink);
}

body.ax-fresh-lobby #depositModal .deposit-selector-card:hover {
  border-color: #3f899e;
  background: #8dc0cd;
}

body.ax-fresh-lobby #depositModal .deposit-selector-label { color: #3d6573; }
body.ax-fresh-lobby #depositModal .deposit-selector-value strong { color: var(--ocean-ink); }
body.ax-fresh-lobby #depositModal .deposit-selector-chevron { fill: #315c6b; }

body.ax-fresh-lobby #depositModal .qr-frame {
  border: 1px solid var(--ocean-line-hi);
  background: #94c1cc;
  box-shadow: 0 20px 38px -25px rgba(5, 45, 59, .62);
}

body.ax-fresh-lobby #depositModal .qr-frame img {
  border-radius: 8px;
  mix-blend-mode: multiply;
  filter: contrast(1.14);
}

body.ax-fresh-lobby #depositModal .address-box,
body.ax-fresh-lobby #depositModal .memo-box {
  border-color: var(--ocean-line);
  background: #91bdc8;
}

body.ax-fresh-lobby #depositModal .address-label { color: #456b78; }
body.ax-fresh-lobby #depositModal .address-value { color: var(--ocean-ink); }

body.ax-fresh-lobby #depositModal .copy-btn {
  border-color: var(--ocean-line-hi);
  background: #78aab9;
  color: var(--ocean-ink);
}

body.ax-fresh-lobby #depositModal .network-info {
  border-color: rgba(29, 112, 137, .35);
  background: #8fc5d0;
  color: #174e61;
}

body.ax-fresh-lobby #depositModal .deposit-warning {
  border-color: rgba(152, 105, 16, .35);
  background: #c6c189;
  color: #68460b;
}

body.ax-fresh-lobby #depositModal .wallet-note,
body.ax-fresh-lobby #withdrawModal .wallet-note {
  border-color: rgba(46, 115, 26, .32);
  background: #a6cc98;
  color: #28511a;
}

body.ax-fresh-lobby #depositModal .deposit-network-overlay {
  background: rgba(41, 86, 101, .5);
  backdrop-filter: blur(7px);
}

body.ax-fresh-lobby #depositModal .deposit-network-sheet {
  border-color: #5e91a2;
  background: #a7ccd5;
  color: var(--ocean-ink);
  box-shadow: 0 26px 58px -24px rgba(5, 42, 56, .68);
}

body.ax-fresh-lobby #depositModal .deposit-network-sheet-head,
body.ax-fresh-lobby #depositModal .deposit-choice-footer { border-color: var(--ocean-line); }

body.ax-fresh-lobby #depositModal .deposit-network-close,
body.ax-fresh-lobby #depositModal .deposit-choice-footer button {
  border-color: var(--ocean-line-hi);
  background: #83b4c2;
  color: var(--ocean-ink);
}

body.ax-fresh-lobby #depositModal .deposit-network-option {
  color: var(--ocean-ink);
  background: transparent;
}

body.ax-fresh-lobby #depositModal .deposit-network-option:hover { background: #94c0cb; }
body.ax-fresh-lobby #depositModal .deposit-network-option.selected {
  border-color: #4e9825;
  background: #a5cf94;
}

body.ax-fresh-lobby #depositModal .deposit-network-option-copy span { color: var(--ocean-ink-2); }

body.ax-fresh-lobby #depositModal .deposit-terms-link {
  border-color: rgba(117, 79, 11, .38);
  background: #c5b879;
  color: #63440c;
}

body.ax-fresh-lobby #depositModal .withdraw-amount-input,
body.ax-fresh-lobby #withdrawModal .withdraw-amount-input,
body.ax-fresh-lobby #withdrawModal .withdraw-address-input {
  -webkit-text-fill-color: var(--ocean-ink);
  border-color: var(--ocean-line-hi);
  background: #82b3c2;
  color: var(--ocean-ink);
  caret-color: var(--ocean-deep);
  opacity: 1;
}

body.ax-fresh-lobby #depositModal .withdraw-amount-input::placeholder,
body.ax-fresh-lobby #withdrawModal .withdraw-amount-input::placeholder,
body.ax-fresh-lobby #withdrawModal .withdraw-address-input::placeholder {
  -webkit-text-fill-color: #4c7280;
  color: #4c7280;
  opacity: 1;
}

body.ax-fresh-lobby #depositModal .withdraw-amount-input:focus,
body.ax-fresh-lobby #withdrawModal .withdraw-amount-input:focus,
body.ax-fresh-lobby #withdrawModal .withdraw-address-input:focus {
  border-color: #397f94;
  box-shadow: 0 0 0 4px rgba(34, 113, 139, .18);
}

body.ax-fresh-lobby #withdrawModal .withdraw-stepper > i { background: var(--ocean-line-hi); }
body.ax-fresh-lobby #withdrawModal .withdraw-step { color: #557783; }
body.ax-fresh-lobby #withdrawModal .withdraw-step span {
  border-color: var(--ocean-line-hi);
  background: #82b2c0;
  color: var(--ocean-ink-2);
}

body.ax-fresh-lobby #withdrawModal .withdraw-step.active,
body.ax-fresh-lobby #withdrawModal .withdraw-step.complete { color: #496f1e; }

body.ax-fresh-lobby #withdrawModal .withdraw-step.active span,
body.ax-fresh-lobby #withdrawModal .withdraw-step.complete span {
  border-color: #57982e;
  background: #9dcc8a;
  color: #315d19;
}

body.ax-fresh-lobby #withdrawModal .wallet-balance-banner {
  border-color: rgba(122, 86, 14, .3);
  background: linear-gradient(135deg, #c7bd7f, #9fc5ba);
}

body.ax-fresh-lobby #withdrawModal .wallet-balance-banner span { color: #5f551e; }
body.ax-fresh-lobby #withdrawModal .wallet-balance-banner strong { color: #62440c; }

body.ax-fresh-lobby #withdrawModal .quick-amount-btn,
body.ax-fresh-lobby #withdrawModal .modal-back-btn,
body.ax-fresh-lobby #withdrawModal .withdraw-review-head button {
  border-color: var(--ocean-line-hi);
  background: #82b3c2;
  color: var(--ocean-ink);
}

body.ax-fresh-lobby #withdrawModal .withdraw-summary,
body.ax-fresh-lobby #withdrawModal .withdraw-result-ref,
body.ax-fresh-lobby #withdrawModal .withdraw-review-address {
  border-color: var(--ocean-line);
  background: #8fbcc8;
  color: var(--ocean-ink);
}

body.ax-fresh-lobby #withdrawModal .summary-row .label,
body.ax-fresh-lobby #withdrawModal .withdraw-review-head span,
body.ax-fresh-lobby #withdrawModal .withdraw-review-address span,
body.ax-fresh-lobby #withdrawModal .withdraw-otp-help { color: var(--ocean-ink-2); }

body.ax-fresh-lobby #withdrawModal .summary-row .value,
body.ax-fresh-lobby #withdrawModal .withdraw-review-head strong,
body.ax-fresh-lobby #withdrawModal .withdraw-review-address strong,
body.ax-fresh-lobby #withdrawModal .withdraw-result-stage h3,
body.ax-fresh-lobby #withdrawModal .withdraw-result-ref strong { color: var(--ocean-ink); }

body.ax-fresh-lobby #withdrawModal .confirm-check {
  border: 1px solid var(--ocean-line);
  border-radius: 12px;
  padding: 12px;
  background: #91bdc8;
  color: var(--ocean-ink-2);
}

body.ax-fresh-lobby #withdrawModal .withdraw-result-icon {
  border-color: #6f8d27;
  background: #a9c882;
  color: #456516;
}

body.ax-fresh-lobby #withdrawModal .withdraw-result-stage p,
body.ax-fresh-lobby #withdrawModal .withdraw-result-ref span { color: var(--ocean-ink-2); }

body.ax-fresh-lobby #depositModal .withdraw-submit-btn,
body.ax-fresh-lobby #withdrawModal .withdraw-submit-btn,
body.ax-fresh-lobby .wallet-deposit-btn {
  border: 1px solid #5aa827;
  background: linear-gradient(135deg, #91df4c, #70c92f);
  color: #15370a;
  box-shadow: 0 14px 28px -20px rgba(49, 105, 18, .7);
}

body.ax-fresh-lobby .wallet-withdraw-btn {
  border: 1px solid #9a7420;
  background: #d0ae54;
  color: #4c3509;
}

/* QR code needs contrast, but the source image's light pixels are blended
   into the blue plate so the wallet never presents a white card. */
body.ax-fresh-lobby #depositQR { background: #94c1cc; }

@media (max-width: 720px) {
  body.ax-fresh-lobby .hero {
    background:
      radial-gradient(circle at 90% 25%, rgba(162, 216, 227, .28), transparent 30%),
      linear-gradient(165deg, #286d85 0%, #438fa4 58%, #83b9c6 58.2%, #96c6d0 100%);
  }

  body.ax-fresh-lobby #depositModal,
  body.ax-fresh-lobby #withdrawModal { background: rgba(27, 70, 85, .46); }
}

/* Bright-v1 cover system: preserve the generated color and keep the title / AXOMS
   rails clear at every card size. Availability is communicated by the badge and
   information rail, never by washing out the artwork. */
body.ax-fresh-lobby .gcard-art,
body.ax-fresh-lobby #hotGamesRow .gcard-art,
body.ax-fresh-lobby .hrow .gcard-art {
  aspect-ratio: 1 / 1;
}

body.ax-fresh-lobby .gcard-art > img,
body.ax-fresh-lobby .gcard.maintenance .gcard-art > img,
body.ax-fresh-lobby .gcard.soon .gcard-art > img {
  filter: none;
  opacity: 1;
}

body.ax-fresh-lobby .gcard.maintenance .gcard-art,
body.ax-fresh-lobby .gcard.soon .gcard-art {
  filter: none;
}

body.ax-fresh-lobby .gcard-art::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(18, 12, 63, .30) 0%, transparent 25%),
    linear-gradient(0deg, rgba(18, 12, 63, .30) 0%, transparent 22%);
}

body.ax-fresh-lobby .gcard .badge { top: 43px; left: 8px; }
body.ax-fresh-lobby .gcard .fav-btn { top: 42px; right: 8px; }
body.ax-fresh-lobby .gcard .game-info-btn { right: 8px; bottom: 34px; }

/* portal-accessibility.css */
/* Shared portal interactions, applied after the current lobby theme. */
body { -webkit-user-select: text; user-select: text; }
html { touch-action: pan-x pan-y pinch-zoom; }
button, a, input, select, textarea, [tabindex] { touch-action: manipulation; }
:focus-visible { outline: 3px solid #12617b; outline-offset: 3px; }
.bal-pill { font: inherit; color: inherit; }
.account-settings-btn { display: flex; width: calc(100% - 44px); margin: 18px 22px; }
body.ax-fresh-lobby.account-compact .tile-grid { gap: 8px; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
/* Override the shared shell's body.ax-body > * rule for actual layers. */
body.ax-body > .bottom-nav { z-index: 100; }
body.ax-body > .profile-overlay { z-index: 200; }
body.ax-body > .profile-sidebar,
body.ax-body > .chat-sidebar { z-index: 201; }
body.ax-body > .history-page { z-index: 300; }
body.ax-body > .modal-overlay { z-index: 1000; }
.balance-freshness {
    display: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    padding: 10px 8px;
    min-height: 44px;
    cursor: pointer;
}
.balance-freshness[data-state="stale"] { display: inline-block; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
