@font-face {
  font-family: Garamond;
  src: url("assets/eb-garamond.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #081422;
  --text: #e5eeef;
  --muted: #9aaebb;
  --accent: #c5e6dd;
  --line: rgba(193, 224, 229, 0.17);
  font-family: Manrope, Arial, sans-serif;
  color: var(--text);
  background: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button {
  color: inherit;
}
a {
  color: inherit;
}
button,
input {
  min-height: 44px;
}
button {
  touch-action: manipulation;
}
button svg {
  pointer-events: none;
}
button:disabled {
  opacity: 0.45;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.game {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  height: 100svh;
  overflow: clip;
  background: #081422;
  touch-action: pinch-zoom;
}
.sky-background,
.sky-haze {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sky-background {
  background:
    radial-gradient(ellipse at 70% 90%, #25454c 0, transparent 52%),
    radial-gradient(ellipse at 15% 45%, #102738 0, transparent 60%),
    linear-gradient(#07101e, #122d3e);
  transition: opacity 2s;
}
.sky-background:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 58% 50%,
    #b69b76 0,
    #627481 32%,
    #263d54 75%
  );
  opacity: 0;
  transition: opacity 2s;
}
.game[data-atmosphere="dawn"] .sky-background:after {
  opacity: 1;
}
.sky-haze {
  background: radial-gradient(
    ellipse at 38% 40%,
    rgba(73, 119, 126, 0.11),
    transparent 48%
  );
  animation: haze-breathe 16s ease-in-out infinite alternate;
}
.masthead {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}
.wordmark {
  display: flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 5px;
  font-weight: 500;
}
.wordmark svg {
  width: 27px;
  height: 27px;
  stroke: #c1dcd9;
  stroke-width: 0.8;
  fill: none;
}
.audio-controls {
  display: flex;
  gap: 18px;
  align-items: center;
}
.sound-button {
  display: flex;
  gap: 11px;
  align-items: center;
  border: 0;
  background: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 5px;
}
.equalizer {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  width: 21px;
}
.equalizer i {
  display: block;
  width: 2px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.sound-button[aria-pressed="true"] .equalizer i {
  animation: equalize 1.1s ease-in-out infinite alternate;
}
.equalizer i:nth-child(2) {
  animation-delay: -0.7s !important;
}
.equalizer i:nth-child(3) {
  animation-delay: -0.2s !important;
}
.equalizer i:nth-child(4) {
  animation-delay: -0.9s !important;
}
.volume-control {
  display: flex;
  align-items: center;
}
.volume-control input {
  width: 64px;
  min-height: 24px;
  accent-color: #b7d8d4;
  cursor: pointer;
}
.chapter {
  position: absolute;
  left: 46px;
  top: 116px;
  z-index: 1;
  pointer-events: none;
  max-width: 380px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.7;
  font-weight: 500;
  color: #a1babd;
  margin: 0 0 13px;
}
.chapter .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.small-rule {
  display: inline-block;
  width: 25px;
  height: 1px;
  background: var(--line);
}
.chapter h1 {
  font-family: Garamond, Georgia, serif;
  font-weight: 400;
  font-size: 29px;
  margin: 0;
  letter-spacing: -0.025em;
}
.game[data-phase="intro"] .chapter,
.game[data-phase="complete"] .chapter {
  opacity: 0;
}
.chapter {
  transition: opacity 0.8s;
}
.sky-viewport {
  position: absolute;
  top: var(--sky-top, 64px);
  height: var(--sky-height, calc(66% - 64px));
  left: 0;
  right: 0;
  z-index: 2;
  overflow: clip;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 3%,
    #000 97%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 3%,
    #000 97%,
    transparent
  );
}
.sky-world {
  position: absolute;
  width: max(780px, 124%);
  height: max(420px, 124%);
  left: 0;
  top: 0;
  transform: translate(var(--camera-x, 0px), var(--camera-y, 0px));
  transition: transform 240ms ease-out;
  will-change: transform;
}
.constellations {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.constellations polyline {
  fill: none;
  stroke: #b2d0d2;
  stroke-width: 0.65;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  opacity: 0;
  animation: constellation 19s ease-in-out infinite;
  animation-delay: var(--delay);
}
.celestial {
  position: absolute;
  left: calc(var(--x) * 100%);
  top: calc(var(--y) * 100%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.star {
  width: var(--size);
  height: var(--size);
  z-index: 2;
}
.star-core {
  width: 100%;
  height: 100%;
  background: #e3f5f5;
  border-radius: 50%;
  box-shadow:
    0 0 5px 1px #c3e4ed7a,
    0 0 18px 3px #b4dee333;
  opacity: var(--brightness);
  animation: twinkle var(--duration) ease-in-out infinite alternate;
  animation-delay: var(--delay);
}
.star:nth-child(4n) .star-core:before,
.star:nth-child(4n) .star-core:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: calc(var(--size) * 2.5);
  background: linear-gradient(transparent, #dff3f2, transparent);
  transform: translate(-50%, -50%);
}
.star:nth-child(4n) .star-core:after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.game[data-atmosphere="moonlit"] .star-core {
  filter: brightness(0.73);
}
.sprite {
  width: var(--size);
  height: var(--size);
  background-image: url("assets/celestial.png");
  background-size: 300% 200%;
  background-position: var(--sprite-x) var(--sprite-y);
}
.moon-haze {
  position: absolute;
  width: 440px;
  height: 330px;
  left: 63%;
  top: 28%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse,
    rgba(218, 230, 200, 0.18),
    rgba(175, 207, 204, 0.04) 53%,
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s;
}
.game[data-atmosphere="moonlit"] .moon-haze {
  opacity: 1;
}
.car {
  width: 126px;
  filter: drop-shadow(0 0 12px #add8db40);
  text-align: center;
}
.car img {
  width: 126px;
  height: 73px;
  object-fit: cover;
  clip-path: polygon(
    0 47%,
    8% 37%,
    23% 28%,
    33% 12%,
    62% 12%,
    77% 30%,
    94% 39%,
    100% 59%,
    96% 83%,
    85% 86%,
    79% 98%,
    68% 97%,
    64% 85%,
    31% 85%,
    26% 98%,
    14% 98%,
    10% 84%,
    1% 80%
  );
  filter: saturate(0.6) brightness(0.86);
}
.car-label {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b3c7cf;
}
.model-card {
  width: 120px;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(140deg, #a9e4de15, #9cadf809);
  border: 1px solid #b9e2dd4d;
  border-radius: 11px;
  box-shadow:
    0 0 25px #a9e4de10,
    inset 0 0 12px #cde7e407;
  color: #e4f5ef;
}
.model-symbol {
  font-family: Garamond, Georgia, serif;
  font-size: 24px;
  line-height: 1;
  color: #c3e5d9;
}
.model-card strong {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.model-card small {
  font-size: 9px;
  color: #a5bebb;
  letter-spacing: 0.05em;
}
.ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.airplane {
  position: absolute;
  width: 17px;
  height: 9px;
  left: -6%;
  top: 20%;
  animation: flyover 29s linear forwards;
}
.airplane i {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fbfbf0;
  border-radius: 50%;
  animation: blink 1.8s steps(1) infinite;
}
.airplane i:nth-child(2) {
  left: 10px;
  top: 5px;
  background: #f0a094;
  animation-delay: 0.2s;
}
.airplane i:nth-child(3) {
  left: 16px;
  top: 1px;
  background: #99d6ba;
  animation-delay: 0.3s;
}
.meteor {
  position: absolute;
  width: 100px;
  height: 1px;
  top: var(--top);
  left: var(--left);
  background: linear-gradient(90deg, transparent, #c9e5dd);
  opacity: 0;
  transform: rotate(30deg);
  animation: meteor 1.9s ease-out forwards;
  animation-delay: var(--delay);
}
.ufo {
  position: absolute;
  left: -140px;
  top: 22%;
  width: 110px;
  height: 110px;
  --size: 110px;
  --sprite-x: 100%;
  --sprite-y: 100%;
  animation: ufo-pass 23s ease-in-out forwards;
}
.hill {
  position: absolute;
  top: var(--hill-top);
  left: var(--hill-left);
  width: var(--hill-width);
  height: auto;
  pointer-events: none;
  z-index: 3;
  user-select: none;
}
.ground-shade {
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(
    transparent,
    rgba(5, 15, 24, 0.13) 40%,
    #07131eee 100%
  );
  pointer-events: none;
  z-index: 3;
}
.play-panel {
  position: absolute;
  bottom: 115px;
  right: 12%;
  width: 440px;
  z-index: 4;
  text-align: center;
}
.play-panel h2 {
  font-family: Garamond, Georgia, serif;
  font-size: 39px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.intro h2 {
  font-size: 54px;
  line-height: 1.12;
}
.intro-copy {
  font-size: 15px;
  line-height: 1.8;
  color: #b5c5cb;
  margin: 20px 0 26px;
}
.small-note {
  font-size: 12px;
  color: #91a7ae;
  margin: 18px 0 0;
  letter-spacing: 0.015em;
}
.level-note {
  font-size: 13px;
  line-height: 1.7;
  color: #a5bbc2;
  margin: 0 0 22px;
}
.primary-button {
  border: 1px solid #c5e6dd;
  background: #c5e6dd;
  color: #102c34;
  border-radius: 6px;
  padding: 0 23px;
  min-height: 48px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.primary-button:hover:not(:disabled) {
  background: #dbf0e9;
  box-shadow: 0 0 30px #b8e2da1f;
  transform: translateY(-1px);
}
.primary-button span {
  font-size: 21px;
  font-weight: 400;
}
.primary-button:disabled {
  opacity: 0.65;
}
.feedback {
  font-size: 13px;
  line-height: 1.7;
  min-height: 23px;
  margin: 15px 0 0;
  color: #c5e6dd;
}
.feedback[data-result="correct"] {
  color: #d8eedd;
}
.navigation {
  position: absolute;
  left: 45px;
  bottom: 110px;
  z-index: 4;
  display: flex;
  gap: 17px;
  align-items: center;
}
.direction-pad {
  display: grid;
  grid-template-columns: 32px 32px 32px;
  grid-template-rows: 30px 30px 30px;
  gap: 3px;
}
.direction-pad button {
  font-size: 18px;
  font-family: Arial, sans-serif;
  min-height: 30px;
  padding: 0;
  border: 1px solid #acc5d328;
  border-radius: 5px;
  background: #0a1b29a8;
  transition:
    background 0.2s,
    color 0.2s;
  touch-action: none;
  user-select: none;
}
.direction-pad button:hover,
.direction-pad button.is-held {
  background: #294754;
  color: #e5f5ef;
}
.direction-pad button:disabled {
  opacity: 0.22;
}
.direction-pad [data-direction="up"] {
  grid-column: 2;
}
.direction-pad [data-direction="left"] {
  grid-column: 1;
  grid-row: 2;
}
.direction-pad [data-direction="right"] {
  grid-column: 3;
  grid-row: 2;
}
.direction-pad [data-direction="down"] {
  grid-column: 2;
  grid-row: 3;
}
.compass-center {
  grid-column: 2;
  grid-row: 2;
  text-align: center;
  line-height: 30px;
  color: #668b98;
}
.navigation-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #96acb5;
}
.navigation-copy > span:first-child {
  color: #d3e2e2;
  font-size: 13px;
}
.camera-map {
  width: 54px;
  height: 16px;
  border: 1px solid #7694a342;
  border-radius: 3px;
  position: relative;
  margin-top: 2px;
}
.camera-map span {
  position: absolute;
  width: 16px;
  height: 7px;
  top: calc(var(--map-y, 0.5) * 7px + 3px);
  left: calc(var(--map-x, 0.5) * 34px + 1px);
  background: #b4d9d059;
  border-radius: 1px;
  transition:
    top 0.24s,
    left 0.24s;
}
.footer {
  position: absolute;
  bottom: 25px;
  left: 45px;
  right: 45px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid #90b9c015;
  padding-top: 15px;
  font-size: 11px;
  color: #8ca4ae;
}
.progress {
  display: flex;
  gap: 16px;
  align-items: center;
  letter-spacing: 0.12em;
}
.progress #progress-dots {
  display: flex;
  gap: 6px;
}
.progress i {
  width: 16px;
  height: 2px;
  background: #526d7c;
}
.progress i.current {
  background: #c6e1d9;
}
.progress i.done {
  background: #86aaa9;
}
.game[data-phase="intro"] .sky-viewport {
  opacity: 0.85;
}
.game[data-phase="intro"] .navigation {
  opacity: 0.65;
}
.game[data-phase="complete"] .sky-viewport {
  opacity: 0.6;
}
.play-panel > div:not([hidden]) {
  animation: appear 0.8s ease-out both;
}
.game.page-hidden * {
  animation-play-state: paused !important;
}
.celestial {
  pointer-events: auto;
  cursor: pointer;
  border: 0;
  background-color: transparent;
  padding: 0;
  min-height: 0;
  color: inherit;
  transition:
    opacity 0.7s,
    filter 0.7s;
}
.star {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.star-core {
  display: block;
  position: relative;
  width: var(--size);
  height: var(--size);
}
.celestial:after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid #bdded059;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.7s;
  pointer-events: none;
}
.celestial:hover:not(.counted):after,
.celestial:focus-visible:after {
  opacity: 0.65;
}
.celestial.counted {
  opacity: 0.34;
  cursor: default;
}
.celestial.counted:after {
  opacity: 0.8;
}
.celestial.counted .star-core {
  animation: none;
  opacity: 1;
}
.model-card.counted:after,
.car.counted:after {
  border-radius: 14px;
}
.count-display {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin: 15px auto 0;
}
.count-number {
  font-family: Garamond, Georgia, serif;
  font-size: 56px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 50px;
  color: #d5ece6;
}
.count-caption {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 7px;
  font-size: 13px;
  color: #c1d6d6;
}
.count-caption > span:last-child {
  font-size: 11px;
  color: #819da8;
}
.just-counted {
  animation: count-pop 0.5s ease-out;
}
.not-a-target {
  animation: not-a-target 0.7s ease-out;
}
.ufo {
  pointer-events: auto;
  padding: 0;
  border: 0;
  background-color: transparent;
}
.game[data-phase="intro"] .celestial,
.game[data-phase="complete"] .celestial {
  pointer-events: none;
}
@keyframes count-pop {
  0% {
    transform: translateY(4px);
    opacity: 0.35;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes not-a-target {
  50% {
    filter: brightness(1.35);
  }
}
@keyframes twinkle {
  from {
    opacity: var(--brightness);
    transform: scale(1);
  }
  to {
    opacity: calc(var(--brightness) * 0.65);
    transform: scale(0.87);
  }
}
@keyframes constellation {
  0%,
  55%,
  90%,
  100% {
    opacity: 0;
  }
  66%,
  78% {
    opacity: 0.3;
  }
}
@keyframes haze-breathe {
  to {
    opacity: 0.35;
    transform: scale(1.06);
  }
}
@keyframes equalize {
  to {
    height: 16px;
  }
}
@keyframes flyover {
  to {
    left: 106%;
    top: 44%;
  }
}
@keyframes blink {
  0%,
  12% {
    opacity: 1;
  }
  13%,
  100% {
    opacity: 0.15;
  }
}
@keyframes meteor {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(30deg);
  }
  15% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translate(240px, 140px) rotate(30deg);
  }
}
@keyframes ufo-pass {
  0% {
    left: -140px;
    transform: translateY(0);
  }
  40% {
    transform: translateY(-25px);
  }
  60% {
    transform: translateY(6px);
  }
  100% {
    left: 110%;
    transform: translateY(-30px);
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1600px) {
  .play-panel {
    right: 16%;
    bottom: 13%;
  }
}
@media (max-width: 1000px) {
  .play-panel {
    right: 5%;
    width: 420px;
  }
  .navigation {
    left: 30px;
  }
  .navigation-copy {
    display: none;
  }
  .masthead {
    padding: 10px 30px;
  }
  .chapter {
    left: 30px;
  }
  .footer {
    left: 30px;
    right: 30px;
  }
}
@media (max-width: 650px) {
  .game {
    height: 100svh;
    min-height: 720px;
  }
  .masthead {
    padding: 10px 22px;
  }
  .wordmark {
    font-size: 12px;
    letter-spacing: 4px;
    gap: 10px;
  }
  .wordmark svg {
    width: 23px;
    height: 23px;
  }
  .audio-controls {
    gap: 6px;
  }
  .sound-button {
    font-size: 10px;
    gap: 7px;
  }
  .volume-control input {
    width: 47px;
  }
  .chapter {
    top: 87px;
    left: 24px;
    max-width: calc(100% - 48px);
  }
  .chapter h1 {
    font-size: 25px;
  }
  .chapter .eyebrow {
    font-size: 9px;
    margin-bottom: 7px;
    gap: 9px;
  }
  .ground-shade {
    inset: 55% 0 0;
    background: linear-gradient(transparent, #081622ee 68%, #07131e);
  }
  .play-panel {
    bottom: 96px;
    left: 20px;
    right: 20px;
    width: auto;
  }
  .play-panel h2 {
    font-size: 32px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .intro h2 {
    font-size: 44px;
  }
  .intro-copy {
    font-size: 14px;
    margin: 15px 0 20px;
  }
  .intro .eyebrow {
    font-size: 10px;
  }
  .small-note {
    font-size: 11px;
    margin-top: 13px;
  }
  .level-note {
    font-size: 12px;
    margin-bottom: 17px;
  }
  .primary-button {
    min-height: 46px;
    font-size: 12px;
    padding: 0 18px;
    gap: 18px;
  }
  .feedback {
    font-size: 12px;
    min-height: 21px;
    margin-top: 12px;
  }
  .navigation {
    left: 22px;
    bottom: 310px;
  }
  .direction-pad {
    grid-template-columns: 30px 30px 30px;
    grid-template-rows: 27px 27px 27px;
    gap: 3px;
  }
  .direction-pad button {
    min-height: 27px;
    font-size: 16px;
  }
  .compass-center {
    line-height: 27px;
  }
  .game[data-phase="intro"] .navigation {
    bottom: 364px;
  }
  .footer {
    bottom: 16px;
    left: 22px;
    right: 22px;
    padding-top: 12px;
    gap: 10px;
  }
  .progress {
    font-size: 10px;
    gap: 9px;
  }
  .progress i {
    width: 10px;
  }
  .progress #progress-dots {
    gap: 4px;
  }
  .model-card {
    width: 114px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .game[data-phase="complete"] .navigation {
    display: none;
  }
}
@media (max-height: 700px) and (min-width: 651px) {
  .game {
    min-height: 650px;
  }
  .chapter {
    top: 86px;
  }
  .play-panel {
    bottom: 88px;
  }
  .intro h2 {
    font-size: 44px;
  }
  .navigation {
    bottom: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .constellations polyline {
    opacity: 0.13;
  }
  .ambient {
    display: none;
  }
  .star-core {
    opacity: var(--brightness);
  }
  .sound-button[aria-pressed="true"] .equalizer i {
    height: 10px;
  }
}
@media (max-width: 650px) {
  .hill {
    mask-image: linear-gradient(#000 72%, transparent);
    -webkit-mask-image: linear-gradient(#000 72%, transparent);
  }
  .navigation,
  .game[data-phase="intro"] .navigation {
    bottom: 320px;
  }
  .intro h2 {
    font-size: 40px;
  }
  .play-panel {
    bottom: 88px;
  }
  .direction-pad {
    grid-template-columns: 36px 36px 36px;
    grid-template-rows: 34px 34px 34px;
  }
  .direction-pad button {
    min-height: 34px;
  }
}
.hill {
  translate: var(--near-x, 0px) var(--near-y, 0px);
  scale: 1.05;
  transform-origin: 50% 0;
  transition: translate 0.45s ease-out;
}
.sky-background {
  translate: var(--far-x, 0px) var(--far-y, 0px);
  scale: 1.06;
  transition: translate 0.6s ease-out;
}
.car img {
  width: 126px;
  height: 66px;
  object-fit: contain;
  clip-path: none;
}
@media (prefers-reduced-motion: reduce) {
  .hill,
  .sky-background {
    translate: 0 0;
    transition: none;
  }
}
.sky-viewport {
  touch-action: pinch-zoom;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.is-dragging,
.is-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}
.is-dragging .sky-world {
  transition-duration: 40ms;
}
.model-card strong {
  font-size: 14px;
}
.model-card {
  border: 1px solid #b9e2dd4d;
}
.feedback {
  min-height: 44px;
}
@media (max-width: 650px) {
  .game {
    min-height: 620px;
  }
  .navigation {
    display: none;
  }
  .game:is([data-phase="intro"], [data-phase="complete"]) .sky-viewport {
    mask-image: linear-gradient(#000 10%, transparent 80%);
    -webkit-mask-image: linear-gradient(#000 10%, transparent 80%);
  }
  .game:is([data-phase="playing"], [data-phase="solved"]) .play-panel {
    top: calc(var(--sky-top) + var(--sky-height) + 12px);
    bottom: auto;
    left: auto;
    right: 20px;
    width: 64%;
    max-width: 300px;
    text-align: left;
    pointer-events: none;
    text-shadow: 0 2px 16px #06141c;
  }
  #playing .eyebrow,
  #playing .count-caption > span:last-child {
    display: none;
  }
  #playing h2 {
    margin: 0 0 8px;
    font-size: clamp(23px, 6.2vw, 29px);
    line-height: 1.08;
  }
  #playing .level-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
  }
  #playing .count-display {
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
  }
  #playing .count-number {
    min-width: 26px;
    font-size: 40px;
  }
  #playing .count-caption {
    font-size: 11px;
  }
  #playing .feedback {
    min-height: 32px;
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.45;
  }
}
@media (hover: none) and (pointer: coarse) {
  .navigation {
    display: none;
  }
}
