/* Dropped. Colour: node oxfords/scripts/palette.mjs --brand "#FF3D7F" --support "#C6F432" --mode dark --ground near-black
   lead pink = you and the main action, support lime = your friend, pop teal = the true location. */
:root {
  color-scheme: dark;
  --page: #0A0A0A; --surface: #141414; --surface-2: #1E1E1E; --selected: #262626;
  --line: #2E2E2E; --line-strong: #626262; --focus: #F74E82; --overlay: #000000A3;
  --text: #EBEBEB; --text-2: #B1B1B1; --text-3: #8D8D8D; --text-disabled: #545454;
  --shadow-2: 0 2px 4px #00000066, 0 16px 40px #00000080;
  --action: #F2F2F2; --action-hover: #E4E4E4; --action-pressed: #D7D7D7; --on-action: #111111;
  --action-disabled: #2E2E2E; --on-action-disabled: #6D6D6D;
  --control: #292929; --control-hover: #353535; --control-pressed: #181818;
  --lead: #F74E82; --lead-hover: #FF7398; --lead-pressed: #E23871; --on-lead: #111111; --lead-tint: #351F24;
  --support: #C8F253; --support-hover: #BCE542; --on-support: #111111; --support-tint: #232916;
  --pop: #3CD1C3; --on-pop: #111111; --pop-tint: #0F2C29;
  --danger-ink: #EC5D53; --warning: #F0AC3F; --on-warning: #111111;

  --wide: 125%;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 40px;
  --t1: 13px; --t2: 15px; --t3: 18px; --t4: 24px; --t5: 36px; --t6: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font: 400 var(--t2)/1.5 Archivo, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.noscript { padding: var(--s5); }

/* ---------- screens ---------- */
.screen { display: none; }
body[data-screen="home"] #home, body[data-screen="lobby"] #lobby,
body[data-screen="round"] #round, body[data-screen="reveal"] #reveal, body[data-screen="final"] #final { display: block; }

.world { position: fixed; inset: 0; }
body[data-screen="round"] .world { visibility: hidden; }
body[data-screen="home"] .world, body[data-screen="lobby"] .world { pointer-events: none; }
body[data-screen="home"] .world::after, body[data-screen="lobby"] .world::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--page) 0%, #0A0A0ACC 30%, transparent 52%);
}

.panel-screen { position: fixed; inset: 0; overflow-y: auto; z-index: 2; }
.home-col, .lobby-col { width: min(560px, 100%); padding: var(--s6) var(--s6) 64px; }
.lobby-col { padding-bottom: 0; }

/* ---------- type ---------- */
.onair { margin-top: 2vh; }
.onair .s.empty { color: var(--text-3); }
.wordmark {
  font-weight: 900; font-stretch: var(--wide); text-transform: uppercase;
  font-size: clamp(56px, 11vw, 120px); line-height: .9; letter-spacing: -.035em;
  margin: 6vh 0 var(--s5);
}
.wordmark::after { content: ""; display: block; height: 10px; width: 1.2em; background: var(--lead); margin-top: 18px; transform-origin: left; animation: wipe-x .6s .15s var(--ease) both; }
.lede { font-size: var(--t3); line-height: 1.45; color: var(--text-2); max-width: 30em; margin-bottom: var(--s6); }
.title { font-weight: 900; font-stretch: var(--wide); text-transform: uppercase; font-size: var(--t5); line-height: 1; letter-spacing: -.02em; margin: var(--s2) 0 var(--s3); }
.kicker { font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; font-size: var(--t1); color: var(--lead); }
h3 { font-weight: 800; font-size: var(--t2); margin-bottom: var(--s2); }
.hint { color: var(--text-2); font-size: var(--t2); }
.hint b { color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: .06em; }

/* ---------- controls ---------- */
.stack { display: grid; gap: var(--s5); }
.field { display: grid; gap: var(--s2); }
label, legend { font-weight: 700; font-size: var(--t2); }
input:not([type="radio"]) {
  height: 48px; padding: 0 var(--s4); border: 1px solid var(--line-strong); border-radius: 0;
  background: var(--surface); font-size: 16px; width: 100%;
}
input:not([type="radio"]):focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
input[aria-invalid="true"] { border-color: var(--danger-ink); }
.field-err { color: var(--danger-ink); font-size: var(--t2); min-height: 0; }
.field-err:empty { display: none; }
.row { display: flex; gap: var(--s2); }
.row input { flex: 1; min-width: 0; }
#code { text-transform: uppercase; letter-spacing: .12em; font-variant-numeric: tabular-nums; max-width: 180px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5); border: 2px solid transparent; border-radius: 0; cursor: pointer; /* transparent border = visible shape in High Contrast */
  background: var(--control); color: var(--text); text-decoration: none;
  font-weight: 800; font-stretch: 112%; font-size: var(--t2); white-space: nowrap;
  transition: background-color .12s ease-out, transform .12s ease-out;
}
.btn:hover { background: var(--control-hover); }
.btn:active { background: var(--control-pressed); transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
.btn.lead { background: var(--lead); color: var(--on-lead); }
.btn.lead:hover { background: var(--lead-hover); }
.btn.lead:active { background: var(--lead-pressed); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); }
.btn[disabled] { background: var(--surface); color: var(--text-2); box-shadow: inset 0 0 0 2px var(--text-disabled); cursor: not-allowed; transform: none; }
.btn.big { min-height: 56px; font-size: var(--t3); font-stretch: var(--wide); text-transform: uppercase; padding: 0 var(--s6); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.join-note { font-size: var(--t3); }
.join-note b { color: var(--lead); letter-spacing: .06em; }

.code-form { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); display: grid; gap: var(--s2); }

/* past games */
.history { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); display: grid; gap: var(--s3); }
.history h2 { font-weight: 900; font-stretch: var(--wide); text-transform: uppercase; font-size: var(--t4); line-height: 1; }
.records, .runs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.records li { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s2) var(--s4); background: var(--surface); box-shadow: inset 4px 0 0 var(--support); }
.records .vs { color: var(--text-2); }
.records b { font-variant-numeric: tabular-nums; }
.runs summary { border: 2px solid transparent; display: grid; grid-template-columns: auto minmax(0, 1fr) auto 3.4em; align-items: center; gap: var(--s3); min-height: 48px; padding: 0 var(--s4); background: var(--surface); cursor: pointer; list-style: none; }
.runs summary::-webkit-details-marker { display: none; }
.runs summary:hover { background: var(--surface-2); }
.runs summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.runs .when { color: var(--text-3); font-size: var(--t1); font-variant-numeric: tabular-nums; }
.runs .what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runs .score { font-weight: 900; font-stretch: var(--wide); font-variant-numeric: tabular-nums; }
.runs .res { font-weight: 800; font-size: var(--t1); text-align: right; text-transform: uppercase; font-stretch: var(--wide); }
.runs .res[data-r="won"] { color: var(--lead); }
.runs .res[data-r="lost"], .runs .res[data-r="draw"] { color: var(--text-3); }
.runs details[open] summary { background: var(--surface-2); }
.runs table { width: 100%; border-collapse: collapse; background: var(--surface); font-variant-numeric: tabular-nums; font-size: var(--t1); }
.runs th, .runs td { padding: 6px var(--s4); text-align: right; border-top: 1px solid var(--line); }
.runs th:nth-child(-n+2), .runs td:nth-child(-n+2) { text-align: left; }
.runs th { color: var(--text-3); font-weight: 700; }
.runs td.place { color: var(--text-2); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn { justify-self: start; background: none; border: 0; padding: 0; min-height: 24px; color: var(--text-2); text-decoration: underline; cursor: pointer; font-size: var(--t1); }
.link-btn[data-armed] { color: var(--danger-ink); }
.link-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* segmented radios: broadcast tabs */
.settings { display: grid; gap: var(--s5); margin: var(--s5) 0 var(--s6); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s2); }
legend { padding: 0; margin-bottom: var(--s2); }
.seg { display: flex; flex-wrap: wrap; gap: 2px; }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s4);
  background: var(--surface-2); color: var(--text-2); font-weight: 700; font-size: var(--t2); cursor: pointer; border: 2px solid transparent;
  transition: background-color .12s ease-out, color .12s ease-out; white-space: nowrap;
}
.seg label:hover span { background: var(--control-hover); color: var(--text); }
.seg input:checked + span { background: var(--action); color: var(--on-action); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; position: relative; z-index: 1; }
.seg input:disabled + span { cursor: default; }
.seg input:disabled:not(:checked) + span { color: var(--text-3); background: var(--surface); }
.seg label:hover input:disabled:not(:checked) + span { background: var(--surface); color: var(--text-3); }
.seg-note { color: var(--text-3); font-size: var(--t1); }
.seg-note:empty { display: none; }
body.solo [data-duo-only] { display: none; }

.invite { margin-bottom: var(--s5); display: grid; gap: var(--s2); }
.pregame { display: flex; align-items: stretch; margin: 0 0 var(--s5); text-transform: uppercase; font-stretch: var(--wide); box-shadow: var(--shadow-2); width: fit-content; max-width: 100%; animation: wipe-in .5s var(--ease) both; }
.pg-tag { background: var(--action); color: var(--on-action); font-weight: 900; font-size: var(--t1); line-height: 1.05; padding: var(--s2) var(--s3); display: grid; place-items: center; text-align: center; }
.pg-players { display: flex; background: var(--surface); min-width: 0; }
.pg-p { display: grid; gap: 2px; padding: var(--s2) var(--s4); min-width: 0; box-shadow: inset 0 -5px 0 var(--c); }
.pg-p .n { font-size: 11px; font-weight: 800; color: var(--text-2); letter-spacing: .04em; }
.pg-p .s { font-size: var(--t4); font-weight: 900; line-height: 1.05; text-transform: none; font-stretch: 112%; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-p.waiting .s { color: var(--text-3); animation: blink 1.2s steps(2) infinite; }
.pg-p.offline .s { color: var(--text-3); }
.pg-code { background: var(--lead); color: var(--on-lead); display: grid; place-items: center; padding: var(--s2) var(--s3); line-height: 1; }
.pg-code span { font-size: 11px; font-weight: 800; }
.pg-code b { font-size: var(--t4); font-weight: 900; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.invite .hint { margin-bottom: var(--s1); }
body.solo .invite { display: none; }
.start { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); position: sticky; bottom: 0; z-index: 1; margin: 0 calc(var(--s6) * -1); padding: var(--s4) var(--s6); background: var(--page); border-top: 1px solid var(--line); }
.start .hint:empty { display: none; }
.back { display: inline-block; margin-top: var(--s5); color: var(--text-2); font-size: var(--t2); min-height: 24px; }

/* ---------- round ---------- */
.pano { position: fixed; inset: 0; overflow: hidden; background: var(--page); }
.pano iframe { position: absolute; left: 0; top: -72px; width: 100%; height: calc(100% + 72px); border: 0; }
.pano-js { position: absolute; inset: 0; }
.pano.js .shield-bottom { width: 260px; }
.pano-loading { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-stretch: var(--wide); text-transform: uppercase; color: var(--text-3); font-size: var(--t3); }
.shield { position: absolute; z-index: 1; }
.shield-bottom { right: 0; bottom: 0; width: 140px; height: 22px; } /* keeps "Report a problem" (it shows the address) out of reach */
.shield-all { inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 40px; cursor: not-allowed; }
.shield-all span { background: var(--overlay); padding: var(--s1) var(--s3); font-size: var(--t1); font-weight: 700; color: var(--text-2); }

.bug {
  position: fixed; left: 16px; top: 16px; z-index: 3; display: flex; align-items: stretch;
  box-shadow: var(--shadow-2); text-transform: uppercase; font-stretch: var(--wide);
  animation: wipe-in .5s var(--ease) both;
}
.bug-round { background: var(--action); color: var(--on-action); padding: var(--s2) var(--s3); display: grid; place-items: center; line-height: 1; font-weight: 800; font-size: var(--t1); min-width: 64px; }
.bug-round b { font-size: 32px; font-weight: 900; font-variant-numeric: tabular-nums; }
.bug-tier { writing-mode: vertical-rl; transform: rotate(180deg); background: var(--surface-2); color: var(--text-2); font-weight: 800; font-size: 11px; letter-spacing: .08em; padding: var(--s2) 4px; text-align: center; }
.bug-tier[data-tier="hard"] { color: var(--lead); }
.bug-players { display: flex; background: var(--surface); }
.bug-p { display: grid; align-content: center; gap: 2px; padding: var(--s2) var(--s4); min-width: 132px; box-shadow: inset 0 -5px 0 var(--c); position: relative; }
.bug-p .n { font-size: var(--t1); font-weight: 700; font-stretch: 100%; text-transform: none; color: var(--text-2); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bug-p .s { font-size: 34px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.bug-p .locked { position: absolute; top: 6px; right: 8px; width: 10px; height: 10px; background: var(--c); }
.bug-clock { background: var(--lead); color: var(--on-lead); display: grid; place-items: center; padding: 0 var(--s4); min-width: 104px; }
.bug-clock b { font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; }
.bug-clock.urgent { background: var(--action); color: var(--on-action); }
.bug-clock.urgent b { animation: blink 1s steps(2) infinite; }

.status {
  position: fixed; left: 16px; top: 116px; z-index: 3; max-width: calc(100vw - 32px);
  background: var(--support); color: var(--on-support); font-weight: 800; font-stretch: 112%;
  font-size: var(--t2); padding: 6px var(--s3); animation: wipe-in .35s var(--ease) both;
}
.status:empty { display: none; }
.status.quiet { background: var(--surface); color: var(--text); }
.status.warn { background: var(--warning); color: var(--on-warning); }

.guess {
  position: fixed; right: 16px; bottom: 40px; z-index: 3; width: 380px;
  display: grid; box-shadow: var(--shadow-2); border-radius: 8px; overflow: hidden;
  transition: width .2s var(--ease);
}
.guess-map { height: 250px; position: relative; transition: height .2s var(--ease); background: var(--surface); }
.guess:hover, .guess:focus-within, .guess.big { width: min(640px, 48vw); }
.guess:hover .guess-map, .guess:focus-within .guess-map, .guess.big .guess-map { height: min(460px, 56vh); }
.guess-bar { display: flex; }
.guess-bar #lockBtn { flex: 1; min-height: 52px; font-size: var(--t3); font-stretch: var(--wide); text-transform: uppercase; }
.guess-bar #lockBtn.locked { background: var(--surface-2); color: var(--text-2); cursor: default; }
.icon-btn { padding: 0 var(--s4); font-size: var(--t1); }
.icon-btn[aria-pressed="true"] { background: var(--action); color: var(--on-action); }
.crosshair { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; z-index: 2; pointer-events: none; display: none; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: var(--text); }
.crosshair::before { left: 10px; top: 0; width: 2px; height: 22px; }
.crosshair::after { top: 10px; left: 0; height: 2px; width: 22px; }
.guess-map:focus-within .crosshair.kbd { display: block; }
.map-toggle { display: none; }

/* map pins */
.pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); box-shadow: 0 0 0 3px var(--page), var(--shadow-2); }
.pin-wrap { width: 22px; height: 30px; display: grid; justify-items: center; }
.pin-wrap .drop { display: grid; justify-items: center; }
.pin-wrap .label { position: absolute; bottom: 34px; white-space: nowrap; background: var(--c); color: var(--on-lead); font-weight: 800; font-size: 12px; padding: 1px 6px; }
.answer-pin { width: 20px; height: 20px; background: var(--pop); box-shadow: 0 0 0 3px var(--page), 0 0 0 6px var(--pop); }
.answer-pin.small { width: 14px; height: 14px; box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--pop); color: var(--on-pop); font-size: 10px; font-weight: 900; display: grid; place-items: center; }
.drop { animation: drop .45s var(--ease) both; }

/* ---------- reveal / final ---------- */
#reveal, #final { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.third {
  position: absolute; left: 16px; bottom: 16px; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  overflow-y: auto; pointer-events: auto; background: var(--surface); box-shadow: var(--shadow-2);
  animation: wipe-in .55s .2s var(--ease) both;
}
.third-head { padding: var(--s4) var(--s5); border-top: 6px solid var(--pop); }
.third-kicker { font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; font-size: var(--t1); color: var(--pop); }
.third-place { font-weight: 900; font-stretch: var(--wide); font-size: 48px; line-height: 1; margin: 6px 0 6px; text-transform: uppercase; letter-spacing: -.025em; overflow-wrap: anywhere; }
.third-sub { color: var(--text-2); font-size: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.third-rows { list-style: none; margin: 0; padding: 0; }
.third-rows li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: var(--s4); padding: var(--s2) var(--s5); border-top: 1px solid var(--line); animation: wipe-in .4s var(--ease) both; }
.third-rows li::before { content: ""; width: 10px; height: 10px; background: var(--c); }
.third-rows .who { min-width: 0; display: flex; align-items: baseline; gap: var(--s2); overflow: hidden; white-space: nowrap; }
.third-rows .who b { font-size: var(--t3); overflow: hidden; text-overflow: ellipsis; }
.third-rows .who small { color: var(--text-3); font-size: var(--t1); font-variant-numeric: tabular-nums; }
.third-rows .km { color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }
.third-rows .pts { font-weight: 900; font-stretch: var(--wide); font-size: 40px; line-height: 1.1; font-variant-numeric: tabular-nums; text-align: right; min-width: 3.6em; }
.third-rows li.best .pts { color: var(--c); }
.third-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); border-top: 1px solid var(--line); }
.third-foot .hint:empty { display: none; }

.final-panel { width: min(560px, calc(100vw - 32px)); top: calc(var(--slate-h, 200px) + 24px); bottom: auto; max-height: calc(100dvh - var(--slate-h, 200px) - 40px); }
.slate {
  position: absolute; left: 0; right: 0; top: 0; pointer-events: auto; background: var(--band, var(--lead)); color: var(--on-lead);
  padding: var(--s5) var(--s6) var(--s5); animation: wipe-in .6s var(--ease) both; box-shadow: var(--shadow-2);
}
.slate-kicker { font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; font-size: var(--t1); }
.slate-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s6); }
.slate-title { font-weight: 900; font-stretch: var(--wide); text-transform: uppercase; font-size: clamp(48px, 7vw, 96px); line-height: .95; letter-spacing: -.035em; margin: var(--s1) 0 var(--s2); overflow-wrap: anywhere; }
.slate-score { font-weight: 900; font-stretch: var(--wide); font-size: clamp(36px, 4.6vw, 64px); line-height: 1; font-variant-numeric: tabular-nums; }
.slate-score:empty { display: none; }
.slate-sub { font-size: var(--t2); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.final-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.final-table th, .final-table td { padding: var(--s2) var(--s5); text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.final-table th:first-child, .final-table td:first-child, .final-table th:nth-child(2) { text-align: left; }
.final-table td.place { text-align: left; color: var(--text-2); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.final-table thead th { font-size: var(--t1); color: var(--text-2); font-weight: 700; }
.final-table thead th span { display: inline-block; width: 8px; height: 8px; background: var(--c); margin-right: 6px; }
.final-table tfoot td { font-weight: 900; font-stretch: var(--wide); font-size: var(--t3); border-bottom: 0; }
.final-table td.won { color: var(--c); font-weight: 800; }

.conn { position: fixed; top: 16px; right: 16px; z-index: 10; background: var(--warning); color: var(--on-warning); font-weight: 800; padding: var(--s2) var(--s3); font-size: var(--t2); box-shadow: var(--shadow-2); }

/* maplibre chrome in our colours */
.maplibregl-ctrl-attrib { font-size: 11px; }
.maplibregl-ctrl-attrib.maplibregl-compact { background: #141414cc; color: var(--text-2); }
.maplibregl-ctrl-attrib a { color: var(--text-2); }
.maplibregl-ctrl-group { background: var(--surface) !important; border-radius: 0 !important; }
.maplibregl-ctrl-group button + button { border-top-color: var(--line) !important; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }
.maplibregl-canvas:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }

/* ---------- motion ---------- */
@keyframes wipe-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipe-x { from { transform: scaleX(0); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes drop { from { transform: translateY(-24px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .home-col, .lobby-col { padding: var(--s5) var(--s4) 48px; }
  .lobby-col { padding-bottom: 0; }
  .start { margin: 0 calc(var(--s4) * -1); padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom)); }
  body[data-screen="home"] .world::after, body[data-screen="lobby"] .world::after { background: linear-gradient(180deg, var(--page) 0%, #0A0A0AE6 45%, #0A0A0A33 75%, transparent 100%); }
  .wordmark { margin-top: var(--s5); }
  .title { font-size: 28px; }
  .bug { left: 8px; top: 8px; right: 8px; }
  .bug-round { min-width: 48px; padding: var(--s1) var(--s2); }
  .bug-round b { font-size: 22px; }
  .bug-players { flex: 1; min-width: 0; }
  .bug-p { min-width: 0; flex: 1; padding: 6px var(--s2); }
  .bug-p .s { font-size: 24px; }
  .bug-clock { min-width: 68px; padding: 0 var(--s2); }
  .bug-clock b { font-size: 24px; }
  .status { left: 8px; top: 88px; }
  .guess, .guess:hover, .guess:focus-within, .guess.big { left: 0; right: 0; bottom: 0; width: auto; border-radius: 8px 8px 0 0; transform: translateY(105%); transition: transform .25s var(--ease); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); }
  .guess .guess-map, .guess:hover .guess-map, .guess:focus-within .guess-map, .guess.big .guess-map { height: 58dvh; }
  .guess.open { transform: none; }
  #sizeBtn { display: none; }
  .map-toggle { display: inline-flex; position: fixed; z-index: 3; left: 12px; bottom: calc(28px + env(safe-area-inset-bottom)); min-height: 52px; font-stretch: var(--wide); text-transform: uppercase; box-shadow: var(--shadow-2); }
  .guess.open { border-radius: 0; }
  .guess.open ~ .map-toggle { left: 0; right: 0; bottom: calc(58dvh + 52px + env(safe-area-inset-bottom)); min-height: 48px; box-shadow: none; background: var(--action); color: var(--on-action); }
  .shield-bottom { width: 100%; }
  .third { left: 0; right: 0; bottom: 0; width: auto; max-height: 62dvh; }
  .third-place { font-size: 32px; }
  .third-rows .pts { font-size: 28px; }
  .final-panel { width: auto; max-height: 52dvh; }
  .slate { padding: var(--s4); }
  .slate-title { font-size: 48px; }
  .slate-score { font-size: 32px; }
  .pg-p { padding: var(--s2) var(--s3); flex: 1; }
  .pg-players { flex: 1; }
  .pregame { width: 100%; }
  .pg-p .n { font-size: 10px; }
  .pg-p .s { font-size: var(--t3); max-width: none; }
  .pg-code b { font-size: 18px; }
  .pg-tag { padding: var(--s2); }
  .final-panel { top: auto; bottom: 0; }
  .third-head, .third-foot, .third-rows li { padding-left: var(--s4); padding-right: var(--s4); }
  .final-table th, .final-table td { padding: var(--s2) var(--s3); }
}
.pano.loaded .pano-js { position: absolute; inset: 0; }
.pano.js .shield-bottom { width: 260px; }
.pano-loading { display: none; }
