:root {
  --bg: #6b0f2a;
  --bg-deep: #4a0a1d;
  --paper: #fbf1e3;
  --ink: #2a0a14;
  --ink-2: #7a4a56;
  --gold: #f2c14e;
  --gold-dark: #b8861b;
  --a0: #e8455a;
  --a1: #3a6fe0;
  --a2: #f2b33d;
  --a3: #1f9e6a;
  --display: 'Unbounded', system-ui, sans-serif;
  --text: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  font-family: var(--text);
  color: #fff;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
#app { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }
button { font: inherit; cursor: pointer; border: 0; }

/* Watermark background (bg.js) */
.wm { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.wm::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 50% at 50% 48%, rgba(74, 10, 29, .8), rgba(74, 10, 29, 0)); }
.wm-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease; }
.wm-layer.on { opacity: 1; }
.wm-layer:not(.on) * { animation-play-state: paused !important; }
.wm img { position: absolute; display: block; }
.wm-wallpaper img { opacity: .07; }
.wm-drift { position: absolute; left: 0; top: 0; display: grid; animation: wm-drift 80s linear infinite; }
@keyframes wm-drift { to { transform: translate(calc(var(--tw) * -1), calc(var(--th) * -1)); } }
@keyframes wm-twinkle { 0%, 100% { opacity: .02; } 50% { opacity: var(--hi); } }

.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px 16px; text-align: center; }
.h1 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 6vw, 56px); line-height: 1.1; }
.muted { color: rgba(255, 255, 255, .75); font-weight: 700; }

/* Hero: the big age number */
.hero { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero.inline { flex-direction: row; gap: 24px; text-align: left; }
.hero-age { font-family: var(--display); font-weight: 900; font-size: clamp(110px, 30vw, 128px); line-height: .9; letter-spacing: -.04em; color: var(--gold); text-shadow: 0 8px 0 rgba(0, 0, 0, .25); }
.hero .hero-age { display: flex; align-items: center; justify-content: center; width: min(560px, 88vw); height: 1em; }
.hero.inline .hero-age { width: 340px; }
.hero-age-text { display: inline-block; white-space: nowrap; transition: opacity .35s, transform .35s; }
.hero-age-text.out { opacity: 0; transform: translateY(14px) scale(.96); }
.hero-sub { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 4vw, 28px); line-height: 1.25; }

/* Cards and forms */
.card { background: var(--paper); color: var(--ink); border-radius: 24px; padding: 24px; width: min(380px, 100%); display: flex; flex-direction: column; gap: 10px; text-align: left; box-shadow: 0 8px 0 rgba(0, 0, 0, .25); }
.label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.card .label + input { margin-bottom: 6px; }
input { font: inherit; font-weight: 800; font-size: 20px; color: var(--ink); text-align: center; padding: 14px; border: 2px solid #e5cfd4; border-radius: 14px; background: #fff; width: 100%; outline: none; transition: border-color .15s; }
input:focus { border-color: var(--bg); }
input#pin { font-family: var(--display); font-size: 24px; letter-spacing: .2em; }
.err { color: var(--a0); font-weight: 800; min-height: 1.2em; font-size: 15px; text-align: center; }

.btn { font-family: var(--display); font-weight: 800; font-size: 17px; padding: 15px 30px; border-radius: 999px; background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 var(--gold-dark); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-dark); }
.btn.wine { background: var(--bg); color: #fff; box-shadow: 0 5px 0 #3d0716; margin-top: 6px; }
.btn.wine:active { box-shadow: 0 2px 0 #3d0716; }
.btn.ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: none; border: 1.5px solid rgba(255, 255, 255, .28); font-size: 15px; padding: 12px 24px; }
.btn.lg { font-size: 22px; padding: 20px 40px; }
.btn.tiny { font-family: var(--text); font-size: 12px; padding: 7px 12px; }

/* Answer tiles */
.c0 { --c: var(--a0); } .c1 { --c: var(--a1); } .c2 { --c: var(--a2); } .c3 { --c: var(--a3); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
.opt { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--c); color: #fff; font-weight: 800; font-size: 20px; text-align: left; border-radius: 20px; box-shadow: 0 6px 0 rgba(0, 0, 0, .28); transition: opacity .3s, transform .3s; }
.opt.c2 { color: var(--ink); }
button.opt:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
.shape { flex: none; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.c2 .shape { background: rgba(255, 255, 255, .35); }
.shape svg { width: 24px; height: 24px; fill: currentColor; }
.opt.dim { opacity: .28; transform: scale(.98); }
.opt .ok { margin-left: auto; font-size: 28px; }

/* Player phone */
.player .opts { flex: 1; }
.player .opt { flex-direction: column; justify-content: center; text-align: center; gap: 14px; font-size: 19px; padding: 12px; overflow-wrap: anywhere; hyphens: auto; }
.player .opt .shape { background: none; width: auto; height: auto; }
.player .opt .shape svg { width: 44px; height: 44px; }
.qbar { display: flex; justify-content: space-between; padding: 16px 16px 0; font-weight: 800; font-size: 14px; color: rgba(255, 255, 255, .8); }
.footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: rgba(0, 0, 0, .25); font-weight: 800; }
.badge { font-family: var(--display); background: var(--paper); color: var(--ink); padding: 4px 12px; border-radius: 999px; font-size: 15px; }

.result { flex: 1; margin: 12px; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 20px; box-shadow: 0 8px 0 rgba(0, 0, 0, .25); animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.result.good { background: var(--a3); }
.result.bad { background: var(--a0); }
.result .icon { width: 96px; height: 96px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.result .icon svg { width: 52px; height: 52px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.result .h1 { font-size: 44px; }
.points { font-family: var(--display); font-weight: 800; font-size: 30px; background: rgba(0, 0, 0, .2); padding: 10px 26px; border-radius: 999px; }
.streak { font-weight: 800; font-size: 15px; background: var(--gold); color: var(--ink); padding: 7px 16px; border-radius: 999px; }

.spinner { width: 52px; height: 52px; border: 6px solid rgba(255, 255, 255, .2); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }

/* Host screen */
.top { display: flex; justify-content: space-between; align-items: center; padding: 20px 28px; gap: 12px; }
.tag { font-weight: 800; font-size: 14px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); }
.qtext { margin: 0 28px; padding: 26px 32px; width: auto; text-align: center; font-size: clamp(22px, 3vw, 38px); font-weight: 800; line-height: 1.2; }
.qtext.fresh { animation: pop .4s cubic-bezier(.2, 1.4, .4, 1); }
.mid { flex: 1; display: flex; align-items: center; justify-content: space-between; padding: 16px 56px; gap: 16px; }
.mid img { max-height: 34vh; max-width: 50vw; border-radius: 18px; box-shadow: 0 8px 0 rgba(0, 0, 0, .25); }
.timer { --p: 1; flex: none; width: 132px; height: 132px; border-radius: 50%; padding: 10px; background: conic-gradient(var(--gold) calc(var(--p) * 360deg), rgba(255, 255, 255, .14) 0); }
.timer span { width: 100%; height: 100%; border-radius: 50%; background: var(--bg-deep); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 46px; }
.stat { flex: none; text-align: center; font-weight: 800; color: rgba(255, 255, 255, .8); }
.stat b { display: block; font-family: var(--display); font-size: 52px; color: #fff; }
.host .opts { padding: 0 20px 20px; gap: 14px; }
.host .opt { min-height: 96px; font-size: clamp(18px, 2.2vw, 28px); }

.bars { display: flex; gap: 22px; align-items: flex-end; height: 32vh; margin: auto; }
.bar { width: 92px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; font-family: var(--display); font-weight: 800; font-size: 24px; }
.bar i { display: block; width: 100%; min-height: 10px; border-radius: 12px 12px 4px 4px; background: var(--c); animation: grow .6s cubic-bezier(.2, 1, .3, 1); transform-origin: bottom; }
.bar.dim { opacity: .35; }

.pin-card { flex-direction: row; align-items: center; gap: 32px; width: auto; padding: 24px 32px; }
.pin-card .hint { font-weight: 800; font-size: 15px; color: var(--ink-2); }
.pin-card .hint b { color: var(--ink); }
.pin { font-family: var(--display); font-size: clamp(56px, 8vw, 92px); font-weight: 900; letter-spacing: .06em; line-height: 1; }
#qr { background: #fff; padding: 8px; border-radius: 14px; }
#qr img, #qr canvas { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 960px; }
.chip { font-weight: 800; font-size: 20px; padding: 10px 20px; border-radius: 999px; background: var(--c); box-shadow: 0 4px 0 rgba(0, 0, 0, .25); animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.chip.c2 { color: var(--ink); }
.chip.off { opacity: .4; }

.board { width: min(760px, 100%); display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 16px; background: var(--paper); color: var(--ink); padding: 14px 22px; border-radius: 18px; font-size: 22px; font-weight: 800; box-shadow: 0 5px 0 rgba(0, 0, 0, .22); animation: slide .45s cubic-bezier(.2, 1.2, .4, 1) backwards; }
.row .rank { font-family: var(--display); width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: #f0dfe3; }
.row:first-child .rank { background: var(--gold); }
.row .nm { flex: 1; text-align: left; }
.row .plus { color: var(--a3); font-size: 17px; }
.row .sc { font-family: var(--display); }

.podium { display: flex; align-items: flex-end; gap: 18px; }
.step { width: min(240px, 28vw); display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; font-size: 24px; }
.step .pts { font-family: var(--display); font-size: 16px; color: rgba(255, 255, 255, .75); }
.step .block { width: 100%; border-radius: 20px 20px 0 0; display: flex; justify-content: center; padding-top: 18px; color: var(--ink); font-family: var(--display); font-weight: 900; font-size: 56px; animation: grow .8s cubic-bezier(.2, 1, .3, 1) backwards; transform-origin: bottom; }
.step.p1 .block { background: var(--gold); height: 260px; font-size: 64px; animation-delay: .6s; }
.step.p2 .block { background: #e7e2e4; height: 190px; animation-delay: .3s; }
.step.p3 .block { background: #d98a5b; height: 140px; }
.step.p1 { font-size: 28px; }
.crown { width: 44px; height: 34px; fill: var(--gold); }
.rest { align-self: stretch; text-align: center; padding: 16px; background: rgba(0, 0, 0, .2); font-weight: 800; color: rgba(255, 255, 255, .8); }

.corner { position: fixed; right: 12px; bottom: 12px; opacity: .5; z-index: 2; }
.corner:hover { opacity: 1; }

@media (max-width: 600px) {
  .hero.inline { flex-direction: column; text-align: center; gap: 8px; }
  .pin-card { flex-direction: column; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
@keyframes slide { from { transform: translateX(-40px); opacity: 0; } }
@keyframes grow { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Admin lobby: site address and removable player chips */
.site { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 4vw, 48px); line-height: 1.1; overflow-wrap: anywhere; }
button.chip { color: #fff; font-family: var(--text); }
button.chip.c2 { color: var(--ink); }
button.chip:hover { filter: brightness(1.1); text-decoration: line-through; }

/* Killer: player phone */
.killer { justify-content: flex-start; gap: 16px; }
.killer .h1 { font-size: 34px; }
.target { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.target .label { color: rgba(255, 255, 255, .7); }
.tname { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 11vw, 64px); line-height: 1.05; color: var(--gold); overflow-wrap: anywhere; }
.code-card { align-items: center; text-align: center; font: inherit; }
.code { font-family: var(--display); font-weight: 900; font-size: 40px; letter-spacing: .14em; }
.code-card .hint, .sub { font-size: 13px; font-weight: 700; color: var(--ink-2); }
input.code-input { font-family: var(--display); font-size: 26px; letter-spacing: .2em; text-transform: uppercase; }
.rules summary { font-weight: 800; cursor: pointer; }
.rules ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; font-weight: 600; line-height: 1.35; }
.flash { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 3; background: var(--a3); padding: 12px 22px; border-radius: 999px; font-weight: 800; box-shadow: 0 5px 0 rgba(0, 0, 0, .25); animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }

/* Killer: host */
.top .btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.killer-host { justify-content: flex-start; }
.card.wide { width: min(960px, 100%); }
.winner { align-items: center; text-align: center; width: min(640px, 100%); animation: pop .4s cubic-bezier(.2, 1.4, .4, 1); }
.winner .tname { color: var(--bg); }
.scroll { overflow-x: auto; }
.ktable { width: 100%; border-collapse: collapse; font-weight: 700; }
.ktable th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding: 6px 8px; }
.ktable td { padding: 10px 8px; border-top: 1px solid #ecd9dd; vertical-align: middle; }
.ktable tr.dead td { opacity: .5; }
.ktable tr.dead td b { text-decoration: line-through; }
.ktable .mono { font-family: var(--display); letter-spacing: .08em; }
.ktable .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.ktable .btn.ghost { color: var(--ink); border-color: #e0c7cc; background: transparent; }
.klog { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; font-weight: 700; }

/* Avatars (R2) */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.avatar img { width: 88%; height: 88%; display: block; }
.card.wide { width: min(520px, 100%); }
.avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 10px; max-height: 36vh; overflow-y: auto; padding: 6px 4px; margin: 0 -4px; }
.av { aspect-ratio: 1; border-radius: 50%; padding: 0; display: grid; place-items: center; outline: 3px solid transparent; outline-offset: 2px; transition: transform .12s, outline-color .12s; }
.av img { width: 88%; height: 88%; }
.av:hover { transform: scale(1.06); }
.av[aria-pressed="true"] { outline-color: var(--bg); transform: scale(1.08); }
.av-title { text-align: center; font-weight: 800; color: var(--ink-2); font-size: 14px; min-height: 1.2em; }
.me { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer .who { display: flex; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; }
.chip .avatar { box-shadow: none; }
.step .avatar { margin-bottom: 4px; }

/* Homepage and /admin/: one card per game */
.game { display: flex; align-items: center; gap: 18px; width: min(520px, 100%); padding: 16px 20px; border-radius: 22px; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); transition: transform .12s, box-shadow .12s; }
.game:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(0, 0, 0, .25); }
.game:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.game:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.game-icon { flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; }
.game-icon img { width: 36px; height: 36px; }
.game-text { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.game-text b { font-family: var(--display); font-weight: 800; font-size: 22px; }
.game-text span { font-weight: 700; font-size: 15px; color: var(--ink-2); }
.game-go { font-family: var(--display); font-size: 26px; color: var(--bg); }

/* Admin pages: reset buttons in the bottom-right corner */
.corner-btns { display: flex; gap: 8px; }

/* Killer: host's list of secret codes */
a.btn { text-decoration: none; display: inline-block; }
.codes { width: min(960px, 100%); display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.code-row { width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 16px 18px; }
.code-row .who { flex-basis: 100%; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.code-row .who b { font-size: 18px; }
.code-row .code { font-size: 24px; letter-spacing: .1em; }
.code-row .btn.ghost { color: var(--ink); border-color: #e0c7cc; background: transparent; }
.code-row.dead { opacity: .5; }

/* Quiz question types: 6 option colors, multi-select, typed answer, slider, pin, puzzle */
:root { --a4: #0b8a8f; --a5: #7b4bc4; }
.c4 { --c: var(--a4); } .c5 { --c: var(--a5); }
.opt[aria-pressed="true"] { outline: 4px solid #fff; outline-offset: -4px; box-shadow: 0 2px 0 rgba(0, 0, 0, .28); transform: translateY(4px); }
.opt[aria-pressed="true"]::after { content: '✓'; position: absolute; top: 8px; right: 12px; font-size: 22px; }
.player .opt { position: relative; }
.qtext-phone { padding: 6px 16px 0; text-align: center; font-weight: 800; font-size: 18px; }
.answer-box { flex: 1; display: flex; flex-direction: column; gap: 16px; justify-content: center; padding: 16px; }
.answer-box .btn { align-self: stretch; }
.answer-box .btn:disabled { opacity: .45; }
.answer-box input[type="text"] { font-size: 26px; padding: 18px; }
.slider-value { text-align: center; font-family: var(--display); font-weight: 900; font-size: 64px; color: var(--gold); }
.slider-value small { font-size: 24px; color: #fff; margin-left: 6px; }
input[type="range"] { width: 100%; accent-color: var(--gold); height: 40px; padding: 0; border: 0; background: none; }
.range-ends { display: flex; justify-content: space-between; font-weight: 800; color: rgba(255, 255, 255, .75); }
.pinboard { position: relative; display: inline-block; align-self: center; max-width: 100%; line-height: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); touch-action: manipulation; }
.pinboard img { display: block; max-width: 100%; max-height: 52vh; }
.pin-mark { position: absolute; width: 28px; height: 28px; margin: -28px 0 0 -14px; pointer-events: none; }
.pin-mark svg { width: 100%; height: 100%; fill: var(--gold); stroke: var(--ink); stroke-width: 1.5; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); }
.pin-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--a0); border: 2px solid #fff; }
.pin-dot.ok { background: var(--a3); }
.pin-target { position: absolute; border-radius: 50%; border: 4px solid var(--gold); background: rgba(242, 193, 78, .25); transform: translate(-50%, -50%); }
.puzzle { display: flex; flex-direction: column; gap: 10px; }
.puzzle-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--paper); color: var(--ink); font-weight: 800; font-size: 19px; box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.puzzle-item .n { font-family: var(--display); width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--gold)); color: #fff; font-size: 15px; }
.puzzle-item .txt { flex: 1; }
.puzzle-item button { width: 44px; height: 44px; border-radius: 12px; background: #f0dfe3; color: var(--ink); font-size: 20px; font-weight: 900; }
.puzzle-item button:disabled { opacity: .3; }
.host .puzzle { width: min(760px, 100%); }
.host .puzzle-item { font-size: 26px; padding: 16px 22px; }
.host-panel { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-width: 0; }
.host-panel .pinboard img { max-height: 46vh; }
.hint-big { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 36px); text-align: center; }
.scale { position: relative; width: min(900px, 100%); height: 70px; margin: 20px 0 6px; }
.scale .line { position: absolute; left: 0; right: 0; top: 34px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.scale .band { position: absolute; top: 28px; height: 18px; border-radius: 9px; background: rgba(31, 158, 106, .55); }
.scale .dot { position: absolute; top: 30px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.scale .mark { position: absolute; top: -6px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-family: var(--display); font-weight: 900; font-size: 28px; color: var(--gold); }
.scale .mark::after { content: ''; width: 4px; height: 40px; background: var(--gold); border-radius: 2px; }
.typed { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; }
.typed span { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-weight: 800; font-size: 20px; }
.typed span.ok { background: var(--a3); }
.typed b { font-family: var(--display); margin-left: 8px; }
.big-answer { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 6vw, 72px); color: var(--gold); text-align: center; }
.solution { background: rgba(0, 0, 0, .22); padding: 8px 16px; border-radius: 12px; font-weight: 700; max-width: 100%; overflow-wrap: anywhere; }
.host .opts.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.host .opts.wide .opt { min-height: 80px; }
.geo-ring { position: absolute; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.geo-ring.edge { border: 3px dashed rgba(255, 255, 255, .8); background: rgba(242, 193, 78, .12); }
.geo-ring.bull { border: 3px solid var(--gold); background: rgba(242, 193, 78, .3); }
.geo-center { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); }
.pack-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 0 20px 6px; font-weight: 800; }
.pack-bar select { font: inherit; font-weight: 800; padding: 8px 12px; border-radius: 12px; border: 0; background: var(--paper); color: var(--ink); max-width: 100%; }
.pack-bar a { color: var(--gold); }
.bar.none-bar { --c: rgba(255, 255, 255, .85); }
.bar.none-bar span { font-family: var(--text); font-size: 14px; font-weight: 800; }

/* Quick question warning */
.warn { gap: 14px; }
.warn-bolt { width: 120px; height: 120px; padding: 18px; border-radius: 50%; background: var(--a0); box-shadow: 0 0 0 10px rgba(232, 69, 90, .3); animation: warn-pulse .7s ease-in-out infinite alternate; }
.warn-n { font-family: var(--display); font-weight: 900; font-size: 96px; line-height: 1; color: var(--gold); }
.host .warn-bolt { width: 180px; height: 180px; padding: 26px; }
.host .warn-n { font-size: 140px; }
@keyframes warn-pulse { to { transform: scale(1.08); box-shadow: 0 0 0 22px rgba(232, 69, 90, .15); } }
.warn.hard .warn-bolt { background: var(--a5); box-shadow: 0 0 0 10px rgba(123, 75, 196, .35); }
.points small { font-size: 18px; opacity: .85; }
.typed span.half { background: var(--a2); color: var(--ink); }

/* Date question */
.date-value { font-size: clamp(30px, 9vw, 44px); line-height: 1.15; }
.date-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.date-step { display: flex; align-items: center; justify-content: space-between; gap: 4px; background: rgba(0, 0, 0, .22); border-radius: 14px; padding: 4px; font-weight: 800; font-size: 14px; }
.date-step button { width: 40px; height: 40px; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 22px; font-weight: 900; }
.date-step { display: grid; grid-template-columns: 1fr 1fr; text-align: center; padding: 6px; }
.date-step span { grid-column: 1 / -1; order: -1; padding-bottom: 2px; }
.date-step button { width: auto; height: 44px; }
.preview .corner-btns, .preview .corner, .preview #next { display: none; }
