/* Fonts are served from this site (SIL Open Font License, see /fonts), so visitors' browsers never contact Google. */
@font-face { font-family: "Pixelify Sans"; font-weight: 500; font-display: swap; src: url(fonts/pixelify-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Pixelify Sans"; font-weight: 700; font-display: swap; src: url(fonts/pixelify-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Silkscreen"; font-weight: 400; font-display: swap; src: url(fonts/silkscreen-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Silkscreen"; font-weight: 700; font-display: swap; src: url(fonts/silkscreen-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-mono-latin-700-normal.woff2) format("woff2"); }
/* Layout: a pixel-art Verzuz stage at night (LED wall, truss lights, sweeping spots, crowd) behind one centered column of forum-console panels; in-game, a round table of avis with the boombox drifting toward whoever holds it. One deliberate dark look. */
:root {
  --abyss: #0a0612;
  --panel: rgba(14, 8, 24, .88);
  --panel-2: #1a1030;
  --field: #0c0716;
  --rule: #3b2958;
  --rule-hi: #5c4288;
  --ink: #f4eeff;
  --muted: #b6a7d2;
  --dim: #7f6ca3;
  --gold: #ffd23f;
  --gold-dk: #b07d0a;
  --coral: #ff4d6d;
  --coral-dk: #9e1f39;
  --kelp: #59f0c2;
  --violet: #ff5bd9;
  --paper: #fff6d8;
  --display: "Pixelify Sans", "Trebuchet MS", system-ui, sans-serif;
  --label: "Silkscreen", "Courier New", monospace;
  --body: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --notch: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
html, body { min-height: 100%; }
body { background: var(--abyss); color: var(--ink); font-family: var(--body); font-size: 15px; overflow-x: hidden; }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; z-index: 0; display: block; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.18) 0 1px, transparent 1px 3px), radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.6) 100%); }

.topbar { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); z-index: 30; display: flex; gap: 8px; }
.crumbs { position: relative; z-index: 1; font: 700 .62rem var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-align: center; text-shadow: 0 1px 0 #000; }
.crumbs b { color: var(--muted); }
.wrap { position: relative; z-index: 1; max-width: 540px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: clamp(112px, 15vh, 140px) 56px;
  display: flex; flex-direction: column; gap: 16px; }
.wrap.wide { max-width: 640px; }

/* title */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-block: 10px 4px; }
.hero-row { display: flex; align-items: center; gap: 4px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 12vw, 4.4rem); line-height: 1; letter-spacing: .04em; color: var(--gold);
  text-shadow: 0 4px 0 #c2207a, 0 8px 0 #3a0a2a, 0 0 30px rgba(255, 91, 217, .35); }
.hero .ed { font-family: var(--label); font-size: .82rem; letter-spacing: .34em; color: var(--kelp); padding-left: .34em; text-shadow: 0 2px 0 #061a14; }
.hero p { max-width: 42ch; color: var(--muted); line-height: 1.55; font-size: .9rem; text-shadow: 0 1px 0 #000; }
.sleeper { width: 104px; height: 104px; margin: -22px -18px -22px -10px; position: relative; }
.sleeper canvas { width: 100%; height: 100%; image-rendering: pixelated; }
@keyframes bob { 50% { transform: translateY(-5px); } }

/* panels */
.panel { position: relative; background: var(--panel); clip-path: var(--notch); padding: 16px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: inset 0 0 0 2px var(--rule), inset 0 0 0 4px rgba(0,0,0,.4); backdrop-filter: blur(2px); }
.ph { display: flex; align-items: center; gap: 10px; font-family: var(--label); font-size: .78rem; letter-spacing: .14em; color: var(--ink); text-transform: uppercase; }
.ph::after { content: ""; flex: 1; border-top: 2px dashed var(--rule); order: 1; }
.ph .r { order: 2; color: var(--gold); font-weight: 700; }
.lbl { font-family: var(--label); font-size: .68rem; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.muted { color: var(--muted); }
p { margin: 0; line-height: 1.5; }
.small { font-size: .82rem; }

input[type=text] { width: 100%; min-width: 0; background: var(--field); color: var(--ink); border: 0; clip-path: var(--notch);
  box-shadow: inset 0 0 0 2px var(--rule); padding: 13px 14px; font: 500 1rem var(--body); }
input[type=text]::placeholder { color: #5f4f80; }
input[type=text]:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
input[type=text]:disabled { opacity: .55; }
.code-in { font-family: var(--display) !important; font-weight: 700 !important; font-size: 1.5rem !important; letter-spacing: .3em; text-transform: uppercase; }

button { cursor: pointer; }
.btn { border: 0; clip-path: var(--notch); font-family: var(--label); font-weight: 700; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 16px 12px; background: var(--gold); color: #2a1803; border-bottom: 4px solid var(--gold-dk); transition: transform .05s, filter .1s; }
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.btn:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; }
.btn:focus-visible { outline: none; filter: brightness(1.15); box-shadow: inset 0 0 0 3px #fff7d6; }
.btn:disabled { filter: grayscale(.85) brightness(.55); cursor: not-allowed; }
.btn.ghost { background: var(--panel-2); color: var(--gold); border-bottom-color: #07040d; box-shadow: inset 0 0 0 2px var(--rule-hi); }
.btn.ghost:focus-visible { box-shadow: inset 0 0 0 3px var(--gold); }
.btn.coral { background: var(--violet); color: #2a0622; border-bottom-color: #8d1f78; }
.btn.big { font-size: 1.15rem; padding: 18px 16px 16px; }
.chipbtn { background: rgba(14, 8, 24, .7); border: 0; color: var(--muted); font: 700 .7rem var(--label); letter-spacing: .12em; text-transform: uppercase; padding: 8px 10px; clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--rule); }
.chipbtn:hover { color: var(--gold); }
.chipbtn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.row { display: flex; gap: 10px; align-items: stretch; }
.row > * { min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 400px) { .grid2 { grid-template-columns: 1fr; } }

/* avi picker */
.avs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.av-opt { background: var(--field); border: 0; clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--rule); padding: 10px 2px 7px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--dim); font: 700 .6rem var(--label); letter-spacing: .08em; text-transform: uppercase; }
.av-opt img { width: 40px; height: 40px; image-rendering: pixelated; filter: saturate(.45) brightness(.7); transition: filter .15s, transform .15s; }
.av-opt:hover img { filter: none; }
.av-opt.on { box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 18px rgba(255, 210, 63, .18); color: var(--gold); }
.av-opt.on img { filter: none; transform: translateY(-2px); animation: bob .9s steps(2) infinite; }
.av-opt:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #fff7d6; }

.rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.rules li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: var(--muted); line-height: 1.45; font-size: .88rem; }
.rules li img { width: 18px; height: 18px; image-rendering: pixelated; margin-top: 1px; }
.rules b { color: var(--ink); font-weight: 700; }
.tiers { display: flex; gap: 8px; flex-wrap: wrap; }
.tier { font: 700 .66rem var(--label); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px 4px; clip-path: var(--notch); }
.t1 { background: #2a2140; color: #d5cbe9; } .t2 { background: #0f3a33; color: var(--kelp); } .t3 { background: #44123b; color: #ffb3ef; }
details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details[open] .ph .r::before { content: "Hide"; }
details:not([open]) .ph .r::before { content: "Show"; }

/* lobby */
.bigcode { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 16vw, 4.6rem); letter-spacing: .18em; padding-left: .18em; line-height: 1; color: var(--gold); text-align: center; text-shadow: 0 4px 0 #c2207a, 0 8px 0 #3a0a2a; }
.divers { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.diver { background: var(--field); clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--rule); padding: 10px 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.diver img { width: 42px; height: 42px; image-rendering: pixelated; animation: bob 1.6s ease-in-out infinite; }
.diver .nm { font-weight: 700; font-size: .82rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diver .tag { font: 700 .56rem var(--label); letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }
.diver.empty { opacity: .45; justify-content: center; min-height: 88px; color: var(--dim); font: 700 .6rem var(--label); letter-spacing: .1em; text-transform: uppercase; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg button { background: var(--field); border: 0; clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--rule); color: var(--muted); padding: 11px 6px 10px; font: 700 .76rem var(--label); letter-spacing: .08em; text-transform: uppercase; }
.seg button.on { color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); background: #2a1c10; }
.seg button:disabled { cursor: default; }
.packs { display: flex; flex-direction: column; gap: 6px; }
.pack { display: flex; align-items: center; gap: 10px; background: var(--field); border: 0; clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--rule); padding: 10px 12px; color: var(--muted); text-align: left; font: 500 .9rem var(--body); }
.pack .box { width: 14px; height: 14px; flex: none; box-shadow: inset 0 0 0 2px var(--rule-hi); }
.pack.on { color: var(--ink); }
.pack.on .box { background: var(--kelp); box-shadow: inset 0 0 0 2px #1d8a6c; }
.pack .n { margin-left: auto; font: 700 .62rem var(--label); letter-spacing: .1em; color: var(--dim); }
.pack:disabled { cursor: default; }

/* game */
.plaque { background: rgba(14, 8, 24, .96); text-align: center; align-items: center; gap: 6px; padding: 14px 16px 12px; }
.plaque h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 5vw, 1.65rem); line-height: 1.15; text-wrap: balance; color: var(--paper); text-shadow: 0 3px 0 #000; }
.plaque .meta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.plaque .meta .lbl b { color: var(--kelp); }
.stage { position: relative; width: 100%; max-width: 600px; margin: 0 auto; aspect-ratio: 1 / 1; }
.ringline { position: absolute; inset: 11%; border-radius: 50%; border: 2px dashed rgba(255, 91, 217, .2); }
.puff { position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%) translate(var(--dx, 0px), var(--dy, 0px)); transition: transform .38s cubic-bezier(.3, 1.4, .5, 1); z-index: 2; }
.puff canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.popword { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 12vw, 4rem); color: var(--paper); text-shadow: 0 4px 0 #8a7f6a, 0 8px 0 #2a2418; animation: popin .45s steps(4) both; pointer-events: none; white-space: nowrap; }
@keyframes popin { 0% { transform: translate(-50%, -50%) scale(.3) rotate(-8deg); } 60% { transform: translate(-50%, -50%) scale(1.25) rotate(4deg); } 100% { transform: translate(-50%, -50%) scale(1) rotate(-3deg); } }
.seat { position: absolute; transform: translate(-50%, -50%); width: 96px; display: flex; flex-direction: column; align-items: center; gap: 3px; z-index: 3; transition: left .4s, top .4s, opacity .3s; }
.seat .av { width: 48px; height: 48px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0,0,0,.6)); }
.seat .nm { font-weight: 700; font-size: .78rem; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 0 #000, 0 0 6px #000; }
.seat .hp { display: flex; gap: 2px; min-height: 12px; }
.seat .hp img { width: 13px; height: 12px; image-rendering: pixelated; }
.seat .mt { width: 48px; height: 5px; background: var(--field); box-shadow: inset 0 0 0 1px var(--rule-hi); }
.seat .mt i { display: block; height: 100%; background: var(--violet); transition: width .3s; }
.seat.me .nm { color: var(--gold); }
.seat.hold .av { animation: hop .42s steps(2) infinite; filter: drop-shadow(0 0 8px rgba(255, 210, 63, .85)) drop-shadow(0 3px 0 rgba(0,0,0,.6)); }
.seat.hold::before { content: ""; position: absolute; top: -6px; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 63, .24), transparent 70%); z-index: -1; }
.seat.out { opacity: .32; filter: grayscale(1); }
.seat.hit .av { animation: hit .5s steps(4); }
@keyframes hop { 50% { transform: translateY(-4px); } }
@keyframes hit { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.typ { margin-top: 2px; min-height: 1.3em; max-width: 130px; padding: 2px 7px 1px; background: rgba(0, 0, 0, .72); color: var(--gold); font: 700 .78rem var(--body); white-space: pre; overflow: hidden; clip-path: var(--notch); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .35); }
.typ::after { content: "▌"; margin-left: 1px; animation: blink .8s steps(2) infinite; }
.bub { position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translate(-50%, 6px); background: var(--paper); color: #1a1426; font: 700 .78rem var(--body); padding: 5px 9px 4px;
  max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; clip-path: var(--notch); border-bottom: 3px solid var(--dim); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 5; }
.bub.show { opacity: 1; transform: translate(-50%, 0); }
.bub.low { bottom: auto; top: calc(100% + 2px); transform: translate(-50%, -6px); }
.bub.low.show { transform: translate(-50%, 0); }
.bub.tier1 { border-bottom-color: #9a8cb8; } .bub.tier2 { border-bottom-color: var(--kelp); } .bub.tier3 { border-bottom-color: var(--violet); }
.bub.miss { background: #3a0a18; color: #ffb3c1; border-bottom-color: var(--coral); text-decoration: line-through; }
.turn { text-align: center; font-family: var(--label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; min-height: 1.3em; color: var(--muted); text-shadow: 0 2px 0 #000; }
.turn.me { color: var(--gold); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }
#answerForm { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
#answerForm.shake { animation: shake .3s steps(4); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
#answerInput { font-size: 1.1rem; padding-block: 15px; }
.status { min-height: 1.3em; text-align: center; font-weight: 700; font-size: .88rem; text-shadow: 0 1px 0 #000; }
.status.bad { color: #ff9fb2; } .status.good { color: var(--kelp); }
.used { display: flex; flex-wrap: wrap; gap: 6px; }
.used span { font: 500 .78rem var(--body); padding: 4px 8px 3px; background: var(--field); clip-path: var(--notch); border-left: 3px solid var(--dim); }
.used span.tier2 { border-left-color: var(--kelp); } .used span.tier3 { border-left-color: var(--violet); }
.over { position: absolute; inset: 9%; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 14px; overflow: auto; }
.over .champ { width: 72px; height: 72px; image-rendering: pixelated; animation: bob 1s steps(2) infinite; }
.over .win { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 5vw, 1.8rem); color: var(--gold); text-shadow: 0 3px 0 #c2207a, 0 6px 0 #3a0a2a; text-wrap: balance; }
table.stats { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .82rem; }
table.stats th, table.stats td { padding: 5px 6px; text-align: right; border-bottom: 1px dashed var(--rule); }
table.stats th:first-child, table.stats td:first-child { text-align: left; }
table.stats th { font: 700 .58rem var(--label); letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.twist { font: 700 .72rem var(--label); letter-spacing: .1em; text-transform: uppercase; color: #2a0622; background: var(--violet); padding: 5px 10px 4px; clip-path: var(--notch); }
.teambar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font: 700 .72rem var(--label); letter-spacing: .1em; text-transform: uppercase; }
.teambar .tA { color: var(--gold); } .teambar .tB { color: var(--violet); } .teambar .vs { color: var(--dim); }
.teambar .lv { display: inline-flex; gap: 2px; vertical-align: -2px; margin-left: 6px; } .teambar .lv img { width: 12px; height: 11px; image-rendering: pixelated; }
.seat .tm { font: 700 .56rem var(--label); letter-spacing: .1em; padding: 2px 5px 1px; clip-path: var(--notch); }
.seat .tm.t0 { background: var(--gold); color: #2a1803; } .seat .tm.t1 { background: var(--violet); color: #2a0622; }
.pend { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(86%, 360px); z-index: 7; align-items: center; text-align: center; gap: 10px; }
.pend .pq { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--paper); overflow-wrap: anywhere; text-wrap: balance; }
.pbar { width: 100%; height: 6px; background: var(--field); box-shadow: inset 0 0 0 1px var(--rule-hi); overflow: hidden; }
.pbar i { display: block; height: 100%; width: 100%; background: var(--kelp); transform-origin: left; }
.pbar.think i { width: 35%; animation: think 1s steps(8) infinite; }
@keyframes think { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.pend .grid2 { width: 100%; }
.reacts { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.reacts button { background: rgba(14, 8, 24, .8); border: 0; clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--rule); padding: 7px 9px; display: grid; place-items: center; }
.reacts button img { width: 22px; height: 22px; image-rendering: pixelated; }
.reacts button:hover { box-shadow: inset 0 0 0 2px var(--gold); }
.reacts button:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #fff7d6; }
.reacts button:active { transform: translateY(2px); }
#floaters { position: absolute; inset: 0; pointer-events: none; z-index: 8; overflow: visible; }
.floater { position: absolute; width: 30px; height: 30px; image-rendering: pixelated; animation: floatup 1.6s ease-out forwards; }
@keyframes floatup { 0% { transform: translate(-50%, 0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translate(-50%, -10px) scale(1.15); } 100% { transform: translate(calc(-50% + var(--drift, 0px)), -110px) scale(1); opacity: 0; } }
.hof { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .84rem; }
.hof th, .hof td { padding: 6px 6px; border-bottom: 1px dashed var(--rule); text-align: right; vertical-align: middle; }
.hof th { font: 700 .58rem var(--label); letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.hof td.who, .hof th.who, .hof th.best { text-align: left; }
.hof td.who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hof td.who img { width: 22px; height: 22px; image-rendering: pixelated; flex: none; }
.hof td.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.hof td.best { text-align: left; color: var(--muted); font-size: .76rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hof tr.first td { color: var(--gold); }
.hof-wrap { overflow-x: auto; }
.hof .badge { font: 700 .5rem var(--label); letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: #2a1803; background: var(--gold); padding: 2px 4px 1px; clip-path: var(--notch); white-space: nowrap; }
.hof td.who span { white-space: normal; }
@media (max-width: 460px) { .hof .best { display: none; } }
body.kb #game .plaque { padding-block: 8px; } body.kb #game .plaque .meta, body.kb #game .reacts, body.kb #game #usedPanel, body.kb #game #quitBtn { display: none; }
body.kb #game .stage { max-width: max(220px, calc(var(--vvh, 600px) * .5)); }
body.kb #game { padding-block-start: 12px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 45; background: var(--coral); color: #2b0410; font: 700 .9rem var(--body); padding: 11px 16px; clip-path: var(--notch); max-width: calc(100% - 32px); }
.flash { animation: flash .5s ease-out; }
@keyframes flash { 30% { background: rgba(255, 246, 216, .06); } }
.calm .flash { animation: none; }
@media (max-width: 420px) {
  .seat { width: 78px; } .seat .av { width: 40px; height: 40px; } .seat .nm { font-size: .7rem; max-width: 78px; } .seat .hp img { width: 11px; height: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.dailylink { text-decoration: none; color: var(--ink); gap: 4px; box-shadow: inset 0 0 0 2px var(--violet), inset 0 0 24px rgba(255, 91, 217, .18); }
.dailylink .dl-k { font: 700 .7rem var(--label); letter-spacing: .14em; color: var(--violet); }
.dailylink .dl-t { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--paper); }
.dailylink .dl-a { font: 700 .76rem var(--label); letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }
.dailylink:hover .dl-a, .dailylink:focus-visible .dl-a { text-decoration: underline; }
.dailylink:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--gold); }

.sideline { font: 700 .72rem var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.sideline b { color: var(--gold); } .sideline b.t1 { color: var(--violet); }
.used span.side1 { border-left-color: var(--violet); } .used span.side0 { border-left-color: var(--gold); }
.quotecard .grid2 { width: 100%; }
.quotecard .grid2 .btn { font-family: var(--body); text-transform: none; letter-spacing: .02em; font-size: .82rem; padding: 12px 6px 10px; }
.quotecard .btn.right { background: var(--kelp); color: #062018; border-bottom-color: #1d8a6c; box-shadow: none; filter: none !important; }
.quotecard .btn.wrong { background: var(--coral); color: #2b0410; border-bottom-color: var(--coral-dk); box-shadow: none; filter: none !important; }
.quotecard .btn.mine { box-shadow: inset 0 0 0 3px #fff7d6; }
#customList span { display: inline-flex; gap: 6px; align-items: center; }
#customList button { background: none; border: 0; color: var(--coral); font: 700 .8rem var(--body); padding: 0 2px; }

.invite { box-shadow: inset 0 0 0 2px var(--violet), inset 0 0 24px rgba(255, 91, 217, .18); }
.invite .invite-code { font-family: var(--display); color: var(--gold); letter-spacing: .15em; font-size: 1.2rem; }
#lobby .row .btn.coral { font-size: .82rem; padding: 10px 14px 8px; }
.sharebox { width: 100%; background: var(--field); color: var(--ink); border: 0; clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--gold); padding: 10px 12px; font: 500 .9rem var(--body); resize: none; }

/* Batman mode: Gotham night. Joker purple and green, searchlight and bats on the stage (drawn in stage.js). */
.batchip { font: 700 .72rem var(--label); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px 5px; clip-path: var(--notch); background: #12101c; color: #d9d2ec; box-shadow: inset 0 0 0 2px #3a3550; }
.batchip.joker { background: #3b0f4f; color: #9dff6b; box-shadow: inset 0 0 0 2px #7cff4f, 0 0 18px rgba(124, 255, 79, .25); }
body.gotham .plaque { box-shadow: inset 0 0 0 2px #4b4466, inset 0 0 0 4px rgba(0,0,0,.4), 0 0 24px rgba(255, 238, 160, .08); }
body.gotham .plaque h2 { color: #fff3c4; }
body.gotham .ringline { border-color: rgba(157, 255, 107, .18); }
.batcard .grid2 { width: 100%; }
.batcard .grid2 .btn { font-family: var(--body); text-transform: none; letter-spacing: .02em; font-size: .84rem; padding: 12px 6px 10px; }
.batcard .btn.mine { box-shadow: inset 0 0 0 3px #9dff6b; }
.batcard .btn.joker { background: #7a1fa0; color: #c8ff9e; border-bottom-color: #3b0f4f; filter: none !important; }
.batcard .pq.caught { color: #9dff6b; } .batcard .pq.escaped { color: #ff9fe8; }
.batcard .cats { font: 500 .78rem var(--body); color: var(--muted); line-height: 1.45; }
.batcard .cats b { color: var(--ink); }
.batcard .cats { text-transform: none; letter-spacing: 0; }

.privlink { align-self: center; text-align: center; font: 700 .66rem var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; text-shadow: 0 1px 0 #000; padding: 4px; }
.privlink:hover, .privlink:focus-visible { color: var(--gold); text-decoration: underline; outline: none; }
