/*
VOICE  loud, warm, owambe-night party; Lagos living room after dinner
IDEA   ankara print + party canopy lights: every screen is a lit party table
PICTURE the game itself fills the stage (cards, boards, big timers)
COLOUR aubergine night ground, gold + coral + teal, Whot maroon
TYPE   Unbounded for shouty titles, Outfit for everything else
*/
:root {
  --bg: #1a0f1f; --bg2: #24152b; --card: #2e1b36; --line: #4a3054;
  --ink: #fff6ea; --mute: #c9b5cf; --gold: #f5b301; --coral: #ff4f6d; --teal: #16c2a3; --blue: #4f8cff;
  --good: #2fd06b; --bad: #ff4f6d; --r: 18px;
  --disp: 'Unbounded', 'Arial Black', system-ui, sans-serif; --body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink); font: 17px/1.45 var(--body); overflow-x: clip;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke-width='2.2'%3E%3Cpath d='M48 6 66 24 48 42 30 24Z' stroke='%23f5b30122'/%3E%3Cpath d='M0 54 18 72 0 90M96 54 78 72 96 90' stroke='%2316c2a31f'/%3E%3Ccircle cx='48' cy='72' r='12' stroke='%23ff4f6d1f'/%3E%3Ccircle cx='48' cy='72' r='4' fill='%23ff4f6d1a' stroke='none'/%3E%3Ccircle cx='0' cy='0' r='10' stroke='%23b45cff1c'/%3E%3Ccircle cx='96' cy='0' r='10' stroke='%23b45cff1c'/%3E%3Ccircle cx='0' cy='96' r='10' stroke='%23b45cff1c'/%3E%3Ccircle cx='96' cy='96' r='10' stroke='%23b45cff1c'/%3E%3C/g%3E%3Cg fill='%23f5b30114'%3E%3Ccircle cx='48' cy='24' r='3'/%3E%3Ccircle cx='18' cy='48' r='2'/%3E%3Ccircle cx='78' cy='48' r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.08; text-wrap: balance; }
h2 { font-family: var(--disp); font-weight: 600; font-size: clamp(20px, 2.2vw, 30px); }
p { margin: 0 0 .6em; }
.muted { color: var(--mute); } .small { font-size: 14px; } .grow { flex: 1; }
.hot { color: var(--coral); }
.display { font-family: var(--disp); font-weight: 800; font-size: clamp(28px, 4.4vw, 64px); letter-spacing: -.01em; }
.display.sm { font-size: 30px; }
.lead { font-size: clamp(17px, 1.7vw, 26px); color: var(--mute); }
.lead b { color: var(--ink); }
#app { min-height: 100%; display: flex; flex-direction: column; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: .45em; font-family: var(--disp); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.logo.big { font-size: clamp(36px, 6.4vw, 78px); }
.lw { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.lname { white-space: nowrap; }
.ng { margin-top: .16em; padding: .22em .55em .2em; font-size: .3em; letter-spacing: .32em; font-weight: 800; color: #0b3d1f; border-radius: 4px; transform: rotate(-2deg);
  background: linear-gradient(90deg, #0a8f3c 0 33.3%, #fff 33.3% 66.6%, #0a8f3c 66.6%); box-shadow: 0 2px 0 #0006; text-shadow: 0 0 2px #fff, 0 0 2px #fff; }
.bar .ng, .pbar .ng { font-size: 10px; letter-spacing: .22em; }
.logo-mark { display: inline-flex; gap: .08em; }
.logo-mark i { width: .5em; height: .5em; border-radius: 50%; background: var(--coral); box-shadow: 0 0 .4em currentColor; }
.logo-mark i:nth-child(1) { color: var(--coral); }
.logo-mark i:nth-child(2) { background: var(--gold); color: var(--gold); }
.logo-mark i:nth-child(3) { background: var(--teal); color: var(--teal); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--gold); color: #24120a; font-weight: 700; font-size: 17px; box-shadow: 0 4px 0 #a87600; transition: transform .08s; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #a87600; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.huge { min-height: 64px; font-size: 21px; padding: 14px 34px; width: 100%; max-width: 420px; }
.btn.sm { min-height: 36px; padding: 4px 14px; font-size: 14px; }
.btn.got { background: var(--good); box-shadow: 0 4px 0 #1b8a43; color: #062; }
.btn.pass { background: #ffffff1a; color: var(--ink); box-shadow: 0 4px 0 #0006; }
.btn.market { width: 100%; margin-top: 12px; background: var(--teal); box-shadow: 0 4px 0 #0c7a66; color: #022; }
.iconbtn { white-space: nowrap; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #ffffff0a; font-size: 14px; }
.linkbtn { background: none; border: 0; color: var(--mute); text-decoration: underline; padding: 10px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pill { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #ffffff14; font-weight: 600; font-size: 15px; }
.hotpill { background: var(--coral); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 999px; background: #ffffff12; font-weight: 600; }
.chip.off { opacity: .45; }
.chip button { border: 0; background: none; color: var(--mute); font-size: 18px; padding: 0 4px; }

/* avatars */
.av { --c: #888; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: #1a0f1f; font-weight: 800; font-size: 16px; flex: none; box-shadow: inset 0 -3px 0 #0003; vertical-align: middle; }
.av.sm { width: 30px; height: 30px; font-size: 12px; }
.av.xl { width: 96px; height: 96px; font-size: 34px; }

/* timers */
.timer { display: inline-grid; place-items: center; min-width: 2.2em; height: 2.2em; padding: 0 .4em; border-radius: 999px; background: #ffffff1a; font-weight: 800; font-variant-numeric: tabular-nums; vertical-align: middle; }
.timer.low { background: var(--coral); color: #fff; animation: pulse .5s infinite alternate; }
.timer.big { font-size: 28px; }
.timer.huge { font-size: clamp(60px, 12vw, 160px); background: none; font-family: var(--disp); }
.timer.sm { font-size: 13px; }
@keyframes pulse { to { transform: scale(1.08); } }

/* ===== home ===== */
body.home #app { justify-content: center; }
.hero { width: min(1100px, 100%); margin: 0 auto; padding: 40px 20px; display: flex; flex-direction: column; gap: 26px; align-items: center; text-align: center; }
.tag { font-size: clamp(18px, 2.2vw, 26px); color: var(--mute); max-width: 32ch; margin: 10px auto 0; }
.hero-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; }
.hcard { text-align: left; border: 0; border-radius: 24px; padding: 26px 22px 30px; min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; color: #1a0f1f; position: relative; overflow: hidden; box-shadow: 0 6px 0 #0006; }
.hcard b { font-family: var(--disp); font-size: 24px; line-height: 1.1; }
.hcard span { font-size: 16px; opacity: .85; }
.hcard::before { content: ''; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, #fff6 0 18px, transparent 19px) 0 0/34px 34px; opacity: .6; }
.h1 { background: var(--gold); } .h2 { background: var(--coral); } .h3 { background: var(--teal); }
.ribbon { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ribbon span { --c: #fff; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--c); color: var(--c); font-weight: 600; font-size: 14px; }
.ribbon .soon { border-style: dashed; border-color: var(--line); color: var(--mute); }
@media (max-width: 760px) { .hero-cards { grid-template-columns: 1fr; } .hcard { min-height: 0; padding: 20px; } .hcard b { font-size: 21px; } }

/* ===== TV ===== */
body.tv { font-size: clamp(16px, 1.2vw, 22px); }
.bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px max(2vw, 14px); border-bottom: 1px solid var(--line); background: #1a0f1fe6; position: sticky; top: 0; z-index: 5; }
.roomcode { font-weight: 600; } .roomcode b { font-family: var(--disp); color: var(--gold); letter-spacing: .1em; margin-left: 4px; }
.roomcode.sm { font-size: 14px; }
.stage { flex: 1; padding: clamp(14px, 2vw, 36px); display: flex; flex-direction: column; }
.center-stack { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; flex: 1; padding: 12px 0; }
.center-stack.fill { min-height: 80vh; }
.gamehead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.gamehead b { font-family: var(--disp); font-size: clamp(18px, 1.6vw, 26px); }
.gamehead .rules { color: var(--mute); font-size: 14px; flex: 1 1 300px; }
.gamebody { flex: 1; display: flex; flex-direction: column; }
.gdot { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--c, var(--gold)); color: #1a0f1f; font-family: var(--disp); font-weight: 800; font-size: 20px; flex: none; box-shadow: inset 0 -4px 0 #0003; }

/* lobby */
.lobby { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.2fr) minmax(220px, .9fr); gap: clamp(14px, 2vw, 28px); align-items: start; }
.joincard { background: var(--card); border-radius: 24px; padding: 22px; text-align: center; position: sticky; top: 80px; box-shadow: 0 6px 0 #0005; }
.bigcode { display: flex; justify-content: center; gap: 8px; margin: 6px 0 14px; }
.bigcode span { font-family: var(--disp); font-weight: 800; font-size: clamp(40px, 4.6vw, 80px); width: 1.15em; height: 1.35em; display: grid; place-items: center; background: var(--gold); color: #1a0f1f; border-radius: 14px; box-shadow: 0 5px 0 #a87600; }
.qr { width: min(220px, 70%); margin: 0 auto 10px; background: #fff; padding: 12px; border-radius: 14px; }
.qr svg { display: block; width: 100%; height: auto; }
.url { font-size: 15px; color: var(--mute); word-break: break-all; }
.plist { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.gtile { --c: var(--gold); text-align: left; border: 0; border-radius: var(--r); padding: 16px; background: var(--card); display: flex; flex-direction: column; gap: 6px; box-shadow: inset 0 0 0 2px #ffffff10, 0 5px 0 #0005; transition: transform .1s, box-shadow .1s; }
.gtile:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--c), 0 7px 0 #0005; }
.gtile .gdot { background: var(--c); }
.gtile b { font-family: var(--disp); font-size: 19px; line-height: 1.15; }
.gtile span:not(.gdot) { color: var(--mute); font-size: 15px; flex: 1; }
.gtile em { font-style: normal; font-weight: 700; color: var(--c); font-size: 14px; }
.gtile.done { opacity: .8; } .gtile.done b::after { content: ' ✓'; color: var(--good); }
.gtile.soon { opacity: .5; border: 2px dashed var(--line); box-shadow: none; } .gtile.soon .gdot { background: var(--line); color: var(--ink); }
.night { background: var(--card); border-radius: 24px; padding: 20px; }
.night ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.night li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; background: #ffffff08; }
.night li:first-child { background: #f5b30126; }
.night li > span:not(.av) { flex: 1; font-weight: 600; } .night li b { font-family: var(--disp); color: var(--gold); }
@media (max-width: 1100px) { .lobby { grid-template-columns: 1fr 1.6fr; } .night { grid-column: 1 / -1; } }
@media (max-width: 720px) { .lobby { grid-template-columns: 1fr; } .joincard { position: static; } }

/* modal */
.modal-bg { position: fixed; inset: 0; background: #0009; z-index: 20; }
.modal { --c: var(--gold); position: fixed; z-index: 21; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 94vw); max-height: 92vh; overflow: auto; background: var(--bg2); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 0 0 2px var(--c), 0 20px 60px #000a; font-size: 17px; }
.modal .gdot { background: var(--c); }
.mhead { display: flex; gap: 12px; align-items: flex-start; } .mhead > div { flex: 1; } .mhead h2 { margin: 0 0 4px; } .mhead p { color: var(--mute); margin: 0; }
.note { background: #ffffff0d; border-radius: 12px; padding: 10px 12px; font-size: 15px; color: var(--mute); margin: 0; }
.err { color: var(--coral); font-weight: 600; margin: 0; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.opt-row select { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); padding: 0 12px; font-size: 16px; }
.who > span { display: block; font-weight: 600; margin-bottom: 8px; }
.who > div { display: flex; flex-wrap: wrap; gap: 8px; }
.who label.chip { cursor: pointer; } .who input { accent-color: var(--gold); width: 18px; height: 18px; }
.stepper { display: flex; align-items: center; gap: 8px; } .stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 22px; } .stepper b { min-width: 1.5em; text-align: center; font-size: 20px; }
.modal .btn.huge { align-self: center; }

/* ===== quiz ===== */
.quiz { display: flex; flex-direction: column; gap: clamp(12px, 2vh, 26px); flex: 1; }
.qmeta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qtext { font-family: var(--disp); font-weight: 800; font-size: clamp(26px, 3.6vw, 58px); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.opt { display: flex; align-items: center; gap: 14px; padding: clamp(14px, 2vh, 26px) 20px; border-radius: var(--r); font-size: clamp(18px, 2vw, 32px); font-weight: 700; color: #1a0f1f; box-shadow: 0 5px 0 #0005; position: relative; transition: opacity .3s, transform .3s; }
button.opt { border: 0; text-align: left; width: 100%; font-family: inherit; }
.opt b { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 10px; background: #0002; flex: none; font-family: var(--disp); }
.opt span { flex: 1; }
.o0 { background: var(--coral); } .o1 { background: var(--gold); } .o2 { background: var(--teal); } .o3 { background: var(--blue); }
.opt.dim { opacity: .25; transform: scale(.97); }
.opt.right { outline: 5px solid #fff; transform: scale(1.02); }
.opt .who { font-style: normal; display: flex; gap: 4px; flex-wrap: wrap; }
.opts.tf .opt b { display: none; }
.qfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.answered { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; } .answered > span { color: var(--mute); margin-left: 6px; }
.mini-board { display: flex; flex-wrap: wrap; gap: 8px 16px; } .mini-board > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; } .mini-board b { color: var(--gold); } .mini-board em { color: var(--good); font-style: normal; font-weight: 700; }
.mini-board.col { flex-direction: column; } .mini-board .got { color: var(--good); }

/* phones */
body.phone #app { max-width: 640px; margin: 0 auto; width: 100%; }
.pbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #1a0f1ff2; z-index: 5; }
#pme { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.pbar .roomcode { white-space: nowrap; }
@media (max-width: 420px) { .pbar .rlabel { display: none; } .pbar { gap: 8px; } }
.pmain { padding: 16px; padding-bottom: max(24px, env(safe-area-inset-bottom)); flex: 1; display: flex; flex-direction: column; gap: 12px; }
.pgame { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.result { text-align: center; padding: 30px 18px; border-radius: 24px; background: var(--card); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.result h2 { font-size: 28px; } .result.good { background: #1d5a3a; } .result.badr { background: #5a1d2a; }
.result .big, .big { font-family: var(--disp); font-size: 44px; font-weight: 800; color: var(--gold); margin: 0; }
.pq { display: flex; flex-direction: column; gap: 12px; }
.pq-text { font-weight: 700; font-size: 19px; }
.pads { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pad { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 12px 16px; border: 0; border-radius: var(--r); text-align: left; font-weight: 700; font-size: 18px; color: #1a0f1f; box-shadow: 0 5px 0 #0005; }
.pad b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #0002; flex: none; }
.pad:active { transform: translateY(3px); box-shadow: 0 2px 0 #0005; }
.pads.tf .pad { min-height: 110px; font-size: 24px; justify-content: center; } .pads.tf .pad b { display: none; }
.pads.one .pad:nth-child(3) { background: var(--teal); }
.bigav { margin-bottom: 6px; }
.teamtag { --c: var(--gold); align-self: center; padding: 6px 16px; border-radius: 999px; background: var(--c); color: #1a0f1f; font-weight: 800; }
.bigchoice { --c: var(--gold); width: 100%; max-width: 420px; min-height: 76px; border: 0; border-radius: var(--r); background: var(--c); color: #1a0f1f; font-family: var(--disp); font-weight: 800; font-size: 22px; box-shadow: 0 5px 0 #0005; }
.bigchoice:not([style]) { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line), 0 5px 0 #0005; }

/* jollof */
.teambar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-bottom: 14px; }
.teambar > div:not(.vs) { --c: #fff; background: var(--c); color: #1a0f1f; border-radius: 16px; padding: 10px 18px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 5px 0 #0005; }
.teambar span { font-family: var(--disp); font-size: clamp(22px, 2.4vw, 40px); font-weight: 800; }
.teambar .vs { font-family: var(--disp); color: var(--mute); }
.teams2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: min(900px, 100%); }
.teamcol { --c: #fff; border: 3px solid var(--c); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 8px; align-items: center; min-height: 200px; }
.teamcol h2 { color: var(--c); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { min-height: 74px; border: 0; border-radius: 14px; background: #fff6ea; color: #2a1a10; font-weight: 700; font-size: 16px; padding: 6px; box-shadow: 0 4px 0 #0006; }
.tile.g { background: var(--good); color: #032; } .tile.b { background: var(--coral); color: #fff; text-decoration: line-through; }
.rushrows, .vrows { display: flex; flex-direction: column; gap: 10px; width: min(820px, 100%); }
.rushrow, .vrow { --c: var(--gold); display: grid; grid-template-columns: auto 10em 1fr 3em; gap: 12px; align-items: center; text-align: left; font-weight: 600; }
.meter { height: 18px; border-radius: 999px; background: #ffffff14; overflow: hidden; } .meter i { display: block; height: 100%; background: var(--c); border-radius: inherit; transition: width .3s; }
.vrow { --c: var(--teal); } .vrow.top { --c: var(--gold); font-size: 1.15em; }

/* act am */
.teamscores { display: flex; gap: 12px; flex-wrap: wrap; }
.ts { --c: #fff; flex: 1 1 180px; border-radius: 16px; padding: 10px 16px; border: 2px solid var(--c); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; opacity: .6; }
.ts.on { opacity: 1; background: color-mix(in srgb, var(--c) 22%, transparent); }
.ts b { flex: 1; } .ts > span { font-family: var(--disp); font-size: 30px; font-weight: 800; color: var(--c); } .ts i { display: flex; gap: 3px; width: 100%; font-style: normal; }
.bigtimer { line-height: 1; }
.tally { font-size: 22px; font-weight: 700; }
.wordlist { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 900px; }
.w { padding: 6px 14px; border-radius: 999px; font-weight: 600; } .w.good { background: #2fd06b33; color: #b8ffd2; } .w.badw { background: #ff4f6d26; color: #ffc2cc; text-decoration: line-through; }
.actor { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.word { flex: 1; min-height: 40vh; display: grid; place-items: center; text-align: center; font-family: var(--disp); font-weight: 800; font-size: clamp(30px, 9vw, 56px); line-height: 1.1; background: var(--gold); color: #1a0f1f; border-radius: 24px; padding: 20px; box-shadow: 0 6px 0 #a87600; }
.row2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; } .row2 .btn { min-height: 70px; font-size: 20px; }

/* who go / pikin votes */
.votegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vbtn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border: 0; border-radius: var(--r); background: var(--card); font-weight: 700; box-shadow: inset 0 0 0 2px #ffffff12, 0 4px 0 #0005; }
.vbtn:active { box-shadow: inset 0 0 0 3px var(--gold); }

/* na lie */
.stmts { display: flex; flex-direction: column; gap: 12px; width: min(900px, 100%); }
.stmt { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r); background: var(--card); text-align: left; font-size: clamp(18px, 2vw, 30px); font-weight: 600; transition: all .3s; }
.stmt b { font-family: var(--disp); color: var(--gold); } .stmt span { flex: 1; } .stmt em { font-style: normal; color: var(--mute); font-size: .7em; }
.stmt.lie { background: var(--coral); color: #fff; transform: scale(1.03); } .stmt.lie b { color: #fff; } .stmt.lie em { color: #fff; }
.stmt.truth { opacity: .5; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.form input[type=text], .form input:not([type]), .form input[name=code], .form input[name=name] { min-height: 52px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); padding: 0 14px; font-size: 17px; }
.form input:focus { border-color: var(--gold); outline: none; }
.stmt-in { flex-direction: row !important; align-items: center; gap: 8px !important; }
.stmt-in input[type=radio] { width: 22px; height: 22px; accent-color: var(--coral); flex: none; }
.stmt-in span { font-size: 13px; color: var(--mute); width: 2.4em; flex: none; }
.stmt-in input[type=text] { flex: 1; }

/* ===== whot ===== */
.whot-table { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.seats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; } .seats.col { flex-direction: column; }
.seat { --c: var(--gold); display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--card); border: 2px solid transparent; }
.seat.on { border-color: var(--c); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 50%, transparent); }
.seat.won { background: #1d5a3a; }
.seat .cc { color: var(--mute); font-size: .85em; } .seat .lc { font-style: normal; background: var(--coral); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.felt { flex: 1; min-height: 300px; border-radius: 40px; background: radial-gradient(ellipse at center, #1f6b4a, #0f3d2a 75%); box-shadow: inset 0 0 0 10px #5a3a1e, inset 0 0 60px #0008, 0 8px 0 #0006; display: flex; align-items: center; justify-content: center; gap: clamp(30px, 6vw, 100px); padding: 30px; }
.stackm { display: flex; flex-direction: column; align-items: center; gap: 10px; } .stackm small { font-weight: 600; font-size: 18px; display: flex; align-items: center; gap: 6px; } .stackm .shp { width: 22px; height: 22px; fill: var(--gold); }
.log { text-align: center; } .log p { margin: 2px; font-weight: 600; font-size: 1.1em; } .log .old { opacity: .5; font-size: .9em; }
.wcard { --w: 74px; width: var(--w); height: calc(var(--w) * 1.42); border-radius: calc(var(--w) * .12); background: #fdf6ea; color: #7a1030; position: relative; display: grid; place-items: center; box-shadow: 0 3px 0 #0005, inset 0 0 0 3px #7a103022; flex: none; }
.wcard .shp { width: 62%; height: 62%; fill: #7a1030; }
.wcard .cn { position: absolute; top: 5%; left: 9%; font-weight: 800; font-size: calc(var(--w) * .22); line-height: 1; }
.wcard .cn.b { top: auto; left: auto; bottom: 5%; right: 9%; transform: rotate(180deg); }
.wcard .whotw { font-family: var(--disp); font-weight: 800; font-size: calc(var(--w) * .2); transform: rotate(-30deg); }
.wcard.big { --w: clamp(110px, 12vw, 180px); }
.wcard.sm { --w: 46px; }
.wcard.back { --w: clamp(100px, 11vw, 160px); background: repeating-linear-gradient(45deg, #7a1030 0 10px, #8e1a3c 10px 20px); color: #fdf6ea; box-shadow: 0 3px 0 #0005, 4px 4px 0 #5a0a22, 8px 8px 0 #3d0617; }
.wcard.back span { font-family: var(--disp); font-weight: 800; font-size: 20px; transform: rotate(-30deg); }
.wcard.s-whot { background: #7a1030; color: #fdf6ea; }
.hand { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 6px 0; }
.hand .wcard { --w: 68px; transition: transform .12s; }
.hand .wcard.ok { cursor: pointer; transform: translateY(-6px); box-shadow: 0 0 0 3px var(--gold), 0 8px 0 #0006; }
.hand .wcard.no { opacity: .45; }
.ptop { display: flex; align-items: center; gap: 12px; justify-content: center; font-weight: 600; } .ptop > span .shp { width: 18px; height: 18px; fill: var(--gold); vertical-align: middle; }
.shapes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shapebtn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; border: 0; border-radius: var(--r); background: #fdf6ea; color: #7a1030; font-weight: 800; text-transform: capitalize; box-shadow: 0 4px 0 #0006; }
.shapebtn .shp { width: 50px; height: 50px; fill: #7a1030; }

/* ===== ludo ===== */
.ludo-wrap { display: grid; grid-template-columns: minmax(0, min(76vh, 880px)) minmax(240px, 340px); gap: 24px; justify-content: center; align-items: start; flex: 1; }
.ludo-board { width: 100%; aspect-ratio: 1; }
.ludo-side .seat { border-color: color-mix(in srgb, var(--c) 45%, transparent); } .ludo-side .seat.on { border-color: var(--c); }
.ludo { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 0 #0006); }
.tok.can { cursor: pointer; } .tok .pulse { animation: tokp .8s infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes tokp { to { transform: scale(1.25); opacity: .4; } }
.ludo-side { display: flex; flex-direction: column; gap: 14px; }
.dicebox { --c: var(--gold); background: var(--card); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; border: 3px solid var(--c); } .dicebox p { margin: 0; font-weight: 600; }
.die { width: 84px; height: 84px; border-radius: 18px; background: #fff; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 12px; box-shadow: 0 5px 0 #0006; }
.die i { width: 14px; height: 14px; border-radius: 50%; background: #1a0f1f; place-self: center; }
.d1 i:nth-child(1) { grid-area: 2/2; }
.d2 i:nth-child(1) { grid-area: 1/1; } .d2 i:nth-child(2) { grid-area: 3/3; }
.d3 i:nth-child(1) { grid-area: 1/1; } .d3 i:nth-child(2) { grid-area: 2/2; } .d3 i:nth-child(3) { grid-area: 3/3; }
.d4 i:nth-child(1), .d5 i:nth-child(1), .d6 i:nth-child(1) { grid-area: 1/1; }
.d4 i:nth-child(2), .d5 i:nth-child(2), .d6 i:nth-child(2) { grid-area: 1/3; }
.d4 i:nth-child(3), .d5 i:nth-child(3), .d6 i:nth-child(3) { grid-area: 3/1; }
.d4 i:nth-child(4), .d5 i:nth-child(4), .d6 i:nth-child(4) { grid-area: 3/3; }
.d5 i:nth-child(5) { grid-area: 2/2; }
.d6 i:nth-child(5) { grid-area: 2/1; } .d6 i:nth-child(6) { grid-area: 2/3; }
.toklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tokbtn { --c: var(--gold); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; border-radius: var(--r); border: 2px solid var(--line); background: var(--card); font-weight: 700; }
.tokbtn i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 3px solid #fff; }
.tokbtn span { font-weight: 400; color: var(--mute); font-size: 14px; }
.tokbtn.can { border-color: var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 60%, transparent); } .tokbtn:disabled { opacity: .55; }
@media (max-width: 860px) { .ludo-wrap { grid-template-columns: 1fr; } .ludo-board { width: 100%; max-width: 560px; margin: 0 auto; } }

/* ===== draw ===== */
.draw-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: 20px; flex: 1; }
.draw-main { display: flex; flex-direction: column; gap: 10px; }
.drawcv { width: 100%; aspect-ratio: 4/3; background: #fffdf7; border-radius: 18px; box-shadow: 0 6px 0 #0006; display: block; touch-action: none; }
.draw-main .drawcv { width: min(100%, calc(68vh * 4 / 3)); align-self: center; }
.draw-side { display: flex; flex-direction: column; gap: 14px; }
.blanks { font-family: var(--disp); font-weight: 800; font-size: clamp(22px, 2.6vw, 40px); letter-spacing: .1em; }
.feed p { margin: 4px 0; padding: 6px 12px; background: #ffffff0a; border-radius: 10px; } .feed .ok { background: #2fd06b33; font-weight: 700; } .feed em { color: var(--gold); font-style: normal; }
.drawpad { display: flex; flex-direction: column; gap: 10px; }
.pens { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pen { --c: #000; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #ffffff30; background: var(--c); }
.pen.on { border-color: var(--gold); transform: scale(1.1); }
.pen.size { background: var(--card); font-weight: 800; }

/* ===== pikin ===== */
.pikin { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: center; flex: 1; }
.photo-frame { background: #fdf6ea; padding: 14px 14px 50px; border-radius: 8px; transform: rotate(-2deg); box-shadow: 0 12px 30px #000a; justify-self: center; max-width: 100%; }
.photo-frame img { display: block; max-height: 64vh; max-width: 100%; object-fit: contain; border-radius: 4px; }
.pikin-side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.upload { position: relative; display: grid; place-items: center; width: 100%; min-height: 140px; border: 3px dashed var(--gold); border-radius: 22px; font-weight: 700; font-size: 20px; color: var(--gold); cursor: pointer; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (max-width: 860px) { .pikin { grid-template-columns: 1fr; } .pikin-side { align-items: center; text-align: center; } }

/* ===== ayo ===== */
.ayo-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 1; justify-content: center; }
.ayo { background: linear-gradient(#8d5524, #6b3d16); border-radius: 40px; padding: clamp(10px, 1.6vw, 22px); display: flex; flex-direction: column; gap: clamp(8px, 1.2vw, 16px); box-shadow: inset 0 3px 0 #b07038, 0 10px 0 #3d2209; width: min(980px, 100%); }
.ayo-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, 1vw, 14px); }
.pit { aspect-ratio: 1; border-radius: 50%; border: 0; background: radial-gradient(circle at 50% 40%, #3d2209, #5a3412); box-shadow: inset 0 6px 10px #0009; position: relative; display: grid; place-items: center; font-size: clamp(12px, 1.6vw, 24px); padding: 0; }
.pit b { position: absolute; bottom: -2px; right: 4%; background: #fdf6ea; color: #3d2209; border-radius: 999px; min-width: 1.6em; padding: 0 .3em; font-size: .8em; line-height: 1.5; }
.pit .seeds { position: absolute; inset: 0; }
.pit .seeds i { position: absolute; left: 50%; top: 50%; width: .5em; height: .5em; margin: -.25em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f1e4c8, #a08a5c); transform: rotate(var(--a)) translate(calc(var(--d) * 1.1em)); }
.pit.can { cursor: pointer; box-shadow: inset 0 6px 10px #0009, 0 0 0 3px var(--gold); }
.pit.hl { box-shadow: inset 0 6px 10px #0009, 0 0 0 3px var(--teal); }
.pit:disabled { cursor: default; }
.ayo-player { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--card); border: 2px solid transparent; }
.ayo-player.on { border-color: var(--gold); }
.ayo-player .store { font-family: var(--disp); font-weight: 800; font-size: 26px; color: var(--gold); }
.ayo-score { display: flex; justify-content: space-between; font-size: 18px; }
.pgame .ayo { border-radius: 22px; padding: 8px; gap: 8px; } .pgame .ayo-row { gap: 5px; } .pgame .pit { font-size: 13px; }

/* ===== results ===== */
.results { --c: var(--gold); display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: 28px; flex: 1; align-items: start; }
.res-main .btn + .btn { margin-top: -4px; }
.res-main { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.podium { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; width: min(720px, 100%); }
.podium li { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 12px; align-items: center; padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--card); text-align: left; }
.podium .pl0 { background: color-mix(in srgb, var(--gold) 30%, var(--card)); font-size: 1.15em; }
.podium .pn { font-weight: 700; } .podium .pp { color: var(--mute); } .podium .ps { font-weight: 600; } .podium .plus { color: var(--good); font-family: var(--disp); }
.reslines p { margin: 4px 0; color: var(--mute); } .reslines b { color: var(--ink); }
.forfeit { background: var(--coral); color: #fff; border-radius: 20px; padding: 16px 22px; display: flex; flex-direction: column; gap: 4px; max-width: 640px; box-shadow: 0 6px 0 #a0233c; }
.forfeit span { font-weight: 600; opacity: .9; } .forfeit b { font-family: var(--disp); font-size: clamp(18px, 2vw, 28px); }
@media (max-width: 860px) { .results { grid-template-columns: 1fr; } }

/* ===== join ===== */
.joinwrap { padding: 30px 18px; display: flex; flex-direction: column; gap: 22px; align-items: center; }
.joinwrap .form { width: 100%; max-width: 420px; }
.codein { font-family: var(--disp); font-size: 34px !important; text-align: center; letter-spacing: .3em; text-transform: uppercase; }
.colpick { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.colpick label { cursor: pointer; } .colpick input { position: absolute; opacity: 0; pointer-events: none; }
.colpick i { display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--c); border: 3px solid transparent; }
.colpick input:checked + i { border-color: #fff; transform: scale(1.12); }
.colpick input:focus-visible + i { outline: 3px solid var(--gold); }
#reconn { position: fixed; inset: 0; background: #1a0f1fe0; z-index: 50; display: grid; place-items: center; text-align: center; padding: 20px; }
#reconn b { font-family: var(--disp); font-size: 26px; display: block; margin-bottom: 8px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--gold); color: #1a0f1f; padding: 10px 18px; border-radius: 999px; font-weight: 700; transition: transform .25s; z-index: 60; }
#toast.show { transform: translate(-50%, 0); }

/* ===== solo ===== */
body.solo.playing #app { max-width: 1100px; }
.solo-main { flex: 1; display: flex; flex-direction: column; }
.solo-stage { padding: 14px; flex: 0 1 auto; }
.solo-stage .display { font-size: clamp(24px, 6vw, 44px); }
.ctl[hidden] { display: none; }
.solo .ctl .pq-text, .solo .ctl .pq .qmeta { display: none; }
.solo .opts { grid-template-columns: 1fr; } .solo .opt { padding: 12px 14px; font-size: 18px; }
.solo .pads.tf .pad { min-height: 80px; }
.solo .whot-table .felt { min-height: 200px; } .solo .wcard.big { --w: 96px; } .solo .wcard.back { --w: 86px; }
.solo .qtext { font-size: clamp(22px, 5.5vw, 40px); }
.ggrid.solo { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.rulesbox { margin: 0 16px 20px; color: var(--mute); font-size: 15px; } .rulesbox summary { cursor: pointer; font-weight: 600; }
@media (max-width: 600px) {
  .opts { grid-template-columns: 1fr; }
  .teambar { grid-template-columns: 1fr 1fr; } .teambar .vs { display: none; }
  .rushrow, .vrow { grid-template-columns: auto 6em 1fr 2.4em; }
  .draw-wrap { grid-template-columns: 1fr; }
  .teams2 { grid-template-columns: 1fr; }
  .felt { border-radius: 26px; gap: 24px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== characters & party vibe ===== */
.chr { display: block; width: 100%; height: 100%; overflow: visible; }
.av { overflow: hidden; background: color-mix(in srgb, var(--c) 30%, #3a2444); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 70%, transparent); }
.av .chr { width: 112%; height: 112%; margin: -2% -6% 0; }
.bunting { height: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='26' viewBox='0 0 120 26'%3E%3Cpath d='M0 2Q60 10 120 2' stroke='%23fff6' stroke-width='1.5' fill='none'/%3E%3Cpath d='M4 3h20L14 24Z' fill='%23ff4f6d'/%3E%3Cpath d='M34 5.5h20L44 26Z' fill='%23f5b301'/%3E%3Cpath d='M64 5.5h20L74 26Z' fill='%2316c2a3'/%3E%3Cpath d='M94 3h20l-10 21Z' fill='%234f8cff'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 26px; position: relative; z-index: 6; pointer-events: none; }
body.tv .bunting { position: sticky; top: 0; }
body.tv .bar { top: 26px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6%) rotate(2deg); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10%) rotate(-3deg); } 60% { transform: translateY(-4%) rotate(3deg); } }
.crowd { display: flex; justify-content: center; align-items: flex-end; gap: 0; width: 100%; margin: -6px 0 -8px; }
.crowd-one { width: clamp(64px, 11vw, 132px); aspect-ratio: 92/148; animation: hop 1.1s ease-in-out infinite; animation-delay: var(--d); transform-origin: bottom center; margin: 0 -6px; filter: drop-shadow(0 8px 6px #0007); }
.crowd-one:nth-child(even) { margin-bottom: 10px; }
.floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 4px 6px; margin-top: 12px; justify-items: center; }
.dancer { width: 100%; display: flex; flex-direction: column; align-items: center; }
.dancer .chr { height: 104px; width: auto; animation: bob 1.3s ease-in-out infinite; animation-delay: var(--d); transform-origin: bottom center; filter: drop-shadow(0 6px 4px #0006); }
.dancer.off { opacity: .4; } .dancer.off .chr { animation: none; }
.ntag { display: inline-flex; align-items: center; gap: 2px; margin-top: 2px; padding: 2px 4px 2px 10px; border-radius: 999px; background: #ffffff14; font-weight: 700; font-size: 14px; max-width: 100%; }
.ntag button { border: 0; background: none; color: var(--mute); font-size: 16px; padding: 0 4px; }
.mc { display: flex; align-items: flex-end; gap: 8px; justify-content: center; margin: 8px auto; max-width: 560px; text-align: left; }
.mc-chr { width: 92px; flex: none; animation: bob 1.4s ease-in-out infinite; transform-origin: bottom center; }
.mc-chr .chr { height: auto; }
.bubble { position: relative; background: #fff6ea; color: #1a0f1f; font-weight: 700; font-size: clamp(16px, 1.5vw, 22px); padding: 14px 18px; border-radius: 20px 20px 20px 4px; margin-bottom: 70px; box-shadow: 0 5px 0 #0005; }
.bubble::before { content: ''; position: absolute; left: -10px; bottom: 0; border: 10px solid transparent; border-right-color: #fff6ea; border-bottom-color: #fff6ea; }
.me-chr { width: 150px; aspect-ratio: 92/148; animation: hop 1.1s ease-in-out infinite; transform-origin: bottom center; filter: drop-shadow(0 10px 8px #0007); }
.me-chr.sm { width: 96px; }
.stage-chr { width: 130px; aspect-ratio: 92/148; animation: bob 1.2s ease-in-out infinite; transform-origin: bottom center; }
.winner-hero { position: relative; width: 100%; display: flex; justify-content: center; padding-top: 34px; }
.crowned { position: relative; width: clamp(100px, 10vw, 150px); aspect-ratio: 92/148; animation: hop 1s ease-in-out infinite; transform-origin: bottom center; filter: drop-shadow(0 10px 8px #0008); }
.crown { position: absolute; width: 42%; left: 29%; top: -12%; z-index: 2; transform: rotate(-8deg); filter: drop-shadow(0 3px 0 #0005); }
.confetti { position: absolute; inset: -20px 0 auto; height: 260px; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -12px; left: var(--x); width: 9px; height: 14px; background: var(--c); border-radius: 2px; animation: fall 2.6s linear infinite; animation-delay: var(--d); }
@keyframes fall { to { transform: translateY(280px) rotate(540deg); opacity: 0; } }
.forfeit:has(.ff-chr) { flex-direction: row; align-items: center; gap: 12px; text-align: left; }
.forfeit > div { display: flex; flex-direction: column; gap: 4px; }
.ff-chr { width: 64px; flex: none; aspect-ratio: 92/148; }
.result .me-chr { margin-bottom: 4px; }
.gtile { position: relative; overflow: hidden; padding-top: 24px; }
.gtile::before { content: ''; position: absolute; inset: 0 0 auto; height: 10px; opacity: .85;
  background: linear-gradient(135deg, var(--c) 25%, transparent 25%) -5px 0 / 14px 14px, linear-gradient(225deg, var(--c) 25%, transparent 25%) -5px 0 / 14px 14px; }
.gtile.soon::before { display: none; }
.hcard::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; opacity: .35;
  background: linear-gradient(135deg, #1a0f1f 25%, transparent 25%) -6px 0 / 16px 16px, linear-gradient(225deg, #1a0f1f 25%, transparent 25%) -6px 0 / 16px 16px; }
/* join: character picker */
.lookpick { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; background: #ffffff0a; border-radius: 20px; padding: 14px; }
.lp-preview { display: flex; flex-direction: column; align-items: center; gap: 4px; position: sticky; top: 10px; }
.lp-preview .chr { height: 170px; width: auto; animation: hop 1.2s ease-in-out infinite; transform-origin: bottom center; }
.lp-preview span { font-weight: 700; font-size: 14px; color: var(--gold); text-align: center; }
.lp-h { margin: 0 0 6px; font-weight: 700; font-size: 14px; color: var(--mute); }
.lp-side > div { margin-bottom: 12px; }
.stylegrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stylegrid label, .skins label, .colpick label { cursor: pointer; position: relative; }
.stylegrid input, .skins input { position: absolute; opacity: 0; pointer-events: none; }
.stylegrid span { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--c) 25%, #3a2444); border: 3px solid transparent; }
.stylegrid span .chr { width: 120%; height: 120%; margin: -4% -10% 0; }
.stylegrid input:checked + span { border-color: var(--gold); transform: scale(1.06); }
.stylegrid input:focus-visible + span, .skins input:focus-visible + i { outline: 3px solid var(--gold); }
.skins { display: flex; gap: 8px; flex-wrap: wrap; }
.skins i { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 3px solid transparent; }
.skins input:checked + i { border-color: #fff; transform: scale(1.1); }
.lookpick .colpick { justify-content: flex-start; gap: 7px; } .lookpick .colpick i { width: 30px; height: 30px; }
@media (max-width: 380px) { .lookpick { grid-template-columns: 1fr; } .lp-preview { position: static; } .lp-preview .chr { height: 130px; } }
@media (max-width: 760px) { .crowd-one { width: 17vw; margin: 0 -8px; } .crowd-one:nth-child(n+6) { display: none; } }
@media (prefers-reduced-motion: reduce) { .crowd-one, .dancer .chr, .mc-chr, .me-chr, .crowned, .stage-chr, .lp-preview .chr { animation: none !important; } .confetti { display: none; } }
.top-chrs { display: flex; gap: 10px; justify-content: center; }

/* ===== online mode ===== */
.hero-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.h4 { background: var(--blue); }
@media (max-width: 1100px) { .hero-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hero-cards { grid-template-columns: 1fr; } }
.online-intro { text-align: center; max-width: 420px; } .online-intro h2 { margin-bottom: 6px; }
.invite { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 4px; }
.invite .btn { min-height: 44px; padding: 8px 16px; font-size: 15px; text-decoration: none; }
.invite.big .btn.wa { flex: 1 1 100%; min-height: 54px; font-size: 18px; }
.btn.wa { background: #25d366; color: #04310f; box-shadow: 0 4px 0 #128c43; }
.rstage { padding: 10px 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.rstage[hidden] { display: none; }
.rstage .btn, .rstage .gamehead .rules, .rstage .linkbtn { display: none !important; }
.rstage .gamehead { margin-bottom: 8px; } .rstage .gamehead .gdot { width: 32px; height: 32px; font-size: 15px; }
.rstage .display { font-size: clamp(22px, 6.5vw, 34px); }
.rstage .qtext { font-size: clamp(20px, 5.6vw, 30px); }
.rstage .center-stack { padding: 4px 0; gap: 8px; }
.rstage .timer.huge { font-size: 64px; }
.rstage .results { gap: 12px; } .rstage .night { display: none; }
body.has-stage:has(.drawpad) #rstage { display: none; }
.has-stage .pmain .pq-text, .has-stage .pmain .pq .qmeta .pill, body.online .ctl .pq-text, body.online .ctl .pq .qmeta .pill { display: none; }
body.online .ctl { border-top: 1px solid var(--line); max-width: 640px; width: 100%; margin: 0 auto; }
body.online .ctl[hidden] { display: none; }
body.online .stage { padding: clamp(10px, 2vw, 28px); }
@media (max-width: 600px) { body.tv .bar { gap: 8px; padding: 8px 10px; } body.tv #pcount { display: none; } body.tv .bar .iconbtn { padding: 4px 10px; font-size: 13px; min-height: 36px; } }
.has-stage .pmain .dicebox, body.online .ctl .dicebox { display: none; }
body.online .gamehead .rules { display: none; }
@media (min-width: 900px) { body.online .gamehead .rules { display: inline; } }

/* ===== compact one-screen layout for phones (online host + remote players) ===== */
@media (max-width: 700px) {
  body.online .bunting, body.has-stage .bunting { height: 14px; background-size: 64px 14px; position: static; }
  body.online .bar { position: static; padding: 6px 10px; gap: 6px; flex-wrap: nowrap; overflow-x: auto; }
  body.online .bar .logo { font-size: 15px; gap: .3em; flex: none; }
  body.online .bar .ng { display: none; }
  body.online .bar .roomcode { font-size: 13px; flex: none; }
  body.online .bar .grow { display: none; }
  body.online .bar .iconbtn { min-height: 32px; padding: 2px 10px; font-size: 12px; flex: none; }
  .pbar { padding: 6px 12px; } .pbar .av { width: 30px; height: 30px; }
  body.online .stage, .rstage { padding: 8px 10px 4px; flex: none; }
  body.online .gamehead, .rstage .gamehead { display: none; }
  body.online .ctl, .has-stage .pmain { padding: 8px 12px calc(90px + env(safe-area-inset-bottom)); gap: 8px; }
  /* Whot */
  body.online .whot-table, .rstage .whot-table { gap: 8px; }
  body.online .seats, .rstage .seats { gap: 6px; }
  body.online .seat, .rstage .seat { padding: 3px 10px 3px 3px; gap: 6px; font-size: 14px; }
  body.online .seat .av, .rstage .seat .av { width: 30px; height: 30px; }
  body.online .felt, .rstage .felt { min-height: 0; padding: 12px; gap: 28px; border-radius: 22px; box-shadow: inset 0 0 0 6px #5a3a1e, inset 0 0 30px #0008, 0 4px 0 #0006; }
  body.online .wcard.big, .rstage .wcard.big { --w: 66px; }
  body.online .wcard.back, .rstage .wcard.back { --w: 58px; }
  body.online .wcard.back span, .rstage .wcard.back span { font-size: 13px; }
  body.online .stackm small, .rstage .stackm small { font-size: 13px; }
  body.online .log .old, .rstage .log .old { display: none; }
  body.online .log p, .rstage .log p { font-size: 15px; }
  body.online .ctl .ptop, .has-stage .pmain .ptop { display: none; }
  body.online .ctl .hand .wcard, .has-stage .hand .wcard { --w: 52px; }
  body.online .ctl .hand, .has-stage .hand { gap: 6px; padding: 8px 0 0; }
  body.online .ctl .btn.market, .has-stage .btn.market { margin-top: 6px; min-height: 50px; }
  /* Ludo */
  body.online .ludo-wrap, .rstage .ludo-wrap { gap: 8px; }
  body.online .ludo-board, .rstage .ludo-board { width: min(100%, 44vh); margin: 0 auto; }
  body.online .ludo-side .seats.col, .rstage .ludo-side .seats.col { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  body.online .ludo-side .dicebox, .rstage .ludo-side .dicebox { flex-direction: row; padding: 6px 12px; } 
  body.online .die, .rstage .die, .has-stage .die { width: 46px; height: 46px; padding: 7px; border-radius: 10px; } 
  body.online .die i, .rstage .die i { width: 8px; height: 8px; }
  .has-stage .toklist .tokbtn, body.online .ctl .tokbtn { padding: 8px; }
  /* Ayo: the board you tap is in your controls, so the shared screen shows scores only */
  body.online #stage .ayo, .rstage .ayo { display: none; }
  body.online #stage .ayo-wrap, .rstage .ayo-wrap { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  body.online #stage .ayo-wrap .lead, .rstage .ayo-wrap .lead { width: 100%; text-align: center; font-size: 15px; margin: 0; }
  /* Draw, photos, quiz */
  body.online .draw-main .drawcv, .rstage .draw-main .drawcv { width: min(100%, calc(38vh * 4 / 3)); }
  body.online .draw-side .mini-board, .rstage .draw-side .mini-board { display: none; }
  body.online .photo-frame img, .rstage .photo-frame img { max-height: 36vh; }
  body.online .quiz, .rstage .quiz { gap: 8px; }
  body.online .opt, .rstage .opt { padding: 8px 12px; font-size: 16px; }
  body.online .qfoot .answered, .rstage .qfoot .answered { display: none; }
  body.online .teambar, .rstage .teambar { margin-bottom: 6px; } body.online .teambar > div:not(.vs), .rstage .teambar > div:not(.vs) { padding: 6px 12px; }
  body.online .teamscores .ts, .rstage .teamscores .ts { padding: 6px 10px; }
  body.online .timer.huge, .rstage .timer.huge { font-size: 54px; }
}
.pmain { align-items: stretch; } .pgame { width: 100%; }
@media (max-width: 700px) {
  .rstage .quiz .opts, body.online #stage .quiz .opts { display: none; }
  .has-stage .pmain .pq .qmeta, body.online .ctl .pq .qmeta { display: none; }
  .has-stage .pmain .pad, body.online .ctl .pad { min-height: 54px; padding: 8px 14px; font-size: 17px; }
}
