/* Lock It · Sticker Board: warm paper, black ink, one flat colour per game. */
:root {
  --bg: #FBF8F3; --surface: #FFFFFF; --line: #EFEAE1; --line2: #E7E1D6; --ink: #1C1A24; --muted: #5A5566; --on-ink: #FBF8F3;
  --map: #FF8A3D; --num: #4DA3FF; --face: #FF6FA8; --dahi: #B9E86A;
  --accent: #C2410C; --good: #2F7A12; --bad: #C2263B;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.5, .64, 1);
  --r: clamp(20px, 2vw, 28px); --pad: clamp(16px, 2vw, 26px);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
html, body { margin: 0; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; color: var(--ink); font: 500 16px/1.5 Inter, system-ui, sans-serif; }
body { min-height: 100vh; overflow-x: hidden; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(30px, 2.6vw + 14px, 48px); }
h2 { font-size: clamp(22px, 1vw + 16px, 28px); }
p { margin: 0; }
#app { width: 100%; max-width: 1320px; margin: 0 auto; padding: clamp(16px, 2vw, 28px) clamp(16px, 2.5vw, 32px) 40px; min-height: 100vh; display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 22px); }
body.phone #app { max-width: 560px; padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); gap: 14px; }
@media (min-width: 900px) { body.phone #app { max-width: 760px; padding-top: 32px; } }

/* basics */
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: var(--pad); }
.label { font-size: 13px; font-weight: 700; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.accent { color: var(--accent); }
.h-sec { font-size: clamp(30px, 2vw + 14px, 44px); }
.g-map { --g: var(--map); } .g-num { --g: var(--num); } .g-face { --g: var(--face); } .g-dahi { --g: var(--dahi); }

button { touch-action: manipulation; font: 700 17px Inter, sans-serif; border: 0; border-radius: 16px; padding: 16px 24px; min-height: 52px; cursor: pointer; color: var(--on-ink); background: var(--ink);
  transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(28, 26, 36, .14); }
button:active:not(:disabled) { transform: translateY(1px) scale(.98); box-shadow: none; }
button:disabled { opacity: .4; cursor: not-allowed; }
button.ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line2); }
button.small { font-size: 14px; padding: 9px 16px; min-height: 44px; border-radius: 99px; }
button.corner { align-self: flex-end; }
button:focus-visible, input:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--num); outline-offset: 3px; }
a { color: var(--ink); }
input { font: 700 20px Inter, sans-serif; width: 100%; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line2); background: var(--surface); color: var(--ink); text-align: center; transition: border-color .15s; }
input::placeholder { color: #8C8697; }
input:focus { outline: none; border-color: var(--ink); }
input.code { font: 800 26px var(--display); letter-spacing: .3em; text-transform: uppercase; padding: 10px; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line2); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); border: 5px solid var(--surface); box-shadow: 0 0 0 1.5px var(--ink); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid var(--surface); }
label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
select { font: 700 15px Inter, sans-serif; background: rgba(255, 255, 255, .7); color: var(--ink); border: 0; border-radius: 99px; padding: 0 14px; height: 46px; cursor: pointer; }

/* brand */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 clamp(22px, .6vw + 18px, 26px)/1 var(--display); letter-spacing: -.02em; }
.lockbox { width: 1.45em; height: 1.45em; border-radius: .45em; background: var(--ink); display: grid; place-items: center; }
.lockmark { width: .8em; height: .8em; fill: none; stroke: var(--on-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.site-head nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-head nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 99px; }
.site-head nav a:hover { background: var(--surface); }
.who { display: inline-flex; align-items: center; gap: 10px; padding: 0 16px 0 6px; min-height: 44px; border-radius: 99px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line2); font-size: 15px; font-weight: 600; }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--map); display: grid; place-items: center; font-weight: 700; }

/* home / name: the website */
body.web #app { max-width: 1240px; gap: 0; padding-bottom: 0; }
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.hero-copy { gap: 22px; }
.eyebrow { align-self: flex-start; font-size: 14px; font-weight: 600; background: var(--surface); border: 1.5px solid var(--line2); padding: 7px 14px; border-radius: 99px; }
.display-xl { font-size: clamp(50px, 6vw, 88px); line-height: .95; letter-spacing: -.04em; }
.lede { font-size: clamp(17px, .6vw + 14px, 20px); color: var(--muted); max-width: 470px; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; max-width: 560px; }
.mode { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 22px; }
.mode b { font: 700 21px var(--display); display: flex; justify-content: space-between; align-items: center; }
.mode small { font-size: 14px; font-weight: 500; opacity: .8; }
.mode.ghost small { color: var(--muted); opacity: 1; }
.codebox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.codebox label { flex-direction: row; align-items: center; color: var(--muted); font-weight: 600; font-size: 15px; }
.codebox input { width: 130px; font-size: 20px; }
.codebox button { min-height: 50px; padding: 0 22px; background: var(--map); color: var(--ink); }
.codebox p { flex-basis: 100%; }
.namebox { gap: 10px; max-width: 520px; }
.namebox .inline { display: flex; gap: 10px; flex-wrap: wrap; }
.namebox input { flex: 1 1 220px; width: auto; text-align: left; }
.namebox button { flex: 0 0 auto; }
.stickers { position: relative; height: clamp(320px, 38vw, 520px); }
.stk { position: absolute; aspect-ratio: 1; border-radius: clamp(24px, 3vw, 36px); background: var(--g); display: grid; place-items: center; animation: drift 6s cubic-bezier(.45, 0, .55, 1) infinite; }
.stk:nth-child(1) { --r: -6deg; left: 4%; top: 6%; width: 52%; }
.stk:nth-child(2) { --r: 7deg; right: 2%; top: 0; width: 40%; animation-delay: -1.5s; }
.stk:nth-child(3) { --r: 4deg; left: 14%; bottom: 0; width: 38%; animation-delay: -3s; }
.stk:nth-child(4) { --r: -5deg; right: 6%; bottom: 8%; width: 38%; animation-delay: -4.5s; }
.stk .gl { width: 46%; } .stk .gl-num { font-size: clamp(34px, 4.4vw, 68px); }
.tag { position: absolute; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; border-radius: 99px; padding: 9px 16px; animation: pop .6s var(--spring) both; }
.tag svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.tag.t1 { left: 26%; top: 46%; background: var(--surface); border: 1.5px solid var(--ink); box-shadow: 0 5px 0 var(--ink); animation-delay: .5s; }
.tag.t2 { right: 0; top: 56%; background: var(--ink); color: var(--on-ink); font: 800 clamp(20px, 2vw, 28px) var(--display); border-radius: 16px; animation-delay: .8s; }
.band { background: var(--surface); border-block: 1.5px solid var(--line); margin: 0 calc(50% - 50vw); padding: clamp(48px, 6vw, 72px) calc(50vw - 50%); }
.section { display: flex; flex-direction: column; gap: 28px; }
.section.pad { padding: clamp(48px, 6vw, 72px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-head h2 { font-size: clamp(32px, 2.4vw + 14px, 48px); }
.section-head p { color: var(--muted); max-width: 380px; }
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.show { border-radius: 26px; background: var(--bg); border: 1.5px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.show:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(28, 26, 36, .1); }
.show .top { height: 150px; background: var(--g); display: grid; place-items: center; }
.show .top .gl { width: 66px; } .show .top .gl-num { font-size: 50px; }
.show .txt { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.show h3 { font-size: 24px; } .show p { font-size: 15px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.steps li { background: var(--surface); border: 1.5px solid var(--line); border-radius: 24px; padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.steps .n { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; background: var(--g); display: grid; place-items: center; font: 800 22px var(--display); }
.steps b { display: block; font-size: 18px; margin-bottom: 4px; } .steps .txt { color: var(--muted); font-size: 15px; }
.site-foot { border-top: 1.5px solid var(--line); padding: 24px 0 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.gl-num { font: 800 1em var(--display); letter-spacing: -.04em; white-space: nowrap; }

/* share + toast */
.sharebar { display: flex; flex-wrap: wrap; gap: 8px; }
.sh { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; min-height: 44px; border-radius: 99px; font: 600 14px Inter, sans-serif; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line2); text-decoration: none; box-shadow: none; }
.sh::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--ink)); }
.sh.wa { --dot: #1FAF55; } .sh.tg { --dot: #2A9BD8; } .sh.x { --dot: #000; } .sh.fb { --dot: #1877F2; } .sh.mail { --dot: var(--face); } .sh.sms { --dot: var(--dahi); }
.sh.copy, .sh.more { background: var(--ink); color: var(--on-ink); border-color: var(--ink); min-height: 44px; padding: 0 16px; } .sh.copy::before, .sh.more::before { display: none; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); translate: -50% 0; z-index: 9999; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 16px; background: var(--ink); color: var(--on-ink); font-weight: 600; text-align: center; box-shadow: 0 10px 30px rgba(28, 26, 36, .25); animation: rise .3s var(--ease) both; }

/* host lobby: join | games | players */
.lobby { display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 24px); align-items: stretch; flex-grow: 1; }
.lobby > .join { flex: 1 1 300px; max-width: 360px; align-items: center; text-align: center; }
.lobby > .picker { flex: 999 1 520px; min-width: 0; }
.lobby > .players { flex: 1 1 240px; max-width: 300px; }
@media (max-width: 1100px) { .lobby > .join, .lobby > .players { max-width: none; } }
.join .far { margin-top: auto; width: 100%; border-top: 1.5px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.join .sharebar { justify-content: center; }
.qr { width: clamp(150px, 24vh, 220px); aspect-ratio: 1; background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; padding: 14px; margin: 0 auto; animation: breathe 3.2s ease-in-out infinite; }
.qr img, .qr canvas { width: 100% !important; height: 100% !important; image-rendering: pixelated; }
.tiles { display: flex; gap: 8px; justify-content: center; }
.tiles span { width: clamp(46px, 4vw, 58px); height: clamp(56px, 5vw, 70px); border-radius: 16px; display: grid; place-items: center; font: 800 clamp(30px, 2.6vw, 40px) var(--display); background: var(--g); }
.tiles span:nth-child(1) { --g: var(--map); } .tiles span:nth-child(2) { --g: var(--num); } .tiles span:nth-child(3) { --g: var(--face); } .tiles span:nth-child(4) { --g: var(--dahi); }
.invite input { text-align: left; font-size: 15px; font-weight: 600; background: var(--bg); }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; flex-grow: 1; }
.game { border-radius: 26px; background: var(--g); padding: clamp(18px, 1.8vw, 24px); display: flex; flex-direction: column; gap: 10px; min-height: 200px; transition: transform .25s var(--ease), box-shadow .25s; }
.game:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(28, 26, 36, .12); }
.game-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.game h2 { font-size: clamp(24px, 1vw + 16px, 30px); }
.game .glyph { flex-shrink: 0; } .game .gl { width: 46px; } .game .gl-num { font-size: 24px; }
.game .blurb { font-size: 15px; line-height: 1.45; color: #2A2533; max-width: 320px; }
.go-row { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rounds { flex-direction: row; }
.game .go { min-height: 46px; padding: 0 24px; border-radius: 99px; }
.players .chips { flex-grow: 1; align-content: flex-start; }

/* players */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 600; font-size: clamp(15px, .3vw + 14px, 18px); animation: pop .45s var(--spring) both; transition: background .25s, color .25s; }
.chip.done { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip.done::after { content: ''; width: 14px; height: 8px; margin-left: auto; border-left: 3px solid var(--dahi); border-bottom: 3px solid var(--dahi); transform: rotate(-45deg) translateY(-2px); }
.chip.wait { border-style: dashed; border-color: var(--line2); background: var(--bg); }
.chips.list { flex-direction: column; flex-wrap: nowrap; }
.chips.list .chip { border-radius: 16px; padding: 8px 14px 8px 8px; background: var(--bg); }
.chips.list .chip.done { background: var(--ink); }
.chips.list .chip::before { content: attr(data-i); width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; color: var(--ink); background: var(--map); flex-shrink: 0; }
.chips.list .chip:nth-child(4n+2)::before { background: var(--num); } .chips.list .chip:nth-child(4n+3)::before { background: var(--face); } .chips.list .chip:nth-child(4n+4)::before { background: var(--dahi); }

/* question */
.topbar { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.gname { display: inline-flex; align-items: center; gap: 10px; font: 800 clamp(20px, .6vw + 16px, 24px) var(--display); }
.mini { width: 36px; height: 36px; border-radius: 11px; background: var(--g); display: grid; place-items: center; overflow: hidden; }
.mini .gl { width: 24px; } .mini .gl-num { font-size: 0; } .mini .gl-num::after { content: '#'; font-size: 22px; }
.pill { font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--line2); }
.dots { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dots i { width: 10px; height: 10px; border-radius: 99px; background: var(--line2); transition: all .3s var(--ease); }
.dots i.past { background: var(--ink); }
.dots i.now { width: 28px; background: var(--g, var(--map)); box-shadow: 0 0 0 1.5px var(--ink); }
.clock { margin-left: auto; display: inline-flex; align-items: baseline; gap: 6px; }
.clock b { font: 800 clamp(36px, 2vw + 20px, 52px)/1 var(--display); min-width: 1.4em; text-align: right; font-variant-numeric: tabular-nums; }
.clock small { font-weight: 600; color: var(--muted); }
.clock.low b { color: var(--bad); animation: tick 1s ease-in-out infinite; }
.drain { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; flex-shrink: 0; }
.drain i { display: block; height: 100%; background: var(--ink); border-radius: 99px; transform-origin: left; animation: drain linear both; }
.drain.low i { background: var(--bad); }
.ask { display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 24px); flex-grow: 1; align-items: stretch; }
.ask > :first-child { flex: 999 1 560px; min-width: 0; }
.ask > aside { flex: 1 1 260px; max-width: 320px; }
@media (max-width: 960px) { .ask > aside { max-width: none; } }
.panel { position: relative; overflow: hidden; background: var(--g); border: 0; }
.prompt { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.prompt h2 { font-size: clamp(26px, 2.8vw + 12px, 64px); line-height: 1.04; letter-spacing: -.03em; max-width: 960px; }
body.tv .prompt { padding: clamp(28px, 4vw, 56px); min-height: min(440px, 55vh); }
.prompt .label { color: rgba(28, 26, 36, .78); }
.photo { position: relative; border-radius: var(--r); overflow: hidden; background: var(--line); min-height: clamp(220px, 46vh, 560px); animation: zoomIn .4s var(--ease) both; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo h2 { position: absolute; left: 16px; bottom: 16px; right: 16px; width: fit-content; background: var(--surface); border-radius: 18px; padding: 10px 18px; font-size: clamp(22px, 2vw + 10px, 40px); }
.map { height: 52vh; min-height: 300px; border-radius: var(--r); background: #DCEBFA; border: 1.5px solid var(--line); }
.leaflet-container { font-family: Inter, sans-serif; }
.leaflet-tooltip { font-weight: 700; color: var(--ink); }
.leaflet-control-attribution { font-size: 10px; }
.slider { display: flex; flex-direction: column; gap: 10px; }
.slider label { flex-direction: row; font-size: 15px; }
.locked { display: grid; place-items: center; text-align: center; gap: 12px; padding: 48px 0; }
.check { width: 96px; height: 96px; border-radius: 28px; background: var(--dahi); display: grid; place-items: center; animation: pop .5s var(--spring) both; rotate: -6deg; }
.check svg { width: 50px; height: 50px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pin { background: none; border: 0; }
.pin svg { animation: pinDrop .45s var(--spring) both; }
.qbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.secs { font: 800 30px/1 var(--display); min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.qbar:has(+ .drain.low) .secs { color: var(--bad); }
body.phone .prompt { padding: 22px; min-height: 0; }
body.phone .prompt h2 { font-size: clamp(22px, 5.4vw, 30px); }
body.phone .photo { min-height: 190px; height: 30vh; }
body.phone .photo h2 { font-size: 20px; padding: 8px 14px; left: 10px; bottom: 10px; }

/* phone question: map and option rounds fill exactly one screen */
#app.fit { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; gap: 10px; }
#app.fit > * { flex-shrink: 0; }
#app.fit .map { flex: 1 1 auto; height: auto; min-height: 120px; }
#app.fit .photo { flex: 0 1 26dvh; height: auto; min-height: 96px; }
#app.fit .card.prompt { padding: 14px 16px; }
#app.fit .prompt h2, #app.fit > h1 { font-size: 21px !important; }
#app.fit .slider { padding: 10px 16px; gap: 8px; }

/* reveal */
.split { display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 24px); align-items: stretch; flex-grow: 1; }
.split > .stage { flex: 999 1 560px; min-width: 0; }
.split > .scoreboard { flex: 1 1 300px; max-width: 380px; }
@media (max-width: 960px) { .split > .scoreboard { max-width: none; } }
.answer { font: 800 clamp(80px, 9vw + 20px, 168px)/.85 var(--display); letter-spacing: -.05em; }
.answer small { font-size: .26em; letter-spacing: 0; color: var(--muted); }
.ask-again { font-size: clamp(16px, .6vw + 13px, 20px); font-weight: 600; color: var(--muted); }
.answer-chip { display: grid; gap: 2px; padding: 16px 18px; border-radius: 22px; background: var(--surface); border: 1.5px solid var(--line); }
.answer-chip b { font: 800 clamp(24px, 6vw, 32px)/1.1 var(--display); }
.scale { position: relative; height: 170px; margin: auto 24px 0; }
.scale .line { position: absolute; left: 0; right: 0; top: 82px; height: 6px; border-radius: 3px; background: var(--line); transform-origin: left; animation: grow .5s var(--ease) .1s both; }
.scale .beam { position: absolute; top: 18px; bottom: 18px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: beam .35s var(--spring) .2s both; }
.mark { position: absolute; display: flex; flex-direction: column; align-items: center; translate: -50% 0; text-align: center; white-space: nowrap; font-size: 14px; animation-delay: var(--d); }
.mark b { display: block; font-size: 15px; }
.mark span { color: var(--muted); }
.mark i { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--map); border: 2px solid var(--ink); margin: 6px auto; }
.mark:nth-child(4n+4) i { background: var(--num); } .mark:nth-child(4n+5) i { background: var(--face); } .mark:nth-child(4n+6) i { background: var(--dahi); }
.mark.down { top: 74px; animation: upIn .45s var(--spring) both; }
.mark.up { bottom: 74px; animation: dropIn .45s var(--spring) both; }
.mark.up i { order: 9; }
.mark.hit span { color: var(--good); font-weight: 800; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.scoreboard .results { grid-template-columns: 1fr; }
.res { border-radius: 20px; padding: 12px 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; background: var(--surface); border: 1.5px solid var(--line); }
.res b { font-size: 17px; }
.res .pts { grid-row: span 2; grid-column: 2; grid-row-start: 1; font: 800 26px/1 var(--display); color: var(--good); }
.res small { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.res.best { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.res.best .pts { color: var(--dahi); } .res.best small { color: #CFCAD8; }
.fact { display: flex; gap: 16px; align-items: center; font-size: clamp(15px, .4vw + 13px, 19px); background: var(--bg); }
.fact img { width: clamp(72px, 9vw, 120px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; flex-shrink: 0; }
.big { font-size: clamp(40px, 4vw + 18px, 76px); letter-spacing: -.04em; overflow-wrap: anywhere; }
.result-panel { border-radius: 28px; background: var(--g); padding: 28px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.result-panel .label { color: rgba(28, 26, 36, .82); }
.points { font: 800 clamp(84px, 24vw, 120px)/.9 var(--display); letter-spacing: -.05em; }
.points.zero { color: rgba(28, 26, 36, .5); }
.result-panel .pill { background: rgba(255, 255, 255, .8); border: 0; }
.result-panel .pill.rank { background: var(--ink); color: var(--on-ink); }
.board { display: flex; flex-direction: column; gap: 10px; }
.board div { display: flex; align-items: center; gap: 14px; border-radius: 18px; padding: 12px 18px; font-size: clamp(17px, .5vw + 14px, 22px); font-weight: 700; background: var(--surface); border: 1.5px solid var(--line); }
.board div:first-child { background: var(--map); border-color: var(--map); font-size: clamp(20px, 1vw + 15px, 30px); }
.board div span:nth-child(2) { flex-grow: 1; overflow-wrap: anywhere; }
.board .n { font-family: var(--display); font-weight: 800; width: 28px; }
.confetti i { position: fixed; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: confetti 2.6s ease-in both; pointer-events: none; z-index: 50; }

/* clue / options */
.clue h2 { font-size: clamp(22px, 1.8vw + 12px, 42px); line-height: 1.18; letter-spacing: -.015em; }
body.phone .clue h2, #app.fit .clue h2 { font-size: clamp(18px, 4.6vw, 21px) !important; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 60px; border-radius: 18px; font: 600 clamp(16px, .5vw + 14px, 21px)/1.25 Inter, sans-serif; color: var(--ink); text-align: left; background: var(--surface); border: 1.5px solid var(--line2); box-shadow: none; }
.opt b { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 800 20px var(--display); color: var(--ink); }
.o0 b { background: var(--map); } .o1 b { background: var(--num); } .o2 b { background: var(--face); } .o3 b { background: var(--dahi); }
.opt span { display: flex; flex-direction: column; overflow-wrap: anywhere; } .opt small { font-size: 13px; color: var(--muted); font-weight: 600; }
.opts.pick { flex: 1 1 auto; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; min-height: 0; }
.opts.pick .opt { font-size: 17px; min-height: 52px; padding: 10px 14px; }
.opt.chosen { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.opt.right { background: var(--dahi); border-color: var(--ink); }
.opt.right b { background: var(--ink); color: var(--dahi); } .opt.right small { color: #22300F; }
.opt.wrong { opacity: .45; }

/* motion: transform + opacity only, so it stays smooth on cheap phones */
.rise { animation: rise .45s var(--ease) both; animation-delay: var(--d, 0s); }
.pop { animation: pop .45s var(--spring) both; animation-delay: var(--d, 0s); }
.slam { animation: slam .55s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-10px) rotate(calc(var(--r, 0deg) + 1.5deg)); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 70% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); } }
@keyframes slam { 0% { transform: scale(1.6); opacity: 0; } 60% { transform: scale(.97); opacity: 1; } 100% { transform: scale(1); } }
@keyframes zoomIn { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes tick { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes beam { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes dropIn { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes upIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pinDrop { from { transform: translateY(-26px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes confetti { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(105vh) rotate(540deg); opacity: .8; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* screen sizes */
@media (max-width: 600px) {
  .stickers { height: 280px; }
  .site-head nav a { display: none; }
  .tag.t1 { left: 8%; }
}
@media (orientation: landscape) and (max-height: 520px) {
  body.phone #app { max-width: 900px; }
  #app.fit .photo { flex-basis: 34dvh; min-height: 80px; }
  #app.fit .map { min-height: 100px; }
  #app.fit .drain { display: none; }
}
@media (min-width: 1700px) { #app { max-width: 1600px; } body.web #app { max-width: 1320px; } html, body { font-size: 18px; } }
