@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-600.ttf") format("truetype");
  font-weight: 600 800;
  font-display: swap;
}
:root {
  --ink: #193e4a;
  --muted: #56767c;
  --paper: #fffdf5;
  --coral: #ca6149;
  --line: #24495524;
  --heading: "Bricolage Grotesque", sans-serif;
  --text: "DM Sans", sans-serif;
  --altitude-ratio: 0;
  --sky-shift: 0px;
  --high-opacity: 0;
  --landscape-opacity: 1;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  height: var(--screen-height, 100dvh);
  overflow: hidden;
  background: #a4d0de;
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  border: 0;
  color: inherit;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #b8523a;
  outline-offset: 5px;
}
h1,
h2,
p {
  margin: 0;
}
.sky-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.sky-color {
  position: absolute;
  inset: 0;
  background: linear-gradient(#7ebbd0, #b7dcd9 75%, #e8eacb);
}
.sky-landscape {
  position: absolute;
  inset: -10% -3% -6%;
  background: url("/art/dawn-sky.webp") center 54% / cover no-repeat;
  transform: translateY(var(--sky-shift));
  opacity: var(--landscape-opacity);
  will-change: transform, opacity;
}
.high-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(#5897be, #88c3d3 70%, #c7e4dc);
  opacity: var(--high-opacity);
}
.sun-haze {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 20%, #fff1d02a, transparent 65%);
}
#cloud-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.balloon {
  position: fixed;
  z-index: 1;
  left: 50%;
  top: 43%;
  width: 115px;
  padding: 0;
  background: none;
  border-radius: 45%;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform: translate(calc(-50% + var(--pilot-x, 0px)), var(--pilot-y, 0px))
    rotate(var(--pilot-bank, 0deg));
  transition:
    left 1s,
    top 1s,
    width 1s;
  filter: drop-shadow(0 12px 25px #5d7d7a1c);
  will-change: transform;
}
.balloon-float {
  display: block;
  position: relative;
  animation: balloon-sway 7s ease-in-out infinite;
  transform-origin: center 15%;
}
.balloon img {
  display: block;
  width: 100%;
  height: auto;
}
.burner-glow {
  position: absolute;
  width: 16%;
  height: 9%;
  left: 43%;
  top: 64%;
  background: #ffdc90;
  border-radius: 50%;
  filter: blur(8px);
  mix-blend-mode: screen;
  opacity: 0.12;
  transition: opacity 0.3s;
}
.is-climbing .burner-glow,
body[data-view="launch"] .burner-glow {
  opacity: 1;
}
.is-climbing .balloon-float {
  animation: balloon-lift 2.8s cubic-bezier(0.15, 0.65, 0.3, 1) both;
}
body[data-view="play"] .balloon,
body[data-view="reveal"] .balloon,
body[data-view="launch"] .balloon {
  left: 24%;
  top: 40%;
  width: 84px;
}
body[data-view="result"] .balloon {
  left: 86%;
  top: 20%;
  width: 105px;
  opacity: 0.6;
}
.wind-streaks {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.is-climbing .wind-streaks {
  opacity: 0.6;
}
.wind-streaks i {
  position: absolute;
  width: 1px;
  height: 70px;
  background: linear-gradient(transparent, #fff9, transparent);
  left: 18%;
  top: -100px;
  animation: wind-fall 0.9s linear infinite;
}
.wind-streaks i:nth-child(2) {
  left: 31%;
  animation-delay: -0.4s;
  height: 110px;
}
.wind-streaks i:nth-child(3) {
  left: 74%;
  animation-delay: -0.7s;
  height: 35px;
}
.wind-streaks i:nth-child(4) {
  left: 85%;
  animation-delay: -0.2s;
}
@keyframes balloon-sway {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}
@keyframes balloon-lift {
  0% {
    transform: translateY(12px) rotate(-4deg);
  }
  45% {
    transform: translateY(calc(-1 * var(--lift-distance, 65px))) rotate(3deg);
  }
  100% {
    transform: translateY(0) rotate(-2deg);
  }
}
@keyframes wind-fall {
  to {
    transform: translateY(120vh);
  }
}
.site-header {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  height: 71px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 4%;
}
.brand {
  font-family: var(--heading);
  font-size: 30px;
  letter-spacing: -1.8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand > span {
  color: var(--coral);
  font-size: 21px;
  transform: rotate(-9deg);
}
.site-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 25px;
}
.site-header button {
  font-size: 11px;
  padding: 9px 0;
  background: transparent;
}
.site-header button:hover {
  color: #b7523f;
}
#stats {
  font-size: 20px;
}
.sound-button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 20px !important;
}
#sound-state {
  font-size: 8px;
}
.flight-hud {
  position: fixed;
  top: 82px;
  left: 23%;
  right: 23%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 3;
  pointer-events: none;
}
.altitude-readout > span,
.best-readout > span {
  display: block;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1.7px;
}
.altitude-readout > strong,
.best-readout > strong {
  display: block;
  font-family: var(--heading);
  font-weight: 800;
  font-size: 31px;
  letter-spacing: -1.1px;
  margin-top: 6px;
}
.flight-hud small {
  font-family: var(--text);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}
.best-readout {
  text-align: right;
  color: #577b7f;
}
.best-readout strong {
  font-size: 24px;
}
.flight-status {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding-top: 3px;
  white-space: nowrap;
}
.round-progress {
  display: flex;
  gap: 5px;
  justify-content: center;
}
.round-progress span {
  display: block;
  width: 12px;
  height: 15px;
  border: 1px solid #365f6b5e;
  background: #e8f0db55;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 #fff5;
}
.round-progress .active {
  border-color: #c56649;
  background: #e7a97a;
}
.round-progress .complete {
  border-color: #4f888a;
  background: #a9c7af;
}
.round-progress [data-tier="4"] {
  background: #d98563;
  border-color: #bf6249;
}
.round-progress [data-tier="3"] {
  background: #76a9aa;
}
.round-progress [data-tier="0"].complete {
  background: #b8c9c5;
}
#question-number {
  display: block;
  font-size: 7px;
  letter-spacing: 1px;
  margin-top: 9px;
  color: #597e80;
}
.altimeter {
  position: fixed;
  top: 21%;
  right: 10%;
  width: 40px;
  height: 55%;
  z-index: 2;
  pointer-events: none;
}
.altimeter-title {
  font-size: 6px;
  letter-spacing: 1.2px;
  color: #537a80;
}
.altimeter-track {
  position: relative;
  height: 100%;
  width: 20px;
  margin-top: 15px;
  border-left: 1px solid #24495540;
  background: repeating-linear-gradient(
      to bottom,
      #24495550 0 1px,
      transparent 1px 12px
    )
    0 0 / 6px 100% no-repeat;
}
#altitude-fill {
  position: absolute;
  left: -2px;
  bottom: 0;
  width: 3px;
  height: calc(var(--altitude-ratio) * 100%);
  background: var(--coral);
}
#altitude-pointer {
  position: absolute;
  left: -6px;
  bottom: calc(var(--altitude-ratio) * 100% - 4px);
  width: 9px;
  height: 9px;
  background: var(--coral);
  border: 2px solid #fff9e9;
  border-radius: 50%;
}
.tick {
  position: absolute;
  left: 13px;
  font-size: 7px;
  white-space: nowrap;
  color: #527980;
}
.tick-top {
  top: -4px;
}
.tick-mid {
  top: 49%;
}
.tick-bottom {
  bottom: -4px;
}
#sky-zone {
  display: block;
  font-size: 5px;
  line-height: 1.7;
  letter-spacing: 0.8px;
  margin-top: 15px;
  color: #527980;
  width: 70px;
}
.checkpoint {
  position: fixed;
  left: 4%;
  bottom: 27%;
  max-width: 180px;
  padding-left: 13px;
  border-left: 2px solid #d57450;
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 1px;
  color: #2b6972;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s,
    transform 0.5s;
  pointer-events: none;
}
.checkpoint.visible {
  opacity: 1;
  transform: translateY(0);
}
.home-screen,
.play-screen,
.reveal-screen,
.launch-screen {
  height: var(--screen-height, 100dvh);
  position: relative;
}
.home-heading {
  position: absolute;
  top: 21%;
  left: 0;
  right: 0;
  text-align: center;
}
.daily-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #52777e;
}
.home-heading h1 {
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(90px, 9vw, 127px);
  line-height: 1.15;
  letter-spacing: -8px;
  margin-top: 10px;
}
.home-heading h1 > span {
  color: var(--coral);
}
.home-heading p {
  font-size: 13px;
  margin-top: 14px;
  color: #466f79;
}
.home-dock {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 90%);
  text-align: center;
}
.home-rule {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 23px;
}
.home-rule span {
  font-size: 10px;
  color: #5c7c7e;
}
.primary {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 34px;
  padding: 0 15px 0 29px;
  background: #1b4350;
  color: #fffdf2;
  min-width: 240px;
  height: 59px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 18px #23495518;
}
.primary:hover {
  background: #2e5d66;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px #23495525;
}
.primary:active {
  transform: translateY(0);
}
.button-arrow {
  background: #ffffff16;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 400;
}
.practice-link {
  display: block;
  margin: 16px auto 0;
  font-size: 10px;
  color: #3e6972;
  background: transparent;
  padding: 4px 10px;
}
.practice-link span {
  margin-left: 7px;
}
.home-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 8px;
  color: #608383;
  margin-top: 27px;
}
.home-links button {
  font-size: 8px;
  padding: 0;
  background: none;
  color: inherit;
}
.control-dock {
  position: absolute;
  bottom: 31px;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, calc(100% - 60px));
  z-index: 4;
}
.control-dock::before {
  content: "";
  pointer-events: none;
  position: fixed;
  top: -70px;
  left: -100vw;
  right: -100vw;
  bottom: -50px;
  background: linear-gradient(transparent, #cce2d633 50%, #e2e9d555);
  z-index: -1;
}
.question-content {
  position: absolute;
  top: 23%;
  left: 50%;
  transform: translateX(-50%);
  width: min(590px, 65%);
  text-align: center;
}
.question-meta {
  display: flex;
  justify-content: center;
  gap: 17px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #63848a;
}
#category {
  color: #ad533f;
}
.question-content h1 {
  font-family: var(--heading);
  font-size: 37px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -1.1px;
  text-wrap: pretty;
  margin-top: 22px;
  text-shadow: 0 1px 14px #e8f2dd80;
}
.question-hint {
  font-size: 11px;
  margin-top: 18px;
  color: #61848b;
}
.timer-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 8px 15px;
}
.timer {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 23px;
  font-family: var(--heading);
  font-weight: 800;
}
.timer small {
  font-family: var(--text);
  font-size: 9px;
  font-weight: 400;
  color: #648389;
}
.timer.urgent {
  color: #c95840;
}
.timer-track {
  height: 3px;
  border-radius: 3px;
  background: #4c78862b;
  flex: 1;
  overflow: hidden;
}
#time-fill {
  height: 100%;
  background: #cf7052;
  transform-origin: left;
  transition: transform 0.15s linear;
}
.back {
  padding: 0;
  background: transparent;
  font-size: 10px;
}
.back:hover {
  color: #b8563c;
}
#skip {
  color: #557b80;
  font-size: 10px;
  padding-left: 4px;
}
.answer-field {
  display: flex;
  align-items: center;
  background: #fffdf2f2;
  border: 1px solid #fffffff0;
  box-shadow: 0 9px 35px #23505c12;
  border-radius: 16px;
  padding: 8px;
  backdrop-filter: blur(10px);
}
.answer-field:focus-within {
  box-shadow:
    0 0 0 3px #386a771c,
    0 9px 35px #23505c12;
}
#answer {
  width: 100%;
  min-width: 0;
  height: 45px;
  background: transparent;
  border: 0;
  padding: 0 15px;
  color: #224b55;
  font-size: 16px;
  outline: none;
}
#answer::placeholder {
  color: #8ba29e;
  font-size: 13px;
}
#submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  height: 45px;
  min-width: 95px;
  border-radius: 10px;
  background: #cc654c;
  color: #fff7e6;
  font-size: 13px;
  font-weight: 600;
}
#submit > span:last-child {
  font-size: 23px;
  font-weight: 400;
}
#submit:hover {
  background: #b64f3a;
}
.dock-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  padding: 0 8px;
  font-size: 8px;
  color: #577e83;
}
.dock-bottom .back {
  font-size: 9px;
}
.reveal-content {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: min(600px, 75%);
}
.rarity-medal {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: #cf674a;
  background: #fff0c266;
  border: 1px solid #fdf3d3b3;
  box-shadow:
    0 0 0 6px #fff2c41c,
    0 0 35px #ffefbf4a;
  font-size: 33px;
}
.eyebrow {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #648384;
}
#reveal-kicker {
  color: #ad5944;
}
.reveal-content h1 {
  font-family: var(--heading);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.8px;
  margin-top: 15px;
  line-height: 1.1;
}
.reveal-answer {
  font-size: 17px;
  color: #547b7e;
  margin-top: 15px;
}
.reward {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
}
.reward strong {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 62px;
  letter-spacing: -3px;
  line-height: 1;
}
.reward > span {
  font-size: 8px;
  letter-spacing: 1px;
  color: #608689;
}
.reveal-note {
  font-size: 11px;
  color: #5c8488;
  line-height: 1.8;
  margin-top: 18px;
}
.reveal-dock {
  text-align: center;
}
.reveal-footer {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 8px;
  color: #60848a;
  margin-top: 23px;
}
.reveal-footer span:first-child {
  letter-spacing: 1px;
}
.reveal-dock::before {
  top: -30px;
}
body[data-tier="4"] .reveal-content h1 {
  color: #b9573f;
}
body[data-tier="3"] .reveal-content h1 {
  color: #2c7784;
}
body[data-tier="0"] .rarity-medal {
  color: #71918e;
  background: #c4dcd84a;
  box-shadow: none;
}
.launch-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 10vh;
}
.launch-screen > strong {
  font-family: var(--heading);
  font-size: 135px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -6px;
  margin-top: 20px;
}
.launch-screen > p {
  font-size: 11px;
  color: #61818a;
  margin-top: 13px;
}
footer {
  display: none;
}
body[data-view="result"] {
  height: auto;
  min-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
}
body[data-view="result"] .flight-hud {
  display: none;
}
body[data-view="result"] .site-header {
  position: relative;
}
.result-screen {
  padding-top: 20px !important;
}
body[data-view="result"] footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  font-size: 8px;
  color: #547982;
  max-width: 800px;
  margin: 0 auto;
}
footer button {
  margin-left: auto;
  background: none;
  font-size: 9px;
}
footer a {
  font-size: 9px;
}
.result-screen {
  padding: 38px 25px 70px;
}
.flight-report {
  max-width: 740px;
  margin: 0 auto;
  background: #fffdf6f5;
  box-shadow: 0 25px 80px #24495518;
  border: 1px solid #fffef9;
  border-radius: 24px;
  padding: 36px 42px;
}
.report-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.report-stamp {
  border: 1px solid #d46d5259;
  color: #b75943;
  font-size: 8px;
  padding: 8px 11px;
  letter-spacing: 1px;
  transform: rotate(5deg);
  border-radius: 3px;
}
.flight-report h1 {
  font-family: var(--heading);
  font-size: 57px;
  font-weight: 800;
  letter-spacing: -2.8px;
  line-height: 1.05;
  margin-top: 30px;
}
#result-subtitle {
  font-size: 12px;
  color: #839084;
  margin-top: 17px;
  line-height: 1.7;
}
.final-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 31px 0;
  margin-top: 7px;
}
.final-summary > div > span,
.final-summary small {
  display: block;
}
.final-summary > div > span {
  font-size: 8px;
  letter-spacing: 1px;
  color: #7f9183;
}
#final-score {
  display: block;
  font-family: var(--heading);
  font-weight: 800;
  font-size: 83px;
  line-height: 1.1;
  letter-spacing: -5px;
}
.final-summary small {
  font-size: 10px;
  color: #829082;
}
.best-lift {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
#rarest-find {
  font-family: var(--heading);
  font-size: 24px;
  font-weight: 800;
  display: block;
  margin: 10px 0 8px;
  letter-spacing: -0.7px;
}
.final-route {
  display: flex;
  gap: 6px;
  padding: 20px 0 25px;
  border-top: 1px dashed #24495540;
  border-bottom: 1px dashed #24495540;
}
.final-stop {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
}
.final-stop .flight-marker {
  width: 31px;
  height: 31px;
  font-size: 17px;
}
.final-stop > span {
  font-size: 8px;
  color: #6b877a;
}
.final-stop > strong {
  font-size: 12px;
  font-weight: 600;
}
.result-actions {
  display: flex;
  gap: 13px;
  margin-top: 26px;
}
.result-actions .primary {
  min-width: 0;
  flex: 1;
  padding-left: 23px;
  padding-right: 23px;
  height: 51px;
  font-size: 12px;
}
.secondary {
  border: 1px solid #d0dcd0;
  background: transparent;
  border-radius: 40px;
  padding: 0 20px;
  font-size: 11px;
  flex: 1;
}
.secondary:hover {
  background: #eaf0e4;
}
.share-note {
  font-size: 11px;
  color: #6c8777;
  margin-top: 14px;
  white-space: pre-wrap;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.result-rows {
  margin-top: 28px;
}
.result-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid #24495514;
  font-size: 13px;
}
.round-n {
  color: #8da18c;
  font-size: 9px;
}
.result-row small {
  display: block;
  font-size: 8px;
  color: #8a9988;
  margin-top: 5px;
  letter-spacing: 0.6px;
}
.points {
  margin-left: auto;
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
}
.answer-review {
  margin-top: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 19px;
}
.answer-review summary {
  list-style: none;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.answer-review summary::-webkit-details-marker {
  display: none;
}
.answer-review summary span {
  color: #bd5c45;
}
.answer-review h3 {
  font-size: 12px;
  margin-top: 23px;
}
.answer-review p {
  font-size: 11px;
  color: #7c8d7d;
  line-height: 1.9;
  margin-top: 9px;
}
.leaderboard {
  margin-top: 30px;
}
.section-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.section-top h2 {
  font-family: var(--heading);
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 800;
}
.section-top > span {
  font-size: 7px;
  letter-spacing: 1px;
  color: #8a9b89;
}
.leaderboard > p {
  font-size: 9px;
  color: #8a9889;
  line-height: 1.8;
  margin: 9px 0 13px;
}
#board {
  font-size: 11px;
  line-height: 1.8;
  color: #6d8778;
}
.board-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  border-top: 1px solid #24495514;
}
.board-row > span:first-child {
  font-size: 8px;
}
.board-row strong {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink);
  font-weight: 600;
}
#result-home {
  margin-top: 28px;
}
body[data-view="result"] .balloon {
  left: 86%;
  top: 20%;
  width: 170px;
  opacity: 0.7;
}
body[data-view="result"] .altimeter {
  display: none;
}
dialog {
  width: min(530px, calc(100% - 34px));
  max-height: 85svh;
  overflow-y: auto;
  border: 1px solid #fff;
  padding: 37px;
  background: #fffdf5;
  border-radius: 22px;
  color: var(--ink);
  box-shadow: 0 30px 100px #163b4d30;
}
dialog::backdrop {
  background: #23455250;
  backdrop-filter: blur(7px);
}
#close-modal {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 25px;
  background: none;
  color: #738c7d;
  padding: 3px 7px;
}
#modal-content h2 {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 35px;
  letter-spacing: -1.7px;
  margin: 11px 0 22px;
}
#modal-content p {
  font-size: 12px;
  line-height: 1.9;
  color: #6d8276;
  margin: 15px 0;
}
.tier-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}
.tier-list span {
  font-size: 11px;
  padding: 11px;
  border-radius: 7px;
  background: #edf1e5;
}
.stats-grid {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 10px;
}
.stats-grid strong {
  display: block;
  font-family: var(--heading);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
}
.stats-grid small {
  display: block;
  font-size: 7px;
  letter-spacing: 0.5px;
  margin-top: 5px;
  color: #8b9c89;
}
.history-flight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  font-size: 11px;
}
.history-flight small {
  display: block;
  color: #879987;
  font-size: 10px;
  margin-top: 6px;
}
.history-stages {
  display: flex;
  gap: 4px;
}
.history-stages .flight-marker {
  width: 19px;
  height: 19px;
  font-size: 11px;
}
.archive-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 25px;
}
.archive-form input {
  padding: 15px;
  border-radius: 8px;
  color: var(--ink);
  border: 1px solid #d5ddcf;
  background: white;
  min-width: 0;
}
.archive-form .primary {
  justify-content: center;
}
#error {
  position: fixed;
  z-index: 10;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff8ec;
  color: #974c35;
  border: 1px solid #e9c6ae;
  padding: 17px 22px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.8;
  width: min(530px, calc(100% - 32px));
  box-shadow: 0 12px 40px #24495520;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.noscript {
  background: #fffdf4;
  padding: 20px;
  text-align: center;
}

@media (min-width: 1700px) {
  .balloon {
    width: 135px;
  }
  .flight-hud {
    left: 28%;
    right: 28%;
  }
  .altimeter {
    right: 18%;
  }
}
@media (max-width: 900px) {
  .flight-hud {
    left: 12%;
    right: 12%;
  }
  .altimeter {
    right: 6%;
  }
  .question-content h1 {
    font-size: 33px;
  }
  .question-content {
    width: 68%;
  }
}
@media (max-width: 600px) {
  .site-header {
    height: 62px;
    padding: 0 22px;
  }
  .brand {
    font-size: 27px;
  }
  .brand > span {
    font-size: 19px;
  }
  .site-header nav {
    gap: 21px;
  }
  .site-header button {
    font-size: 9px;
  }
  .sound-button {
    font-size: 18px !important;
  }
  #stats {
    font-size: 18px;
  }
  #sound-state {
    font-size: 7px;
  }
  .flight-hud {
    top: 78px;
    left: 25px;
    right: 25px;
  }
  .altitude-readout > span,
  .best-readout > span {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .altitude-readout > strong {
    font-size: 27px;
    margin-top: 5px;
  }
  .best-readout > strong {
    font-size: 23px;
    margin-top: 6px;
  }
  .flight-hud small {
    font-size: 8px;
  }
  .round-progress {
    gap: 4px;
  }
  .round-progress span {
    width: 10px;
    height: 13px;
  }
  .flight-status {
    padding-top: 0;
  }
  #question-number {
    font-size: 6px;
    letter-spacing: 0.8px;
    margin-top: 9px;
  }
  .altimeter {
    right: 18px;
    top: 27%;
    height: 41%;
    width: 20px;
  }
  .altimeter-title {
    display: none;
  }
  .altimeter-track {
    margin-top: 0;
    width: 16px;
    background-size: 4px 100%;
  }
  .tick {
    left: -31px;
    font-size: 5px;
  }
  .tick-mid {
    display: none;
  }
  #sky-zone {
    width: 43px;
    margin-left: -26px;
    font-size: 4px;
    letter-spacing: 0.5px;
    margin-top: 12px;
  }
  .home-heading {
    top: 23%;
  }
  .daily-label {
    font-size: 7px;
    letter-spacing: 2px;
  }
  .home-heading h1 {
    font-size: 83px;
    letter-spacing: -5px;
    margin-top: 14px;
  }
  .home-heading p {
    font-size: 10px;
    margin-top: 10px;
  }
  .balloon {
    top: 42%;
    width: 95px;
  }
  .home-dock {
    bottom: 26px;
    width: calc(100% - 50px);
  }
  .home-rule {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .home-rule span {
    font-size: 9px;
  }
  .primary {
    min-width: 225px;
    height: 55px;
    padding-left: 25px;
    font-size: 13px;
  }
  .button-arrow {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
  .practice-link {
    font-size: 9px;
    margin-top: 14px;
  }
  .home-links {
    font-size: 7px;
    margin-top: 20px;
    gap: 22px;
  }
  .home-links button {
    font-size: 7px;
  }
  .sky-landscape {
    inset: -6% -44% -5%;
    background-position: center bottom;
  }
  .question-content {
    top: 23%;
    width: calc(100% - 70px);
  }
  .question-meta {
    font-size: 6px;
    gap: 12px;
    letter-spacing: 0.8px;
  }
  .question-content h1 {
    font-size: 28px;
    letter-spacing: -0.7px;
    margin-top: 19px;
    line-height: 1.22;
  }
  .question-hint {
    font-size: 9px;
    line-height: 1.8;
    margin-top: 15px;
  }
  body[data-view="play"] .balloon,
  body[data-view="reveal"] .balloon,
  body[data-view="launch"] .balloon {
    top: 46%;
    left: 22%;
    width: 66px;
  }
  .control-dock {
    width: calc(100% - 40px);
    bottom: 24px;
  }
  .timer-row {
    padding: 0 5px 13px;
    gap: 12px;
  }
  .timer {
    font-size: 25px;
  }
  .timer small {
    font-size: 8px;
  }
  #skip {
    font-size: 9px;
  }
  .answer-field {
    padding: 6px;
    border-radius: 13px;
  }
  #answer {
    padding: 0 10px;
    height: 43px;
    font-size: 16px;
  }
  #answer::placeholder {
    font-size: 11px;
  }
  #submit {
    min-width: 72px;
    height: 43px;
    font-size: 12px;
    gap: 12px;
    border-radius: 8px;
  }
  #submit > span:last-child {
    font-size: 21px;
  }
  .dock-bottom {
    margin-top: 13px;
    font-size: 7px;
    padding: 0 5px;
  }
  .dock-bottom .back {
    font-size: 8px;
  }
  .reveal-content {
    top: 21%;
    width: calc(100% - 65px);
  }
  .rarity-medal {
    width: 45px;
    height: 45px;
    font-size: 28px;
    margin-bottom: 22px;
  }
  .eyebrow {
    font-size: 6px;
    letter-spacing: 1.2px;
  }
  .reveal-content h1 {
    font-size: 39px;
    letter-spacing: -1.3px;
    margin-top: 13px;
  }
  .reveal-answer {
    font-size: 15px;
    margin-top: 13px;
  }
  .reward {
    margin-top: 23px;
    gap: 6px;
  }
  .reward strong {
    font-size: 52px;
    letter-spacing: -2.5px;
  }
  .reward > span {
    font-size: 7px;
  }
  .reveal-note {
    font-size: 9px;
    line-height: 1.8;
    margin-top: 15px;
  }
  .reveal-footer {
    flex-direction: column;
    gap: 7px;
    font-size: 7px;
    margin-top: 19px;
  }
  .reveal-footer span:first-child {
    font-size: 6px;
  }
  .reveal-dock {
    bottom: 30px;
  }
  .checkpoint {
    left: 19px;
    bottom: 27%;
    font-size: 6px;
    letter-spacing: 0.6px;
    max-width: 150px;
    padding-left: 8px;
  }
  .launch-screen > strong {
    font-size: 110px;
  }
  .launch-screen > p {
    font-size: 9px;
    max-width: 220px;
    line-height: 1.8;
    text-align: center;
  }
  .launch-screen {
    padding-bottom: 16vh;
  }
  .result-screen {
    padding: 22px 16px 35px;
  }
  .flight-report {
    padding: 24px;
    border-radius: 20px;
  }
  .report-stamp {
    font-size: 6px;
    padding: 7px;
  }
  .report-top .eyebrow {
    font-size: 7px;
  }
  .flight-report h1 {
    font-size: 42px;
    letter-spacing: -2px;
    margin-top: 27px;
  }
  #result-subtitle {
    font-size: 10px;
    margin-top: 15px;
  }
  .final-summary {
    padding: 25px 0;
    gap: 18px;
  }
  #final-score {
    font-size: 62px;
    letter-spacing: -3.5px;
  }
  .final-summary > div > span {
    font-size: 6px;
  }
  .final-summary small {
    font-size: 8px;
  }
  .best-lift {
    padding-left: 18px;
  }
  #rarest-find {
    font-size: 19px;
  }
  .final-stop > span {
    font-size: 6px;
  }
  .final-stop > strong {
    font-size: 10px;
  }
  .final-route {
    gap: 3px;
    padding: 16px 0 20px;
  }
  .final-stop .flight-marker {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
  .result-actions {
    flex-direction: column;
    gap: 10px;
  }
  .result-actions .primary {
    flex: none;
    justify-content: space-between;
    width: 100%;
  }
  .secondary {
    height: 47px;
    flex: none;
    font-size: 11px;
  }
  .result-rows {
    margin-top: 21px;
  }
  .result-row {
    font-size: 12px;
    gap: 11px;
  }
  .result-row small {
    font-size: 7px;
  }
  .points {
    font-size: 10px;
  }
  .section-top h2 {
    font-size: 27px;
  }
  .answer-review summary {
    font-size: 10px;
  }
  .leaderboard > p {
    font-size: 8px;
  }
  .board-row {
    font-size: 10px;
  }
  body[data-view="result"] .balloon {
    opacity: 0.12;
    left: 85%;
    top: 10%;
    width: 130px;
  }
  body[data-view="result"] footer {
    justify-content: space-between;
    padding: 18px 25px;
  }
  footer > span {
    display: none;
  }
  footer button {
    margin: 0;
  }
  footer a {
    font-size: 8px;
  }
  dialog {
    padding: 28px;
    border-radius: 18px;
  }
  #modal-content h2 {
    font-size: 31px;
  }
  #modal-content p {
    font-size: 11px;
  }
  .stats-grid {
    gap: 23px;
  }
  .stats-grid strong {
    font-size: 26px;
  }
  .stats-grid small {
    font-size: 6px;
  }
}
@media (max-height: 650px) {
  .site-header {
    height: 52px;
  }
  .flight-hud {
    top: 59px;
  }
  .home-heading {
    top: 24%;
  }
  .home-heading h1 {
    font-size: 68px;
  }
  .home-heading p {
    display: none;
  }
  .home-rule {
    display: none;
  }
  .home-dock {
    bottom: 18px;
  }
  .home-links {
    margin-top: 12px;
  }
  .balloon {
    top: 43%;
    width: 68px;
  }
  .question-content {
    top: 27%;
  }
  .question-content h1 {
    font-size: 23px;
    margin-top: 13px;
  }
  .question-hint {
    display: none;
  }
  body[data-view="play"] .balloon,
  body[data-view="reveal"] .balloon {
    top: 53%;
    width: 45px;
  }
  .reveal-content {
    top: 25%;
  }
  .rarity-medal {
    display: none;
  }
  .reveal-content h1 {
    font-size: 30px;
  }
  .reveal-answer {
    margin-top: 9px;
    font-size: 13px;
  }
  .reward {
    margin-top: 13px;
  }
  .reward strong {
    font-size: 43px;
  }
  .reveal-note {
    margin-top: 9px;
  }
  .reveal-dock {
    bottom: 19px;
  }
  .reveal-footer {
    margin-top: 12px;
  }
  .altimeter {
    top: 28%;
    height: 35%;
  }
  .checkpoint {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
#foreground-canvas {
  position: fixed;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.flight-marker {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dbe7dc;
  color: #598174;
}
.flight-marker[data-tier="3"] {
  background: #d2e6e6;
  color: #3e7a87;
}
.flight-marker[data-tier="4"] {
  background: #f1dcc8;
  color: #b35d43;
}
.flight-marker[data-tier="0"] {
  background: #e6e9df;
  color: #8c9d8e;
}
body[data-view="result"] #checkpoint {
  display: none;
}
@media (max-width: 600px) {
  body[data-view="play"] .balloon,
  body[data-view="reveal"] .balloon,
  body[data-view="launch"] .balloon {
    left: 13%;
    width: 55px;
  }
  .reveal-note {
    max-width: 230px;
    margin-left: auto;
    margin-right: auto;
  }
}

main {
  position: relative;
  z-index: 3;
  pointer-events: none;
}
.home-dock,
.control-dock,
.flight-report {
  pointer-events: auto;
}
.balloon img {
  pointer-events: none;
  -webkit-user-drag: none;
}
.balloon:active {
  cursor: grabbing;
}
.balloon:focus-visible {
  outline: 2px dashed #b56545;
  outline-offset: 14px;
}
.pilot-hint {
  position: absolute;
  left: 50%;
  bottom: -27px;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--ink);
  font-size: 8px;
  letter-spacing: 0.6px;
  opacity: 1;
  transition: opacity 0.3s;
  pointer-events: none;
}
.has-steered .pilot-hint,
body[data-view="result"] .pilot-hint,
.is-climbing .pilot-hint {
  opacity: 0;
}
body[data-view="result"] .balloon {
  pointer-events: none;
}
.is-piloting .burner-glow {
  opacity: 0.9;
}
.is-climbing .balloon-float {
  animation: updraft-launch 3.3s cubic-bezier(0.18, 0.7, 0.3, 1) both;
}
.is-climbing .reveal-content {
  animation: reward-arrival 0.7s 0.25s both;
}
.is-climbing .rarity-medal {
  animation: medal-arrival 0.8s 0.3s both;
}
.is-climbing .reward {
  animation: altitude-arrival 0.65s 0.65s both;
}
.is-climbing .altitude-readout {
  animation: instrument-glow 2.8s both;
}
@keyframes updraft-launch {
  0% {
    transform: translateY(0) scale(1) rotate(-2deg);
  }
  10% {
    transform: translateY(16px) scale(0.95, 1.03) rotate(-5deg);
  }
  35% {
    transform: translateY(calc(-1 * var(--lift-distance, 65px))) scale(1.12)
      rotate(5deg);
  }
  65% {
    transform: translateY(-18px) scale(1.04) rotate(-3deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate(-2deg);
  }
}
@keyframes reward-arrival {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes medal-arrival {
  from {
    opacity: 0;
    transform: scale(0.45) rotate(-45deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
@keyframes altitude-arrival {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes instrument-glow {
  15%,
  55% {
    color: #b35d3b;
    filter: drop-shadow(0 0 10px #fff1b0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .balloon {
    transform: translate(calc(-50% + var(--pilot-x, 0px)), var(--pilot-y, 0px));
  }
}
.pilot-hint {
  left: 100%;
  top: 48%;
  bottom: auto;
  transform: translate(15px, -50%);
}
body:not([data-view="home"]) .pilot-hint {
  display: none;
}
.native-app .site-header {
  top: env(safe-area-inset-top);
}
.native-app .flight-hud {
  top: calc(78px + env(safe-area-inset-top));
}
.native-app .home-dock,
.native-app .control-dock {
  bottom: calc(24px + env(safe-area-inset-bottom));
}
.native-app .home-heading {
  top: calc(21% + env(safe-area-inset-top) * 0.4);
}
.native-app .question-content {
  top: calc(23% + env(safe-area-inset-top) * 0.5);
}
.native-app .reveal-content {
  top: calc(21% + env(safe-area-inset-top) * 0.4);
}
.native-app body[data-view="result"] .site-header {
  margin-top: env(safe-area-inset-top);
  top: 0;
}
.native-app #offline-practice {
  margin-top: 3px;
}
.native-app .home-rule {
  margin-bottom: 15px;
}
@media (max-height: 650px) {
  .native-app .home-links {
    margin-top: 10px;
  }
  .native-app .question-content {
    top: calc(25% + env(safe-area-inset-top) * 0.4);
  }
}
