/* World Survey: a national survey map sheet. Light, flat print over a 3D relief globe. */

@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(assets/fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(assets/fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4 Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url(assets/fonts/source-serif-4-latin-wght-italic.woff2) format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(assets/fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2-variations');
}

:root {
  --paper: #f4f5f0;
  --paper-deep: #e9ece3;
  --card: #fbfcf8;
  --ink: #1b232b;
  --ink-2: #48525c;
  --ink-3: #5f6870;
  --hair: rgba(27, 35, 43, 0.16);
  --water: #a9d2e4;
  --water-ink: #2a6893;
  --contour: #8a5a33;
  --overprint: #c3177b;
  --overprint-deep: #a10f63;
  --overprint-soft: rgba(195, 23, 123, 0.09);
  --surveyed: #3e7a45;
  --surveyed-soft: rgba(62, 122, 69, 0.12);
  --sans: 'Archivo Variable', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Source Serif 4 Variable', 'Source Serif Pro', Georgia, serif;
  --mono: 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --frame: clamp(10px, 1.5vw, 22px);
  --gutter: clamp(14px, 1.6vw, 24px);
  --panel-w: min(500px, 40vw);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-stamp: cubic-bezier(0.2, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  overscroll-behavior: none;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--overprint); outline-offset: 2px; }
::selection { background: var(--overprint); color: #fff; }

/* ---------- Sheet and neatline ---------- */

.sheet {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 62% 46%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .13 0 0 0 0 .16 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.neatline {
  position: absolute;
  inset: var(--frame);
  border: 1px solid var(--ink);
  pointer-events: none;
  z-index: 3;
}
.neatline__zebra {
  --z: 5px;
  --seg: 46px;
  position: absolute;
  inset: 3px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 var(--seg), transparent var(--seg) calc(var(--seg) * 2)) top left / 100% var(--z) no-repeat,
    repeating-linear-gradient(90deg, transparent 0 var(--seg), var(--ink) var(--seg) calc(var(--seg) * 2)) bottom left / 100% var(--z) no-repeat,
    repeating-linear-gradient(180deg, transparent 0 var(--seg), var(--ink) var(--seg) calc(var(--seg) * 2)) top left / var(--z) 100% no-repeat,
    repeating-linear-gradient(180deg, var(--ink) 0 var(--seg), transparent var(--seg) calc(var(--seg) * 2)) top right / var(--z) 100% no-repeat;
  box-shadow: 0 0 0 1px var(--ink);
}
.neatline__zebra::after {
  content: '';
  position: absolute;
  inset: var(--z);
  border: 1px solid var(--ink);
}
.neatline__coord {
  position: absolute;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: var(--paper);
  padding: 0 6px;
  white-space: nowrap;
}
.neatline__coord--tl { top: -6px; left: 64px; }
.neatline__coord--br { bottom: -6px; right: 64px; }

.globe-stage {
  position: absolute;
  inset: calc(var(--frame) + 10px);
  z-index: 1;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.globe-stage canvas { display: block; width: 100%; height: 100%; outline: none; }
.globe-stage.is-picking canvas { cursor: crosshair; }
.globe-stage.is-hovering canvas { cursor: pointer; }
.globe-fallback {
  position: absolute;
  inset: 30% 10% auto;
  z-index: 2;
  text-align: center;
  font: italic 400 18px/1.5 var(--serif);
  color: var(--water-ink);
}

/* ---------- Masthead ---------- */

.masthead {
  position: absolute;
  z-index: 4;
  top: calc(var(--frame) + 18px);
  left: calc(var(--frame) + var(--gutter) + 4px);
  right: calc(var(--frame) + var(--gutter) + 4px);
  display: flex;
  align-items: center;
  gap: 28px;
  pointer-events: none;
}
.masthead > * { pointer-events: auto; }
.wordmark, .masthead__nav {
  background: rgba(244, 245, 240, 0.9);
  box-shadow: 0 0 0 6px rgba(244, 245, 240, 0.9);
}
.masthead__nav { padding: 0 4px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 4px 6px 4px 0;
}
.wordmark__mark { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.wordmark__tri { fill: var(--overprint); stroke: none; }
.wordmark__text {
  font-weight: 760;
  font-stretch: 125%;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.masthead__nav { display: flex; gap: 20px; }
.masthead__nav a {
  font-weight: 620;
  font-stretch: 78%;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  padding: 8px 0;
  background: linear-gradient(var(--overprint), var(--overprint)) left calc(100% - 3px) / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease-out), color 0.2s;
}
.masthead__nav a:hover, .masthead__nav a[aria-current='page'] { color: var(--ink); background-size: 100% 2px; }
.masthead__tools { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.meter {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 5px;
  text-decoration: none;
  padding: 6px 10px 7px;
  background: rgba(244, 245, 240, 0.86);
  border: 1px solid var(--ink);
}
.meter__label {
  font-weight: 640;
  font-stretch: 78%;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.meter__value { font: 500 13px/1 var(--mono); }
.meter__value b { font-weight: 700; color: var(--surveyed); }
.meter__bar {
  grid-column: 1 / -1;
  height: 5px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(var(--surveyed), var(--surveyed)) left / var(--fill, 0%) 100% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 9.5%, var(--ink) 9.5% 10%);
  transition: background-size 0.8s var(--ease-out);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(244, 245, 240, 0.86);
  border: 1px solid var(--ink);
  padding: 0;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .i-speaker { fill: var(--ink); }
.icon-btn .i-off { display: none; stroke: var(--overprint); }
.icon-btn[aria-pressed='false'] .i-wave { display: none; }
.icon-btn[aria-pressed='false'] .i-off { display: block; }
.icon-btn:hover { background: var(--card); }

/* ---------- Title block (the panel) ---------- */

.titleblock {
  position: absolute;
  z-index: 4;
  left: calc(var(--frame) + var(--gutter) + 4px);
  bottom: calc(var(--frame) + var(--gutter) + 4px);
  width: var(--panel-w);
  max-height: calc(100% - 2 * var(--frame) - 110px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1.5px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 18px 40px -24px rgba(27, 35, 43, 0.45);
  transition: opacity 0.25s;
}
.titleblock:focus { outline: 1px solid var(--ink); }
.titleblock:empty { display: none; }
.titleblock.is-swapping > * { opacity: 0; }

.tb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px 8px;
  border-bottom: 1px solid var(--ink);
  font-weight: 660;
  font-stretch: 76%;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  flex: none;
}
.tb-head__right { color: var(--ink-2); font-weight: 560; }
.tb-head__back {
  border: 0;
  background: none;
  padding: 6px 8px 6px 0;
  margin: -6px 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tb-head__back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tb-head__back:hover { color: var(--overprint); }

.tb-body {
  position: relative;
  padding: 18px 18px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  flex: 1 1 auto;
  min-height: 0;
}
.tb-body > * + * { margin-top: 14px; }

.tb-cells {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-top: 1px solid var(--ink);
  flex: none;
}
.tb-cell { padding: 7px 12px 8px; min-width: 0; }
.tb-cell + .tb-cell { border-left: 1px solid var(--ink); }
.tb-cell dt {
  font-weight: 640;
  font-stretch: 76%;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tb-cell dd { margin: 2px 0 0; font: 600 17px/1.15 var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tb-cell dd.is-hot { color: var(--overprint); }
.tb-cell dd small { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.timer-track { height: 3px; margin-top: 5px; background: var(--hair); position: relative; overflow: hidden; }
.timer-track i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; }
.timer-track.is-low i { background: var(--overprint); }

/* Streak benchmarks */
.benchmarks { display: flex; gap: 3px; margin-top: 5px; }
.benchmarks i {
  width: 9px;
  height: 8px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--hair);
  transition: background 0.2s, transform 0.3s var(--ease-stamp);
}
.benchmarks i.on { background: var(--ink); }
.benchmarks i.hot { background: var(--overprint); transform: scale(1.25); }

/* ---------- Prompt typography ---------- */

.lede {
  font: italic 420 17px/1.3 var(--serif);
  color: var(--water-ink);
  margin: 0;
}
.place {
  margin: 4px 0 0;
  font-weight: 680;
  font-stretch: 125%;
  font-size: var(--place-size, 42px);
  line-height: 1.04;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hint { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }
.hint kbd, .keycap {
  font: 600 10.5px/1 var(--mono);
  border: 1px solid var(--ink-3);
  border-bottom-width: 2px;
  padding: 2px 5px 1px;
  color: var(--ink-2);
  background: var(--paper);
  border-radius: 2px;
}

.flag-frame {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 4px;
  background: #fff;
  box-shadow: 0 1px 0 var(--ink);
}
.flag-frame img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-deep); }
.flag-frame--prompt { width: min(220px, 52%); }
.flag-frame--card { width: 74px; flex: none; padding: 3px; }

/* ---------- Controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 20px 10px;
  border: 1.5px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font-weight: 680;
  font-stretch: 80%;
  font-size: 13.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.16s, color 0.16s, border-color 0.16s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--overprint-soft); border-color: var(--overprint); color: var(--overprint-deep); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--overprint); border-color: var(--overprint); color: #fff; }
.btn--wide { width: 100%; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row > .btn { flex: 1 1 auto; }

.linkish {
  border: 0;
  background: none;
  padding: 4px 0;
  font-weight: 620;
  font-stretch: 80%;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  color: var(--ink-2);
}
.linkish:hover { color: var(--overprint); }

.field-label {
  display: block;
  font-weight: 640;
  font-stretch: 76%;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.seg { display: flex; flex-wrap: wrap; border: 1px solid var(--ink); background: var(--card); }
.seg button {
  flex: 1 1 auto;
  border: 0;
  background: none;
  padding: 8px 9px 7px;
  min-height: 36px;
  font-weight: 620;
  font-stretch: 78%;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.seg button + button { border-left: 1px solid var(--hair); }
.seg button:hover { color: var(--overprint-deep); background: var(--overprint-soft); }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.settings-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; }

/* Options (multiple choice) */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: var(--card);
  text-align: left;
  font-weight: 580;
  font-size: 15px;
  line-height: 1.2;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.opt:hover:not([disabled]) { background: var(--overprint-soft); border-color: var(--overprint); }
.opt .keycap { justify-self: start; }
.opt[disabled] { cursor: default; }
.opt.is-right { border-color: var(--surveyed); background: var(--surveyed-soft); color: #22532a; box-shadow: inset 0 0 0 1px var(--surveyed); }
.opt.is-wrong {
  border-color: var(--overprint);
  color: var(--overprint-deep);
  background: repeating-linear-gradient(-45deg, var(--overprint-soft) 0 6px, transparent 6px 12px), var(--card);
}
.opt.is-dim { opacity: 0.45; }
.options--flags { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); max-width: 560px; }
.options--flags .opt { grid-template-columns: 1fr; padding: 6px; justify-items: stretch; }
.options--flags .opt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--hair); }
.options--flags .opt .keycap { position: absolute; top: 9px; left: 9px; z-index: 1; }

/* Typed answer */
.typed { position: relative; }
.typed input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  background: #fff;
  font-weight: 560;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.typed input:focus { outline: 2px solid var(--overprint); outline-offset: 1px; }
.suggest { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ink); border-top: 0; background: #fff; }
.suggest li { padding: 9px 14px; cursor: pointer; font-size: 15px; }
.suggest li + li { border-top: 1px solid var(--hair); }
.suggest li[aria-selected='true'], .suggest li:hover { background: var(--overprint-soft); color: var(--overprint-deep); }

/* Higher or lower */
.hl { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.hl__side { padding: 12px 14px 14px; min-width: 0; }
.hl__side + .hl__side { border-left: 1px solid var(--ink); }
.hl__name {
  font-weight: 680;
  font-stretch: 118%;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.hl__value { margin-top: 8px; font: 650 20px/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.hl__value.is-unknown { color: var(--overprint); }
.hl__year { font: italic 400 13px/1.3 var(--serif); color: var(--ink-3); margin-top: 3px; }
.hl__stat { font: italic 450 16px/1.3 var(--serif); color: var(--water-ink); margin: 0; }
.hl-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Reveal card ---------- */

.reveal-head { display: flex; gap: 14px; align-items: flex-start; }
.reveal-head .place { --place-size: 26px; margin: 0; }
.reveal-head .lede { font-size: 15px; margin-top: 3px; }
.verdict { margin: 0; font-size: 15px; line-height: 1.4; }
.verdict b { font-weight: 680; }
.verdict .off { font: 650 13px/1 var(--mono); color: var(--overprint); letter-spacing: 0.02em; white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; }
.facts div { min-width: 0; border-top: 1px solid var(--hair); padding-top: 6px; }
.facts dt {
  font-weight: 640;
  font-stretch: 76%;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.facts dd { margin: 2px 0 0; font-size: 14px; line-height: 1.3; }
.facts dd .num { font: 550 13.5px/1.3 var(--mono); }
.facts dd .yr { font: italic 400 12.5px/1 var(--serif); color: var(--ink-3); }
.facts .wide { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip {
  border: 1px solid var(--ink-3);
  background: var(--card);
  padding: 4px 9px 3px;
  font-size: 12.5px;
  font-weight: 560;
}
button.chip:hover { border-color: var(--overprint); color: var(--overprint-deep); background: var(--overprint-soft); }
.points-row {
  position: sticky;
  bottom: -18px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px -18px -18px;
  padding: 12px 18px 14px;
  background: var(--card);
  border-top: 1px solid var(--hair);
}
.points { font: 700 26px/1 var(--mono); font-variant-numeric: tabular-nums; }
.points small { display: block; margin-top: 5px; font: 500 11.5px/1.2 var(--mono); color: var(--ink-3); }
.points.is-zero { color: var(--ink-3); }

.stamp {
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 6px 11px 5px;
  border: 2px solid var(--surveyed);
  color: var(--surveyed);
  font-weight: 820;
  font-stretch: 125%;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: rotate(-9deg);
  pointer-events: none;
  background: var(--card);
  animation: stamp-in 0.42s var(--ease-stamp) both;
}
.stamp--miss { border-color: var(--overprint); color: var(--overprint); transform: rotate(7deg); }
.stamp small {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 4px 2px;
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.06em;
  vertical-align: 2px;
  background: var(--surveyed);
  color: #fff;
}
@keyframes stamp-in {
  0% { opacity: 0; transform: rotate(-16deg) scale(1.9); }
  55% { opacity: 1; transform: rotate(-9deg) scale(0.94); }
  100% { opacity: 1; transform: rotate(-9deg) scale(1); }
}
.stamp--miss { animation-name: stamp-in-miss; }
@keyframes stamp-in-miss {
  0% { opacity: 0; transform: rotate(14deg) scale(1.9); }
  100% { opacity: 1; transform: rotate(7deg) scale(1); }
}

/* ---------- Home: expedition and sheet index ---------- */

.expedition {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.expedition h1 {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 700;
  font-stretch: 125%;
  font-size: clamp(24px, 2.3vw, 31px);
  line-height: 1.05;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.expedition p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 34ch; }
.expedition .lede { grid-column: 1 / -1; }
.expedition__done { font: 600 13px/1.4 var(--mono); color: var(--surveyed); }

.index { list-style: none; margin: 0; padding: 0; }
.index li + li { border-top: 1px solid var(--hair); }
.index button {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: baseline;
  padding: 11px 6px 11px 18px;
  border: 0;
  background: none;
  text-align: left;
  transition: background 0.15s;
}
.index button::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 17px;
  width: 9px;
  height: 8px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--ink-3);
  transition: background 0.15s, transform 0.25s var(--ease-stamp);
}
.index button:hover { background: var(--overprint-soft); }
.index button:hover::before { background: var(--overprint); transform: scale(1.3); }
.index__name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-weight: 680;
  font-stretch: 112%;
  font-size: 14.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.index__name::after { content: ''; flex: 1; min-width: 20px; border-bottom: 1.5px dotted var(--ink-3); transform: translateY(-4px); }
.index__best { font: 550 12.5px/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.index__best.is-empty { color: var(--ink-3); }
.index__blurb { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 2px; }
.small-print { font: italic 400 13px/1.45 var(--serif); color: var(--ink-3); margin: 0; }
.small-print a { color: var(--water-ink); }

/* ---------- Summary ---------- */

.summary-score { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.summary-score .points { font-size: 40px; }
.record-flag {
  font-weight: 760;
  font-stretch: 100%;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--overprint);
  padding: 4px 7px 3px;
}
.rounds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rounds li { border-bottom: 1px solid var(--hair); }
.rounds button {
  width: 100%;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 14px;
}
.rounds button:hover { background: var(--overprint-soft); }
.rounds .mark { width: 14px; height: 14px; }
.rounds .r-pts { font: 600 13px/1 var(--mono); font-variant-numeric: tabular-nums; }
.rounds .r-sub { color: var(--ink-3); font-size: 12.5px; }

/* ---------- Atlas, medals, about ---------- */

.search { position: relative; }
.search input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px 10px 40px;
  border: 1.5px solid var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b232b' stroke-width='1.8'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5'/%3E%3C/svg%3E") 12px 50% / 18px no-repeat;
  font-size: 15px;
}
.region-bars { display: grid; gap: 8px; margin: 0; }
.region-bars div { display: grid; grid-template-columns: 92px 1fr 64px; align-items: center; gap: 10px; }
.region-bars dt { font-weight: 640; font-stretch: 78%; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.region-bars dd { margin: 0; font: 550 12px/1 var(--mono); text-align: right; color: var(--ink-2); }
.region-bars .track { height: 8px; border: 1px solid var(--ink); background: linear-gradient(var(--surveyed), var(--surveyed)) left / var(--fill, 0%) 100% no-repeat; }
.medals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.medal { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px; border: 1px solid var(--hair); align-items: start; }
.medal svg { width: 26px; height: 26px; }
.medal b { display: block; font-weight: 680; font-stretch: 100%; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.medal span { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.medal.is-locked { opacity: 0.55; }
.medal.is-locked svg { filter: grayscale(1); }
.prose p { margin: 0; max-width: 62ch; font-size: 14.5px; line-height: 1.55; }
.prose p + p { margin-top: 10px; }
.prose h2 {
  margin: 18px 0 6px;
  font-weight: 680;
  font-stretch: 100%;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.sources { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.sources li { padding: 7px 0; border-top: 1px solid var(--hair); }
.sources li span { color: var(--ink-3); }

/* ---------- Marginalia ---------- */

.marginalia {
  position: absolute;
  z-index: 2;
  right: calc(var(--frame) + var(--gutter) + 6px);
  bottom: calc(var(--frame) + var(--gutter) + 2px);
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: 16px;
  row-gap: 6px;
  pointer-events: none;
}
.scalebar { grid-column: 1; }
.scalebar__bar { display: flex; width: var(--bar, 120px); height: 6px; border: 1px solid var(--ink); }
.scalebar__bar i { flex: 1; }
.scalebar__bar i:nth-child(odd) { background: var(--ink); }
.scalebar__labels { display: flex; justify-content: space-between; margin-top: 4px; font: 500 10px/1 var(--mono); color: var(--ink-2); }
.marginalia__scale { grid-column: 1; font: 500 11px/1 var(--mono); color: var(--ink-2); letter-spacing: 0.02em; }
.north { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 34px; }
.north path { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.north .north__half { fill: var(--ink); }
.north text { font: 700 9px var(--sans); fill: var(--ink); text-anchor: middle; }

/* ---------- Toasts ---------- */

.toasts { position: absolute; z-index: 6; top: calc(var(--frame) + 76px); right: calc(var(--frame) + var(--gutter) + 4px); display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast {
  display: grid;
  grid-template-columns: 30px auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 2px;
  max-width: 300px;
  animation: toast-in 0.5s var(--ease-out) both;
}
.toast svg { width: 30px; height: 30px; }
.toast b { display: block; font-weight: 680; font-stretch: 80%; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--overprint); }
.toast span { display: block; font-weight: 640; font-size: 14px; }
.toast.is-out { animation: toast-out 0.4s ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-6px); } }

/* ---------- Globe overlay labels (restyles the engine's defaults) ---------- */

.globe-label {
  font-family: var(--sans) !important;
  font-weight: 680 !important;
  font-stretch: 125% !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
  color: var(--ink) !important;
}
.globe-label--ocean {
  font-family: var(--serif) !important;
  font-style: italic;
  font-weight: 420 !important;
  font-stretch: 100% !important;
  text-transform: none;
  letter-spacing: 0.32em !important;
  color: var(--water-ink) !important;
}
.globe-arc-label { font-family: var(--mono) !important; }

.noscript { position: fixed; inset: 40% 0 auto; text-align: center; font: italic 18px var(--serif); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Small screens: globe on top, title block docks as a bottom sheet ---------- */

@media (max-width: 760px) {
  :root { --frame: 7px; --gutter: 10px; }
  body { font-size: 14px; }
  .neatline__zebra { --z: 3px; --seg: 30px; inset: 2px; }
  .neatline__coord--br { display: none; }
  .neatline__coord--tl { left: 40px; font-size: 9px; }
  .masthead { top: calc(var(--frame) + 12px); gap: 12px; }
  .masthead__nav { display: none; }
  .wordmark__text { font-size: 12.5px; letter-spacing: 0.16em; }
  .wordmark__mark { width: 22px; height: 22px; }
  .meter { padding: 5px 8px 6px; column-gap: 6px; }
  .meter__label { font-size: 9.5px; }
  .meter__value { font-size: 12px; }
  .icon-btn { width: 36px; height: 36px; }
  .titleblock {
    left: calc(var(--frame) + 8px);
    right: calc(var(--frame) + 8px);
    bottom: calc(var(--frame) + 8px + env(safe-area-inset-bottom));
    width: auto;
    max-height: 58%;
    outline-offset: 2px;
  }
  .tb-head { padding: 8px 12px 7px; font-size: 10.5px; }
  .tb-body { padding: 13px 13px 14px; }
  .tb-body > * + * { margin-top: 11px; }
  .tb-cell { padding: 6px 9px 7px; }
  .tb-cell dd { font-size: 15px; }
  .place { --place-size: 30px; }
  .lede { font-size: 15.5px; }
  .opt { min-height: 46px; font-size: 14px; padding: 8px 10px; }
  .index button { padding: 9px 4px 9px 16px; }
  .index__blurb { font-size: 12.5px; }
  .settings-grid { grid-template-columns: 1fr; gap: 10px; }
  .seg button { padding: 7px 6px; font-size: 11px; letter-spacing: 0.08em; }
  .marginalia { display: none; }
  .toasts { top: calc(var(--frame) + 58px); }
  .medals { grid-template-columns: 1fr; }
  .stamp { font-size: 12px; top: 10px; right: 10px; }
  .points-row { bottom: -14px; margin: 11px -13px -14px; padding: 10px 13px 11px; }
  .points { font-size: 22px; }
  .facts { gap: 6px 12px; }
  .facts dd { font-size: 13px; }
  .facts .opt-fact { display: none; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .titleblock { max-height: 62%; }
  .flag-frame--prompt { width: min(150px, 42%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Sheet turns: the old title block lifts off, the new one settles ---------- */

.tb-ghost {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  animation: ghost-out 0.28s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes ghost-out {
  to { opacity: 0; transform: translateY(10px) scale(0.985); filter: blur(1.5px); }
}
.titleblock.is-entering .tb-head { animation: enter 0.38s var(--ease-out) both; }
.titleblock.is-entering .tb-body > :not(.stamp) { animation: enter 0.46s var(--ease-out) both; }
.titleblock.is-entering .tb-body > :nth-child(2) { animation-delay: 40ms; }
.titleblock.is-entering .tb-body > :nth-child(3) { animation-delay: 80ms; }
.titleblock.is-entering .tb-body > :nth-child(4) { animation-delay: 120ms; }
.titleblock.is-entering .tb-body > :nth-child(5) { animation-delay: 160ms; }
.titleblock.is-entering .tb-body > :nth-child(n + 6) { animation-delay: 200ms; }
.titleblock.is-entering .tb-cells { animation: enter 0.4s 0.1s var(--ease-out) both; }
.titleblock.is-entering .place { animation: enter 0.46s var(--ease-out) both, letter-settle 0.7s var(--ease-out) both; }
@keyframes enter { from { opacity: 0.15; transform: translateY(9px); } }
@keyframes letter-settle { from { letter-spacing: 0.34em; } }
.titleblock[data-tone='good'] { border-color: var(--surveyed); }
.titleblock[data-tone='miss'] { border-color: var(--overprint); }
.titleblock { transition: border-color 0.3s; }
.tb-cell dd.is-bump { animation: bump 0.45s var(--ease-stamp); }
@keyframes bump { 40% { transform: scale(1.16); color: var(--surveyed); } }

/* ---------- Juice ---------- */

.score-pop {
  position: absolute;
  z-index: 6;
  transform: translate(-50%, -140%);
  font: 760 20px/1 var(--mono);
  letter-spacing: 0.02em;
  padding: 5px 8px 4px;
  background: var(--card);
  border: 1.5px solid currentColor;
  pointer-events: none;
  white-space: nowrap;
  animation: pop 1.4s var(--ease-out) forwards;
}
.score-pop--good { color: var(--surveyed); }
.score-pop--near { color: var(--contour); }
.score-pop--miss { color: var(--overprint); }
@keyframes pop {
  0% { opacity: 0; transform: translate(-50%, -80%) scale(0.6); }
  14% { opacity: 1; transform: translate(-50%, -150%) scale(1.08); }
  70% { opacity: 1; transform: translate(-50%, -190%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -230%) scale(0.98); }
}
.streak-banner {
  position: absolute;
  z-index: 6;
  left: 60%;
  top: 22%;
  display: grid;
  justify-items: center;
  padding: 10px 26px 9px;
  color: var(--overprint);
  border: 3px solid var(--overprint);
  background: rgba(251, 252, 248, 0.82);
  transform: translate(-50%, 0) rotate(-6deg);
  pointer-events: none;
  mix-blend-mode: multiply;
  animation: banner 1.6s var(--ease-stamp) forwards;
}
.streak-banner b { font-weight: 860; font-stretch: 125%; font-size: 38px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; }
.streak-banner span { font: italic 500 16px/1.2 var(--serif); margin-top: 2px; }
@keyframes banner {
  0% { opacity: 0; transform: translate(-50%, 0) rotate(-12deg) scale(2.1); }
  16% { opacity: 1; transform: translate(-50%, 0) rotate(-6deg) scale(1); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -12px) rotate(-6deg) scale(1); }
}
.sheet-flash { position: absolute; inset: 0; z-index: 2; pointer-events: none; animation: flash 0.45s ease-out forwards; }
.sheet-flash--miss { background: radial-gradient(ellipse at 60% 50%, rgba(195, 23, 123, 0), rgba(195, 23, 123, 0.16)); }
@keyframes flash { to { opacity: 0; } }

/* ---------- Flag comparison, Higher or lower extras ---------- */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare figure { margin: 0; }
.compare .flag-frame { width: 100%; }
.compare figcaption { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.compare figcaption b { display: block; color: var(--ink); font-weight: 680; font-size: 13.5px; }
.compare .is-picked .flag-frame { border-color: var(--overprint); box-shadow: 0 1px 0 var(--overprint); }
.compare .is-picked figcaption b { color: var(--overprint-deep); }
.hl { grid-template-columns: 1fr auto 1fr; }
.hl__side + .hl__side { border-left: 0; }
.hl__vs {
  align-self: center;
  font: italic 500 15px/1 var(--serif);
  color: var(--water-ink);
  padding: 0 2px;
}
.hl__flag { width: 46px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--hair); margin-bottom: 8px; }
.hl__value.is-right { color: var(--surveyed); }
.hl__value.is-wrong { color: var(--overprint); }
.hl-verdict.is-right b { color: var(--surveyed); }
.hl-verdict.is-wrong b { color: var(--overprint); }
.entry-link { margin: 0; }

/* ---------- Results report ---------- */

.points--hero { font-size: clamp(40px, 4vw, 54px); }
.points--hero small, .summary-score small { font-size: 0.42em; color: var(--ink-3); display: inline; font-weight: 600; }
.stamp--rank { top: 16px; right: 16px; font-size: 13px; padding: 7px 12px 6px; }
.stamp--r0, .stamp--r1 { border-color: var(--contour); color: var(--contour); }
.stamp--r4 { border-width: 3px; font-size: 14px; }
.rounds button { grid-template-columns: 16px 28px 1fr auto; }
.r-flag { width: 28px; height: 21px; object-fit: cover; border: 1px solid var(--hair); display: block; }
.btn-row--sticky { position: sticky; bottom: -18px; margin: 0 -18px -18px; padding: 12px 18px 14px; background: var(--card); border-top: 1px solid var(--hair); }

/* ---------- Preset sheets ---------- */

.tag { font: 650 9.5px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 5px 2px; border: 1px solid var(--overprint); color: var(--overprint-deep); white-space: nowrap; }
.tag--globe { border-color: var(--water-ink); color: var(--water-ink); }

/* ---------- Flag blitz ---------- */

.countdown {
  font-weight: 860;
  font-stretch: 125%;
  font-size: 110px;
  line-height: 1;
  text-align: center;
  padding: 26px 0 30px;
  animation: count 0.6s var(--ease-stamp) both;
}
@keyframes count { from { opacity: 0; transform: scale(1.8); } }
.blitz-clock { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.blitz-clock span { font: 760 34px/1 var(--mono); font-variant-numeric: tabular-nums; min-width: 3.3ch; }
.blitz-clock .timer-track { height: 8px; border: 1px solid var(--ink); background: var(--paper); }
.blitz-clock .timer-track i { transform-origin: left; transition: background 0.3s; }
.blitz-stage { display: grid; gap: 12px; }
.blitz-stage.is-in .flag-frame { animation: flag-in 0.24s var(--ease-out) both; }
.blitz-stage.is-in .opt { animation: enter 0.24s var(--ease-out) both; }
@keyframes flag-in { from { opacity: 0; transform: translateX(14px) rotate(1deg); } }
.flag-frame--blitz { width: min(260px, 70%); justify-self: start; }

@media (max-width: 760px) {
  .btn-row--sticky { bottom: -14px; margin: 0 -13px -14px; padding: 10px 13px 11px; }
  .streak-banner { left: 50%; top: 16%; }
  .streak-banner b { font-size: 28px; }
  .compare { gap: 8px; }
  .blitz-clock span { font-size: 26px; }
  .flag-frame--blitz { width: min(190px, 56%); }
  .countdown { font-size: 80px; padding: 14px 0 18px; }
}

/* Masthead never wraps; on small phones the meter drops its label. */
.wordmark__text, .meter__value { white-space: nowrap; }
@media (max-width: 760px) {
  .masthead { gap: 8px; }
  .wordmark { padding-right: 4px; box-shadow: 0 0 0 4px rgba(244, 245, 240, 0.9); }
  .wordmark__text { font-size: 11.5px; letter-spacing: 0.14em; }
  .titleblock { max-height: 54%; }
}
@media (max-width: 400px) {
  .meter__label { display: none; }
  .meter { grid-template-columns: auto; }
}

/* ---------- Stamp space, caps voice, ruled rows, legend ---------- */

/* The stamp owns its corner: headings never run under it. */
.tb-body > .stamp ~ .reveal-head { padding-right: 128px; }
.tb-body > .stamp ~ .summary-score { padding-right: 170px; min-height: 56px; }
@media (max-width: 760px) {
  .tb-body > .stamp ~ .reveal-head { padding-right: 104px; }
  .tb-body > .stamp ~ .summary-score { padding-right: 0; padding-top: 34px; }
}

/* Second caps voice: condensed, tighter tracking, for labels and title-block furniture. */
.tb-head, .field-label, .tb-cell dt, .facts dt, .region-bars dt, .meter__label, .masthead__nav a, .seg button, .toast b {
  font-stretch: 68%;
  letter-spacing: 0.09em;
  font-weight: 640;
}
.tb-head { font-size: 12.5px; }
.tb-cell dt, .facts dt { font-size: 11px; }
.field-label { font-size: 11.5px; }
.seg button { font-size: 13px; }
.masthead__nav a { font-size: 13.5px; }

/* Verb in the prompt heading */
.place__verb { font-weight: 360; color: var(--ink-2); letter-spacing: 0.08em; }

/* Ruled preset rows (Flags and Higher or lower sheets) */
.index__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  align-items: baseline;
  padding: 11px 6px 11px 18px;
  text-decoration: none;
  transition: background 0.15s;
}
.index__row::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 17px;
  width: 9px;
  height: 8px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--ink-3);
  transition: background 0.15s, transform 0.25s var(--ease-out);
}
.index__row:hover { background: var(--overprint-soft); }
.index__row:hover::before { background: var(--overprint); transform: scale(1.3); }
.index__row .tag { margin-left: 4px; transform: translateY(-1px); }
.index__strip { grid-column: 2; grid-row: 2; align-self: center; }
.index__row .index__blurb { grid-column: 1; grid-row: 2; }
.index__best { display: inline-flex; align-items: center; gap: 4px; }
.index__best .chev { width: 13px; height: 13px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.index button:hover .chev, .index__row:hover .chev { stroke: var(--overprint); }

/* Action rows fade the content scrolling under them, and carry the encyclopedia link. */
.tb-body.is-overflowing .points-row::before, .tb-body.is-overflowing .btn-row--sticky::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 24px;
  background: linear-gradient(rgba(251, 252, 248, 0), var(--card));
  pointer-events: none;
}
.points-row__end { display: flex; align-items: center; gap: 16px; }
.points-row__end .linkish { max-width: 16ch; text-align: right; line-height: 1.25; }
.more-facts { display: none; }
@media (max-width: 760px) {
  .facts .opt-fact { display: none; }
  .facts.is-open .opt-fact { display: block; }
  .more-facts { display: inline-block; margin-top: 6px; }
  .points-row__end { gap: 10px; }
  .points-row__end .linkish { max-width: 11ch; font-size: 11px; }
}

/* Marginalia sit on paper so the scale stays legible over relief, with a legend of the marks. */
.marginalia { background: rgba(244, 245, 240, 0.92); padding: 8px 10px 7px; box-shadow: 0 0 0 1px var(--hair); }
.legend { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto; gap: 4px 12px; margin: 0 0 6px; padding-bottom: 7px; border-bottom: 1px solid var(--hair); }
.legend div { display: flex; align-items: center; gap: 6px; font: italic 400 12px/1.2 var(--serif); color: var(--ink-2); }
.legend svg { width: 22px; height: 12px; flex: none; }
.strip { display: flex; }
.strip img { width: 30px; height: 22px; object-fit: cover; border: 1px solid var(--paper); box-shadow: 0 0 0 1px var(--hair); margin-right: -6px; }
.strip img:last-child { margin-right: 0; }
.place { overflow-wrap: break-word; }
.entry__short { display: none; }
@media (max-width: 760px) {
  /* On phones the stamp lands on the flag's corner, like a stamp on a passport photo. */
  .tb-body > .stamp:not(.stamp--rank) { right: 10px; top: 12px; font-size: 10px; padding: 3px 6px 2px; letter-spacing: 0.16em; }
  .tb-body > .stamp ~ .reveal-head { padding-right: 80px; }
  .reveal-head { gap: 10px; }
  .reveal-head .place { letter-spacing: 0.06em; }
  .flag-frame--card { width: 56px; }
  .entry__long { display: none; }
  .entry__short { display: inline; }
  .points-row__end .linkish { max-width: none; white-space: nowrap; }
}

.legend { transition: opacity 0.3s; }
.is-overview .legend { opacity: 0; height: 0; margin: 0; padding: 0; border: 0; overflow: hidden; }
.index__name { white-space: nowrap; }
@media (max-width: 760px) {
  .index__name .tag { display: none; }
  .seg[aria-labelledby='lbl-region'] { display: grid; grid-template-columns: repeat(3, 1fr); }
  .seg[aria-labelledby='lbl-region'] button:nth-child(3n + 1) { border-left: 0; }
  .seg[aria-labelledby='lbl-region'] button:nth-child(n + 4) { border-top: 1px solid var(--hair); }
}
