:root {
  color-scheme: light;
  --paper: #f6f4ed;
  --surface: #fffef9;
  --ink: #1f3d32;
  --text: #344b42;
  --muted: #778077;
  --line: #dddfd2;
  --soft: #edf0e6;
  --orange: #e77b45;
  --orange-dark: #b85024;
  --orange-soft: #fff0e5;
  --radius: 18px;
  --shadow: 0 6px 24px rgb(31 61 50 / 5%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button { border: 0; }
button:disabled { cursor: not-allowed; }
button, a { touch-action: manipulation; }
button, a, input, select { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--orange-dark); }
a { color: var(--ink); text-underline-offset: 4px; }
img, svg, canvas { max-width: 100%; }
img { display: block; }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: #f5c19f; color: var(--ink); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--paper);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-name { display: block; font-size: 21px; line-height: 1.2; font-weight: 750; letter-spacing: .2px; white-space: nowrap; }
.brand-dot { color: var(--orange); }
.brand-subtitle { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: 1.5px; }
.header-actions { display: flex; flex-shrink: 0; align-items: center; gap: 9px; }
.nav-button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  transition: background .16s, border-color .16s;
}
.icon-button { min-width: 42px; }
.nav-button svg, .icon-button svg { width: 18px; height: 18px; }
.nav-button:hover, .icon-button:hover { background: #e9ece1; border-color: #d9ddce; }
.leaderboard-nav { border-color: #e9d8c7; background: #fbefe2; color: var(--orange-dark); }
.leaderboard-nav:hover { border-color: #dcb896; background: #f7e5d3; }

.shell { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.intro { position: relative; padding: 32px 0 28px; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: #66745e; font-size: 11px; font-weight: 650; letter-spacing: 2px; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.intro h1 { font-size: clamp(30px, 3.3vw, 43px); line-height: 1.32; font-weight: 750; letter-spacing: -1.2px; }
.intro h1 em { font-style: normal; color: var(--orange-dark); }
.intro-text { margin-top: 10px; color: #68746b; font-size: 14px; letter-spacing: .3px; }
.intro-meta { position: absolute; right: 0; bottom: 32px; display: flex; align-items: center; gap: 9px; color: #788171; font-size: 11px; letter-spacing: .4px; }
.intro-meta > span + span::before { content: "·"; margin-right: 9px; color: #a4aa99; }
.intro-meta .meta-divider { width: 3px; height: 3px; border-radius: 50%; background: #a4aa99; }
.intro-meta .meta-divider::before, .intro-meta .meta-divider + span::before { content: none; }
.intro-meta b { font-weight: 600; }
.mobile-break { display: none; }

.game-layout { display: grid; grid-template-columns: 350px minmax(0, 1fr); align-items: stretch; gap: 20px; }
.clue-panel, .map-panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.clue-panel { display: flex; flex-direction: column; overflow: hidden; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 61px; margin: 0 24px; border-bottom: 1px solid #e9eadd; }
.round-label { color: #6b776c; font-size: 11px; font-weight: 650; letter-spacing: 1.4px; }
.question-pips { display: flex; align-items: center; gap: 6px; }
.pip { width: 7px; height: 7px; border-radius: 50%; background: #dde2d4; }
.pip.current { width: 20px; border-radius: 5px; background: var(--orange); }
.pip.done { background: var(--ink); }
#clue-content { display: flex; flex: 1; min-width: 0; }
#clue-content > * { width: 100%; }
.welcome-content, .question-content, .reveal-content, .summary-content { display: flex; flex-direction: column; padding: 24px; }
.welcome-content { align-items: flex-start; justify-content: center; padding-top: 35px; padding-bottom: 30px; }
.welcome-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 24px; border: 1px solid #dce2d2; border-radius: 19px; background: #edf1e5; color: var(--ink); font-size: 29px; }
.welcome-icon svg { width: 31px; height: 31px; }
.welcome-content h2 { font-size: 27px; font-weight: 750; line-height: 1.45; letter-spacing: -.6px; }
.welcome-content > p { margin-top: 12px; color: #778075; font-size: 13px; line-height: 1.9; }
.welcome-content > .tag { margin-bottom: 12px; }
.welcome-footnote { width: 100%; margin-top: 12px; color: #8a967d; font-size: 10px; text-align: center; }
.rule-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; width: 100%; margin: 25px 0 28px; padding: 18px 0; border-top: 1px solid #e6e9da; border-bottom: 1px solid #e6e9da; color: #5f6f60; font-size: 10px; }
.rule-mini > * { display: flex; align-items: center; gap: 10px; }
.rule-mini > span { display: block; text-align: center; white-space: nowrap; }
.rule-mini svg { width: 17px; height: 17px; color: #89987b; }
.rule-mini b { display: grid; flex-shrink: 0; place-items: center; width: 20px; height: 20px; border: 1px solid #d3dac9; border-radius: 50%; font-size: 10px; font-weight: 600; }
.start-button, .next-button, .confirm-button, .share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: #fffef7;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .6px;
  text-decoration: none;
  transition: background .16s, box-shadow .16s, transform .16s;
}
.start-button, .next-button, .share-button { width: 100%; }
.start-button svg, .next-button svg, .confirm-button svg, .share-button svg { width: 18px; height: 18px; }
.start-button:hover, .next-button:hover, .confirm-button:not(:disabled):hover, .share-button:hover { background: #2d5141; box-shadow: 0 4px 10px rgb(31 61 50 / 12%); }
.start-button:active, .next-button:active, .confirm-button:not(:disabled):active, .share-button:active { transform: translateY(1px); }
.start-button { margin-top: auto; }
.question-content { padding-top: 20px; }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; font-size: 11px; color: #89917f; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid #dce2d1; border-radius: 5px; background: #f1f4e9; color: #607255; font-size: 10px; line-height: 1.6; letter-spacing: .8px; }
.question-image { width: 100%; height: 173px; border-radius: 10px; background: #e4e6d9; object-fit: cover; }
.question-photo { min-width: 0; margin: 0; }
figure.question-image { margin: 0; overflow: hidden; }
figure.question-image img { width: 100%; height: 100%; object-fit: cover; }
.image-credit { margin-top: 5px; color: #7c8476; font-size: 9px; line-height: 1.5; text-align: right; }
.image-credit a { color: inherit; }
.question-content h2 { margin-top: 17px; font-size: 21px; font-weight: 750; line-height: 1.5; letter-spacing: -.35px; }
.clue-text { margin-top: 10px; color: #6a786d; font-size: 13px; line-height: 1.9; }
.hint-box { margin-top: 18px; padding: 12px 14px; border: 1px solid #e5ddc6; border-radius: 9px; background: #faf5e8; color: #827346; font-size: 12px; line-height: 1.8; }
.hint-box strong { color: #776530; }
.hint-button, .skip-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 41px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font-size: 12px; transition: background .16s, border-color .16s; }
.hint-button { margin-top: 18px; align-self: flex-start; padding-left: 0; border-color: transparent; color: #7a754f; }
.hint-button svg { width: 15px; height: 15px; }
.hint-button:hover { color: var(--ink); }
.hint-button:disabled { color: #949c8c; }
.question-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 19px; color: #84907f; font-size: 10px; }
.question-footer .hint-button { margin-top: 0; }
.question-helper { margin-top: 10px; color: #86937b; font-size: 10px; line-height: 1.8; }
.mobile-helper { display: none; }
.skip-button { min-height: 36px; padding: 6px 10px; border-color: transparent; color: #7b8378; }
.skip-button:hover { border-color: #e1e4d6; background: #f4f4ec; }
.reveal-content { padding-top: 25px; }
.result-kicker { display: flex; align-items: center; gap: 6px; color: #687d5a; font-size: 11px; font-weight: 650; letter-spacing: 1.5px; }
.result-kicker svg { width: 16px; height: 16px; }
.reveal-score { margin-top: 15px; color: var(--ink); font-size: 60px; line-height: 1.08; font-weight: 650; letter-spacing: -3px; font-variant-numeric: tabular-nums; }
.reveal-score small, .reveal-score span { margin-left: 7px; color: #7e8a76; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.distance { margin-top: 8px; padding-bottom: 22px; border-bottom: 1px solid #e7e9dd; color: #819078; font-size: 12px; }
.distance strong { color: var(--orange-dark); font-weight: 650; }
.reveal-content > .tag { align-self: flex-start; margin-top: 18px; }
.answer-title { margin-top: 20px; font-size: 22px; font-weight: 750; line-height: 1.5; letter-spacing: -.5px; }
.reveal-content > .tag + .answer-title { margin-top: 10px; }
.story { margin-top: 10px; color: #72806f; font-size: 13px; line-height: 1.9; }
.source-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; margin-top: 12px; color: #8c947f; font-size: 10px; text-decoration-color: #c5cbb9; }
.source-link svg { width: 12px; height: 12px; }
.next-button { margin-top: auto; }
.reveal-content .next-button { margin-top: 24px; }
.running-score { display: flex; align-items: baseline; gap: 5px; margin-top: auto; padding-top: 17px; border-top: 1px solid #e7e9dd; color: #8b987f; font-size: 10px; }
.running-score strong { margin-left: auto; color: #536d48; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.running-score + .next-button { margin-top: 14px; }
.reveal-content .source-link + .running-score, .reveal-content .image-credit + .running-score { margin-top: 20px; }
.summary-content { text-align: center; padding-top: 22px; }
.summary-content > .tag { align-self: center; margin-bottom: 9px; }
.summary-score { color: var(--ink); font-size: 62px; line-height: 1.2; font-weight: 650; letter-spacing: -3px; font-variant-numeric: tabular-nums; }
.summary-score small, .summary-score span { margin-left: 4px; color: #8c977e; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.summary-title { margin-top: 7px; font-size: 20px; line-height: 1.4; }
.summary-content > p { margin-top: 8px; color: #7f8b76; font-size: 11px; }
.summary-dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
.summary-dots > * { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 6px; background: #dee8d0; color: var(--ink); font-size: 10px; }
.summary-dots > .miss, .summary-dots > .low { background: #eee9db; color: #9c977e; }
.recap-list { margin: 20px 0; border-top: 1px solid #e5e8da; text-align: left; }
.recap-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 0; border-bottom: 1px solid #e5e8da; background: transparent; font-size: 11px; text-align: left; }
.recap-row:hover { background: #f0f3e8; }
.recap-number { flex-shrink: 0; color: #9ca88e; font-size: 9px; }
.recap-name { flex: 1; min-width: 0; color: #566f49; }
.recap-name small { display: block; color: #96a087; font-size: 9px; }
.recap-row > :first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.recap-row strong, .recap-row > :last-child { flex-shrink: 0; color: #7c8a70; font-variant-numeric: tabular-nums; }
.summary-content .secondary-button { width: 100%; margin-top: 9px; }
.secondary-button:hover { border-color: #bbc5ac; background: #f0f2e8; }

.map-panel { display: flex; flex-direction: column; overflow: hidden; }
.map-toolbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 61px; padding: 10px 20px; border-bottom: 1px solid #e3e6d8; }
.map-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; letter-spacing: .7px; }
.map-label svg { width: 16px; height: 16px; color: #8d9b7f; }
.map-icon { color: #7f936d; font-size: 22px; line-height: 1; }
.map-status { margin-left: auto; color: #919980; font-size: 10px; letter-spacing: .3px; }
.map-tools { display: flex; gap: 5px; }
.map-tool { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 8px; border: 1px solid #e0e4d6; border-radius: 7px; background: var(--surface); color: #6f7e65; }
.map-tool:hover { background: #eff2e7; border-color: #c5ceba; }
.map-tool svg { width: 17px; height: 17px; }
.map-stage { position: relative; min-height: 500px; flex: 1; background: #e7eadb; isolation: isolate; overflow: hidden; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-loading, .map-error { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 30px; background: #e9edde; color: #6a7c60; text-align: center; }
.map-loading::before { content: ""; width: 22px; height: 22px; margin-bottom: 3px; border: 2px solid #c5d0b8; border-top-color: var(--ink); border-radius: 50%; animation: map-spin .8s linear infinite; }
.map-loading p, .map-error p { max-width: 310px; font-size: 12px; line-height: 1.85; }
.map-error h3, .map-error strong { color: var(--ink); font-size: 17px; }
.map-error svg { width: 30px; height: 30px; color: #8a9878; }
.map-error button { min-height: 42px; margin-top: 8px; padding: 9px 19px; border: 1px solid #b7c4aa; border-radius: 8px; background: #f5f7ee; font-size: 12px; }
.map-instruction { position: absolute; z-index: 2; top: 16px; left: 50%; display: inline-flex; align-items: center; justify-content: center; gap: 7px; max-width: calc(100% - 120px); padding: 8px 12px; transform: translateX(-50%); border: 1px solid rgb(219 225 206 / 90%); border-radius: 7px; background: rgb(255 254 246 / 94%); box-shadow: 0 2px 10px rgb(51 71 39 / 5%); color: #66755b; font-size: 10px; white-space: nowrap; pointer-events: none; }
.map-instruction svg { width: 13px; height: 13px; color: var(--orange); }
.instruction-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.map-legend { position: absolute; bottom: 31px; left: 14px; z-index: 2; display: flex; align-items: center; gap: 13px; padding: 7px 9px; border: 1px solid rgb(216 223 204 / 80%); border-radius: 6px; background: rgb(255 254 247 / 92%); color: #77856b; font-size: 9px; pointer-events: none; }
.map-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i, .legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.map-legend .answer-dot, .map-legend .green, .map-legend > :last-child i { background: var(--ink); }
.map-bottom-bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; padding: 13px 20px; border-top: 1px solid #e1e5d6; background: var(--surface); }
.selected-location { min-width: 0; color: #8a947d; font-size: 11px; line-height: 1.7; }
.selected-location strong { display: block; color: #586e4f; font-size: 12px; font-weight: 650; }
.selected-location span { display: block; font-variant-numeric: tabular-nums; }
.selected-location:has(.selection-symbol) { display: flex; align-items: center; gap: 10px; }
.selected-location .selection-symbol { display: grid; flex-shrink: 0; place-items: center; width: 31px; height: 31px; border: 1px solid #e0e5d4; border-radius: 9px; color: #829674; font-size: 16px; }
.confirm-button { flex-shrink: 0; min-width: 145px; min-height: 43px; padding: 9px 18px; font-size: 12px; }
.confirm-button:disabled { border-color: #e3e7d9; background: #edf0e6; color: #a4ad97; box-shadow: none; }
.guess-pin, .answer-pin { position: relative; display: grid; place-items: center; width: 27px; height: 27px; color: white; font-size: 11px; font-weight: 700; cursor: pointer; }
.guess-pin::before, .answer-pin::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: rotate(-45deg); border: 3px solid #fffef9; border-radius: 50% 50% 50% 3px; background: var(--orange); box-shadow: -2px 3px 6px rgb(65 74 45 / 24%); }
.answer-pin::before { background: var(--ink); }
.guess-pin::after, .answer-pin::after { content: ""; width: 5px; height: 5px; border: 1px solid rgb(255 255 255 / 85%); border-radius: 50%; background: white; }
.guess-pin > *, .answer-pin > * { z-index: 1; }
.guess-pin > span, .answer-pin > span { width: 6px; height: 6px; border-radius: 50%; background: #fffef9; }
.guess-pin:has(> *)::after, .answer-pin:has(> *)::after { display: none; }
.city-marker { display: flex; align-items: center; gap: 5px; padding: 3px 5px; color: #53664a; font-family: inherit; font-size: 11px; font-weight: 650; letter-spacing: 1px; text-shadow: 0 1px 2px #f7f8ee, 0 -1px 2px #f7f8ee; white-space: nowrap; pointer-events: none; }
.city-marker::before { content: ""; width: 4px; height: 4px; border: 1px solid #f3f6e9; border-radius: 50%; background: #5d7050; box-shadow: 0 0 0 1px #5d7050; }
.maplibregl-ctrl-top-right { top: 9px; right: 3px; }
.maplibregl-ctrl-group { overflow: hidden; border: 1px solid #d5ddc7; border-radius: 8px; box-shadow: 0 2px 9px rgb(53 72 37 / 8%) !important; }
.maplibregl-ctrl-group:not(:empty) { box-shadow: 0 2px 9px rgb(53 72 37 / 8%); }
.maplibregl-ctrl-group button { width: 37px; height: 37px; background-color: #fffef8; }
.maplibregl-ctrl-group button + button { border-top-color: #e4e8d9; }
.maplibregl-ctrl-group button:hover { background-color: #edf2e2; }
.maplibregl-ctrl-group button:focus-visible { position: relative; z-index: 1; outline-offset: -4px; }
.maplibregl-ctrl-attrib { color: #758369; font-family: inherit; font-size: 9px; background: rgb(255 254 246 / 80%) !important; }
.maplibregl-ctrl-attrib a { color: inherit; }
.maplibregl-popup-content { padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-family: inherit; }
.maplibregl-popup-close-button { width: 28px; height: 28px; color: #697960; }

.below-board { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 2px 0; }
.city-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.city-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid #d9dfce; border-radius: 5px; color: #7d8871; font-size: 10px; line-height: 1.5; }
.city-chip::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: #a7b497; }
.local-note { color: #939a88; font-size: 10px; text-align: right; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; max-width: 1200px; margin: 36px auto 0; padding: 17px 0 23px; border-top: 1px solid #dfe2d5; color: #99a18e; font-size: 10px; letter-spacing: .3px; }
.site-footer a { color: inherit; text-decoration-color: #c5ccb9; }
.site-footer button { padding: 0; background: transparent; color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c5ccb9; }

.modal { width: min(520px, calc(100vw - 32px)); max-height: min(85dvh, 760px); margin: auto; padding: 26px; overflow: auto; overscroll-behavior: contain; border: 1px solid #d6ddc9; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 100px rgb(12 33 24 / 20%); }
.modal::backdrop { background: rgb(25 43 31 / 40%); backdrop-filter: blur(3px); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.modal-heading h2 { margin-top: 3px; font-size: 22px; font-weight: 750; line-height: 1.4; letter-spacing: -.4px; }
.modal-heading p { margin-top: 6px; color: #829077; font-size: 11px; }
.close-button { display: grid; flex-shrink: 0; place-items: center; width: 36px; height: 36px; margin: -5px -8px 0 0; padding: 7px; border-radius: 8px; background: #f0f2e8; color: #74836a; font-size: 23px; line-height: 1; }
.close-button svg { width: 17px; height: 17px; }
.close-button:hover { background: #e4e9d9; }
.rules-list { display: grid; gap: 16px; margin: 0; padding-left: 22px; color: #6c7b62; font-size: 13px; line-height: 1.85; }
.rules-list li::marker { color: #a6b395; font-size: 12px; font-weight: 650; }
.rules-list strong { color: var(--ink); font-weight: 650; }
.modal > p, .modal-note { margin-top: 18px; padding-top: 15px; border-top: 1px solid #e7eadd; color: #8e9982; font-size: 11px; line-height: 1.8; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 23px; }
.stat-item { padding: 18px 8px 14px; border: 1px solid #e0e5d4; border-radius: 11px; background: #f3f5ec; text-align: center; }
.stat-item strong { display: block; color: var(--ink); font-size: 27px; line-height: 1.2; font-weight: 650; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stat-item span, .stat-item small { display: block; margin-top: 7px; color: #8a967d; font-size: 10px; }
.history-list { border-top: 1px solid #e4e8d9; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 10px 0; border-bottom: 1px solid #e4e8d9; color: #7f8d73; font-size: 12px; font-variant-numeric: tabular-nums; }
.history-row strong { color: var(--ink); font-weight: 650; }
.history-list > p { padding: 25px 15px; color: #8c9880; text-align: center; font-size: 12px; }
#stats-content > h3 { margin-bottom: 10px; font-size: 12px; font-weight: 650; }
.history-dots { margin-left: auto; font-size: 9px; letter-spacing: 2px; }
.share-poster { display: block; width: min(100%, 310px); height: auto; max-height: 58dvh; margin: 0 auto; object-fit: contain; border: 1px solid #e1e5d6; border-radius: 12px; box-shadow: 0 5px 18px rgb(42 64 31 / 8%); }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.dialog-actions > * { flex: 1; min-width: 130px; }
.dialog-actions .secondary-button { min-height: 48px; }
.dialog-note + .start-button { margin-top: 20px; }
.leaderboard-modal { width: min(560px, calc(100vw - 32px)); }
.leaderboard-modal .modal-heading { margin-bottom: 17px; }
.leaderboard-overview { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; font-size: 12px; }
#leaderboard-date { font-weight: 650; }
#leaderboard-count { color: #74826b; font-variant-numeric: tabular-nums; }
.leaderboard-refresh { min-height: 34px; margin-left: auto; padding: 5px 0 5px 8px; background: transparent; color: #637958; font-size: 11px; }
.leaderboard-refresh:disabled { opacity: .5; }
.leaderboard-modal .leaderboard-ranking-note { margin-top: 3px; padding: 0; border: 0; color: #8a947f; font-size: 10px; }
.leaderboard-status { display: flex; flex-direction: column; align-items: center; gap: 13px; margin-top: 17px; padding: 32px 18px; border: 1px dashed #d6ddc9; border-radius: 12px; color: #74826b; font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.leaderboard-status.is-error { border-color: #e6cdb6; background: #fff8ed; color: #956238; }
.leaderboard-me { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; margin-top: 18px; padding: 13px 16px; border: 1px solid #d5dfc8; border-radius: 11px; background: #edf2e5; }
.leaderboard-me-label { grid-column: 1 / -1; color: #76866a; font-size: 10px; }
.leaderboard-me strong { font-size: 20px; font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; }
.leaderboard-me-score { align-self: center; color: #5d7354; font-size: 12px; font-variant-numeric: tabular-nums; }
.leaderboard-column-labels, .leaderboard-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 62px; align-items: center; gap: 10px; }
.leaderboard-column-labels { margin-top: 18px; padding: 0 10px 8px; color: #8d9784; font-size: 10px; }
.leaderboard-column-labels > :last-child { text-align: right; }
.leaderboard-list { max-height: 304px; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; scrollbar-width: thin; }
.leaderboard-row { min-height: 46px; padding: 10px; border-top: 1px solid #e7eadd; color: #61725a; font-size: 12px; }
.leaderboard-row.is-me { border-radius: 7px; background: #f0f4e8; }
.leaderboard-rank { color: #8b9680; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.leaderboard-rank.is-top { color: var(--orange-dark); }
.leaderboard-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.leaderboard-name > span { min-width: 0; overflow-wrap: anywhere; }
.leaderboard-you, .leaderboard-tie { padding: 0 4px; border-radius: 3px; background: #dce8d1; color: #52733f; font-size: 9px; line-height: 1.6; }
.leaderboard-tie { background: #f0eee4; color: #8d8d76; }
.leaderboard-score { color: var(--ink); font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.leaderboard-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 16px; padding: 24px 10px; text-align: center; }
.leaderboard-empty > span { color: #94a083; font-size: 25px; }
.leaderboard-empty strong { font-size: 14px; font-weight: 650; }
.leaderboard-empty p { color: #8c977f; font-size: 11px; }
.leaderboard-form { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e1e6d6; }
.leaderboard-form-heading { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; }
.leaderboard-form h3 { font-size: 15px; font-weight: 650; }
#leaderboard-eligibility { color: #7d8c70; font-size: 11px; }
.leaderboard-form label { display: block; margin-bottom: 6px; color: #607456; font-size: 11px; }
.leaderboard-form input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #d8dfcd; border-radius: 9px; background: #fffef9; color: var(--ink); font-size: 16px; line-height: 1.5; }
.leaderboard-form input::placeholder { color: #a0a892; }
.leaderboard-form input:disabled { background: #f1f3eb; color: #829077; opacity: 1; }
.leaderboard-form input[aria-invalid="true"] { border-color: #c8794a; }
.leaderboard-field-help { margin-top: 7px; color: #87947a; font-size: 10px; line-height: 1.8; }
.leaderboard-form .start-button { margin-top: 14px; }
.leaderboard-form .start-button:disabled { border-color: #e0e5d5; background: #e9eee0; color: #99a48c; box-shadow: none; transform: none; }
.leaderboard-submit-message { margin-top: 9px; color: #637b54; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.leaderboard-submit-message:empty { display: none; }
.leaderboard-submit-message.is-error { color: #b45a2b; }
.leaderboard-modal .leaderboard-privacy { margin-top: 16px; color: #839076; }
.native-share-button { width: 100%; margin-top: 10px; }
#credits-list { display: grid; gap: 10px; margin-top: 16px; color: #839176; font-size: 11px; line-height: 1.8; }
.no-script { margin: 20px; padding: 20px; border: 1px solid #ded8be; border-radius: 10px; background: #fff6df; color: var(--ink); text-align: center; font-size: 13px; }
.toast { position: fixed; z-index: 20; bottom: max(26px, env(safe-area-inset-bottom)); left: 50%; width: max-content; max-width: calc(100vw - 36px); padding: 12px 18px; transform: translateX(-50%); border: 1px solid #4e6656; border-radius: 10px; background: #274737; box-shadow: 0 7px 30px rgb(20 42 27 / 17%); color: #fffef4; font-size: 12px; line-height: 1.8; text-align: center; }

@keyframes map-spin { to { transform: rotate(360deg); } }

@media (min-width: 1440px) {
  .intro { padding-top: 41px; padding-bottom: 33px; }
  .map-stage { min-height: 520px; }
}

@media (max-width: 1050px) {
  .site-header { padding-right: 28px; padding-left: 28px; }
  .shell { padding-right: 28px; padding-left: 28px; }
  .game-layout { grid-template-columns: 310px minmax(0, 1fr); gap: 16px; }
  .card-heading { margin-right: 21px; margin-left: 21px; }
  .welcome-content, .question-content, .reveal-content, .summary-content { padding-right: 21px; padding-left: 21px; }
  .intro-meta { display: none; }
  .map-toolbar, .map-bottom-bar { padding-right: 16px; padding-left: 16px; }
  .map-status { display: none; }
  .map-instruction { max-width: calc(100% - 95px); font-size: 9px; }
  .map-stage { min-height: 500px; }
  .confirm-button { min-width: 125px; padding-right: 13px; padding-left: 13px; }
  .site-footer { margin-right: 28px; margin-left: 28px; }
}

@media (max-width: 767px) {
  .site-header { min-height: 74px; padding: 15px 20px; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 22px; }
  .brand-mark svg { width: 23px; height: 23px; }
  .brand-name { font-size: 16px; letter-spacing: 0; }
  .brand-subtitle { margin-top: 3px; font-size: 8px; letter-spacing: 1px; }
  .header-actions { gap: 3px; }
  .nav-button, .icon-button { min-width: 40px; min-height: 40px; padding: 8px; font-size: 11px; }
  .nav-button svg, .icon-button svg { width: 17px; height: 17px; }
  .shell { padding: 0 20px; }
  .intro { padding-top: 25px; padding-bottom: 24px; }
  .eyebrow { margin-bottom: 8px; font-size: 9px; letter-spacing: 1.7px; }
  .intro h1 { font-size: 32px; line-height: 1.38; letter-spacing: -.8px; }
  .intro-text { max-width: 450px; margin-top: 10px; font-size: 12px; line-height: 1.9; }
  .mobile-break { display: inline; }
  .game-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .clue-panel, .map-panel { border-radius: 15px; }
  .card-heading { min-height: 49px; margin-right: 20px; margin-left: 20px; }
  .round-label { font-size: 10px; letter-spacing: 1px; }
  .question-pips { gap: 5px; }
  .pip { width: 6px; height: 6px; }
  .pip.current { width: 17px; }
  .welcome-content, .question-content, .reveal-content, .summary-content { padding: 20px; }
  .welcome-content { position: relative; padding-top: 23px; }
  .welcome-icon { position: absolute; top: 23px; right: 20px; width: 49px; height: 49px; margin-bottom: 0; border-radius: 15px; font-size: 25px; }
  .welcome-icon svg { width: 26px; height: 26px; }
  .welcome-content h2 { max-width: calc(100% - 65px); font-size: 23px; line-height: 1.5; }
  .welcome-content > p { max-width: calc(100% - 60px); margin-top: 9px; font-size: 12px; line-height: 1.85; }
  .rule-mini { gap: 5px; margin: 19px 0; padding: 14px 0; font-size: 10px; }
  .rule-mini b { width: 18px; height: 18px; font-size: 9px; }
  .start-button, .next-button, .share-button { min-height: 46px; font-size: 13px; }
  .question-meta { margin-bottom: 12px; font-size: 10px; }
  .question-image { height: clamp(145px, 36vw, 220px); }
  .question-content h2 { margin-top: 14px; font-size: 20px; }
  .clue-text { margin-top: 7px; font-size: 12px; line-height: 1.9; }
  .hint-box { margin-top: 12px; padding: 10px 12px; font-size: 11px; }
  .hint-button { min-height: 37px; margin-top: 9px; font-size: 11px; }
  .question-footer { min-height: 39px; margin-top: 7px; padding-top: 0; font-size: 10px; }
  .question-helper { margin-top: 3px; font-size: 0; }
  .mobile-helper { display: inline; font-size: 10px; }
  .skip-button { min-height: 37px; font-size: 11px; }
  .reveal-content { position: relative; }
  .reveal-score { margin-top: 10px; font-size: 51px; }
  .distance { margin-top: 5px; padding-bottom: 16px; font-size: 11px; }
  .answer-title { margin-top: 15px; font-size: 21px; }
  .story { margin-top: 7px; font-size: 12px; }
  .source-link { margin-top: 6px; }
  .reveal-content .next-button { margin-top: 17px; }
  .summary-score { font-size: 54px; }
  .summary-title { font-size: 19px; }
  .summary-dots { margin-top: 14px; }
  .recap-list { margin: 16px 0; }
  .recap-row { padding: 8px 0; font-size: 11px; }
  .map-toolbar { min-height: 51px; padding: 7px 15px; }
  .map-label { gap: 6px; font-size: 11px; letter-spacing: .5px; }
  .map-tools { gap: 5px; }
  .map-tool { width: 36px; height: 36px; }
  .map-stage { height: 360px; height: clamp(310px, 42vh, 420px); min-height: 310px; flex: auto; }
  .map-instruction { top: 13px; max-width: calc(100% - 100px); padding: 7px 9px; font-size: 9px; gap: 5px; }
  .map-instruction svg { width: 12px; height: 12px; }
  .map-legend { left: 11px; bottom: 29px; gap: 10px; padding: 6px 8px; font-size: 8px; }
  .map-bottom-bar { min-height: 74px; padding: 12px 14px; gap: 9px; }
  .selected-location { font-size: 10px; }
  .selected-location strong { font-size: 11px; }
  .confirm-button { min-width: 117px; min-height: 43px; padding: 10px 12px; border-radius: 9px; font-size: 11px; gap: 6px; }
  .confirm-button svg { width: 15px; height: 15px; }
  .maplibregl-ctrl-group button { width: 40px; height: 40px; }
  .maplibregl-ctrl-top-right { top: 3px; right: 0; }
  .maplibregl-ctrl-attrib { font-size: 8px; }
  .city-marker { font-size: 10px; letter-spacing: .6px; }
  .below-board { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 16px; }
  .city-chips { gap: 5px; }
  .city-chip { padding: 4px 8px; font-size: 9px; }
  .local-note { font-size: 9px; text-align: left; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 4px; margin: 25px 20px 0; padding-top: 15px; padding-bottom: max(23px, env(safe-area-inset-bottom)); font-size: 9px; }
  .modal { width: calc(100vw - 28px); max-height: 88dvh; padding: 22px; border-radius: 17px; }
  .modal-heading { gap: 15px; margin-bottom: 18px; }
  .modal-heading h2 { font-size: 21px; }
  .rules-list { gap: 13px; font-size: 12px; }
  .stats-grid { gap: 7px; }
  .stat-item { padding: 15px 5px 12px; }
  .stat-item strong { font-size: 25px; }
  .stat-item span, .stat-item small { font-size: 9px; }
  .dialog-actions { gap: 9px; margin-top: 19px; }
  .dialog-actions > * { min-width: 115px; }
  .share-poster { max-height: 56dvh; }
}

@media (max-width: 374px) {
  .site-header { padding-right: 16px; padding-left: 16px; }
  .shell { padding-right: 16px; padding-left: 16px; }
  .header-actions { gap: 0; }
  .nav-button { gap: 4px; padding-right: 6px; padding-left: 6px; font-size: 10px; }
  .intro h1 { font-size: 29px; }
  .intro-text { font-size: 11px; }
  .card-heading { margin-right: 17px; margin-left: 17px; }
  .welcome-content, .question-content, .reveal-content, .summary-content { padding-right: 17px; padding-left: 17px; }
  .welcome-icon { right: 17px; }
  .welcome-content h2 { font-size: 21px; }
  .welcome-content > p { font-size: 11px; }
  .question-image { height: 140px; }
  .question-content h2 { font-size: 19px; }
  .map-instruction { max-width: calc(100% - 86px); padding-right: 7px; padding-left: 7px; font-size: 8px; }
  .map-instruction svg { display: none; }
  .map-toolbar { padding-right: 12px; padding-left: 12px; }
  .map-bottom-bar { padding-right: 11px; padding-left: 11px; }
  .confirm-button { min-width: 107px; padding-right: 9px; padding-left: 9px; font-size: 10px; }
  .site-footer { margin-right: 16px; margin-left: 16px; }
}

@media (max-width: 600px) {
  .site-header { gap: 10px; }
  .header-actions .nav-button > span { display: none; }
  .header-actions .nav-button, .header-actions .icon-button { flex-shrink: 0; width: 40px; min-width: 40px; padding: 8px; }
  .leaderboard-modal { width: calc(100vw - 28px); }
  .leaderboard-column-labels, .leaderboard-row { grid-template-columns: 32px minmax(0, 1fr) 48px; gap: 8px; }
  .leaderboard-list { max-height: 260px; }
}

@media (max-width: 374px) {
  .site-header { gap: 6px; }
  .brand { gap: 7px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 15px; }
  .header-actions .nav-button, .header-actions .icon-button { width: 36px; min-width: 36px; min-height: 40px; padding: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .map-loading::before { animation: none; border-color: #c5d0b8; border-top-color: var(--ink); }
}
@media (max-width: 760px) {
  .playing .intro, .round-finished .intro { display: none; }
  .playing .question-image { max-height: 146px; }
  .question-helper { font-size: 11px; }
}
.copy-fallback { width: 100%; min-height: 140px; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: 13px/1.6 system-ui, sans-serif; resize: vertical; }
