:root {
  --ink: #081426;
  --ink-2: #0d1d36;
  --ink-3: #17345f;
  --paper: #f7f0e1;
  --paper-2: #efe3cc;
  --cream: #fffaf0;
  --red: #e4572e;
  --red-strong: #b83c1b;
  --red-dark: #8f2f16;
  --gold: #f2c14e;
  --mint: #7fd1b9;
  --sky: #8ecae6;
  --muted: #a9b7d0;
  --line: rgba(247, 240, 225, 0.16);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --radius: 24px;
  --font-display: ui-serif, Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background:
    radial-gradient(1100px 700px at 12% -10%, #1a3968 0%, transparent 55%),
    radial-gradient(900px 600px at 110% 15%, #1b2a4a 0%, transparent 52%),
    linear-gradient(160deg, #07111f 0%, #081426 55%, #0a1b33 100%);
  color: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

button,
input,
summary {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.screen h1[tabindex="-1"]:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 999;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.15s ease;
}

.skip-link:focus-visible {
  transform: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 0.8rem clamp(1rem, 4vw, 2rem) 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.86;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.85rem;
  transform: rotate(12deg);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.head-skip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 0.72rem/1 var(--font-sans);
  letter-spacing: 0.04em;
  cursor: pointer;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.icon-btn:active {
  transform: scale(0.96);
}

.route {
  position: relative;
  z-index: 4;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 0.4rem clamp(1rem, 4vw, 2rem) 0.6rem;
}

.route-track {
  position: relative;
  height: 2px;
  border-radius: 999px;
  background: rgba(247, 240, 225, 0.16);
}

.route-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transition: width 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.route-plane-marker {
  position: absolute;
  top: 50%;
  left: clamp(9px, var(--progress, 0%), calc(100% - 9px));
  transform: translate(-50%, -50%) rotate(90deg);
  color: var(--gold);
  font-size: 1rem;
  filter: drop-shadow(0 0 8px rgba(242, 193, 78, 0.45));
  transition: left 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.route-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.route-status {
  color: var(--gold);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.route-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.route-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(247, 240, 225, 0.18);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.route-dots i.is-done {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.65);
}

.screen {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vw, 5rem);
  min-height: calc(100dvh - 150px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.screen.is-active {
  animation: screenIn 0.35s ease-out both;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.narrow {
  width: min(680px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.25;
  text-transform: uppercase;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.2vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.94;
}

h1 em {
  color: var(--gold);
  font-style: italic;
}

.lede {
  max-width: 58ch;
  margin: 0 0 1.5rem;
  color: #d8e0ee;
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  line-height: 1.55;
}

.micro {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font: 700 0.98rem/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--red-strong);
  color: #fff;
  box-shadow: 0 10px 28px rgba(184, 60, 27, 0.3);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.link-btn {
  display: inline-block;
  padding: 0.55rem 0.2rem;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 0.88rem/1.4 var(--font-sans);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--paper);
}

.puzzle-skip {
  color: #c7d2e4;
}

.puzzle-skip:focus-visible {
  outline-offset: 2px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.choice {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  min-height: 72px;
}

#btn-no {
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
}

#btn-yes {
  min-width: 190px;
}

#btn-no {
  min-width: 140px;
}

.locked-ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  aspect-ratio: 1.55 / 1;
  padding: 1.4rem;
  overflow: hidden;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

.locked-ticket::before {
  content: "";
  position: absolute;
  top: 0;
  right: 27%;
  bottom: 0;
  border-right: 2px dashed rgba(10, 24, 48, 0.22);
}

.locked-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(10, 24, 48, 0.8);
  font: 700 0.58rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.locked-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.9rem);
  letter-spacing: -0.03em;
}

.locked-route span {
  color: var(--red);
  font-size: 0.8em;
}

.locked-lines {
  display: grid;
  gap: 0.45rem;
  width: 64%;
}

.locked-lines i {
  display: block;
  height: 6px;
  border-radius: 4px;
  background: rgba(10, 24, 48, 0.13);
}

.locked-lines i:nth-child(2) {
  width: 64%;
}

.locked-lines i:nth-child(3) {
  width: 82%;
}

.locked-stub {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 0.4rem 0.6rem;
  align-items: baseline;
  padding-top: 0.8rem;
  border-top: 2px dashed rgba(10, 24, 48, 0.22);
  font: 700 0.55rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 24, 48, 0.76);
}

.locked-stub b {
  color: var(--ink);
  font-size: 0.7rem;
}

.lock {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  font-size: 1.8rem;
  filter: grayscale(1) contrast(0.8);
  transform: rotate(8deg);
}

.brief-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.3rem 0 1.8rem;
  padding: 0;
  list-style: none;
}

.brief-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 600;
}

.brief-list span {
  color: var(--gold);
  font: 700 0.7rem/1 var(--font-mono);
  letter-spacing: 0.1em;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.puzzle {
  justify-content: flex-start;
  padding-top: clamp(0.8rem, 2.5vw, 1.8rem);
}

.puzzle-head {
  width: min(760px, 100%);
  margin: 0 auto 1.2rem;
  text-align: center;
}

.step {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font: 700 0.7rem/1 var(--font-mono);
  letter-spacing: 0.2em;
}

.puzzle h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.puzzle .lede {
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(0.98rem, 2vw, 1.1rem);
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  width: min(780px, 100%);
  min-height: 300px;
  margin: 0 auto;
  padding: clamp(1.1rem, 4vw, 2rem);
  scroll-margin-top: 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.22);
}

.game-card > .btn {
  flex: 0 0 auto;
  width: min(100%, 360px);
}

.game-status {
  max-width: 46ch;
  margin: 0;
  color: #dbe4f3;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  width: min(780px, 100%);
  margin: 1rem auto 0;
}

.packing-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
}

.packing-list span {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.packing-list span.is-packed {
  border-color: rgba(127, 209, 185, 0.45);
  background: rgba(127, 209, 185, 0.08);
  color: var(--mint);
  text-decoration: line-through;
}

.suitcase {
  position: relative;
  width: min(260px, 68vw);
  aspect-ratio: 1.3 / 1;
  transition: transform 0.3s ease;
}

.suitcase.is-done::after {
  content: "GOTOWE";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  padding: 0.25rem 0.55rem;
  border: 4px solid var(--mint);
  border-radius: 6px;
  background: rgba(8, 20, 38, 0.86);
  color: var(--mint);
  font: 800 1rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-8deg);
  animation: stampIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes stampIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.6) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(-8deg);
  }
}

.suitcase-handle {
  position: absolute;
  top: -15px;
  left: 50%;
  width: 36%;
  height: 24px;
  border: 4px solid #c9a86a;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  transform: translateX(-50%);
}

.suitcase-body {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 2px solid #6f3f1c;
  border-radius: 16px;
  background: linear-gradient(145deg, #c98d50, #9c5f2f);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.06), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.suitcase-body::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 13px;
  background: rgba(60, 30, 10, 0.35);
  transform: translateY(-50%);
}

.suitcase-label {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: 700 0.55rem/1 var(--font-mono);
  letter-spacing: 0.18em;
  transform: translate(-50%, -50%) rotate(-3deg);
}

.pack-item {
  position: absolute;
  z-index: 2;
  font-size: 1.9rem;
  opacity: 0;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
  transform: scale(0.4) translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.item-1 {
  top: 16%;
  left: 16%;
}

.item-2 {
  top: 18%;
  right: 16%;
}

.item-3 {
  bottom: 14%;
  left: 44%;
}

.suitcase.packed-1 .item-1,
.suitcase.packed-2 .item-1,
.suitcase.packed-3 .item-1,
.suitcase.packed-2 .item-2,
.suitcase.packed-3 .item-2,
.suitcase.packed-3 .item-3 {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.suitcase.packed-3 {
  animation: bagSnap 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes bagSnap {
  50% {
    transform: scale(0.95);
  }
}

.runway {
  position: relative;
  width: 100%;
  height: clamp(240px, 40vh, 320px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, #0d1a2e, #0a1322);
  touch-action: none;
  user-select: none;
}

.runway-strip {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(70%, 420px);
  border-right: 2px solid rgba(255, 255, 255, 0.12);
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #26364d, #1a273a);
  transform: translateX(-50%);
}

.runway-strip::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  background: repeating-linear-gradient(180deg, var(--gold) 0 18px, transparent 18px 36px);
  opacity: 0.58;
  transform: translateX(-50%);
}

.runway-center {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 22%;
  border-right: 1px dashed rgba(127, 209, 185, 0.4);
  border-left: 1px dashed rgba(127, 209, 185, 0.4);
  background: linear-gradient(90deg, transparent, rgba(127, 209, 185, 0.12), transparent);
  transform: translateX(-50%);
}

.runway-plane-track {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(50%, 0, 0);
}

.runway-plane {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1em;
  height: 1em;
  color: var(--paper);
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  transform: translate(-50%, -50%) rotate(-90deg);
}

.runway-plane::before {
  content: "";
  position: absolute;
  inset: -28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 202, 230, 0.42), transparent 68%);
  pointer-events: none;
}

.runway-plane svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.runway-lights {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.runway-lights i {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.runway-lights i.on {
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.runway-hint {
  position: absolute;
  top: 10px;
  left: 50%;
  color: rgba(255, 255, 255, 0.7);
  font: 700 0.62rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hold-meter {
  width: min(70%, 320px);
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.hold-meter i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.runway.is-success {
  box-shadow: inset 0 0 0 2px rgba(127, 209, 185, 0.55), 0 0 40px rgba(127, 209, 185, 0.18);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 2.5vw, 1rem);
  width: min(460px, 100%);
}

.stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 104px;
  padding: 1rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper);
  font: 700 0.9rem/1.2 var(--font-sans);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stamp span {
  font-size: 2rem;
  line-height: 1;
}

.stamp:disabled {
  opacity: 0.62;
  cursor: default;
}

.stamp.is-lit {
  border-color: var(--gold);
  background: rgba(242, 193, 78, 0.22);
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.16), 0 0 30px rgba(242, 193, 78, 0.18);
  transform: scale(1.04);
}

.stamp.is-wrong {
  border-color: var(--red);
  animation: shake 0.35s ease;
}

.memory-card.is-approved::after {
  content: "APPROVED";
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0.25rem 0.6rem;
  border: 4px solid var(--mint);
  border-radius: 6px;
  color: var(--mint);
  font: 800 1.2rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  transform: translate(-50%, -50%) rotate(-9deg);
  opacity: 0.9;
  pointer-events: none;
}

@keyframes shake {
  20%, 60% {
    transform: translateX(-4px);
  }
  40%, 80% {
    transform: translateX(4px);
  }
}

.prop-dial {
  display: block;
  width: min(260px, 68vw);
  height: auto;
  overflow: visible;
  touch-action: none;
}

.prop-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 10;
}

.prop-ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 603.19;
  stroke-dashoffset: 603.19;
  transform: rotate(-90deg);
  transform-origin: 120px 120px;
  transition: stroke-dashoffset 0.08s linear;
}

.propeller {
  transform-origin: 120px 120px;
  transition: transform 0.05s linear;
}

.propeller path {
  fill: var(--sky);
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(142, 202, 230, 0.35));
}

.prop-hub {
  fill: var(--paper);
}

.prop-dial.is-spinning .propeller {
  filter: blur(1.1px);
}

.reward {
  justify-content: flex-start;
}

.reward-head {
  width: min(760px, 100%);
  margin: 0 auto 1.4rem;
  text-align: center;
}

.reward-head h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
}

.ticket-slot {
  position: relative;
  z-index: 3;
  width: min(980px, 100%);
  height: 18px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #02060d, #0c1a2e);
  box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ticket {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(230px, 0.8fr);
  width: min(980px, 100%);
  margin: -6px auto 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform-origin: top center;
}

.ticket.is-printing {
  animation: printOut 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes printOut {
  from {
    clip-path: inset(0 0 100% 0);
    transform: translateY(-24px) rotateX(12deg);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: none;
  }
}

.ticket-main {
  position: relative;
  padding: clamp(1.15rem, 3.5vw, 2.4rem);
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(20, 50, 95, 0.14), transparent 60%),
    var(--paper);
}

.ticket-main::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  border-right: 2px dashed rgba(10, 24, 48, 0.25);
}

.ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.2rem, 4vw, 2.4rem);
}

.ticket-brand {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ticket-flight {
  color: rgba(10, 24, 48, 0.75);
  font: 700 0.64rem/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

.ticket-flight b {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink);
  font-size: 1rem;
}

.ticket-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}

.route-city span {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(10, 24, 48, 0.75);
  font: 700 0.58rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.route-city strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.route-city-to {
  text-align: right;
}

.route-plane {
  color: var(--red-strong);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(10, 24, 48, 0.14);
}

.ticket-field-wide {
  grid-column: 1 / -1;
}

.ticket-field span {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(10, 24, 48, 0.75);
  font: 700 0.56rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ticket-field strong {
  display: block;
  color: var(--ink);
  font: 700 0.92rem/1.2 var(--font-sans);
  letter-spacing: 0.02em;
}

.ticket-field-wide strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
}

.barcode {
  height: 44px;
  margin-top: 1.2rem;
  color: var(--ink);
}

.barcode svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.ticket-note {
  margin-top: 0.45rem;
  color: rgba(10, 24, 48, 0.7);
  font: 700 0.54rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ticket-stub {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border-left: 2px dashed rgba(10, 24, 48, 0.25);
  background: linear-gradient(180deg, var(--paper-2), #e9dcc4);
}

.stub-label {
  color: rgba(10, 24, 48, 0.75);
  font: 700 0.56rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stub-names {
  margin-top: -0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.05;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.poster-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.paid-stamp {
  position: absolute;
  bottom: 8%;
  left: 8%;
  padding: 0.15rem 0.45rem;
  border: 3px solid var(--red-strong);
  border-radius: 4px;
  background: rgba(247, 240, 225, 0.92);
  color: var(--red-strong);
  font: 800 0.72rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
  transform: rotate(-7deg);
}

.stub-you {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  line-height: 1;
}

.stub-you span {
  color: var(--red-strong);
}

.stub-plane {
  align-self: flex-end;
  color: var(--ink);
  font-size: 1.6rem;
  transform: rotate(10deg);
}

.reward-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  width: min(980px, 100%);
  margin: 1.2rem auto 0;
}

.reward-note {
  width: min(980px, 100%);
  margin: 0.9rem auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.details {
  width: min(980px, 100%);
  margin: clamp(2rem, 6vw, 3.5rem) auto 0;
}

.details-head {
  margin-bottom: 1.2rem;
  text-align: center;
}

.details h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
}

.countdown {
  margin: 0;
  color: var(--gold);
  font: 700 0.76rem/1.2 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.info-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.info-card-wide {
  grid-column: 1 / -1;
}

.info-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--gold);
  font: 700 0.58rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.info-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 500;
}

.info-card p {
  margin: 0.25rem 0;
  color: #c9d4e5;
  font-size: 0.94rem;
  line-height: 1.5;
}

.info-card .link-btn {
  padding-left: 0;
  color: var(--gold);
}

.thanks {
  color: var(--paper) !important;
}

.fineprint {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.fineprint summary {
  padding: 0.4rem 0;
  color: var(--paper);
  font-weight: 600;
  cursor: pointer;
}

.fineprint ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.65;
}

.fineprint a {
  color: var(--gold);
}

.outro {
  width: min(680px, 100%);
  margin: clamp(2.5rem, 7vw, 4rem) auto 0;
  padding-bottom: 2rem;
  text-align: center;
}

.outro-big {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
}

.outro p {
  margin: 0.3rem 0;
  color: #c9d4e5;
}

.outro .link-btn {
  margin-top: 1rem;
  color: var(--muted);
}

.site-foot {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 2rem 1.2rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.site-foot p {
  margin: 0.25rem 0;
}

.toast {
  position: fixed;
  bottom: calc(1.2rem + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 200;
  max-width: calc(100vw - 2rem);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

#confetti {
  position: fixed;
  inset: 0;
  z-index: 150;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.debug {
  position: fixed;
  bottom: 0.6rem;
  left: 0.6rem;
  z-index: 300;
  display: grid;
  gap: 0.4rem;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font: 700 0.62rem/1 var(--font-mono);
}

.debug-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.debug button {
  padding: 0.3rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: #111;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.noscript {
  width: min(680px, calc(100% - 2rem));
  margin: 2rem auto;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.noscript h2 {
  margin-top: 0;
}

@media (hover: hover) {
  .btn-primary:hover {
    background: #c94722;
  }

  .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.07);
  }

  .icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .stamp:not(:disabled):hover {
    border-color: rgba(242, 193, 78, 0.6);
    background: rgba(242, 193, 78, 0.12);
  }
}

@media (max-width: 860px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .locked-ticket {
    order: -1;
    width: min(300px, 82vw);
    min-height: 200px;
    margin: 0 auto;
    padding: 1rem;
    gap: 0.7rem;
    aspect-ratio: auto;
    transform: rotate(-2deg);
  }

  .intro-copy {
    text-align: center;
  }

  .intro .lede {
    margin-right: auto;
    margin-left: auto;
  }

  .choice {
    justify-content: center;
  }

  .stack {
    align-items: center;
  }

  .brief-list {
    text-align: left;
  }

  .screen {
    min-height: auto;
    padding-top: 1.2rem;
  }
}

@media (max-width: 700px) {
  .ticket {
    grid-template-columns: 1fr;
  }

  .ticket-main::after {
    top: auto;
    right: 0;
    bottom: -1px;
    left: 0;
    border-right: 0;
    border-bottom: 2px dashed rgba(10, 24, 48, 0.25);
  }

  .ticket-stub {
    border-top: 2px dashed rgba(10, 24, 48, 0.25);
    border-left: 0;
  }

  .poster-wrap {
    aspect-ratio: 16 / 9;
  }

  .reward-actions .btn {
    flex: 1 1 auto;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-card-wide {
    grid-column: auto;
  }

  .route {
    padding-bottom: 0.3rem;
  }

  .puzzle {
    padding-top: 0.6rem;
  }

  .game-card {
    min-height: 260px;
  }
}

@media (max-width: 430px) {
  .site-head {
    padding-top: 0.7rem;
  }

  .locked-ticket {
    width: min(240px, 72vw);
    min-height: 170px;
    padding: 0.8rem;
  }

  .locked-route {
    font-size: 1.05rem;
  }

  .intro h1 {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
  }

  .brand {
    font-size: 0.62rem;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .head-skip {
    padding: 0 0.65rem;
    font-size: 0.68rem;
  }

  .screen {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .ticket-main {
    padding: 1rem;
  }

  .ticket-brand {
    font-size: 1.35rem;
  }

  .route-city strong {
    font-size: 1.25rem;
  }

  .ticket-field strong {
    font-size: 0.84rem;
  }

  .ticket-field-wide strong {
    font-size: 1.05rem;
  }

  .game-actions .btn {
    width: 100%;
  }

  .stamp {
    min-height: 92px;
    font-size: 0.82rem;
  }

  .stamp span {
    font-size: 1.75rem;
  }

  .paid-stamp {
    font-size: 0.62rem;
  }
}

@media (max-width: 430px) and (max-height: 700px) {
  .locked-ticket {
    display: none;
  }

  .intro {
    gap: 0.6rem;
  }

  .intro .lede {
    margin-bottom: 1rem;
  }

  .choice {
    min-height: auto;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .route {
    display: none !important;
  }

  .screen {
    min-height: auto;
    padding-top: 0.6rem;
    padding-bottom: 1.5rem;
  }

  .intro {
    grid-template-columns: 1fr 1fr;
  }

  .locked-ticket {
    display: none;
  }

  .intro-copy {
    text-align: left;
  }

  .choice {
    justify-content: flex-start;
  }

  .puzzle-head {
    margin-bottom: 0.5rem;
  }

  .puzzle h1 {
    font-size: 2rem;
  }

  .game-card {
    min-height: 200px;
    padding: 0.8rem;
  }

  .runway {
    height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .site-head,
  .site-foot,
  #route,
  .reward-head,
  .reward-actions,
  .details,
  .outro,
  .ticket-slot,
  #confetti,
  .toast,
  .debug,
  .grain,
  .skip-link {
    display: none !important;
  }

  .screen {
    display: none !important;
    min-height: 0;
    padding: 0;
  }

  #screen-reward {
    display: block !important;
  }

  .ticket {
    grid-template-columns: 1.7fr 0.8fr;
    width: 100%;
    margin: 0;
    border: 1px solid #111;
    border-radius: 0;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .ticket-main,
  .ticket-stub {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .poster-wrap {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .ticket.is-printing {
    animation: none !important;
    clip-path: none !important;
    transform: none !important;
  }
}
