/* Ethereal Glass: OLED black, gold and neon orbs, glass cards with a double bezel, spring-like motion. */
:root {
  --bg: #050607; --bg2: #0b0c0f; --fg: #f4f1ea; --muted: #8f8c85; --dim: #55534e;
  --gold: #e4b85a; --gold2: #f8dc92; --pink: #ff5a93; --mint: #5fd3a8; --violet: #8b7cf6; --sky: #5ab8ff; --red: #ff5e5e;
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14); --glass: rgba(255,255,255,.035); --glass2: rgba(255,255,255,.06);
  --display: "Unbounded", system-ui, sans-serif; --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.32,.72,0,1); --spring: cubic-bezier(.16,1,.3,1);
  --r: 28px; --r2: calc(var(--r) - 8px);
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tg-top: var(--tg-content-safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 15px/1.5 var(--body); min-height: 100dvh; overflow-x: hidden; overscroll-behavior-y: none; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.5rem, 6vw, 2.1rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: 1.05rem; font-weight: 700; }
h3 { font-size: .8rem; font-weight: 500; }
p { margin: 0; }
small, .muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }

/* ---- background */
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; clip-path: inset(0); contain: strict; }
.orbs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; animation: drift 28s var(--ease) infinite alternate; }
.orbs .o1 { width: 60vw; height: 60vw; left: -20vw; top: -10vh; background: radial-gradient(circle, rgba(228,184,90,.55), transparent 65%); }
.orbs .o2 { width: 70vw; height: 70vw; right: -30vw; top: 25vh; background: radial-gradient(circle, rgba(139,124,246,.45), transparent 65%); animation-delay: -9s; }
.orbs .o3 { width: 55vw; height: 55vw; left: 10vw; bottom: -20vh; background: radial-gradient(circle, rgba(255,90,147,.35), transparent 65%); animation-delay: -18s; }
@keyframes drift { to { transform: translate3d(8vw, 6vh, 0) scale(1.15); } }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
#confetti { position: fixed; inset: 0; z-index: 40; pointer-events: none; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .orbs i { animation: none; } }

/* ---- floating header island */
.island { position: sticky; top: calc(var(--safe-top) + var(--tg-top) + 10px); z-index: 20; margin: 0 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(12,13,16,.72); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06); }
.brand { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.balance { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: linear-gradient(135deg, rgba(228,184,90,.22), rgba(228,184,90,.06)); border: 1px solid rgba(228,184,90,.35); font-weight: 700; font-variant-numeric: tabular-nums; transition: transform .5s var(--spring); }
.balance:active { transform: scale(.96); }
.brand { margin-right: auto; min-width: 0; font-size: .7rem; letter-spacing: .03em; }
.island { gap: 6px; padding-left: 14px; }
.balance { white-space: nowrap; flex-shrink: 0; padding: 7px 12px 7px 8px; }
.lang-pill { flex-shrink: 0; padding: 7px 9px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); transition: transform .5s var(--spring), color .3s; }
.lang-pill:active { transform: scale(.94); color: var(--gold2); }
.lang-menu { position: fixed; z-index: 30; top: calc(var(--safe-top) + var(--tg-top) + 72px); right: 16px; display: grid; gap: 4px; min-width: 180px; padding: 8px; border-radius: 22px;
  background: rgba(14,15,19,.92); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 24px 60px -20px rgba(0,0,0,.95); animation: pop .35s var(--spring); }
.lang-menu[hidden] { display: none; }
.lang-menu small { padding: 4px 10px 6px; color: var(--muted); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.lang-menu button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; text-align: left; font-size: .92rem; }
.lang-menu button b { font-family: var(--display); font-size: .7rem; letter-spacing: .08em; color: var(--muted); width: 22px; }
.lang-menu button.on { background: rgba(228,184,90,.14); color: var(--gold2); }
.lang-menu button.on b { color: var(--gold2); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.balance .coin { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #1a1405; font-size: .8rem; font-weight: 700; box-shadow: 0 0 18px rgba(228,184,90,.5); }
.balance.bump b { animation: bump .6s var(--spring); }
@keyframes bump { 30% { transform: scale(1.25); color: var(--gold2); } }

/* ---- view and screens */
.view { position: relative; z-index: 2; padding: 22px 16px calc(110px + var(--safe-bottom)); max-width: 560px; margin: 0 auto; }
.screen { display: grid; gap: 14px; }
.in { opacity: 0; transform: translateY(18px); filter: blur(6px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--gold2); background: rgba(228,184,90,.1); border: 1px solid rgba(228,184,90,.25); }
.eyebrow.pink { color: #ffb3cb; background: rgba(255,90,147,.1); border-color: rgba(255,90,147,.3); }
.eyebrow.mint { color: #b8f1dc; background: rgba(95,211,168,.1); border-color: rgba(95,211,168,.3); }
.head { display: grid; gap: 10px; padding: 8px 4px 6px; }
.head .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .85rem; }
.back i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--glass2); border: 1px solid var(--line); font-style: normal; }

/* ---- double-bezel cards */
.shell { padding: 6px; border-radius: var(--r); background: rgba(255,255,255,.03); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0,0,0,.9); }
.core { border-radius: var(--r2); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.05); box-shadow: inset 0 1px 1px rgba(255,255,255,.12); padding: 18px; position: relative; overflow: hidden; }
.core.tight { padding: 12px; }
.glow::after { content: ""; position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(ellipse at 50% 0%, var(--c, rgba(228,184,90,.35)), transparent 60%); pointer-events: none; }
.hero { --c: rgba(228,184,90,.4); display: grid; gap: 12px; min-height: 210px; }
.hero .big { font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 10px 30px rgba(228,184,90,.35)); }
.hero .cta { margin-top: 4px; }
.stat { display: grid; gap: 2px; }
.stat b { font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.stat small { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.stats { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- buttons: pills with the nested trailing circle */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px 12px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; letter-spacing: .01em; color: #1a1405; background: linear-gradient(135deg, var(--gold2), var(--gold)); box-shadow: 0 14px 34px -14px rgba(228,184,90,.7), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .5s var(--spring), filter .4s var(--ease), opacity .3s; }
.btn i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.12); font-style: normal; transition: transform .6s var(--spring); }
.btn:hover i { transform: translate(2px, -1px) scale(1.06); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; filter: saturate(.6); pointer-events: none; }
.btn.full { width: 100%; }
.btn.ghost { color: var(--fg); background: var(--glass2); border: 1px solid var(--line2); box-shadow: none; }
.btn.ghost i { background: rgba(255,255,255,.08); }
.btn.pink { color: #2b0b16; background: linear-gradient(135deg, #ffa2c0, var(--pink)); box-shadow: 0 14px 34px -14px rgba(255,90,147,.7), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.mint { color: #06201a; background: linear-gradient(135deg, #a8f0d4, var(--mint)); box-shadow: 0 14px 34px -14px rgba(95,211,168,.7), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.big { padding: 16px 16px 16px 26px; font-size: 1.05rem; }
.btn.big i { width: 36px; height: 36px; }
.chip { display: inline-flex; align-items: center; justify-content: center; padding: 7px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--glass2); border: 1px solid var(--line); color: var(--fg); transition: transform .4s var(--spring), background .3s, border-color .3s; }
.chip:active { transform: scale(.94); }
.chip.on { background: rgba(228,184,90,.18); border-color: rgba(228,184,90,.5); color: var(--gold2); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- feed */
.feed .item .feed-tile { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.feed { display: grid; gap: 6px; }
.feed .item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); font-size: .84rem; }
.feed .item .ico { font-size: 1.2rem; }
.feed .item b { font-variant-numeric: tabular-nums; }
.feed .item .x { margin-left: auto; font-family: var(--display); font-size: .82rem; color: var(--gold2); font-variant-numeric: tabular-nums; }
.feed .item .feed-game { font-weight: 600; }
.feed .item.new { animation: feedin .7s var(--spring) both; }
@keyframes feedin { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .feed .item.new { animation: none; } }
.x.hot { color: var(--pink); }

/* ---- roulette numbers */
.numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.num { aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--glass); border: 1px solid var(--line); transition: transform .5s var(--spring), background .3s, border-color .3s, box-shadow .3s; }
.num:active { transform: scale(.9); }
.num.taken { color: var(--dim); background: rgba(255,255,255,.015); border-color: rgba(255,255,255,.04); }
.num.mine { color: #1a1405; background: linear-gradient(135deg, var(--gold2), var(--gold)); border-color: transparent; box-shadow: 0 10px 24px -10px rgba(228,184,90,.8); }
.num.pick { border-color: var(--gold); color: var(--gold2); box-shadow: 0 0 0 3px rgba(228,184,90,.2); transform: scale(1.06); }
.num.win { color: #06201a; background: linear-gradient(135deg, #a8f0d4, var(--mint)); border-color: transparent; animation: pop .8s var(--spring); }
.legend { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.post { font-size: .92rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.winners { display: grid; gap: 8px; }
.winners .w { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(228,184,90,.18), rgba(228,184,90,.04)); border: 1px solid rgba(228,184,90,.4); }
.winners .w b { font-family: var(--display); font-size: 1.3rem; color: var(--gold2); min-width: 44px; }

/* ---- wallet */
.ledger { display: grid; gap: 6px; }
.ledger .l { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-size: .84rem; }
.ledger .l em.acc { margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: .66rem; letter-spacing: .06em; color: var(--gold2); background: rgba(228,184,90,.12); border: 1px solid rgba(228,184,90,.25); }
.ledger .l b { font-variant-numeric: tabular-nums; } .ledger .l b.plus { color: var(--mint); } .ledger .l b.minus { color: var(--muted); }
.top { display: grid; gap: 6px; }
.top .t { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-size: .86rem; }
.top .t i { font-style: normal; font-family: var(--display); font-size: .75rem; color: var(--muted); }
.top .t:first-child i { color: var(--gold2); }

/* ---- dock */
.dock { position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 14px); transform: translateX(-50%); z-index: 20; display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: rgba(12,13,16,.78); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.06); }
.dock button { display: grid; justify-items: center; gap: 2px; width: 72px; padding: 8px 0 6px; border-radius: 999px; color: var(--muted); transition: color .3s, background .4s var(--ease), transform .5s var(--spring); }
.dock button span { font-size: 1.05rem; line-height: 1; }
.dock button small { font-size: .62rem; font-weight: 600; letter-spacing: .02em; color: inherit; }
.dock button.on { color: var(--gold2); background: rgba(228,184,90,.12); }
.dock button:active { transform: scale(.92); }

/* ---- toast */
.toast { position: fixed; left: 50%; top: calc(var(--safe-top) + var(--tg-top) + 72px); transform: translate(-50%, -20px); z-index: 30; padding: 10px 16px; border-radius: 999px; background: rgba(20,21,26,.92); border: 1px solid var(--line2); font-size: .86rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .5s var(--spring); max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: rgba(255,94,94,.5); color: #ffb3b3; }
.toast.good { border-color: rgba(95,211,168,.5); color: #b8f1dc; }
.empty { padding: 24px; text-align: center; color: var(--muted); font-size: .9rem; }
.note { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.sep { height: 1px; background: var(--line); margin: 4px 0; }

/* ---- slot hub */
.hub-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 2px; }
.hub-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(0,0,0,.9); }
.hub-feature { position: relative; display: block; width: 100%; padding: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line2); text-align: left; isolation: isolate; box-shadow: 0 40px 70px -40px rgba(0,0,0,.95); transition: transform .6s var(--spring); }
.hub-feature:active { transform: scale(.985); }
.hub-feature img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.hub-cap { position: absolute; inset: auto 0 0; padding: 70px 18px 18px; display: grid; gap: 8px; background: linear-gradient(180deg, transparent, rgba(5,6,7,.82) 42%, rgba(5,6,7,.96)); }
.hub-cap h2 { font-size: 1.5rem; }
.hub-cap p { font-size: .84rem; color: #d6d2c8; }
.hub-cap .btn { justify-self: start; margin-top: 4px; }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hub-tile { position: relative; display: block; padding: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); text-align: left; transition: transform .6s var(--spring), border-color .3s; }
.hub-tile:active { transform: scale(.96); }
.hub-tile img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s var(--ease); }
.hub-tile:hover img { transform: scale(1.05); }
.hub-meta { position: absolute; inset: auto 0 0; padding: 34px 12px 10px; display: grid; gap: 1px; background: linear-gradient(180deg, transparent, rgba(5,6,7,.92)); }
.hub-meta b { font-family: var(--display); font-size: .78rem; }
.hub-meta small { font-size: .68rem; color: #c9c5bb; }
.credit { text-align: center; font-size: .7rem; opacity: .7; line-height: 1.6; }
.hub-grid.games img { aspect-ratio: 3 / 4; }
.hub-grid.games .hub-meta small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- player overlay: the original game in a frame under our bar */
body.playing { overflow: hidden; }
body.playing .dock, body.playing .island { display: none; }
.player { position: fixed; inset: 0; z-index: 35; display: grid; grid-template-rows: auto 1fr; background: #000; animation: fade .35s var(--ease); }
.player-bar { display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-top) + var(--tg-top) + 8px) 12px 8px; background: rgba(8,9,11,.96); border-bottom: 1px solid var(--line); }
.player-bar b { font-family: var(--display); font-size: .82rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-close { width: 36px; height: 36px; border-radius: 50%; background: var(--glass2); border: 1px solid var(--line); font-size: 1rem; }
.player-bal { display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(228,184,90,.14); border: 1px solid rgba(228,184,90,.35); }
.player-bal b { flex: none; font-family: var(--body); font-size: .85rem; font-variant-numeric: tabular-nums; }
.player-bal .coin { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #1a1405; font-size: .7rem; font-weight: 700; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; opacity: 0; transition: opacity .5s var(--ease); grid-row: 2; grid-column: 1; }
.player.ready iframe { opacity: 1; }
.player-load { grid-row: 2; grid-column: 1; display: grid; place-items: center; gap: 14px; align-content: center; }
.player-load img { width: 46%; max-width: 220px; border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(228,184,90,.5); }
.player.ready .player-load { display: none; }
.player.bare { grid-template-rows: 1fr; padding-top: calc(var(--safe-top) + var(--tg-top)); }
.player.bare iframe, .player.bare .player-load { grid-row: 1; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- showpieces: the slot arc and the games fan (after Scrolltide's Arc Carousel and Fan Deck) */
.show { display: grid; gap: 4px; }
.show-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.show-hint { margin-left: auto; font-size: .72rem; letter-spacing: .04em; }
.show-more { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--fg); background: var(--glass2); border: 1px solid var(--line); transition: transform .5s var(--spring); }
.show-more i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.08); font-style: normal; font-size: .75rem; transition: transform .5s var(--spring); }
.show-more:active { transform: scale(.95); }
.show-more:active i { transform: translateX(2px); }

.arc { position: relative; height: 236px; margin: 0 -16px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.arc::before { content: ""; position: absolute; left: 50%; top: 6px; width: 220px; height: 180px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(228,184,90,.32), transparent); pointer-events: none; }
.arc-card { position: absolute; left: 50%; top: 66px; width: 104px; height: 104px; padding: 0; transform-origin: 50% 452px; will-change: transform, opacity; }
.arc-card span { display: block; width: 100%; height: 100%; border-radius: 22px; overflow: hidden; transform-origin: 50% 100%;
  transform: translateY(calc(var(--lift, 0) * -14px)) scale(calc(1 + var(--lift, 0) * .44));
  border: 1px solid rgba(255,255,255,calc(.08 + var(--lift, 0) * .3));
  box-shadow: 0 18px 30px -18px rgba(0,0,0,.95), 0 0 calc(var(--lift, 0) * 40px) rgba(228,184,90,calc(var(--lift, 0) * .45)); }
.arc-card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; filter: brightness(calc(.55 + var(--lift, 0) * .45)); }

.deck { position: relative; height: 262px; margin: 0 -16px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  mask-image: linear-gradient(180deg, #000 72%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); }
.deck::before { content: ""; position: absolute; left: 50%; top: 20px; width: 240px; height: 200px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,90,147,.28), transparent); pointer-events: none; }
.fan-card { position: absolute; left: 50%; top: 40px; width: 138px; height: 184px; padding: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line2);
  transform-origin: 50% 300%; transform: translateX(-50%) rotate(calc(var(--d, 0) * 10deg)) scale(.9);
  box-shadow: 0 24px 40px -22px rgba(0,0,0,.95); transition: transform .7s var(--spring), border-color .4s, box-shadow .6s var(--ease); }
.fan-card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; filter: brightness(.6); transition: filter .5s var(--ease); }
.fan-card.on { transform: translateX(-50%) translateY(-20px) rotate(0deg) scale(1.04); border-color: rgba(255,90,147,.55);
  box-shadow: 0 30px 50px -24px rgba(0,0,0,.95), 0 0 44px -6px rgba(255,90,147,.5); }
.fan-card.on img { filter: none; }

.show-cap { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 0 12px 6px; }
.show-cap h2 { font-size: 1.35rem; }
.show-cap p { font-size: .84rem; color: #c9c5bb; max-width: 34ch; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.show-cap .btn { margin-top: 6px; }
.show-cap.swap > * { animation: capin .55s var(--spring) both; }
.show-cap.swap > :nth-child(2) { animation-delay: 30ms; }
.show-cap.swap > :nth-child(3) { animation-delay: 60ms; }
@keyframes capin { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .fan-card { transition: none; } .show-cap.swap > * { animation: none; } }

/* ---- wallet: the two balances */
.bignum { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---- promo codes */
.promo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.promo-actions .btn { padding: 10px 10px 10px 14px; font-size: .8rem; gap: 6px; justify-content: space-between; }
.promo-actions .btn i { width: 26px; height: 26px; }
.promo-actions .btn.on { border-color: rgba(228,184,90,.55); color: var(--gold2); }
.promo-form { display: grid; gap: 8px; margin-top: 10px; animation: capin .45s var(--spring) both; }
.promo-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.promo-form[hidden] { display: none; }
.promo-form input { min-width: 0; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(0,0,0,.35); color: var(--fg);
  font: 600 .95rem var(--body); letter-spacing: .04em; outline: none; transition: border-color .3s; }
.promo-form input:focus { border-color: rgba(228,184,90,.6); }
.promo-form .btn { padding: 10px 10px 10px 16px; font-size: .85rem; }
.promo-form .btn i { width: 26px; height: 26px; }
.promos { display: grid; gap: 6px; }
.promo { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.promo div { display: grid; gap: 1px; min-width: 0; }
.promo b { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86rem; letter-spacing: .06em; color: var(--gold2); }
.promo small { font-size: .72rem; }
.promo .amt { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .86rem; }
.promo-copy { padding: 6px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: rgba(228,184,90,.14); border: 1px solid rgba(228,184,90,.35); color: var(--gold2); transition: transform .4s var(--spring); }
.promo-copy:active { transform: scale(.94); }
.promo.used b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }

/* ---- which balance the games play from */
.play-on { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--gold2); background: rgba(228,184,90,.1); border: 1px solid rgba(228,184,90,.3); }
.play-on.main { color: #b8f1dc; background: rgba(95,211,168,.1); border-color: rgba(95,211,168,.32); }
.play-switch { font-size: .86rem; padding: 10px 10px 10px 18px; }
.play-switch i { width: 28px; height: 28px; }
.core.mint-glow { --c: rgba(95,211,168,.32); }
.balance.main { background: linear-gradient(135deg, rgba(95,211,168,.22), rgba(95,211,168,.06)); border-color: rgba(95,211,168,.4); }
.balance.main .coin { background: var(--mint); box-shadow: 0 0 18px rgba(95,211,168,.5); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.seg[hidden] { display: none; }
.seg button { padding: 9px 6px; border-radius: 12px; font-size: .78rem; font-weight: 600; color: var(--muted); transition: background .3s, color .3s; }
.seg button.on { background: var(--glass2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line2); }
.show-cap .eyebrow[hidden] { display: none; }
