:root {
  --blue: #67d7ff;
  --green: #72e79a;
  --hot-pink: #ff3d98;
  --ink: #25132f;
  --paper: #fff8df;
  --pink: #ff76b9;
  --purple: #7556ff;
  --white: #fffdf8;
  --yellow: #ffe64b;
  --border: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --page: min(92rem, calc(100vw - clamp(2rem, 7vw, 7rem)));
  --parallax-x: 0px;
  --parallax-y: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

html {
  background: var(--ink);
  color-scheme: light;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-synthesis: none;
}

body {
  min-width: 20rem;
  background: var(--pink);
  color: var(--ink);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100svh;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

@supports (height: 100dvh) {
  .page-shell {
    height: 100dvh;
  }
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  border: var(--border);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.answer {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  padding:
    max(5.25rem, calc(env(safe-area-inset-top) + 4.35rem))
    max(calc((100vw - 92rem) / 2), clamp(1rem, 3.5vw, 3.5rem))
    clamp(0.9rem, 2.2vh, 1.6rem);
  background:
    radial-gradient(circle at 13% 20%, rgba(255, 253, 248, 0.95) 0 0.18rem, transparent 0.2rem) 0 0 / 2rem 2rem,
    var(--pink);
  isolation: isolate;
}

.answer::after {
  position: absolute;
  z-index: -1;
  right: -10rem;
  bottom: -15rem;
  width: min(50vw, 47rem);
  aspect-ratio: 1;
  transform: rotate(14deg);
  translate: var(--parallax-x) var(--parallax-y);
  border: 4px solid var(--ink);
  border-radius: 48% 52% 43% 57%;
  background: var(--yellow);
  box-shadow: 14px 14px 0 rgba(37, 19, 47, 0.15);
  content: "";
}

.hero-sunburst {
  position: absolute;
  z-index: -2;
  top: -60vmax;
  left: calc(50% - 77vmax);
  width: 154vmax;
  height: 154vmax;
  opacity: 0.17;
  translate: var(--parallax-x) var(--parallax-y);
  background: repeating-conic-gradient(
    from -8deg,
    var(--ink) 0deg 5deg,
    transparent 5deg 13deg
  );
  animation: sun-spin 55s linear infinite;
  pointer-events: none;
  will-change: rotate, translate;
}

.hero-spark {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  text-shadow: 3px 3px 0 var(--ink);
}

.hero-spark-one {
  top: 16%;
  right: 4%;
  color: var(--yellow);
  font-size: clamp(3rem, 7vw, 7rem);
  transform: rotate(12deg);
  translate: var(--parallax-x) var(--parallax-y);
  animation: sparkle 3.1s 0.4s ease-in-out infinite;
}

.hero-spark-two {
  top: 48%;
  left: 1.5%;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 4rem);
  transform: rotate(-13deg);
  translate: var(--parallax-x) var(--parallax-y);
  animation: sparkle 2.6s 1.1s ease-in-out infinite;
}

.hero-spark-three {
  right: 30%;
  bottom: 21%;
  color: var(--white);
  font-size: clamp(1.2rem, 2.4vw, 2.6rem);
  transform: rotate(28deg);
  translate: var(--parallax-x) var(--parallax-y);
  animation: sparkle 2.2s 1.7s ease-in-out infinite;
}

.hero-flight {
  position: absolute;
  z-index: 1;
  top: clamp(3.25rem, 7vh, 5rem);
  left: 0;
  width: 100%;
  height: clamp(11rem, 27vh, 17rem);
  translate: var(--parallax-x) var(--parallax-y);
  pointer-events: none;
  will-change: translate;
}

.flight-route {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flight-route path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.flight-route-shadow {
  opacity: 0.16;
  stroke: var(--ink);
  stroke-width: 7;
  stroke-dasharray: 0.3 2.7;
}

.flight-route-dashes {
  opacity: 0.58;
  stroke: var(--white);
  stroke-width: 3;
  stroke-dasharray: 0.3 2.7;
}

.flight-route-progress {
  opacity: 0;
  stroke: var(--yellow);
  stroke-width: 4;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(2px 2px 0 var(--ink));
  animation: flight-route-draw 17s 1.35s linear infinite;
}

.flight-waypoints circle {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  animation: waypoint-breathe 2.4s ease-in-out infinite;
}

.flight-waypoints circle:nth-child(2) {
  animation-delay: -0.55s;
}

.flight-waypoints circle:nth-child(3) {
  animation-delay: -1.1s;
}

.flight-waypoints circle:nth-child(4) {
  animation-delay: -1.65s;
}

.hero-plane {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: clamp(4.6rem, 6.4vw, 6.5rem);
  opacity: 0;
  animation: plane-tour 17s 1.35s linear infinite;
  filter: drop-shadow(5px 5px 0 var(--ink));
  transform: translate(-50%, -50%);
  transform-origin: 64% 50%;
  will-change: opacity, transform;
}

.hero-plane svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  animation: plane-rumble 420ms ease-in-out infinite alternate;
}

.hero-plane path,
.hero-plane circle {
  stroke: var(--ink);
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.plane-body {
  fill: var(--white);
}

.plane-wing-top {
  fill: var(--blue);
}

.plane-wing-bottom {
  fill: var(--hot-pink);
}

.plane-nose {
  fill: var(--yellow);
}

.plane-tail {
  fill: var(--purple);
}

.hero-plane .plane-window {
  fill: var(--ink);
  stroke: none;
}

.plane-whoosh,
.plane-whoosh::before,
.plane-whoosh::after {
  position: absolute;
  top: 50%;
  right: 74%;
  width: clamp(2.4rem, 5.5vw, 5.5rem);
  height: 3px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--white));
  content: "";
}

.plane-whoosh::before {
  top: -0.6rem;
  right: 0.5rem;
  width: 68%;
}

.plane-whoosh::after {
  top: 0.75rem;
  right: 0.2rem;
  width: 82%;
}

.masthead {
  position: absolute;
  z-index: 20;
  top: max(1rem, env(safe-area-inset-top));
  left: 50%;
  display: flex;
  width: var(--page);
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  transform: translateX(-50%);
  animation: masthead-drop 0.55s 0.08s cubic-bezier(0.2, 0.85, 0.2, 1.2) both;
}

.wordmark {
  display: inline-flex;
  transform: rotate(-2deg);
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.wordmark:hover {
  transform: rotate(1deg) translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.wordmark span,
.wordmark strong {
  padding: 0.58rem 0.7rem;
}

.wordmark span {
  background: var(--white);
}

.wordmark strong {
  background: var(--yellow);
  font-weight: 950;
}

.answer-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  min-height: 0;
  align-self: center;
}

.answer-kicker,
.reveal-label,
.home-reminder {
  font-family: "Courier New", monospace;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.answer-kicker {
  display: inline-block;
  margin: 0 0 clamp(0.6rem, 1.4vh, 1rem);
  padding: 0.48rem 0.7rem;
  transform: rotate(1.5deg);
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: clamp(0.54rem, 0.8vw, 0.7rem);
  animation: label-snap 0.5s 0.18s cubic-bezier(0.2, 0.8, 0.2, 1.25) both;
}

.answer h1 {
  display: flex;
  width: 100%;
  margin: 0;
  flex-direction: column;
  align-items: flex-start;
  transform: rotate(-1deg);
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-weight: 950;
  letter-spacing: -0.09em;
  line-height: 0.72;
  text-transform: uppercase;
}

.question-where {
  display: block;
  max-width: 100%;
  color: var(--white);
  font-size: clamp(3.5rem, min(10.5vw, 13.5vh), 10rem);
  -webkit-text-stroke: clamp(2px, 0.22vw, 4px) var(--ink);
  text-shadow: clamp(5px, 0.7vw, 10px) clamp(5px, 0.7vw, 10px) 0 var(--ink);
  transform-origin: left bottom;
  animation: word-arrive 0.72s 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.question-who {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 100%;
  margin-top: 0.12em;
  gap: 0.18em;
  color: var(--yellow);
  font-size: clamp(3.7rem, min(11vw, 14.5vh), 10.7rem);
  -webkit-text-stroke: clamp(2px, 0.24vw, 4px) var(--ink);
  text-shadow: clamp(6px, 0.8vw, 12px) clamp(6px, 0.8vw, 12px) 0 var(--ink);
  white-space: nowrap;
}

.question-who > span {
  display: block;
  transform-origin: left bottom;
  animation: word-arrive 0.72s 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.question-who > span:last-child {
  animation-delay: 0.43s;
}

.answer-reveal {
  appearance: none;
  position: relative;
  z-index: 3;
  width: fit-content;
  max-width: calc(100% - 2rem);
  margin: clamp(1rem, 2.5vh, 2rem) 0 0 clamp(0rem, 4vw, 4rem);
  padding: clamp(0.65rem, 1.4vh, 0.9rem) clamp(1rem, 2.5vw, 2rem)
    clamp(0.9rem, 2vh, 1.5rem);
  transform: rotate(1.2deg);
  border: 4px solid var(--ink);
  border-radius: 1.2rem;
  background: var(--blue);
  box-shadow: clamp(7px, 1vw, 13px) clamp(7px, 1vw, 13px) 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transform-origin: left top;
  animation: reveal-slam 0.65s 0.63s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.answer-reveal:hover {
  transform: rotate(-0.4deg) translate(-2px, -2px);
  background: #8be2ff;
  box-shadow: clamp(9px, 1.2vw, 16px) clamp(9px, 1.2vw, 16px) 0 var(--ink);
}

.answer-reveal:active {
  transform: rotate(1.2deg) translate(4px, 4px);
  box-shadow: 3px 3px 0 var(--ink);
}

.answer-reveal:focus-visible {
  outline: 4px solid var(--white);
  outline-offset: 5px;
}

.answer-reveal::before {
  position: absolute;
  top: -1.1rem;
  right: -1.5rem;
  display: grid;
  width: clamp(4.25rem, min(6.4vw, 9vh), 6rem);
  aspect-ratio: 1;
  place-items: center;
  transform: rotate(12deg);
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  content: "TA-DA!";
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(0.62rem, 0.85vw, 0.84rem);
  font-weight: 950;
}

.answer.is-partying .answer-reveal::before {
  animation: tada-pop 0.48s cubic-bezier(0.2, 0.9, 0.25, 1.35);
}

.reveal-label {
  display: block;
  margin: 0 4.5rem 0.45rem 0;
  font-size: clamp(0.5rem, 0.75vw, 0.66rem);
}

.answer-city {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.18em;
  margin: 0;
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-size: clamp(3rem, min(7.8vw, 10.5vh), 7.8rem);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.82;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.city-word {
  display: block;
  transform-origin: left bottom;
  animation: city-arrive 0.55s calc(0.78s + var(--word-delay, 0ms)) cubic-bezier(0.18, 0.9, 0.2, 1.25) both;
}

.reveal-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.28rem;
  font-family: "Courier New", monospace;
  font-size: 0.43rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  opacity: 0.62;
  text-transform: uppercase;
}

.answer-city[data-length="long"] {
  font-size: clamp(2.8rem, min(7vw, 9.8vh), 7rem);
}

.answer-city[data-length="very-long"] {
  font-size: clamp(2.5rem, min(5.8vw, 8.5vh), 5.8rem);
}

.answer-bottom {
  position: relative;
  z-index: 4;
  display: grid;
  width: 100%;
  min-width: 0;
  margin-top: clamp(0.7rem, 2vh, 1.5rem);
  grid-template-columns: auto minmax(16rem, 38rem) 1fr;
  gap: clamp(1.1rem, 2.5vw, 2.4rem);
  align-items: center;
}

.ian-sticker {
  position: relative;
  width: clamp(5.6rem, min(8vw, 14vh), 8rem);
  margin: 0;
  transform: rotate(-7deg);
  transform-origin: center bottom;
  animation: sticker-pop 0.6s 0.92s cubic-bezier(0.18, 0.9, 0.2, 1.35) both;
}

.ian-sticker-photo {
  aspect-ratio: 1;
  padding: 0.32rem;
  border: var(--border);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}

.ian-sticker img {
  width: 100%;
  height: 100%;
  border: 2px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
  transition: filter 180ms ease, transform 180ms ease;
}

.ian-sticker:hover img {
  filter: saturate(1.15) contrast(1.06);
  transform: scale(1.04) rotate(2deg);
}

.ian-sticker figcaption {
  position: absolute;
  right: -1.25rem;
  bottom: -0.45rem;
  padding: 0.36rem 0.48rem;
  transform: rotate(7deg);
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(0.5rem, 0.8vw, 0.66rem);
  font-weight: 950;
  white-space: nowrap;
}

.answer-status {
  padding: clamp(0.75rem, 1.8vh, 1rem) 1.1rem;
  transform: rotate(-0.7deg);
  border: var(--border);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
  animation: status-arrive 0.62s 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.answer-verdict {
  margin: 0;
  font-size: clamp(0.76rem, min(1.2vw, 1.8vh), 1.02rem);
  font-weight: 800;
  line-height: 1.35;
}

.answer-verdict strong,
.answer-verdict > span {
  display: block;
}

.answer-verdict strong {
  margin-bottom: 0.16rem;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 1.08em;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.answer-verdict > span {
  opacity: 0.82;
}

.home-reminder {
  margin: 0.55rem 0 0;
  color: var(--hot-pink);
  font-size: clamp(0.47rem, 0.65vw, 0.56rem);
}

.home-reminder span {
  font-family: Arial, sans-serif;
}

.home-reminder strong {
  color: var(--ink);
}

.route-map {
  position: relative;
  display: grid;
  width: min(100%, 28rem);
  height: clamp(6.5rem, 14vh, 8rem);
  min-width: 15rem;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-self: end;
  overflow: hidden;
  transform: rotate(1.5deg);
  border: var(--border);
  border-radius: 0.85rem;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--ink);
  font-family: "Courier New", monospace;
  animation: map-arrive 0.68s 1.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.route-map header,
.route-map footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.28rem 0.45rem;
  background: rgba(255, 253, 248, 0.88);
  font-size: clamp(0.39rem, 0.55vw, 0.52rem);
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.route-map header {
  border-bottom: 1.5px solid var(--ink);
}

.route-map footer {
  border-top: 1.5px solid var(--ink);
}

.route-map header strong,
.route-map footer strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-map header span,
.route-map footer span {
  flex: none;
  opacity: 0.62;
}

.route-map header i {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.18rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--hot-pink);
  box-shadow: 0 0 0 0 rgba(255, 61, 152, 0.5);
  animation: map-beacon 1.8s ease-out infinite;
  vertical-align: -0.05rem;
}

.route-map svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  color: rgba(37, 19, 47, 0.18);
  background: linear-gradient(145deg, rgba(103, 215, 255, 0.2), rgba(255, 118, 185, 0.13));
}

.map-grid {
  fill: url(#map-grid);
}

.map-land {
  fill: rgba(37, 19, 47, 0.13);
  stroke: rgba(37, 19, 47, 0.38);
  stroke-width: 1.2;
}

.map-route {
  fill: none;
  stroke: var(--hot-pink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 8 7;
  animation: route-dash 1.7s linear infinite;
  vector-effect: non-scaling-stroke;
}

.map-route.is-tentative {
  opacity: 0.42;
  stroke-dasharray: 2 7;
}

.map-route.is-active {
  stroke: var(--purple);
  stroke-width: 4;
}

.map-route.is-history {
  stroke: var(--blue);
  opacity: 0.5;
}

.map-node circle {
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.map-node text {
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-linejoin: round;
  stroke-width: 3px;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.map-node.is-current circle:not(.map-current-ring) {
  fill: var(--green);
}

.map-current-ring {
  fill: none !important;
  stroke: var(--hot-pink) !important;
  stroke-width: 2 !important;
  transform-box: fill-box;
  transform-origin: center;
  animation: current-ring 1.75s ease-out infinite;
}

.confetti {
  position: absolute;
  z-index: 50;
  width: var(--confetti-width, 0.55rem);
  height: var(--confetti-height, 0.82rem);
  border: 1.5px solid var(--ink);
  border-radius: var(--confetti-radius, 0.08rem);
  background: var(--confetti-color, var(--yellow));
  pointer-events: none;
  animation: confetti-flight var(--confetti-speed, 1s) cubic-bezier(0.15, 0.7, 0.28, 1) forwards;
  will-change: transform, opacity;
}

.ticker {
  position: relative;
  z-index: 30;
  width: 100%;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: ticker var(--ticker-duration, 44s) linear infinite;
  will-change: transform;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-set {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2rem);
  padding: clamp(0.68rem, 1.25vh, 0.82rem) clamp(1.2rem, 2vw, 2rem) clamp(0.68rem, 1.25vh, 0.82rem) 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(0.68rem, min(1.05vw, 1.7vh), 0.94rem);
  font-weight: 950;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.ticker-item em {
  padding: 0.22rem 0.34rem;
  transform: rotate(-2deg);
  border: 1px solid currentColor;
  background: var(--yellow);
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 0.65em;
  font-style: normal;
  letter-spacing: 0.08em;
  line-height: 1;
}

.ticker-item strong {
  font-weight: 950;
}

.ticker-item small {
  color: var(--blue);
  font-family: "Courier New", monospace;
  font-size: 0.68em;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.ticker b {
  color: var(--yellow);
  font-size: 1rem;
  animation: ticker-spark 1.5s ease-in-out infinite alternate;
}

.ticker b:nth-of-type(3n + 2) {
  color: var(--pink);
}

.ticker b:nth-of-type(3n) {
  color: var(--blue);
}

.noscript {
  position: fixed;
  z-index: 90;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  left: 1rem;
  padding: 1rem;
  border: var(--border);
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 900;
  text-align: center;
}

@keyframes sun-spin {
  to {
    rotate: 1turn;
  }
}

@keyframes masthead-drop {
  from {
    opacity: 0;
    translate: 0 -1.4rem;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes label-snap {
  from {
    opacity: 0;
    translate: -1.5rem 0;
    scale: 0.75;
  }

  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes word-arrive {
  0% {
    opacity: 0;
    transform: translateY(0.72em) rotate(-5deg) scale(0.76, 1.22);
  }

  68% {
    opacity: 1;
    transform: translateY(-0.04em) rotate(1deg) scale(1.035, 0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

@keyframes reveal-slam {
  0% {
    opacity: 0;
    translate: -2rem 2rem;
    scale: 0.72;
  }

  72% {
    opacity: 1;
    translate: 0 0;
    scale: 1.035;
  }

  100% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes city-arrive {
  from {
    opacity: 0;
    transform: translateY(0.55em) rotate(4deg) scale(0.72, 1.18);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

@keyframes tada-pop {
  0%,
  100% {
    scale: 1;
    rotate: 0deg;
  }

  45% {
    scale: 1.25;
    rotate: 12deg;
  }
}

@keyframes sticker-pop {
  from {
    opacity: 0;
    translate: -1.5rem 2rem;
    scale: 0.4;
  }

  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes status-arrive {
  from {
    opacity: 0;
    translate: 0 1.3rem;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes map-arrive {
  from {
    opacity: 0;
    translate: 2rem 1rem;
    scale: 0.72;
  }

  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.7;
    scale: 0.78;
  }

  50% {
    opacity: 1;
    scale: 1.08;
  }
}

@keyframes flight-route-draw {
  0%,
  7% {
    opacity: 0;
    stroke-dashoffset: 100;
  }

  10% {
    opacity: 0.95;
  }

  91% {
    opacity: 0.95;
    stroke-dashoffset: 0;
  }

  95%,
  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

@keyframes waypoint-breathe {
  0%,
  100% {
    opacity: 0.6;
    scale: 0.72;
  }

  48% {
    opacity: 1;
    scale: 1.18;
  }
}

@keyframes plane-rumble {
  from {
    transform: translateY(-1px) scaleY(0.985);
  }

  to {
    transform: translateY(1px) scaleY(1.015);
  }
}

@keyframes plane-tour {
  0%,
  6% {
    top: 77.3%;
    left: -7%;
    opacity: 0;
    rotate: -36deg;
    scale: 0.72;
  }

  8% {
    top: 77.3%;
    left: -7%;
    opacity: 1;
    rotate: -36deg;
    scale: 0.78;
  }

  15% {
    top: 50.6%;
    left: 2%;
    opacity: 1;
    rotate: -29deg;
    scale: 0.88;
  }

  22% {
    top: 32.7%;
    left: 10.5%;
    rotate: -20deg;
    scale: 0.96;
  }

  29% {
    top: 23.5%;
    left: 18.6%;
    rotate: -7deg;
    scale: 1;
  }

  36% {
    top: 23.4%;
    left: 26.3%;
    rotate: 7deg;
    scale: 1.02;
  }

  43% {
    top: 32.5%;
    left: 33.6%;
    rotate: 23deg;
    scale: 1;
  }

  50% {
    top: 50.9%;
    left: 40.6%;
    rotate: 37deg;
    scale: 0.98;
  }

  57% {
    top: 69%;
    left: 47.6%;
    rotate: 21deg;
    scale: 0.98;
  }

  64% {
    top: 76.9%;
    left: 55.4%;
    rotate: 4deg;
    scale: 1;
  }

  71% {
    top: 74.8%;
    left: 64.7%;
    rotate: -9deg;
    scale: 1.02;
  }

  78% {
    top: 62.8%;
    left: 75.9%;
    rotate: -17deg;
    scale: 1;
  }

  85% {
    top: 41.2%;
    left: 89.8%;
    opacity: 1;
    rotate: -21deg;
    scale: 0.92;
  }

  92% {
    top: 10%;
    left: 107%;
    opacity: 0;
    rotate: -23deg;
    scale: 0.78;
  }

  100% {
    top: 10%;
    left: 107%;
    opacity: 0;
    rotate: -23deg;
    scale: 0.78;
  }
}

@keyframes route-dash {
  to {
    stroke-dashoffset: -30;
  }
}

@keyframes map-beacon {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 61, 152, 0.5);
  }

  80%,
  100% {
    box-shadow: 0 0 0 0.48rem rgba(255, 61, 152, 0);
  }
}

@keyframes current-ring {
  0% {
    opacity: 0.85;
    transform: scale(0.7);
  }

  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

@keyframes ticker-spark {
  from {
    transform: rotate(-12deg) scale(0.78);
  }

  to {
    transform: rotate(12deg) scale(1.16);
  }
}

@keyframes confetti-flight {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.2);
  }

  12% {
    opacity: 1;
  }

  55% {
    opacity: 1;
    transform: translate(
      calc(-50% + var(--confetti-mid-x)),
      calc(-50% + var(--confetti-lift))
    ) rotate(var(--confetti-half-rotate)) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(
      calc(-50% + var(--confetti-x)),
      calc(-50% + var(--confetti-drop))
    ) rotate(var(--confetti-rotate)) scale(0.72);
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .answer::after {
    right: -14rem;
    bottom: -18rem;
    width: 42rem;
  }

  .question-who {
    flex-wrap: wrap;
    white-space: normal;
  }

  .answer-bottom {
    grid-template-columns: auto minmax(0, 38rem);
  }

  .route-map {
    position: absolute;
    right: 0;
    bottom: calc(100% + clamp(0.65rem, 1.6vh, 1.05rem));
    width: clamp(12.5rem, 31vw, 16rem);
    height: clamp(5.5rem, 11vh, 6.4rem);
    min-width: 0;
  }
}

@media (max-width: 620px) {
  :root {
    --page: calc(100vw - 2rem);
  }

  .answer {
    padding:
      max(4.6rem, calc(env(safe-area-inset-top) + 4rem))
      1rem
      clamp(0.6rem, 1.4vh, 0.85rem);
  }

  .answer::after {
    right: -18rem;
    bottom: -20rem;
    width: 38rem;
  }

  .masthead {
    top: max(0.75rem, env(safe-area-inset-top));
  }

  .wordmark {
    font-size: 0.58rem;
  }

  .wordmark span,
  .wordmark strong {
    padding: 0.5rem 0.55rem;
  }

  .hero-plane {
    width: 4.2rem;
  }

  .answer-kicker {
    max-width: calc(100% - 0.5rem);
    margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
    padding: 0.38rem 0.52rem;
    font-size: 0.5rem;
  }

  .question-where {
    font-size: clamp(3.1rem, min(17.7vw, 10.5vh), 5.8rem);
  }

  .question-who {
    flex-direction: column;
    font-size: clamp(3.1rem, min(16.5vw, 10.8vh), 5.6rem);
    gap: 0;
    line-height: 0.75;
  }

  .answer-reveal {
    max-width: calc(100% - 0.55rem);
    margin: clamp(0.8rem, 1.8vh, 1.2rem) 0 0;
    padding: 0.62rem 0.8rem 0.78rem;
    border-width: 3px;
    border-radius: 0.9rem;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .answer-reveal::before {
    top: -0.9rem;
    right: -0.65rem;
    width: clamp(3.6rem, min(15vw, 8vh), 4.5rem);
    font-size: 0.55rem;
  }

  .reveal-label {
    margin: 0 3.8rem 0.32rem 0;
    font-size: 0.46rem;
  }

  .answer-city,
  .answer-city[data-length="long"] {
    font-size: clamp(2.5rem, min(13vw, 8vh), 4.4rem);
  }

  .answer-city[data-length="very-long"] {
    font-size: clamp(2.25rem, min(11vw, 7vh), 3.8rem);
  }

  .answer-city {
    flex-direction: column;
    gap: 0;
  }

  .reveal-hint {
    display: none;
  }

  .answer-bottom {
    margin-top: clamp(0.45rem, 1.1vh, 0.75rem);
    grid-template-columns: clamp(4.5rem, 20vw, 5.6rem) minmax(0, 1fr);
    gap: 0.85rem;
  }

  .ian-sticker {
    width: 100%;
  }

  .ian-sticker-photo {
    padding: 0.24rem;
    border-width: 2px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .ian-sticker figcaption {
    right: -0.65rem;
    bottom: -0.35rem;
    padding: 0.28rem 0.35rem;
    font-size: 0.43rem;
  }

  .answer-status {
    padding: clamp(0.58rem, 1.3vh, 0.75rem) 0.7rem;
    border-width: 2px;
    border-radius: 0.72rem;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .route-map {
    width: clamp(9.8rem, 45vw, 11.5rem);
    height: clamp(5.1rem, 11vh, 5.8rem);
    border-width: 2px;
    border-radius: 0.58rem;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .route-map header,
  .route-map footer {
    gap: 0.3rem;
    padding: 0.2rem 0.28rem;
    font-size: 0.34rem;
  }

  .route-map header span,
  .route-map footer span {
    display: none;
  }

  .route-map header i {
    width: 0.38rem;
    height: 0.38rem;
  }

  .answer-verdict {
    font-size: clamp(0.63rem, min(2.5vw, 1.55vh), 0.76rem);
    line-height: 1.28;
  }

  .home-reminder {
    margin-top: 0.38rem;
    font-size: 0.42rem;
    letter-spacing: 0.07em;
  }

  .ticker-set {
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
  }

  .ticker-item {
    font-size: 0.64rem;
  }

  .ticker-item small {
    font-size: 0.62em;
  }
}

@media (max-height: 700px) {
  .answer-kicker {
    display: none;
  }

  .answer {
    padding-top: max(4.25rem, calc(env(safe-area-inset-top) + 3.8rem));
    padding-bottom: 0.45rem;
  }

  .answer-reveal {
    margin-top: 0.7rem;
  }

  .answer-bottom {
    margin-top: 0.4rem;
  }

  .ian-sticker {
    width: clamp(4.2rem, min(7vw, 11vh), 6rem);
  }
}

@media (max-width: 620px) and (max-height: 700px) {
  .question-where {
    font-size: clamp(2.8rem, min(17vw, 10vh), 4.6rem);
  }

  .question-who {
    font-size: clamp(2.9rem, min(15.8vw, 10vh), 4.6rem);
  }

  .answer-reveal::before {
    display: none;
  }

  .reveal-label {
    margin-right: 0;
  }

  .answer-city,
  .answer-city[data-length="long"] {
    font-size: clamp(2.2rem, min(12vw, 7vh), 3.5rem);
  }

  .answer-status {
    padding-top: 0.48rem;
    padding-bottom: 0.48rem;
  }

  .answer-verdict {
    font-size: 0.59rem;
  }

  .route-map {
    bottom: calc(100% + 0.55rem);
    width: clamp(8.8rem, 42vw, 9.8rem);
    height: 4.2rem;
  }
}

@media (max-width: 620px) and (max-height: 600px) {
  .route-map {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
