:root {
  --bg: #120e26;
  --panel: #1f1840;
  --panel2: #2a2156;
  --line: #3b3070;
  --ink: #f6f3ff;
  --dim: #a9a1d6;
  --a: #ff5d73;
  --b: #2de2e6;
  --gold: #ffd166;
  --ok: #3ddc84;
  --bad: #ff4d5e;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  /* Coral corner vs cyan corner: the two sides of every duel. */
  background:
    radial-gradient(60% 55% at 0% 100%, #ff5d7326 0%, transparent 70%),
    radial-gradient(60% 55% at 100% 100%, #2de2e626 0%, transparent 70%),
    radial-gradient(120% 80% at 50% 0%, #32246e 0%, var(--bg) 62%) fixed;
  background-color: var(--bg);
  color: var(--ink);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
  overflow-x: hidden;
}
body::before { /* halftone texture */
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(#ffffff0d 1.2px, transparent 1.6px) 0 0 / 22px 22px;
}
/* The TV scales everything with the screen; phones use a fixed, thumb-sized base. */
body.tv { font-size: min(1.45vw, 2.58vh); overflow: hidden; }
body.phone { font-size: 17px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
input { user-select: text; -webkit-user-select: text; }

#app { min-height: 100%; display: flex; flex-direction: column; position: relative; }
.screen, .home, .center {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1em;
  padding: 1.2em; width: 100%; margin: 0 auto; text-align: center;
}
.phone .screen, .home { max-width: 520px; padding-bottom: calc(1.2em + env(safe-area-inset-bottom)); }
.tv .screen { height: 100vh; padding: 1.8em 3em; justify-content: space-between; }
.center { justify-content: center; }
.fresh { animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }

#net {
  position: fixed; top: .6em; left: 50%; transform: translateX(-50%); z-index: 9;
  background: var(--bad); padding: .3em 1em; border-radius: 99px; font-weight: 700;
}
#pausebtn {
  position: fixed; left: .8em; bottom: .8em; z-index: 6; background: var(--panel); color: var(--dim);
  border: 2px solid var(--line); border-radius: 99px; padding: .3em 1em; font-weight: 800; font-size: .85em;
}
#paused {
  position: fixed; inset: 0; z-index: 8; background: #0c0920e6; display: grid; place-content: center; justify-items: center; gap: 1.2em;
}
#paused[hidden], #pausebtn[hidden] { display: none; }
#paused div { font: 400 5em var(--display); color: var(--gold); letter-spacing: .05em; text-shadow: 0 .06em 0 #96711b; }
#fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
#fx i { position: absolute; top: -3vh; width: .7em; height: 1.1em; border-radius: .15em; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(108vh) rotate(720deg); } }

/* ---------- type & controls ---------- */
.logo {
  font: 400 3.6em/0.9 var(--display); margin: .3em 0 0; letter-spacing: .02em;
  color: var(--a); text-shadow: 0 .07em 0 #7a1d30, 0 .14em .2em #0009; transform: rotate(-2deg);
}
.logo span { display: block; color: var(--b); text-shadow: 0 .07em 0 #0f6f73, 0 .14em .2em #0009; }
.logo.sm { font-size: 2.2em; }
.tv .logo { font-size: 4.4em; margin: 0; }
.tv .logo span { display: inline; margin-left: .2em; }
.tag { color: var(--dim); margin: 0; }
.tag b { color: var(--ink); }
.small { font-size: .85em; }
.error { color: var(--bad); font-weight: 700; margin: 0; }
.hint { color: var(--dim); margin: 0; }
.hint b { color: var(--ink); }
.hint b.up { color: var(--ok); }

.card {
  background: var(--panel); border: 2px solid var(--line); border-radius: 1.2em; padding: 1.2em;
  width: 100%; display: grid; gap: .9em; box-shadow: 0 .5em 1.5em #0006;
}
.card label { display: grid; gap: .3em; text-align: left; color: var(--dim); font-size: .8em; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.card input {
  background: var(--bg); border: 2px solid var(--line); border-radius: .7em; padding: .55em .8em;
  font-size: 1.5em; font-weight: 700; color: var(--ink); width: 100%; text-transform: none; letter-spacing: 0;
}
#jc { text-transform: uppercase; letter-spacing: .3em; }
.card input:focus { outline: none; border-color: var(--b); }
.or { color: var(--dim); }

.btn {
  display: inline-block; text-decoration: none; text-align: center;
  background: var(--a); color: #2a0710; font: 400 1.4em var(--display); letter-spacing: .03em;
  padding: .55em 1.4em; border-radius: .7em; box-shadow: 0 .22em 0 #a82a40, 0 .5em 1em #0006;
}
.btn:active { transform: translateY(.15em); box-shadow: 0 .07em 0 #a82a40; }
.btn.alt { background: var(--b); color: #06282a; box-shadow: 0 .22em 0 #14868a, 0 .5em 1em #0006; }
.btn.big { font-size: 1.7em; }
.phone .btn { width: 100%; }
.pill {
  background: var(--panel); border: 2px solid var(--line); border-radius: 99px;
  padding: .35em .9em; font-weight: 800; min-width: 3em; white-space: nowrap;
}
.pill.on { background: var(--gold); border-color: var(--gold); color: #2b2000; }
.rounds { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4em; }
.rounds span { color: var(--dim); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .75em; margin-right: .3em; }
.phone .rounds span { width: 100%; margin: 0; }
.foot { display: grid; gap: .8em; justify-items: center; width: 100%; }

/* difficulty colours */
.lv0 { --lv: #3ddc84; } .lv1 { --lv: #6fb1ff; } .lv2 { --lv: #ffd166; } .lv3 { --lv: #ff9a3d; } .lv4 { --lv: #ff4d9d; }
.lv {
  font-style: normal; font-weight: 800; font-size: .72em; text-transform: uppercase; letter-spacing: .06em;
  color: var(--lv); border: 2px solid var(--lv); border-radius: 99px; padding: .1em .6em; white-space: nowrap;
}
.pill[class*="lv"].on { background: var(--lv); border-color: var(--lv); color: #14102a; }

/* ---------- players ---------- */
.av {
  --h: 0; display: inline-grid; place-items: center; flex: none;
  width: 1.9em; height: 1.9em; border-radius: 50%;
  background: linear-gradient(160deg, hsl(var(--h) 90% 68%), hsl(var(--h) 75% 52%));
  color: #16102c; font: 400 1em var(--display); box-shadow: inset 0 -.12em 0 #0003;
}
.av.xl { font-size: 2.6em; box-shadow: inset 0 -.1em 0 #0003, 0 0 0 .08em var(--bg), 0 0 0 .14em currentColor; }
.pchip {
  display: inline-flex; align-items: center; gap: .45em; background: var(--panel);
  border: 2px solid var(--line); border-radius: 99px; padding: .2em .8em .2em .2em; font-size: .95em;
}
.pchip.off { opacity: .4; }
.pchip em { font-style: normal; color: var(--gold); font-weight: 800; }
.pchip .crown { font-style: normal; font-size: .65em; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); border: 2px solid var(--gold); border-radius: 99px; padding: 0 .5em; }
.coins { display: inline-flex; align-items: center; gap: .3em; color: var(--gold); font-weight: 800; }
.coin { width: .85em; height: .85em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 45%, #b8862b); box-shadow: 0 0 0 .08em #96711b; display: inline-block; }
.tapchip:active .pchip { border-color: var(--gold); }
.plist { display: flex; flex-wrap: wrap; gap: .5em; justify-content: center; }
.tv .plist { font-size: 1.2em; }

/* ---------- lobby (TV) ---------- */
.joinbox {
  display: flex; align-items: center; gap: 2em; background: var(--panel);
  border: 3px solid var(--line); border-radius: 1.5em; padding: 1.1em 2.2em 1.1em 1.1em; text-align: left;
  box-shadow: 0 1em 3em #0008;
}
.qr { width: 11.5em; height: 11.5em; background: #fff; border-radius: .8em; overflow: hidden; }
.qr svg { width: 100%; height: 100%; display: block; }
.lbl { color: var(--dim); text-transform: uppercase; letter-spacing: .1em; font-weight: 800; font-size: .8em; }
.url { font-size: 2em; font-weight: 800; margin-bottom: .2em; }
.code { font: 400 5.5em/1 var(--display); color: var(--gold); letter-spacing: .08em; text-shadow: 0 .06em 0 #96711b; }

/* ---------- intro ---------- */
.top {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  color: var(--dim); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .85em;
}
.cd { background: var(--panel); border: 2px solid var(--line); border-radius: 99px; min-width: 2.6em; padding: .1em .6em; color: var(--gold); font-size: 1.2em; }
.cd:empty { visibility: hidden; }
.gblurb { color: var(--gold); text-transform: uppercase; letter-spacing: .2em; font-weight: 800; font-size: .85em; }
.gname { font: 400 3em/1 var(--display); margin-top: -.25em; text-shadow: 0 .06em 0 #0008; }
.tv .gname { font-size: 3.8em; }
.ghow { color: var(--dim); max-width: 34em; font-size: 1.05em; }
.tv .ghow { font-size: 1.35em; }
.vs { display: flex; align-items: stretch; justify-content: center; gap: 1.5em; width: 100%; flex: 1; min-height: 0; margin: .3em 0; }
.side {
  flex: 1; max-width: 27em; display: flex; flex-direction: column; align-items: center; gap: .45em;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, var(--panel)), var(--panel));
  border: 3px solid var(--c); border-radius: 1.5em; padding: 1em; color: var(--c);
  box-shadow: 0 0 2.5em color-mix(in srgb, var(--c) 30%, transparent);
}
.s0 { --c: var(--a); }
.s1 { --c: var(--b); }
.fresh .side.s0 { animation: inL .45s cubic-bezier(.2, 1.3, .4, 1); }
.fresh .side.s1 { animation: inR .45s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes inL { from { transform: translateX(-40vw); } }
@keyframes inR { from { transform: translateX(40vw); } }
.dname { font: 400 2.5em/1 var(--display); }
.odds { font: 400 2.2em/1 var(--display); color: var(--gold); }
.odds small { font: 800 .32em system-ui, sans-serif; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; vertical-align: middle; }
.pool { font-weight: 800; color: var(--ink); }
.pool small { font-size: .7em; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.backers { display: flex; flex-wrap: wrap; gap: .35em; justify-content: center; color: var(--ink); font-size: .9em; }
.vsmark { align-self: center; font: 400 4.2em var(--display); color: var(--gold); text-shadow: 0 .07em 0 #96711b; transform: rotate(-6deg); }
.fresh .vsmark { animation: slam .5s .25s cubic-bezier(.2, 1.6, .4, 1) backwards; }
@keyframes slam { from { transform: scale(4) rotate(20deg); opacity: 0; } }
.youup {
  font: 400 3em/1 var(--display); color: var(--c); border: 3px solid var(--c);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, var(--panel)), var(--panel));
  border-radius: .5em; padding: .6em; width: 100%; margin: auto 0; display: grid; gap: .25em; justify-items: center;
  box-shadow: 0 0 1em color-mix(in srgb, var(--c) 35%, transparent);
}
.youup small { font-size: .45em; color: var(--ink); }
.youup .lv { font-size: .26em; font-family: system-ui, sans-serif; }
.betrow { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; width: 100%; margin-top: auto; }
.betbtn {
  display: grid; justify-items: center; gap: .3em; padding: 1em .5em; border-radius: 1.2em; color: var(--ink);
  background: var(--panel); border: 3px solid var(--c); font-size: 1.15em; min-height: 8em; align-content: center;
}
.betbtn .av { font-size: 1.5em; }
.betbtn .odds { font-size: 1.5em; }
.betbtn.on { background: var(--c); color: #14102a; box-shadow: 0 0 1.2em color-mix(in srgb, var(--c) 50%, transparent); }
.betbtn.on .odds { color: #14102a; }
.amts { display: flex; gap: .5em; flex-wrap: wrap; justify-content: center; margin-bottom: auto; }
.amts .pill { font-size: 1.15em; padding: .5em 1.1em; }

/* ---------- duel ---------- */
.duel { gap: .6em; }
.phone .duel { padding: .7em; height: 100dvh; }
.sb { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6em; width: 100%; }
.sbp {
  display: flex; align-items: center; gap: .5em; color: var(--c); font-weight: 800; min-width: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), transparent);
  border-radius: 99px; padding: .2em;
}
.sbp b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbp.s1 { justify-content: flex-end; background: linear-gradient(270deg, color-mix(in srgb, var(--c) 22%, transparent), transparent); }
.sbg { font: 400 1.05em var(--display); color: var(--dim); white-space: nowrap; }
.tv .sb { font-size: 1.6em; }
/* Phones: game title on its own line so both names get the full width. */
.phone .sb { grid-template-columns: 1fr 1fr; }
.phone .sbg { grid-column: 1 / -1; grid-row: 1; font-size: .9em; }
.pips { display: inline-flex; gap: .25em; align-items: center; flex: none; }
.pips i { width: .75em; height: .75em; border-radius: 50%; border: 2px solid currentColor; }
.pips i.on { background: currentColor; box-shadow: 0 0 .5em currentColor; }
.pips em { font-style: normal; color: var(--ok); }
#stage {
  flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .7em; min-height: 0; overflow: hidden;
}
.tv #stage { font-size: 1.45em; }
.tv .opts.six { grid-template-columns: repeat(3, 1fr); max-width: 36em; }
.lead { font: 400 4em var(--display); color: var(--gold); text-shadow: 0 .06em 0 #96711b; animation: slam .35s cubic-bezier(.2, 1.5, .4, 1); }
.msg { color: var(--dim); font-weight: 800; font-size: 1.1em; min-height: 1.4em; flex: none; }
#banner { width: 100%; min-height: 4em; flex: none; }
.rv {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6em;
  background: var(--panel); border: 3px solid var(--line); border-radius: 1em; padding: .6em 1em; animation: pop .25s ease-out;
}
.rv.w0 { border-color: var(--a); box-shadow: 0 0 1.5em #ff5d7355; }
.rv.w1 { border-color: var(--b); box-shadow: 0 0 1.5em #2de2e655; }
.rv span { color: var(--c); font-weight: 800; }
.rv b { font: 400 1.4em var(--display); }
.tv .rv { font-size: 1.5em; }

/* shared stage pieces */
.bigpad {
  flex: 1; width: 100%; max-width: 30em; min-height: 0; border-radius: 1.2em;
  font: 400 3em var(--display); color: #14102a; display: grid; place-content: center;
  box-shadow: inset 0 -.14em 0 #0003, 0 .3em 1em #0006;
}
.tv .bigpad { max-height: 70%; }
.bigpad.short { flex: none; height: 4.2em; }
.bigpad.wait { background: #4a3f7a; color: var(--ink); }
.bigpad.go { background: var(--ok); }
.bigpad.foul { background: var(--bad); }
.bigpad.done { background: var(--gold); }
.bigpad.f-orange { background: #ff9a3d; }
.bigpad.f-blue { background: #3d8bff; }
.bigpad small { display: block; font-size: .6em; }
.bigpad.mash:active { transform: scale(.97); }
.field { position: relative; flex: 1; width: 100%; max-width: 34em; min-height: 0; display: flex; }
.tv .field { max-width: 60%; }
.bigpad.hop { position: absolute; left: 25%; top: 22%; width: 50%; height: 45%; flex: none; font-size: 2em; }
.bigpad.hop.small { width: 32%; height: 30%; font-size: 1.3em; left: 34%; top: 35%; }
.tgt {
  position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, var(--bad) 19% 42%, #fff 43% 64%, var(--bad) 65%);
  box-shadow: 0 .2em .8em #0008; animation: pop .12s ease-out;
}

.pads { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; width: min(100%, 22em); aspect-ratio: 1; }
.pad { border-radius: 1.2em; opacity: .3; transition: opacity .08s, transform .08s; box-shadow: inset 0 -.3em 0 #0003; }
.pad.on { opacity: 1; transform: scale(1.04); box-shadow: 0 0 2em currentColor; }
.p0 { background: var(--a); color: var(--a); }
.p1 { background: var(--b); color: var(--b); }
.p2 { background: var(--gold); color: var(--gold); }
.p3 { background: var(--ok); color: var(--ok); }

.tug { display: flex; flex: none; width: 100%; max-width: 40em; height: 2.6em; border-radius: 99px; overflow: hidden; border: 3px solid var(--line); }
.tug div { flex: 3 1 0; background: var(--c); color: #14102a; font: 400 1.4em var(--display); display: grid; place-items: center; transition: flex-grow .15s; }
.tug.race { height: 1.9em; }
.tug.race div { font-size: 1.05em; }

.target { font: 400 4.5em/1 var(--display); color: var(--gold); text-shadow: 0 .06em 0 #96711b; }
.clock { font: 700 2.6em/1 ui-monospace, Menlo, monospace; }
.clock.dark { color: var(--dim); }
.bombwrap { flex: 1; display: grid; place-items: center; min-height: 6em; width: 100%; }
.bomb { /* a drawn bomb: body, cap, and a burning fuse */
  position: relative; width: 5.5em; height: 5.5em; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #6d6790, #17132b 62%); box-shadow: 0 .4em 1.2em #000a;
}
.bomb::before { content: ""; position: absolute; left: 58%; top: -8%; width: 24%; height: 20%; background: #3a3558; border-radius: .2em; transform: rotate(28deg); }
.bomb i { position: absolute; left: 76%; top: -22%; width: 1.1em; height: 1.1em; border-radius: 50%; background: radial-gradient(circle, #fff, var(--gold) 40%, #ff5d2e 70%, transparent 72%); animation: spark .18s infinite alternate; }
@keyframes spark { to { transform: scale(1.5) rotate(40deg); opacity: .75; } }
.boom { font: 400 5em var(--display); color: var(--gold); text-shadow: 0 0 .4em #ff5d2e, 0 .06em 0 #b3381a; transform: rotate(-6deg); animation: slam .3s cubic-bezier(.2, 1.6, .4, 1); }

.qbig { font: 400 4em/1.1 var(--display); text-shadow: 0 .05em 0 #0008; }
.qbig.sm { font-size: 2.3em; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; width: 100%; max-width: 26em; }
.opt {
  background: var(--panel2); border: 3px solid var(--line); border-radius: .8em; color: var(--ink);
  font: 400 1.7em var(--display); padding: .6em .2em; min-height: 2.8em; box-shadow: 0 .14em 0 #0005;
}
.opt:active { transform: translateY(.1em); box-shadow: none; }
.opts.six .opt { font-size: 1.3em; min-height: 2.6em; }
.opts.odd, .cells, .opts.nums { --cols: 5; --rows: 4; grid-template-columns: repeat(var(--cols), 1fr); }
.opts.odd { gap: .3em; }
.opts.odd .opt { font-size: 1.7em; padding: 0; min-height: 0; aspect-ratio: 1; border-width: 2px; }
.opts.nums { --cols: 3; max-width: 24em; gap: .45em; }
.opts.nums .opt { padding: .3em 0; min-height: 2.2em; font-size: 1.5em; }
.opts.rps { grid-template-columns: repeat(3, 1fr); }
.opts.rps .opt { font-size: 1.25em; padding: 1.6em 0; min-height: 0; }
.cells { display: grid; gap: .15em; width: 100%; max-width: 22em; background: var(--panel); border: 3px solid var(--line); border-radius: 1em; padding: .5em; }
.cells span { font-size: 1.9em; line-height: 1.15; }
.opt.sel { border-color: var(--gold); background: #4a3f20; }
.locked .opt:not(.sel) { opacity: .45; }
.opt.right { border-color: var(--ok); background: #14472c; opacity: 1; }
.opt.wrong { border-color: var(--bad); background: #4d1820; }
.opt.shake { animation: shake .3s; border-color: var(--bad); }
@keyframes shake { 25% { transform: translateX(-.25em); } 75% { transform: translateX(.25em); } }
.dots { position: relative; width: 100%; max-width: 22em; aspect-ratio: 7 / 5; background: var(--panel); border-radius: 1em; border: 3px solid var(--line); }
.dots i { position: absolute; width: 6%; aspect-ratio: 1; border-radius: 50%; background: var(--gold); transform: translate(-50%, -50%); }
.dots.hid i, .cells.hid span, .qbig.hid { visibility: hidden; }

.mgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4em; width: min(100%, 22em); aspect-ratio: 1; }
.mgrid button { background: var(--panel2); border: 2px solid var(--line); border-radius: .5em; }
.mgrid .lit { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 .8em #ffd16688; }
.mgrid .pick { border-color: var(--b); background: #17555a; }
.mgrid .pick.lit { background: var(--ok); border-color: var(--ok); }

/* Keep tall boards inside the stage, whatever the screen. --sh is the stage's
   height in px, measured by app.js (container units proved unreliable here). */
.pads, .mgrid { width: min(100%, 22em, calc(var(--sh, 60vh) * .8)); }
.dots { max-width: min(22em, calc(var(--sh, 60vh) * .62)); }
.cells { max-width: min(22em, calc(var(--sh, 60vh) * .44 * var(--cols) / var(--rows))); }
.opts.odd { max-width: min(26em, calc(var(--sh, 60vh) * .82 * var(--cols) / var(--rows))); }
.phone .opt { min-height: 3.2em; }
.phone .opts.odd .opt, .phone .opts.nums .opt { min-height: 0; }
.tv .opt { min-height: 0; padding: .4em .2em; }
.tv .qbig { font-size: min(4em, calc(var(--sh, 60vh) * .2)); }
.tv .qbig.sm { font-size: min(2.3em, calc(var(--sh, 60vh) * .13)); }

/* ---------- results ---------- */
.win { display: flex; align-items: center; gap: .6em; font: 400 2.6em/1 var(--display); color: var(--c, var(--gold)); text-align: left; text-shadow: 0 .06em 0 #0008; }
.win small { display: block; font: 800 .32em system-ui, sans-serif; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; margin: .3em 0; text-shadow: none; }
.fresh .win { animation: slam .5s cubic-bezier(.2, 1.5, .4, 1); }
.tv .win { font-size: 4.2em; }
.mine { font: 400 2em var(--display); }
.up { color: var(--ok); }
.down { color: var(--bad); }
.board { display: grid; gap: .4em; width: 100%; max-width: 34em; }
.tv .board { font-size: 1.2em; grid-template-columns: 1fr 1fr; max-width: 60em; column-gap: 1.5em; }
.row { display: flex; align-items: center; gap: .6em; background: var(--panel); border: 2px solid var(--line); border-radius: .9em; padding: .35em .8em; }
.row:first-child { border-color: var(--gold); }
.row.me { background: var(--panel2); }
.row .pchip { border: 0; padding: 0; background: none; }
.rk { font: 400 1.2em var(--display); color: var(--dim); width: 1.2em; }
.delta { margin-left: auto; font-weight: 800; }
.chips { font-weight: 800; color: var(--gold); min-width: 4.5em; text-align: right; margin-left: auto; }
.delta + .chips { margin-left: 0; }

.cells span, .opt { font-variant-emoji: text; }

.tv .vs { font-size: 1.05em; }
.tv .intro { gap: .5em; }
.hint.big { font-size: 1.25em; }
.lockedtag { background: var(--gold); color: #2b2000; border-radius: 99px; padding: .15em .9em; animation: slam .4s cubic-bezier(.2, 1.5, .4, 1); }
.locked .odds { text-shadow: 0 0 .5em #ffd16699; }
.locked .betbtn:not(.on) { opacity: .5; }
.phone .win { font-size: 2em; }
.win .av.xl { font-size: 1.1em; }
.phone .clock { font-size: 1.9em; }
