/* deez.win — an arcade cabinet that prints receipts. */

@font-face { font-family: 'Excalifont'; src: url('/fonts/Excalifont-Regular-a88b72a24fb54c9f94e3b5fdaa7481c9.woff2') format('woff2'); font-display: swap; unicode-range: U+20-7e, U+a0-a3, U+a5-a6, U+a8-ab, U+ad-b1, U+b4, U+b6-b8, U+ba-ff, U+131, U+152-153, U+2bc, U+2c6, U+2da, U+2dc, U+304, U+308, U+2013-2014, U+2018-201a, U+201c-201e, U+2020, U+2022, U+2024-2026, U+2030, U+2039-203a, U+20ac, U+2122, U+2212; }
@font-face { font-family: 'Excalifont'; src: url('/fonts/Excalifont-Regular-be310b9bcd4f1a43f571c46df7809174.woff2') format('woff2'); font-display: swap; unicode-range: U+100-130, U+132-137, U+139-149, U+14c-151, U+154-17e, U+192, U+1fc-1ff, U+218-21b, U+237, U+1e80-1e85, U+1ef2-1ef3, U+2113; }
@font-face { font-family: 'Excalifont'; src: url('/fonts/Excalifont-Regular-b9dcf9d2e50a1eaf42fc664b50a3fd0d.woff2') format('woff2'); font-display: swap; unicode-range: U+400-45f, U+490-491, U+2116; }
@font-face { font-family: 'Excalifont'; src: url('/fonts/Excalifont-Regular-41b173a47b57366892116a575a43e2b6.woff2') format('woff2'); font-display: swap; unicode-range: U+37e, U+384-38a, U+38c, U+38e-393, U+395-3a1, U+3aa-3cf, U+3d7; }
@font-face { font-family: 'Excalifont'; src: url('/fonts/Excalifont-Regular-3f2c5db56cc93c5a6873b1361d730c16.woff2') format('woff2'); font-display: swap; unicode-range: U+2c7, U+2d8-2d9, U+2db, U+2dd, U+302, U+306-307, U+30a-30c, U+326-328, U+212e, U+2211, U+fb01-fb02; }
@font-face { font-family: 'Excalifont'; src: url('/fonts/Excalifont-Regular-349fac6ca4700ffec595a7150a0d1e1d.woff2') format('woff2'); font-display: swap; unicode-range: U+462-463, U+472-475, U+4d8-4d9, U+4e2-4e3, U+4e6-4e9, U+4ee-4ef; }
@font-face { font-family: 'Excalifont'; src: url('/fonts/Excalifont-Regular-623ccf21b21ef6b3a0d87738f77eb071.woff2') format('woff2'); font-display: swap; unicode-range: U+300-301, U+303; }

:root {
  --bg: #07080A;
  --panel: #101216;
  --panel-2: #191C22;
  --ink: #F4F6F8;
  --muted: #939BA8;
  --line: #2B3039;
  --accent: #72F1C6;
  --accent-ink: #07110D;
  --gold: #FFC857;
  --danger: #FF6B81;
  --paper: #F1EEE7;
  --paper-ink: #191C22;
  --lift: 0 16px 38px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 18% -18%, rgba(114,241,198,.1) 0%, transparent 64%),
    radial-gradient(760px 460px at 100% 8%, rgba(255,200,87,.055) 0%, transparent 68%),
    var(--bg);
  color: var(--ink);
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  line-height: 1.5;
}

/* Scanlines + a soft vignette: the cabinet glass. Under everything, over nothing. */
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background:
    radial-gradient(ellipse at center, transparent 62%, rgba(0,0,0,.48) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
}

#app { max-width: 980px; margin: 0 auto; padding: 24px 20px 64px; position: relative; z-index: 1; }

.pixel { font-family: 'Excalifont', cursive; line-height: 1.3; }

/* ---- top bar / brand ---------------------------------------------------- */

.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
  font-family: 'Excalifont', cursive; font-size: 24px; letter-spacing: .02em;
  text-shadow: 0 0 20px rgba(114,241,198,.14);
}
.brand.small-brand { font-size: 12px; opacity: .8; margin-bottom: 8px; }
.brand-die {
  width: 22px; height: 22px; border-radius: 5px; background: url('/favicon.png') center / contain no-repeat;
  position: relative; animation: tumble 6s ease-in-out infinite;
}
.brand-die::before { content: none; }
@keyframes tumble { 0%,80%,100% { transform: rotate(0); } 88% { transform: rotate(90deg) translateY(-2px); } 94% { transform: rotate(180deg); } }

.room-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.room-code { font-size: 22px; color: var(--gold); letter-spacing: 3px; }

/* ---- hero --------------------------------------------------------------- */

.hero { margin: 26px 0 30px; max-width: 640px; }
.hero-title { font-size: clamp(20px, 4.2vw, 34px); line-height: 1.5; margin: 0 0 16px; }
.hero-title em { font-style: normal; color: var(--paper); background: var(--paper-ink); padding: 0 .25em; outline: 2px solid var(--paper); outline-offset: -1px; }
.hero-sub { color: var(--muted); margin: 0; max-width: 56ch; }

/* ---- cards & layout ----------------------------------------------------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--lift);
  position: relative;
}
.hero-card { border-color: rgba(114,241,198,.48); box-shadow: 0 18px 44px rgba(0,0,0,.42), inset 0 1px 0 rgba(114,241,198,.06); }

.grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }

.eyebrow { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
label.field { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
h2.h2 { font-size: 15px; margin: 0 0 10px; line-height: 1.7; }

.phase { animation: enter .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- controls ----------------------------------------------------------- */

input[type=text], input[type=email] {
  width: 100%; background: #0B0D10; border: 1px solid var(--line); border-radius: 11px;
  color: var(--ink); padding: 12px 14px; font-family: inherit; font-size: 15px;
}
input[type=text] { text-transform: uppercase; }
input.plain { text-transform: none; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(114,241,198,.14); }
input.code { font-family: 'Excalifont', monospace; letter-spacing: 4px; text-align: center; }
input.topic-input { font-size: 18px; padding: 16px; }

button, .btn {
  font-family: 'DM Mono', monospace; font-weight: 700; font-size: 14px;
  background: var(--panel-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 16px;
  cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
  transition: transform .06s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
button:hover:not(:disabled), .btn:hover { border-color: #46505d; background: #22262e; }
button:active:not(:disabled) { transform: translate(2px, 2px); }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 8px 24px rgba(114,241,198,.16); }
.primary:hover:not(:disabled) { background: #9AF6D7; border-color: #9AF6D7; }
.ghost { background: transparent; }
.big { padding: 16px 24px; font-size: 16px; }
button.small, .btn.small { padding: 8px 12px; font-size: 12px; }

.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.dim { opacity: .5; }
.accent { color: var(--accent); }
.gold { color: var(--gold); }

.tag {
  display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.tag.live { color: var(--accent); border-color: var(--accent); }
.tag.warn { color: var(--gold); border-color: var(--gold); }

.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
.steps li { margin: 6px 0; }
.steps b { color: var(--ink); }

/* Player-count segmented control: radios, no JavaScript. */
.stepper { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: 'Excalifont', monospace; font-size: 14px;
  transition: border-color .12s ease, background .12s ease;
}
.seg input:checked + span { border-color: var(--accent); background: rgba(114,241,198,.11); color: var(--accent); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.code-plate {
  font-size: 30px; letter-spacing: 8px; text-align: center; color: var(--gold);
  padding: 22px; border: 1px dashed #414854; border-radius: 12px; background: #0B0D10;
  text-shadow: 0 0 22px rgba(255,200,87,.25);
}

/* ---- players ------------------------------------------------------------ */

.player { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.player:last-child { border-bottom: 0; }
.dot { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; }
.player .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player .score { display: inline-flex; align-items: baseline; gap: 5px; font-family: 'Excalifont', monospace; color: var(--gold); }
.player .score strong { font-size: 13px; font-weight: 400; }
.player .score small { color: #8D7847; font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.player.me { background: rgba(114,241,198,.07); border-radius: 8px; margin: 0 -6px; padding-left: 6px; padding-right: 6px; }
.player .games { flex: 0 0 auto; opacity: .7; }
.rank { font-size: 12px; width: 22px; }
.player.winner { background: rgba(255,200,87,.08); border-radius: 8px; margin: 0 -6px; padding: 12px 6px; border-bottom: 0; }
.player.winner .score strong { font-size: 17px; }

.topic-strip { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.topic-name { font-size: 12px; color: var(--accent); text-transform: uppercase; word-break: break-word; }

/* The loading graph: a vertical rail of steps, one node each. */
.pipe { list-style: none; margin: 0; padding: 0; position: relative; }
.pipe::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.step { display: flex; gap: 12px; padding: 6px 0; position: relative; }
.node {
  flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; margin-top: 3px;
  background: var(--panel); border: 2px solid var(--line); box-sizing: border-box;
}
.step.running .node { border-color: var(--accent); border-top-color: transparent; animation: spin .9s linear infinite; }
.step.done .node { background: var(--accent); border-color: var(--accent); }
.step.failed .node { background: var(--danger); border-color: var(--danger); }
.step.pending { opacity: .5; }
.step-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.step-label { font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.step-time { flex: 0 0 auto; }
.step-bar { height: 3px; background: var(--panel-2); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.step-bar > i { display: block; height: 100%; background: var(--accent); transition: width .4s ease; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }

/* Entity chips: what the graph resolved the topic to. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  font-size: 11px; padding: 4px 9px; border-radius: 6px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chips.ticking .chip { animation: light 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * .18s); }
@keyframes light { 0%,100% { color: var(--muted); border-color: var(--line); } 30% { color: var(--accent); border-color: var(--accent); } }

/* ---- dice --------------------------------------------------------------- */

.dice-wrap { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 26px 0 10px; }
.die {
  width: 84px; height: 84px; border-radius: 16px;
  background: #F4F6F8; border: 1px solid #fff;
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  padding: 13px; gap: 3px; box-shadow: var(--lift);
}
.die.rolling { animation: shake .32s infinite; border-color: var(--accent); }
.die.settled { border-color: var(--gold); animation: land .3s cubic-bezier(.2,.8,.2,1) both; }
.die .pip { width: 13px; height: 13px; border-radius: 50%; background: #111318; align-self: center; justify-self: center; box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
@keyframes shake {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  25% { transform: translate(-3px,2px) rotate(-7deg); }
  50% { transform: translate(2px,-3px) rotate(6deg); }
  75% { transform: translate(3px,2px) rotate(3deg); }
}
@keyframes land { from { transform: scale(1.15); } to { transform: none; } }
.die-label { text-align: center; font-size: 11px; color: var(--muted); margin-top: 8px; }

/* ---- axes (sub-topics) -------------------------------------------------- */

.axes { display: grid; gap: 10px; }
.axis {
  text-align: left; width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px;
}
.axis:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: var(--lift); }
.axis.claimed { opacity: .55; border-style: dashed; }
.axis-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.axis-body strong { font-size: 15px; }
.axis-glyph {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  font-family: 'Excalifont', monospace; font-size: 12px; background: var(--bg); border: 1px solid var(--line);
}
.axis-glyph.kind-numeric::before  { content: '#'; color: var(--accent); }
.axis-glyph.kind-metric::before   { content: '$'; color: var(--gold); }
.axis-glyph.kind-relation::before { content: '→'; color: var(--accent); }
.axis-glyph.kind-property::before { content: '≡'; color: var(--muted); }

/* ---- quiz --------------------------------------------------------------- */

.prompt { font-size: 22px; margin: 14px 0 20px; line-height: 1.45; }
.question-image {
  display: block; width: 100%; max-height: 360px; object-fit: cover;
  border: 1px solid var(--line); border-radius: 10px; margin: 0 0 20px;
}
.choices { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
.choice {
  text-align: left; padding: 18px; font-size: 16px; min-height: 68px;
  display: flex; align-items: center; gap: 12px;
}
.choice .key {
  font-family: 'Excalifont', monospace; font-size: 10px; color: var(--muted);
  width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; flex: 0 0 auto;
}
.choice.correct { border-color: var(--accent); background: rgba(114,241,198,.1); }
.choice.correct .key { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.choice.wrong { border-color: var(--danger); background: rgba(255,107,129,.09); }
.hint { margin: 14px 0 0; }

/* The speed bonus: 50 aura draining to zero over ten seconds, the same
 * curve the server scores. Replaced (not morphed) per question via its id,
 * so the animation starts fresh each time. */
.bonus { height: 6px; background: var(--panel-2); border-radius: 999px; overflow: hidden; margin: 12px 0 0; }
.bonus > i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; animation: drain 10s linear both; }
.bonus > i.stopped { animation-play-state: paused; opacity: .5; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.progress { height: 6px; background: var(--panel-2); border-radius: 999px; overflow: hidden; margin: 14px 0 4px; }
.progress > i { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.progress.indeterminate > i { width: 40%; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: 0; } 50% { margin-left: 60%; } 100% { margin-left: 0; } }

/* ---- the receipt -------------------------------------------------------- */

.receipt {
  margin-top: 18px; padding: 14px 16px 18px;
  background: var(--paper); color: var(--paper-ink);
  border-radius: 4px 4px 0 0;
  /* torn bottom edge */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 97% 100%, 94% calc(100% - 6px), 91% 100%, 88% calc(100% - 6px), 85% 100%, 82% calc(100% - 6px), 79% 100%, 76% calc(100% - 6px), 73% 100%, 70% calc(100% - 6px), 67% 100%, 64% calc(100% - 6px), 61% 100%, 58% calc(100% - 6px), 55% 100%, 52% calc(100% - 6px), 49% 100%, 46% calc(100% - 6px), 43% 100%, 40% calc(100% - 6px), 37% 100%, 34% calc(100% - 6px), 31% 100%, 28% calc(100% - 6px), 25% 100%, 22% calc(100% - 6px), 19% 100%, 16% calc(100% - 6px), 13% 100%, 10% calc(100% - 6px), 7% 100%, 4% calc(100% - 6px), 1% 100%, 0 calc(100% - 6px));
  animation: print .45s cubic-bezier(.2,.8,.2,1) both;
  font-size: 14px;
}
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-6px); } to { transform: none; } }
.receipt-head { font-size: 11px; letter-spacing: 2px; border-bottom: 1px dashed rgba(25,28,34,.28); padding-bottom: 8px; margin-bottom: 10px; }
.receipt.ok .receipt-head { color: #24735C; }
.receipt.miss .receipt-head { color: #B43850; }
.receipt-line { line-height: 1.5; }
.receipt-src { font-size: 11px; letter-spacing: 1px; margin-top: 8px; opacity: .8; text-transform: uppercase; }
.receipt-src a { color: inherit; }
.receipt-card {
  overflow: hidden; background:
    repeating-linear-gradient(0deg, rgba(25,28,34,.022) 0 1px, transparent 1px 4px),
    linear-gradient(95deg, #e7e3da 0, var(--paper) 4%, var(--paper) 96%, #dedad1 100%);
  color: var(--paper-ink); border: 0; border-radius: 2px 2px 0 0; box-shadow: none;
  padding: 24px 26px 32px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), 97% 100%, 94% calc(100% - 7px), 91% 100%, 88% calc(100% - 7px), 85% 100%, 82% calc(100% - 7px), 79% 100%, 76% calc(100% - 7px), 73% 100%, 70% calc(100% - 7px), 67% 100%, 64% calc(100% - 7px), 61% 100%, 58% calc(100% - 7px), 55% 100%, 52% calc(100% - 7px), 49% 100%, 46% calc(100% - 7px), 43% 100%, 40% calc(100% - 7px), 37% 100%, 34% calc(100% - 7px), 31% 100%, 28% calc(100% - 7px), 25% 100%, 22% calc(100% - 7px), 19% 100%, 16% calc(100% - 7px), 13% 100%, 10% calc(100% - 7px), 7% 100%, 4% calc(100% - 7px), 1% 100%, 0 calc(100% - 7px));
}
.receipt-card .review { padding: 10px 0; border-bottom: 1px dashed rgba(25,28,34,.24); }
.receipt-card .review:last-of-type { border-bottom: 0; }
.receipt-card .muted { color: #525966; }
.receipt-card .accent { color: #24735C; }
.receipt-foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(25,28,34,.24); text-align: center; letter-spacing: 1px; }
.review { padding: 10px 0; }
.waiting { margin-top: 12px; }

/* The summary is a receipt roll, not a printer. The cylinder stays visible
 * while the sourced review unfurls from it; the lower edge remains curled. */
.receipt-roll { position: relative; margin-top: 28px; padding: 12px 10px 22px; perspective: 900px; }
.roll-spool {
  position: relative; z-index: 4; width: calc(100% - 36px); height: 48px; margin: 0 auto -8px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(25,28,34,.035) 15px 16px),
    linear-gradient(180deg, #fff 0%, #dedad1 44%, var(--paper) 68%, #c9c4ba 100%);
  box-shadow: 0 12px 18px rgba(0,0,0,.3), inset 0 2px 2px rgba(255,255,255,.9), inset 0 -5px 8px rgba(25,28,34,.14);
  animation: roll-turn 2.35s linear .12s both;
}
.roll-spool::before, .roll-spool::after {
  content: ''; position: absolute; top: 0; width: 24px; height: 48px; border-radius: 50%;
}
.roll-spool::before {
  left: -7px; background: linear-gradient(90deg, #c8c3b9, #f8f5ee 72%);
  box-shadow: -4px 3px 9px rgba(0,0,0,.2), inset 2px 0 2px rgba(255,255,255,.7);
}
.roll-spool::after {
  right: -7px;
  background: radial-gradient(circle, #565B63 0 12%, #bdb8ae 14% 25%, #ece8df 27% 62%, #c7c2b8 64% 100%);
  box-shadow: 5px 3px 10px rgba(0,0,0,.24), inset -2px 0 3px rgba(25,28,34,.12);
}
.roll-core {
  position: absolute; z-index: 2; right: -1px; top: 19px; width: 10px; height: 10px;
  border-radius: 50%; background: #454A52; box-shadow: inset 1px 1px 2px rgba(0,0,0,.45);
}
.receipt-stage { position: relative; margin: 0 18px; filter: drop-shadow(7px 12px 10px rgba(0,0,0,.38)); }
.receipt-paper {
  position: relative; z-index: 2; transform-origin: top center;
  clip-path: inset(0 0 100% 0); animation: receipt-unroll 2.35s cubic-bezier(.18,.72,.2,1) .12s both, receipt-settle .55s ease-out 2.5s both;
}
.receipt-rolled-edge {
  position: absolute; z-index: 3; left: -1px; right: -1px; top: -2px; height: 24px;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, #fff 0%, #d5d0c6 38%, var(--paper) 70%, #beb9af 100%);
  box-shadow: 0 8px 9px rgba(0,0,0,.24), inset 0 -4px 5px rgba(25,28,34,.12);
  transform-origin: center top;
  animation: rolled-edge-drop 2.35s cubic-bezier(.18,.72,.2,1) .12s both;
}
@keyframes roll-turn {
  0% { background-position: 0 0, 0 0; transform: rotate(-1deg); }
  45% { transform: rotate(.7deg); }
  100% { background-position: 80px 0, 0 0; transform: none; }
}
@keyframes receipt-unroll {
  0% { clip-path: inset(0 0 100% 0); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes rolled-edge-drop {
  0% { top: -2px; transform: rotateX(0deg) scaleY(.72); }
  100% { top: calc(100% - 23px); transform: rotateX(-42deg) scaleY(1); }
}
@keyframes receipt-settle {
  0% { transform: rotateX(-2.5deg) translateY(-2px); }
  65% { transform: rotateX(1deg) translateY(1px); }
  100% { transform: none; }
}

/* ---- results ------------------------------------------------------------ */

.results { overflow: hidden; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i {
  position: absolute; top: -12px; width: 8px; height: 12px; opacity: 0;
  animation: fall 2.8s ease-in both; animation-iteration-count: 2;
}
.confetti i:nth-child(odd) { background: var(--accent); }
.confetti i:nth-child(even) { background: var(--gold); }
.confetti i:nth-child(3n) { background: var(--danger); }
.confetti i:nth-child(1) { left: 5%; animation-delay: .0s } .confetti i:nth-child(2) { left: 14%; animation-delay: .3s }
.confetti i:nth-child(3) { left: 22%; animation-delay: .1s } .confetti i:nth-child(4) { left: 31%; animation-delay: .5s }
.confetti i:nth-child(5) { left: 40%; animation-delay: .2s } .confetti i:nth-child(6) { left: 49%; animation-delay: .6s }
.confetti i:nth-child(7) { left: 57%; animation-delay: .15s } .confetti i:nth-child(8) { left: 66%; animation-delay: .4s }
.confetti i:nth-child(9) { left: 74%; animation-delay: .05s } .confetti i:nth-child(10) { left: 83%; animation-delay: .35s }
.confetti i:nth-child(11) { left: 91%; animation-delay: .25s } .confetti i:nth-child(12) { left: 97%; animation-delay: .55s }
@keyframes fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(420px) rotate(540deg); opacity: 0; } }

/* ---- misc --------------------------------------------------------------- */

.banner { border: 2px dashed var(--line); border-radius: 12px; padding: 12px 14px; color: var(--muted); font-size: 13px; }
.banner.danger { border-color: var(--danger); color: var(--danger); border-style: solid; margin-bottom: 18px; }
.lobby-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lobby-item:last-child { border-bottom: 0; }
.tight { margin: 6px 0 0; }
.footer { margin-top: 40px; text-align: center; color: var(--muted); font-size: 10px; letter-spacing: 2px; }

@media (prefers-reduced-motion: reduce) {
  .die.rolling, .die.settled, .brand-die, .chips.ticking .chip, .confetti i, .phase, .receipt, .receipt-paper, .receipt-rolled-edge, .roll-spool { animation: none; }
  .receipt-paper { clip-path: none; }
  .receipt-rolled-edge { top: calc(100% - 23px); transform: rotateX(-42deg); }
  .progress.indeterminate > i { animation: none; width: 100%; }
  .bonus > i { animation-duration: 10s; } /* the bar is information, keep it */
}

/* ---- home: the wordmark ----------------------------------------------- */
/* Springs, boops and sparkles in the Josh Comeau idiom: motion with
 * overshoot, triggered by the person, never looping for its own sake. */

.home-top { margin-bottom: 0; }
.hero-big {
  text-align: center;
  padding: clamp(28px, 4vh, 52px) 0 clamp(32px, 4vh, 48px);
  position: relative;
}

.wordmark {
  font-family: 'Excalifont', monospace;
  /* 8 glyphs at 1em each plus spacing must fit #app (980px) and any phone. */
  font-size: clamp(34px, 9vw, 92px);
  line-height: 1; margin: 0; letter-spacing: .02em;
  display: inline-flex; white-space: nowrap; position: relative; z-index: 2;
  cursor: default; user-select: none;
}
.ltr {
  display: inline-block;
  background: linear-gradient(120deg, var(--accent) 0%, #F4F6F8 35%, var(--gold) 70%, var(--accent) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(114,241,198,.16));
  animation:
    spring-in .9s cubic-bezier(.2,1.6,.35,1) both,
    shimmer 9s linear infinite;
  animation-delay: calc(var(--i) * 70ms), calc(var(--i) * -400ms);
  transition: transform .5s cubic-bezier(.2,2.2,.4,1);
  transform-origin: 50% 70%;
}
/* Boop: nudge up and twist, snapping back with overshoot. */
.ltr:hover { transform: translateY(-.12em) rotate(-6deg) scale(1.12); transition-duration: .18s; }
.ltr:nth-child(even):hover { transform: translateY(-.12em) rotate(6deg) scale(1.12); }
.wordmark.pressed .ltr { transform: scale(.92); transition-duration: .12s; }
@keyframes spring-in {
  from { opacity: 0; transform: translateY(.6em) scale(.6) rotate(-8deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: 300% 0; } }

.hero-line {
  margin: 26px 0 34px; color: var(--muted); font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  animation: enter .6s .6s both;
}

/* Sparkles: the star shape lives in CSS; JS only decides where and when. */
.sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.sparkle {
  position: absolute; width: var(--s); height: var(--s); color: var(--gold);
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: sparkle .7s ease-in-out both;
}
.sparkle.mint { color: var(--accent); }
@keyframes sparkle {
  0% { transform: scale(0) rotate(0); opacity: 0; }
  50% { transform: scale(1) rotate(90deg); opacity: 1; }
  100% { transform: scale(0) rotate(180deg); opacity: 0; }
}

/* Orbs: slow gradient weather behind everything. */
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orbs i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45;
  animation: drift 22s ease-in-out infinite alternate;
}
.orbs i:nth-child(1) { width: 46vw; height: 46vw; left: -10vw; top: -14vw; background: #15191D; }
.orbs i:nth-child(2) { width: 38vw; height: 38vw; right: -8vw; top: 6vh; background: #20352E; animation-delay: -8s; }
.orbs i:nth-child(3) { width: 30vw; height: 30vw; left: 30vw; bottom: -18vw; background: #3A321E; animation-delay: -15s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(6vw,4vh) scale(1.12); } }

/* Actions under the wordmark. */
.play-strip, .join-strip {
  display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap;
  animation: enter .6s .8s both;
}
.hero-big .play-strip { margin-top: clamp(20px, 3vh, 30px); }
.join-strip { margin-top: 18px; animation-delay: .95s; }
.join-strip input.code { width: 190px; }
.play-strip .stepper { gap: 8px; }
.magnet { position: relative; padding: 18px 40px; font-size: 18px; will-change: transform; }
.magnet > span { display: inline-block; }
.big.primary:hover:not(:disabled) { box-shadow: 0 10px 30px rgba(114,241,198,.2); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; position: relative; z-index: 1; animation: enter .6s 1.1s both; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }

.lobby-hero { margin-bottom: 20px; }
.lobby-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.lobby-actions .card { display: flex; flex-direction: column; justify-content: center; }
.lobby-grid { margin-top: 20px; animation: none; }
@media (max-width: 680px) { .lobby-actions { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .ltr { animation: none; transition: none; }
  .ltr:hover, .ltr:nth-child(even):hover { transform: none; }
  .orbs i { animation: none; }
  .sparkles { display: none; }
  .hero-line, .play-strip, .join-strip, .grid3 { animation: none; }
}

/* ---- account menu (top right) ------------------------------------------ */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.who {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink);
  background: rgba(0,0,0,.12);
}
.who.guest { border-style: dashed; color: var(--muted); }
.who:hover, .menu[open] .who { border-color: var(--accent); color: var(--ink); }
.pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 280px;
  background: var(--panel); border: 2px solid var(--line); border-radius: 14px; padding: 16px;
  box-shadow: var(--lift); animation: enter .2s cubic-bezier(.2,1.4,.4,1) both;
}
.pop .stack > * + * { margin-top: 10px; }
.pop .btn { display: block; margin-top: 10px; width: 100%; }
.pop p { margin: 0 0 10px; }
.pop .btn.google, .google { display: flex; align-items: center; justify-content: center; gap: 10px; }
.google .g {
  width: 22px; height: 22px; border-radius: 50%; background: var(--paper); color: var(--paper-ink);
  font-family: 'Excalifont', sans-serif; font-size: 13px; display: grid; place-items: center;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; position: relative; z-index: 1; animation: enter .6s 1.1s both; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }

/* ---- covers (fal) ------------------------------------------------------- */
.cover {
  display: block; width: 100%; height: auto; max-width: 220px; margin: 4px auto 10px;
  filter: grayscale(.85) saturate(.35) contrast(1.08) drop-shadow(0 12px 22px rgba(0,0,0,.45));
  animation: pop .6s cubic-bezier(.2,1.6,.4,1) both;
}
.big-cover { max-width: 300px; margin: 14px auto; }
@keyframes pop { from { opacity: 0; transform: scale(.6) rotate(-6deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cover, .pop { animation: none; } }

/* ---- one composition for home and lobby --------------------------------- */
/* Both pages are a single centered column with the same width and rhythm:
 * the home is that column with the wordmark filling the viewport, the lobby
 * is the same column with cards. Nothing hugs the left edge. */

.column { max-width: 760px; margin: 0 auto; }
.column > * + * { margin-top: 40px; }

/* Home: the hero owns the viewport; the top bar floats over it. */
.home-top { position: absolute; left: 20px; right: 20px; top: 24px; margin: 0; z-index: 5; }
.hero-big {
  min-height: calc(100vh - 48px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10vh 0 8vh; gap: 0;
}
.hero-big .hero-line { margin: clamp(18px, 3vh, 28px) 0 0; }
.hero-big .play-strip { margin-top: clamp(26px, 4vh, 40px); }
.join-line {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: clamp(22px, 3vh, 34px); animation: enter .6s 1s both;
}
.join-line input.code { width: 132px; padding: 9px 10px; font-size: 13px; letter-spacing: 3px; }
.home-foot { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; }
#app:has(.hero-big) { min-height: 100vh; padding-bottom: 0; }

/* Lobby: centered heading, same column, room to breathe. */
.lobby-hero { max-width: none; text-align: center; margin: 24px 0 0; }
.lobby-hero .hero-title { margin-bottom: 0; }
.column > .lobby-actions { margin-top: 36px; }
.lobby-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.column > .lobby-grid { margin-top: 32px; }
.lobby-grid { gap: 24px; }
.lobby-actions .card, .lobby-grid .card { padding: 24px; }
@media (max-width: 640px) { .lobby-actions { grid-template-columns: 1fr; } }
.topbar { margin-bottom: 8px; }

/* ---- focused monochrome landing page ---------------------------------- */
body:has(.home-shell) {
  background: var(--bg);
  color: var(--ink);
}
body:has(.home-shell)::after {
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.6) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
}
#app:has(.home-shell) { max-width: none; min-height: 100vh; padding: 0; }
.home-shell {
  min-height: 100vh; overflow: hidden; position: relative;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(22px, 4vw, 48px) clamp(22px, 6vw, 88px) 24px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 76% 48%, #202329 0, #0B0D10 34%, var(--bg) 62%);
  background-size: 76px 76px, 76px 76px, auto;
}
.home-shell::before {
  content: ''; position: absolute; width: 48vw; height: 48vw; right: -14vw; top: -20vw;
  border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
  box-shadow: 0 0 0 8vw rgba(255,255,255,.018), 0 0 0 16vw rgba(255,255,255,.012);
  pointer-events: none;
}
.home-brand {
  display: flex; align-items: center; gap: 11px; z-index: 3;
  font-family: 'Excalifont', monospace; font-size: 13px; letter-spacing: .16em;
}
.home-brand img { width: 32px; height: 32px; object-fit: contain; filter: contrast(1.25); }
.home-brand img.playa-logo { width: auto; height: 64px; filter: none; }
.hero-big {
  min-height: 0; width: min(1080px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr);
  align-items: center; gap: clamp(28px, 5vw, 72px); padding: 5vh 0;
}
.home-copy { position: relative; z-index: 2; }
.home-kicker {
  margin: 0 0 22px; color: var(--accent); text-transform: uppercase;
  font-size: 11px; letter-spacing: .26em;
}
.home-shell .wordmark {
  font-size: clamp(54px, 8.3vw, 126px); letter-spacing: -.035em;
  line-height: .86; display: flex;
}
.home-shell .ltr {
  background: linear-gradient(145deg, #fff 15%, #747B86 48%, #fff 78%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 12px 26px rgba(255,255,255,.12));
}
.home-shell .hero-line {
  max-width: 520px; margin: 30px 0 0; color: var(--muted);
  font-size: clamp(13px, 1.3vw, 16px); line-height: 1.75; letter-spacing: .02em;
  text-transform: none;
}
.home-shell .play-strip { justify-content: flex-start; margin-top: 36px; }
.home-play {
  min-width: 178px; padding: 17px 26px;
  display: inline-flex; justify-content: center; align-items: center;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px;
  box-shadow: 0 12px 45px rgba(114,241,198,.15); font-size: 15px;
}
.home-play:hover:not(:disabled) { background: #9AF6D7; border-color: #9AF6D7; }
.home-meta {
  margin: 24px 0 0; color: #6F7783; font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
}
.home-art { min-height: min(48vh, 440px); position: relative; display: grid; place-items: center; }
.home-art img {
  --roll-x: 12px; --roll-neg-x: -12px; --roll-y: -8px;
  width: min(30vw, 350px); height: auto; position: relative; z-index: 2;
  filter: grayscale(1) contrast(1.1) drop-shadow(0 30px 30px rgba(0,0,0,.62));
  animation: hero-die-roll 9s linear infinite; will-change: transform;
}
.die-orbit {
  position: absolute; width: min(26vw, 290px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%; transform: rotateX(70deg) rotateZ(-14deg); box-shadow: inset 0 0 60px rgba(255,255,255,.03);
}
.die-note {
  position: absolute; z-index: 3; color: #888; font-size: 9px; letter-spacing: .28em;
  writing-mode: vertical-rl;
}
.note-top { right: 2%; top: 12%; }
.note-bottom { left: 2%; bottom: 12%; transform: rotate(180deg); }
@keyframes hero-die-roll {
  0% { transform: translate3d(0,0,0) rotate(0deg); }
  25% { transform: translate3d(var(--roll-x), var(--roll-y), 0) rotate(-90deg); }
  50% { transform: translate3d(0,0,0) rotate(-180deg); }
  75% { transform: translate3d(var(--roll-neg-x), var(--roll-y), 0) rotate(-270deg); }
  100% { transform: translate3d(0,0,0) rotate(-360deg); }
}
.home-foot {
  position: relative; left: auto; right: auto; bottom: auto; z-index: 2;
  display: flex; justify-content: space-between; gap: 18px; margin: 0;
  color: #B8BFC9; font-size: 10px; font-weight: 500; letter-spacing: .14em;
  text-shadow: 0 0 20px rgba(255,255,255,.08);
}
.lobby-setting { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 12px; }
.seg.questions span { width: 54px; }

@media (max-width: 760px) {
  .home-shell { min-height: 100svh; padding: 22px 20px 18px; }
  .hero-big { grid-template-columns: 1fr; gap: 10px; padding: 6vh 0 3vh; text-align: center; }
  .home-copy { display: flex; flex-direction: column; align-items: center; }
  .home-shell .wordmark { font-size: clamp(46px, 14vw, 82px); }
  .home-shell .hero-line { max-width: 32ch; margin-top: 22px; }
  .home-shell .play-strip { justify-content: center; margin-top: 26px; }
  .home-art { min-height: 30vh; order: -1; margin-bottom: -3vh; }
  .home-art img {
    --roll-x: 7px; --roll-neg-x: -7px; --roll-y: -5px;
    width: min(54vw, 250px);
  }
  .die-orbit { width: min(48vw, 220px); }
  .die-note { display: none; }
  .home-foot { font-size: 9px; letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) { .home-art img { animation: none; } }

/* ---- shared dark composition ------------------------------------------ */
::selection { background: rgba(114,241,198,.28); color: var(--ink); }
.hero-title em { color: var(--accent); background: transparent; padding: 0; outline: 0; }
.hero-title, .prompt, h2.h2 { text-wrap: balance; }
.topbar { align-items: center; padding: 4px 0 18px; border-bottom: 1px solid rgba(255,255,255,.055); }
.column { width: 100%; }
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,.025), transparent 36%);
}
.ghost { background: transparent; border-color: var(--line); }
.tag { background: #0B0D10; }
.tag.live { background: rgba(114,241,198,.07); }
.tag.warn { background: rgba(255,200,87,.07); }
.axis { background: #14171C; }
.axis-glyph { background: #0A0C0F; }
.chip { background: #171A20; }
.pipe::before, .step-bar, .progress, .bonus { background: #252A32; }
.lobby-item form { flex: 0 0 auto; }
.score, .room-code { color: var(--gold); }
.banner { background: rgba(114,241,198,.045); border-width: 1px; }
.banner.danger { background: rgba(255,107,129,.065); border-width: 1px; }
.menu .pop { background: #121419; border-width: 1px; box-shadow: 0 18px 60px rgba(0,0,0,.55); }
.who { background: #111318; }
.footer { color: #666E7A; }

/* The game layout becomes a single readable track before controls get tight.
 * Touch targets stay generous and no action depends on hover. */
@media (max-width: 820px) {
  #app { max-width: 720px; padding: 20px 18px 52px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .grid > .stack:last-child { max-width: none; }
  .column > * + * { margin-top: 28px; }
  .lobby-grid, .lobby-actions { gap: 16px; }
  .lobby-actions .card, .lobby-grid .card { padding: 20px; }
  .topbar { gap: 12px; }
  .room-head { gap: 8px; }
  .prompt { font-size: clamp(19px, 4.6vw, 23px); }
  .choices { grid-template-columns: 1fr; }
  .home-art { min-height: 28vh; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  #app { padding: 16px 14px 44px; }
  .topbar { align-items: flex-start; }
  .topbar > .row { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .topbar > .row .who { max-width: min(100%, 210px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand { font-size: 21px; }
  .room-code { font-size: 19px; }
  .card { padding: 18px; border-radius: 14px; }
  .hero { margin: 20px 0 24px; }
  .hero-title { font-size: clamp(22px, 8vw, 30px); line-height: 1.35; }
  .lobby-hero { margin-top: 16px; }
  .column > .lobby-actions { margin-top: 26px; }
  .column > .lobby-grid { margin-top: 20px; }
  .lobby-actions .card, .lobby-grid .card { padding: 18px; }
  button, .btn { min-height: 44px; }
  button.small, .btn.small { min-height: 38px; }
  .lobby-actions .row button { flex: 1 1 130px; }
  .lobby-setting { grid-template-columns: 1fr; gap: 8px; }
  .stepper { width: 100%; }
  .seg { flex: 1; }
  .seg span, .seg.questions span { width: 100%; min-width: 0; height: 44px; }
  .lobby-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
  .lobby-item form { grid-column: 2; grid-row: 1 / span 2; }
  .pop { position: fixed; left: 14px; right: 14px; top: 76px; width: auto; max-height: calc(100svh - 92px); overflow: auto; }
  .dice-wrap { gap: 14px; margin: 20px 0 8px; }
  .die { width: 72px; height: 72px; padding: 11px; border-radius: 14px; }
  .die .pip { width: 11px; height: 11px; }
  .choice { min-height: 58px; padding: 15px; font-size: 15px; }
  .axis { padding: 13px; }
  .player { gap: 8px; }
  .player .games { display: none; }
  .code-plate { padding: 18px 10px; font-size: 26px; letter-spacing: 6px; }
  .receipt-roll { margin-top: 20px; padding-inline: 0; }
  .roll-spool { width: calc(100% - 28px); height: 42px; }
  .roll-spool::before, .roll-spool::after { height: 42px; }
  .roll-core { top: 16px; }
  .receipt-stage { margin-inline: 4px; }
  .receipt-card { padding: 20px 17px 28px; }
  .receipt-src { font-size: 9px; overflow-wrap: anywhere; }
  .footer { margin-top: 28px; font-size: 8px; line-height: 1.7; letter-spacing: 1.2px; }
  .home-shell { padding: 18px 16px 16px; }
  .home-brand img { width: 28px; height: 28px; }
  .home-brand img.playa-logo { width: auto; height: 48px; }
  .hero-big { padding: 3vh 0 2vh; }
  .home-art { min-height: 20vh; margin-bottom: 0; }
  .home-art img { width: min(48vw, 210px); }
  .home-shell .wordmark { font-size: clamp(42px, 13.5vw, 68px); }
  .home-shell .hero-line { margin-top: 18px; line-height: 1.55; }
  .home-shell .play-strip { width: 100%; margin-top: 22px; }
  .home-play { width: min(100%, 280px); }
  .home-meta { margin-top: 18px; }
  .home-foot { align-items: flex-end; line-height: 1.5; }
  .home-foot span:last-child { text-align: right; }
}

@media (max-width: 380px) {
  .topbar > .row { gap: 7px; }
  .who { font-size: 10px; padding: 7px 9px; }
  .home-art { min-height: 22vh; }
  .home-kicker { margin-bottom: 16px; font-size: 9px; }
}
