.town-game {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: min(1500px, 100%);
  max-width: none;
  min-height: 0;
  margin: 0 auto;
  padding: 20px clamp(12px, 3vw, 42px) 8px;
}

.game-home .aurora::after { display: none; }

.game-heading {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 0 210px 8px;
  text-align: center;
}

.game-heading h1 {
  margin: 0;
  color: #dff4e9;
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.game-kicker,
.card-kicker {
  margin: 0 0 5px;
  color: #93b9a8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.map-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% 47%, rgba(69, 112, 95, .21), transparent 63%),
    linear-gradient(145deg, rgba(13, 25, 23, .18), rgba(11, 16, 17, .24));
  /* Craig, 25 Oct: holding a finger on the map (or the 100 km tag) brought up
     the phone's text magnifier under the finger. Nothing on the map is for
     selecting; iPhones only obey the -webkit- spelling. */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.game-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  touch-action: none;
  user-select: none;
  cursor: default;
}

.game-map.over-land { cursor: crosshair; }

#hover-ring { opacity: .65; pointer-events: none; }

.game-map:focus-visible {
  outline: 2px solid rgba(181, 232, 120, .7);
  outline-offset: -4px;
  border-radius: 24px;
}

.land-mass {
  fill: url(#land-fill);
  stroke: none;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .22));
}

.map-controls {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: clamp(10px, 2vw, 24px);
  display: grid;
  gap: 7px;
  transform: translateY(-50%);
}

.town-game .map-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(215, 237, 224, .17);
  border-radius: 13px;
  color: #d9f7e6;
  background: rgba(14, 23, 22, .78);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.town-game .map-controls button:hover,
.town-game .map-controls button:focus-visible {
  border-color: rgba(79, 195, 138, .65);
  outline: none;
  background: rgba(31, 53, 45, .92);
}

.town-game button,
.town-game select,
.town-game a {
  -webkit-tap-highlight-color: transparent;
}

.game-card {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(220, 239, 228, .16);
  border-radius: 20px;
  color: #e8f5ed;
  background: linear-gradient(155deg, rgba(25, 39, 34, .94), rgba(13, 20, 19, .94));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

.start-card {
  top: 50%;
  left: 50%;
  width: min(390px, calc(100% - 28px));
  padding: 23px 25px 20px;
  border: 0;
  text-align: center;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: translate(-50%, -50%);
}

.start-card .card-kicker {
  color: #e1f2e5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

.town-game .start-button {
  display: inline-flex;
  width: auto;
  min-width: 118px;
  justify-content: center;
  margin: 3px 0 12px;
  padding: 11px 30px;
  border: 1px solid rgba(181, 232, 120, .78);
  border-radius: 999px;
  color: #122019;
  background: linear-gradient(135deg, #b5e878, #6ed2a0);
  box-shadow: 0 8px 30px rgba(79, 195, 138, .22);
  font-size: 18px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.town-game .start-button:hover,
.town-game .start-button:focus-visible {
  outline: none;
  box-shadow: 0 10px 34px rgba(79, 195, 138, .4);
  transform: translateY(-2px);
}

.start-card h2 {
  margin: 0 auto 17px;
  max-width: 290px;
  color: #eaf6ee;
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -.025em;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}

.difficulty-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.difficulty-picker legend {
  margin: 0 auto 7px;
  padding: 0;
  color: #b2c8bb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 2px 9px rgba(0, 0, 0, .9);
}

.difficulty-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.difficulty-option {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 9px 6px 10px;
  border: 1px solid rgba(220, 239, 228, .18);
  border-radius: 12px;
  color: #e6f5eb;
  background: rgba(24, 35, 31, .88);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.difficulty-option:hover { transform: translateY(-2px); }

.difficulty-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.difficulty-number {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #b5e878;
  background: rgba(181, 232, 120, .12);
  font-size: 13px;
  font-weight: 800;
}

.difficulty-name {
  font-size: 15px;
  font-weight: 720;
}

.difficulty-tag {
  color: #a9c4b4;
  font-size: 10.5px;
  line-height: 1.25;
}

.difficulty-option:has(input:checked) {
  border-color: rgba(181, 232, 120, .78);
  background: linear-gradient(155deg, rgba(181, 232, 120, .2), rgba(110, 210, 160, .1));
  box-shadow: 0 6px 22px rgba(79, 195, 138, .2);
}

.difficulty-option:has(input:checked) .difficulty-number {
  color: #122019;
  background: linear-gradient(135deg, #b5e878, #6ed2a0);
}

.difficulty-option:has(input:focus-visible) {
  outline: 2px solid rgba(181, 232, 120, .7);
  outline-offset: 2px;
}

.difficulty-banter {
  min-height: 3.9em;
  margin: 10px 0 0;
  color: #eaf6ee;
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}

/* Everyone's totals, top left, level with the corner buttons. */
.crowd-count {
  position: fixed;
  z-index: 3;
  top: 16px;
  left: 18px;
  width: min(240px, calc((100vw - 640px) / 2));
  padding: 9px 12px 10px;
  border: 1px solid rgba(255, 211, 108, .3);
  border-radius: 14px;
  background: rgba(13, 20, 19, .8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.crowd-count p { margin: 0; line-height: 1.35; }

.crowd-kicker {
  color: #c9a85a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.crowd-numbers {
  margin-top: 3px !important;
  color: #ffd36c;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.crowd-banter {
  margin-top: 4px !important;
  color: #e0ece3;
  font-size: 11.5px;
  font-style: italic;
}

/* Top right: the way to the Trading Group, half-faded until pointed at. */
.corner-links {
  position: fixed;
  z-index: 3;
  top: 16px;
  right: 18px;
  display: grid;
  gap: 8px;
}

.landing .corner-links .corner-link {
  position: static;
  text-align: center;
  opacity: .5;
  transition: opacity .2s, background .2s, box-shadow .25s, border-color .2s;
}

.landing .corner-links .corner-link:hover,
.landing .corner-links .corner-link:focus-visible { opacity: 1; }

.crowd-verdict {
  margin: -6px 0 13px;
  padding: 8px 10px;
  border-left: 3px solid #ffd36c;
  border-radius: 6px;
  color: #e7efe9;
  background: rgba(255, 211, 108, .08);
  font-size: 12.5px;
  line-height: 1.4;
}

.start-note {
  margin: 12px 0 0;
  color: #e0ece3;
  font-size: 11px;
  line-height: 1.4;
  text-shadow: 0 2px 9px rgba(0, 0, 0, .9);
}

.question-card {
  top: 16px;
  left: 50%;
  width: min(370px, calc(100% - 24px));
  padding: 12px 18px 14px;
  border-color: rgba(181, 232, 120, .5);
  text-align: center;
  box-shadow: 0 0 0 1px rgba(181, 232, 120, .12), 0 0 34px rgba(110, 210, 160, .26), 0 22px 60px rgba(0, 0, 0, .38);
  transform: translateX(-50%);
}

.question-card.pop { animation: card-pop .38s cubic-bezier(.2, 1.4, .4, 1); }

@keyframes card-pop {
  from { opacity: .4; scale: .94; }
  to { opacity: 1; scale: 1; }
}

.question-card #question-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 7px;
}

.progress-badge {
  padding: 3px 10px 3px 11px;
  border-radius: 999px;
  color: #241b08;
  background: linear-gradient(135deg, #ffe08f, #ffc14d);
  box-shadow: 0 0 16px rgba(255, 211, 108, .4);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.progress-dots { display: inline-flex; gap: 5px; }

.progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(232, 245, 237, .18);
}

.progress-dot.done { background: #6ed2a0; }

.progress-dot.current {
  background: #ffd36c;
  box-shadow: 0 0 9px rgba(255, 211, 108, .9);
  animation: dot-pulse 1.4s ease-in-out infinite;
}

@keyframes dot-pulse {
  50% { box-shadow: 0 0 2px rgba(255, 211, 108, .3); opacity: .65; }
}

.question-card .card-kicker {
  color: #abd9b7;
}

.question-card h2 {
  margin: 0;
  color: #b5e878;
  background: linear-gradient(135deg, #e4fbb0, #b5e878 45%, #6ed2a0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(110, 210, 160, .35));
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
}

.question-banter {
  margin: 5px 0 7px;
  color: #d6e7dc;
  font-size: 12px;
  font-style: italic;
  line-height: 1.3;
}

.ring-hint {
  max-width: 490px;
  margin: 0 auto;
  color: #d2e5d8;
  font-size: 11px;
  line-height: 1.35;
}

.ring-hint strong { color: #c3ef9b; }

/* A finger gets the tap-and-hold wording, a mouse the other. */
.ring-hint.for-touch { display: none; }

@media (pointer: coarse) {
  .ring-hint.for-mouse { display: none; }
  .ring-hint.for-touch { display: block; }
}

/* Craig, 25 Oct: the lock-in button sat in the middle of the map, over the
   towns; it lives at the bottom, over the Southern Ocean. */
.answer-card {
  bottom: 20px;
  left: 50%;
  display: grid;
  gap: 9px;
  width: min(380px, calc(100% - 24px));
  padding: 11px 14px 13px;
  text-align: center;
  transform: translateX(-50%);
}

.town-game .answer-card .confirm-button {
  width: 100%;
  min-height: 58px;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .42), 0 0 26px rgba(181, 232, 120, .16);
  font-size: 17px;
}

.reveal-card {
  top: 50%;
  left: 50%;
  width: min(370px, calc(100% - 24px));
  padding: 22px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.reveal-card h2 {
  margin: 4px 0;
  color: #f0f7f2;
  font-size: 28px;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.reveal-card p:not(.card-kicker) {
  margin: 0 0 15px;
  color: #c1d1c7;
  font-size: 15px;
}

.town-game .confirm-button,
.town-game .reveal-button,
.town-game .again-button {
  width: 100%;
  min-height: 43px;
  padding: 9px 16px;
  border: 1px solid rgba(181, 232, 120, .55);
  border-radius: 12px;
  color: #112019;
  background: #a9df87;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.town-game .confirm-button:disabled {
  border-color: rgba(220, 239, 228, .12);
  color: #809188;
  background: rgba(220, 239, 228, .08);
  cursor: not-allowed;
  opacity: 1;
}

.town-game .again-button {
  border-color: rgba(220, 239, 228, .2);
  color: #e5f2e9;
  background: rgba(255, 255, 255, .08);
}

.town-game .confirm-button:hover:not(:disabled),
.town-game .reveal-button:hover,
.town-game .again-button:hover {
  filter: brightness(1.08);
}

.results-card {
  top: 90px;
  right: clamp(12px, 3vw, 42px);
  bottom: 30px;
  width: min(360px, 42%);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
  scrollbar-color: rgba(181, 232, 120, .4) transparent;
}

.town-game.showing-results .results-card {
  top: 90px;
  right: clamp(12px, 3vw, 42px);
  bottom: 30px;
}

.results-card .card-kicker {
  color: #a8d7b6;
}

.results-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 11px;
}

.results-head .final-score { flex: none; margin: 0; }
.results-head h2 { margin-top: 0; }
.results-head .result-roast { margin: 0; }

.result-saying {
  margin: 6px 0 0;
  color: #ffd36c;
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 0 18px rgba(255, 211, 108, .25);
}

.result-view-toggle { display: none; }

.map-results-button {
  display: none;
}

/* On a computer the results sit beside the map, not over it: map left,
   results right, everything on one screen. */
@media (min-width: 701px) {
  .town-game.showing-results {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(660px, 47%);
    grid-template-rows: auto minmax(0, 1fr) auto;
    column-gap: 16px;
  }

  .town-game.showing-results .game-heading { grid-column: 1 / -1; grid-row: 1; }
  .town-game.showing-results .map-stage { grid-column: 1; grid-row: 2; }
  .town-game.showing-results .game-credit { grid-column: 1 / -1; grid-row: 3; }

  .town-game.showing-results .results-card {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    grid-column: 2;
    grid-row: 2;
    width: auto;
    min-height: 0;
    max-height: calc(100dvh - 110px);
    overflow: hidden;
    padding: 13px;
  }
}

@media (min-width: 1000px) {
  .results-list {
    flex: 1;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-auto-flow: column;
    gap: 5px;
  }
  .results-list li { align-items: start; padding: 6px 7px; gap: 5px; }
  .results-list .result-number,
  .results-list .result-points { margin-top: 1px; }
  .result-spiel { margin-top: 2px; font-size: 9.5px; line-height: 1.3; }
  .result-distance { font-size: 9px; }
  .results-card .card-kicker { margin-bottom: 2px; }
  .results-head { gap: 12px; margin-bottom: 6px; }
  .final-score { font-size: 48px; }
  .results-card h2 { margin-bottom: 3px; font-size: 19px; }
  .result-roast { margin-bottom: 6px; font-size: 11px; line-height: 1.3; }
  .crowd-verdict { margin: 0 0 6px; padding: 5px 7px; font-size: 10px; line-height: 1.25; }
  .marker-key { margin-bottom: 5px; }
  .share-copy { margin: 5px 0; font-size: 10px; }
  .result-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .town-game .result-actions .again-button { grid-column: auto; }
  .town-game .result-actions button,
  .town-game .result-actions a { min-height: 34px; font-size: 10px; }
}

.final-score {
  margin: 6px 0 0;
  color: #d1f2bd;
  font-size: clamp(43px, 5vw, 60px);
  font-weight: 760;
  letter-spacing: -.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.results-card h2 {
  margin: 8px 0 5px;
  color: #f0f7f2;
  font-size: 21px;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.result-roast {
  margin: 0 0 13px;
  color: #b8c9be;
  font-size: 13px;
  line-height: 1.45;
}

.marker-key {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 9px;
  color: #9fb1a5;
  font-size: 10px;
  line-height: 1.4;
}

.key-guess,
.key-answer {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.key-guess { background: #7fe0bb; }
.key-answer { margin-left: 5px; background: #ffd36c; }

.results-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: result;
}

.results-list li {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid rgba(220, 239, 228, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
}

.result-number {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #14201a;
  background: #ffd36c;
  font-size: 11px;
  font-weight: 750;
}

.result-place {
  overflow: hidden;
  color: #e4eee7;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-spiel {
  display: block;
  margin-top: 4px;
  color: #b4c5ba;
  font-size: 10px;
  font-weight: 450;
  line-height: 1.4;
  white-space: normal;
}

.result-distance {
  display: block;
  margin-top: 1px;
  color: #9eafa4;
  font-size: 10px;
  font-weight: 450;
}

.result-points {
  color: #d4edc1;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.share-copy {
  margin: 11px 0 6px;
  color: #a9bdb0;
  font-size: 11px;
  line-height: 1.4;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.town-game .result-actions button,
.town-game .result-actions a {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid rgba(220, 239, 228, .2);
  border-radius: 10px;
  color: #e3efe7;
  background: rgba(255, 255, 255, .065);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.town-game .result-actions .again-button {
  grid-column: 1 / -1;
  border-color: rgba(181, 232, 120, .5);
  color: #152019;
  background: #a9df87;
  font-size: 13px;
}

.town-game .result-actions button:hover,
.town-game .result-actions a:hover,
.town-game .result-actions button:focus-visible,
.town-game .result-actions a:focus-visible {
  outline: none;
  border-color: rgba(181, 232, 120, .62);
  background-color: rgba(79, 195, 138, .16);
}

.town-game .result-actions a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .58;
}

.town-game .result-actions .again-button:hover,
.town-game .result-actions .again-button:focus-visible {
  background: #b5e878;
}

.map-notice {
  position: absolute;
  z-index: 4;
  top: 78px;
  left: 50%;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 8px 13px;
  border: 1px solid rgba(255, 211, 108, .3);
  border-radius: 999px;
  color: #ffe9b5;
  background: rgba(36, 31, 19, .92);
  font-size: 12px;
  text-align: center;
  transform: translateX(-50%);
}

.game-credit {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 5px 0 0;
  color: rgba(180, 198, 186, .65);
  font-size: 10px;
  text-align: center;
}

.game-credit a {
  color: rgba(209, 231, 215, .78);
  text-decoration: underline;
  text-decoration-color: rgba(209, 231, 215, .3);
  text-underline-offset: 2px;
}

.guess-marker {
  fill: transparent;
  cursor: grab;
}

.guess-marker:focus-visible { outline: none; stroke: rgba(181, 232, 120, .7); stroke-width: 2; }

.guess-dot {
  fill: #7fe0bb;
  stroke: #123d35;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.guess-marker:active { cursor: grabbing; }
.guess-ring {
  fill: rgba(127, 224, 187, .14);
  stroke: rgba(181, 232, 120, .9);
  stroke-width: 1.6;
  stroke-dasharray: 6 4;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.guess-crosshair {
  stroke: rgba(232, 248, 238, .85);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.guess-leash {
  stroke: rgba(181, 232, 120, .75);
  stroke-width: 1.3;
  stroke-dasharray: 2 3;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.guess-handle { cursor: grab; }
.guess-handle:active { cursor: grabbing; }
.guess-handle-hit { fill: transparent; }

.guess-handle-tag {
  fill: rgba(13, 20, 19, .88);
  stroke: rgba(181, 232, 120, .85);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.guess-handle-text {
  fill: #e8f8ee;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 750;
  dominant-baseline: central;
  pointer-events: none;
}

.answer-name {
  fill: #fff4d6;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  dominant-baseline: central;
  paint-order: stroke;
  stroke: rgba(13, 20, 19, .9);
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}

.guess-ring-label {
  fill: #e8f8ee;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 750;
  paint-order: stroke;
  stroke: rgba(13, 20, 19, .85);
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}
.answer-marker { fill: #ffd36c; stroke: #4a3410; stroke-width: 2.5; }
.answer-label {
  fill: #241b08;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 750;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.answer-line {
  stroke: rgba(255, 211, 108, .8);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}
.result-guess-marker { fill: #7fe0bb; stroke: #123d35; stroke-width: 2.5; }
.result-guess-label {
  fill: #103129;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 750;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

[hidden] { display: none !important; }

@media (max-width: 700px) {
  .town-game {
    min-height: 560px;
    padding: 15px 8px 6px;
  }

  .game-heading {
    padding: 0 150px 6px 0;
    text-align: left;
  }

  .game-heading h1 {
    max-width: 220px;
    font-size: 18px;
  }

  .game-kicker {
    font-size: 9px;
    letter-spacing: .1em;
  }

  .corner-links { top: 12px; right: 10px; }

  .crowd-count {
    position: static;
    width: auto;
    margin: 0 0 7px;
    padding: 6px 10px 7px;
    border-radius: 11px;
    box-shadow: none;
  }

  .crowd-kicker { display: none; }
  .crowd-numbers { margin-top: 0 !important; font-size: 11px; }
  .crowd-banter { margin-top: 1px !important; font-size: 10px; }

  .landing .corner-link {
    top: 12px;
    right: 10px;
    max-width: 46vw;
    padding: 8px 11px;
    font-size: 11px;
    letter-spacing: .015em;
    text-align: center;
  }

  .map-stage { border-radius: 18px; }

  .start-card {
    width: min(330px, calc(100% - 22px));
    padding: 14px 14px 12px;
    border-radius: 17px;
  }

  .start-card h2 {
    margin-bottom: 12px;
    font-size: 18px;
  }

  .start-note { font-size: 10px; }

  .question-card {
    top: 9px;
    width: min(330px, calc(100% - 18px));
    padding: 10px 13px;
    border-radius: 15px;
  }

  .question-card h2 { font-size: 25px; }

  .question-card { top: 8px; }
  .question-banter { font-size: 11px; }
  .ring-hint { font-size: 10px; }

  .answer-card {
    bottom: 10px;
    width: min(340px, calc(100% - 18px));
    padding: 9px 11px 11px;
    border-radius: 15px;
  }

  .town-game .answer-card .confirm-button { min-height: 50px; font-size: 15px; }

  .reveal-card {
    width: min(340px, calc(100% - 18px));
    padding: 18px 16px;
    border-radius: 17px;
  }

  .reveal-card h2 { font-size: 24px; }
  .reveal-card p:not(.card-kicker) { font-size: 14px; }

  /* Short phones (an iPhone SE): the cards left a sliver of map. While
     guessing, drop the per-town banter and the hint, and a smaller button. */
  @media (max-height: 640px) {
    .question-banter,
    .answer-card .ring-hint { display: none !important; }
    .town-game .answer-card .confirm-button { min-height: 42px; }
  }

  /* Craig, 25 Oct: down the right edge they sat on the east coast — a tap at
     Brisbane hit zoom-in. A row bottom left, over the Southern Ocean. */
  .town-game .map-controls {
    top: auto;
    right: auto;
    bottom: 157px;
    left: 10px;
    grid-auto-flow: column;
    gap: 5px;
    transform: none;
  }

  .town-game .map-controls button {
    width: 37px;
    height: 37px;
    border-radius: 11px;
  }

  .results-card {
    position: relative;
    inset: auto;
    width: calc(100% - 16px);
    max-height: none;
    margin: 9px auto 14px;
    padding: 14px;
    border-radius: 17px;
  }

  .town-game.showing-results { min-height: 100dvh; }

  .town-game.showing-results .map-stage {
    flex: 1;
    height: auto;
    min-height: 300px;
    overflow: hidden;
  }

  .town-game.showing-results .results-card {
    position: fixed;
    z-index: 8;
    inset: max(105px, calc(env(safe-area-inset-top) + 95px)) 10px max(10px, env(safe-area-inset-bottom));
    width: auto;
    max-height: none;
    margin: 0;
    overflow: auto;
    padding: 14px;
    border-color: rgba(220, 239, 228, .28);
    background: rgba(11, 18, 16, .98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  .result-view-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 0 0 9px;
  }

  .result-view-toggle button,
  .map-results-button {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(220, 239, 228, .22);
    border-radius: 10px;
    color: #e3efe7;
    background: rgba(255, 255, 255, .08);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
  }

  .result-view-toggle button[aria-pressed="true"] {
    border-color: rgba(181, 232, 120, .72);
    color: #142019;
    background: #b5e878;
  }

  .town-game .map-results-button {
    position: fixed;
    z-index: 9;
    top: max(105px, calc(env(safe-area-inset-top) + 95px));
    right: 16px;
    display: block;
    border-color: rgba(181, 232, 120, .72);
    color: #142019;
    background: #b5e878;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .4);
  }

  .town-game.showing-results.results-map-view .results-card { display: none; }
  .town-game.showing-results.results-map-view .crowd-count { visibility: hidden; }

  .final-score { font-size: 46px; }
  .results-card h2 { font-size: 19px; }
  .results-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; gap: 6px; }
  .results-list li { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 6px; padding: 8px; }
  .result-points { grid-column: 3; margin-top: 0; }
  .result-place { font-size: 11px; }
  .result-spiel { font-size: 10px; }
  .result-number { width: 20px; height: 20px; font-size: 10px; }
  .game-credit { padding-top: 4px; font-size: 9px; }
}

@media (max-width: 380px) {
  .game-heading { padding-right: 140px; }
  .game-heading h1 { font-size: 16px; }
  .game-kicker { max-width: 190px; }
  .start-card { padding: 15px 13px 12px; }
  .difficulty-options { gap: 5px; }
  .difficulty-option { padding: 7px 3px 8px; }
  .difficulty-name { font-size: 13px; }
  .difficulty-tag { font-size: 9.5px; }
  .difficulty-banter { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .town-game *,
  .town-game *::before,
  .town-game *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation: none !important;
  }
}
