/* Velvet Comet v2 design system.
   Luxury vault: velvet black, deep violet, minted gold, diamond white, ruby and emerald accents.
   Loaded after platform.css: it skins the platform's semantic classes (topbar, wallet-pill, btn, panel, game-card,
   auth-card, admin...) and defines the SDK components (vc-toast, vc-modal, vc-bet, vc-bigwin, vc-float...).
   Phone-first; no horizontal scroll at 360 px; visible focus; prefers-reduced-motion respected. */

:root {
  --vc-black: #06030a;
  --vc-velvet: #0f0717;
  --vc-velvet-2: #170b24;
  --vc-violet: #2a0f47;
  --vc-violet-2: #3f1a6b;
  --vc-violet-glow: #8a4dff;
  --vc-gold: #e9bf5b;
  --vc-gold-hi: #fff0b8;
  --vc-gold-mid: #d9a43a;
  --vc-gold-deep: #7a4a10;
  --vc-diamond: #f3f6ff;
  --vc-ruby: #e3184a;
  --vc-emerald: #14c27a;
  --vc-sapphire: #3d6dff;
  --vc-text: #f6eedf;
  --vc-muted: #b7a8cc;
  --vc-line: rgba(233, 191, 91, .28);
  --vc-line-soft: rgba(233, 191, 91, .14);
  --vc-glass: rgba(26, 12, 40, .62);
  --vc-glass-2: rgba(44, 20, 70, .55);
  --vc-radius: 18px;
  --vc-radius-lg: 26px;
  --vc-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --vc-gold-metal: linear-gradient(180deg, #fff6d6 0%, #f9dd8a 16%, #e2ad46 38%, #9a6118 54%, #c88b2a 68%, #f3cd70 84%, #fff1c2 100%);
  --vc-gold-edge: linear-gradient(135deg, #fff4c6, #e9bf5b 28%, #7a4a10 52%, #f6d27a 74%, #9c6a1e);
  --vc-gold-text: linear-gradient(180deg, #fffbe8 0%, #ffe9a6 22%, #f0bf52 46%, #b7761d 62%, #e6b24a 78%, #fff0bd 100%);
  --vc-display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --vc-ui: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --vc-ease-out: cubic-bezier(.16, 1, .3, 1);
  --vc-ease-pop: cubic-bezier(.2, 1.6, .4, 1);
  --vc-ease-anticipate: cubic-bezier(.5, -.4, .3, 1.4);
  --vc-assets: url("../assets/");
  color-scheme: dark;
  /* map the platform tokens onto ours so platform.css rules pick up the v2 palette */
  --pf-gold: var(--vc-gold);
  --pf-text: var(--vc-text);
  --pf-muted: var(--vc-muted);
  --pf-line: var(--vc-line);
  --pf-display: var(--vc-display);
  --pf-ui: var(--vc-ui);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--vc-black); overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--vc-ui); font-size: 15px; line-height: 1.5; color: var(--vc-text);
  background:
    radial-gradient(1200px 700px at 50% -12%, rgba(95, 38, 160, .45), transparent 62%),
    radial-gradient(900px 600px at 105% 105%, rgba(227, 24, 74, .10), transparent 60%),
    radial-gradient(900px 600px at -5% 95%, rgba(20, 194, 122, .07), transparent 60%),
    var(--vc-black);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body::before { /* the vault, faintly, behind everything */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("../assets/vault_bg.webp") center 30% / cover no-repeat;
  opacity: .16; filter: saturate(1.1) blur(1px);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 55%, transparent 100%);
}
img, svg, canvas { max-width: 100%; }
a { color: var(--vc-gold); text-underline-offset: 3px; }
a:hover { color: var(--vc-gold-hi); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(233, 191, 91, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--vc-diamond); outline-offset: 3px; box-shadow: 0 0 0 5px rgba(233, 191, 91, .45); border-radius: 8px; }
.visually-hidden, .vc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .vc-num { font-variant-numeric: tabular-nums; }

/* gold metal text */
.vc-gold-text, .hero-title, .auth-title, .admin-title, .brand-word, .vc-bigwin-title {
  background: var(--vc-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- top bar ---------- */
.topbar, .vc-topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  min-height: 60px;
  padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  padding-top: max(8px, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(14, 6, 22, .94), rgba(10, 4, 16, .82));
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.topbar::after, .vc-topbar::after { /* gold hairline */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 191, 91, .2) 12%, rgba(255, 233, 166, .85) 50%, rgba(233, 191, 91, .2) 88%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: url("../assets/coin.png") center / 118% no-repeat;
  filter: drop-shadow(0 2px 6px rgba(233, 191, 91, .45));
  border: 0; box-shadow: none;
}
.brand-word { font-family: var(--vc-display); font-weight: 900; letter-spacing: .08em; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .6)); }
.topbar-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
@media (max-width: 420px) {
  .brand-word { font-size: 16px; letter-spacing: .04em; }
  .user-name { display: none; }
}
@media (max-width: 440px) {
  .brand-word { display: none; }
  .topbar-right .btn-small { min-height: 34px; padding: 6px 10px; font-size: 11.5px; letter-spacing: .03em; }
  .topbar-right .btn-gold.btn-small { font-size: 10.5px; letter-spacing: .05em; }
  .brand-mark { width: 30px; height: 30px; }
}
@media (max-width: 370px) { .brand-word { display: none; } }
/* tablets: the avatar initial stands in for the name, so the full top bar fits without spilling off the right edge */
@media (max-width: 900px) { .topbar-right .user-name { display: none; } }
.topbar-right .user-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the smallest phones (360 px): tighter top bar so the account button is not cut off at the right edge */
@media (max-width: 380px) {
  .topbar, .vc-topbar { gap: 6px; padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
  .topbar-right { gap: 4px; }
  .topbar-right .wallet-pill { gap: 6px; padding-right: 10px; }
  .topbar-right .user-menu > summary { gap: 4px; padding: 3px 6px 3px 3px; }
}

/* wallet pill: dark capsule in a minted gold frame, with a mini coin sprite */
.wallet-pill, .vc-wallet {
  position: relative; display: inline-flex; flex: none; align-items: center; gap: 8px;
  min-height: 40px; padding: 4px 14px 4px 5px; border-radius: 999px;
  border: 1.5px solid transparent;
  background: linear-gradient(180deg, #120719, #07030b) padding-box, var(--vc-gold-edge) border-box;
  box-shadow: 0 0 18px rgba(233, 191, 91, .22), inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -8px 18px rgba(233, 191, 91, .08);
  color: var(--vc-gold-hi); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap;
  overflow: hidden;
}
.wallet-pill::after { /* idle shine */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 245, 210, .28) 48%, transparent 60%) -150% 0 / 250% 100% no-repeat;
  animation: vcSheen 7s ease-in-out 2s infinite;
}
.wallet-pill .coin, .vc-wallet .coin, .vc-coin-sprite {
  width: 30px; height: 30px; flex: none; border-radius: 50%; border: 0; box-shadow: none;
  background: url("../assets/coin/coin_sheet.png") 0 0 / 2400% 100% no-repeat;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
}
.wallet-pill.bump .coin, .vc-coin-sprite.spin { animation: vcCoinSpin .9s steps(24, jump-none) 1; }
.vc-coin-sprite.spinning { animation: vcCoinSpin 1.1s steps(24, jump-none) infinite; }
@keyframes vcCoinSpin { from { background-position: 0 0; } to { background-position: 100% 0; } }
.wallet-amount { min-width: 4ch; text-align: right; font-size: 15px; letter-spacing: .01em;
  background: var(--vc-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.wallet-pill.bump { animation: vcBump .55s var(--vc-ease-pop); }
@keyframes vcBump { 0% { transform: scale(1); } 35% { transform: scale(1.12); box-shadow: 0 0 34px rgba(255, 220, 130, .75), inset 0 1px 0 rgba(255,255,255,.1); } 100% { transform: scale(1); } }
.wallet-pill.down { animation: vcDip .4s ease-out; }
@keyframes vcDip { 40% { transform: translateY(2px) scale(.97); filter: brightness(.85); } }

.icon-btn {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--vc-line); background: var(--vc-glass); color: var(--vc-text);
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.icon-btn:hover { border-color: var(--vc-gold); color: var(--vc-gold-hi); }
.icon-btn[aria-pressed="true"] { color: var(--vc-gold-hi); border-color: var(--vc-gold); box-shadow: 0 0 14px rgba(233, 191, 91, .35); }
.icon-btn svg { width: 20px; height: 20px; }
/* voice toggle: sits beside the sound button; dimmed while sound effects are off (voice needs sound on) */
.voice-toggle.is-muted { opacity: .55; box-shadow: none; }
@media (max-width: 440px) {
  .topbar-right .sound-toggle, .topbar-right .voice-toggle { width: 34px; height: 34px; }
  .topbar-right .voice-toggle svg, .topbar-right .sound-toggle svg { width: 17px; height: 17px; }
  .topbar-right { gap: 6px; }
}

.user-menu > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 10px 4px 4px;
  border-radius: 999px; border: 1px solid var(--vc-line); background: var(--vc-glass);
}
.user-menu > summary::-webkit-details-marker { display: none; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--vc-display); font-weight: 900; font-size: 14px;
  color: #2a1602; background: var(--vc-gold-metal); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 10px rgba(233, 191, 91, .3);
}
.user-menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px; margin: 0; z-index: 70;
  border-radius: 14px; border: 1px solid transparent;
  background: linear-gradient(180deg, #1d0c2e, #0e0616) padding-box, var(--vc-gold-edge) border-box;
  box-shadow: var(--vc-shadow);
}
.user-menu-list a, .user-menu-list button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; border: 0; background: none; color: var(--vc-text); text-decoration: none; cursor: pointer; font-weight: 700; }
.user-menu-list a:hover, .user-menu-list button:hover { background: rgba(233, 191, 91, .1); color: var(--vc-gold-hi); }

/* ---------- page shell ---------- */
.page { flex: 1; width: 100%; max-width: clamp(1200px, 86vw, 2080px); margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right)) 44px max(16px, env(safe-area-inset-left)); min-width: 0; }
.footer { text-align: center; color: var(--vc-muted); font-size: 12.5px; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--vc-line-soft); background: rgba(6, 3, 10, .6); }

/* ---------- buttons ---------- */
.btn, .vc-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 14px; cursor: pointer; overflow: hidden; isolation: isolate;
  font-family: var(--vc-ui); font-weight: 800; font-size: 15px; letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  color: var(--vc-text);
  border: 1px solid rgba(233, 191, 91, .35);
  background: linear-gradient(180deg, rgba(70, 34, 110, .55), rgba(30, 12, 50, .55));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .12s var(--vc-ease-out), box-shadow .2s, border-color .2s, filter .2s;
}
.btn:hover:not(:disabled), .vc-btn:hover:not(:disabled) { border-color: var(--vc-gold); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 1px rgba(233, 191, 91, .25), 0 8px 24px rgba(0, 0, 0, .45); }
.btn:active:not(:disabled), .vc-btn:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.btn:disabled, .vc-btn:disabled { opacity: .45; cursor: not-allowed; filter: saturate(.5); }

/* primary: minted gold metal with a light sweep */
.btn-gold, .vc-btn-gold, .vc-btn.gold {
  color: #2b1703; text-shadow: 0 1px 0 rgba(255, 246, 214, .7);
  border: 1px solid #fff0b8;
  background: var(--vc-gold-metal);
  background-size: 100% 100%;
  font-family: var(--vc-display); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -2px 0 rgba(122, 74, 16, .55), 0 0 0 1px rgba(122, 74, 16, .6),
    0 6px 0 #5a3408, 0 10px 26px rgba(233, 191, 91, .35);
}
.btn-gold::before, .vc-btn-gold::before, .vc-btn.gold::before { /* the sweep */
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .85) 46%, rgba(255, 250, 230, .2) 54%, transparent 64%) -160% 0 / 260% 100% no-repeat;
  animation: vcSheen 4.8s ease-in-out 1s infinite;
  mix-blend-mode: soft-light;
}
.btn-gold::after, .vc-btn-gold::after, .vc-btn.gold::after { /* stamped inner bevel */
  content: ""; position: absolute; inset: 3px; border-radius: 11px; pointer-events: none; z-index: -1;
  border: 1px solid rgba(122, 74, 16, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-gold:hover:not(:disabled), .vc-btn-gold:hover:not(:disabled), .vc-btn.gold:hover:not(:disabled) {
  color: #2b1703; filter: brightness(1.06) saturate(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -2px 0 rgba(122, 74, 16, .55), 0 0 0 1px rgba(122, 74, 16, .6), 0 6px 0 #5a3408, 0 12px 34px rgba(255, 210, 110, .55);
}
.btn-gold:hover:not(:disabled)::before { animation-duration: 1.1s; animation-delay: 0s; }
.btn-gold:active:not(:disabled), .vc-btn-gold:active:not(:disabled), .vc-btn.gold:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 0 rgba(122, 74, 16, .55), 0 0 0 1px rgba(122, 74, 16, .6), 0 2px 0 #5a3408, 0 6px 16px rgba(233, 191, 91, .3);
}
.btn-gold:disabled { filter: grayscale(.6) brightness(.7); opacity: .8; }
@keyframes vcSheen { 0%, 62% { background-position: -160% 0; } 100% { background-position: 160% 0; } }

.btn-danger, .vc-btn-danger {
  color: #ffe1e7; border-color: rgba(255, 92, 128, .6);
  background: linear-gradient(180deg, rgba(160, 14, 52, .55), rgba(70, 6, 24, .6));
}
.btn-danger:hover:not(:disabled) { border-color: #ff6b8e; box-shadow: 0 0 18px rgba(227, 24, 74, .4); }
.btn-emerald { color: #dffff0; border-color: rgba(20, 194, 122, .6); background: linear-gradient(180deg, rgba(12, 120, 76, .6), rgba(4, 50, 32, .6)); }
.btn-small, .vc-btn.small { min-height: 36px; padding: 6px 14px; font-size: 13.5px; border-radius: 10px; }
.btn-gold.btn-small { font-size: 12.5px; box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 0 rgba(122,74,16,.55), 0 0 0 1px rgba(122,74,16,.6), 0 3px 0 #5a3408, 0 6px 16px rgba(233,191,91,.3); }
.btn-gold.btn-small:active:not(:disabled) { transform: translateY(2px); }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 18px; padding: 12px 30px; border-radius: 16px; }

/* ---------- panels, cards ---------- */
.panel, .vc-panel, .auth-card, .stat, .action-card, .vc-card {
  position: relative;
  border: 1px solid transparent; border-radius: var(--vc-radius);
  background:
    linear-gradient(180deg, rgba(36, 16, 58, .86), rgba(14, 6, 22, .92)) padding-box,
    linear-gradient(160deg, rgba(255, 236, 170, .75), rgba(233, 191, 91, .18) 30%, rgba(233, 191, 91, .08) 60%, rgba(255, 220, 140, .5)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 40px rgba(138, 77, 255, .08), var(--vc-shadow);
}
.panel { padding: 18px; margin-bottom: 20px; }
.panel-title, .vc-panel h2 { font-family: var(--vc-display); font-weight: 900; font-size: 19px; letter-spacing: .06em; margin: 0 0 12px; color: var(--vc-gold-hi); }
.section-title { font-family: var(--vc-display); font-weight: 900; font-size: 22px; letter-spacing: .06em; margin: 0 0 14px; color: var(--vc-text); display: flex; align-items: center; gap: 12px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(233, 191, 91, .6), transparent); }

/* ---------- flashes, toasts ---------- */
.flashes { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.flash { padding: 11px 14px; border-radius: 12px; background: var(--vc-glass); border: 1px solid var(--vc-line); }
.flash-error { border-color: rgba(227, 24, 74, .6); background: rgba(90, 8, 30, .45); }
.flash-ok { border-color: rgba(20, 194, 122, .6); background: rgba(6, 60, 38, .45); }
.toast-host, .vc-toast-host {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 400;
  display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 24px);
}
.toast, .vc-toast {
  pointer-events: auto; padding: 11px 18px; border-radius: 14px; font-weight: 700; text-align: center; max-width: calc(100vw - 24px);
  border: 1px solid transparent;
  background: linear-gradient(180deg, #1e0c30, #0c0513) padding-box, var(--vc-gold-edge) border-box;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .6), 0 0 22px rgba(233, 191, 91, .18);
  animation: vcToastIn .45s var(--vc-ease-pop) both;
}
.vc-toast.out { animation: vcToastOut .3s ease-in both; }
.vc-toast.error { background: linear-gradient(180deg, #3a0718, #14040a) padding-box, linear-gradient(135deg, #ff8aa6, #e3184a 50%, #7a0a25) border-box; }
.vc-toast b { color: var(--vc-gold-hi); }
@keyframes vcToastIn { from { opacity: 0; transform: translateY(16px) scale(.94); } }
@keyframes vcToastOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--vc-muted); }
.input, .vc-input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid rgba(233, 191, 91, .25); background: rgba(6, 2, 10, .7); color: var(--vc-text);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .02);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: rgba(183, 168, 204, .6); }
.input:hover { border-color: rgba(233, 191, 91, .45); }
.input:focus { outline: none; border-color: var(--vc-gold); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .6), 0 0 0 3px rgba(233, 191, 91, .25), 0 0 18px rgba(233, 191, 91, .2); }
.input:focus-visible { outline: 2px solid var(--vc-diamond); outline-offset: 2px; }
.hint { font-size: 13px; color: var(--vc-muted); margin: 0; }
.form-error { padding: 11px 14px; border-radius: 12px; background: rgba(110, 8, 36, .45); border: 1px solid rgba(255, 92, 128, .55); color: #ffe1e7; margin-bottom: 14px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--vc-line-soft); background: rgba(8, 3, 14, .55); }
.board, .data-table, .vc-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.board th, .data-table th, .vc-table th {
  text-align: left; padding: 10px 10px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800;
  color: var(--vc-gold); border-bottom: 1px solid var(--vc-line); background: rgba(233, 191, 91, .05); white-space: nowrap;
}
.board td, .data-table td, .vc-table td { padding: 10px 10px; border-bottom: 1px solid rgba(255, 255, 255, .055); }
.board th, .board td { padding-inline: 6px; }
.board tbody tr:nth-child(odd), .data-table tbody tr:nth-child(odd) { background: rgba(255, 255, 255, .018); }
.board tbody tr:hover, .data-table tbody tr:hover { background: rgba(233, 191, 91, .06); }
.board td.num, .board th.num, .data-table .num { text-align: right; }
.board td.rank { font-family: var(--vc-display); font-weight: 900; color: var(--vc-muted); width: 2.4em; }
.board tbody tr:nth-child(1) td.rank { color: #ffd76a; text-shadow: 0 0 10px rgba(255, 215, 106, .6); }
.board tbody tr:nth-child(2) td.rank { color: #e6ecf5; }
.board tbody tr:nth-child(3) td.rank { color: #e0a070; }
.num.pos, .pos { color: #4fe3a4; }
.num.neg, .neg { color: #ff7d98; }
.board-empty, .empty-note { color: var(--vc-muted); padding: 16px; border: 1px dashed var(--vc-line); border-radius: 14px; margin: 8px 0 0; text-align: center; }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tab { padding: 7px 12px; min-height: 34px; border-radius: 999px; border: 1px solid var(--vc-line); background: rgba(10, 4, 16, .5); color: var(--vc-muted); cursor: pointer; font-size: 13px; font-weight: 800; transition: color .2s, border-color .2s; }
.tab:hover { color: var(--vc-text); border-color: var(--vc-gold); }
.tab[aria-selected="true"] { color: #2b1703; border-color: #fff0b8; background: var(--vc-gold-metal); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 14px rgba(233, 191, 91, .3); }

/* ---------- lobby hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(380px, 64vh, 620px); border-radius: var(--vc-radius-lg); margin: 0 0 26px;
  display: grid; align-items: end;
  background: #07030c url("../assets/hero_still.webp") center / cover no-repeat;
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(233, 191, 91, .35), inset 0 1px 0 rgba(255, 255, 255, .1);
}
@media (max-width: 640px) {
  .hero { background-image: url("../assets/hero_still_m.webp"); min-height: min(78vh, 640px); border-radius: 20px; margin-inline: -4px; }
}
.hero.hero-lobby { min-height: clamp(320px, 50vh, 520px); }
/* signed-out welcome: a full-bleed, screen-filling hero on every device (phone to 2560+ monitors) */
.page-welcome .page { max-width: none; padding: 0; display: flex; flex-direction: column; }
.page-welcome .flashes { margin: 14px max(16px, 4vw) 0; }
.hero.hero-welcome {
  flex: 1; margin: 0; border-radius: 0; box-shadow: none; border: 0; border-bottom: 1px solid rgba(233, 191, 91, .35);
  min-height: max(460px, calc(100vh - 60px)); min-height: max(460px, calc(100svh - 60px));
}
.hero-welcome .hero-copy {
  max-width: min(100%, clamp(560px, 46vw, 980px));
  padding: clamp(22px, 4vw, 72px) max(clamp(20px, 5.5vw, 120px), env(safe-area-inset-left)) clamp(30px, 7vh, 110px);
}
.hero-welcome .hero-title { font-size: clamp(40px, min(7.4vw, 12.5vh), 152px); margin-bottom: clamp(10px, 1.4vw, 24px); }
.hero-welcome .hero-text { font-size: clamp(15px, 1.05vw + 8px, 25px); max-width: 46ch; margin-bottom: clamp(18px, 2vw, 36px); }
.hero-welcome .hero-actions { gap: clamp(10px, 1vw, 18px); }
.hero-welcome .hero-actions .btn { min-width: clamp(150px, 11vw, 240px); min-height: clamp(48px, 3.4vw, 64px); font-size: clamp(15px, .5vw + 10px, 20px); padding-inline: clamp(18px, 1.6vw, 34px); }
@media (max-width: 640px) {
  .hero.hero-welcome { margin-inline: 0; border-radius: 0; min-height: max(520px, calc(100svh - 60px)); }
  .hero-welcome .hero-actions .btn { flex: 1 1 140px; min-width: 0; font-size: 14px; padding-inline: 12px; }
}
@media (min-aspect-ratio: 21/9) { .hero-welcome .hero-copy { padding-bottom: clamp(24px, 5vh, 80px); } }
#hero3d, .vc-hero-mount { position: absolute; inset: 0; z-index: 0; }
#hero3d canvas { display: block; }
.hero::after { /* scrim so copy stays legible */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(6, 3, 10, .92) 0%, rgba(6, 3, 10, .55) 26%, transparent 55%),
              radial-gradient(120% 80% at 50% 120%, rgba(6, 3, 10, .7), transparent 60%);
}
.hero-copy { position: relative; z-index: 2; padding: clamp(18px, 4vw, 34px); max-width: 640px; }
.hero-title {
  font-family: var(--vc-display); font-weight: 900; font-size: clamp(34px, 8.5vw, 72px); line-height: 1.02; letter-spacing: .04em;
  margin: 0 0 10px; text-wrap: balance;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .95) 50%, transparent 60%) -200% 0 / 300% 100% no-repeat, var(--vc-gold-text);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 3px 0 #3a1f05) drop-shadow(0 0 26px rgba(233, 191, 91, .35));
  animation: vcTitleSweep 6s ease-in-out 1.2s infinite;
}
@keyframes vcTitleSweep { 0%, 70% { background-position: -200% 0, 0 0; } 100% { background-position: 200% 0, 0 0; } }
.hero-text { color: #e6dbf5; margin: 0 0 18px; font-size: clamp(14.5px, 2.4vw, 17px); max-width: 52ch; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { min-width: 150px; }

/* ---------- lobby layout & game cards ---------- */
.lobby-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 18vw, 420px); gap: clamp(20px, 1.6vw, 34px); align-items: start; }
@media (max-width: 920px) { .lobby-layout { grid-template-columns: minmax(0, 1fr); } }
.lobby-main, .lobby-side { min-width: 0; }
.section { margin-bottom: 30px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(168px, 44vw), 1fr)); gap: 14px; }
@media (max-width: 400px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.game-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  border-radius: var(--vc-radius); text-decoration: none; color: var(--vc-text);
  border: 1px solid transparent;
  background: linear-gradient(180deg, #1a0b29, #0b0512) padding-box, linear-gradient(160deg, rgba(255, 236, 170, .8), rgba(233, 191, 91, .15) 35%, rgba(233, 191, 91, .1) 65%, rgba(255, 220, 140, .55)) border-box;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  transition: transform .35s var(--vc-ease-out), box-shadow .35s;
}
.game-card:hover, .game-card:focus-visible { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, .6), 0 0 26px rgba(233, 191, 91, .28); }
.game-card .game-art { aspect-ratio: 4 / 3; width: 100%; display: block; object-fit: cover; background: #120b1b; transition: transform .6s var(--vc-ease-out), filter .4s; }
.game-card:hover .game-art { transform: scale(1.05); filter: brightness(1.08) saturate(1.1); }
.game-card::after { /* sheen sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 248, 220, .32) 48%, transparent 60%) -170% 0 / 260% 100% no-repeat;
}
.game-card:hover::after { animation: vcCardSweep .9s var(--vc-ease-out) 1; }
@keyframes vcCardSweep { from { background-position: -170% 0; } to { background-position: 170% 0; } }
.game-meta { padding: 10px 12px 13px; display: grid; gap: 2px; position: relative; z-index: 1; background: linear-gradient(180deg, rgba(20, 8, 32, .2), rgba(10, 4, 16, .9)); }
.game-name { font-family: var(--vc-display); font-weight: 900; letter-spacing: .04em; font-size: 15.5px; line-height: 1.2; color: var(--vc-gold-hi); }
.game-tag { font-size: 12.5px; color: var(--vc-muted); line-height: 1.35; }
.game-kind { font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; color: var(--vc-gold); opacity: .85; }
.classic-card .game-art { padding: 6px; object-fit: contain; background: radial-gradient(circle at 50% 30%, #2a1245, #0e0618); }

/* ---------- bonus wheel ---------- */
.bonus-panel { text-align: center; }
.wheel { position: relative; width: min(270px, 100%); margin: 6px auto 16px; aspect-ratio: 1; }
.wheel::before { /* gold bezel glow */
  content: ""; position: absolute; inset: -8px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(233, 191, 91, .35) 60%, transparent 72%);
  filter: blur(6px);
}
.wheel-svg { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .6)) drop-shadow(0 0 2px rgba(255, 230, 160, .8)); }
.wheel-pointer {
  position: absolute; left: 50%; top: -10px; transform: translateX(-50%); z-index: 2;
  width: 28px; height: 36px; border: 0 !important;
  background: var(--vc-gold-metal);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .7));
}
.wheel-seg-label { font-family: var(--vc-ui); font-weight: 800; font-size: 12px; fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: 2.5px; }
.wheel-status { text-align: center; color: var(--vc-muted); margin: 10px 0 0; min-height: 1.4em; font-variant-numeric: tabular-nums; }

/* ---------- auth ---------- */
.page-auth .page { display: grid; }
.auth-wrap { min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 10px 0; }
.auth-card { width: 100%; max-width: 430px; padding: clamp(22px, 5vw, 34px) clamp(18px, 5vw, 30px); border-radius: var(--vc-radius-lg); overflow: hidden; }
.auth-card::before { /* crest: a real gold coin over a gem glow */
  content: ""; display: block; width: 92px; height: 92px; margin: -6px auto 10px;
  background: url("../assets/coin.png") center / contain no-repeat;
  filter: drop-shadow(0 8px 18px rgba(233, 191, 91, .35));
  animation: vcFloat 5s ease-in-out infinite;
}
.auth-card::after {
  content: ""; position: absolute; left: 50%; top: -60px; width: 260px; height: 200px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(138, 77, 255, .35), transparent); pointer-events: none;
}
@keyframes vcFloat { 50% { transform: translateY(-6px) rotate(-3deg); } }
.auth-title { font-family: var(--vc-display); font-weight: 900; text-align: center; margin: 0 0 4px; font-size: clamp(26px, 7vw, 32px); letter-spacing: .06em; filter: drop-shadow(0 2px 0 #3a1f05); }
.auth-sub { text-align: center; color: var(--vc-muted); margin: 0 0 22px; }
.auth-switch { text-align: center; margin: 18px 0 0; color: var(--vc-muted); }
.auth-form .btn-gold { margin-top: 8px; min-height: 52px; font-size: 16px; }

/* ---------- admin ---------- */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 6px; border-radius: 16px; background: var(--vc-glass); border: 1px solid var(--vc-line-soft); }
.admin-nav a { padding: 8px 14px; border-radius: 11px; text-decoration: none; font-weight: 800; color: var(--vc-muted); }
.admin-nav a:hover { color: var(--vc-text); background: rgba(233, 191, 91, .08); }
.admin-nav a[aria-current="page"] { color: #2b1703; background: var(--vc-gold-metal); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.admin-title { font-family: var(--vc-display); font-weight: 900; font-size: clamp(24px, 5vw, 32px); letter-spacing: .05em; margin: 0 0 14px; }
.admin-lead { margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 12px; margin: 0 0 24px; }
.stat { padding: 14px 16px; border-radius: 16px; display: grid; gap: 4px; }
.stat-label { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--vc-muted); font-weight: 800; }
.stat-value { font-family: var(--vc-display); font-weight: 900; font-size: 24px; font-variant-numeric: tabular-nums; color: var(--vc-gold-hi); overflow-wrap: anywhere; }
.stat-value-small { font-size: 16px; }
.stat-value.pos { color: #4fe3a4; } .stat-value.neg { color: #ff7d98; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; margin: 0 0 24px; }
.action-card { padding: 16px; border-radius: 16px; }
.search-form, .inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 0 0 16px; }
.search-form .input { flex: 1 1 200px; width: auto; }
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border: 1px solid; }
.badge-admin { color: #2b1703; background: var(--vc-gold-metal); border-color: #fff0b8; }
.badge-banned { color: #ffe1e7; background: rgba(227, 24, 74, .35); border-color: rgba(255, 92, 128, .6); }

/* ---------- game shell ---------- */
.game-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.game-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--vc-line); background: var(--vc-glass); color: var(--vc-text); text-decoration: none; font-weight: 800; font-size: 13.5px; }
.back-link:hover { border-color: var(--vc-gold); color: var(--vc-gold-hi); }
.game-title { font-family: var(--vc-display); font-weight: 900; font-size: clamp(22px, 5vw, 32px); letter-spacing: .05em; margin: 0; flex: 1; min-width: 0;
  background: var(--vc-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
/* Long one-word names ("Timberline", "Starlight") must fit between Lobby and How to play on phones. */
@media (max-width: 440px) {
  .game-title { font-size: clamp(17px, 5.4vw, 24px); letter-spacing: .02em; line-height: 1.1; overflow-wrap: normal; word-break: normal; hyphens: manual; }
}
.game-stage { position: relative; min-width: 0; }

/* ---------- bet stepper (VC.ui.bet) ---------- */
.vc-bet { display: inline-flex; align-items: stretch; gap: 6px; }
.vc-bet > button {
  width: 46px; min-height: 48px; border-radius: 14px; cursor: pointer; font-size: 24px; font-weight: 900; line-height: 1;
  color: #2b1703; border: 1px solid #fff0b8; background: var(--vc-gold-metal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 4px 0 #5a3408, 0 6px 14px rgba(0, 0, 0, .4);
  transition: transform .1s;
}
.vc-bet > button:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 0 #5a3408; }
.vc-bet > button:disabled { filter: grayscale(.8) brightness(.55); cursor: not-allowed; }
.vc-bet .vc-bet-val {
  min-width: 104px; padding: 3px 12px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid transparent; background: linear-gradient(180deg, #120719, #050208) padding-box, var(--vc-gold-edge) border-box;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .7);
}
.vc-bet .vc-bet-val small { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--vc-muted); line-height: 1.1; font-weight: 800; }
.vc-bet .vc-bet-val b { font-family: var(--vc-display); font-weight: 900; font-size: 19px; line-height: 1.2; font-variant-numeric: tabular-nums;
  background: var(--vc-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- modal ---------- */
.vc-modal { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; padding: 16px; background: rgba(4, 1, 8, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: vcFade .25s ease both; }
.vc-modal-card {
  position: relative; width: min(520px, 100%); max-height: 86vh; overflow: auto; padding: 22px 20px 18px; border-radius: 22px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #24103a, #0d0616) padding-box, var(--vc-gold-edge) border-box;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .75), inset 0 0 60px rgba(138, 77, 255, .12);
  animation: vcModalIn .45s var(--vc-ease-pop) both;
}
.vc-modal-card h2 { margin: 0 0 12px; font-family: var(--vc-display); font-weight: 900; font-size: 24px; letter-spacing: .05em;
  background: var(--vc-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.vc-modal-body { color: #ddd0ef; }
.vc-modal-body p, .vc-modal-body li { color: var(--vc-muted); }
.vc-modal-body table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.vc-modal-body td, .vc-modal-body th { padding: 6px 4px; border-bottom: 1px solid var(--vc-line-soft); text-align: right; }
.vc-modal-body td:first-child, .vc-modal-body th:first-child { text-align: left; }
.vc-modal-close { margin-top: 14px; width: 100%; }
.vc-modal-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--vc-line); background: rgba(0, 0, 0, .3); color: var(--vc-text); cursor: pointer; font-size: 20px; line-height: 1; }
@keyframes vcFade { from { opacity: 0; } }
@keyframes vcModalIn { from { opacity: 0; transform: translateY(22px) scale(.92); } }

/* ---------- effects ---------- */
.vc-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 300; }
.vc-float {
  position: fixed; z-index: 310; pointer-events: none; transform: translate(-50%, -50%);
  font-family: var(--vc-display); font-weight: 900; font-size: 26px; letter-spacing: .03em; white-space: nowrap; font-variant-numeric: tabular-nums;
  background: var(--vc-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #3a1f05) drop-shadow(0 0 12px rgba(233, 191, 91, .6));
  animation: vcFloatUp 1.35s var(--vc-ease-out) forwards;
}
.vc-float.lose { background: linear-gradient(180deg, #ffd6df, #ff6b8e); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 2px 0 #3a0512); }
@keyframes vcFloatUp { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 18% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -190%) scale(1); } }
.vc-shake { animation: vcShake .5s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes vcShake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px) rotate(-.4deg); } 40%, 60% { transform: translateX(6px) rotate(.4deg); } }
.vc-glow-pulse { animation: vcGlowPulse 1.2s ease-in-out 2; }
@keyframes vcGlowPulse { 50% { box-shadow: 0 0 0 2px rgba(255, 233, 166, .8), 0 0 40px rgba(233, 191, 91, .7); } }

/* ---------- big win ---------- */
.vc-bigwin {
  position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(circle at 50% 46%, rgba(96, 34, 150, .9), rgba(20, 6, 34, .96) 55%, rgba(3, 1, 6, .985));
  animation: vcFade .35s ease both;
  -webkit-user-select: none; user-select: none;
}
.vc-bigwin.out { animation: vcFadeOut .35s ease both; }
@keyframes vcFadeOut { to { opacity: 0; } }
.vc-bigwin-rays, .vc-bigwin-rays2 {
  position: absolute; left: 50%; top: 46%; width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax; pointer-events: none;
  mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .65) 12%, transparent 34%);
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .65) 12%, transparent 34%);
}
.vc-bigwin-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 214, 120, .30) 0 5deg, rgba(255, 214, 120, 0) 9deg 18deg); animation: vcSpin 24s linear infinite; }
.vc-bigwin-rays2 { background: repeating-conic-gradient(from 7deg, rgba(255, 245, 210, .16) 0 2.5deg, rgba(255, 245, 210, 0) 5deg 26deg); animation: vcSpin 38s linear infinite reverse; }
.vc-bigwin-burst { position: absolute; left: 50%; top: 46%; width: 70vmin; height: 70vmin; margin: -35vmin 0 0 -35vmin; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 236, 170, .55), rgba(255, 190, 80, .18) 45%, transparent 70%); animation: vcBurst 2.4s ease-in-out infinite; }
@keyframes vcSpin { to { transform: rotate(360deg); } }
@keyframes vcBurst { 50% { transform: scale(1.12); opacity: .8; } }
.vc-bigwin-inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px; max-width: 100vw; }
.vc-bigwin-coin { width: clamp(90px, 22vmin, 170px); aspect-ratio: 1; background: url("../assets/coin/coin_sheet.png") 0 0 / 2400% 100% no-repeat; animation: vcCoinSpin 1.1s steps(24, jump-none) infinite, vcPopIn .7s var(--vc-ease-pop) both; filter: drop-shadow(0 10px 30px rgba(255, 200, 90, .55)); }
.vc-bigwin-title {
  position: relative; margin: 2px 0 0; font-family: var(--vc-display); font-weight: 900; line-height: .95; letter-spacing: .04em; white-space: nowrap;
  font-size: clamp(44px, 13.5vw, 128px);
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%) -220% 0 / 320% 100% no-repeat,
              linear-gradient(180deg, #fffdf2 0%, #fff0b0 18%, #f7c95a 40%, #a8640f 56%, #e0a23a 70%, #ffe7a0 88%, #fff6d6 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 4px 0 #4a2706) drop-shadow(0 8px 0 rgba(30, 10, 2, .55)) drop-shadow(0 0 34px rgba(255, 205, 100, .55));
  animation: vcPopIn .8s var(--vc-ease-pop) .1s both, vcTitleSweep2 2.6s ease-in-out .9s infinite;
}
.vc-bigwin-title.mega { font-size: clamp(46px, 14vw, 136px); }
.vc-bigwin-title.epic { font-size: clamp(48px, 15vw, 144px);
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%) -220% 0 / 320% 100% no-repeat,
              linear-gradient(180deg, #ffffff 0%, #e8f1ff 22%, #b9c8ff 42%, #6a4dd6 56%, #c7b5ff 72%, #fff 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 4px 0 #22105a) drop-shadow(0 0 40px rgba(170, 140, 255, .7)); }
@keyframes vcTitleSweep2 { 0% { background-position: -220% 0, 0 0; } 60%, 100% { background-position: 220% 0, 0 0; } }
@keyframes vcPopIn { 0% { opacity: 0; transform: scale(.2) rotate(-6deg); } 60% { opacity: 1; transform: scale(1.12) rotate(1deg); } 100% { transform: scale(1); } }
.vc-bigwin-amt {
  font-family: var(--vc-display); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .02em;
  font-size: clamp(34px, 9vw, 74px); line-height: 1.1;
  color: #fff8e1; text-shadow: 0 0 22px rgba(255, 210, 110, .8), 0 3px 0 #4a2706;
  animation: vcPopIn .6s var(--vc-ease-pop) .35s both;
}
.vc-bigwin-mult { font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--vc-gold-hi); opacity: .9; }
.vc-bigwin-tap { margin-top: 18px; font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 240, 200, .75); animation: vcBlink 1.6s ease-in-out infinite; }
@keyframes vcBlink { 50% { opacity: .35; } }
/* see-through layout (VC.fx.bigWin(amount, bet, {see: true}); the slot kit's theme.scene.see). The kit sets on <html>:
   --vc-see-clip  polygon(evenodd, ...) the viewport minus the reels window   --vc-see-x/y/w/h  the window (px)
   --vc-see-cx/cy its centre   --vc-see-tt  height of the band above it for the title   --vc-see-lt  top of the count-up block */
.vc-bigwin.vc-see { background: none; display: block; }
.vc-see-fx { position: fixed; inset: 0; overflow: hidden; pointer-events: none; clip-path: var(--vc-see-clip, none);
  background: radial-gradient(circle at var(--vc-see-cx, 50%) var(--vc-see-cy, 46%), rgba(96, 34, 150, .5), rgba(20, 6, 34, .72) 55%, rgba(3, 1, 6, .86)); }
.vc-see-fx .vc-bigwin-rays, .vc-see-fx .vc-bigwin-rays2, .vc-see-fx .vc-bigwin-burst { left: var(--vc-see-cx, 50%); top: var(--vc-see-cy, 46%); }
.vc-see-fx .vc-bigwin-burst { width: 130vmax; height: 130vmax; margin: -65vmax 0 0 -65vmax; opacity: .75; }
.vc-see-ring { position: fixed; left: var(--vc-see-x, 0); top: var(--vc-see-y, 0); width: var(--vc-see-w, 0); height: var(--vc-see-h, 0); pointer-events: none; border-radius: 6px;
  box-shadow: 0 0 0 2px rgba(255, 222, 150, .6), 0 0 36px 8px rgba(255, 190, 80, .42); animation: vcSeeRing 1.8s ease-in-out infinite; }
@keyframes vcSeeRing { 50% { box-shadow: 0 0 0 2px rgba(255, 236, 190, .85), 0 0 54px 14px rgba(255, 200, 90, .6); } }
.vc-bigwin .vc-see-in { position: fixed; inset: 0; display: block; max-width: none; padding: 0; pointer-events: none; }
.vc-see-top { position: absolute; left: 0; right: 0; top: 0; height: var(--vc-see-tt, 30vh); padding: 0 12px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.vc-see-low { position: absolute; left: 0; right: 0; top: var(--vc-see-lt, 70vh); padding: 0 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vc-see .vc-bigwin-title { font-size: clamp(34px, min(10vw, 10.5vh), 112px); margin-bottom: -.04em; }
.vc-see .vc-bigwin-title.mega { font-size: clamp(36px, min(10.5vw, 11vh), 118px); }
.vc-see .vc-bigwin-title.epic { font-size: clamp(38px, min(11vw, 11.5vh), 124px); }
.vc-see .vc-bigwin-amt { font-size: clamp(28px, min(8vw, 7.5vh), 66px); }
.vc-see .vc-bigwin-tap { margin-top: 6px; }
html.vc-see-on .vc-fx { clip-path: var(--vc-see-clip, none); }

/* ---------- gem and coin chips for any page ---------- */
.vc-gem { display: inline-block; width: 1.4em; height: 1.4em; vertical-align: -.35em; background: center / contain no-repeat; }
.vc-gem.diamond { background-image: url("../assets/diamond.png"); }
.vc-gem.ruby { background-image: url("../assets/ruby.png"); }
.vc-gem.emerald { background-image: url("../assets/emerald.png"); }
.vc-gem.sapphire { background-image: url("../assets/sapphire.png"); }
.vc-gem.amethyst { background-image: url("../assets/amethyst.png"); }
.vc-gem.topaz { background-image: url("../assets/topaz.png"); }
.vc-coin { display: inline-block; width: 1.3em; height: 1.3em; vertical-align: -.3em; background: url("../assets/coin.png") center / contain no-repeat; }

/* ---------- 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; }
  .vc-bigwin-rays, .vc-bigwin-rays2, .vc-bigwin-burst { animation: none !important; }
  .hero-title, .btn-gold::before, .wallet-pill::after { animation: none !important; }
}

/* admin: a freshly made password, shown once on the player's page */
.new-pw { display: grid; gap: 4px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(233, 191, 91, .12); border: 1px solid rgba(233, 191, 91, .55); font-size: 13px; }
.new-pw code { font-size: 20px; font-weight: 800; letter-spacing: .04em; color: var(--vc-gold-hi); user-select: all; word-break: break-all; }
.new-pw small { color: var(--vc-muted); }

/* 2026-11-26 (folding phones): the account menu scrolls inside a short screen, so Logout is always reachable;
   mid-size screens (folded open, tablets) show the Challenges sword without its word, so the bar never spills right */
.user-menu-list { max-height: calc(100svh - 84px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 900px) {
  .topbar-right .duel-link .duel-word { display: none; }
  .topbar-right .duel-link { padding: 0 9px; }
}
@media (max-height: 760px) { .user-menu-list a, .user-menu-list button { padding-top: 6px; padding-bottom: 6px; } }
