/* The stage is the primary interaction surface; decoration and Geogo stay secondary. */
body[data-screen="play"] {
  background: #102a48;
  background-image: radial-gradient(
    ellipse at 50% -40%,
    color-mix(in srgb, var(--gs-a) 32%, #132f50),
    transparent 85%
  );
  background-attachment: scroll;
}
[data-screen="play"] .gs-topbar {
  min-height: 56px;
  padding-block: 9px;
  background: #0c223bfa;
  backdrop-filter: none;
}
[data-screen="play"] .play-heading {
  max-width: 1340px;
  padding: 18px 24px 14px;
  gap: 12px;
}
[data-screen="play"] .play-heading h1 {
  font-size: 22px;
  text-shadow: none;
}
[data-screen="play"] .play-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #9eb8d0;
}
[data-screen="play"] .game-icon {
  width: 44px;
  height: 44px;
  font-size: 25px;
  border-radius: 13px;
  border-color: #ffffff20;
  background: #ffffff08;
  box-shadow: none;
}
[data-screen="play"] .play-layout {
  display: block;
  max-width: 1340px;
  padding: 0 24px 16px;
}
[data-screen="play"] .stats {
  font-size: 11px;
  margin-bottom: 8px;
  gap: 8px;
  justify-content: flex-start;
}
[data-screen="play"] .stats span {
  background: none;
  border: 0;
  padding: 4px 0;
  color: #b5c9dc;
  border-radius: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
}
[data-screen="play"] .stats span + span {
  margin-left: auto;
  background: none;
  color: #b5c9dc;
}
[data-screen="play"] .stats #clock {
  min-width: 66px;
  margin-left: 15px;
  color: #ffe0a1;
}
[data-screen="play"] progress {
  height: 3px;
  margin-bottom: 14px;
  background: #ffffff12;
}
[data-screen="play"] progress::-webkit-progress-bar {
  background: #ffffff12;
}
[data-screen="play"] progress::-webkit-progress-value {
  background: #d5a64e;
}
.challenge-card {
  padding: 0;
  border: 1px solid #e4ebf1;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 55px #020d1c40;
}
.challenge-question {
  padding: 22px 26px;
  border-bottom: 1px solid #e7edf3;
  background: #fff;
}
.challenge-question .task-label {
  font: 900 9px/1.5 var(--ui);
  letter-spacing: 0.17em;
  color: var(--gs-a);
  margin: 0 0 8px;
}
.challenge-question h2 {
  font-family: var(--ui);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.4;
  margin: 0;
  color: #183554;
  outline-offset: 5px;
}
.challenge-question h2:focus {
  outline: none;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr);
  align-items: start;
}
.visual-scene {
  position: relative;
  min-width: 0;
  padding: 22px;
  background: #f1f5f9;
  align-self: stretch;
}
.answer-panel {
  min-width: 0;
  padding: 23px 24px;
  background: white;
  position: sticky;
  top: 60px;
}
.answer-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
  font: 900 10px var(--ui);
  letter-spacing: 0.09em;
  color: #59728a;
}
.answer-panel-heading small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  color: #7890a6;
}
.answer-panel .options {
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}
.answer-panel .options button {
  min-height: 61px;
  border: 1px solid #d7e1eb;
  border-radius: 13px;
  box-shadow: 0 2px 0 #e3eaf2;
  background: #fff;
  padding: 13px 14px;
  font-size: 14px;
  line-height: 1.45;
  gap: 12px;
  color: #294663;
  position: relative;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.answer-panel .options button:hover:enabled {
  transform: translateY(-1px);
  background: #f2f7fb;
  border-color: #819eb8;
  box-shadow: 0 3px 12px #1b3a5512;
}
.answer-panel .options button:focus-visible {
  outline: 3px solid #d8a73f;
  outline-offset: 3px;
}
.answer-panel .answer-letter {
  width: 28px;
  height: 28px;
  background: #edf2f7 !important;
  color: #607b94 !important;
  font-size: 11px;
  border-radius: 8px;
  flex-shrink: 0;
}
.choice-state {
  font-style: normal;
  margin-left: auto;
  font-size: 18px;
  font-weight: 900;
}
.answer-panel .options button.correct {
  opacity: 1;
  background: #eef8f4;
  border-color: #57a789;
  color: #146349;
  box-shadow: 0 0 0 1px #57a789;
}
.answer-panel .options button.incorrect {
  opacity: 1;
  background: #fff4f1;
  border-color: #c58a75;
  color: #8c4f3a;
  box-shadow: none;
}
.answer-panel .options button:disabled:not(.correct):not(.incorrect) {
  opacity: 0.6;
  box-shadow: none;
  background: #f8fafb;
}
.feedback {
  border: 1px solid #b8d9cd;
  background: #f3faf6;
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0 10px;
  color: #335e4f;
  font-size: 12px;
  line-height: 1.65;
  animation: feedback-in 0.2s ease-out;
}
.feedback b {
  display: block;
  font: 900 17px/1.35 var(--ui);
  margin: 5px 0 9px;
  color: #18583f;
}
.feedback.wrong {
  background: #fcf7f0;
  border-color: #e1ccb1;
  color: #785b3b;
}
.feedback.wrong b {
  color: #76502b;
}
.feedback-eyebrow {
  display: block;
  font: 900 8px var(--ui);
  letter-spacing: 0.11em;
  color: inherit;
}
.feedback p {
  margin: 8px 0;
  font-size: 12px;
}
.feedback a {
  font-size: 10px;
  text-underline-offset: 3px;
}
.continue-button,
.confirm-location {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  margin-top: 16px;
  background: #163c60;
  color: white;
  font: 900 13px var(--ui);
  box-shadow: 0 3px 0 #0b2540;
  transition:
    background 0.15s,
    transform 0.15s;
}
#feedback > .continue-button,
#follow-result > .continue-button,
#river-feedback > .continue-button {
  display: flex;
  background: #163c60;
  border-radius: 12px;
  box-shadow: 0 3px 0 #0b2540;
}
.continue-button:hover,
.confirm-location:hover:enabled {
  background: #20547b;
  transform: translateY(-1px);
}
.confirm-location:disabled {
  opacity: 1;
  background: #e8eef3;
  color: #8497a8;
  box-shadow: none;
  cursor: not-allowed;
}
[data-screen="play"] .geogo-guide {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 3px 0 0;
  overflow: visible;
}
[data-screen="play"] .guide-scene {
  display: none;
}
[data-screen="play"] .guide-mascot {
  height: 51px;
  width: 50px;
  margin: 0;
  object-fit: contain;
  filter: none;
  order: -1;
}
[data-screen="play"] .guide-message {
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: #b6cadc;
  font: 700 11px/1.5 var(--ui);
  max-width: 530px;
}
[data-screen="play"] .guide-message:after {
  display: none;
}
[data-screen="play"] .guide-links {
  display: flex;
  gap: 15px;
  padding: 0;
  margin-left: auto;
}
[data-screen="play"] .guide-links a {
  background: none;
  border-radius: 0;
  color: #9dbad2;
  padding: 8px 0;
  font-size: 10px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
[data-screen="play"] .game-footer {
  max-width: 1340px;
  padding: 0 24px 18px;
  color: #789ab8;
  font-size: 9px;
}
.instrument-label {
  font: 900 9px var(--ui);
  letter-spacing: 0.13em;
  color: #6b899d;
}
.instrument-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 15px 17px;
  border-bottom: 1px solid #e3eaf1;
  font-size: 10px;
  color: #8293a4;
}
.data-instrument {
  border: 1px solid #d6e1e9;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 5px 20px #1a3a5110;
}
.instrument-caption {
  padding: 13px 17px;
  font-size: 10px;
  line-height: 1.6;
  color: #70869a;
  background: #f8fafc;
  border-top: 1px solid #e3eaf1;
}
.data-details {
  padding: 0 14px 12px;
  margin: 12px 0 0;
  color: #6b7f90;
  font-size: 10px;
}
.data-details summary {
  font-size: 10px;
  font-weight: 800;
}
.data-details p {
  font-size: 10px;
  margin-top: 10px;
}
.data-details table {
  font-size: 11px;
}
/* A real orthographic globe, using Natural Earth geometry rather than a decorative icon. */
.atlas-scene {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 40%, #19435d, #0a1c33 75%);
  border: 1px solid #20435c;
  min-height: 340px;
  color: #c9dde9;
}
.atlas-scene:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 16% 24%, #b1d5e480 1px, transparent 1.6px),
    radial-gradient(circle at 77% 36%, #b1d5e455 1px, transparent 1.6px),
    radial-gradient(circle at 87% 75%, #b1d5e444 1px, transparent 1.6px),
    radial-gradient(circle at 28% 80%, #b1d5e444 1px, transparent 1.6px);
  background-size:
    132px 109px,
    179px 149px,
    223px 161px,
    277px 197px;
}
.scene-toolbar {
  position: absolute;
  z-index: 2;
  inset: 17px 18px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.scene-toolbar .instrument-label {
  color: #90b7cd;
  font-size: 8px;
}
.live-dot {
  font: 800 7px var(--ui);
  letter-spacing: 0.1em;
  color: #83a9bd;
  display: flex;
  align-items: center;
  gap: 5px;
}
.live-dot:before {
  content: "";
  width: 4px;
  height: 4px;
  background: #68c7b6;
  border-radius: 50%;
}
.world-globe {
  display: block;
  width: 100%;
  height: 350px;
  cursor: grab;
  touch-action: none;
  position: relative;
  z-index: 1;
  outline-offset: -7px !important;
}
.world-globe:active {
  cursor: grabbing;
}
.world-globe:focus-visible {
  outline: 2px solid #f4c767 !important;
}
.globe-orbit {
  position: absolute;
  pointer-events: none;
  border: 1px solid #77bed212;
  inset: 16% 5%;
  border-radius: 50%;
  transform: rotate(-25deg);
}
.orbit-two {
  inset: 12% 16%;
  transform: rotate(45deg);
  border-color: #77bed20a;
}
.scene-bottom {
  position: absolute;
  z-index: 2;
  bottom: 15px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: #91adbf;
}
.motion-toggle {
  background: #ffffff0a;
  border: 1px solid #91b4cb35;
  border-radius: 7px;
  padding: 6px 9px;
  color: #c0d5e2;
  font: 800 8px var(--ui);
  min-height: 32px;
  flex-shrink: 0;
}
.motion-toggle:hover {
  background: #ffffff18;
}
/* Accessible population chart with readable HTML labels at every viewport width. */
.chart-legend {
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 16px 17px 11px;
  font-size: 11px;
  color: #536f86;
}
.chart-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-legend small {
  margin-left: auto;
  font-size: 8px;
  color: #8298a8;
}
.blue-dot,
.pink-dot,
.guess-dot,
.correct-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 3px;
  background: #35a9db;
}
.pink-dot {
  background: #d06da6;
}
.pyramid-axis {
  display: grid;
  grid-template-columns: 1fr 45px 1fr;
  gap: 4px;
  padding: 0 20px 9px;
  font-size: 8px;
  color: #8296a8;
}
.pyramid-axis > div {
  display: flex;
  justify-content: space-between;
}
.pyramid-axis i {
  text-align: center;
  font-style: normal;
  font-size: 7px;
  letter-spacing: 0.1em;
}
.population-chart {
  margin: 0 18px;
  position: relative;
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(12.5% - 1px),
    #e9eff4 calc(12.5% - 1px),
    #e9eff4 12.5%
  );
  padding: 0 0 7px;
}
.age-row {
  display: grid;
  grid-template-columns: 1fr 45px 1fr;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 23px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 5px;
  font-family: var(--ui);
  color: #667f94;
  cursor: crosshair;
}
.age-row:hover,
.age-row.is-active,
.age-row:focus-visible {
  background: #eaf1f8;
  outline: none;
}
.age-row:focus-visible {
  box-shadow: 0 0 0 2px #d7a74a;
}
.bar-half {
  height: 16px;
  display: flex;
  align-items: center;
}
.male-half {
  justify-content: flex-end;
}
.population-bar {
  height: 15px;
  display: block;
  border-radius: 3px;
  min-width: 1px;
  animation: bar-reveal 0.45s ease-out both;
  animation-delay: var(--delay);
}
.male-bar {
  background: linear-gradient(90deg, #296cad, #46bce6);
  transform-origin: right center;
}
.female-bar {
  background: linear-gradient(90deg, #e091be, #b74989);
  transform-origin: left center;
}
.age-label {
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.is-active .age-label {
  color: #183d62;
  font-weight: 900;
}
.is-active .population-bar {
  filter: brightness(1.12);
}
.chart-readout {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: #f3f7fa;
  border: 1px solid #e1e9f0;
  padding: 12px 13px;
  margin: 11px 15px 0;
  border-radius: 10px;
  font-size: 10px;
  color: #59748a;
}
.chart-readout > span {
  font-size: 10px;
  font-weight: 900;
}
.male-value {
  color: #2477ac;
}
.female-value {
  color: #b85591;
}
/* Instrumental comparison, with numeric heights revealed only after the answer. */
.mountain-panorama {
  height: 340px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #183e65aa, #112e4ab5),
    var(--scene) center 45% / cover;
}
.mountain-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.distant {
  background: linear-gradient(#748fa555, #42677766);
  clip-path: polygon(
    0 70%,
    11% 32%,
    18% 45%,
    32% 10%,
    40% 30%,
    48% 18%,
    59% 51%,
    69% 23%,
    78% 38%,
    86% 20%,
    100% 63%,
    100% 100%,
    0 100%
  );
}
.middle {
  background: linear-gradient(#457c8255, #194b5b88);
  clip-path: polygon(
    0 78%,
    15% 48%,
    29% 70%,
    45% 33%,
    61% 62%,
    77% 40%,
    100% 73%,
    100% 100%,
    0 100%
  );
}
.near {
  background: linear-gradient(transparent, #143a4cdd);
  clip-path: polygon(
    0 90%,
    12% 74%,
    33% 84%,
    59% 63%,
    83% 78%,
    100% 59%,
    100% 100%,
    0 100%
  );
}
.elevation-compare {
  position: absolute;
  inset: 22px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.altimeter {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  text-align: center;
  gap: 7px;
  position: relative;
  align-items: center;
  justify-items: center;
  background: #0e273e35;
  border: 1px solid #d0e3ed33;
  border-radius: 14px;
  padding: 13px;
  color: white;
  backdrop-filter: blur(3px);
}
.altimeter-letter {
  font: 800 9px var(--ui);
  border: 1px solid #ffffff50;
  border-radius: 5px;
  padding: 3px 7px;
  color: #c9dce7;
}
.altimeter-city {
  font: 900 14px var(--ui);
}
.altimeter-track {
  height: 145px;
  width: 42px;
  border: 1px solid #b4d9e45c;
  border-radius: 7px;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 20px,
    #c9e7ee30 20px,
    #c9e7ee30 21px
  );
  position: relative;
  overflow: hidden;
}
.altimeter-track span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(0deg, #2e9faf, #93e4d0);
  transition: height 0.8s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.altimeter-track i {
  position: absolute;
  inset: 25% 0;
  border-top: 1px dashed #ffffff80;
  border-bottom: 1px dashed #ffffff80;
}
.altimeter strong {
  font: 900 21px var(--ui);
  letter-spacing: -0.03em;
  color: #f4d28a;
}
[data-revealed="true"] .altimeter-track span {
  height: var(--level);
}
[data-revealed="true"] .altimeter-track i {
  display: none;
}
/* Dual time dials, with a deliberate unknown destination until the answer. */
.clock-route {
  display: grid;
  grid-template-columns: 1fr 65px 1fr;
  gap: 8px;
  padding: 28px 20px 22px;
  background: radial-gradient(ellipse at 50% 0, #eaf3fb, #f8fafc);
  align-items: center;
}
.clock-route article {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.city-kicker {
  font: 900 8px var(--ui);
  letter-spacing: 0.09em;
  color: #55738d;
  margin-bottom: 15px;
  min-height: 12px;
}
.precision-clock {
  display: block;
  width: 100%;
  max-width: 190px;
  filter: drop-shadow(0 8px 9px #233d5a20);
}
.precision-clock text {
  font: 800 15px var(--ui);
  fill: #45627e;
}
.precision-clock .clock-question {
  font-size: 47px;
  font-weight: 900;
  fill: #b9cadb;
}
.unknown-clock .clock-hands {
  visibility: hidden;
}
.clock-route strong {
  font: 900 24px var(--ui);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: #1a3c5c;
  margin-top: 15px;
}
.clock-route small {
  font: 700 10px var(--ui);
  color: #8399ab;
  margin-top: 5px;
}
.flight-connection {
  text-align: center;
  color: #6d92ae;
}
.flight-connection span {
  display: block;
  font-size: 24px;
  line-height: 1;
}
.flight-connection i {
  display: block;
  border-top: 1px dashed #9eb5c8;
  margin: 10px -5px;
}
.flight-connection small {
  font-size: 8px;
  line-height: 1.5;
  display: block;
}
[data-revealed="true"] .flight-connection span {
  animation: flight-reveal 0.65s ease-out;
}
.shadow-lab {
  display: block;
  width: 100%;
  margin: 0;
  background: #153653;
}
.shadow-lab text {
  fill: #c6d9e4;
  font: 700 11px var(--ui);
  letter-spacing: 0.03em;
}
.shadow-measures {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 16px 17px;
  background: #f7fafc;
}
.shadow-measures span {
  font: 800 7px var(--ui);
  letter-spacing: 0.06em;
  color: #7f98a9;
}
.shadow-measures b {
  display: block;
  font: 900 12px var(--ui);
  color: #254861;
  margin-top: 5px;
  letter-spacing: 0;
}
.projected-shadow {
  stroke-dasharray: 230;
  animation: shadow-reveal 0.7s ease-out;
}
/* Road instrument. Motion is a brief entry, not an endless distraction. */
.road-stage {
  position: relative;
  height: 330px;
  overflow: hidden;
  border-radius: 16px;
  background: #10263e;
  color: white;
  border: 1px solid #213f57;
}
.road-horizon {
  position: absolute;
  inset: 0;
  background: linear-gradient(#224568, #7195ad 48%, #273f50 49%, #152638);
}
.road-sun {
  position: absolute;
  left: 70%;
  top: 8%;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #f3d6a0;
  box-shadow: 0 0 50px #f0d29c66;
}
.road-mountains {
  position: absolute;
  inset: 20% -10% 0;
  background: linear-gradient(#416277, #223d50);
  clip-path: polygon(
    0 40%,
    15% 7%,
    28% 37%,
    46% 0,
    59% 30%,
    72% 16%,
    100% 41%,
    100% 100%,
    0 100%
  );
}
.road-perspective {
  position: absolute;
  inset: 49% 0 0;
  background: linear-gradient(#20303d, #0b1724);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
}
.road-lane {
  position: absolute;
  left: 48.8%;
  top: 49%;
  width: 2.4%;
  height: 64%;
  background: repeating-linear-gradient(
    to bottom,
    #e7dbb1 0,
    #e7dbb1 17px,
    transparent 17px,
    transparent 41px
  );
  transform: perspective(130px) rotateX(35deg);
  animation: road-travel 1.3s linear 2;
}
.plate-hud {
  position: absolute;
  inset: 26px 0 auto;
  display: grid;
  justify-items: center;
  gap: 32px;
}
.plate-hud > .instrument-label {
  color: #c9dbe7;
  font-size: 8px;
  text-shadow: 0 1px 8px #122c42;
}
.plate-hud p {
  font: 800 11px var(--ui);
  color: #cfe0e8;
  margin-top: -15px;
  text-shadow: 0 2px 5px #0a1c2d;
}
.license-plate {
  width: 295px;
  height: 106px;
  position: relative;
  border: 5px solid #d9e2ea;
  border-radius: 12px;
  background: linear-gradient(140deg, #fff, #e9edf2);
  box-shadow:
    0 17px 20px #08192975,
    inset 0 0 0 2px #1d334b;
  overflow: hidden;
  transform: perspective(700px) rotateX(8deg);
  display: flex;
  align-items: center;
}
.plate-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 45px;
  align-self: stretch;
  background: linear-gradient(90deg, #123b86, #2558b5);
  color: white;
  font: 900 11px var(--ui);
  padding-top: 5px;
}
.plate-band i {
  font-size: 15px;
  color: #f2d06c;
  font-style: normal;
}
.license-plate strong {
  flex: 1;
  text-align: center;
  font: 900 68px/1 var(--ui);
  letter-spacing: 0.1em;
  color: #182c42;
  padding-right: 5px;
  text-shadow: 1px 2px 0 white;
}
.plate-glint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 30%,
    #ffffff75 47%,
    transparent 55%
  );
  pointer-events: none;
}
.plate-screw {
  position: absolute;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8c9aaa;
  box-shadow: 0 1px 0 white;
}
.plate-screw.left {
  left: 53px;
}
.plate-screw.right {
  right: 9px;
}
.road-telemetry {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 9px;
  font: 800 7px var(--ui);
  letter-spacing: 0.05em;
  color: #9db7ca;
}
.challenge-card[data-result] .road-lane {
  animation-play-state: paused;
}
.city-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 22px;
}
.city-dossier {
  border: 1px solid #dce6ef;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
  padding: 14px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.city-index {
  font: 900 7px var(--ui);
  letter-spacing: 0.12em;
  color: #7c94a9;
}
.city-skyline {
  height: 150px;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  padding: 0 4px;
  background: linear-gradient(#dce9f5, #f0f5fa);
  border-radius: 8px;
  margin: 18px 0 15px;
  overflow: hidden;
  position: relative;
}
.city-skyline:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 15px;
  background: linear-gradient(#91aab855, #d7e4ec);
}
.city-skyline i {
  flex: 1;
  height: var(--building);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 9px,
      #c5dae370 9px,
      #c5dae370 12px
    ),
    linear-gradient(90deg, #3e668a, #708ca8);
  border-radius: 2px 2px 0 0;
  box-shadow: 3px 0 0 #294b6e30;
}
.skyline-1 i {
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 9px,
      #d2d6e570 9px,
      #d2d6e570 12px
    ),
    linear-gradient(90deg, #64648a, #8b8ea8);
}
.city-dossier h3 {
  font: 900 17px var(--ui);
  margin: 0 0 8px;
  color: #264763;
}
.city-role {
  font: 700 9px var(--ui);
  color: #8396a5;
}
.city-dossier.is-answer {
  border-color: #65a88d;
  background: #eff8f3;
}
.is-answer .city-role {
  color: #237453;
  font-weight: 900;
}
/* Atlas: deliberate selection, zoom/pan, and confirmation prevent accidental answers. */
.map-instrument {
  border: 1px solid #cfdce6;
  border-radius: 16px;
  overflow: hidden;
  background: #102a44;
  box-shadow: 0 4px 20px #102c4514;
}
.map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: #132e48;
  color: #abc5d8;
}
.map-toolbar .instrument-label {
  color: #9ab7ce;
  font-size: 8px;
}
.map-tools {
  display: flex;
  gap: 5px;
}
.map-tools button {
  display: grid;
  place-items: center;
  width: 33px;
  height: 30px;
  border: 1px solid #7794ae35;
  background: #ffffff07;
  border-radius: 7px;
  color: #c5d9e6;
  font: 800 17px var(--ui);
}
.map-tools button:hover {
  background: #ffffff18;
}
.map-viewport {
  position: relative;
  height: 350px;
  background: radial-gradient(ellipse at center, #254f65, #102940);
  overflow: hidden;
}
.map-viewport:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#a2c8df08 1px, transparent 1px),
    linear-gradient(90deg, #a2c8df08 1px, transparent 1px);
  background-size: 55px 55px;
}
.map-viewport .interactive-map {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  touch-action: none;
  cursor: crosshair;
}
.map-viewport .map path.map-country {
  fill: url(#map-land);
  stroke: #355c64;
  stroke-width: 0.8;
  transition: fill 0.15s;
  filter: drop-shadow(0 1px 1px #0c263566);
}
.map-viewport .map path.map-country:hover {
  fill: #b4d7b8;
}
.map-viewport .interactive-map:focus-visible {
  outline: 3px solid #e8bd68;
  outline-offset: -5px;
}
.map-pin {
  stroke: #eaf6ff !important;
  stroke-width: 2 !important;
}
.map .guess-pin {
  fill: #f7c970 !important;
}
.map .correct-pin {
  fill: #6cddbb !important;
}
.map .pin-halo {
  fill: #edca6a22 !important;
  stroke: #edca6a77 !important;
  stroke-width: 1 !important;
}
.map .correct-halo {
  fill: #75e6c52b !important;
  stroke: #75e6c577 !important;
  stroke-width: 1 !important;
}
.pin-crosshair {
  fill: none !important;
  stroke: #f2d18b !important;
  stroke-width: 1 !important;
}
.map .distance-line {
  fill: none !important;
  stroke: #e4c57a !important;
  stroke-width: 2 !important;
  stroke-dasharray: 7 5;
  vector-effect: non-scaling-stroke;
  animation: route-reveal 0.6s ease-out;
}
.compass-rose {
  position: absolute;
  right: 15px;
  top: 16px;
  pointer-events: none;
  display: grid;
  justify-items: center;
  font: 900 8px var(--ui);
  color: #a4c1d6;
  gap: 4px;
}
.compass-rose i {
  width: 12px;
  height: 25px;
  background: linear-gradient(90deg, #d3e4ef 50%, #6389a1 50%);
  clip-path: polygon(50% 0, 100% 100%, 50% 70%, 0 100%);
}
.map-coordinate {
  position: absolute;
  bottom: 36px;
  left: 13px;
  background: #102a43df;
  border: 1px solid #84a7bc35;
  color: #b4d3e4;
  padding: 6px 9px;
  border-radius: 7px;
  font: 800 9px var(--ui);
  pointer-events: none;
  max-width: calc(100% - 26px);
}
.map-help {
  position: absolute;
  bottom: 14px;
  left: 14px;
  color: #83a8bf;
  font: 700 8px var(--ui);
  pointer-events: none;
}
.map-legend {
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 11px 15px;
  color: #9ebdce;
  font: 800 8px var(--ui);
  background: #112940;
}
.map-legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.map-legend > span:last-child {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.guess-dot {
  background: #f4c96c;
}
.correct-dot {
  background: #67d8b5;
}
.location-brief {
  border: 1px solid #e2eaf1;
  border-radius: 12px;
  padding: 15px;
  background: #f7fafc;
}
.location-symbol {
  display: none;
}
.location-brief h3 {
  font: 900 19px var(--ui);
  margin: 0 0 9px;
}
.location-brief p {
  font-size: 11px;
  color: #71889c;
  margin: 0;
}
.selection-readout {
  padding: 15px 0;
  border-bottom: 1px solid #e8edf2;
}
.selection-readout > span {
  font: 900 8px var(--ui);
  letter-spacing: 0.12em;
  color: #8a9cad;
}
.selection-readout b {
  font: 900 13px var(--ui);
  color: #2e4f6b;
  display: block;
  margin-top: 7px;
  min-height: 18px;
}
.coordinate-details {
  margin: 18px 0 0;
  font-size: 10px;
  color: #7d91a2;
}
.coordinate-details summary {
  font-size: 10px;
  font-weight: 800;
}
.coordinate-details .map-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.coordinate-details label {
  font-size: 10px;
  min-width: 0;
}
.coordinate-details input {
  width: 100%;
  min-height: 40px;
  padding: 9px;
  font-size: 12px;
  border-width: 1px;
  border-radius: 8px;
}
.coordinate-details button {
  grid-column: 1/-1;
  min-height: 38px;
  font-size: 11px;
  box-shadow: none !important;
  border-radius: 8px !important;
  padding: 9px !important;
  margin-top: 0 !important;
}
.follow-question {
  padding-top: 13px;
}
.follow-question .task-label {
  font: 900 8px var(--ui);
  letter-spacing: 0.11em;
  color: #768f9e;
}
.follow-question h3 {
  font: 900 15px/1.5 var(--ui);
  margin: 7px 0 13px;
}
.follow-question .options button {
  font-size: 12px;
  min-height: 48px;
}
.heritage-reveal {
  border: 1px solid #e6d7bb;
  padding: 15px;
  background: #fcf8ef;
  border-radius: 12px;
  margin-top: 13px;
}
.heritage-reveal > span {
  font: 900 8px var(--ui);
  color: #9b855e;
  letter-spacing: 0.06em;
}
.heritage-reveal h3 {
  font: 900 17px var(--ui);
  margin: 8px 0;
  color: #79613b;
}
.heritage-reveal p {
  font-size: 12px;
  line-height: 1.6;
  color: #857051;
}
.heritage-reveal a {
  font-size: 10px;
  color: #8a7145;
  display: inline-block;
  margin-top: 9px;
}
.river-trace polyline {
  fill: none;
  stroke: #6ee7eb;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 10 4;
  animation: river-flow 1.8s linear 2;
  filter: drop-shadow(0 0 3px #65d8ff88);
}
.river-trace.route-complete polyline {
  stroke: #f1d18c;
  stroke-dasharray: none;
}
.river-stop circle {
  fill: #f1d18c !important;
  stroke: white !important;
  stroke-width: 2 !important;
}
.river-stop text {
  font: 900 11px var(--ui) !important;
  fill: #25445a !important;
  stroke: none !important;
}
.river-stop {
  animation: marker-reveal 0.3s ease-out;
  transform-box: fill-box;
  transform-origin: center;
}
.river-visual .river-route {
  background: none;
  border: 0;
  padding: 12px 0 0;
  gap: 5px;
  margin: 0;
  flex-wrap: wrap;
}
.river-visual .route-step {
  font-size: 9px;
  padding: 5px 7px;
  border: 1px solid #d5e0e9;
  border-radius: 7px;
  color: #526c82;
}
.river-visual .route-step + .route-step:before {
  color: #85a1b6;
}
.stage-note {
  font-size: 9px;
  color: #8598a8;
  line-height: 1.6;
  margin: 12px 0 0;
}
.inline-success {
  font: 900 12px var(--ui);
  color: #3f8770;
  margin-top: 15px;
}
/* Daily puzzle: searchable selection and a stable hint deck instead of a long page of clues. */
.daily-challenge .atlas-scene {
  min-height: 275px;
}
.daily-challenge .world-globe {
  height: 282px;
}
.daily-challenge .visual-scene {
  padding: 18px;
}
.hint-monitor {
  margin: 14px 0 10px;
  border: 1px solid #d7e2eb;
  background: white;
  border-radius: 12px;
  padding: 15px 17px;
  min-height: 113px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.hint-monitor > span {
  font: 900 8px var(--ui);
  letter-spacing: 0.14em;
  color: #7a94a8;
}
.hint-monitor strong {
  font: 900 22px/1.4 var(--ui);
  color: #244d6c;
  overflow-wrap: anywhere;
}
.hint-monitor small {
  font-size: 10px;
  color: #8194a4;
}
.hint-navigation {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}
.hint-navigation button {
  display: grid;
  justify-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #dbe4eb;
  border-radius: 9px;
  padding: 9px 3px;
  font: 800 8px var(--ui);
  color: #6c859a;
  min-height: 62px;
  white-space: nowrap;
}
.hint-navigation button > span {
  font: 900 10px var(--ui);
  color: #446b89;
}
.hint-navigation button > i {
  font: 700 7px var(--ui);
  color: #8ca2b3;
}
.hint-navigation button[aria-pressed="true"] {
  border-color: #7299b6;
  background: #eaf2f8;
  box-shadow: inset 0 0 0 1px #7299b6;
}
.hint-navigation button:disabled {
  opacity: 1;
  color: #a8b7c4;
  background: #eff3f6;
  box-shadow: none;
}
.hint-navigation button:disabled span {
  color: #adbcc8;
}
.guess-timeline {
  min-height: 70px;
  margin: 7px 0 17px;
  display: grid;
  gap: 6px;
}
.guess-timeline > p {
  font-size: 12px;
  line-height: 1.65;
  color: #8da0af;
  padding: 9px 0;
}
.guess-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  background: #f7f9fb;
  border: 1px solid #e2e8ee;
  border-radius: 9px;
  color: #56718a;
  font-size: 12px;
}
.guess-entry > span {
  font-size: 9px;
  color: #96a8b8;
}
.guess-entry b {
  font-weight: 800;
}
.guess-entry i {
  margin-left: auto;
  font-style: normal;
  color: #aa8f83;
}
.guess-entry.is-correct {
  background: #f0f8f4;
  border-color: #9bcdb7;
}
.guess-entry.is-correct i {
  color: #429777;
}
.country-search {
  display: grid;
  gap: 7px !important;
  margin: 0 !important;
}
.country-search > label {
  font: 800 11px var(--ui);
  color: #5d788e;
}
.combobox-wrap {
  position: relative;
}
.combobox-wrap input[type="search"] {
  width: 100%;
  font-size: 13px;
  min-height: 49px;
  background: #fff;
  border: 1px solid #b9cad8;
  border-radius: 11px;
  padding: 12px 14px;
  font-weight: 800;
}
.combobox-wrap input[type="search"]::placeholder {
  color: #9aaab7;
  font-weight: 700;
}
.country-search > small {
  font: 700 9px/1.5 var(--ui);
  color: #93a3b1;
  min-height: 15px;
}
.country-options {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  max-height: 235px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #c2d2df;
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 12px 25px #122a4330;
}
.country-options[hidden] {
  display: none;
}
.country-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: 6px;
  padding: 11px 10px;
  text-align: left;
  color: #365572;
  font: 800 12px var(--ui);
  min-height: 44px;
}
.country-options button small {
  font: 700 8px var(--ui);
  color: #8a9fb2;
}
.country-options button:hover,
.country-options button[aria-selected="true"] {
  background: #edf4f9;
  color: #17486c;
}
.country-search button#submit-guess {
  display: flex;
  background: #163c60;
  border-radius: 12px;
  font-size: 13px;
  min-height: 50px;
  margin-top: 9px;
}
.country-search button#submit-guess:disabled {
  background: #e8eef3;
  color: #8497a8;
  box-shadow: none;
}
.daily-message {
  font-size: 11px;
  color: #648b9b;
  line-height: 1.6;
  margin: 12px 0;
}
.result-metrics {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin: 24px 0;
}
.result-metrics span {
  display: grid;
  gap: 5px;
  font-size: 11px;
  color: #7790a6;
}
.result-metrics b {
  font: 900 25px var(--ui);
  color: #254e70;
}
@keyframes bar-reveal {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes feedback-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes flight-reveal {
  from {
    transform: translateX(-20px);
    opacity: 0.2;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes shadow-reveal {
  from {
    stroke-dashoffset: 230;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes road-travel {
  to {
    background-position: 0 82px;
  }
}
@keyframes river-flow {
  to {
    stroke-dashoffset: -56;
  }
}
@keyframes marker-reveal {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes route-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 1500px) {
  .atlas-scene .world-globe {
    height: 390px;
  }
  .map-viewport {
    height: 390px;
  }
}
@media (max-width: 1020px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(275px, 1fr);
  }
  .visual-scene {
    padding: 16px;
  }
  .answer-panel {
    padding: 19px;
  }
  .challenge-question {
    padding: 20px 23px;
  }
  .clock-route {
    grid-template-columns: 1fr 40px 1fr;
    padding: 25px 12px;
  }
  .flight-connection small {
    font-size: 7px;
  }
  .clock-route strong {
    font-size: 21px;
  }
  .elevation-compare {
    inset: 20px 23px;
    gap: 23px;
  }
  .chart-legend small {
    display: none;
  }
  .city-pair {
    padding: 17px;
    gap: 10px;
  }
  .city-dossier {
    padding: 10px;
  }
  .city-dossier h3 {
    font-size: 15px;
  }
  .hint-navigation {
    grid-template-columns: repeat(3, 1fr);
  }
  .hint-navigation button {
    min-height: 44px;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 8px;
    justify-items: start;
    gap: 3px;
    font-size: 9px;
  }
  .hint-navigation button i {
    display: none;
  }
  .shadow-measures {
    padding: 14px 11px;
    gap: 6px;
  }
  .shadow-measures b {
    font-size: 10px;
  }
}
@media (max-width: 760px) {
  [data-screen="play"] .play-heading {
    padding: 15px 15px 12px;
  }
  [data-screen="play"] .play-heading h1 {
    font-size: 20px;
  }
  [data-screen="play"] .play-layout {
    padding: 0 14px 14px;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .answer-panel {
    position: static;
    border-top: 1px solid #e0e8ef;
    padding: 18px 20px;
  }
  .answer-panel-heading {
    margin-bottom: 12px;
  }
  .answer-panel .options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .answer-panel .options button {
    min-height: 59px;
    font-size: 13px;
    padding: 11px 12px;
    gap: 9px;
  }
  .answer-panel .answer-letter {
    width: 25px;
    height: 25px;
    font-size: 10px;
    flex-shrink: 0;
  }
  .choice-state {
    font-size: 15px;
  }
  .visual-scene {
    padding: 17px;
  }
  .challenge-question {
    padding: 19px 20px;
  }
  .challenge-question h2 {
    font-size: 19px;
  }
  .world-globe {
    height: 300px;
  }
  .atlas-scene {
    min-height: 300px;
  }
  .population-chart {
    margin: 0 17px;
  }
  .age-row {
    height: 21px;
  }
  .bar-half {
    height: 15px;
  }
  .population-bar {
    height: 14px;
  }
  .chart-readout {
    margin-top: 9px;
    padding: 10px 12px;
  }
  .map-viewport {
    height: 320px;
  }
  .map-challenge .answer-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .map-challenge .answer-panel-heading {
    grid-column: 1/-1;
  }
  .location-brief {
    grid-column: 1;
    grid-row: 2/4;
  }
  .selection-readout {
    grid-column: 2;
    grid-row: 2;
    padding: 0 0 12px;
  }
  .map-challenge .confirm-location {
    grid-column: 2;
    grid-row: 3;
    margin-top: 8px;
    align-self: start;
  }
  .coordinate-details {
    grid-column: 1/-1;
  }
  .map-challenge #feedback {
    grid-column: 1/-1;
  }
  .location-brief h3 {
    font-size: 17px;
  }
  .location-brief p {
    font-size: 10px;
  }
  .mountain-panorama {
    height: 285px;
  }
  .elevation-compare {
    inset: 19px 45px;
    gap: 40px;
  }
  .altimeter-track {
    height: 107px;
  }
  .altimeter strong {
    font-size: 20px;
  }
  .clock-route {
    padding: 20px 24px;
    grid-template-columns: 1fr 70px 1fr;
  }
  .precision-clock {
    max-width: 150px;
  }
  .clock-route strong {
    font-size: 21px;
  }
  .city-kicker {
    font-size: 8px;
    margin-bottom: 10px;
  }
  .city-pair {
    padding: 18px;
    gap: 14px;
  }
  .city-skyline {
    height: 120px;
  }
  .city-dossier h3 {
    font-size: 17px;
  }
  .city-dossier {
    padding: 13px;
  }
  .road-stage {
    height: 275px;
  }
  .plate-hud {
    inset: 20px 0 auto;
    gap: 26px;
  }
  .license-plate {
    width: 255px;
    height: 94px;
  }
  .license-plate strong {
    font-size: 59px;
  }
  .plate-hud p {
    font-size: 10px;
  }
  .daily-challenge .visual-scene {
    padding: 16px;
  }
  .daily-challenge .atlas-scene {
    min-height: 255px;
  }
  .daily-challenge .world-globe {
    height: 255px;
  }
  .hint-monitor {
    min-height: 98px;
    margin-top: 12px;
  }
  .hint-monitor strong {
    font-size: 21px;
  }
  .hint-navigation {
    grid-template-columns: repeat(6, 1fr);
  }
  .hint-navigation button {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 8px 2px;
    font-size: 8px;
    min-height: 48px;
  }
  .guess-timeline {
    min-height: 0;
    margin: 0 0 15px;
  }
  .guess-timeline > p {
    padding: 0;
  }
  .country-options {
    position: relative;
    top: 5px;
    max-height: 210px;
    box-shadow: 0 5px 15px #122a4312;
  }
  .country-search > small {
    margin-top: 3px;
  }
  .chart-legend small {
    display: block;
    font-size: 8px;
  }
  [data-screen="play"] .guide-message {
    font-size: 10px;
  }
  [data-screen="play"] .guide-links {
    gap: 10px;
  }
  [data-screen="play"] .guide-links a {
    font-size: 9px;
  }
  [data-screen="play"] .guide-mascot {
    width: 40px;
    height: 42px;
  }
  [data-screen="play"] .game-footer {
    padding: 0 15px 15px;
  }
  .result-card {
    padding: 28px;
  }
}
@media (max-width: 420px) {
  [data-screen="play"] .gs-player {
    display: none;
  }
  [data-screen="play"] .gs-hud {
    margin-left: 0;
  }
  [data-screen="play"] .gs-top-right {
    margin-left: auto;
  }
  [data-screen="play"] .play-heading h1 {
    font-size: 18px;
  }
  [data-screen="play"] .game-icon {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
  [data-screen="play"] .play-heading .eyebrow {
    font-size: 8px;
  }
  [data-screen="play"] .play-layout {
    padding: 0 10px 12px;
  }
  .challenge-card {
    border-radius: 17px;
  }
  .challenge-question {
    padding: 17px 16px;
  }
  .challenge-question h2 {
    font-size: 17px;
    line-height: 1.45;
  }
  .challenge-question .task-label {
    font-size: 8px;
    margin-bottom: 7px;
  }
  .visual-scene {
    padding: 12px;
  }
  .answer-panel {
    padding: 17px 15px;
  }
  .answer-panel .options button {
    font-size: 12px;
    padding: 10px;
    gap: 7px;
    min-height: 59px;
  }
  .answer-panel .options button .answer-letter {
    width: 23px;
    height: 23px;
    font-size: 9px;
  }
  .answer-panel-heading {
    font-size: 9px;
  }
  .answer-panel-heading small {
    font-size: 9px;
  }
  .scene-toolbar {
    inset: 14px 13px auto;
  }
  .scene-toolbar .instrument-label {
    font-size: 7px;
  }
  .live-dot {
    font-size: 6px;
  }
  .scene-bottom {
    left: 13px;
    right: 13px;
    bottom: 12px;
    font-size: 8px;
    gap: 6px;
  }
  .motion-toggle {
    font-size: 7px;
    padding: 6px;
    min-height: 31px;
  }
  .world-globe {
    height: 270px;
  }
  .atlas-scene {
    min-height: 270px;
  }
  .data-instrument,
  .atlas-scene,
  .map-instrument {
    border-radius: 12px;
  }
  .instrument-heading {
    padding: 12px 13px;
    gap: 7px;
    font-size: 8px;
  }
  .instrument-label {
    font-size: 8px;
    letter-spacing: 0.09em;
  }
  .chart-legend {
    padding: 13px 13px 10px;
    gap: 12px;
    font-size: 10px;
  }
  .chart-legend small {
    display: none;
  }
  .pyramid-axis {
    padding-inline: 15px;
  }
  .population-chart {
    margin: 0 13px;
  }
  .age-row {
    height: 20px;
  }
  .age-label {
    font-size: 10px;
  }
  .population-bar {
    height: 13px;
  }
  .chart-readout {
    gap: 8px;
    font-size: 9px;
    padding: 10px;
    margin: 9px 10px 0;
    flex-wrap: wrap;
  }
  .chart-readout > span {
    font-size: 9px;
  }
  .data-details {
    padding-inline: 11px;
    font-size: 9px;
  }
  .data-details summary {
    font-size: 9px;
  }
  .map-viewport {
    height: 260px;
  }
  .map-toolbar {
    padding: 10px 12px;
  }
  .map-tools button {
    width: 32px;
    height: 30px;
  }
  .map-challenge .answer-panel {
    gap: 0 11px;
  }
  .map-coordinate {
    font-size: 8px;
  }
  .map-help {
    font-size: 7px;
  }
  .map-legend {
    font-size: 7px;
    padding: 10px 12px;
    gap: 12px;
  }
  .map-challenge .location-brief {
    padding: 12px;
  }
  .location-brief h3 {
    font-size: 15px;
  }
  .location-brief p {
    font-size: 9px;
  }
  .selection-readout > span {
    font-size: 7px;
  }
  .selection-readout b {
    font-size: 11px;
    line-height: 1.5;
  }
  .map-challenge .confirm-location {
    font-size: 11px;
    min-height: 46px;
    padding: 11px;
  }
  .mountain-panorama {
    height: 280px;
  }
  .elevation-compare {
    inset: 18px 25px;
    gap: 26px;
  }
  .altimeter {
    padding: 11px;
  }
  .altimeter-city {
    font-size: 13px;
  }
  .altimeter-track {
    height: 105px;
  }
  .altimeter strong {
    font-size: 19px;
  }
  .instrument-caption {
    font-size: 9px;
    padding: 11px 13px;
  }
  .clock-route {
    padding: 20px 13px;
    grid-template-columns: 1fr 40px 1fr;
    gap: 8px;
  }
  .precision-clock {
    max-width: 135px;
  }
  .city-kicker {
    font-size: 7px;
    letter-spacing: 0.02em;
    min-height: 11px;
  }
  .clock-route strong {
    font-size: 20px;
  }
  .clock-route small {
    font-size: 8px;
  }
  .flight-connection small {
    font-size: 7px;
  }
  .flight-connection span {
    font-size: 20px;
  }
  .shadow-measures {
    padding: 13px 11px;
  }
  .shadow-measures span {
    font-size: 6px;
    letter-spacing: 0;
  }
  .shadow-measures b {
    font-size: 9px;
    max-width: 130px;
  }
  .city-pair {
    padding: 15px;
    gap: 10px;
  }
  .city-dossier {
    padding: 10px;
  }
  .city-index {
    font-size: 6px;
    letter-spacing: 0.05em;
  }
  .city-dossier h3 {
    font-size: 15px;
  }
  .city-skyline {
    height: 115px;
    margin-block: 12px;
  }
  .city-role {
    font-size: 8px;
  }
  .daily-challenge .visual-scene {
    padding: 12px;
  }
  .daily-challenge .atlas-scene {
    min-height: 230px;
  }
  .daily-challenge .world-globe {
    height: 230px;
  }
  .daily-challenge .scene-bottom > span {
    max-width: 150px;
    line-height: 1.5;
  }
  .hint-monitor {
    padding: 13px 15px;
    min-height: 99px;
    margin-top: 10px;
  }
  .hint-monitor strong {
    font-size: 20px;
  }
  .hint-monitor > span {
    font-size: 7px;
  }
  .hint-monitor small {
    font-size: 9px;
  }
  .hint-navigation {
    gap: 4px;
  }
  .hint-navigation button {
    font-size: 7px;
    min-height: 46px;
    padding: 7px 1px;
  }
  .hint-navigation button > span {
    font-size: 9px;
  }
  .country-options button {
    font-size: 12px;
  }
  .country-options button small {
    font-size: 9px;
  }
  .country-search button#submit-guess {
    font-size: 12px;
  }
  .feedback {
    padding: 14px;
    font-size: 11px;
  }
  .feedback b {
    font-size: 16px;
  }
  .feedback p {
    font-size: 11px;
  }
  .continue-button {
    font-size: 12px;
  }
  .guide-links {
    flex-shrink: 0;
  }
  [data-screen="play"] .guide-message {
    font-size: 9px;
  }
  [data-screen="play"] .guide-links a {
    font-size: 8px;
  }
  [data-screen="play"] .guide-links a:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .population-bar,
  .projected-shadow,
  .river-trace polyline,
  .road-lane,
  .river-stop,
  .distance-line,
  .feedback,
  .flight-connection span {
    animation: none !important;
    transition: none !important;
  }
  .altimeter-track span {
    transition: none !important;
  }
  .options button,
  .city-dossier {
    transition: none !important;
  }
}
.event-readout {
  background: white;
  border: 1px solid #d7e3eb;
  padding: 17px;
  border-radius: 13px;
  margin-top: 13px;
}
.event-readout > .instrument-label {
  font-size: 8px;
}
.event-readout h3 {
  font: 900 16px/1.5 var(--ui);
  margin: 9px 0 14px;
  color: #2d4b64;
}
.event-readout dl {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 15px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #e6edf2;
}
.event-readout dt {
  font: 800 7px var(--ui);
  letter-spacing: 0.07em;
  color: #8ca1b2;
}
.event-readout dd {
  font: 900 12px var(--ui);
  margin: 7px 0 0;
  color: #42677e;
}
.event-stage .atlas-scene {
  min-height: 285px;
}
.event-stage .world-globe {
  height: 285px;
}
@media (max-width: 420px) {
  .event-stage .atlas-scene {
    min-height: 245px;
  }
  .event-stage .world-globe {
    height: 245px;
  }
  .event-readout {
    padding: 13px;
  }
  .event-readout h3 {
    font-size: 14px;
  }
  .event-readout dl {
    gap: 9px;
  }
  .event-readout dd {
    font-size: 10px;
  }
  .event-readout dt {
    font-size: 6px;
  }
}

/* Keep information labels legible on handheld displays. */
.age-label {
  font-size: 11px;
}
.chart-readout,
.chart-readout > span {
  font-size: 11px;
}
.stage-note {
  font-size: 10px;
}
.instrument-caption {
  font-size: 11px;
}
.pyramid-axis {
  font-size: 9px;
}
.shadow-lab text {
  font-size: 17px;
}
.hint-navigation button {
  font-size: 9px;
}
.hint-navigation button > span {
  font-size: 10px;
}
@media (max-width: 420px) {
  .age-label {
    font-size: 11px;
  }
  .chart-readout,
  .chart-readout > span {
    font-size: 10px;
  }
  .instrument-caption,
  .stage-note {
    font-size: 10px;
  }
  .hint-navigation button {
    font-size: 8px;
  }
  .hint-navigation button > span {
    font-size: 10px;
  }
  .shadow-lab text {
    font-size: 18px;
  }
  .event-readout dt {
    font-size: 8px;
  }
  .event-readout dd {
    font-size: 11px;
  }
  .selection-readout > span {
    font-size: 8px;
  }
  .location-brief p {
    font-size: 10px;
  }
  .map-legend {
    font-size: 8px;
  }
  .scene-bottom {
    font-size: 9px;
  }
  .map-help {
    font-size: 8px;
  }
}
@media (max-width: 760px) {
  [data-screen="play"] .gs-icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .map-tools button {
    width: 40px;
    height: 40px;
  }
  .motion-toggle {
    min-height: 36px;
  }
  .coordinate-details summary,
  .data-details summary {
    padding-block: 8px;
  }
  .country-options button {
    min-height: 46px;
  }
}
