/* Shared screen (host.html) and phones (play.html). */
:root {
  --bg: #07070b; --panel: rgba(20, 20, 28, .78); --line: rgba(255, 255, 255, .12); --line2: rgba(255, 255, 255, .24);
  --text: #fff; --dim: rgba(255, 255, 255, .62); --faint: rgba(255, 255, 255, .38);
  --accent: #5ad1ff; --good: #5fe08a; --bad: #ff5f6d;
  --cA: #5ad1ff; --cB: #ff7ac6; --cC: #ffc857; --cD: #9b8cff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100svh; color: var(--text); font-family: Outfit, system-ui, -apple-system, sans-serif;
  background: radial-gradient(120% 80% at 50% 0%, #15152a 0%, var(--bg) 60%); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hidden { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px;
  border-radius: 14px; border: 0; background: var(--accent); color: #041018; font-weight: 700; font-size: 18px;
  transition: transform .12s ease, opacity .2s; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; cursor: default; transform: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.btn.big { min-height: 64px; font-size: 22px; padding: 0 34px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.status { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 50;
  padding: 7px 14px; border-radius: 999px; background: #3a2a10; color: #ffd58a; font-size: 14px; font-weight: 500; }

/* timer bar */
.timer { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.timer i { display: block; height: 100%; background: var(--accent); transform-origin: left; }
.timer.low i { background: var(--bad); }

/* ---------- shared screen ---------- */
body.host { overflow: hidden; }
/* film artwork behind the question (host only): dimmed so the question stays readable */
.art { position: fixed; inset: 0; z-index: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .8s ease; }
.art::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 11, .78) 0%, rgba(7, 7, 11, .86) 45%, rgba(7, 7, 11, .95) 100%); }
.art.on { opacity: 1; }
.host-wrap { position: relative; z-index: 1; }
.tmdb-credit { position: fixed; z-index: 1; right: 14px; bottom: 10px; font-size: 12px; color: var(--faint); opacity: 0; transition: opacity .8s; pointer-events: none; }
.tmdb-credit.on { opacity: .7; }
/* the film's poster, top-left above "Question X of Y" (host only) */
/* with a poster: everything starts at the top, so the poster sits in the same spot on every screen of the game;
   the rest is a little tighter so the reveal still fits a 1080p screen */
.stage:has(> .qposter) { gap: 1.6vh; justify-content: flex-start; }
.stage:has(> .qposter) .qtext { font-size: clamp(24px, 2.9vw, 56px); }
.stage:has(> .qposter) .qctx { margin-bottom: 0; }
.stage:has(> .qposter) .banner { font-size: clamp(20px, 2vw, 38px); }
.stage:has(> .qposter) .tile { padding-block: 1.4vh; }
.stage:has(> .qposter) .foot { margin-top: auto; }
.qposter { align-self: flex-start; flex: none; height: clamp(190px, 31.5vh, 490px); aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .55), 0 0 0 1px var(--line); }
@media (max-height: 900px) { .qposter { height: 26vh; } }   /* laptops: a little smaller so the reveal fits */
.host-wrap { height: 100svh; display: flex; flex-direction: column; padding: 3vh 4vw; gap: 3vh; }
.host-top { display: flex; align-items: center; gap: 18px; font-size: clamp(16px, 1.6vw, 26px); color: var(--dim); }
.host-top .brand { font-weight: 800; color: var(--text); }
.host-top .brand b { color: var(--accent); }
.host-top .sp { flex: 1; }
.host-top .code-chip { font-weight: 800; letter-spacing: .12em; color: var(--text); }
.icon-btn { background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; color: var(--dim); font-size: 15px; }
.icon-btn.armed { border-color: var(--bad); color: var(--bad); font-weight: 700; }
.icon-btn[hidden] { display: none; }
a.icon-btn { text-decoration: none; display: inline-block; }
a.icon-btn:hover { color: var(--text); border-color: var(--dim); }
.icon-btn.on { border-color: var(--cC); color: var(--cC); font-weight: 700; }

.lobby { flex: 1; display: grid; grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.25fr); gap: 3vw; min-height: 0; }
.join { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3vh 2vw; gap: 2.2vh; }
.join .how { font-size: clamp(18px, 1.8vw, 30px); color: var(--dim); }
.join .url { font-size: clamp(20px, 2.1vw, 36px); font-weight: 700; }
.join .code { font-size: clamp(64px, 9vw, 160px); font-weight: 800; letter-spacing: .14em; line-height: 1; padding-left: .14em; color: var(--accent); }
.qr { width: clamp(150px, 17vw, 300px); aspect-ratio: 1; background: #fff; border-radius: 16px; padding: 10px; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr.dim { opacity: .25; }
.locked-note { color: var(--cC); font-weight: 700; font-size: 18px; }
.locked-note[hidden] { display: none; }
.side { display: flex; flex-direction: column; gap: 2vh; min-height: 0; }
.players { flex: 1; padding: 22px; min-height: 0; overflow: auto; }
.players h2, .settings h2 { margin: 0 0 14px; font-size: 18px; font-weight: 600; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08);
  font-size: clamp(16px, 1.4vw, 24px); font-weight: 600; animation: pop .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.chip.off { opacity: .4; }
.chip.lead::after { content: "★"; color: var(--cC); font-size: .8em; }
.chip .x { border: 0; background: transparent; color: var(--faint); padding: 0 0 0 4px; font-size: 18px; line-height: 1; }
.chip .x:hover { color: var(--bad); }
.chip.done { background: var(--accent); color: #041018; }
.chip.out { background: rgba(255, 95, 109, .22); color: #ffb3ba; text-decoration: line-through; }
.empty { color: var(--faint); font-size: 18px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

.settings { padding: 20px 22px; display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.row > label { width: 92px; color: var(--dim); font-size: 15px; }
.catsel { display: inline-flex; flex-wrap: wrap; gap: 4px; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 3px; }
.catsel button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-size: 16px; font-weight: 600; color: var(--dim); }
.catsel button small { font-size: 12px; font-weight: 600; opacity: .6; margin-left: 2px; }
.catsel button[aria-pressed="true"] { background: var(--text); color: #0b0b10; }
.seg { display: inline-flex; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-size: 16px; font-weight: 600; color: var(--dim); }
.seg button[aria-pressed="true"] { background: var(--text); color: #0b0b10; }
.vtag { color: var(--faint); font-size: 14px; margin: -6px 0 0 106px; }
.own textarea { width: 100%; min-height: 120px; resize: vertical; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .35); color: var(--text); font: 14px/1.45 ui-monospace, Menlo, monospace; }
.own .help { color: var(--faint); font-size: 13px; margin: 6px 0; }
.own .note { color: var(--dim); font-size: 14px; margin-left: 10px; }
.start-row { display: flex; align-items: center; gap: 16px; }
.start-row .hint { color: var(--faint); font-size: 15px; }

/* question on the shared screen */
.stage { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4vh; min-height: 0; }
.qmeta { display: flex; align-items: center; gap: 18px; font-size: clamp(16px, 1.6vw, 26px); color: var(--dim); }
.qmeta .n { color: var(--text); font-weight: 700; }
.qmeta .clock { margin-left: auto; font-weight: 800; font-size: clamp(28px, 3.2vw, 56px); color: var(--text); font-variant-numeric: tabular-nums; }
.qmeta .clock.low { color: var(--bad); }
.qctx { font-size: clamp(18px, 1.8vw, 34px); font-weight: 700; color: var(--faint); margin-bottom: .35em; }
.ready .qctx { animation: rise .6s cubic-bezier(.16, 1, .3, 1) both; }
.qtext { font-size: clamp(30px, 4vw, 76px); font-weight: 800; line-height: 1.12; text-wrap: balance; max-width: 22em; }
.ready .qtext { animation: rise .6s cubic-bezier(.16, 1, .3, 1) both; }
.ready .count { font-size: clamp(22px, 2.2vw, 40px); color: var(--accent); font-weight: 700; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 2vh 2vw; }
.tile { position: relative; display: flex; align-items: center; gap: 1.2vw; padding: 2.4vh 1.6vw; border-radius: 18px;
  background: rgba(255, 255, 255, .06); border: 2px solid transparent; font-size: clamp(20px, 2.3vw, 42px); font-weight: 700;
  transition: opacity .4s, transform .4s, border-color .3s, background .3s; }
.tile .l { flex: none; width: 1.7em; height: 1.7em; border-radius: 12px; display: grid; place-items: center; color: #07070b; font-weight: 800; }
.tile .cnt { margin-left: auto; font-size: .7em; color: var(--dim); }
.c0 .l, .c0.pick { --c: var(--cA); } .c1 .l, .c1.pick { --c: var(--cB); } .c2 .l, .c2.pick { --c: var(--cC); } .c3 .l, .c3.pick { --c: var(--cD); }
.tile .l { background: var(--c); }
.revealed .tile { opacity: .28; animation: none; }
.revealed .tile.right { opacity: 1; border-color: var(--good); background: rgba(95, 224, 138, .14); transform: scale(1.02); }
.tile.right .cnt { color: var(--good); }
.banner { font-size: clamp(22px, 2.4vw, 44px); font-weight: 700; min-height: 1.3em; }
.banner .who { color: var(--good); }
.foot { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.foot .chips { flex: 1; }
.foot .sp { flex: 1; }
.answered { color: var(--dim); font-size: 18px; white-space: nowrap; }
.mini { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.mini span { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: clamp(15px, 1.3vw, 22px); }
.mini b { margin-left: 6px; color: var(--accent); }

/* final results */
.final { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3vh; min-height: 0; }
.final h1 { margin: 0; font-size: clamp(36px, 5vw, 90px); font-weight: 800; }
.final h1 .who { color: var(--cC); }
.ranks { width: min(760px, 100%); display: grid; gap: 10px; max-height: 52vh; overflow: auto; }
.rank { display: grid; grid-template-columns: 3.2em 1fr auto; align-items: center; padding: 12px 20px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); font-size: clamp(18px, 1.9vw, 32px); font-weight: 700; animation: rise .5s both; }
.rank .p { color: var(--dim); }
.rank.first { background: linear-gradient(90deg, rgba(255, 200, 87, .28), rgba(255, 200, 87, .06)); }
.rank.first .p { color: var(--cC); }
.rank .s { color: var(--accent); }
.final .actions { display: flex; gap: 14px; }

@media (max-width: 860px) {
  body.host { overflow: auto; }
  .host-wrap { height: auto; min-height: 100svh; padding: 16px; }
  .lobby { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .row > label { width: auto; }
  .vtag { margin-left: 0; }
}

/* ---------- phones ---------- */
body.play { display: flex; flex-direction: column; }
.play-wrap { flex: 1; display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  max-width: 560px; width: 100%; margin: 0 auto; gap: 16px; }
.ptop { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 15px; min-height: 24px; }
.ptop .me { color: var(--text); font-weight: 700; }
.ptop .pinfo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.ptop .icon-btn { padding: 4px 10px; font-size: 14px; white-space: nowrap; }
.ptop .sp { flex: 1; }
.ptop .pts { color: var(--accent); font-weight: 700; }
.center { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 14px; }
.center h1 { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.1; }
.center p { margin: 0; color: var(--dim); font-size: 18px; }
.center .huge { font-size: 76px; line-height: 1; font-weight: 800; }
.center .huge.good { color: var(--good); } .center .huge.bad { color: var(--bad); }
form.joinf { width: 100%; display: grid; gap: 12px; text-align: left; }
form.joinf label { color: var(--dim); font-size: 15px; }
form.joinf input { width: 100%; min-height: 56px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line2);
  background: rgba(0, 0, 0, .35); color: var(--text); font: 600 22px Outfit, system-ui, sans-serif; }
form.joinf input.codein { text-transform: uppercase; letter-spacing: .3em; font-weight: 800; text-align: center; }
form.joinf .btn { width: 100%; margin-top: 6px; }
.err { color: #ffb3ba; font-size: 16px; min-height: 1.2em; }
.answers { flex: 1; display: grid; grid-template-rows: repeat(4, 1fr); gap: 12px; }
.ans { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; border: 2px solid transparent;
  background: rgba(255, 255, 255, .07); text-align: left; font-size: 20px; font-weight: 700; min-height: 64px; transition: opacity .25s, transform .1s, border-color .2s; }
.ans .l { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #07070b; font-weight: 800; font-size: 22px; }
.ans:active { transform: scale(.98); }
.ans:disabled { cursor: default; }
.answers.locked .ans { opacity: .3; }
.answers.locked .ans.pick { opacity: 1; border-color: var(--c); }
.answers.revealed .ans { opacity: .25; }
.answers.revealed .ans.right { opacity: 1; border-color: var(--good); }
.answers.revealed .ans.pick:not(.right) { opacity: .9; border-color: var(--bad); }
.pnote { text-align: center; font-size: 18px; font-weight: 600; min-height: 1.4em; color: var(--dim); }
.pnote.bad { color: var(--bad); } .pnote.good { color: var(--good); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pfoot { display: grid; gap: 10px; }
.pfoot .btn { width: 100%; }
.lead-note { color: var(--faint); font-size: 14px; text-align: center; }

/* ---------- solo (/solo): one person, one screen ---------- */
body.solo .play-wrap { position: relative; z-index: 1; }
body.solo .art::after { background: rgba(7, 7, 11, .82); }
.solo-set { width: 100%; display: grid; gap: 16px; text-align: left; }
.solo-head { text-align: center; }
.solo-head h1 { font-size: 28px; }
.solo-head p { margin-top: 4px; font-size: 16px; }
.solo-set .settings { padding: 18px; }
.solo-set .row > label { width: 92px; }
.solo-set .btn { width: 100%; }
.solo-set .row:has(#cats) { flex-direction: column; align-items: stretch; gap: 8px; }
.solo-set .catsel button { padding: 7px 11px; font-size: 15px; }
.best, .center p.best { color: var(--cC); font-weight: 700; }
.solo-q { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.solo-q .center { flex: 1; }
.sq { display: flex; gap: 14px; align-items: flex-start; }
.sq img { flex: none; width: 148px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
  background: rgba(255, 255, 255, .06); opacity: 0; transition: opacity .35s ease; }
.sq img.on { opacity: 1; }
.sq .qctx { font-size: 15px; margin-bottom: 4px; }
.sq .qtext { font-size: clamp(20px, 5.4vw, 30px); line-height: 1.15; }
.sq .qcat { margin-top: 6px; font-size: 13px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.solo-q .answers { flex: 1 1 auto; min-height: 0; max-height: 600px; grid-template-rows: none; grid-auto-rows: minmax(52px, 1fr); gap: 10px; }   /* fill the screen above the foot; never taller than 150px a card */
.solo-q .ans .t { flex: 1; min-width: 0; }
.solo-q .ans.right { transform: scale(1.02); }
.tslot { flex: none; height: 8px; }
.solo-q .timer { opacity: 0; transition: opacity .3s; }
.solo-q .timer.on { opacity: 1; }
.sfoot { flex: none; margin-top: auto; display: grid; gap: 12px; }   /* Next at the very bottom */
.sline { min-height: 34px; display: flex; align-items: center; justify-content: center; }
.sfoot .pfoot.ghost { visibility: hidden; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes textIn { from { opacity: 0; transform: translateY(4px); } }
.solo-q .ans { min-height: 52px; padding: 8px 14px; font-size: 18px; gap: 12px; border-radius: 16px; }
.solo-q .ans .l { width: 38px; height: 38px; font-size: 19px; border-radius: 10px; }
.verdict { text-align: center; font-size: 26px; font-weight: 800; }
.verdict.good { color: var(--good); } .verdict.bad { color: var(--bad); }
.huge .of { font-size: .45em; color: var(--faint); font-weight: 700; }
@media (max-width: 860px) { .solo-set .row > label { width: auto; } .solo-set .vtag { margin-left: 0; } }
/* short phones (iPhone SE): the bigger poster still leaves room for the answers and the Next button */
@media (max-height: 700px) {
  .solo-q { gap: 10px; }
  .solo-q .answers { gap: 8px; grid-auto-rows: minmax(46px, 1fr); }
  .solo-q .ans { min-height: 46px; padding: 5px 12px; font-size: 17px; }
  .solo-q .ans .l { width: 34px; height: 34px; font-size: 17px; }
  .solo-q .verdict { font-size: 22px; }
  .solo-q .btn.big { min-height: 54px; font-size: 20px; }
}
@media (max-height: 600px) { .sq img { width: 108px; } }   /* the smallest phones (first iPhone SE): a little smaller so Next fits */
.solo-set .row[hidden] { display: none; }
#screen.enter { animation: soloIn .22s ease-out both; }
@keyframes soloIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { #screen.enter { animation: none; } }

/* ---------- host and phones: screens built once, changed in place ---------- */
.tile .t, .ans .t { flex: 1; min-width: 0; }
/* "Get ready": the answers' place is kept but empty; when the question opens they simply appear, all at once */
.waiting > .ans, .waiting > .tile { opacity: 0 !important; pointer-events: none; }
/* hiding and showing them is instant: never a fade that would flash the answers before they are due */
.snap > .ans, .snap > .tile, .waiting > .ans, .waiting > .tile { transition: none !important; animation: none !important; }
.c4 .l, .c4.pick { --c: var(--cA); }
.qposter { opacity: 0; transition: opacity .35s ease; }
.qposter.on { opacity: 1; }
.banner.wait { color: var(--accent); }
.settings .row[hidden], .own[hidden], .seg button[hidden] { display: none; }
.foot > *, .banner, .pslot > * { animation: textIn .3s ease both; }
/* phones: a fixed slot above the answers (Get ready / the clock / right or wrong), so the answers never move */
.pslot { flex: none; min-height: 132px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px; }
.pslot .timer { width: 100%; align-self: stretch; }
.pslot h1 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.1; }
.pslot p { margin: 0; color: var(--dim); font-size: 17px; }
.pslot .huge { font-size: 60px; line-height: 1; font-weight: 800; }
.pslot .huge.good { color: var(--good); } .pslot .huge.bad { color: var(--bad); }
.pq { flex: 1; display: flex; flex-direction: column; gap: 14px; }
#pfoot.ghost { visibility: hidden; }
#pfoot:not(.ghost) .pfoot { animation: textIn .3s ease both; }
.pq .answers { flex: 1; grid-template-rows: none; grid-auto-rows: minmax(56px, 1fr); max-height: 440px; }   /* fill the phone, never stretch tall */
@media (prefers-reduced-motion: reduce) { .foot > *, .banner, .pslot > * { animation: none; } }

/* ---- Casino Mode: chips and bets (shared screen and phones) ---- */
html[data-casino] { --accent: #ff5d5d; }
.casino-box { display: grid; gap: 14px; padding: 12px; margin: -4px 0; border-radius: 14px; background: rgba(255, 93, 93, .07); border: 1px solid rgba(255, 93, 93, .22); }
.casino-box[hidden], #moneyrows[hidden] { display: none; }
#moneyrows { display: grid; gap: 14px; }
.seg button:disabled { opacity: .4; cursor: default; }
.addr-in { flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line2, rgba(255,255,255,.2));
  background: rgba(0, 0, 0, .35); color: var(--text); font: 14px ui-monospace, Menlo, monospace; }
.chip .paid { border: 1px solid var(--line2, rgba(255,255,255,.25)); background: transparent; color: var(--faint); border-radius: 999px; padding: 2px 8px; font-size: 13px; font-weight: 700; }
.chip .paid.on { background: var(--good); border-color: var(--good); color: #062010; }
.chip small { color: var(--accent); font-size: .75em; }
.rank .s small { font-size: .7em; margin-left: 8px; color: var(--dim); }
.rank .s small.up { color: var(--good); } .rank .s small.down { color: var(--bad); }
.payouts { width: min(760px, 100%); text-align: left; }
.payouts h2 { margin: 6px 0 10px; font-size: 20px; }
.pay-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; max-height: 34vh; overflow: auto; }
.pay { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.pay-qr { flex: none; width: 92px; height: 92px; padding: 6px; border-radius: 8px; background: #fff; box-sizing: border-box; }
.pay-qr:not([data-link]), .pay-qr[data-link=""] { background: rgba(255, 255, 255, .08); }
.pay-qr svg { width: 100%; height: 100%; display: block; }
.pay-who { display: grid; gap: 3px; min-width: 0; }
.pay-who span { color: var(--accent); font-weight: 700; }
.pay-who code { font-size: 12px; color: var(--faint); overflow-wrap: anywhere; }
.pcasino { width: 100%; display: grid; gap: 10px; margin-top: 10px; text-align: left; }
.pcasino p { font-size: 15px; text-align: center; }
.buyin { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: rgba(255, 93, 93, .08); border: 1px solid rgba(255, 93, 93, .25); }
.bi-head { font-size: 17px; } .bi-head b { color: var(--accent); }
.bi-ok { color: var(--good); font-weight: 700; }
.bi-wait, .bi-how { color: var(--dim); font-size: 15px; }
.buyin code.addr { font-size: 13px; overflow-wrap: anywhere; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .35); }
.bi-btns { display: flex; gap: 8px; } .bi-btns .btn { flex: 1; font-size: 16px; text-align: center; text-decoration: none; }
.addr-label { color: var(--dim); font-size: 14px; margin-top: 4px; }
.addr-row { display: flex; gap: 8px; width: 100%; } .addr-row .btn { font-size: 16px; }
.betbox { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; text-align: center; }
.betbox h1 { margin: 0; font-size: 28px; } .betbox p { margin: 0; color: var(--dim); }
.betbox .huge { font-size: 64px; font-weight: 800; color: var(--accent); }
.bet-amt { display: grid; } .bet-amt b { font-size: 64px; line-height: 1; color: var(--accent); } .bet-amt span { color: var(--dim); }
.betbox input[type=range] { width: 100%; accent-color: var(--accent); height: 32px; }
.bet-quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: 100%; }
.bet-quick .btn { padding: 10px 0; font-size: 15px; }
.betbox #betgo { width: 100%; }
.bet-help { font-size: 14px; color: var(--faint) !important; }
.chip span.paid { border: 1px solid var(--line2, rgba(255,255,255,.25)); color: var(--faint); border-radius: 999px; padding: 2px 8px; font-size: 13px; font-weight: 700; }
.chip span.paid.on { background: var(--good); border-color: var(--good); color: #062010; }
.pay .ps { font-size: 14px; color: var(--dim); } .pay .ps.ok { color: var(--good); font-weight: 700; } .pay .ps.bad { color: #ffb3ba; }
.pay a, .paynote a { color: var(--accent); }
.bi-fine { color: var(--faint); font-size: 13px; }
.spin { display: inline-block; width: .8em; height: .8em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -1px; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#hostaddrrow[hidden] { display: none; }
.potline { font-size: 14px; color: var(--dim); margin-left: 106px; }
.potline a, .potmeta a, .payouts .hint a { color: var(--accent); text-decoration: none; }
.potline code, .potmeta code, .payouts code { font-size: .9em; }
.potmeta { font-size: .8em; }
@media (max-width: 900px) { .potline { margin-left: 0; } }
.choose { width: 100%; display: grid; gap: 8px; margin-top: 6px; }
.choose .btn { width: 100%; }
.choose-note { color: var(--dim); font-size: 14px; text-align: center; margin-bottom: 6px; }
.bi-fine a { color: var(--accent); }
.bi-err { color: #ffb3ba; font-size: 14px; }
.buyin > .btn.big { width: 100%; }
.linkish { all: unset; color: var(--accent); cursor: pointer; text-decoration: underline; }
details.manual { width: 100%; text-align: left; margin-top: 6px; }
details.manual summary { color: var(--dim); font-size: 15px; cursor: pointer; padding: 6px 0; }
details.manual[open] { display: grid; gap: 10px; }
