
/* Layout: one centered column (max 980px). A header rail holds the coin balance,
   a tab strip picks the game, and each game sits on its own "table" panel.
   Single dark look on purpose (a card-room felt), so no light-theme blocks. */
:root {
  --felt: #170828;      /* page ground: deep velvet purple */
  --felt-2: #26103f;    /* panels */
  --rail: #36175a;      /* raised controls */
  --line: #5b2f8a;      /* hairlines */
  --ink: #f7f0ff;       /* main text */
  --muted: #b9a3d8;     /* secondary text */
  --brass: #f6c445;     /* gold, the one accent */
  --brass-ink: #2b1700; /* text on gold */
  --win: #6ee7a0;
  --loss: #ff7b8a;
  --table: #1b5a4a;     /* card-table felt */
  --card: #f6f1e7;      /* playing-card face */
  --card-red: #c4372b;
  --card-black: #1b1b1b;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
html, body { background: var(--felt); color: var(--ink); }
/* stage lights: soft gold spots across the top, a purple glow at the floor */
body { background:
  radial-gradient(ellipse 30% 40% at 15% -8%, rgba(246,196,69,.22), transparent 70%),
  radial-gradient(ellipse 30% 40% at 50% -10%, rgba(255,255,255,.14), transparent 70%),
  radial-gradient(ellipse 30% 40% at 85% -8%, rgba(246,196,69,.22), transparent 70%),
  radial-gradient(ellipse 80% 40% at 50% 110%, rgba(160,70,255,.35), transparent 70%),
  url("bg-harbour.svg") center 72% / cover no-repeat fixed,
  var(--felt) fixed; }
body { margin: 0; }
body {
  font-family: var(--body); font-size: 15px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 calc(100px + env(safe-area-inset-bottom, 0px));
}
[hidden] { display: none !important; }
.wrap { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: .02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .9em; }

/* ---------- top bar (sticky) ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: #2d1050; }
header.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: linear-gradient(#2d1050, #1d0a33); border-radius: 0 0 18px 18px;
  box-shadow: 0 2px 0 rgba(246,196,69,.55), 0 8px 18px rgba(0,0,0,.45);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px;
  padding: 8px 12px;
}
.me { display: flex; align-items: center; gap: 8px; min-width: 0; }
.avatar { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--brass-ink);
  background: linear-gradient(135deg, #ffe08a, var(--brass) 50%, #b8780f); box-shadow: 0 0 0 2px #fff3c4, 0 2px 6px rgba(0,0,0,.4); }
.me-info { display: grid; gap: 2px; min-width: 0; justify-items: start; }
.balance { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: 999px; padding: 2px 3px; }
.coin { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe3a3, var(--brass) 55%, #8a5d14); box-shadow: inset 0 0 0 2px #b9832a; flex: none; }
.balance .amt { font-family: var(--display); font-size: 1.15rem; font-weight: 800; color: var(--brass); min-width: 3.5ch; }
.balance .plus { width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--win); color: #06301a; font-weight: 800; font-size: 1rem; cursor: pointer; display: grid; place-items: center; padding: 0; }
.balance.flash-win .amt { animation: pop .5s ease; color: var(--win); }
.balance.flash-loss .amt { animation: pop .5s ease; }
@keyframes pop { 40% { transform: scale(1.12); } }
.pid { color: var(--muted); font-size: .7rem; padding-left: 4px; }
.brand { padding-top: 6px; }
.brand h1 { font-size: clamp(1.6rem, 5vw, 2.5rem); line-height: 1; text-transform: uppercase; white-space: nowrap; position: relative;
  background: linear-gradient(#fff7d6 10%, #ffd45e 45%, #f6a821 60%, #b86d0c); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.5px #6b2a00; letter-spacing: .03em; transform: rotate(-2deg);
  filter: drop-shadow(0 1px 0 #fff3c4) drop-shadow(0 3px 0 #5a2a00) drop-shadow(0 5px 0 #3a1500) drop-shadow(0 0 14px rgba(246,196,69,.6)); }
.brand h1::before { content: "♛"; position: absolute; left: -.62em; top: -.3em; transform: rotate(-20deg); font-size: .62em; text-shadow: 0 0 8px rgba(255,200,60,.7); color: #ffd45e; -webkit-text-fill-color: #ffd45e; -webkit-text-stroke: 1px #6b2a00; background: none; }
.icons { display: flex; justify-content: flex-end; gap: 2px; }
.icons button { background: none; border: 0; cursor: pointer; display: grid; justify-items: center; gap: 1px; font-size: .66rem; font-weight: 600; color: var(--ink); padding: 2px 6px; }
.icons svg { width: 24px; height: 24px; color: var(--brass); filter: drop-shadow(0 0 4px rgba(246,196,69,.5)); }
@media (max-width: 560px) {
  .icons button span, .pid, #fsBtn { display: none; }
  .avatar { display: none; }
  header.top { grid-template-columns: auto minmax(0, 1fr) auto; }
  .brand h1 { font-size: 1.3rem; }
}
/* short landscape phones: slimmer bottom bar */
@media (max-height: 460px) {
  nav.bottom button svg { width: 28px; height: 28px; }
  .wheel-mini { width: 52px; height: 52px; }
  nav.bottom .wheel-btn { margin-top: -26px; }
  header.top { padding-block: 5px; }
  .avatar { width: 34px; height: 34px; }
}

/* announcement strip */
.notice { display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 4px 14px; font-size: .8rem;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.5) 10%, rgba(0,0,0,.5) 90%, transparent); }
.notice svg { flex: none; width: 18px; height: 18px; color: var(--brass); }
.notice .vp { overflow: hidden; flex: 1; min-width: 0; }
.ticker-track { display: flex; gap: 36px; white-space: nowrap; width: max-content; animation: tick 45s linear infinite; }
.ticker-track b { color: var(--win); font-weight: 600; font-family: var(--mono); }
.ticker-track .tag { color: var(--muted); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- buttons ---------- */
.btn { border: 1px solid var(--line); background: var(--rail); border-radius: 10px; padding: 9px 16px; cursor: pointer; font-weight: 600; }
.btn:hover:not(:disabled) { border-color: var(--brass); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(#ffd45e, #f0a81e); color: var(--brass-ink); border-color: #fff0b8; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn.small { padding: 5px 10px; font-size: .85rem; }
.btn.big { padding: 12px 26px; font-size: 1.05rem; }

/* ---------- lobby ---------- */
.lobby { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.banner { position: relative; overflow: hidden; border-radius: 18px; padding: 18px; min-height: 140px;
  display: grid; align-content: end; gap: 6px; border: 2px solid rgba(246,196,69,.7);
  background:
    radial-gradient(circle at 85% 20%, rgba(246,196,69,.55), transparent 45%),
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(255,255,255,.035) 22px 44px),
    linear-gradient(135deg, #5a1f8f, #1e0b3a); }
.banner .big { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: .95; text-transform: uppercase; max-width: 12ch;
  background: linear-gradient(#fff7d6, #ffd45e 60%, #f6a821); -webkit-background-clip: text; background-clip: text; color: transparent; }
.banner .big em { font-style: normal; -webkit-text-fill-color: #fff; }
.banner p { color: var(--muted); font-size: .82rem; max-width: 30ch; }
.banner .coinstack { position: absolute; right: 16px; top: 16px; display: grid; }
.banner .coinstack i { display: block; width: 56px; height: 15px; border-radius: 50%; margin-top: -6px; background: linear-gradient(#ffd98a, var(--brass) 60%, #8a5d14); box-shadow: 0 2px 0 #6e4a10; }
@media (min-width: 640px) {
  .lobby { grid-template-columns: clamp(140px, 20vw, 200px) minmax(0, 1fr); }
  .lobby .carousel, .lobby .slides, .lobby .slides .banner { height: 100%; }
  .banner { align-content: end; }
  .banner .big { font-size: 1.55rem; }
  .banner .coinstack, .banner .float { display: none; }
}

/* poster grid: two rows that scroll sideways; Hot posters span both rows */
.tiles { --th: clamp(72px, min(calc((100vh - 220px) / 2), 30vw), 170px); --th: clamp(72px, min(calc((100dvh - 220px) / 2), 30vw), 170px);
  display: grid; grid-auto-flow: column dense; grid-template-rows: repeat(2, var(--th)); grid-auto-columns: calc(var(--th) * .5);
  gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; padding: 12px 6px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.tile { position: relative; min-width: 0; grid-column: span 2; scroll-snap-align: start; animation: rise .5s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: var(--d, 0s); }
.tile.big { grid-row: span 2; grid-column: span 3; }
.tile .play { position: absolute; inset: 0; border: 0; padding: 0; background: none; cursor: pointer; width: 100%; height: 100%; color: inherit; }
.tile .art { position: absolute; inset: 0; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  font-family: var(--display); font-weight: 800; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.3);
  border: 2px solid #f6c445; box-shadow: 0 0 0 2px #7a3d00 inset, 0 6px 16px rgba(0,0,0,.45), 0 0 14px rgba(246,196,69,.25); transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover .art { transform: translateY(-3px); box-shadow: 0 0 0 2px #7a3d00 inset, 0 10px 22px rgba(0,0,0,.5), 0 0 26px rgba(246,196,69,.6); }
.tile .glyph { font-size: calc(var(--th) * .3); line-height: 1; margin-top: -24%; }
.tile:not(.big) .rtp { display: none; }
.tile.big .glyph { font-size: calc(var(--th) * .62); }
.tile .glyph svg { width: calc(var(--th) * .8); height: calc(var(--th) * .55); }
.tile.big .glyph svg { width: calc(var(--th) * 1.3); height: calc(var(--th) * 1.1); }
.tile .title { position: absolute; left: 4px; right: 4px; bottom: 7px; text-align: center; font-size: clamp(.9rem, calc(var(--th) * .13), 1.3rem); line-height: .95; text-transform: uppercase;
  background: linear-gradient(#fffbe8 10%, #ffd45e 50%, #f39c12); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #3d1a00); text-shadow: none; }
.tile.big .title { font-size: clamp(1.1rem, calc(var(--th) * .19), 1.8rem); bottom: 12px; }
.tile .rtp { position: absolute; top: 6px; right: 6px; font-family: var(--mono); font-size: .6rem; font-weight: 500; background: rgba(0,0,0,.5); padding: 1px 5px; border-radius: 6px; text-shadow: none; }
.tile .hot { position: absolute; top: -9px; left: -4px; z-index: 2; pointer-events: none; font-family: var(--display); font-weight: 800; font-size: .85rem; letter-spacing: .04em; color: #fff;
  padding: 1px 8px 1px 19px; background: linear-gradient(#ffb03a, #e8431f); border-radius: 6px 10px 10px 2px; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0,0,0,.5); animation: pulse 1.1s ease-in-out infinite; }
.tile .hot::before { content: ""; position: absolute; left: 5px; top: 3px; width: 10px; height: 13px; background: radial-gradient(circle at 50% 70%, #fff6b0, #ffcc33 45%, #ff7a00 70%, transparent 72%); border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%; }
.tile .fav { position: absolute; right: -6px; bottom: -6px; z-index: 2; width: 30px; height: 30px; border: 0; background: none; cursor: pointer; font-size: 1.45rem; line-height: 1; color: #5e4a1c; text-shadow: 0 1px 0 #000; padding: 0; }
.tile .fav[aria-pressed="true"] { color: var(--brass); filter: drop-shadow(0 0 6px rgba(246,196,69,.9)); }
.tiles .empty { grid-row: span 2; grid-column: span 6; align-self: center; color: var(--muted); font-size: .9rem; }
.art-slots { background: radial-gradient(circle at 50% 30%, #ff9b7a, #b8322a 55%, #5c0f12); }
.art-crash { background: radial-gradient(circle at 70% 20%, #6b4ad8, #2a1660 60%, #10082a); }
.art-bj { background: radial-gradient(circle at 50% 30%, #2f7a5f, #123d31 75%); }
.art-mines { background: repeating-conic-gradient(#2b4f7a 0 25%, #224268 0 50%) 0 0 / 33.3% 33.3%; }
.art-dt { background: linear-gradient(90deg, #8f2330 0 50%, #1f4f8f 50% 100%); }
.art-keno { background: radial-gradient(circle at 50% 30%, #5fd0ff, #1b4fa0 60%, #0b1f4a); }
.art-dice { background: radial-gradient(circle at 40% 30%, #ff7ad9, #7a1f8f 60%, #2a0838); }

/* ---------- bottom category bar with the bonus wheel in the middle ---------- */
nav.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: center;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); pointer-events: none; }
nav.bottom .inner { pointer-events: auto; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 82px repeat(3, minmax(0, 1fr)); align-items: end;
  width: 100%; max-width: 760px; background: linear-gradient(#3a1766, #1d0a33); border: 2px solid rgba(246,196,69,.65); border-bottom: 0; border-radius: 20px 20px 0 0;
  padding: 4px 6px 6px; box-shadow: 0 -6px 18px rgba(0,0,0,.45); }
nav.bottom button { background: none; border: 0; cursor: pointer; display: grid; justify-items: center; gap: 2px; padding: 3px 0; font-size: .66rem; font-weight: 600; color: var(--muted); min-width: 0; }
nav.bottom button svg { width: 34px; height: 34px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); transition: transform .2s; }
nav.bottom button[aria-pressed="true"] svg { transform: translateY(-3px) scale(1.12); filter: drop-shadow(0 0 8px rgba(246,196,69,.8)); }
nav.bottom button .lbl { padding: 0 8px; border-radius: 999px; white-space: nowrap; }
nav.bottom button[aria-pressed="true"] { color: var(--ink); }
nav.bottom button[aria-pressed="true"] .lbl { background: linear-gradient(#7b2ff7, #4a148c); box-shadow: 0 0 0 1px rgba(246,196,69,.6); }
nav.bottom .wheel-btn { position: relative; margin-top: -34px; }
.wheel-mini { width: 62px; height: 62px; border-radius: 50%; border: 4px solid var(--brass);
  background: conic-gradient(#7b2ff7 0 45deg, #e8431f 0 90deg, #1f6fb5 0 135deg, #f6a821 0 180deg, #c0145a 0 225deg, #1b8a5a 0 270deg, #5a1f8f 0 315deg, #d4651a 0);
  box-shadow: 0 0 0 3px #7a3d00, 0 0 18px rgba(246,196,69,.7); animation: rays 10s linear infinite; }
nav.bottom .wheel-btn .lbl { background: linear-gradient(#ffd45e, #e08a12); color: var(--brass-ink); font-weight: 800; }
.wheel-btn .dot { position: absolute; top: 0; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--loss); box-shadow: 0 0 0 2px #1d0a33; }
.back { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font-weight: 600; font-size: .9rem; }
.back:hover { color: var(--ink); }

/* ---------- bonus wheel modal ---------- */
.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(8, 2, 18, .82); padding: 16px; animation: fadein .2s ease; }
.wheel-card { position: relative; display: grid; gap: 12px; justify-items: center; width: min(340px, 100%); max-height: 100%; overflow: auto;
  background: linear-gradient(#3a1766, #1d0a33); border: 2px solid var(--brass); border-radius: 22px; padding: 18px; }
.wheel-card h2 { font-size: 1.8rem; text-transform: uppercase; background: linear-gradient(#fff7d6, #ffd45e 55%, #f39c12); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wheel-wrap { position: relative; width: min(250px, 66vw, 52vh); aspect-ratio: 1; max-width: 100%; }
.wheel { position: absolute; inset: 0; border-radius: 50%; border: 8px solid var(--brass); box-shadow: 0 0 0 4px #7a3d00, 0 0 30px rgba(246,196,69,.5); overflow: hidden; }
.wheel .seg { position: absolute; inset: 0; }
.wheel .seg span { position: absolute; left: 50%; top: 9%; transform: translateX(-50%); font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.wheel-wrap .pointer { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 2; width: 0; height: 0;
  border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 26px solid #fff; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.wheel-wrap .hub { position: absolute; inset: 37%; z-index: 1; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--brass-ink);
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--brass) 55%, #8a5d14); box-shadow: 0 0 0 4px #7a3d00; }
.close-x { position: absolute; top: 6px; right: 10px; background: none; border: 0; color: var(--muted); font-size: 1.5rem; cursor: pointer; }

/* inside a game: hide the category bar and announcement strip, like a full-screen game */
body:not([data-view="lobby"]):not([data-view="betting"]) nav.bottom, body:not([data-view="lobby"]) .notice { display: none; }
body:not([data-view="lobby"]) { padding-block-end: calc(24px + env(safe-area-inset-bottom, 0px)); }

/* ---------- big win show ---------- */
.winpop canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.winpop .inner { z-index: 2; }
.winpop .rays { z-index: 1; }
.winpop .kind.tier-up { animation: tierup .5s cubic-bezier(.2, 1.8, .4, 1), throb .9s ease-in-out .5s infinite alternate; }
@keyframes tierup { from { transform: scale(2.2) rotate(-6deg); opacity: 0; } }
.winpop .kind.super { background: linear-gradient(#fff, #ffb3e6 35%, #ff4fb0 60%, #8a1fd1); -webkit-background-clip: text; background-clip: text; }
.winpop .kind.mega { background: linear-gradient(#fff, #b3f0ff 35%, #3fb6ff 60%, #1b4fa0); -webkit-background-clip: text; background-clip: text; }
.winpop .amount { font-size: clamp(2.4rem, 9vw, 3.6rem); }

/* ---------- glossy slot symbols ---------- */
.vcell .sym { width: min(86%, calc(var(--ch) * .86)); aspect-ratio: 1; height: auto; border-radius: 18%; display: grid; place-items: center; position: relative; overflow: hidden; font-size: calc(var(--ch) * .5);
  background: radial-gradient(circle at 50% 28%, var(--c1), var(--c2) 72%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.35), inset 0 -5px 0 rgba(0,0,0,.3), 0 0 0 2px #f6c445, 0 0 0 4px #7a3d00, 0 5px 10px rgba(0,0,0,.5); }
.vcell .sym::after { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(255,255,255,.5) 0 20%, transparent 21%); pointer-events: none; }
.vcell .sym > * { position: relative; z-index: 1; }
.sym.s-wild { --c1: #fff3c4; --c2: #d48a12; } .sym.s-scat { --c1: #ffb3e6; --c2: #8a1fd1; }
.sym.s-h1 { --c1: #ff7a7a; --c2: #8f1520; } .sym.s-h2 { --c1: #7ac4ff; --c2: #154a8f; }
.sym.s-h3 { --c1: #c99bff; --c2: #4a1f8f; } .sym.s-h4 { --c1: #8af0b4; --c2: #126b3e; }
.vcell .lt { font-family: var(--display); font-weight: 800; font-size: calc(var(--ch) * .66); -webkit-text-stroke: 0;
  background: linear-gradient(#ffffff 15%, var(--lc) 55%, #2a0a00 120%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.7)) drop-shadow(0 0 6px var(--lc)); text-shadow: none; }
.vcell .lt.A { --lc: #ff4a4a; } .vcell .lt.K { --lc: #3fa2ff; } .vcell .lt.Q { --lc: #c86bff; } .vcell .lt.J { --lc: #3fe08a; }
.vcell .tag { z-index: 2; }
.vs-frame .bulbs { inset: 3px; border-radius: 15px; }
.vs-frame.won .bulbs { animation-duration: .2s; opacity: 1; }
.vs-frame.won { box-shadow: 0 0 0 3px #7a3d00, 0 0 50px rgba(246,196,69,.8); }
.vs-tools { display: flex; gap: 8px; }
.vs-tools .btn { padding: 6px 12px; font-size: .8rem; }

/* ---------- lobby sparkle ---------- */
.tile .art svg.poster { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .4s ease; }
.tile:hover .art svg.poster { transform: scale(1.06); }
.tile .art .title, .tile .art .rtp { z-index: 2; }
.tile .art .title::before { content: ""; position: absolute; inset: -40% -10% -30%; z-index: -1; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.tile .art::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0;
  background: radial-gradient(circle, #fff 0 1.6px, transparent 2.2px) 18% 22% / 38% 40%, radial-gradient(circle, #fff3c4 0 1.2px, transparent 1.8px) 72% 64% / 30% 34%;
  animation: twinkle 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes twinkle { 50% { opacity: .95; } }
.tile .glyph { filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)) drop-shadow(0 0 14px rgba(255,240,200,.35)); }
.tile.big .glyph { animation: bob 3.2s ease-in-out infinite; }
.icons button[aria-pressed="false"] svg { opacity: .45; }

/* ---------- login screen ---------- */
.login { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; overflow: hidden;
  background:
    radial-gradient(ellipse 40% 50% at 50% 0%, rgba(255,255,255,.18), transparent 70%),
    radial-gradient(ellipse 30% 45% at 15% -5%, rgba(246,196,69,.3), transparent 70%),
    radial-gradient(ellipse 30% 45% at 85% -5%, rgba(246,196,69,.3), transparent 70%),
    linear-gradient(#3a1470, #170828 70%); }
.login::before { content: ""; position: absolute; inset: auto 0 0; height: 32%; background: linear-gradient(transparent, rgba(160,70,255,.35)), repeating-linear-gradient(90deg, rgba(246,196,69,.18) 0 2px, transparent 2px 60px); transform: perspective(300px) rotateX(55deg); transform-origin: bottom; }
.login .rain { position: absolute; inset: 0; pointer-events: none; }
.login .rain i { position: absolute; top: -40px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe9b8, var(--brass) 55%, #8a5d14); box-shadow: inset 0 0 0 2px #b9832a; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(120vh) rotate(540deg); } }
.login-card { position: relative; display: grid; gap: 14px; justify-items: center; width: min(420px, 100%); text-align: center; }
.login-logo { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 12vw, 5.2rem); line-height: .85; text-transform: uppercase; position: relative;
  background: linear-gradient(#fffbe8 8%, #ffd45e 40%, #f39c12 62%, #a8600a); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #4a2300) drop-shadow(0 0 22px rgba(246,196,69,.6)); animation: throb 1.6s ease-in-out infinite alternate; }
.login-logo::before { content: "♛"; position: absolute; left: 50%; top: -.5em; transform: translateX(-50%); font-size: .45em; color: var(--brass); -webkit-text-fill-color: var(--brass); }
.login-logo small { display: block; font-size: .32em; letter-spacing: .3em; -webkit-text-fill-color: #fff; }
.login-form { display: grid; gap: 10px; width: 100%; background: rgba(20, 6, 40, .72); border: 2px solid rgba(246,196,69,.7); border-radius: 18px; padding: 16px; }
.login-form input { width: 100%; box-sizing: border-box; background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 1rem; color: var(--ink); }
.login-form .row { display: flex; gap: 8px; }
.login-form .row .btn { flex: 1; }
.login-note { color: var(--muted); font-size: .78rem; }

/* ---------- fish shooter ---------- */
#fish.table, #roulette.table, #vslot.table { max-width: 960px; }
.fish-stage { width: min(100%, calc((100vh - 130px) * 16 / 9)); width: min(100%, calc((100dvh - 130px) * 16 / 9)); min-width: min(100%, 300px); justify-self: center; position: relative; border-radius: 16px; overflow: hidden; border: 2px solid var(--brass); box-shadow: 0 0 0 2px #7a3d00 inset; }
#fishCanvas { display: block; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; }
.fish-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.fish-legend span { font-size: .75rem; font-family: var(--mono); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; display: inline-flex; gap: 6px; align-items: center; }
.fish-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.fish-legend b { color: var(--brass); font-weight: 500; }
.btn[aria-pressed="true"] { background: var(--win); color: #06301a; border-color: var(--win); }

/* ---------- roulette ---------- */
.rl-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: center; }
@media (min-width: 700px) { .rl-layout { grid-template-columns: minmax(180px, 250px) minmax(0, 1fr); } }
#rlCanvas { width: 100%; max-width: 250px; aspect-ratio: 1; display: block; margin: 0 auto; }
.rl-table-wrap { overflow-x: auto; padding: 8px 4px; }
.rl-table { display: grid; grid-template-columns: 1.1fr repeat(12, minmax(26px, 1fr)) 1.2fr; grid-template-rows: repeat(3, 36px) 30px 30px; gap: 3px; min-width: 460px;
  background: radial-gradient(ellipse at 50% 30%, #1d6a50, #0d3b2f); padding: 6px; border-radius: 10px; border: 2px solid var(--brass); }
.rl-table button { position: relative; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; color: #fff; font-weight: 700; font-size: .8rem; cursor: pointer; padding: 0; background: transparent; font-variant-numeric: tabular-nums; }
.rl-table button:hover { box-shadow: inset 0 0 0 2px rgba(246,196,69,.7); }
.rl-table .red { background: #c0262d; } .rl-table .black { background: #1b1b1b; } .rl-table .green { background: #11804a; }
.rl-table .out { font-size: .68rem; letter-spacing: .04em; }
.rl-table button.win { box-shadow: 0 0 0 3px var(--brass), 0 0 18px var(--brass); z-index: 1; animation: pulse .6s ease-in-out 4; }
.rl-chip { position: absolute; right: -6px; top: -8px; min-width: 22px; height: 22px; border-radius: 50%; background: var(--brass); color: var(--brass-ink); font-size: .6rem; font-weight: 800; display: grid; place-items: center; border: 2px dashed #fff; padding: 0 2px; pointer-events: none; z-index: 2; box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.rl-hist { display: flex; flex-wrap: wrap; gap: 4px; }
.rl-hist span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; font-family: var(--mono); color: #fff; }
.rl-hist .r { background: #c0262d; } .rl-hist .b { background: #1b1b1b; border: 1px solid #555; } .rl-hist .g { background: #11804a; }

/* ---------- video slots ---------- */
.vs-frame { position: relative; border-radius: 18px; padding: 10px; background: var(--vs-bg, #1b2550); border: 3px solid var(--brass); box-shadow: 0 0 0 3px #7a3d00, 0 0 30px rgba(246,196,69,.3); display: grid; gap: 8px; }
.vs-grid { --ch: clamp(50px, min(15vw, calc((100vh - 190px) / 3)), 96px); --ch: clamp(50px, min(15vw, calc((100dvh - 190px) / 3)), 96px);
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.vreel { height: calc(var(--ch) * 3); overflow: hidden; border-radius: 10px; background: rgba(0,0,0,.35); position: relative;
  box-shadow: inset 0 10px 14px -8px rgba(0,0,0,.7), inset 0 -10px 14px -8px rgba(0,0,0,.7); }
.vreel.landed { animation: thud .28s ease-out; }
.vstrip { will-change: transform; }
.vcell { height: var(--ch); display: grid; place-items: center; font-size: calc(var(--ch) * .58); line-height: 1; position: relative; }
.vcell .lt { font-family: var(--display); font-weight: 800; font-size: calc(var(--ch) * .58); -webkit-text-stroke: 1px rgba(0,0,0,.4); text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.vcell .lt.A { color: #ff5a5a; } .vcell .lt.K { color: #5ab0ff; } .vcell .lt.Q { color: #d67bff; } .vcell .lt.J { color: #6ee7a0; }
.vcell .tag { position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: calc(var(--ch) * .2); font-weight: 800; color: #fff; padding: 0 6px; border-radius: 6px; letter-spacing: .04em; }
.vcell .tag.wild { background: linear-gradient(#ffb03a, #e8431f); }
.vcell .tag.scat { background: linear-gradient(#ff4fb0, #8a1fd1); }
.vcell.hit { animation: hitpulse .5s ease-in-out infinite alternate; background: radial-gradient(circle, rgba(246,196,69,.5), transparent 70%); border-radius: 10px; }
@keyframes hitpulse { to { transform: scale(1.1); } }
.vs-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.vs-lines polyline { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(0,0,0,.8)); animation: dash 1s linear; stroke-dasharray: 600; }
@keyframes dash { from { stroke-dashoffset: 600; } }
.vs-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vs-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2rem); text-transform: uppercase; line-height: 1;
  background: linear-gradient(#fffbe8, #ffd45e 50%, #f39c12); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #3d1a00); }
.vs-fs { font-family: var(--display); font-weight: 800; padding: 2px 14px; border-radius: 999px; background: linear-gradient(#ff4fb0, #8a1fd1); animation: pulse .9s ease-in-out infinite; }
.vs-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.vs-meter { display: grid; text-align: center; min-width: 70px; }
.vs-meter span { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vs-meter b { font-family: var(--display); font-size: 1.4rem; color: var(--brass); font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--brass); background: var(--rail); font-weight: 800; cursor: pointer; }
.spin-round { width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff3c4; cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--brass-ink);
  background: radial-gradient(circle at 40% 30%, #fff3c4, #ffd45e 40%, #e08a12); box-shadow: 0 0 0 3px #7a3d00, 0 0 22px rgba(246,196,69,.6); }
.spin-round:disabled { filter: grayscale(.6); cursor: default; }
.art-wolf { background: radial-gradient(circle at 70% 22%, #fff6d8 0 9%, rgba(255,246,216,.25) 10%, transparent 30%), linear-gradient(#1b2a6b, #0a0f2e); }
.art-bull { background: radial-gradient(circle at 50% 78%, #ffcf5a 0 14%, transparent 15%), linear-gradient(#ff8a3d, #b8322a 55%, #4a1010); }
.art-fish { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.3), transparent 30%), linear-gradient(#1aa6d8, #0b3e7a 60%, #061a3a); }
.art-roulette { background: radial-gradient(circle, #0d3b2f 0 32%, #f6c445 33% 35%, transparent 36%), repeating-conic-gradient(#c0262d 0 9.73deg, #1b1b1b 9.73deg 19.46deg); }

/* ---------- keno ---------- */
.keno-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.keno-grid button { aspect-ratio: 1; max-width: 100%; border-radius: 50%; border: 2px solid var(--line); background: var(--rail); font-weight: 700; font-size: .85rem; cursor: pointer; font-variant-numeric: tabular-nums; padding: 0; }
.keno-grid button.picked { background: linear-gradient(#ffd45e, #f0a81e); color: var(--brass-ink); border-color: #fff3c4; }
.keno-grid button.drawn { border-color: #5fd0ff; box-shadow: inset 0 0 0 2px #5fd0ff; animation: flip .35s cubic-bezier(.3, 1.5, .5, 1) both; }
.keno-grid button.drawn.picked { background: var(--win); color: #06301a; box-shadow: 0 0 14px var(--win); }
.keno-pays { display: flex; flex-wrap: wrap; gap: 6px; }
.keno-pays span { font-family: var(--mono); font-size: .78rem; border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }
.keno-pays span.hit { background: var(--win); color: #06301a; border-color: var(--win); }

/* ---------- dice ---------- */
.dice-roll { font-family: var(--display); font-weight: 800; font-size: 4.2rem; text-align: center; line-height: 1; font-variant-numeric: tabular-nums; }
.dice-roll.win { color: var(--win); } .dice-roll.loss { color: var(--loss); }
.dice-bar { position: relative; height: 14px; border-radius: 999px; margin-block: 8px; background: linear-gradient(90deg, var(--loss) 0 var(--t, 50%), var(--win) var(--t, 50%) 100%); }
.dice-bar .marker { position: absolute; top: -8px; width: 4px; height: 30px; background: #fff; border-radius: 2px; left: var(--r, 50%); transform: translateX(-50%); transition: left .5s cubic-bezier(.2, 1.4, .4, 1); box-shadow: 0 0 8px #fff; }
.dice-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.dice-stats b { display: block; font-family: var(--mono); font-size: 1.1rem; color: var(--brass); font-weight: 500; }
.dice-stats span { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
input[type="range"] { width: 100%; accent-color: var(--brass); }

/* ---------- mines ---------- */
.mine-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 360px; margin: 0 auto; }
.mine-grid button {
  aspect-ratio: 1; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--rail); cursor: pointer;
  font-size: 1.4rem; font-family: var(--display); font-weight: 800; box-shadow: inset 0 -4px 0 rgba(0,0,0,.25);
}
.mine-grid button:disabled { cursor: default; }
.mine-grid button.safe { background: #1d5a46; color: var(--win); box-shadow: none; }
.mine-grid button.boom { background: #6b2620; color: #fff; box-shadow: none; }
.mine-grid button.ghost { opacity: .5; box-shadow: none; }
.field select { background: var(--felt); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }

/* ---------- dragon tiger ---------- */
.dt-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; justify-items: center; }
.dt-side { display: grid; gap: 8px; justify-items: center; }
.dt-side .who { font-family: var(--display); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; }
.dt-side.dragon .who { color: #ff8b8b; }
.dt-side.tiger .who { color: #8cb9ff; }
.dt-slot { width: 70px; height: 100px; border-radius: 8px; border: 2px dashed var(--line); display: grid; place-items: center; }
.dt-slot .pcard { margin-left: 0; }
.dt-vs { font-family: var(--display); font-weight: 800; color: var(--muted); }
.dt-bets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dt-bets button { border: 2px solid var(--line); background: var(--rail); border-radius: 12px; padding: 10px 6px; cursor: pointer; display: grid; gap: 2px; justify-items: center; }
.dt-bets button b { font-family: var(--display); font-size: 1.2rem; text-transform: uppercase; }
.dt-bets button span { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.dt-bets button[aria-pressed="true"] { border-color: var(--brass); }
.dt-bets button.won { background: #1d5a46; }

/* ---------- table panel ---------- */
.table {
  width: 100%; max-width: 560px; justify-self: center;
  background: var(--felt-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; display: grid; gap: 18px;
}
.table-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.table-head h2 { font-size: 1.5rem; text-transform: uppercase; }
.rtp-tag { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.rtp-tag b { color: var(--brass); font-weight: 500; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.controls .label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 3px dashed var(--line); background: var(--rail); font-weight: 600; font-size: .9rem;
}
.chip[aria-pressed="true"] { border-color: var(--brass); border-style: dashed; background: var(--brass); color: var(--brass-ink); }
.status { min-height: 1.6em; font-weight: 600; }
.status.win { color: var(--win); }
.status.loss { color: var(--loss); }
.status.neutral { color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 8px; min-width: 0; }
.box h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }

/* ---------- slots ---------- */
.machine {
  background: var(--felt); border: 2px solid var(--line); border-radius: 16px; padding: 18px;
  display: grid; gap: 14px; justify-items: center;
}
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 420px; position: relative; }
.reel {
  background: var(--card); border-radius: 10px; display: grid; grid-template-rows: repeat(3, 1fr);
  height: 216px; overflow: hidden; box-shadow: inset 0 10px 14px -8px rgba(0,0,0,.45), inset 0 -10px 14px -8px rgba(0,0,0,.45);
}
.cell { display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.cell.dim { opacity: .35; }
.payline { position: absolute; left: -6px; right: -6px; top: 50%; height: 2px; background: var(--brass); opacity: .8; pointer-events: none; }
.machine.won .reel .cell:nth-child(2) { animation: glow .9s ease 2; }
@keyframes glow { 50% { background: #fff3cf; } }
.sym-seven { color: #c4372b; }
.sym-bar { color: #1b1b1b; font-size: 1.6rem; letter-spacing: .05em; border: 3px solid #1b1b1b; padding: 2px 6px; border-radius: 4px; }
.sym-star { color: #b8860b; }
.sym-gem { color: #1f6fb5; }
.sym-heart { color: #b0306a; }
.sym-cherry { color: #7a1f1f; }
.paytable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.paytable td { padding: 4px 0; border-bottom: 1px solid var(--line); }
.paytable td:last-child { text-align: right; font-family: var(--mono); }
.paytable .glyph { display: inline-block; min-width: 3.2em; font-family: var(--display); font-weight: 800; color: var(--ink); }

/* ---------- crash ---------- */
.crash-stage { position: relative; background: var(--felt); border: 2px solid var(--line); border-radius: 16px; overflow: hidden; }
#crashCanvas { display: block; width: 100%; height: 280px; }
.crash-mult {
  position: absolute; top: 14px; right: 18px; text-align: right; pointer-events: none;
  font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.crash-mult small { display: block; font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crash-mult.crashed { color: var(--loss); }
.crash-mult.cashed small { color: var(--win); }
.field { display: flex; align-items: center; gap: 8px; }
.field input {
  width: 6.5em; background: var(--felt); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
}
.history { display: flex; gap: 6px; flex-wrap: wrap; }
.history span { font-family: var(--mono); font-size: .8rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.history .lo { color: var(--loss); }
.history .hi { color: var(--win); }

/* ---------- blackjack ---------- */
.bj-table {
  background: radial-gradient(ellipse at 50% 0%, #2b7a63 0%, var(--table) 45%, #0d2e26 100%);
  border: 2px solid var(--line); border-radius: 16px 16px 120px 120px; padding: 20px 18px 34px;
  display: grid; gap: 20px; justify-items: center;
}
.hand-row { display: grid; gap: 8px; justify-items: center; width: 100%; }
.hand-row .who { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hand-row .who b { color: var(--ink); font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.hand { display: flex; justify-content: center; min-height: 104px; flex-wrap: wrap; gap: 0; }
.pcard {
  width: 70px; height: 100px; border-radius: 8px; background: var(--card); color: var(--card-black);
  box-shadow: 0 3px 8px rgba(0,0,0,.4); margin-left: -18px; position: relative;
  display: grid; grid-template-rows: auto 1fr; padding: 5px 7px; animation: deal .25s ease both;
}
.pcard:first-child { margin-left: 0; }
.pcard.red { color: var(--card-red); }
.pcard .corner { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.pcard .pip { display: grid; place-items: center; font-size: 2rem; }
.pcard.back {
  background: repeating-linear-gradient(45deg, var(--rail) 0 6px, var(--felt-2) 6px 12px);
  border: 3px solid var(--card);
}
@keyframes deal { from { transform: translateY(-24px); opacity: 0; } }
.bj-rules { font-family: var(--mono); font-size: .78rem; color: var(--muted); text-align: center; }

/* ---------- notes ---------- */
.notes { display: grid; gap: 18px; max-width: 70ch; }
.notes h3 { font-size: 1.35rem; text-transform: uppercase; }
.notes p, .notes li { color: var(--ink); }
.notes ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.notes code, .notes pre { font-family: var(--mono); font-size: .85rem; }
.notes pre { background: var(--felt); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; margin: 0; }
.notes .guess { color: var(--brass); font-weight: 600; }

/* ---------- log ---------- */
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .85rem; max-height: 180px; overflow-y: auto; }
.log li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line); padding: 3px 0; }
.log li .d { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.log li .d.win { color: var(--win); }
.log li .d.loss { color: var(--loss); }
.disclaimer { color: var(--muted); font-size: .8rem; text-align: center; }

/* ---------- reels as scrolling strips ---------- */
.reel { display: block; position: relative; }
.strip { will-change: transform; }
.strip .cell { height: 72px; }
.reel.landed { animation: thud .28s ease-out; }
@keyframes thud { 35% { transform: translateY(5px); } }
.reel.tease, .vreel.tease { box-shadow: 0 0 0 3px var(--brass), 0 0 26px 4px rgba(227,171,74,.7); animation: tease .5s ease-in-out infinite alternate; }
@keyframes tease { to { box-shadow: 0 0 0 3px #fff3cf, 0 0 36px 10px rgba(227,171,74,.9); } }
.machine.won .reels { animation: winshake .5s ease; }
@keyframes winshake { 20%, 60% { transform: rotate(-1deg) scale(1.02); } 40%, 80% { transform: rotate(1deg) scale(1.02); } }
.machine { position: relative; }
.bulbs { position: absolute; inset: 6px; border-radius: 12px; pointer-events: none;
  background: radial-gradient(circle, var(--brass) 2px, transparent 3px) 0 0 / 18px 18px;
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 6px; opacity: .55; animation: bulbs 1.2s steps(2) infinite; }
.machine.won .bulbs { animation-duration: .25s; opacity: 1; }
@keyframes bulbs { 50% { background-position: 9px 9px; } }

/* ---------- FX layer: flying coins and win popup ---------- */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.fxcoin { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9b8, var(--brass) 55%, #8a5d14); box-shadow: inset 0 0 0 2px #b9832a; }
.winpop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(4, 14, 13, .78); cursor: pointer; animation: fadein .2s ease; overflow: hidden; }
@keyframes fadein { from { opacity: 0; } }
.winpop .rays { position: absolute; width: 640px; height: 640px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(227,171,74,.28) 0 9deg, transparent 9deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%);
  animation: rays 7s linear infinite; }
@keyframes rays { to { transform: rotate(360deg); } }
.winpop .inner { position: relative; text-align: center; display: grid; gap: 4px; padding-inline: 16px; animation: zoomin .55s cubic-bezier(.2, 1.7, .4, 1) both; }
@keyframes zoomin { from { transform: scale(.2); opacity: 0; } }
.winpop .kind { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 16vw, 5rem); line-height: .9; text-transform: uppercase;
  background: linear-gradient(#fffbe8 10%, #ffd57a 45%, var(--brass) 60%, #a26a14); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #4a2f06) drop-shadow(0 0 18px rgba(227,171,74,.55)); animation: throb .9s ease-in-out infinite alternate; }
@keyframes throb { to { transform: scale(1.06); } }
.winpop .amount { font-family: var(--display); font-weight: 800; font-size: 2.8rem; color: var(--ink); font-variant-numeric: tabular-nums; display: flex; gap: 10px; align-items: center; justify-content: center; }
.winpop .amount .coin { width: 34px; height: 34px; }
.winpop .hint { color: var(--muted); font-size: .8rem; }

/* ---------- lobby motion ---------- */
.carousel { position: relative; overflow: hidden; border-radius: 18px; }
.slides { display: flex; transition: transform .6s cubic-bezier(.6, 0, .2, 1); }
.slides .banner { flex: 0 0 100%; border-radius: 18px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.banner.b2 { background: radial-gradient(circle at 80% 30%, rgba(255,128,112,.55), transparent 45%), linear-gradient(135deg, #3b2a6b, #10223a); }
.banner.b3 { background: radial-gradient(circle at 80% 30%, rgba(116,214,160,.45), transparent 45%), repeating-conic-gradient(#2b4f7a 0 25%, #224268 0 50%) 0 0 / 40px 40px; }
.banner .float { position: absolute; right: 18px; top: 16px; font-family: var(--display); font-weight: 800; font-size: 3.6rem; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-6deg); } }
.coinstack { animation: bob 2.8s ease-in-out infinite; }
.dots { position: absolute; bottom: 10px; right: 14px; display: flex; gap: 6px; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: width .3s; }
.dots button[aria-current="true"] { width: 22px; background: var(--brass); }
@keyframes rise { from { transform: translateY(16px) scale(.94); } }
.tile .art::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.3) 50%, transparent 65%);
  transform: translateX(-130%); animation: shimmer 4.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes shimmer { 0%, 72% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes pulse { 50% { transform: scale(1.12); } }
.tile:active .art { transform: scale(.96); }
.btn.primary.big:not(:disabled) { animation: glowbtn 1.8s ease-in-out infinite; }
@keyframes glowbtn { 50% { box-shadow: 0 0 0 4px rgba(227,171,74,.22), 0 0 22px rgba(227,171,74,.45); } }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.98); }

/* ---------- crash / mines / dragon motion ---------- */
.crash-stage.shake { animation: shake .5s ease; }
@keyframes shake { 15% { transform: translate(-6px, 3px); } 30% { transform: translate(5px, -4px); } 45% { transform: translate(-4px, 2px); } 60% { transform: translate(3px, -1px); } }
.crash-mult.crashed span { animation: pop .4s ease; display: inline-block; }
.mine-grid button.flip { animation: flip .4s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: var(--d, 0s); }
@keyframes flip { from { transform: rotateY(90deg) scale(.8); } }
.mine-grid.boom { animation: shake .5s ease; }
.mine-grid button:not(:disabled):hover { background: #21504a; transform: translateY(-2px); }
.dt-slot .pcard { animation: flipcard .45s ease both; }
@keyframes flipcard { from { transform: rotateY(90deg); } }
.dt-side.winner .dt-slot { box-shadow: 0 0 0 3px var(--brass), 0 0 24px rgba(227,171,74,.7); border-color: transparent; }
.dt-vs.clash { animation: clash .4s ease; }
@keyframes clash { 50% { transform: scale(1.8); color: var(--brass); } }

@media (prefers-reduced-motion: reduce) {
  .winpop .rays, .tile .art::after, .bulbs { animation: none; }
  .ticker-track { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* =========== v9: closer to the reference lobby feel =========== */
/* thin see-through top bar that lets the harbour show */
header.top { background: linear-gradient(rgba(20,6,46,.85), rgba(20,6,46,0)); box-shadow: none; border-radius: 0; padding-bottom: 14px; }
body::before { background: rgba(20,6,46,.85); }
.balance { background: rgba(0,0,0,.35); border-color: rgba(246,196,69,.35); }
/* lobby: no notice strip, featured poster on the left, one row of tall posters */
body[data-view="lobby"] .notice { display: none; }
.lobby { align-items: stretch; }
.tiles { --ph: clamp(170px, calc(100dvh - 205px - env(safe-area-inset-bottom, 0px)), 520px); --th: calc(var(--ph) * .55);
  grid-template-rows: var(--ph); grid-auto-columns: calc(var(--ph) * .64); gap: 14px; padding: 22px 6px 12px; }
.tile, .tile.big { grid-row: span 1; grid-column: span 1; }
.tile .art { border-radius: 10px; border: 3px solid transparent;
  background-origin: border-box; box-shadow: 0 0 0 1px #3d1a00, 0 0 0 3px #f6c445, 0 0 0 4px #7a3d00, 0 10px 22px rgba(0,0,0,.6); }
.tile:hover .art { box-shadow: 0 0 0 1px #3d1a00, 0 0 0 3px #ffe08a, 0 0 0 4px #7a3d00, 0 0 28px rgba(246,196,69,.75); }
.tile .title, .tile.big .title { font-size: clamp(1rem, calc(var(--ph) * .085), 1.6rem); bottom: 10px; -webkit-text-stroke: 1px #5a2a00; }
.tile:not(.big) .rtp { display: inline; }
/* flame Hot badge sitting on top of the poster */
.tile .hot { top: -20px; left: 4px; font-size: .8rem; padding: 14px 8px 2px; background: none; box-shadow: none; text-shadow: 0 1px 0 #7a1a00, 0 0 6px #ff7a00; }
.tile .hot::before { left: 50%; top: -2px; width: 16px; height: 17px; z-index: -1; transform: translateX(-50%); animation: flicker .9s ease-in-out infinite alternate;
  background: radial-gradient(ellipse at 50% 75%, #fff6b0, #ffcc33 30%, #ff7a00 58%, rgba(255,60,0,0) 72%); filter: blur(.3px); }
@keyframes flicker { to { transform: translateX(-50%) scale(1.12, 1.2) rotate(4deg); } }
/* featured card as a poster: big art, no paragraph text */
.banner p { display: none; }
.banner { border: 3px solid #f6c445; box-shadow: 0 0 0 1px #7a3d00, 0 10px 22px rgba(0,0,0,.6); align-content: end; justify-items: center; text-align: center; }
.banner .big { font-size: 1.7rem; text-align: center; -webkit-text-stroke: 1px #5a2a00; }
@media (min-width: 640px) {
  .lobby { grid-template-columns: calc(var(--feat, 180px)) minmax(0, 1fr); }
  .lobby .carousel { height: auto; align-self: center; height: clamp(170px, calc(100dvh - 205px), 520px); margin-top: 10px; }
  .banner .float, .banner .coinstack { display: grid; position: absolute; left: 50%; top: 38%; right: auto; transform: translate(-50%, -50%); }
  .banner .float { display: block; font-size: 5rem; line-height: 1; }
  .banner .big { font-size: 1.45rem; }
}
.banner .coinstack i { width: 76px; height: 20px; }
.banner:first-child:not(.promo)::before { content: ""; position: absolute; left: 50%; top: 30%; width: 42%; aspect-ratio: 1; height: auto; transform: translate(-50%, -50%); border-radius: 50%;
  border: 5px solid #f6c445; box-shadow: 0 0 0 3px #7a3d00, 0 0 26px rgba(246,196,69,.7);
  background: conic-gradient(#7b2ff7 0 45deg, #e8431f 0 90deg, #1f6fb5 0 135deg, #f6a821 0 180deg, #c0145a 0 225deg, #1b8a5a 0 270deg, #5a1f8f 0 315deg, #d4651a 0);
  animation: rays 12s linear infinite; }
.banner:first-child .coinstack { display: none !important; }
/* bottom bar: a curved gold arch that rises around the Spin wheel */
nav.bottom .inner { background: linear-gradient(#3a1766, #14062e); border: 0; border-top: 3px solid #f6c445; border-radius: 40px 40px 0 0;
  box-shadow: 0 -2px 0 #7a3d00, 0 -10px 24px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,240,200,.25); }
nav.bottom .wheel-btn { z-index: 1; }
nav.bottom .wheel-btn::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -8px; width: 150px; height: 120px; transform: translateX(-50%);
  border-radius: 75px 75px 0 0; background: linear-gradient(#3a1766, #2a0e4c); border: 3px solid #f6c445; border-bottom: 0;
  box-shadow: 0 -2px 0 #7a3d00, 0 -8px 20px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,240,200,.25); }
nav.bottom .wheel-btn .wheel-mini { position: relative; }
nav.bottom .wheel-btn .lbl { position: relative; }
@media (max-height: 460px) { nav.bottom .wheel-btn::before { width: 124px; top: -6px; } .tiles { --ph: clamp(140px, calc(100dvh - 200px), 330px); padding-top: 18px; } .lobby .carousel { height: clamp(140px, calc(100dvh - 200px), 330px) !important; margin-top: 18px; } }

/* =========== v10: slot screen like the reference: jackpot meters, wheel, big green spin =========== */
.vs-jp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.jp { display: grid; justify-items: center; border-radius: 10px; padding: 2px 4px 3px; border: 2px solid #f6c445; box-shadow: 0 0 0 1px #7a3d00, inset 0 2px 0 rgba(255,255,255,.25); min-width: 0; }
.jp span { font-family: var(--display); font-weight: 800; font-size: .78rem; letter-spacing: .08em; color: #fff3c4; text-shadow: 0 1px 0 #000; line-height: 1.1; }
.jp b { font-family: var(--display); font-weight: 800; font-size: clamp(.9rem, 2.4vw, 1.25rem); line-height: 1; color: #fff; text-shadow: 0 0 8px rgba(255,255,255,.5), 0 1px 0 #000; font-variant-numeric: tabular-nums; }
.jp-grand { background: linear-gradient(#ff4f7a, #8a0f2f); } .jp-major { background: linear-gradient(#a86bff, #4a148c); }
.jp-minor { background: linear-gradient(#4fe08a, #116b3a); } .jp-mini { background: linear-gradient(#5ab0ff, #13407a); }
.jp-grand b { animation: pulse 1.6s ease-in-out infinite; display: inline-block; }
.vs-wheel { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; align-content: center; gap: 8px; background: rgba(10,4,24,.78); animation: fadein .25s ease; }
.vsw-wrap { position: relative; width: min(280px, 62vh, 78vw); aspect-ratio: 1; }
.vsw-disc { position: absolute; inset: 0; border-radius: 50%; border: 8px solid #f6c445; box-shadow: 0 0 0 4px #7a3d00, 0 0 40px rgba(246,196,69,.7); overflow: hidden; }
.vsw-disc svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vsw-disc text { font-family: var(--display); font-weight: 800; font-size: 15px; fill: #fff; stroke: #2a0a40; stroke-width: 2.5px; paint-order: stroke; }
.vsw-hub { position: absolute; inset: 36%; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .7rem; color: var(--brass-ink);
  background: radial-gradient(circle at 35% 30%, #fff3c4, #f6c445 55%, #8a5d14); box-shadow: 0 0 0 4px #7a3d00; }
.vsw-ptr { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 28px solid #fff; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.vsw-msg { font-family: var(--display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; color: #ffd45e; text-shadow: 0 2px 0 #7a3d00, 0 0 14px rgba(246,196,69,.7); }
#vsSpin.spin-round { width: 96px; height: 96px; display: grid; place-content: center; gap: 0; line-height: 1; font-size: 1.5rem; color: #fff; text-shadow: 0 2px 0 #1d5a0a;
  border: 4px solid #eaffc4; background: radial-gradient(circle at 40% 28%, #e6ff9a, #7ad43a 45%, #2f8a12); box-shadow: 0 0 0 3px #1d5a0a, 0 6px 0 #164a07, 0 0 26px rgba(140,240,80,.6); }
#vsSpin.spin-round small { font-family: var(--body); font-size: .55rem; font-weight: 700; letter-spacing: .02em; text-shadow: 0 1px 0 #1d5a0a; margin-top: 3px; }
#vsSpin.spin-round:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 3px #1d5a0a, 0 3px 0 #164a07, 0 0 26px rgba(140,240,80,.6); }
@media (max-height: 460px) { .jp span { font-size: .62rem; } .jp b { font-size: .95rem; } #vsSpin.spin-round { width: 78px; height: 78px; font-size: 1.25rem; } }

/* =========== v12: research-notes pass (lobby) =========== */
.marquee { width: min(210px, 34vw); overflow: hidden; font-size: .66rem; color: #ffe9a8; background: rgba(0,0,0,.35); border-radius: 999px; padding: 1px 8px; }
.marquee span { display: inline-block; white-space: nowrap; padding-left: 100%; animation: marq 16s linear infinite; }
@keyframes marq { to { transform: translateX(-100%); } }
.tile .hd { position: absolute; top: 8px; left: 8px; z-index: 2; pointer-events: none; font-family: var(--display); font-weight: 800; font-size: .62rem; letter-spacing: .06em; color: #1d0a33;
  background: linear-gradient(#fff3b0, #f6c445); border-radius: 4px; padding: 0 4px; box-shadow: 0 1px 0 #7a3d00; }
.tile .hot ~ .hd { top: 26px; }
.hist-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.25); }
.hist { width: 100%; border-collapse: collapse; font-size: .82rem; }
.hist th { text-align: left; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.25); }
.hist td { padding: 6px 10px; border-bottom: 1px dotted var(--line); white-space: nowrap; }
.hist td small { display: block; color: var(--muted); font-size: .7rem; }
.hist .num { text-align: right; font-family: var(--mono); }
.hist .w, #histSum .w { color: var(--win); } .hist .l, #histSum .l { color: var(--loss); }
.hist .empty { text-align: center; color: var(--muted); padding: 20px; white-space: normal; }
.hist-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 8px; }
body[data-view="betting"] { padding-block-end: calc(110px + env(safe-area-inset-bottom, 0px)); }
.set-card { width: min(380px, 100%); justify-items: stretch; }
.set-card h2 { text-align: center; }
.set-me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.set-me > div { display: grid; flex: 1; min-width: 0; } .set-me .mono { font-size: .72rem; color: var(--muted); }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.toggle { width: 48px; height: 26px; border-radius: 999px; border: 1px solid var(--line); background: #2a1650; position: relative; cursor: pointer; padding: 0; }
.toggle i { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #9a8cb8; transition: transform .2s, background .2s; }
.toggle[aria-pressed="true"] { background: linear-gradient(#4fe08a, #1b8a5a); }
.toggle[aria-pressed="true"] i { transform: translateX(22px); background: #fff; }
.tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tracks .btn { display: grid; line-height: 1.15; padding: 6px 4px; }
.tracks .btn small { color: var(--muted); font-size: .66rem; font-weight: 500; }
.tracks .btn[aria-pressed="true"] { border-color: var(--brass); background: linear-gradient(#7b2ff7, #4a148c); color: #fff; }
.tracks .btn[aria-pressed="true"] small { color: #e9dcff; }
.info-i { width: 34px; padding: 6px 0 !important; font-family: Georgia, serif; font-style: italic; font-weight: 800; border-radius: 50% !important; }
.rl-round { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 10px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.rl-phase { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #ffe9a8; }
.rl-count { font-family: var(--display); font-size: 1.6rem; line-height: 1; color: #fff; min-width: 1.6em; text-align: center; border-radius: 8px; background: linear-gradient(#7b2ff7, #4a148c); padding: 2px 6px; }
.rl-count:empty { display: none; }
.rl-count.hurry { background: linear-gradient(#ff4f7a, #8a0f2f); animation: pulse .5s ease-in-out infinite; }
.rl-bots { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; font-size: .72rem; }
.rl-bots .tag { font-size: .58rem; letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.rl-bot { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.rl-bot i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; color: #1d0a33; font-size: .65rem; }
.rl-bot b { color: var(--brass); font-family: var(--mono); font-weight: 500; }
.rl-table button { position: relative; }
.bot-chip { position: absolute; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #fff; left: calc(3px + var(--i) * 7px); bottom: 3px; pointer-events: none; box-shadow: 0 1px 2px rgba(0,0,0,.6); }

/* =========== v13: the video slot as a full-screen app game =========== */
body[data-view="vslot"] header.top, body[data-view="vslot"] .disclaimer, body[data-view="vslot"] .notice { display: none; }
body[data-view="vslot"] { overflow: hidden; }
#vslot.vs-app { position: fixed; inset: 0; z-index: 20; display: block; padding: 0; margin: 0; max-width: none; background: #0a0620; }
#vslot .vs-frame { position: absolute; inset: 0; border: 0; border-radius: 0; box-shadow: none; gap: 4px;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto; grid-template-columns: minmax(0, 1fr); align-content: stretch;
  padding: max(6px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(6px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); }
#vslot .vs-frame .bulbs { inset: 2px; border-radius: 0; }
.vs-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
#vslot .vs-jp { margin: 0; }
.vs-round { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #f6c445; background: radial-gradient(circle at 40% 30%, #6a3aa8, #2a0e4c); color: #fff3c4;
  font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 0 0 1px #7a3d00, 0 3px 0 #160630; flex: none; }
.vs-round[aria-pressed="true"] { background: radial-gradient(circle at 40% 30%, #ffe08a, #e08a12); color: #3d1a00; }
.vs-autob { width: auto; padding: 0 12px; border-radius: 999px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.vs-head { justify-content: center; gap: 14px; }
.vs-lines-tag { font-family: var(--display); font-weight: 800; font-size: .8rem; letter-spacing: .06em; color: #ffe9a8; background: rgba(0,0,0,.45); border: 1px solid rgba(246,196,69,.6); border-radius: 6px; padding: 0 6px; }
#vslot .vs-grid { --ch: clamp(40px, min(16.5vw, calc((100dvh - 205px) / 3)), 140px); align-self: center; justify-self: center; box-sizing: border-box; width: min(100%, calc(var(--ch) * 6.2));
  padding: 6px; border-radius: 14px; background: rgba(0,0,0,.35); border: 3px solid #f6c445; box-shadow: 0 0 0 2px #7a3d00, 0 0 30px rgba(246,196,69,.35), inset 0 0 24px rgba(0,0,0,.6); }
#vslot #vsStatus { justify-self: center; margin: 0; padding: 2px 16px; border-radius: 999px; background: rgba(0,0,0,.55); border: 1px solid rgba(246,196,69,.35);
  font-size: .82rem; text-align: center; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 0; }
#vslot .vs-bar { flex-wrap: nowrap; gap: 8px; justify-content: space-between; padding: 6px 8px; border-radius: 16px;
  background: linear-gradient(#3a1766, #1a0836); border: 2px solid #f6c445; box-shadow: 0 0 0 1px #7a3d00, 0 -4px 14px rgba(0,0,0,.4); }
.vs-bal { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.45); border-radius: 999px; padding: 3px 10px 3px 4px; border: 1px solid rgba(246,196,69,.4); }
.vs-bal b { font-family: var(--display); font-size: 1.2rem; color: var(--brass); }
#vslot .vs-meter { min-width: 0; padding: 2px 10px; border-radius: 10px; background: rgba(0,0,0,.4); }
#vslot .vs-meter span { color: #e0c8ff; font-size: .58rem; }
#vslot .vs-meter b { font-size: 1.25rem; line-height: 1.05; }
#vslot .vs-winm b { color: #6ee7a0; }
#vslot .stepper button { width: 34px; height: 34px; font-size: 1.2rem; color: #fff; background: radial-gradient(circle at 40% 30%, #6a3aa8, #2a0e4c); }
#vslot #vsSpin.spin-round { width: 82px; height: 82px; margin-top: -26px; }
#vslot #vsSpin svg { width: 40px; height: 40px; margin: 0 auto -2px; filter: drop-shadow(0 2px 0 #1d5a0a); }
#vslot #vsSpin small { font-size: .5rem; }
.vs-pays .wheel-card { width: min(560px, 100%); max-height: 92dvh; }
.vs-rules { color: var(--muted); font-size: .82rem; }
@media (max-width: 620px) { .vs-lines-tag { display: none; } .vs-bal b { font-size: 1rem; } #vslot .vs-meter b { font-size: 1rem; } #vslot .vs-bar { gap: 4px; padding: 4px; } .vs-autob { padding: 0 8px; }
  #vslot #vsSpin.spin-round { width: 60px; height: 60px; margin-top: -14px; } #vslot #vsSpin svg { width: 30px; height: 30px; } #vslot #vsSpin small { display: none; }
  #vslot .vs-meter { padding: 2px 6px; } #vslot .stepper button { width: 28px; height: 28px; } #vslot #vsTurbo { display: none; } }
/* Tall Timber: a portrait cabinet; each reel is taller than it is wide, cells are tall and slim. */
#vslot.tall .vs-grid { --ch: clamp(44px, min(28vw, calc((100dvh - 205px) / 3)), 150px); width: min(100%, calc(var(--ch) * 4.3)); gap: 4px;
  border-color: #c8884a; box-shadow: 0 0 0 3px #4a2408, 0 0 0 6px #c8884a, 0 0 34px rgba(255,179,90,.35), inset 0 0 24px rgba(0,0,0,.6);
  background: repeating-linear-gradient(90deg, rgba(74,36,8,.55) 0 3px, rgba(30,14,4,.55) 3px 14px); }
#vslot.tall .vcell { font-size: calc(var(--ch) * .5); }
#vslot.tall .vcell .lt { font-size: calc(var(--ch) * .48); }
#vslot.tall .vreel { border-radius: 8px; background: linear-gradient(rgba(255,230,180,.12), rgba(0,0,0,.4)); }
#vslot.tall .vs-bar { background: linear-gradient(#5a3214, #2a1406); border-color: #c8884a; }
#vslot.tall .stepper button, #vslot.tall .vs-round { background: radial-gradient(circle at 40% 30%, #9a5a24, #3a1a06); }
@media (max-height: 420px) { #vslot.tall .vs-grid { --ch: clamp(40px, min(22vw, calc((100dvh - 192px) / 3)), 150px); } }
@media (max-height: 420px) { #vslot .vs-head { display: none; } #vslot .vs-grid { --ch: clamp(40px, min(16.5vw, calc((100dvh - 192px) / 3)), 140px); } }

/* =========== v13b: fish and roulette as full-screen app games =========== */
body[data-view="fish"], body[data-view="roulette"] { overflow: hidden; padding: 0 !important; }
body[data-view="fish"] header.top, body[data-view="roulette"] header.top { position: fixed; top: 0; left: 0; z-index: 22; background: none; padding: 6px 10px; grid-template-columns: auto; pointer-events: none; }
body[data-view="fish"] header.top .me, body[data-view="roulette"] header.top .me { pointer-events: auto; }
body[data-view="fish"] header.top :is(.brand, .icons, .marquee, .pid, .avatar),
body[data-view="roulette"] header.top :is(.brand, .icons, .marquee, .pid, .avatar) { display: none; }
body[data-view="fish"] .disclaimer, body[data-view="roulette"] .disclaimer { display: none; }
#fish:not([hidden]), #roulette:not([hidden]) { position: fixed; inset: 0; z-index: 20; max-width: none; margin: 0; border: 0; border-radius: 0; overflow: auto;
  padding: max(6px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(6px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); }
#fish:not([hidden]) { background: #03132e; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 4px; overflow: hidden; }
#fish .table-head, #roulette .table-head { justify-content: center; align-items: center; gap: 12px; padding-left: 150px; padding-right: 50px; min-height: 40px; }
#fish .table-head .back, #roulette .table-head .back { position: absolute; right: max(10px, env(safe-area-inset-right, 0px)); top: 8px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #f6c445;
  background: radial-gradient(circle at 40% 30%, #6a3aa8, #2a0e4c); color: #fff3c4; font-size: 0; display: grid; place-items: center; z-index: 23; }
#fish .table-head .back::before, #roulette .table-head .back::before { content: "×"; font-size: 1.5rem; line-height: 1; }
#fish .table-head h2, #roulette .table-head h2 { font-size: 1.3rem; background: linear-gradient(#fffbe8, #ffd45e 50%, #f39c12); -webkit-background-clip: text; background-clip: text; color: transparent; }
#fish .rtp-tag, #roulette .rtp-tag { font-size: .7rem; }
#fish .fish-stage { width: min(100%, calc((100dvh - 150px) * 16 / 9)); align-self: center; border-width: 3px; box-shadow: 0 0 0 2px #7a3d00, 0 0 30px rgba(90,200,255,.25); }
#fish .status { justify-self: center; margin: 0; padding: 2px 14px; border-radius: 999px; background: rgba(0,0,0,.5); font-size: .8rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 0; }
#fish .controls, #roulette .controls { justify-content: center; padding: 6px 10px; border-radius: 16px; background: linear-gradient(#3a1766, #1a0836); border: 2px solid #f6c445; box-shadow: 0 0 0 1px #7a3d00; flex-wrap: nowrap; overflow-x: auto; }
#fish .fish-legend { display: none; }
#roulette:not([hidden]) { background: radial-gradient(ellipse at 50% 30%, #1e7a52, #0a3524 70%, #04170f); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 6px; }
#roulette .rl-layout { grid-template-columns: minmax(0, 32%) minmax(0, 1fr); align-items: center; }
#roulette #rlCanvas { --rw: min(30vw, 300px, 56dvh); width: var(--rw); height: var(--rw); max-width: none; }
#fish:not([hidden]), #roulette:not([hidden]), #fish *, #roulette * { box-sizing: border-box; }
#fish .table-head .back, #roulette .table-head .back { box-sizing: content-box; width: 34px; height: 34px; }
#roulette .status { text-align: center; margin: 0; font-size: .85rem; min-height: 0; }
#roulette:not([hidden]) { grid-template-rows: auto auto auto auto; align-content: space-between; }
@media (max-height: 520px) { #roulette .rl-table { grid-template-rows: repeat(3, 29px) 23px 23px; } #roulette .rl-table-wrap { padding: 4px; } #roulette .rl-round { padding: 3px 10px; } #roulette .rl-count { font-size: 1.2rem; } #roulette .rl-layout { gap: 8px; } #roulette .rl-hist { display: none; } }
@media (max-width: 560px) { #roulette .rl-layout { grid-template-columns: minmax(0, 1fr); } #fish .table-head, #roulette .table-head { padding-left: 0; } #fish .rtp-tag, #roulette .rtp-tag { display: none; } }
.tile .newb { position: absolute; bottom: 34px; right: 4px; z-index: 2; pointer-events: none; font-family: var(--display); font-weight: 800; font-size: .7rem; color: #fff; background: linear-gradient(#3fe08a, #1b8a5a); border-radius: 4px; padding: 0 5px; transform: rotate(8deg); box-shadow: 0 1px 0 #0e4a2a; }

/* =========== Coin Press =========== */
body[data-view="press"] header.top, body[data-view="press"] .disclaimer { display: none; }
body[data-view="press"] { overflow: hidden; }
#press:not([hidden]) { position: fixed; inset: 0; z-index: 20; margin: 0; max-width: none; padding: 0; border: 0; border-radius: 0;
  background: radial-gradient(ellipse at 50% 30%, #1f8a4a, #0a3a1f 65%, #03150a); }
.pr-frame { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 6px; box-sizing: border-box;
  padding: max(6px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(6px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); }
.pr-title { text-align: center; font-size: clamp(1.4rem, 4vw, 2.2rem); text-transform: uppercase; background: linear-gradient(#fffbe8, #ffd45e 50%, #f39c12); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #3d1a00); }
.pr-machine { --pc: clamp(44px, min(14vw, calc((100dvh - 190px) / 3)), 120px); align-self: center; justify-self: center; display: flex; gap: 12px; align-items: center;
  padding: 12px; border-radius: 18px; background: linear-gradient(#ffe08a, #f6c445 40%, #b8780f); box-shadow: 0 0 0 3px #7a3d00, 0 0 40px rgba(246,196,69,.4), inset 0 2px 0 #fff3c4; }
.pr-reels { position: relative; display: flex; gap: 6px; padding: 6px; border-radius: 10px; background: #2a0508; }
.pr-reel { width: calc(var(--pc) * 1.15); height: calc(var(--pc) * 3); overflow: hidden; border-radius: 6px; background: linear-gradient(#cfc6b4, #fffdf6 25%, #fffdf6 75%, #cfc6b4); position: relative; }
.pr-reel .vstrip { will-change: transform; }
.pr-cell { height: var(--pc); display: grid; place-content: center; text-align: center; line-height: 1; font-family: var(--display); font-weight: 800; }
.pr-cell span { display: block; }
.pr-seven { color: #c0262d; font-size: calc(var(--pc) * .8); -webkit-text-stroke: 1px #5c0a0a; }
.pr-bar1, .pr-bar2, .pr-bar3 { gap: 2px; }
.pr-bar1 span, .pr-bar2 span, .pr-bar3 span { background: #1b1b1b; color: #fff; font-size: calc(var(--pc) * .17); padding: 1px 6px; border-radius: 3px; letter-spacing: .08em; }
.pr-coin { color: #1d5a2a; font-size: calc(var(--pc) * .62); }
.pr-coin span { width: calc(var(--pc) * .78); height: calc(var(--pc) * .78); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff3c4, #f6c445 55%, #8a5d14); box-shadow: inset 0 0 0 3px #b9832a; }
.pr-cell.hit { animation: hitpulse .5s ease-in-out infinite alternate; }
.pr-line { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; pointer-events: none; }
.pr-mult { display: grid; gap: 4px; justify-items: center; }
.pr-mult > span { font-family: var(--display); font-weight: 800; color: #3d1a00; font-size: .8rem; letter-spacing: .08em; }
.pr-mreel { width: calc(var(--pc) * 1.1); background: linear-gradient(#0a0420, #2a0e4c 30%, #2a0e4c 70%, #0a0420); box-shadow: 0 0 0 3px #2a0508; }
.pr-mreel .pr-cell { color: #ffd45e; font-size: calc(var(--pc) * .42); text-shadow: 0 0 10px rgba(246,196,69,.8); }
.pr-mreel .pr-m10 { color: #ff7ad9; font-size: calc(var(--pc) * .48); }
#prStatus { justify-self: center; margin: 0; padding: 2px 16px; border-radius: 999px; background: rgba(0,0,0,.55); font-size: .85rem; min-height: 0; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pr-bar { flex-wrap: nowrap; gap: 8px; justify-content: space-between; padding: 6px 8px; border-radius: 16px; background: linear-gradient(#3a1766, #1a0836); border: 2px solid #f6c445; box-shadow: 0 0 0 1px #7a3d00; }
#press .vs-meter { min-width: 0; padding: 2px 10px; border-radius: 10px; background: rgba(0,0,0,.4); }
#press .vs-meter b { font-size: 1.2rem; line-height: 1.05; } #press .vs-winm b { color: #6ee7a0; }
#press .stepper button { width: 34px; height: 34px; color: #fff; background: radial-gradient(circle at 40% 30%, #6a3aa8, #2a0e4c); }
#press #prSpin.spin-round { width: 78px; height: 78px; margin-top: -24px; display: grid; place-content: center; color: #fff; border: 4px solid #eaffc4;
  background: radial-gradient(circle at 40% 28%, #e6ff9a, #7ad43a 45%, #2f8a12); box-shadow: 0 0 0 3px #1d5a0a, 0 6px 0 #164a07, 0 0 26px rgba(140,240,80,.6); }
#press #prSpin svg { width: 38px; height: 38px; margin: 0 auto -2px; } #press #prSpin small { font-size: .5rem; font-weight: 700; }
@media (max-width: 560px) { .pr-machine { gap: 6px; padding: 8px; } #press .vs-meter b { font-size: 1rem; } }

/* =========== v11: lobby + game frames =========== */
.game-frame { position: fixed; inset: 0; z-index: 50; background: #12062a; display: grid; place-items: center; }
.game-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; opacity: 0; transition: opacity .25s; }
.game-frame.ready iframe { opacity: 1; }
.game-frame .loading { display: grid; justify-items: center; gap: 10px; color: var(--muted); font-size: .85rem; }
.game-frame .loading .coin { width: 44px; height: 44px; animation: spinY 1s linear infinite; }
.game-frame.ready .loading { display: none; }
@keyframes spinY { to { transform: rotateY(360deg); } }
body.in-game { overflow: hidden; }
/* inside a game page */
body.game-page { padding-block-end: calc(24px + env(safe-area-inset-bottom, 0px)); }
body.game-page header.top { grid-template-columns: auto minmax(0, 1fr) auto; }
body.game-page .brand h1 { font-size: clamp(1.1rem, 3.5vw, 1.6rem); }
body.game-page .brand h1::before { display: none; }
body.game-page .icons span { display: none; }

/* ===== Lobby: full-width landscape layout (the poster row and bars span the whole screen) ===== */
body[data-view="lobby"] .wrap { max-width: none; padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)); }
body[data-view="lobby"] nav.bottom .inner { max-width: 1100px; }

/* ===================== Bonus wheel: full-screen spotlight stage ===================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.modal.wheel-stage { padding: 0; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 35%, #8a4ad8 0%, #4a1a9a 40%, #1a0640 85%); }
.modal.wheel-stage[hidden] { display: none; }
.ws-lights { position: absolute; inset: 0; pointer-events: none; }
.ws-lights i { position: absolute; top: -10%; width: 26vw; height: 120%; transform-origin: 50% 0; mix-blend-mode: screen;
  background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,0) 75%); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); animation: wsBeam 5s ease-in-out infinite alternate; }
.ws-lights i:nth-child(1) { left: 2%; --a: -18deg; --b: 8deg; } .ws-lights i:nth-child(2) { left: 37%; --a: -10deg; --b: 10deg; animation-duration: 6.5s; } .ws-lights i:nth-child(3) { right: 2%; --a: 18deg; --b: -8deg; animation-duration: 5.6s; }
@keyframes wsBeam { from { transform: rotate(var(--a)); } to { transform: rotate(var(--b)); } }
.ws-curtain { position: absolute; top: 0; bottom: 0; width: clamp(40px, 8vw, 120px); pointer-events: none;
  background: repeating-linear-gradient(90deg, #6a1aa8 0 14px, #9a3ad8 14px 22px, #5a108a 22px 34px); box-shadow: inset -10px 0 20px rgba(0,0,0,.4); }
.ws-curtain.l { left: 0; border-radius: 0 0 60% 0; } .ws-curtain.r { right: 0; border-radius: 0 0 0 60%; transform: scaleX(-1); }
.ws-coins { position: absolute; left: 10%; right: 10%; bottom: 0; height: 60px; pointer-events: none; }
.ws-coins i { position: absolute; width: 34px; height: 14px; border-radius: 50%; transform: rotate(var(--r));
  background: radial-gradient(ellipse at 40% 35%, #fffbe0, #ffd45e 45%, #a8600a); box-shadow: 0 2px 0 #7a4a00; }
.ws-host { position: absolute; left: clamp(20px, 9vw, 160px); bottom: 20px; height: min(56vh, 380px); filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); animation: wsHost 2.6s ease-in-out infinite; }
.ws-host .ws-wave { transform-origin: 159px 124px; animation: wsWave 1.2s ease-in-out infinite alternate; }
@keyframes wsHost { 50% { transform: translateY(-8px); } }
@keyframes wsWave { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
.ws-close { position: absolute; top: 12px; right: 18px; z-index: 3; width: 52px; height: 52px; border: 0; background: none; color: #fff; font: 800 3rem/1 var(--body); cursor: pointer; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.ws-main { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; }
.ws-title { margin: 0 0 -6% ; width: min(78vh, 560px, 90vw); position: relative; z-index: 2; filter: drop-shadow(0 4px 0 rgba(30,10,80,.5)); }
.ws-title svg { width: 100%; display: block; overflow: visible; }
.ws-wheel { position: relative; width: min(72vh, 520px, 86vw); aspect-ratio: 1; }
.ws-rim { position: absolute; inset: -5%; border-radius: 50%; background: radial-gradient(circle, transparent 66%, #cfd8e8 67%, #fff 70%, #8a96b0 73%, #5a6680 74%);
  box-shadow: 0 0 0 4px #3a2a7a, 0 0 40px 10px rgba(180,140,255,.5); }
.ws-rim i { position: absolute; left: 50%; top: 0; height: 100%; width: 0; }
.ws-rim i::before { content: ""; position: absolute; top: .9%; left: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff6c8; box-shadow: 0 0 10px 3px #ffd45e; animation: wsBulb 1s steps(1) infinite; }
.ws-rim i:nth-child(even)::before { animation-delay: .5s; }
.wheel-stage.spinning .ws-rim i::before { animation-duration: .25s; }
@keyframes wsBulb { 50% { background: #8a6a3a; box-shadow: none; } }
.ws-wheel .wheel { position: absolute; inset: 0; border: 0; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 5px rgba(255,255,255,.35), inset 0 0 30px rgba(0,0,0,.35); }
.ws-wheel .wheel::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 40% 30%, rgba(255,255,255,.22), transparent 55%); }
.ws-wheel .wheel .seg { position: absolute; inset: 0; }
.ws-wheel .wheel .seg span { position: absolute; left: 50%; top: 5%; transform: translateX(-50%); writing-mode: vertical-rl; font: 800 clamp(.8rem, 2.6vh, 1.25rem)/1 var(--display); letter-spacing: .04em; color: #ffe08a;
  text-shadow: 0 2px 0 rgba(0,0,0,.45); white-space: nowrap; }
.ws-wheel .wheel .seg.gl span { color: #fff; font-size: clamp(.75rem, 2.3vh, 1.1rem); }
.ws-wheel .wheel .seg.won span { color: #fff; text-shadow: 0 0 8px #fff, 0 0 18px #ffd45e; }
.ws-wheel .wheel .sep { position: absolute; left: 50%; top: 0; width: 2px; height: 50%; margin-left: -1px; transform-origin: 50% 100%; background: linear-gradient(rgba(255,255,255,.65), rgba(255,255,255,.1)); }
.ws-pointer { position: absolute; left: 50%; top: -6%; z-index: 2; width: 13%; height: 22%; transform: translateX(-50%);
  background: linear-gradient(90deg, #8a96b0, #fff 45%, #cfd8e8 55%, #6a7690); clip-path: polygon(0 0, 100% 0, 62% 100%, 38% 100%); filter: drop-shadow(0 4px 4px rgba(0,0,0,.5)); }
.ws-pointer::after { content: ""; position: absolute; inset: 8% 14% 10%; background: linear-gradient(#2a1a5a, #4a2a8a); clip-path: polygon(0 0, 100% 0, 60% 100%, 40% 100%); }
.ws-go { position: absolute; left: 50%; top: 50%; z-index: 2; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 40% 30%, #c08aff, #7a3ad0 50%, #3a1080); color: #fff; font: 800 clamp(1.6rem, 6vh, 3rem)/1 var(--display); letter-spacing: .04em;
  box-shadow: 0 0 0 6px #e8eef8, 0 0 0 10px #8a96b0, 0 0 0 13px #3a2a7a, 0 8px 18px rgba(0,0,0,.5); text-shadow: 0 3px 0 #2a0a5a; display: grid; place-content: center; }
.ws-go small { display: block; font-size: .38em; letter-spacing: .1em; opacity: .85; }
.ws-go:not(:disabled) { animation: wsGo 1.3s ease-in-out infinite; }
.ws-go:disabled { cursor: default; filter: saturate(.6); font-size: clamp(1.1rem, 4vh, 2rem); }
@keyframes wsGo { 50% { transform: translate(-50%, -50%) scale(1.07); box-shadow: 0 0 0 6px #fff, 0 0 0 10px #ffd45e, 0 0 0 13px #3a2a7a, 0 0 30px 10px rgba(255,214,94,.7); } }
.wheel-stage .status { margin-top: 2%; background: rgba(20,6,50,.7); border-radius: 999px; padding: 6px 18px; }
.ws-prize { position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%) scale(.3); opacity: 0; pointer-events: none; display: grid; justify-items: center; padding: 40px 80px; border-radius: 50%; background: radial-gradient(closest-side, rgba(26,6,64,.92), rgba(26,6,64,.7) 60%, transparent); }
.ws-prize b { font: 800 clamp(3rem, 12vh, 6rem)/1 var(--display); color: #ffe08a; -webkit-text-stroke: 4px #7a3a0a; paint-order: stroke; text-shadow: 0 0 30px rgba(255,214,94,.9); }
.ws-prize span { font: 800 1.4rem var(--display); letter-spacing: .06em; text-shadow: 0 2px 4px rgba(0,0,0,.6); }
.ws-prize.gl b { color: #fff; -webkit-text-stroke-color: #3a1a8a; font-size: clamp(2.4rem, 9vh, 4.4rem); }
.ws-prize.show { animation: wsPrize 2.6s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes wsPrize { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 25% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1); } }
@media (max-width: 760px) { .ws-host { display: none; } .ws-curtain { width: 24px; } }
@media (prefers-reduced-motion: reduce) { .ws-lights i, .ws-host, .ws-host .ws-wave, .ws-rim i::before, .ws-go { animation: none !important; } }

/* ===================== lobby: promo cards with real artwork, image posters ===================== */
.banner.promo { isolation: isolate; }
.banner.promo .bn-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; }
.banner.promo .bn-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(20,6,46,.85) 88%); }
.banner.promo .bn-art img { position: absolute; display: block; pointer-events: none; }
.banner.promo .bn-art .bg { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bn-olympus .hero { right: -8%; bottom: 8%; height: 88%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); animation: bnFloat 4s ease-in-out infinite; }
.bn-dt .d { left: -18%; top: 4%; width: 120%; animation: bnFloat 3.6s ease-in-out infinite; }
.bn-dt .t { right: -18%; top: 36%; width: 120%; animation: bnFloat 3.6s ease-in-out -1.8s infinite; }
.bn-dt .vs { left: 50%; top: 30%; width: 46%; transform: translateX(-50%); filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); animation: bnPulse 1.6s ease-in-out infinite; }
.bn-poster svg { width: 100%; height: 100%; display: block; }
.bn-wheel { background: radial-gradient(ellipse at 50% 30%, #8a4ad8, #2a0a5a 80%); }
.bn-wheel .w { position: absolute; left: 50%; top: 34%; width: 84%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: conic-gradient(#8a3ad0 0 30deg, #16a89a 0 60deg, #f0a01a 0 90deg, #e0408a 0 120deg, #26203a 0 150deg, #8a3ad0 0 180deg, #16a89a 0 210deg, #f0a01a 0 240deg, #e0408a 0 270deg, #26203a 0 300deg, #8a3ad0 0 330deg, #16a89a 0);
  box-shadow: 0 0 0 6px #e8eef8, 0 0 0 9px #8a96b0, 0 0 24px 6px rgba(180,140,255,.6); animation: bnSpin 9s linear infinite; }
.bn-wheel .hub { position: absolute; left: 50%; top: 34%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 30%, #c08aff, #3a1080); color: #fff; font: 800 1.1rem var(--display); font-style: normal; box-shadow: 0 0 0 4px #e8eef8; }
@keyframes bnFloat { 50% { transform: translateY(-6px); } }
@keyframes bnPulse { 50% { transform: translateX(-50%) scale(1.08); } }
@keyframes bnSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.img-poster { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.img-poster .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-poster .hero { position: absolute; left: 50%; bottom: 14%; height: 78%; transform: translateX(-50%); filter: drop-shadow(0 8px 12px rgba(0,0,0,.5)); }
.img-poster ~ .poster { display: none; }
@media (prefers-reduced-motion: reduce) { .bn-olympus .hero, .bn-dt img, .bn-wheel .w { animation: none !important; } }

/* ===================== Lobby skin: art/lobby/* (each rule only applies when its picture loaded) =====================
   Proportions follow the reference lobby (measured on a 1513×740 view): top bar ≈12% of the height, avatar ≈78px,
   logo ≈230×75, top icons ≈48px, bottom bar ≈85px with a raised centre arch, bottom icons ≈70px, centre wheel ≈110px. */
body.skin-lobby-bg { background: url("art/lobby/lobby-bg.jpg") center 60% / cover no-repeat fixed, #12063a; }
body.skin-lobby-bg::before { background: transparent; }
/* top bar */
body.skin-topbar[data-view="lobby"] header.top { background: url("art/lobby/topbar.png") center bottom / 100% 100% no-repeat; padding-bottom: 18px; }
body.skin-avatar-frame header.top .avatar { position: relative; overflow: visible; width: clamp(52px, 10.5vh, 82px); height: clamp(52px, 10.5vh, 82px); border-radius: 12px; border: 0; }
body.skin-avatar-frame header.top .avatar::after { content: ""; position: absolute; inset: -12%; background: url("art/lobby/avatar-frame.png") center / contain no-repeat; pointer-events: none; }
body.skin-coin-pill header.top .balance { background: url("art/lobby/coin-pill.png") left center / 100% 100% no-repeat; border: 0; box-shadow: none; padding: 6px 12px 6px clamp(44px, 6vh, 56px); min-width: clamp(170px, 24vh, 240px); }
body.skin-coin-pill header.top .balance .coin { visibility: hidden; width: 0; margin: 0; }
body.skin-coin-pill header.top .balance .amt { font: 800 clamp(1rem, 2.8vh, 1.45rem) var(--body); color: #fff; }
body.skin-logo .brand h1 { color: transparent; -webkit-text-fill-color: transparent; background: none; text-shadow: none; }
body.skin-logo .brand h1::before { content: none; }
.brand .skin-logo { display: block; height: clamp(46px, 10.5vh, 84px); width: auto; margin: 0 auto; animation: skinGlow 3s ease-in-out infinite; }
body.skin-logo .brand h1 { font-size: 0; line-height: 0; }
@keyframes skinGlow { 50% { filter: drop-shadow(0 0 12px #c786ff) brightness(1.08); } }
header.top .icons .skin-icon { width: clamp(30px, 6.5vh, 50px); height: clamp(30px, 6.5vh, 50px); object-fit: contain; display: block; margin: 0 auto -2px; transition: transform .16s ease, filter .16s ease; }
header.top .icons button:hover .skin-icon, header.top .icons button:focus-visible .skin-icon { transform: translateY(-3px) scale(1.06); filter: drop-shadow(0 0 8px #e8b74c); }
header.top .icons button:has(.skin-icon) span { font-family: var(--display); font-weight: 800; color: #ffb3f0; -webkit-text-stroke: 3px #3a0a5a; paint-order: stroke fill; letter-spacing: .02em; }
/* announcement strip with the trumpet, centred under the top bar like the reference */
body.skin-trumpet[data-view="lobby"] .notice { display: flex; position: fixed; top: calc(env(safe-area-inset-top, 0px) + 13.5vh); left: 50%; transform: translateX(-50%); z-index: 4;
  width: min(46vw, 720px); height: 30px; padding: 0 14px; border-radius: 4px; border: 0; background: linear-gradient(90deg, transparent, rgba(10,4,30,.85) 8%, rgba(10,4,30,.85) 92%, transparent); }
body.skin-trumpet .notice > svg { width: 22px; height: 22px; flex: none; color: transparent; background: url("art/lobby/trumpet.png") center / contain no-repeat; }
body.skin-trumpet .notice > svg * { display: none; }
/* poster badges */
body.skin-badge-hot .tile .hot { top: clamp(-52px, -7vh, -34px); left: -6px; width: clamp(62px, 8.5vh, 86px); height: clamp(44px, 6vh, 60px); padding: 0; font-size: 0; color: transparent; text-shadow: none;
  background: url("art/lobby/badge-hot.png") center / contain no-repeat; animation: skinFlame 1.1s ease-in-out infinite alternate; transform-origin: 50% 90%; }
body.skin-badge-hot .tile .hot::before { content: none; }
@keyframes skinFlame { to { transform: scale(1.06, 1.1) rotate(-1.5deg); filter: brightness(1.12); } }
body.skin-badge-new .tile .newb { width: 64px; height: 32px; padding: 0; font-size: 0; background: url("art/lobby/badge-new.png") center / contain no-repeat; box-shadow: none; right: 0; }
body.skin-badge-hd .tile .hd { width: 46px; height: 26px; padding: 0; font-size: 0; background: url("art/lobby/badge-hd.png") center / contain no-repeat; box-shadow: none; border: 0; }
body.skin-star-fav .tile .fav { font-size: 0; width: 38px; height: 38px; background: url("art/lobby/star-fav.png") center / contain no-repeat; filter: grayscale(.85) brightness(.55); text-shadow: none; }
body.skin-star-fav .tile .fav[aria-pressed="true"] { filter: drop-shadow(0 0 6px rgba(246,196,69,.95)); }
/* bottom bar */
body.skin-navbar nav.bottom .inner { background: url("art/lobby/navbar.png") center bottom / 100% 100% no-repeat !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  min-height: clamp(70px, 15vh, 120px); padding-top: 16px; }
nav.bottom .skin-icon { width: clamp(38px, 9vh, 70px); height: clamp(38px, 9vh, 70px); object-fit: contain; display: block; margin: 0 auto -4px; transition: transform .16s ease, filter .16s ease; filter: drop-shadow(0 3px 3px rgba(0,0,0,.4)); }
nav.bottom button:hover .skin-icon, nav.bottom button:focus-visible .skin-icon { transform: translateY(-4px) scale(1.06); filter: drop-shadow(0 0 9px #e8b74c); }
nav.bottom button:active .skin-icon { transform: scale(.94); }
nav.bottom button[aria-pressed="true"] .skin-icon { filter: drop-shadow(0 0 10px #ff8af0) brightness(1.1); }
nav.bottom .wheel-btn .skin-icon { width: clamp(64px, 14.5vh, 112px); height: clamp(64px, 14.5vh, 112px); margin-top: clamp(-50px, -6vh, -30px); animation: skinPulse 2.8s ease-in-out infinite; }
@keyframes skinPulse { 50% { transform: scale(1.04); filter: drop-shadow(0 0 14px #ffd45e); } }
body.skin-navbar nav.bottom .lbl { font-family: var(--display); font-weight: 800; letter-spacing: .02em; color: #fff; background: linear-gradient(#5a1a9a, #2a0a5a); border: 1px solid #b87aff; border-radius: 6px; padding: 0 10px; }
/* popups pop in */
.modal:not([hidden]) > .help-card, .modal:not([hidden]) > .set-card, body.skin-panel-history #betting:not([hidden]) { animation: skinPop .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes skinPop { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
/* help: the "service" kiosk with the host */
#helpModal { display: grid; place-items: center; }
#helpModal[hidden] { display: none; }
.help-card { position: relative; width: min(1100px, 94vw); display: flex; align-items: flex-end; }
.help-host { width: 30%; max-height: 82vh; object-fit: contain; margin-right: -9%; z-index: 2; animation: skinFloat 3.6s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); }
@keyframes skinFloat { 50% { transform: translateY(-6px); } }
.help-panel { position: relative; flex: 1; aspect-ratio: 1400 / 800; background: url("art/lobby/panel-help.png") center / 100% 100% no-repeat; }
body:not(.skin-panel-help) .help-panel { background: linear-gradient(#3a1766, #1d0a33); border: 2px solid var(--brass); border-radius: 22px; }
.help-screen { position: absolute; left: 17.5%; top: 32%; width: 65.5%; height: 38%; overflow: auto; display: grid; align-content: center; gap: 10px; padding: 10px 18px; color: #f3e6ff; font-size: clamp(.8rem, 2.2vh, 1.05rem); text-align: center; }
.help-actions { display: flex; gap: 10px; justify-content: center; }
.help-panel .close-x { right: 6%; top: 10%; font-size: 2rem; color: #fff; z-index: 3; }
/* settings inside the Joker panel */
body.skin-panel-settings .set-card { width: min(980px, 94vw); max-height: none; aspect-ratio: 1400 / 800; padding: 0; border: 0; border-radius: 0; background: url("art/lobby/panel-settings.png") center / 100% 100% no-repeat; position: relative; overflow: visible; display: block; }
body.skin-panel-settings .set-card > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.skin-panel-settings .set-card .close-x { right: 3%; top: 4%; font-size: 2.2rem; color: #fff; z-index: 3; }
body.skin-panel-settings .set-body { position: absolute; left: 35%; top: 31%; width: 57%; height: 57%; overflow: auto; display: grid; gap: 10px; align-content: start; padding: 6px 12px; }
body.skin-panel-settings .set-body .set-me .avatar { display: none; }
body.skin-panel-settings .set-joker { position: absolute; left: 12.6%; top: 52.4%; width: 17.6%; height: 25%; display: grid; place-items: center; }
body.skin-panel-settings .set-joker .avatar { width: 88%; height: 92%; border-radius: 8px; font-size: clamp(1rem, 4vh, 2rem); display: grid; place-items: center; }
/* betting history inside the arcade cabinet */
body.skin-panel-history #betting:not([hidden]) { position: fixed; z-index: 30; left: 50%; top: 50%; translate: -50% -50%; width: min(1180px, 96vw); aspect-ratio: 1400 / 800; max-height: 92vh;
  background: url("art/lobby/panel-history.png") center / 100% 100% no-repeat; border: 0; box-shadow: none; padding: 0; display: block; }
body.skin-panel-history #betting .table-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.skin-panel-history #betting .table-head { position: absolute; right: 2%; top: 3%; z-index: 3; }
body.skin-panel-history #betting .table-head .back { font-size: 0; width: 44px; height: 44px; border-radius: 50%; background: none; border: 0; }
body.skin-panel-history #betting .table-head .back::after { content: "×"; font: 800 2.4rem/1 var(--body); color: #fff; text-shadow: 0 2px 4px #000; }
body.skin-panel-history #betting .controls, body.skin-panel-history #betting .hist-wrap, body.skin-panel-history #betting .hist-pager { position: absolute; left: 13.5%; width: 73%; }
body.skin-panel-history #betting .controls { top: 27%; margin: 0; flex-wrap: nowrap; }
body.skin-panel-history #betting .hist-wrap { top: 35%; height: 28%; overflow: auto; }
body.skin-panel-history #betting .hist-pager { top: 63.5%; justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .brand .skin-logo, nav.bottom .wheel-btn .skin-icon, body.skin-badge-hot .tile .hot, .help-host { animation: none !important; }
  .modal:not([hidden]) > .help-card, .modal:not([hidden]) > .set-card, body.skin-panel-history #betting:not([hidden]) { animation: none; }
}
/* skin layout: reference proportions — announcement strip under the top bar, posters ≈52% of the height starting ≈26% down,
   flames above the posters, disclaimer tucked in the bottom-right corner above the bar (where the reference shows its date) */
body.skin-navbar[data-view="lobby"] .lobby { padding-top: calc(env(safe-area-inset-top, 0px) + 9vh); }
body.skin-navbar[data-view="lobby"] .tiles { --ph: clamp(160px, 52vh, 440px); padding-top: clamp(26px, 6vh, 50px); }
body.skin-navbar[data-view="lobby"] .lobby .carousel { height: clamp(160px, 57vh, 470px) !important; margin-top: clamp(10px, 4vh, 32px); }
body.skin-navbar[data-view="lobby"] .disclaimer { position: fixed; right: 12px; bottom: clamp(74px, 15.5vh, 124px); z-index: 5; max-width: 260px; text-align: right; font-size: .62rem; line-height: 1.25; color: rgba(255,255,255,.55); }
body.skin-coin-pill header.top .balance { padding-left: clamp(54px, 8vh, 68px); }
body.skin-trumpet header.top .me-info .marquee { display: none; }
body.skin-trumpet[data-view="lobby"] .notice .vp { overflow: hidden; flex: 1; }
body.skin-trumpet[data-view="lobby"] .ticker-track { gap: 120px; color: #fff; font-weight: 600; font-size: .9rem; animation-duration: 28s; }
body.skin-navbar[data-view="lobby"] .disclaimer { bottom: 8px; right: 12px; max-width: min(210px, 14vw); }
/* betting history cabinet: full size, over a dimmed backdrop like the reference popup */
body.skin-panel-history #betting:not([hidden]) { max-width: none !important; width: min(1240px, 96vw, calc(88vh * 1.75)); }
body.skin-panel-history[data-view="betting"]::after { content: ""; position: fixed; inset: 0; z-index: 29; background: rgba(8,2,24,.62); pointer-events: none; }
body.skin-panel-history #betting .hist th, body.skin-panel-history #betting .hist td { padding: 4px 8px; font-size: clamp(.7rem, 1.8vh, .9rem); }
body.skin-panel-history #betting .controls .label { color: #cfb8ff; }
body.skin-coin-pill header.top .pid { display: block; margin-top: 6px; }
/* the reference's centre wheel keeps turning; our picture has the pointer baked in, so a rotating light sweep turns over the disc instead */
nav.bottom .wheel-btn:has(.skin-icon)::after { content: ""; position: absolute; left: 50%; top: clamp(-50px, -6vh, -30px); width: clamp(52px, 11.5vh, 90px); aspect-ratio: 1; translate: -50% 0; margin-top: clamp(6px, 1.5vh, 12px);
  border-radius: 50%; pointer-events: none; mix-blend-mode: screen; background: conic-gradient(from 0deg, transparent 0 20%, rgba(255,255,255,.55) 25%, transparent 32% 70%, rgba(255,255,255,.4) 75%, transparent 82%);
  animation: skinSpin 3.2s linear infinite; }
@keyframes skinSpin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { nav.bottom .wheel-btn:has(.skin-icon)::after { animation: none; opacity: 0; } }

/* ===================== lobby animations matched to the reference (watched 22 Nov 2026) ===================== */
/* logo: still, like the reference */
.brand .skin-logo { animation: none; }
/* switching tabs is instant on the reference: no staggered rise */
body.skin-navbar[data-view="lobby"] .tile { animation: none; }
/* "Hot" flame: quick irregular fire flicker (the reference uses a frame-by-frame fire) instead of a slow pulse */
body.skin-badge-hot .tile .hot { animation: skinFire .5s linear infinite; transform-origin: 50% 95%; }
@keyframes skinFire {
  0% { transform: scale(1, 1) skewX(0); filter: brightness(1); }
  17% { transform: scale(1.04, 1.12) skewX(-3deg); filter: brightness(1.15); }
  34% { transform: scale(.97, 1.02) skewX(2deg); }
  51% { transform: scale(1.03, 1.16) skewX(-1deg); filter: brightness(1.2); }
  68% { transform: scale(.99, 1.04) skewX(3deg); }
  85% { transform: scale(1.02, 1.1) skewX(-2deg); filter: brightness(1.1); }
  100% { transform: scale(1, 1) skewX(0); filter: brightness(1); } }
/* the first poster gets golden electric sparks running round its frame, like the reference's featured poster */
@property --skin-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
body.skin-navbar[data-view="lobby"] .tiles .tile:first-child::after { content: ""; position: absolute; inset: -5px; z-index: 3; border-radius: 16px; padding: 5px; pointer-events: none;
  background: conic-gradient(from var(--skin-a), transparent 0 55%, rgba(255,246,200,.0) 58%, #fff6c8 66%, #ffd45e 70%, #ff9a1a 73%, transparent 80% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 6px #ffd45e) drop-shadow(0 0 12px #ff9a1a); animation: skinEdge 1.4s linear infinite; }
body.skin-navbar[data-view="lobby"] .tiles .tile:first-child .art { box-shadow: 0 0 0 2px #ffd45e, 0 0 22px rgba(255,200,60,.65); animation: skinEdgeGlow 1.4s ease-in-out infinite alternate; }
@keyframes skinEdge { to { --skin-a: 360deg; } }
@keyframes skinEdgeGlow { to { box-shadow: 0 0 0 3px #fff3b0, 0 0 34px rgba(255,214,94,.9); } }
/* selected bottom tab: pink glow and a light beam under the icon, pink label */
body.skin-navbar nav.bottom .inner > button { position: relative; isolation: isolate; }
body.skin-navbar nav.bottom .inner > button[aria-pressed="true"]::before { content: ""; position: absolute; left: 50%; bottom: 4px; z-index: -1; width: clamp(80px, 15vh, 130px); height: clamp(64px, 13vh, 110px); translate: -50% 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 45% at 50% 72%, rgba(255,110,235,.75), rgba(200,60,255,.25) 60%, transparent 75%), linear-gradient(transparent, rgba(255,140,240,.18)); clip-path: polygon(25% 100%, 75% 100%, 100% 0, 0 0); }
body.skin-navbar nav.bottom .inner > button[aria-pressed="true"] .lbl { background: linear-gradient(#ff6ae0, #a01a9a); border-color: #ffd0f6; }
/* popups: zoom up from ≈80% in ≈0.2 s with the backdrop fading in (the reference), not a rise from below */
.modal:not([hidden]) > .help-card, .modal:not([hidden]) > .set-card, body.skin-panel-history #betting:not([hidden]) { animation: skinZoomIn .22s cubic-bezier(.2,1.25,.4,1) both; }
@keyframes skinZoomIn { from { opacity: .3; transform: scale(.8); } to { opacity: 1; transform: none; } }
/* spin wheel: the wheel zooms out from the centre while the stage fades in (≈0.3 s) */
#wheelModal:not([hidden]) { animation: fadein .3s ease both; }
#wheelModal:not([hidden]) .ws-main { animation: skinWheelIn .35s cubic-bezier(.2,1.2,.3,1) both; }
#wheelModal:not([hidden]) .ws-host { animation: fadein .35s ease both, skinFloat 3.6s ease-in-out .35s infinite; }
@keyframes skinWheelIn { from { opacity: .25; transform: scale(.35); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  body.skin-badge-hot .tile .hot, body.skin-navbar[data-view="lobby"] .tiles .tile:first-child::after, body.skin-navbar[data-view="lobby"] .tiles .tile:first-child .art,
  .modal:not([hidden]) > .help-card, .modal:not([hidden]) > .set-card, #wheelModal:not([hidden]), #wheelModal:not([hidden]) .ws-main, #wheelModal:not([hidden]) .ws-host { animation: none !important; }
}
/* stronger, two-spark electric frame and a clearly visible selected-tab glow */
body.skin-navbar[data-view="lobby"] .tiles .tile:first-child::after { inset: -6px; padding: 6px;
  background: conic-gradient(from var(--skin-a), transparent 0 28%, #fff 33%, #ffe27a 36%, #ff9a1a 40%, transparent 46% 78%, #fff 83%, #ffe27a 86%, #ff9a1a 90%, transparent 96%);
  filter: drop-shadow(0 0 5px #fff3b0) drop-shadow(0 0 10px #ffd45e) drop-shadow(0 0 18px #ff9a1a); animation-duration: 1.1s; }
body.skin-navbar nav.bottom .inner > button .skin-icon { position: relative; z-index: 1; }
body.skin-navbar nav.bottom .inner > button[aria-pressed="true"]::before { z-index: 0; bottom: 0; width: clamp(96px, 17vh, 150px); height: clamp(80px, 15vh, 125px);
  background: radial-gradient(ellipse 50% 40% at 50% 62%, rgba(255,120,240,.95), rgba(220,70,255,.55) 45%, transparent 72%), linear-gradient(rgba(255,150,240,0), rgba(255,150,240,.35));
  clip-path: polygon(22% 100%, 78% 100%, 100% 0, 0 0); filter: blur(2px); }
body.skin-navbar nav.bottom .inner > button[aria-pressed="true"] .skin-icon { filter: drop-shadow(0 0 10px #ff8af0) drop-shadow(0 0 18px #d050ff) brightness(1.12); }
/* electric frame without masks: the spinning light sits BEHIND the poster, so only a thin rim shows round it */
body.skin-navbar[data-view="lobby"] .tiles .tile:first-child { isolation: isolate; }
body.skin-navbar[data-view="lobby"] .tiles .tile:first-child::after { z-index: -1; inset: -6px; padding: 0; -webkit-mask: none; mask: none; border-radius: 18px; }
body.skin-navbar[data-view="lobby"] .tiles { padding-left: 10px; padding-right: 10px; scroll-padding-left: 10px; }
body.skin-navbar[data-view="lobby"] .tiles .tile:first-child::after { inset: -7px; }

/* ===================== lobby: second sizing pass against the reference (1512-wide view) ===================== */
/* header: Help, APP, Language, Setting only (Wallet / Sound / Full screen live in Settings) */
header.top .icons .hdr-hide { display: none !important; }
header.top .icons { gap: clamp(14px, 3vw, 46px); }
header.top .icons button:has(.skin-icon) span, header.top .icons button span { font: 800 clamp(.85rem, 2.6vh, 1.3rem)/1 var(--display); letter-spacing: .02em; color: #ff4fd8; -webkit-text-stroke: 3px #fff; paint-order: stroke fill; }
header.top .icons .skin-icon { width: clamp(34px, 7vh, 56px); height: clamp(34px, 7vh, 56px); }
header.top .icons svg { width: clamp(30px, 6vh, 46px); height: clamp(30px, 6vh, 46px); color: #fff; }
/* avatar: a portrait in a thin frame, like the reference */
body.skin-avatar header.top .avatar { background: #2a1a4a; overflow: visible; }
header.top .avatar .skin-ava { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
body.skin-avatar.skin-avatar-frame header.top .avatar::after { inset: -9%; }
/* ID under the coin pill: white, bold */
header.top .pid { font: 800 clamp(.9rem, 2.7vh, 1.3rem) var(--body); color: #fff; letter-spacing: 0; }
/* announcement strip: the reference uses a plain white speaker, not a trumpet */
body.skin-trumpet .notice > svg { background: none; color: #fff; width: 26px; height: 26px; }
body.skin-trumpet .notice > svg * { display: inline; }
body.skin-trumpet[data-view="lobby"] .notice { height: clamp(30px, 4.6vh, 38px); width: min(50vw, 760px); }
body.skin-trumpet[data-view="lobby"] .ticker-track { font: 700 clamp(.85rem, 2.4vh, 1.15rem) var(--body); }
/* thin gold divider between the promo card and the posters */
@media (min-width: 761px) { body.skin-navbar[data-view="lobby"] .lobby .carousel { position: relative; }
  body.skin-navbar[data-view="lobby"] .lobby .carousel::after { content: ""; position: absolute; right: -10px; top: -6%; bottom: -10%; width: 2px; background: linear-gradient(transparent, #e8c35a 15%, #e8c35a 85%, transparent); } }
/* bottom bar: nearly full width, bigger icons and label pills */
body.skin-navbar nav.bottom .inner { width: min(97vw, 1700px) !important; max-width: none !important; min-height: clamp(76px, 16vh, 130px); }
body.skin-navbar nav.bottom .inner > button .skin-icon { width: clamp(46px, 11.5vh, 92px); height: clamp(46px, 11.5vh, 92px); }
body.skin-navbar nav.bottom .wheel-btn .skin-icon { width: clamp(80px, 17vh, 130px); height: clamp(80px, 17vh, 130px); }
body.skin-navbar nav.bottom .lbl { min-width: clamp(64px, 12.5vh, 100px); padding: 2px 12px; font: 800 clamp(.8rem, 2.5vh, 1.2rem)/1.2 var(--display); color: #ffb8f2; background: linear-gradient(#4a1a8a, #24084e); border: 2px solid #8a4ae0; border-radius: 999px; text-align: center; }
body.skin-navbar nav.bottom .wheel-btn .lbl { color: #ff6ae0; font-style: italic; background: none; border: 0; font-size: clamp(.95rem, 3vh, 1.4rem); -webkit-text-stroke: 3px #2a0a4a; paint-order: stroke fill; }
/* APP and Language popups (drawn; a panel picture can replace them later) */
.mini-card { position: relative; width: min(620px, 92vw); padding: 22px 26px; border-radius: 18px; background: linear-gradient(#3a1766, #1d0a33); border: 3px solid #e8c35a; box-shadow: 0 0 30px rgba(200,120,255,.4); color: #f3e6ff; }
.modal:not([hidden]) > .mini-card { animation: skinZoomIn .22s cubic-bezier(.2,1.25,.4,1) both; }
.mini-card h2 { text-align: center; font-size: 2rem; color: #ff8af0; -webkit-text-stroke: 1px #fff; margin-bottom: 10px; }
.mini-card ol { padding-left: 1.3em; line-height: 1.7; } .mini-note { color: #cfb8ff; font-size: .85rem; margin-top: 8px; }
.lang-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lang { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border-radius: 12px; border: 2px solid #4a6ae0; background: linear-gradient(#2a3a8a, #18205a); color: #fff; font-weight: 700; cursor: pointer; }
.lang .flag { font-size: 2rem; } .lang i { color: #ffe35a; font-style: normal; font-size: 1.3rem; } .lang small { color: #9ab0e0; }
.lang.on { border-color: #ffe35a; box-shadow: 0 0 14px rgba(255,227,90,.5); } .lang:disabled { opacity: .6; cursor: default; }
body.skin-panel-language .lang-card { width: min(1000px, 94vw); aspect-ratio: 1400 / 800; padding: 0; border: 0; border-radius: 0; background: url("art/lobby/panel-language.png") center / 100% 100% no-repeat; box-shadow: none; }
body.skin-panel-language .lang-card h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.skin-panel-language .lang-card .lang-list { position: absolute; left: 14%; top: 30%; width: 72%; height: 50%; align-content: center; grid-template-columns: repeat(5, 1fr); }
body.skin-panel-language .lang-card .close-x { right: 4%; top: 6%; color: #fff; font-size: 2.2rem; }
body.skin-navbar[data-view="lobby"] .disclaimer { bottom: calc(clamp(76px, 16vh, 130px) + 6px); right: 14px; }
/* two-part centre wheel: the disc turns, the frame and pointer stay still */
nav.bottom .skin-wheel { position: relative; display: block; width: clamp(84px, 18vh, 136px); aspect-ratio: 1; margin: clamp(-56px, -7vh, -34px) auto -6px; }
nav.bottom .skin-wheel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
nav.bottom .skin-wheel .disc { animation: skinSpin 3s linear infinite; }
nav.bottom .wheel-btn:has(.skin-wheel)::after { content: none !important; }
@media (prefers-reduced-motion: reduce) { nav.bottom .skin-wheel .disc { animation: none; } }
/* full illustrated posters (art/posters/<id>.png): the picture includes the title, like the reference */
.tile .art .poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.tile .art.has-poster .title, .tile .art.has-poster .img-poster, .tile .art.has-poster svg.poster, .tile .art.has-poster .glyph { display: none; }

/* ===================== pixel pass against the reference at 1512×739 ===================== */
/* posters 225×385 (ratio .585), 42px apart; promo card 200×420 */
body.skin-navbar[data-view="lobby"] .tiles { --ph: clamp(160px, 52vh, 440px); grid-auto-columns: calc(var(--ph) * .585); gap: clamp(22px, 5.7vh, 46px); }
@media (min-width: 761px) { body.skin-navbar[data-view="lobby"] .lobby { --feat: clamp(150px, 27vh, 230px); column-gap: clamp(26px, 4.8vh, 40px); } }
/* gold poster frame with diamond corner caps and red jewels (the reference's ornate frame) */
.tile .pframe { display: none; }
body.skin-navbar .tile .pframe { display: block; position: absolute; inset: -4px; z-index: 3; pointer-events: none; border-radius: 6px;
  border: 5px solid transparent; background: linear-gradient(#fff3b0, #d9a43a 35%, #8a5410 70%, #e8c35a) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  box-shadow: none; }
body.skin-navbar .tile .pframe i { position: absolute; width: 20px; height: 20px; rotate: 45deg; background: linear-gradient(135deg, #fff6c8, #d9a43a 45%, #7a4a00);
  box-shadow: 0 0 0 1px #5a3000, inset 0 0 0 5px transparent; }
body.skin-navbar .tile .pframe i::after { content: ""; position: absolute; inset: 6px; border-radius: 2px; background: radial-gradient(circle at 35% 35%, #ff9a8a, #c0182a 60%, #5a0010); }
body.skin-navbar .tile .pframe i:nth-child(1) { left: -12px; top: -12px; } body.skin-navbar .tile .pframe i:nth-child(2) { right: -12px; top: -12px; }
body.skin-navbar .tile .pframe i:nth-child(3) { left: -12px; bottom: -12px; } body.skin-navbar .tile .pframe i:nth-child(4) { right: -12px; bottom: -12px; }
body.skin-navbar[data-view="lobby"] .tile .art { border: 0; border-radius: 4px; box-shadow: 0 8px 18px rgba(0,0,0,.55); }
body.skin-navbar .tile:hover .pframe { filter: brightness(1.2) drop-shadow(0 0 8px #ffd45e); }
/* "Hot" overlaps the poster's top-left corner, flames rising above it; star 48px on the bottom-right corner */
body.skin-badge-hot .tile .hot { top: clamp(-40px, -5vh, -26px); left: -16px; width: clamp(60px, 10.5vh, 84px); height: clamp(42px, 7.5vh, 60px); z-index: 5; }
body.skin-star-fav .tile .fav { width: clamp(34px, 6.5vh, 50px); height: clamp(34px, 6.5vh, 50px); right: -14px; bottom: -14px; z-index: 5; filter: sepia(.6) brightness(.55) saturate(1.4); }
/* featured poster: yellow-gold aura as well as the running sparks */
body.skin-navbar[data-view="lobby"] .tiles .tile:first-child .art { box-shadow: 0 0 18px 6px rgba(255,214,60,.75), 0 0 40px 10px rgba(255,170,30,.4); }
/* avatar: thin light-blue border, no gold frame */
body.skin-avatar header.top .avatar { border: 2px solid #4a9aff; border-radius: 6px; box-shadow: 0 0 0 1px #12306a, 0 3px 8px rgba(0,0,0,.4); }
body.skin-avatar header.top .avatar::after { content: none; }
header.top .avatar .skin-ava { border-radius: 4px; }
/* coin pill: dark navy bar with a slanted right end, big gold coin overlapping its left end */
body.skin-coin-pill header.top .balance { position: relative; overflow: visible; background: linear-gradient(90deg, rgba(14,30,80,.92), rgba(28,52,120,.78)); border: 1px solid rgba(110,150,255,.45);
  clip-path: none; border-radius: 3px 0 0 3px; min-width: clamp(170px, 32vh, 240px); height: clamp(26px, 4.5vh, 34px); padding: 0 34px 0 clamp(40px, 6.5vh, 52px); margin-left: 12px; }
body.skin-coin-pill header.top .balance::after { content: ""; position: absolute; right: -16px; top: -1px; bottom: -1px; width: 18px; background: inherit; border: inherit; border-left: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
body.skin-coin-pill header.top .balance .coin { visibility: visible; position: absolute; left: -14px; top: 50%; translate: 0 -50%; width: clamp(32px, 5.6vh, 42px); height: clamp(32px, 5.6vh, 42px); margin: 0; }
body.skin-coin-pill header.top .balance .amt { font: 800 clamp(1rem, 3.2vh, 1.5rem) var(--body); color: #fff; }
/* the header's thin gold line, stepping up after the coin area */
body.skin-topbar[data-view="lobby"] header.top { position: relative; background: linear-gradient(rgba(16,6,40,.9), rgba(30,10,70,.6)); }
body.skin-topbar[data-view="lobby"] header.top::after { content: ""; position: absolute; left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); bottom: -4px; height: 18px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1512 18' preserveAspectRatio='none'%3E%3Cpath d='M0 16 H395 L412 3 H1512' fill='none' stroke='%23c9a24a' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
/* top icons ≈52px */
header.top .icons .skin-icon { width: clamp(34px, 7.1vh, 54px); height: clamp(34px, 7.1vh, 54px); }
/* bottom bar: icons ≈70px, half-wheel ≈110px, label pills ≈95×28 */
body.skin-navbar nav.bottom .inner { min-height: clamp(70px, 13.5vh, 108px); }
body.skin-navbar nav.bottom .inner > button .skin-icon { width: clamp(44px, 9.5vh, 72px); height: clamp(44px, 9.5vh, 72px); }
body.skin-navbar nav.bottom .wheel-btn .skin-icon, nav.bottom .skin-wheel { width: clamp(72px, 15vh, 112px); height: clamp(72px, 15vh, 112px); }
body.skin-navbar nav.bottom .lbl { min-width: clamp(58px, 12.8vh, 96px); height: clamp(22px, 3.8vh, 28px); padding: 0 10px; display: inline-grid; place-items: center; font-size: clamp(.78rem, 2.6vh, 1.12rem); color: #fff; }
body.skin-navbar nav.bottom .inner > button[aria-pressed="true"] .lbl { color: #fff; }
body.skin-navbar[data-view="lobby"] .tiles { scrollbar-width: none; } body.skin-navbar[data-view="lobby"] .tiles::-webkit-scrollbar { display: none; }
body.skin-navbar .tile .pframe { inset: -7px; border-width: 8px; border-radius: 8px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
body.skin-navbar .tile .pframe i { width: 26px; height: 26px; }
body.skin-navbar .tile .pframe i::after { inset: 7px; }
body.skin-navbar .tile .pframe i:nth-child(1) { left: -17px; top: -17px; } body.skin-navbar .tile .pframe i:nth-child(2) { right: -17px; top: -17px; }
body.skin-navbar .tile .pframe i:nth-child(3) { left: -17px; bottom: -17px; } body.skin-navbar .tile .pframe i:nth-child(4) { right: -17px; bottom: -17px; }
body.skin-star-fav .tile .fav { filter: brightness(.72) saturate(.85) drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
body.skin-star-fav .tile .fav[aria-pressed="true"] { filter: drop-shadow(0 0 8px rgba(255,214,94,.95)); }

/* ===================== third pass: matched against the two side-by-side screenshots ===================== */
/* ---- header ---- */
body.skin-topbar[data-view="lobby"] header.top { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='120' viewBox='0 0 220 120'%3E%3Cg fill='none' stroke='%235a7aff' stroke-opacity='.28' stroke-width='1'%3E%3Cpath d='M0 90 L60 30 L120 80 L180 20 L220 60'/%3E%3Cpath d='M20 0 L60 30 L40 120 M120 80 L150 120 M180 20 L200 0'/%3E%3C/g%3E%3Cg fill='%238fb0ff' fill-opacity='.45'%3E%3Ccircle cx='60' cy='30' r='2'/%3E%3Ccircle cx='120' cy='80' r='2'/%3E%3Ccircle cx='180' cy='20' r='2'/%3E%3C/g%3E%3C/svg%3E") center top / 220px 120px repeat-x,
  linear-gradient(90deg, rgba(12,10,48,.92), rgba(20,22,90,.92) 50%, rgba(12,10,48,.92)); }
.hdr-fx { display: none; }
body.skin-topbar[data-view="lobby"] .hdr-fx { display: block; position: fixed; left: 0; right: 0; top: 0; height: 13vh; z-index: 5; pointer-events: none; }
.hdr-fx i { position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; opacity: 0; background: radial-gradient(circle, #fff 0 12%, #bfe0ff 25%, transparent 60%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: hdrTwinkle 3.5s ease-in-out infinite; animation-delay: var(--d); }
@keyframes hdrTwinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 20% { opacity: 1; transform: scale(1.1) rotate(45deg); } 40% { opacity: 0; transform: scale(.4) rotate(90deg); } }
/* labels: rounded heavy pink with a white outline */
header.top .icons button span { font: 900 clamp(.9rem, 3vh, 1.4rem)/1 "Arial Rounded MT Bold", "Nunito", "Varela Round", system-ui, sans-serif !important; letter-spacing: 0; color: #ff3fd8; -webkit-text-stroke: 4px #fff; paint-order: stroke fill; }
header.top .icons .skin-icon, header.top .icons svg { width: clamp(36px, 7.6vh, 58px); height: clamp(36px, 7.6vh, 58px); }
/* APP: a pointing hand keeps tapping the phone */
#appBtn { position: relative; }
#appBtn::after { content: "👆"; position: absolute; left: 4px; top: -2px; font-size: clamp(18px, 3.6vh, 28px); rotate: -35deg; animation: appTap 1s ease-in-out infinite; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
@keyframes appTap { 0%, 100% { translate: 0 0; } 45% { translate: 6px 7px; } 55% { translate: 6px 7px; } }
/* ID line: just "ID:1234567", white and bold */
body.skin-avatar header.top .pid .pid-nick, body.skin-avatar header.top .pid .pid-sp { display: none; }
header.top .pid { font: 900 clamp(1rem, 3.1vh, 1.45rem) "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif; color: #fff; margin-top: 8px; padding-left: 10px; }
/* coin pill: lighter steel-blue glass, coin with a $ */
body.skin-coin-pill header.top .balance { background: linear-gradient(90deg, rgba(50,80,150,.75), rgba(40,64,128,.55)); border-color: rgba(150,180,255,.35); }
body.skin-coin-pill header.top .balance .coin { display: grid; place-items: center; }
body.skin-coin-pill header.top .balance .coin::after { content: "$"; font: 900 clamp(1rem, 3vh, 1.4rem)/1 "Arial Rounded MT Bold", system-ui, sans-serif; color: #b8700a; text-shadow: 0 1px 0 #fff3b0; }
/* ---- promo card and posters: higher, promo further in, with the gold divider ---- */
body.skin-navbar[data-view="lobby"] .lobby { padding-top: calc(env(safe-area-inset-top, 0px) + 6vh); }
@media (min-width: 761px) { body.skin-navbar[data-view="lobby"] .lobby { margin-left: 4vw; } }
body.skin-navbar[data-view="lobby"] .tiles { padding-top: clamp(22px, 5.2vh, 44px); --ph: clamp(160px, 52.5vh, 440px); }
body.skin-navbar[data-view="lobby"] .lobby .carousel { margin-top: clamp(4px, 1vh, 12px); height: clamp(160px, 57vh, 470px) !important; }
@media (min-width: 761px) { body.skin-navbar[data-view="lobby"] .lobby .carousel::after { right: calc(-1 * clamp(14px, 2.4vh, 22px)); top: -8%; bottom: -6%; width: 3px; background: linear-gradient(transparent, #f0c860 8%, #b88a2a 50%, #f0c860 92%, transparent); } }
body.skin-navbar[data-view="lobby"] .tiles .tile:first-child .art { box-shadow: 0 0 16px 8px rgba(255,220,70,.85), 0 0 46px 16px rgba(255,170,30,.55) !important; }
body.skin-star-fav .tile .fav { width: clamp(38px, 7vh, 52px); height: clamp(38px, 7vh, 52px); filter: sepia(1) hue-rotate(-12deg) saturate(1.6) brightness(.5) drop-shadow(0 0 1px #ffd45e) drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
/* ---- bottom bar: flat dark-purple band, gold bottom line, gold arch over a half-wheel ---- */
body.skin-navbar nav.bottom .inner { background: none !important; }
body.skin-navbar[data-view="lobby"] nav.bottom::before, body.skin-navbar[data-view="betting"] nav.bottom::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(54px, 10.5vh, 82px); z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(120,40,200,.55), rgba(40,8,80,.95) 22%, #23064a), #23064a; border-top: 2px solid rgba(220,120,255,.55);
  box-shadow: inset 0 -6px 0 -3px #c9a24a, 0 -6px 18px rgba(0,0,0,.35); }
body.skin-navbar nav.bottom { isolation: isolate; }
body.skin-navbar nav.bottom .wheel-btn { position: relative; }
/* (arch moved to nav.bottom::after below) */
/* the centre wheel shows as a half-wheel peeking out of the arch */
body.skin-navbar nav.bottom .wheel-btn .skin-icon, body.skin-navbar nav.bottom .skin-wheel { width: clamp(80px, 16.5vh, 124px); height: clamp(80px, 16.5vh, 124px); clip-path: inset(0 0 42% 0); margin-bottom: calc(-1 * clamp(34px, 7vh, 52px)); position: relative; z-index: 1; }
body.skin-navbar nav.bottom .wheel-btn:has(.skin-icon)::after { clip-path: inset(0 0 42% 0); }
/* icons ≈76px, label pills ≈103×26 with the rounded pink-white lettering */
body.skin-navbar nav.bottom .inner > button .skin-icon { width: clamp(46px, 10.3vh, 78px); height: clamp(46px, 10.3vh, 78px); }
body.skin-navbar nav.bottom .lbl { position: relative; z-index: 1; min-width: clamp(60px, 13.9vh, 104px); height: clamp(22px, 3.6vh, 27px); font: 900 clamp(.8rem, 2.7vh, 1.2rem)/1 "Arial Rounded MT Bold", "Nunito", "Varela Round", system-ui, sans-serif !important;
  color: #ffd0ff !important; -webkit-text-stroke: 3px #3a0a6a; paint-order: stroke fill; background: linear-gradient(#6a24b4, #3e0f7e) !important; border: 1px solid #b47aff !important; }
body.skin-navbar nav.bottom .wheel-btn .lbl { background: linear-gradient(#3a0c74, #24064e) !important; border: 1px solid #7a3ac0 !important; color: #ff7ae6 !important; font-style: italic; min-width: clamp(80px, 17vh, 130px); }
@media (prefers-reduced-motion: reduce) { .hdr-fx i, #appBtn::after { animation: none; } .hdr-fx { display: none !important; } }

/* gold arch centred on the bar, behind the icons */
body.skin-navbar nav.bottom .wheel-btn::before { content: "" !important; display: block !important; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) !important; translate: none !important; top: auto !important; width: clamp(240px, 58vh, 440px); height: clamp(96px, 21vh, 160px); z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 440 160' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff3b0'/%3E%3Cstop offset='.45' stop-color='%23e0a83a'/%3E%3Cstop offset='1' stop-color='%237a4a00'/%3E%3C/linearGradient%3E%3ClinearGradient id='p' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%234a1490'/%3E%3Cstop offset='1' stop-color='%23200548'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 160 C60 150 70 40 130 22 H310 C370 40 380 150 440 160 Z' fill='url(%23p)'/%3E%3Cpath d='M0 160 C60 150 70 40 130 22 H310 C370 40 380 150 440 160' fill='none' stroke='url(%23g)' stroke-width='12'/%3E%3Cpath d='M18 160 C70 148 82 52 136 36 H304 C358 52 370 148 422 160' fill='none' stroke='%23fff3b0' stroke-opacity='.5' stroke-width='2'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
body.skin-navbar nav.bottom .wheel-btn .skin-icon, body.skin-navbar nav.bottom .skin-wheel { clip-path: inset(0 0 30% 0); margin-bottom: calc(-1 * clamp(22px, 4.6vh, 34px)); margin-top: calc(-1 * clamp(30px, 6vh, 46px)); }
body.skin-navbar nav.bottom .wheel-btn:has(.skin-icon)::after { clip-path: inset(0 0 30% 0); }

/* arch: anchored to the wheel button, behind every button (the bar is the stacking context) */
body.skin-navbar nav.bottom .inner > button.wheel-btn { isolation: auto; }
body.skin-navbar nav.bottom .wheel-btn::before { z-index: -1 !important; width: clamp(300px, 60vh, 450px) !important; height: clamp(110px, 18.5vh, 140px) !important; margin: 0 !important; }
body.skin-navbar nav.bottom .wheel-btn .skin-icon, body.skin-navbar nav.bottom .skin-wheel { width: clamp(90px, 17vh, 128px); height: clamp(90px, 17vh, 128px); clip-path: inset(0 0 44% 0); margin-top: calc(-1 * clamp(40px, 8vh, 60px)); margin-bottom: calc(-1 * clamp(36px, 7.2vh, 54px)); }
body.skin-navbar nav.bottom .wheel-btn:has(.skin-icon)::after { clip-path: inset(0 0 44% 0); }
body.skin-navbar nav.bottom .wheel-btn .lbl { min-width: clamp(70px, 13.5vh, 104px); }
body.skin-navbar nav.bottom .inner { grid-template-columns: repeat(3, minmax(0, 1fr)) clamp(110px, 20vh, 150px) repeat(3, minmax(0, 1fr)) !important; }
body.skin-navbar nav.bottom .inner > button.wheel-btn { z-index: auto !important; }
body.skin-navbar nav.bottom .wheel-btn .skin-icon, body.skin-navbar nav.bottom .skin-wheel { max-width: none; }
body.skin-navbar nav.bottom .inner { grid-template-columns: repeat(3, minmax(0, 1fr)) clamp(260px, 56vh, 430px) repeat(3, minmax(0, 1fr)) !important; }
body.skin-navbar nav.bottom .wheel-btn .skin-icon, body.skin-navbar nav.bottom .skin-wheel { width: clamp(110px, 21vh, 160px); height: clamp(110px, 21vh, 160px); clip-path: inset(0 0 46% 0); margin-top: calc(-1 * clamp(52px, 10vh, 76px)); margin-bottom: calc(-1 * clamp(50px, 9.6vh, 72px)); }
body.skin-navbar nav.bottom .wheel-btn .skin-icon, body.skin-navbar nav.bottom .skin-wheel { width: clamp(150px, 30vh, 230px); height: clamp(150px, 30vh, 230px); clip-path: inset(6% 0 50% 0); margin-top: calc(-1 * clamp(80px, 15vh, 116px)); margin-bottom: calc(-1 * clamp(70px, 13.6vh, 104px)); }
body.skin-navbar nav.bottom .wheel-btn:has(.skin-icon)::after { display: none; }
/* half-wheel sitting inside the arch: its flat edge rests just above the "Bonus" label */
body.skin-navbar nav.bottom .wheel-btn { --wh: clamp(140px, 24vh, 180px); }
body.skin-navbar nav.bottom .wheel-btn .skin-icon, body.skin-navbar nav.bottom .skin-wheel { position: absolute !important; left: 50%; bottom: calc(clamp(26px, 4.4vh, 34px) - var(--wh) / 2); transform: translateX(-50%) !important;
  width: var(--wh) !important; height: var(--wh) !important; margin: 0 !important; clip-path: inset(4% 0 50% 0); animation: none; }
body.skin-navbar nav.bottom .wheel-btn .lbl { margin-top: clamp(40px, 9vh, 70px); }
body.skin-navbar nav.bottom .wheel-btn::before { height: clamp(96px, 16.5vh, 124px) !important; }

/* ===================== new picture set: sprite fire, tapping hand, sparkles, spinning disc, posters ===================== */
/* "Hot": chunky text with a 6-frame fire playing behind and above it (like the reference) */
body.skin-hot-fire.skin-badge-hot-text .tile .hot { width: clamp(56px, 9.6vh, 76px); height: clamp(66px, 12vh, 92px); top: clamp(-58px, -7.6vh, -44px); left: -14px;
  background: url("art/lobby/badge-hot-text.png") center bottom / 100% auto no-repeat; animation: none; transform: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
body.skin-hot-fire.skin-badge-hot-text .tile .hot::before { content: ""; position: absolute; left: 22%; bottom: 26%; width: 62%; height: 78%; z-index: -1; transform: none; translate: 0;
  background: url("art/lobby/hot-fire.png") 0 0 / 600% 100% no-repeat; animation: hotFire .6s steps(6) infinite; opacity: .95; }
@keyframes hotFire { from { background-position-x: 0%; } to { background-position-x: 120%; } }
/* APP: the hand picture taps the phone */
body.skin-app-hand #appBtn::after { content: ""; width: clamp(20px, 3.8vh, 30px); height: clamp(20px, 3.8vh, 30px); left: auto; right: -8px; top: -6px; rotate: 0deg; font-size: 0;
  background: url("art/lobby/app-hand.png") center / contain no-repeat; animation: appTap2 1s ease-in-out infinite; }
@keyframes appTap2 { 0%, 100% { translate: 0 0; } 45%, 55% { translate: -6px 7px; } }
/* sparkles behind the logo use the sparkle picture */
body.skin-sparkle .hdr-fx i { width: 22px; height: 22px; clip-path: none; background: url("art/lobby/sparkle.png") center / contain no-repeat; }
/* two-part wheel: the disc sits inside the ring and spins; ring + pointer stay still */
body.skin-navbar nav.bottom .skin-wheel .disc { inset: 9%; width: 82%; height: 82%; animation: skinSpin 3.2s linear infinite; }
body.skin-navbar nav.bottom .skin-wheel .frame { z-index: 1; }
/* illustrated posters carry their own title and border: no RTP / HD tags on top, like the reference */
.tile:has(.art.has-poster) .rtp, .tile:has(.art.has-poster) .hd { display: none !important; }
@media (prefers-reduced-motion: reduce) { body.skin-hot-fire.skin-badge-hot-text .tile .hot::before, body.skin-app-hand #appBtn::after, body.skin-navbar nav.bottom .skin-wheel .disc { animation: none; } }

/* ===================== Settings like the reference (Joker card + right side) =====================
   panel-settings.png 1400×800: Joker window x 172–395, y 405–620; content area x ≈ 33–93%, y ≈ 30–88%. */
body.skin-panel-settings .set-card.ys .set-body { left: 34%; top: 30%; width: 58%; height: 58%; overflow: visible; gap: 12px; padding: 0 2%; justify-items: center; }
.set-card.ys .ys-hidden { display: none !important; }
body.skin-panel-settings .set-card.ys .set-joker { left: 12.7%; top: 51.2%; width: 15.4%; height: 26%; overflow: hidden; border-radius: 6px; transform: rotate(-1.5deg); }
body.skin-panel-settings .set-card.ys .set-joker .avatar { width: 100%; height: 100%; border-radius: 6px; overflow: hidden; padding: 0; }
.set-card.ys .set-joker .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.set-card.ys .ys-id { position: absolute; left: 8%; width: 25%; top: 79.5%; text-align: center; font: 700 clamp(.8rem, 1.7vw, 1.15rem)/1 var(--body); color: #6ef2ff; text-shadow: 0 1px 3px #000; transform: rotate(-1.5deg); }
.set-card.ys .ys-return { position: absolute; left: 7.5%; top: 84%; width: 26%; height: 8.5%; border: 0; cursor: pointer; z-index: 2;
  font: 800 clamp(.85rem, 1.9vw, 1.3rem)/1 var(--body); color: #2a1200; letter-spacing: .01em;
  background: linear-gradient(#fff07a, #ffc21a 55%, #e08a00); clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%);
  box-shadow: inset 0 0 0 3px #fff6b0; filter: drop-shadow(0 3px 4px rgba(0,0,0,.55)); transform: rotate(-3deg); }
.set-card.ys .ys-return:hover { filter: brightness(1.08) drop-shadow(0 3px 4px rgba(0,0,0,.55)); }
.set-card.ys .ys-sound { width: 100%; display: grid; place-items: center; }
.set-card.ys .ys-pill { position: relative; width: min(52%, 260px); height: clamp(40px, 8vh, 58px); border-radius: 999px; border: 3px solid #fff; cursor: pointer;
  background: linear-gradient(90deg, #f6a8e0 0 46%, #ff6fa8 46%); box-shadow: 0 4px 10px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,255,255,.6);
  display: grid; grid-template-columns: 46% 1fr; align-items: center; padding: 0; overflow: hidden; }
.set-card.ys .ys-pill .spk { height: 82%; margin: 0 6%; border-radius: 999px; background: linear-gradient(#ffd6f2, #e38ad0); display: grid; place-items: center; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.set-card.ys .ys-pill .spk::before { content: ""; width: 42%; height: 60%; background: #6a2a9a;
  clip-path: polygon(0 32%, 30% 32%, 62% 0, 62% 100%, 30% 68%, 0 68%); }
.set-card.ys .ys-pill b { font: 700 clamp(1.1rem, 2.4vw, 1.6rem)/1 var(--body); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.set-card.ys .ys-pill[aria-pressed="false"] { background: linear-gradient(90deg, #c9c4d6 0 46%, #7d7590 46%); }
.set-card.ys .ys-pill[aria-pressed="false"] .spk { background: linear-gradient(#eee, #bdb6cc); }
.set-card.ys .ys-pill[aria-pressed="false"] .spk::before { background: #5a5068; }
.set-card.ys .ys-line { width: 74%; height: 2px; background: linear-gradient(90deg, transparent, #e8c46a, transparent); }
.set-card.ys .ys-chip { padding: .55em 1.6em; border-radius: 999px; border: 0; cursor: pointer; font: 600 clamp(.85rem, 1.6vw, 1.05rem)/1 var(--body); color: #3a2060;
  background: linear-gradient(#ffffff, #e9dcff); box-shadow: 0 3px 6px rgba(0,0,0,.35), inset 0 -2px 0 rgba(0,0,0,.1); }
.set-card.ys .ys-chip span { color: #6a3ab8; font-weight: 800; margin-right: .3em; }
.set-card.ys .ys-chip[aria-pressed="true"] { background: linear-gradient(#fff7c0, #ffd04a); box-shadow: 0 0 0 2px #fff, 0 0 12px #ffd04a; }
.set-card.ys .tracks { width: 92%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; }
.set-card.ys .tracks button { border-radius: 999px !important; padding: .55em .4em !important; border: 0 !important; color: #2a1a4a !important;
  background: linear-gradient(#ffffff, #ddd0f5) !important; box-shadow: 0 3px 6px rgba(0,0,0,.35), inset 0 -2px 0 rgba(0,0,0,.08) !important; font: 600 clamp(.8rem, 1.5vw, 1rem)/1.1 var(--body) !important; }
.set-card.ys .tracks button small, .set-card.ys .tracks button span + span { display: none; }
.set-card.ys .tracks button[aria-pressed="true"], .set-card.ys .tracks button.on, .set-card.ys .tracks button.active { background: linear-gradient(#e8fbff, #a8ecff) !important; box-shadow: 0 0 0 2px #6ef2ff, 0 0 12px #6ef2ff !important; }
.set-card.ys .ys-small { display: flex; gap: 10px; margin-top: 2px; margin-right: 34%; }
.set-card.ys .ys-mini { padding: .35em 1em; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.25); color: #e8dcff; font: 600 .8rem/1 var(--body); cursor: pointer; }
.set-card.ys .ys-pass { position: absolute; right: 6.5%; top: 75%; width: 27%; height: 12.5%; border: 0; cursor: pointer; z-index: 2; color: #fff;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4%; padding: 0 4% 0 9%;
  background: linear-gradient(#8a4af0, #5a1ec8); clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35); filter: drop-shadow(0 3px 5px rgba(0,0,0,.5)); }
.set-card.ys .ys-pass span { font: 800 clamp(.85rem, 1.9vw, 1.35rem)/1.05 var(--body); text-align: center; }
.set-card.ys .ys-pass i { width: clamp(22px, 2.6vw, 34px); aspect-ratio: 3 / 5; border-radius: 5px; background: linear-gradient(#ffe46a, #f0a010); box-shadow: inset 0 0 0 3px #fff6c0;
  position: relative; }
.set-card.ys .ys-pass i::after { content: ""; position: absolute; inset: 18% 22% 26%; border-radius: 2px; background: #b86a00; }
.set-card.ys .ys-pass em { font: 800 clamp(1.1rem, 2.4vw, 1.7rem)/1 var(--body); font-style: normal; color: #ffe46a; }
.set-card.ys .ys-pass:hover { filter: brightness(1.12) drop-shadow(0 3px 5px rgba(0,0,0,.5)); }
/* change password screen */
.pw-modal { z-index: 80; }
.pw-card { position: relative; width: min(760px, 94vw); padding: 64px 7% 34px; border-radius: 18px; display: grid; justify-items: center; gap: 14px;
  background: linear-gradient(160deg, #3a1a8a, #6a2ad0 55%, #2a3aa8); box-shadow: inset 0 0 0 3px #b98af8, inset 0 0 0 6px #2a0a5a, 0 20px 60px rgba(0,0,0,.6); }
.pw-card .close-x { position: absolute; right: 14px; top: 8px; font-size: 2.4rem; color: #fff; background: none; border: 0; cursor: pointer; text-shadow: 0 2px 4px #000; }
.pw-card h2 { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; font: 800 clamp(1.8rem, 4.4vw, 2.8rem)/1 var(--display, var(--body));
  color: #fff; background: linear-gradient(#ffd6f6, #ff8ad8 55%, #c06aff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 3px 0 #3a0a6a) drop-shadow(0 0 10px rgba(255,120,220,.6)); }
.pw-screen { width: 100%; display: grid; gap: 12px; padding: 18px; border-radius: 12px; background: linear-gradient(#123070, #1a2a6a); box-shadow: inset 0 0 0 2px #4aa8e8, inset 0 0 20px rgba(0,0,0,.5); }
.pw-screen label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; padding: 0 14px; height: 54px; border: 1px solid #3a8ac8; background: #0e2050; }
.pw-screen span { font: 700 1.05rem/1 var(--body); color: #bcd8ff; white-space: nowrap; }
.pw-screen input { min-width: 0; border: 0; background: transparent; color: #fff; font: 600 1.1rem/1 var(--body); outline: none; }
.pw-msg { margin: 0; min-height: 1.2em; font: 600 .95rem/1.2 var(--body); color: #fff; }
.pw-msg.bad { color: #ffb0b0; } .pw-msg.good { color: #9cff9c; }
.pw-ok { width: min(260px, 60%); height: 54px; border: 0; cursor: pointer; font: 800 1.4rem/1 var(--body); color: #4a2a00;
  background: linear-gradient(#fff07a, #ffc21a 55%, #e09000); clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
@media (max-width: 700px) { .pw-screen label { grid-template-columns: 1fr; height: auto; padding: 8px 12px; } }

/* ===================== Panel animations (timed from the reference lobby) ===================== */
@keyframes ysFade { from { opacity: 0; } }
@keyframes ysRise { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes ysPop { 0% { opacity: 0; transform: scale(.72); } 70% { opacity: 1; transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes ysOut { to { opacity: 0; transform: scale(.88); } }
@keyframes ysBackOut { to { opacity: 0; } }
/* closing: every panel shrinks and fades quickly */
.modal.ys-closing { animation: ysBackOut .2s ease-in forwards !important; }
.modal.ys-closing > * { animation: ysOut .2s ease-in forwards !important; }
.modal:not([hidden]) { animation: ysFade .2s ease-out both; }

/* Settings: the panel unfolds from its middle (top and bottom edges spread apart, like the two bars sliding in) */
@keyframes ysUnfold { 0% { opacity: .5; clip-path: inset(46% -2% 46% -2%); transform: scale(1.03, .94); } 55% { opacity: 1; clip-path: inset(-4% -6% -4% -6%); transform: scale(1.01, 1.02); } 100% { clip-path: inset(-30% -30% -30% -30%); transform: none; } }
.modal:not([hidden]) > .set-card.ys { animation: ysUnfold .45s cubic-bezier(.2,.9,.3,1) both !important; }
@keyframes ysAvatarIn { 0% { opacity: 0; transform: rotate(-1.5deg) scale(.2) rotate(-25deg); } 70% { opacity: 1; transform: rotate(-1.5deg) scale(1.08); } 100% { transform: rotate(-1.5deg) scale(1); } }
.modal:not([hidden]) .set-card.ys .set-joker { animation: ysAvatarIn .5s .25s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes ysRibbonUp { 0% { opacity: 0; transform: translateY(40px) rotate(-3deg) scale(.8); } 70% { opacity: 1; transform: translateY(-4px) rotate(-3deg) scale(1.04); } 100% { transform: rotate(-3deg); } }
.modal:not([hidden]) .set-card.ys .ys-return { animation: ysRibbonUp .45s .4s cubic-bezier(.2,1.3,.4,1) both; }
.modal:not([hidden]) .set-card.ys .ys-id { animation: ysFade .3s .45s both; }
.modal:not([hidden]) .set-card.ys .set-body > :not(.ys-hidden) { animation: ysRise .35s calc(.3s + var(--i, 0) * .06s) cubic-bezier(.2,1.2,.4,1) both; }
@keyframes ysSlideR { 0% { opacity: 0; transform: translateX(60%); } 70% { opacity: 1; transform: translateX(-3%); } 100% { transform: none; } }
.modal:not([hidden]) .set-card.ys .ys-pass:not([hidden]) { animation: ysSlideR .45s .5s cubic-bezier(.2,1.2,.4,1) both; }
.modal:not([hidden]) .set-card .close-x { animation: ysPop .35s .35s both; }
/* light sweeping across the "Settings" title on open */
.set-card.ys .ys-shine { position: absolute; left: 33%; top: 7%; width: 34%; height: 22%; pointer-events: none; overflow: hidden; border-radius: 40px; z-index: 2; }
.set-card.ys .ys-shine::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); }
@keyframes ysShine { 0% { left: -40%; } 100% { left: 130%; } }
.modal:not([hidden]) .set-card.ys .ys-shine::before { animation: ysShine .9s .5s ease-in-out both; }
/* the sound pill and the chosen music button breathe softly */
@keyframes ysGlow { 50% { box-shadow: 0 4px 10px rgba(0,0,0,.45), 0 0 18px rgba(255,140,210,.85), inset 0 2px 0 rgba(255,255,255,.6); } }
.set-card.ys .ys-pill[aria-pressed="true"] { animation: ysGlow 2.4s ease-in-out infinite; }

/* Help: the kiosk pops, the host leans in from the left */
.modal:not([hidden]) > .help-card { animation: ysPop .4s cubic-bezier(.2,1.3,.4,1) both !important; }
@keyframes ysHostIn { 0% { opacity: 0; transform: translateX(-35%) rotate(-8deg); } 70% { opacity: 1; transform: translateX(3%) rotate(1.5deg); } 100% { transform: none; } }
.modal:not([hidden]) .help-host { animation: ysHostIn .55s .12s cubic-bezier(.2,1.2,.4,1) both; transform-origin: 60% 100%; }

/* Language: the wagon pops, suits float around it, flag buttons drop in one by one */
.modal:not([hidden]) > .lang-card { animation: ysPop .42s cubic-bezier(.2,1.35,.4,1) both !important; }
.modal:not([hidden]) .lang-card .lang { animation: ysRise .35s calc(.25s + var(--i, 0) * .07s) cubic-bezier(.2,1.3,.4,1) both; }
.lang-card { position: relative; }
.ys-float { position: absolute; z-index: 3; font-style: normal; font-size: clamp(22px, 3vw, 38px); width: 1.4em; height: 1.8em; display: grid; place-items: center; border-radius: 5px;
  background: linear-gradient(#fffaf0, #e9dcc0); box-shadow: 0 4px 10px rgba(0,0,0,.45); pointer-events: none; animation: ysFloat 3.4s ease-in-out infinite; }
.ys-float.f0 { left: -3%; top: 30%; color: #222; --r: -18deg; } .ys-float.f1 { right: -3%; top: 52%; color: #d0203a; --r: 14deg; animation-delay: -1.2s; }
.ys-float.f2 { left: 4%; bottom: 8%; color: #d0203a; --r: 10deg; animation-delay: -2s; } .ys-float.f3 { right: 3%; top: 14%; color: #222; --r: -12deg; animation-delay: -.6s; }
@keyframes ysFloat { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-10px) rotate(calc(var(--r) * -.6)); } }

/* APP and the bonus wheel pop too */
.modal:not([hidden]) > .mini-card { animation: ysPop .4s cubic-bezier(.2,1.35,.4,1) both; }

/* Betting cabinet: zooms in, neon title flickers, bulbs chase down both sides, summary like the reference */
@keyframes ysCab { 0% { opacity: 0; transform: scale(.9); } 70% { opacity: 1; transform: scale(1.02); } 100% { transform: none; } }
body.skin-panel-history #betting:not([hidden]) { animation: ysCab .4s cubic-bezier(.2,1.2,.4,1) both !important; }
#betting:not([hidden]) .ys-bulbs { position: absolute; top: 18%; bottom: 20%; width: 1.2%; min-width: 8px; pointer-events: none; z-index: 2;
  background: radial-gradient(circle, #fff 0 28%, rgba(255,240,180,.9) 32%, transparent 60%) center top / 100% 6.5% repeat-y; filter: drop-shadow(0 0 4px #fff6c0); animation: ysChase .8s steps(2) infinite; }
#betting .ys-bulbs.l { left: 7.4%; } #betting .ys-bulbs.r { right: 7.4%; animation-delay: -.4s; }
@keyframes ysChase { 0% { background-position: center 0; } 100% { background-position: center 6.5%; opacity: .75; } }
#betting:not(.skin-on) .ys-bulbs { display: none; }
body.skin-panel-history #betting .ys-bulbs { display: block; }
@keyframes ysNeon { 0%, 18%, 22%, 62%, 64%, 100% { filter: none; } 20%, 63% { filter: brightness(1.6) drop-shadow(0 0 10px #6ef2ff); } }
body.skin-panel-history #betting:not([hidden]) { animation: ysCab .4s cubic-bezier(.2,1.2,.4,1) both, ysNeon 3.2s 1s linear infinite !important; }
#histSum { display: inline-flex; gap: 16px; padding: 6px 14px; border-radius: 6px; background: rgba(4,10,40,.65); box-shadow: inset 0 0 0 1px rgba(110,200,255,.5); font-weight: 700; }
#histSum .q { color: #ffd84a; } #histSum .b { color: #6ef2ff; } #histSum .t.w { color: #5aff8a; } #histSum .t.l { color: #ff7a7a; }
.modal:not([hidden]) .hist tbody tr, body.skin-panel-history #betting:not([hidden]) .hist tbody tr { animation: ysRise .3s both; }

@media (prefers-reduced-motion: reduce) {
  .modal:not([hidden]), .modal:not([hidden]) > *, .modal:not([hidden]) *, #betting:not([hidden]), #betting .ys-bulbs, .ys-float { animation: none !important; }
}

/* ===================== Announcement bar like the reference: gold speaker, plain bold white text, thin dark strip ===================== */
body.skin-trumpet[data-view="lobby"] .notice { border-radius: 3px; padding: 0 16px 0 10px; gap: 12px; background: linear-gradient(90deg, rgba(8,4,26,.15), rgba(8,4,26,.72) 6%, rgba(8,4,26,.72) 94%, rgba(8,4,26,.15));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 -1px 0 rgba(255,255,255,.05); border: 0; }
body.skin-trumpet .notice > svg { width: 0; height: 0; }
body.skin-trumpet .notice::before { content: ""; flex: none; width: clamp(30px, 4.4vh, 40px); aspect-ratio: 1; background: url("art/lobby/speaker.png") center / contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); animation: ysSpeak 1.6s ease-in-out infinite; transform-origin: 30% 50%; }
@keyframes ysSpeak { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12) rotate(-4deg); } 24% { transform: scale(1); } }
body.skin-trumpet[data-view="lobby"] .ticker-track { font: 700 clamp(.9rem, 2.5vh, 1.2rem)/1 "Helvetica Neue", Arial, sans-serif !important; letter-spacing: 0; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.85); gap: 50vw; }
@media (prefers-reduced-motion: reduce) { body.skin-trumpet .notice::before { animation: none; } }

/* ===================== Opening screen ===================== */
.splash { position: fixed; inset: 0; z-index: 300; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 50% 30%, #4a1a8a, #1a0636 60%, #0a0218); display: grid; place-items: center; }
.splash.sp-out { animation: spOut .6s ease-in forwards; }
@keyframes spOut { to { opacity: 0; transform: scale(1.08); filter: brightness(1.6); } }
.sp-lights { position: absolute; left: -5%; right: -5%; top: -14vh; height: 30vh; border-radius: 0 0 50% 50%; border-bottom: 3px solid #e8b8ff;
  background: radial-gradient(ellipse at 50% 100%, rgba(200,120,255,.45), transparent 70%); box-shadow: 0 0 40px rgba(220,150,255,.6); z-index: 2; }
.sp-lights::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 2.2vh; height: 12px;
  background: radial-gradient(circle, #fff 0 3px, rgba(255,230,255,.6) 4px, transparent 7px) 0 0 / 7.5% 12px repeat-x; animation: spBulbs 1s steps(2) infinite; }
@keyframes spBulbs { 50% { opacity: .55; } }
.sp-stage { position: absolute; inset: 0; perspective: 900px; perspective-origin: 50% 45%; z-index: 0; }
.sp-wall { position: absolute; left: 50%; top: 52%; width: 0; height: 0; transform-style: preserve-3d; transform: translateZ(620px); animation: spPan 9s ease-in-out infinite alternate; }
@keyframes spPan { from { transform: translateZ(620px) rotateY(-4deg); } to { transform: translateZ(620px) rotateY(4deg); } }
.sp-tile { position: absolute; width: 150px; height: 230px; margin: calc(-245px + var(--row) * 250px) 0 0 -75px; border-radius: 8px; overflow: hidden;
  transform: rotateY(var(--a)) translateZ(-900px); background: #2a1050; box-shadow: 0 0 0 2px rgba(255,220,140,.45), 0 10px 30px rgba(0,0,0,.6); filter: brightness(.62) saturate(1.1); }
.sp-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-glow { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 45% 40% at 50% 46%, rgba(255,200,90,.28), transparent 70%), linear-gradient(transparent 70%, rgba(10,2,24,.92)); }
.sp-logo { position: relative; z-index: 3; width: min(52vw, 560px); margin-top: -10vh; animation: spLogo .9s cubic-bezier(.2,1.4,.4,1) both, spPulse 2.4s 1s ease-in-out infinite; }
.sp-logo img { width: 100%; display: block; filter: drop-shadow(0 8px 20px rgba(0,0,0,.6)) drop-shadow(0 0 24px rgba(255,190,60,.55)); }
.sp-logo b { display: block; text-align: center; font: 800 clamp(3rem, 10vw, 7rem)/1 var(--display, Impact, sans-serif); color: #ffd84a; -webkit-text-stroke: 3px #7a3a00; paint-order: stroke fill; }
@keyframes spLogo { 0% { opacity: 0; transform: scale(.3) translateY(-30px); } 100% { opacity: 1; transform: none; } }
@keyframes spPulse { 50% { transform: scale(1.03); filter: brightness(1.12); } }
.sp-coins { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.sp-coins i { position: absolute; left: calc(50% + var(--x)); top: calc(42% + var(--y)); width: calc(54px * var(--s)); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff6c0, #ffd23a 35%, #e09000 70%, #8a5000); box-shadow: inset 0 0 0 calc(4px * var(--s)) #c07800, 0 6px 14px rgba(0,0,0,.45), 0 0 18px rgba(255,200,60,.5);
  animation: spCoin 2.2s var(--d) ease-in-out infinite; }
.sp-coins i b { font: 800 calc(28px * var(--s))/1 Georgia, serif; color: #b86a00; text-shadow: 0 1px 0 #fff3b0; }
@keyframes spCoin { 0%, 100% { transform: translateY(0) rotateY(0) rotate(-10deg); } 50% { transform: translateY(-16px) rotateY(160deg) rotate(10deg); } }
.sp-bottom { position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%); width: min(70vw, 860px); z-index: 5; display: grid; gap: 10px; justify-items: center; }
.sp-tip { font: 600 clamp(.85rem, 2.2vh, 1.1rem)/1.2 "Helvetica Neue", Arial, sans-serif; color: #fff; text-shadow: 0 1px 3px #000; }
.sp-bar { position: relative; width: 100%; height: clamp(18px, 3.2vh, 26px); border-radius: 999px; overflow: hidden; background: #0a1440; box-shadow: inset 0 0 0 2px #4a7ad8, 0 0 0 2px #0a0a30, 0 4px 14px rgba(0,0,0,.5); }
.sp-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: linear-gradient(#7ac8ff, #3a6ae8 55%, #2a3ab8); box-shadow: inset 0 2px 0 rgba(255,255,255,.4); }
.sp-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 62%) 0 0 / 200px 100%; animation: spBarShine 1.1s linear infinite; }
@keyframes spBarShine { from { background-position: -200px 0; } to { background-position: 200px 0; } }
.sp-bar span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 clamp(.8rem, 2vh, 1rem)/1 "Helvetica Neue", Arial, sans-serif; color: #fff; text-shadow: 0 1px 2px #000; }
@media (max-width: 700px) { .sp-tile { width: 110px; height: 170px; margin: calc(-180px + var(--row) * 185px) 0 0 -55px; } .sp-logo { width: 78vw; } .sp-bottom { width: 88vw; } }
@media (prefers-reduced-motion: reduce) { .splash *, .splash { animation: none !important; } }

/* announcement bar: a small gap under the gold line (like the reference) and the speaker fits inside the strip */
body.skin-trumpet[data-view="lobby"] .notice { top: calc(env(safe-area-inset-top, 0px) + 15.4vh); overflow: hidden; }
body.skin-trumpet .notice::before { width: auto; height: 78%; max-height: 30px; }

/* ===================== Login like the reference (landscape: works on desktop and turned phones) ===================== */
.login.yl { place-items: stretch; padding: 0; background: radial-gradient(ellipse 70% 60% at 58% 28%, #4a1a8a, #1c0838 60%, #0c0320); }
.login.yl .rain { z-index: 3; }
.login.yl::before { z-index: 1; }
.lg-wall { position: absolute; left: 0; right: 0; top: 0; height: 64%; display: grid; grid-template-rows: 1fr 1fr; gap: 1.2vh; padding: 1.2vh 0; overflow: hidden; z-index: 0;
  opacity: .5; -webkit-mask: linear-gradient(#000 55%, transparent); mask: linear-gradient(#000 55%, transparent); }
.lg-wall .r { display: flex; gap: .8vw; height: 100%; width: max-content; animation: lgDrift 70s linear infinite; }
.lg-wall .r2 { animation-direction: reverse; animation-duration: 90s; }
.lg-wall img { height: 100%; aspect-ratio: 360 / 560; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,220,140,.35); }
@keyframes lgDrift { to { transform: translateX(-50%); } }
.lg-host { position: absolute; left: 0; bottom: 0; height: 97%; max-width: 42vw; object-fit: contain; object-position: left bottom; z-index: 4; pointer-events: none;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); animation: lgHost .8s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes lgHost { from { opacity: 0; transform: translateX(-18%); } }
.login.yl .login-card { position: absolute; z-index: 5; left: 58%; top: 3vh; width: min(52vw, 700px); transform: translateX(-50%); gap: 2.6vh; }
.login.yl .login-logo { font-size: clamp(2.4rem, 9vh, 5rem); }
.login.yl .login-logo.has-img::before { display: none; }
.login.yl .login-logo img { width: min(32vw, 440px); display: block; margin: auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,.6)) drop-shadow(0 0 20px rgba(255,190,60,.45)); animation: spLogo .9s cubic-bezier(.2,1.4,.4,1) both; }
.login.yl .login-form { background: rgba(10,4,30,.62); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 2.4vh 2.2vw; gap: 1.2vh; box-shadow: 0 10px 40px rgba(0,0,0,.5); animation: ysRise .5s .25s both; }
.lg-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.8vh 1.6vw; align-items: center; }
.login.yl .login-form input:not([type="checkbox"]) { height: clamp(40px, 8vh, 58px); border-radius: 6px; border: 1px solid rgba(255,255,255,.16); background: #0d0a2c;
  font: 600 clamp(1rem, 2.8vh, 1.35rem)/1 "Helvetica Neue", Arial, sans-serif; color: #fff; padding: 0 16px; }
.login.yl .login-form input::placeholder { color: rgba(255,255,255,.45); }
.lg-rem { display: flex; align-items: center; gap: 10px; cursor: pointer; font: 700 clamp(.95rem, 2.6vh, 1.25rem)/1 "Helvetica Neue", Arial, sans-serif; color: #ffe27a; white-space: nowrap; }
.lg-rem input { position: absolute; opacity: 0; pointer-events: none; }
.lg-rem i { width: clamp(24px, 4.6vh, 32px); aspect-ratio: 1; border-radius: 5px; background: #0d0a2c; box-shadow: inset 0 0 0 2px #e8b830; display: grid; place-items: center; }
.lg-rem input:checked + i::after { content: "✔"; color: #ffd23a; font-size: 1.25em; text-shadow: 0 0 6px rgba(255,200,40,.8); }
.lg-ok { height: clamp(40px, 8vh, 58px); min-width: min(16vw, 200px); border: 0; cursor: pointer; font: 800 clamp(1.1rem, 3.4vh, 1.6rem)/1 "Helvetica Neue", Arial, sans-serif; color: #3a1a00;
  background: linear-gradient(#fff07a, #ffc21a 55%, #e09000); clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.lg-ok:hover { filter: brightness(1.08) drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.login.yl .login-note { margin: 0; font-size: clamp(.75rem, 2vh, .9rem); color: rgba(255,255,255,.65); text-align: center; }
/* local (nickname) login keeps working inside the same look */
.login.yl .login-form .row .btn.primary { background: linear-gradient(#fff07a, #ffc21a 55%, #e09000); color: #3a1a00; border: 0; font-weight: 800; }
.lg-lang { position: absolute; right: 2vw; top: 2vh; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(#2a1a6a, #14093a); color: #fff; font: 700 clamp(.75rem, 2vh, .95rem)/1 "Helvetica Neue", Arial, sans-serif; cursor: default; }
.lg-lang span { font-size: 1.4em; }
.lg-ver { position: absolute; right: 2vw; bottom: 1.6vh; z-index: 6; font: 600 clamp(.7rem, 1.8vh, .85rem)/1 "Helvetica Neue", Arial, sans-serif; color: rgba(255,255,255,.55); }
@media (max-aspect-ratio: 1/1) { .lg-host { opacity: .35; } .login.yl .login-card { left: 50%; width: 92vw; } .login.yl .login-logo img { width: 70vw; } }
@media (prefers-reduced-motion: reduce) { .lg-wall .r, .lg-host, .login.yl .login-logo img, .login.yl .login-form { animation: none !important; } }

/* ===================== Profile picture picker + message (like the reference) ===================== */
.set-card.ys .ys-avbtn { position: absolute; left: 24.6%; top: 49%; width: clamp(28px, 3.4vw, 42px); aspect-ratio: 1; border-radius: 50%; border: 2px solid #fff; cursor: pointer; z-index: 3;
  background: radial-gradient(circle at 50% 36%, #fff 0 18%, transparent 19%), radial-gradient(ellipse 34% 26% at 50% 80%, #fff 0 98%, transparent 100%), linear-gradient(#ff7ad8, #c03aa8);
  box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.modal:not([hidden]) .set-card.ys .ys-avbtn { animation: ysPop .35s .55s both; }
.av-modal, .ys-msg { z-index: 85; }
.av-card { position: relative; width: min(900px, 94vw); padding: 7vh 2.4vw 4vh; border-radius: 18px; display: grid; justify-items: center; gap: 2.6vh;
  background: linear-gradient(160deg, #5a1ec8, #3a10a0 60%, #2a0a7a); box-shadow: inset 0 0 0 3px #b98af8, inset 0 0 0 7px #6a2ad0, 0 20px 60px rgba(0,0,0,.6); }
.modal:not([hidden]) > .av-card { animation: ysPop .4s cubic-bezier(.2,1.35,.4,1) both; }
.av-card h2 { position: absolute; top: -.6em; left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; font: 800 clamp(1.6rem, 6vh, 2.8rem)/1 var(--display, var(--body));
  background: linear-gradient(#ffd6f6, #ff8ad8 55%, #c06aff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 3px 0 #3a0a6a) drop-shadow(0 0 10px rgba(255,120,220,.6)); }
.av-card .close-x { position: absolute; right: 10px; top: 4px; font-size: 2.4rem; color: #fff; background: none; border: 0; cursor: pointer; text-shadow: 0 2px 4px #000; }
.av-grid { width: 100%; max-height: 52vh; overflow: auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.6vh 1.2vw; padding: 1.6vh 1vw; border-radius: 12px; background: rgba(10,4,40,.45); box-shadow: inset 0 0 0 2px rgba(185,138,248,.5); }
.av { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: #222; box-shadow: 0 4px 10px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.25); }
.modal:not([hidden]) .av { animation: ysRise .3s calc(.15s + var(--i) * .03s) both; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s; }
.av:hover img { transform: scale(1.06); }
.av.on { box-shadow: 0 0 0 3px #6aff8a, 0 0 16px #6aff8a; }
.av.on::after { content: "✔"; position: absolute; right: 6%; bottom: 6%; width: 32%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #1fb84a; color: #fff; font-weight: 800; box-shadow: 0 0 0 2px #fff; }
.av-save, .ysm-ok { min-width: min(240px, 50%); height: clamp(42px, 8vh, 56px); border: 0; cursor: pointer; font: 800 clamp(1.1rem, 3.4vh, 1.5rem)/1 "Helvetica Neue", Arial, sans-serif; color: #3a1a00;
  background: linear-gradient(#fff07a, #ffc21a 55%, #e09000); border-radius: 999px; box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 4px 10px rgba(0,0,0,.45); }
.ysm-card { position: relative; width: min(460px, 90vw); padding: 2.2vh 26px 3vh; border-radius: 10px; display: grid; justify-items: center; gap: 2vh; text-align: center;
  background: linear-gradient(#2a3aa8, #1a2070); box-shadow: inset 0 0 0 2px #6a9aff, 0 18px 50px rgba(0,0,0,.6); }
.modal:not([hidden]) > .ysm-card { animation: ysPop .35s cubic-bezier(.2,1.35,.4,1) both; }
.ysm-card h3 { margin: 0; font: 800 1.2rem/1 "Helvetica Neue", Arial, sans-serif; color: #fff; }
.ysm-card p { margin: 0; color: #e8eeff; font: 500 1rem/1.4 "Helvetica Neue", Arial, sans-serif; }
.ysm-card .close-x { position: absolute; right: 8px; top: 2px; font-size: 1.8rem; color: #fff; background: none; border: 0; cursor: pointer; }
.ysm-ok { min-width: 160px; height: 44px; clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%); border-radius: 0; }
@media (max-width: 480px) { .av-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-height: 500px) { .av-card { padding-top: 6vh; gap: 2vh; } .av-grid { max-height: 58vh; } }

/* ===================== Betting: game picker grid ===================== */
.bt-hide { display: none !important; }
.bt-pick { display: inline-flex; align-items: center; gap: 10px; min-width: 150px; justify-content: space-between; padding: 7px 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid rgba(110,200,255,.6); background: #0e1a5a; color: #fff; font: 600 .9rem/1 "Helvetica Neue", Arial, sans-serif; }
.bt-pick i { font-style: normal; color: #6ef2ff; }
.bt-panel { position: absolute; z-index: 6; left: 13.5%; width: 73%; top: 33%; height: 33%; display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 10px; border-radius: 8px;
  background: rgba(10,16,70,.97); box-shadow: inset 0 0 0 1px rgba(110,200,255,.55), 0 10px 30px rgba(0,0,0,.6); animation: ysRise .25s both; }
.bt-panel[hidden] { display: none; }
body:not(.skin-panel-history) .bt-panel { position: relative; left: auto; top: auto; width: auto; height: 260px; margin: 8px 0; }
.bt-cats { display: grid; align-content: start; gap: 6px; }
.bt-cats button { padding: 8px 10px; border-radius: 6px; border: 0; cursor: pointer; text-align: left; font: 700 .9rem/1 "Helvetica Neue", Arial, sans-serif; color: #12306a; background: #cfe9ff; }
.bt-cats button.on { background: #6ef2ff; box-shadow: 0 0 10px #6ef2ff; }
.bt-grid { overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; align-content: start; }
.bt-g { position: relative; padding: 0; border: 0; cursor: pointer; border-radius: 8px; overflow: hidden; aspect-ratio: 360 / 440; background: linear-gradient(#3a2a8a, #1a0a4a); box-shadow: 0 0 0 1px rgba(255,220,140,.45); }
.bt-g img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.bt-g b { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 4px; font: 700 .7rem/1.1 "Helvetica Neue", Arial, sans-serif; color: #fff; background: rgba(0,0,0,.65); }
.bt-g.all { display: grid; place-items: center; } .bt-g.all b { position: static; background: none; font-size: .85rem; }
.bt-g:hover { box-shadow: 0 0 0 2px #6ef2ff; }
.bt-none { color: #bcd; font-size: .9rem; }
/* login: keep the hostess and the form apart on short landscape screens (turned phones) */
.lg-host { height: 92%; max-width: 33vw; }
.login.yl .login-card { left: 63%; width: min(56vw, 700px); }
@media (max-height: 500px) { .login.yl .login-card { top: 1.5vh; gap: 1.6vh; } .login.yl .login-logo img { width: min(28vw, 300px); } .login.yl .login-note { display: none; } }

/* ===================== App-like touch (like the reference): the screen never slides, bounces or zooms under a finger ===================== */
html { overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
html, body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
img, svg, canvas, a { -webkit-user-drag: none; user-drag: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* game pages and the lobby screen stay put; lists that really scroll (games row, history, rules, avatars) scroll inside themselves */
html:has(body.game-page), body.game-page { position: fixed; inset: 0; overflow: hidden; touch-action: none; overscroll-behavior: none; }
html:has(body[data-view="lobby"]), body[data-view="lobby"] { overflow: hidden; touch-action: none; overscroll-behavior: none; }
.tiles { touch-action: pan-x; }
.hist-wrap, .av-grid, .bt-grid, .tt-rules, .lang-list, .set-body, .help-panel, .pw-screen, .wheel-card, .table .scroll { touch-action: pan-x pan-y; }
/* game buttons react instantly (no 300 ms wait for a double-tap) */
button, [role="button"], .tile { touch-action: manipulation; }

/* ===================== lobby: mixed rows like the reference =====================
   The first six games of a long list are tall posters; the rest are smaller tiles stacked two high,
   so more games fit on one screen as you scroll (the reference lobby does the same). */
body.skin-navbar[data-view="lobby"] .tiles { --rg: 12px; grid-template-rows: repeat(2, calc((var(--ph) - var(--rg)) / 2)); row-gap: var(--rg); }
body.skin-navbar[data-view="lobby"] .tiles .tile { grid-row: span 2; }
body.skin-navbar[data-view="lobby"] .tiles .tile.sm { grid-row: span 1; }
.tiles .tile.sm .art .poster-img { object-position: 50% 82%; }
.tiles .tile.sm .hot { transform: scale(.8); transform-origin: 0 100%; }
.tiles .tile.sm .rtp, .tiles .tile.sm .hd { display: none; }
.tiles .tile.sm .title, .tiles .tile.sm.big .title { font-size: clamp(.8rem, calc(var(--ph) * .05), 1.1rem); bottom: 6px; }
#histBody td.copyid { cursor: pointer; text-decoration: underline dotted rgba(255,255,255,.45); text-underline-offset: 3px; }
#histBody td.copyid:active { color: #ffd45e; }

/* ===================== sizes measured from the reference on a phone (share of screen height) =====================
   logo 8.9% tall, avatar 10.2%, top icons 6.4%, bottom-menu icons 9%, bottom-menu labels 12.5% x 3%. */
body.skin-logo .brand .skin-logo { height: 10.8vh !important; } /* letters fill 86% of the picture: letters end up 8.9% like the reference */
body header.top .avatar, body #avatar { width: 9.7vh !important; height: 9.7vh !important; }
body header.top .icons .skin-icon { width: 7vh !important; height: 7vh !important; }
body nav.bottom button:not(.wheel-btn) .skin-icon { width: 9vh !important; height: 9vh !important; }
body.skin-navbar nav.bottom .lbl { min-width: 12.5vh !important; width: 12.5vh !important; height: 3vh !important; font-size: 3.2vh !important; line-height: 3vh !important; padding: 0 !important; box-sizing: border-box; overflow: visible; white-space: nowrap; }

/* ===================== second pass against the reference on a phone ===================== */
/* category pages (Favorites, Slots, Fish, Other): no left banner, posters start at the left edge */
body[data-cat]:not([data-cat="all"]) .lobby .carousel { display: none !important; }
/* empty Favorites: a help card (the reference explains the star instead of showing nothing) */
#tiles .fav-help { grid-row: 1 / -1; grid-column: span 12; align-self: center; justify-self: center; display: flex; gap: 4vh; align-items: center;
  margin: auto; padding: 4vh 6vh; border-radius: 2.4vh; background: linear-gradient(#5a2a9a, #321060); border: .4vh solid #b87aff; box-shadow: 0 0 0 .4vh #2a0a50, 0 2vh 4vh rgba(0,0,0,.5); color: #fff; }
#tiles .fav-help .fh-pic { font-size: 18vh; line-height: 1; color: #ffd45e; filter: drop-shadow(0 .6vh 1vh rgba(0,0,0,.5)); }
#tiles .fav-help p { margin: 1.4vh 0; font-size: 3vh; line-height: 1.35; }
#tiles .fav-help .fh-star { color: #8a7a4a; font-size: 3.6vh; } #tiles .fav-help .fh-star.on { color: #ffd45e; }
/* betting record: big, easy-to-read text like the reference */
body.skin-panel-history #betting .hist th { font-size: 2.9vh !important; padding: 1.2vh 1.4vh !important; letter-spacing: 0; text-transform: none; color: #9fd8ff; }
body.skin-panel-history #betting .hist td { font-size: 2.8vh !important; padding: 1.1vh 1.4vh !important; }
body.skin-panel-history #betting .hist td small { font-size: 2vh; }
body.skin-panel-history #betting .hist .empty { font-size: 4.4vh !important; color: #8fe0ff; padding: 10vh 2vh !important; font-weight: 800; }
body.skin-panel-history #betting #histGame, body.skin-panel-history #betting #histDay { font-size: 2.8vh; height: 5vh; }
/* without the banner the game row takes the whole width */
body[data-cat]:not([data-cat="all"]) .lobby #tiles { grid-column: 1 / -1; }
/* the Favorites help card sits in the middle of the screen */
#tiles:has(.fav-help) { display: flex; align-items: center; justify-content: center; overflow: visible; }
#tiles .fav-help { grid-column: auto; grid-row: auto; }
/* betting record: big text, but small enough that several rows fit in the machine screen */
body.skin-panel-history #betting .hist th { font-size: 2.1vh !important; padding: .8vh 1vh !important; }
body.skin-panel-history #betting .hist td { font-size: 2.1vh !important; padding: .7vh 1vh !important; }
body.skin-panel-history #betting .hist td small { display: none; }
body.skin-panel-history #betting .hist .empty { font-size: 3.4vh !important; padding: 6vh 2vh !important; }

/* ===================== login keyboard built into the page (phones), like the reference ===================== */
.vkb { position: absolute; z-index: 20; left: 58%; bottom: 3vh; transform: translateX(-50%); padding: 1.4vh 1.4vh 1.6vh; border-radius: 1.4vh;
  background: rgba(70, 40, 160, .82); border: .35vh solid #8f7bff; box-shadow: 0 1.5vh 4vh rgba(0,0,0,.55); display: grid; gap: 1.1vh; touch-action: manipulation; }
.vkb[hidden] { display: none; }
.vkb-row { display: flex; gap: .9vh; justify-content: center; }
.vkb-k { width: 8.6vh; height: 7.2vh; border: 0; border-radius: .9vh; padding: 0; color: #fff; font: 600 4vh/1 system-ui, sans-serif;
  background: linear-gradient(#4f8dff, #2a62e6); box-shadow: inset 0 .3vh 0 rgba(255,255,255,.35), 0 .45vh 0 #163c9a; cursor: pointer; }
.vkb-k.hit { transform: translateY(.35vh); box-shadow: inset 0 .3vh 0 rgba(255,255,255,.35), 0 .1vh 0 #163c9a; filter: brightness(1.2); }
.vkb-k.fn { background: linear-gradient(#5fd0ff, #2a9ee6); font-size: 3.2vh; }
.vkb-k.fn-go { width: 15vh; font-size: 4vh; font-weight: 800; }
.vkb-k.fn-sym, .vkb-k.fn-abc { width: 9.6vh; }
.vkb-k.fn-shift.on { background: linear-gradient(#ffe06a, #f0a81a); color: #5a2a00; }
.login .vkb-target { box-shadow: 0 0 0 .4vh #ffd45e, 0 0 2vh rgba(255,212,94,.6) !important; }
/* with the keyboard open the boxes stay where they are; the keyboard fills the lower part */
.login.vkb-open .login-note { visibility: hidden; }
/* Settings: about 10% bigger, so the panel and its buttons are as large on the phone as the reference's */
#setModal > .set-card.ys { zoom: 1.1; }
/* close buttons on every panel: a big bold white ✕ like the reference */
.modal .close-x, #betting .close-x, .modal [aria-label="Close"] { width: 9vh !important; height: 9vh !important; font: 900 8vh/1 system-ui, sans-serif !important; color: #fff !important;
  background: none !important; border: 0 !important; text-shadow: 0 0 .4vh #6a3cff, 0 0 1.2vh #6a3cff, 0 .4vh .6vh rgba(0,0,0,.6) !important; display: grid; place-items: center; padding: 0 !important; }

/* ===================== lobby life, matched to the reference recording =====================
   (searchlights in the sky, a shine across the logo with twinkling stars, a glowing selected menu button,
   the wheel countdown, the APP hand waving) */
.lobby { position: relative; }
.searchlights { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.searchlights i { position: absolute; bottom: 30%; width: 7vh; height: 75vh; transform-origin: 50% 100%;
  background: linear-gradient(to top, rgba(255,255,255,.28), rgba(220,200,255,.12) 55%, transparent);
  clip-path: polygon(40% 100%, 60% 100%, 100% 0, 0 0); filter: blur(.4vh); mix-blend-mode: screen; }
.searchlights i:nth-child(1) { left: 58%; animation: slSwing 7s ease-in-out infinite alternate; }
.searchlights i:nth-child(2) { left: 76%; animation: slSwing 9s ease-in-out -4s infinite alternate-reverse; opacity: .8; }
@keyframes slSwing { from { transform: rotate(-24deg); } to { transform: rotate(20deg); } }
.lobby > *:not(.searchlights) { position: relative; z-index: 1; }

.brand { position: relative; }
.brand .logo-shine { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  -webkit-mask: url("art/lobby/logo.png") center / contain no-repeat; mask: url("art/lobby/logo.png") center / contain no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.85) 48%, rgba(255,255,255,0) 58%) no-repeat;
  background-size: 250% 100%; animation: logoShine 3.6s ease-in-out infinite; }
@keyframes logoShine { 0%, 55% { background-position: 130% 0; } 100% { background-position: -40% 0; } }
.brand .logo-tw { position: absolute; inset: -20% -12%; pointer-events: none; z-index: 2; }
.brand .logo-tw b { position: absolute; width: 1.6vh; height: 1.6vh; background: radial-gradient(circle, #fff 0 18%, rgba(160,200,255,.9) 30%, transparent 70%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: twinkle 2.4s ease-in-out infinite; opacity: 0; }
.brand .logo-tw b:nth-child(1) { left: 8%; top: 20%; animation-delay: 0s; } .brand .logo-tw b:nth-child(2) { left: 88%; top: 12%; animation-delay: .6s; }
.brand .logo-tw b:nth-child(3) { left: 70%; top: 78%; animation-delay: 1.2s; } .brand .logo-tw b:nth-child(4) { left: 24%; top: 82%; animation-delay: 1.7s; }
.brand .logo-tw b:nth-child(5) { left: 96%; top: 55%; animation-delay: 2s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(45deg); } }
body:not(.skin-logo) .brand .logo-shine { display: none; }

/* selected bottom-menu button: soft glow pulsing under its icon */
nav.bottom button[aria-pressed="true"] .skin-icon, nav.bottom button[aria-pressed="true"] > svg { animation: navSel 1.4s ease-in-out infinite alternate; }
@keyframes navSel { from { filter: drop-shadow(0 0 .6vh rgba(255,120,240,.5)) drop-shadow(0 .3vh .3vh rgba(0,0,0,.4)); transform: scale(1); }
  to { filter: drop-shadow(0 0 2.2vh rgba(255,140,250,.95)) drop-shadow(0 0 1vh rgba(190,120,255,.9)); transform: scale(1.07); } }

/* wheel countdown in the bottom menu */
nav.bottom .wheel-btn .wcount { position: absolute; left: 50%; bottom: 4.6vh; transform: translateX(-50%); z-index: 4; font: 800 2.3vh/1 system-ui, sans-serif;
  color: #fff; background: rgba(20,6,50,.85); border-radius: .8vh; padding: .3vh .9vh; letter-spacing: .05em; white-space: nowrap; }
nav.bottom .wheel-btn .wcount:empty { display: none; }

/* APP icon: the hand taps the phone */
header.top #appBtn .skin-icon { animation: appTap 1.2s ease-in-out infinite; transform-origin: 70% 30%; }
@keyframes appTap { 0%, 60%, 100% { transform: rotate(0) translateY(0); } 70% { transform: rotate(-8deg) translateY(.4vh); } 80% { transform: rotate(4deg) translateY(-.2vh); } }

@media (prefers-reduced-motion: reduce) { .searchlights i, .brand .logo-shine, .brand .logo-tw b, nav.bottom button[aria-pressed="true"] .skin-icon, header.top #appBtn .skin-icon { animation: none !important; } }
/* searchlights live behind the whole lobby (in the sky between the top bar and the posters) */
.searchlights { position: fixed; inset: 0; z-index: 0; }
.searchlights i { bottom: 38%; height: 70vh; width: 9vh; }
body:not([data-view="lobby"]) .searchlights { display: none; }
.searchlights i { background: linear-gradient(to top, rgba(255,255,255,.5), rgba(225,205,255,.22) 55%, transparent); width: 11vh; }

/* ===================== game list, third pass against the reference (swipe recording) ===================== */
/* free glide: no snapping into place after a swipe (the reference stops wherever the swipe ends) */
#tiles, .tiles { scroll-snap-type: none !important; }
#tiles .tile { scroll-snap-align: none !important; }
/* small tiles: real gaps between them, the whole title visible, a thin gold frame, no badges */
body.skin-navbar[data-view="lobby"] .tiles { --rg: 3.6vh; column-gap: 3vh; }
.tiles .tile.sm .art .poster-img { object-position: 50% 100%; }
.tiles .tile.sm .hot, .tiles .tile.sm .newb, .tiles .tile.sm .hd, .tiles .tile.sm .pframe { display: none !important; }
.tiles .tile.sm .art { border-width: 0 !important; border-radius: .6vh !important; box-shadow: 0 0 0 .25vh #f6c445, 0 0 0 .45vh #7a3d00, 0 1vh 1.6vh rgba(0,0,0,.5) !important; }
.tiles .tile.sm::after { display: none !important; }
.tiles .tile.sm .fav { right: -1.4vh; bottom: -1.2vh; }
.tiles .tile.sm .art .poster-img { object-position: 50% 50%; }
/* thin gold divider between the left banner and the game list (as in the reference); placed by JS next to the banner */
.lobby-divider { position: absolute; width: .35vh; border-radius: .2vh; pointer-events: none; z-index: 3;
  background: linear-gradient(transparent, #ffe08a 15%, #d9a43a 50%, #ffe08a 85%, transparent); box-shadow: 0 0 .8vh rgba(255,210,90,.6); }
body[data-cat]:not([data-cat="all"]) .lobby-divider { display: none; }
.lobby > .lobby-divider { position: absolute !important; z-index: 3 !important; }

/* ===================== calmer, closer to the reference: live fire, gold "Hot", thin antique frames ===================== */
body .tile .hot, body.skin-badge-hot .tile .hot, body.skin-hot-fire.skin-badge-hot-text .tile .hot {
  background: none !important; animation: none !important; width: 9vh !important; height: 11vh !important; top: -7.4vh !important; left: -1.6vh !important;
  font: 900 3.6vh/1 "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif !important; letter-spacing: -.02em; padding: 0 !important; display: flex; align-items: flex-end; justify-content: center;
  color: transparent !important; background-image: none !important; -webkit-text-stroke: 0; text-shadow: none !important; }
body .tile .hot::before, body.skin-hot-fire.skin-badge-hot-text .tile .hot::before { content: none !important; }
.tile .hot .hot-fire { position: absolute; left: -10%; right: -10%; bottom: 1.6vh; height: 10vh; width: 120%; z-index: 0; pointer-events: none; }
.tile .hot::after { content: "Hot"; position: relative; z-index: 1; margin-bottom: .4vh;
  background: linear-gradient(#fff7c0, #ffd23c 45%, #f08a10); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 0 #6a2a00) drop-shadow(.15vh .15vh 0 #7a3000) drop-shadow(-.15vh -.15vh 0 #7a3000) drop-shadow(.15vh -.15vh 0 #7a3000) drop-shadow(-.15vh .15vh 0 #7a3000); }
.tiles .tile.sm .hot { display: none !important; }

/* thin antique-gold frame with small pointed corners (no red gems, no glowing outline) */
body.skin-navbar .tile:not(.sm) .pframe { border: .3vh solid #b8862e !important; box-shadow: inset 0 0 0 .2vh #3a2008, 0 0 0 .15vh #3a2008 !important; background: none !important; border-radius: .4vh !important; }
body.skin-navbar .tile:not(.sm) .pframe i { width: 1.6vh !important; height: 1.6vh !important; background: linear-gradient(135deg, #f0d08a, #a8741e 55%, #5a3a08) !important; border-radius: 0 !important; }
body.skin-navbar .tile:not(.sm) .pframe i::after { content: none !important; }
body.skin-navbar .tile:not(.sm) .art { box-shadow: 0 1vh 1.6vh rgba(0,0,0,.5) !important; border: 0 !important; }
body.skin-navbar[data-view="lobby"] .tiles .tile:first-child::after { display: none !important; }
body.skin-navbar[data-view="lobby"] .tiles .tile:first-child .art { animation: none !important; box-shadow: 0 1vh 1.6vh rgba(0,0,0,.5) !important; }
/* calmer pictures: a little less saturation and shine, closer to the reference's darker posters */
#tiles .tile .art .poster-img { filter: saturate(.86) brightness(.93) contrast(1.02); }
body .tile .hot, body.skin-badge-hot .tile .hot, body.skin-hot-fire.skin-badge-hot-text .tile .hot { text-transform: none !important; font-size: 4.4vh !important; width: 10vh !important; height: 13vh !important; top: -9.4vh !important; left: -2.2vh !important; }
.tile .hot .hot-fire { left: 5%; width: 90%; bottom: 2.2vh; height: 12vh; }
.tile .hot .hot-fire { left: -15%; width: 130%; bottom: 0; height: 15vh; }
.tile .hot .hot-fire { left: -20%; width: 140%; bottom: -.5vh; height: 19vh; }
body.skin-navbar[data-view="lobby"] .tiles { padding-top: calc(clamp(26px, 6vh, 50px) + 7vh) !important; margin-top: -7vh !important; }
.tile .hot .hot-fire { left: -45%; width: 190%; bottom: -.5vh; height: 16vh; }
.tile .hot .hot-fire { left: -30%; width: 160%; bottom: .6vh; height: 13vh; }
.tile .hot .hot-fire { filter: blur(.12vh) drop-shadow(0 0 .8vh rgba(255,120,30,.7)); }
/* NEW badge in the top-right corner (it covered the titles of the new posters) */
body .tile .newb, body.skin-badge-new .tile .newb { top: .8vh !important; right: .8vh !important; bottom: auto !important; transform: none !important; }
body.skin-badge-vertical .tile .vbadge { z-index: 2; }
/* the new posters are already calm: no extra dimming */
#tiles .tile .art .poster-img { filter: none !important; }
/* banners: the game's picture filling the card, a short italic caption at the top (the reference's style) */
.carousel .banner .bn-art.pic { position: absolute; inset: 0; }
.carousel .banner .bn-art.pic .bn-pic { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.carousel .banner.pic .big, .carousel .banner.pic p { display: none !important; }
.carousel .banner .bn-cap { display: none; }
.carousel .banner.pic .bn-cap { display: block; position: absolute; left: 6%; right: 6%; top: 5%; z-index: 3; text-align: left; transform: rotate(-6deg);
  font: italic 800 3.1vh/1.15 "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif; color: #fff;
  text-shadow: 0 0 .5vh #1a6cff, 0 .2vh .4vh #003a9a, .15vh .15vh 0 #0b3a8a, -.15vh -.15vh 0 #0b3a8a; }

/* ===================== login screen, matched to the reference on a phone ===================== */
/* rounded purple boxes with big white text */
.login.yl #accInput, .login.yl #pwInput { height: 9vh !important; border-radius: 1.8vh !important; background: rgba(40,16,64,.92) !important; border: .3vh solid #7a5aa8 !important;
  color: #fff !important; font: 500 4.2vh/1 system-ui, "Helvetica Neue", Arial, sans-serif !important; padding: 0 2.4vh !important; box-shadow: inset 0 .4vh 1vh rgba(0,0,0,.45) !important; }
.login.yl #accInput::placeholder, .login.yl #pwInput::placeholder { color: rgba(255,255,255,.45); font-size: 3.4vh; }
.login.yl #pwInput { letter-spacing: .3em; }
.login .vkb-target { border-color: #c9a2ff !important; box-shadow: inset 0 .4vh 1vh rgba(0,0,0,.45), 0 0 1.6vh rgba(190,140,255,.7) !important; }
/* remember: a big purple box with a gold tick and a glowing pink label */
.login.yl .lg-rem { font: 800 4vh/1 "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif !important; color: #ff9cf2 !important;
  text-shadow: 0 0 .8vh rgba(255,90,230,.8), 0 .2vh 0 #5a0a5a; gap: 1.4vh; }
.login.yl .lg-rem i { width: 6vh !important; height: 6vh !important; border-radius: .8vh !important; background: linear-gradient(#3a1a6a, #24084e) !important; box-shadow: inset 0 0 0 .3vh #8a6ad0 !important; }
.login.yl .lg-rem input:checked + i::after { font-size: 5.4vh !important; line-height: 1; color: #ffd23a !important; text-shadow: 0 .3vh 0 #b06a00, 0 0 1vh rgba(255,200,40,.8) !important; }
/* OK: the yellow slanted button, a little larger */
.login.yl .lg-ok { height: 9vh !important; min-width: 26vh !important; font-size: 4.2vh !important; }
/* language pill: bigger, with a round flag */
.lg-lang { padding: .8vh 4vh .8vh .8vh !important; font: 800 3.2vh/1 system-ui, sans-serif !important; gap: 2.4vh !important;
  background: linear-gradient(#6a3ab8, #3a1478) !important; border: .3vh solid #a77aff !important; color: #fff !important; }
.lg-lang span { width: 7vh; height: 7vh; border-radius: 50%; display: grid; place-items: center; font-size: 5vh !important; line-height: 1; background: #fff; box-shadow: 0 0 0 .4vh #8a5ae0; overflow: hidden; }
/* the keyboard sits right under the boxes */
.vkb { top: 52vh; bottom: auto; }
.login.yl #pwInput[type="password"] { font: 900 6vh/1 Verdana, system-ui, sans-serif !important; letter-spacing: .08em; }
/* login message box (like the reference's "Message" pop-up) */
.login-msg { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(10,0,30,.55); }
.login-msg[hidden] { display: none; }
.login-msg .lm-box { width: 82vh; max-width: 90vw; padding: 3vh 5vh 4vh; border-radius: 1.6vh; text-align: center; color: #fff;
  background: linear-gradient(#3a2a9a, #24127a); border: .35vh solid #8a7aff; box-shadow: 0 0 0 .4vh #1a0a50, 0 2vh 5vh rgba(0,0,0,.6); }
.login-msg .lm-title { display: block; font: 900 4.6vh/1 "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif; margin-bottom: 2.4vh; }
.login-msg .lm-text { font: 500 3.4vh/1.4 system-ui, sans-serif; margin: 0 0 3vh; }
.login-msg .lm-text small { font-size: 2.6vh; opacity: .8; }
.login-msg .lm-ok { min-width: 30vh; height: 8vh; border: 0; border-radius: 1vh; font: 900 4vh/1 system-ui, sans-serif; color: #fff7e0;
  background: linear-gradient(#ffb84a, #f07a1a); clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%); cursor: pointer; }
/* the note under the boxes stays visible (errors were hidden while the keyboard was open) */
.login.vkb-open .login-note { visibility: visible; }

/* ===================== smooth swiping ===================== */
/* fire: a pre-drawn flipbook (24 frames), no live drawing and no extra blur filter */
.tile .hot .hot-fire { display: block; position: absolute; left: -30%; width: 160%; bottom: .6vh; height: 13vh; z-index: 0; pointer-events: none; filter: none !important;
  background: var(--fire-sheet) 0 0 / 2400% 100% no-repeat; animation: fireBook 1.2s steps(24) infinite; will-change: background-position; }
@keyframes fireBook { to { background-position: 100% 0; } }
/* while swiping: decorative animations pause (they carry on the moment the list stops) */
body.swiping .hot-fire, body.swiping .searchlights i, body.swiping .brand .logo-shine, body.swiping .brand .logo-tw b,
body.swiping nav.bottom button .skin-icon, body.swiping nav.bottom button > svg, body.swiping header.top .skin-icon,
body.swiping .tile .art::before, body.swiping .tile .art::after, body.swiping .ticker-track { animation-play-state: paused !important; }
/* the selected menu glow: a cheap pulse (no changing blur every frame) */
nav.bottom button[aria-pressed="true"] .skin-icon, nav.bottom button[aria-pressed="true"] > svg { animation: navSel2 1.4s ease-in-out infinite alternate !important;
  filter: drop-shadow(0 0 1.4vh rgba(255,130,245,.85)) !important; }
@keyframes navSel2 { from { transform: scale(1); } to { transform: scale(1.07); } }
/* searchlights: no blur filter, no blend mode (cheaper, looks the same on the dark sky) */
.searchlights i { filter: none !important; mix-blend-mode: normal !important; opacity: .75; }


/* ===================== bonus wheel, matched to the reference recording ===================== */
/* bigger wheel and host, like the reference (the wheel fills about three quarters of the height) */
#wheelModal .ws-wheel { width: 70vh !important; max-width: 70vh !important; }
#wheelModal .ws-title { margin-bottom: -2vh; }
#wheelModal .ws-host, #wheelModal .skin-host, #wheelModal img.ws-host { height: 88vh !important; width: auto !important; left: 9% !important; bottom: 2vh !important; }
#wheelModal .status { display: none; }
/* while spinning: the rim flashes pink and white, the centre glows */
#wheelModal.spinning .ws-rim { animation: rimFlash .32s steps(1) infinite; }
@keyframes rimFlash { 0% { filter: drop-shadow(0 0 2.4vh #ff5ae6) drop-shadow(0 0 1vh #fff) brightness(1.35); } 50% { filter: drop-shadow(0 0 1.2vh #fff) brightness(1.05); } }
#wheelModal.spinning .ws-go { box-shadow: 0 0 0 .6vh rgba(255,255,255,.85), 0 0 4vh 1.5vh #ffe6a0 !important; filter: brightness(1.4); }
/* big white close button like the reference */
#wheelModal .ws-close { width: 9vh; height: 9vh; font: 900 8vh/1 system-ui, sans-serif; text-shadow: 0 0 .4vh #6a3cff, 0 0 1.2vh #6a3cff, 0 .4vh .6vh rgba(0,0,0,.6); }
/* the result message: same box as the login message, with a close cross */
.wheel-msg { z-index: 60; background: rgba(5,0,20,.7); }
.wheel-msg .lm-box { position: relative; }
.wheel-msg .lm-x { position: absolute; top: .6vh; right: 1.4vh; border: 0; background: none; color: #fff; font: 900 5.4vh/1 system-ui, sans-serif; cursor: pointer; text-shadow: 0 0 1vh #8a7aff; }
.wheel-msg .lm-text b { color: #ffd45e; }
#wheelModal .ws-wheel { width: 76vh !important; max-width: 76vh !important; }
#wheelModal .ws-close, body #wheelModal button.ws-close { width: 10vh !important; height: 10vh !important; font: 900 9vh/1 system-ui, sans-serif !important; color: #fff !important;
  top: 2vh !important; right: 3vh !important; background: none !important; border: 0 !important; text-shadow: 0 0 .5vh #6a3cff, 0 0 1.4vh #6a3cff, 0 .4vh .6vh rgba(0,0,0,.6) !important; }
.wheel-msg .lm-box { width: 100vh !important; padding: 4vh 6vh 5vh !important; }
.wheel-msg .lm-title { font-size: 5.6vh !important; }
.wheel-msg .lm-text { font-size: 4.2vh !important; line-height: 1.45 !important; margin: 2vh 0 4vh !important; }
.wheel-msg .lm-ok { min-width: 34vh; height: 9vh; font-size: 4.6vh; }

/* ===================== bonus wheel, second pass: the look while it spins (reference recording) ===================== */
/* glossy slices with a glitter texture */
.ws-wheel .wheel .ws-gloss { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.28) 0 18%, rgba(255,255,255,0) 40%),
              repeating-conic-gradient(rgba(0,0,0,.22) 0deg, rgba(0,0,0,0) 4deg, rgba(255,255,255,.12) 9deg, rgba(0,0,0,0) 14deg, rgba(0,0,0,.18) 18deg); }
.ws-wheel .wheel .ws-glitter { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 1; opacity: .35; mix-blend-mode: soft-light;
  background: radial-gradient(circle, #fff 0 .5px, transparent 1.2px) 0 0 / 7px 7px, radial-gradient(circle, #fff 0 .5px, transparent 1.2px) 3px 4px / 9px 9px; }
/* numbers: gold with a dark outline, a little bigger */
.ws-wheel .wheel .seg span { z-index: 2; font-size: 3vh !important; color: #ffe27a !important; -webkit-text-stroke: .25vh #5a2a00; paint-order: stroke fill;
  text-shadow: 0 .3vh .3vh rgba(0,0,0,.5) !important; }
.ws-wheel .wheel .seg.gl span { color: #fff !important; -webkit-text-stroke: .22vh #2a1050; font-size: 2.6vh !important; }
/* metallic hub that always reads GO */
.ws-go { background: radial-gradient(circle at 50% 38%, #4a2a6a 0 42%, #1e0a32 64%) padding-box, linear-gradient(160deg, #ffffff, #9aa3b8 40%, #e8ecf4 60%, #6a7286) border-box !important;
  border: 1vh solid transparent !important; color: #e8ecf8 !important; font: 900 5.4vh/1 "Arial Rounded MT Bold", system-ui, sans-serif !important; letter-spacing: .02em;
  text-shadow: 0 .3vh 0 #1a0a2a, 0 0 1vh rgba(255,255,255,.35) !important; box-shadow: 0 .8vh 1.6vh rgba(0,0,0,.5), inset 0 .6vh 1vh rgba(255,255,255,.25) !important; width: 24% !important; }
#wheelModal.spinning .ws-go { animation: hubFlash .6s ease-out infinite; }
@keyframes hubFlash { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.95), 0 0 6vh 3vh rgba(255,240,200,.9); filter: brightness(2); } 60%, 100% { box-shadow: 0 .8vh 1.6vh rgba(0,0,0,.5); filter: none; } }
/* pointer: a long silver needle from the rim down to the hub (the reference's look); the old triangle goes */
.ws-wheel .ws-pointer { display: none !important; }
.ws-needle { position: absolute; left: 50%; top: -3%; z-index: 3; width: 5.2%; height: 41%; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, #8a92a8, #ffffff 30%, #c8cede 50%, #ffffff 70%, #8a92a8);
  clip-path: polygon(0 0, 100% 0, 100% 2%, 62% 6%, 58% 100%, 42% 100%, 38% 6%, 0 2%); filter: drop-shadow(0 .4vh .4vh rgba(0,0,0,.55)); }
/* sparkles twinkling over the wheel and white flashes while it spins */
.ws-sparkles { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s; }
#wheelModal.spinning .ws-sparkles { opacity: 1; }
.ws-sparkles i { position: absolute; width: 3.4vh; height: 3.4vh; margin: -1.7vh; background: radial-gradient(circle, #fff 0 12%, rgba(255,240,190,.85) 22%, transparent 62%);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); animation: twinkle 1.3s ease-in-out infinite; }
.ws-flash { position: absolute; inset: 8%; z-index: 2; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,.75), rgba(255,220,255,.25) 35%, transparent 65%); }
#wheelModal.spinning .ws-flash { animation: wheelFlash 1.1s ease-out infinite; }
@keyframes wheelFlash { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.15); } }
/* the fast part of the spin looks blurred, then it sharpens as it slows */
#wheelModal .ws-wheel .wheel { transition: filter .6s; }
#wheelModal.fast .ws-wheel .wheel { filter: blur(.25vh) brightness(1.08); }
@media (prefers-reduced-motion: reduce) { #wheelModal.spinning .ws-go, .ws-sparkles i, #wheelModal.spinning .ws-flash { animation: none !important; } }
.ws-sparkles i { width: 5.6vh; height: 5.6vh; margin: -2.8vh; background: radial-gradient(circle, #fff 0 14%, rgba(255,245,210,.95) 24%, rgba(255,200,255,.4) 40%, transparent 64%); }

/* ===================== bonus wheel, third pass: the scene (reference recording, full frame) ===================== */
/* big bold slice writing: orange numbers with a dark outline filling the slice, white "Good Luck" */
.ws-wheel .wheel .seg span { top: 3.5% !important; font: 900 4.4vh/1 "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif !important; letter-spacing: .02em !important;
  color: #ffb02e !important; -webkit-text-stroke: .45vh #4a1400 !important; paint-order: stroke fill; text-shadow: 0 .4vh .4vh rgba(0,0,0,.55) !important; }
.ws-wheel .wheel .seg.gl span { color: #fff !important; -webkit-text-stroke: .4vh #1a0630 !important; font-size: 3.9vh !important; }
/* title wraps around the top of the wheel; the needle sits between the two words */
#wheelModal .ws-title { position: relative; z-index: 4; width: 104vh !important; max-width: 104vh !important; margin: 0 auto -19vh !important; pointer-events: none; }
#wheelModal .ws-title svg text { letter-spacing: 6px; }
#wheelModal .ws-needle { top: -6%; height: 44%; width: 6.2%; }
#wheelModal .ws-needle::before { content: ""; position: absolute; left: -35%; right: -35%; top: 0; height: 9%; border-radius: 1vh 1vh .4vh .4vh;
  background: linear-gradient(#ffffff, #aeb6c8 55%, #6a7286); box-shadow: 0 .3vh .5vh rgba(0,0,0,.5); }
/* host right next to the wheel, like one scene */
#wheelModal .ws-host, #wheelModal .skin-host, #wheelModal img.ws-host { left: 16% !important; }
/* the stage: a picture (light rig, spotlights, curtains, speakers, coins), slightly see-through over the lobby like the reference */
#wheelModal { background: rgba(20,4,40,.25) !important; }
#wheelModal { isolation: isolate; }
#wheelModal::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9;
  background: url("art/lobby/wheel-stage.jpg?v=20261128-2247") center / cover no-repeat; }
#wheelModal .ws-curtain, #wheelModal .ws-lights, #wheelModal .ws-coins { display: none !important; }
/* wheel centred in the height like the reference; title a little smaller */
#wheelModal .ws-main { margin-top: -9vh !important; }
#wheelModal .ws-title { width: 92vh !important; max-width: 92vh !important; margin-bottom: -17vh !important; }
/* pointer: a silver wedge, one slice wide at the rim, narrowing down to the hub (frames the slice it points at) */
#wheelModal .ws-needle { top: -4%; height: 42%; width: 17%; clip-path: none; filter: drop-shadow(0 .5vh .6vh rgba(0,0,0,.55));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 240' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23808aa0'/%3E%3Cstop offset='.3' stop-color='%23ffffff'/%3E%3Cstop offset='.5' stop-color='%23c6ccdc'/%3E%3Cstop offset='.7' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23808aa0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M4 6 Q50 -2 96 6 L58 236 L42 236 Z M18 16 L44 222 L56 222 L82 16 Q50 10 18 16 Z' fill='url(%23g)' fill-rule='evenodd' stroke='%23596078' stroke-width='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat !important; }
#wheelModal .ws-needle::before { display: none; }

/* ===================== bonus wheel, fourth pass: the reference's rhythm, frame by frame ===================== */
/* every 1.1 s: a big white burst in the centre ... */
#wheelModal.spinning .ws-go { animation: hubBurst 1.1s ease-out infinite !important; }
@keyframes hubBurst { 0% { box-shadow: 0 0 0 0 #fff, 0 0 7vh 4vh rgba(255,250,230,1); filter: brightness(2.6); }
  18% { box-shadow: 0 0 0 1vh rgba(255,255,255,.6), 0 0 5vh 2vh rgba(255,240,200,.6); filter: brightness(1.6); }
  35%, 100% { box-shadow: 0 .8vh 1.6vh rgba(0,0,0,.5); filter: none; } }
/* ... followed by a glowing white ring that rushes from the centre out to the rim */
.ws-wave { position: absolute; inset: 0; z-index: 3; border-radius: 50%; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 .5vh rgba(255,255,255,.9), inset 0 0 2.4vh rgba(255,210,255,.8), 0 0 2.4vh rgba(255,200,255,.7); }
#wheelModal.spinning .ws-wave { animation: wheelWave 1.1s ease-out .25s infinite; }
@keyframes wheelWave { 0% { opacity: 0; transform: scale(.28); } 12% { opacity: .95; } 70% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.04); } }
.ws-flash { display: none !important; }
/* the glow round the rim changes colour while it spins (pink, gold, white) and keeps pulsing just after it stops */
#wheelModal.spinning .ws-rim, #wheelModal.afterglow .ws-rim { animation: rimColours 1.2s linear infinite !important; }
@keyframes rimColours { 0% { filter: drop-shadow(0 0 2.6vh #ff4ae0) drop-shadow(0 0 1vh #ff9af0) brightness(1.25); }
  33% { filter: drop-shadow(0 0 2.6vh #ffb400) drop-shadow(0 0 1vh #ffe28a) brightness(1.25); }
  66% { filter: drop-shadow(0 0 2.6vh #ffffff) drop-shadow(0 0 1vh #ffffff) brightness(1.35); }
  100% { filter: drop-shadow(0 0 2.6vh #ff4ae0) drop-shadow(0 0 1vh #ff9af0) brightness(1.25); } }
#wheelModal.afterglow .ws-sparkles { opacity: 1; }
/* a soft purple halo around the wheel even when it is still (the reference's idle look) */
#wheelModal .ws-wheel::before { content: ""; position: absolute; inset: -9%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(200,80,255,.0) 55%, rgba(200,80,255,.45) 66%, rgba(140,40,220,0) 74%); }
/* the message box zooms in (small to full in ~0.15 s) */
.wheel-msg:not([hidden]) .lm-box { animation: msgZoom .18s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes msgZoom { from { transform: scale(.35); opacity: .2; } to { transform: scale(1); opacity: 1; } }
.wheel-msg:not([hidden]) { animation: fadein .15s ease both; }
/* no motion blur: the reference's numbers stay readable all through the spin */
#wheelModal.fast .ws-wheel .wheel { filter: none !important; }
/* the centre flash: a big blinding white bloom over the hub, every 1.1 s */
.ws-burst { position: absolute; left: 50%; top: 50%; width: 62%; height: 62%; margin: -31% 0 0 -31%; z-index: 4; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #ffffff 0 16%, rgba(255,252,235,.95) 24%, rgba(255,235,200,.55) 40%, rgba(255,210,255,.2) 56%, transparent 70%); }
#wheelModal.spinning .ws-burst { animation: hubBloom 1.1s ease-out infinite; }
@keyframes hubBloom { 0% { opacity: 1; transform: scale(.35); } 14% { opacity: 1; transform: scale(1); } 45% { opacity: 0; transform: scale(1.1); } 100% { opacity: 0; } }
/* the rushing ring: thick and glowing like the reference */
.ws-wave { box-shadow: inset 0 0 0 1.1vh rgba(255,255,255,.95), inset 0 0 4vh 1vh rgba(255,170,250,.9), 0 0 3.6vh 1vh rgba(255,170,250,.85) !important; }
