@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root {
  color-scheme: dark;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff;
  background: #07111c;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; overscroll-behavior-y: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #bcdeff; outline-offset: 7px; }
.swipe-prompt:focus { outline: none; }
.keyboard-navigation .swipe-prompt:focus-visible { outline: 2px solid #bcdeff; outline-offset: 7px; }

.wrapped {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 580px;
  height: 100svh;
  min-height: 640px;
  max-height: 1000px;
  margin: 0 auto;
  overflow: hidden;
  background: #020e19;
  touch-action: pinch-zoom;
}

.atmosphere { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, #020c15 9%, #021322 40%, #00366b 74%, #007aff 100%); }
.atmosphere::after { content: ''; position: absolute; inset: -8%; pointer-events: none; background: radial-gradient(ellipse at 25% 65%, #49bcff38, transparent 42%), radial-gradient(ellipse at 80% 48%, #467dff2b, transparent 40%); animation: northern-lights 11s ease-in-out infinite alternate; }
.stars { animation: snow-drift 8s ease-in-out infinite alternate; }
.wrapped.background-paused .atmosphere::after,
.wrapped.background-paused .stars,
.wrapped:has(.game-overlay[hidden]) .atmosphere::after,
.wrapped:has(.game-overlay[hidden]) .stars { animation-play-state: paused; }
.aurora { position: absolute; width: 24%; height: 88%; top: 24%; filter: blur(24px); transform: rotate(-9deg); border-radius: 50%; }
.aurora-one { left: 7%; background: linear-gradient(180deg, transparent, #007bffb0 40%, #0083ff 85%); }
.aurora-two { left: 46%; top: 32%; width: 16%; background: linear-gradient(180deg, transparent, #0087ffc4 47%, #007bff); animation-delay: -5s; }
.aurora-three { right: -8%; top: 27%; width: 26%; background: linear-gradient(180deg, transparent, #0076eea3 45%, #008aff); animation-delay: -8s; }
.stars { position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(circle at 6% 8%, #a5bfd0 0 1px, transparent 2px), radial-gradient(circle at 13% 22%, #a5bfd0 0 1px, transparent 2px), radial-gradient(circle at 89% 19%, #a5bfd0 0 2px, transparent 3px), radial-gradient(circle at 83% 45%, #a5bfd0 0 1px, transparent 2px), radial-gradient(circle at 19% 43%, #a5bfd0 0 1.5px, transparent 2.5px), radial-gradient(circle at 68% 56%, #a5bfd0 0 2px, transparent 3px), radial-gradient(circle at 48% 58%, #a5bfd0 0 1px, transparent 2px), radial-gradient(circle at 96% 67%, #b1ddff 0 2px, transparent 3px), radial-gradient(circle at 7% 89%, #b1ddff 0 1px, transparent 2px), radial-gradient(circle at 87% 94%, #b1ddff 0 1px, transparent 2px); }

.masthead { position: absolute; z-index: 3; top: max(24px, env(safe-area-inset-top)); left: 30px; right: 30px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { text-decoration: none; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: -.7px; }
.wordmark span { margin-left: 3px; color: #92b5d3; font-weight: 500; }
.year-tag { border: 1px solid #ffffff26; border-radius: 20px; padding: 4px 11px; color: #bdccda; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.screens { height: 100%; position: relative; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 76px 12.2% max(30px, env(safe-area-inset-bottom)); transition: transform .42s cubic-bezier(.22, 1, .36, 1); }
.screens { user-select: none; -webkit-user-select: none; }
.welcome { transform: translate3d(0, var(--drag, 0px), 0); }
.mascot { position: relative; flex: 1; min-height: 0; container-type: size; display: flex; flex-direction: column; align-items: center; }
.mascot-glow { position: absolute; top: 10%; width: 75%; aspect-ratio: 1; border-radius: 50%; background: #238dff30; filter: blur(45px); }
.welcome-duck { width: min(100%, 100cqh, 360px); aspect-ratio: 1; pointer-events: none; }
.sticker { position: relative; display: block; flex-shrink: 0; }
.sticker > img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.sticker-animation { position: absolute; inset: 0; opacity: 0; pointer-events: none; border-radius: inherit; overflow: hidden; }
.sticker-animation canvas { display: block; width: 100% !important; height: 100% !important; }
.sticker.is-ready > img { visibility: hidden; }
.sticker.is-ready > .sticker-animation { opacity: 1; }
.welcome-copy { position: relative; margin-top: 25px; }
.eyebrow, .chapter { margin: 0 0 13px; color: #94caff; font-size: 9px; font-weight: 800; letter-spacing: 2.5px; }
h1 { margin: 0; font-size: clamp(24px, 5.2vw, 31px); line-height: 1.28; font-weight: 800; letter-spacing: -1.15px; }
.title-year { white-space: nowrap; }
.sparkle { width: .85em; height: .85em; margin-left: 9px; color: #ffd16b; vertical-align: baseline; }
.intro { margin: 15px 0 0; color: #b9d3f7; font-size: clamp(15px, 3.5vw, 20px); font-weight: 600; line-height: 1.28; letter-spacing: -.5px; }
.swipe-prompt { flex-shrink: 0; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 22px 0 2px; margin-top: 8px; border: 0; background: transparent; cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: .1px; color: #daecff; }
.swipe-arrow { display: grid; place-items: center; width: 40px; height: 42px; animation: swipe-up 2s ease-in-out infinite; }
.swipe-arrow svg { width: 25px; height: 35px; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.home-indicator { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 100px; height: 4px; background: #ffffff73; border-radius: 5px; }

.overview { transform: translate3d(0, calc(100% + var(--drag, 0px)), 0); padding-top: 120px; justify-content: space-between; }
.overview-content { margin: auto 0; }
.chapter { display: block; }
h2 { margin: 20px 0; font-size: clamp(36px, 8.2vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -2px; outline: none; }
h2 span { color: #8bd0ff; }
.overview-intro { color: #b9d3f7; font-size: 15px; line-height: 1.5; }
.chapters { display: grid; gap: 10px; margin-top: 28px; }
.chapter-card { display: flex; align-items: center; gap: 14px; padding: 18px 16px; border: 1px solid #ffffff20; border-radius: 18px; background: #b4d8ff0c; }
.card-number { color: #7bbaff; font-size: 10px; font-weight: 700; }
.chapter-card h3 { font-size: 15px; margin: 0 0 4px; letter-spacing: -.4px; }
.chapter-card p { color: #adcae8; font-size: 10px; line-height: 1.5; margin: 0; }
.chapter-card svg { margin-left: auto; flex-shrink: 0; width: 23px; height: 23px; stroke: #9bd4ff; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.data-note { color: #adcae8; font-size: 11px; line-height: 1.6; margin: 20px 0; }
.back-button { border: 0; background: transparent; padding: 16px; cursor: pointer; font-size: 12px; color: #daecff; }
.back-button span { margin-right: 8px; }
.overview.is-waiting { padding: 85px 9% 24px; }
.launch-content { margin: auto 0; text-align: center; }
.waiting-duck { width: min(100%, 228px); aspect-ratio: 1; margin: 12px auto; }
.launch-content h2 { font-size: clamp(32px, 8vw, 43px); letter-spacing: -1.7px; margin: 20px 0 14px; }
.launch-description { color: #b9d3f7; font-size: 13px; line-height: 1.6; }
.launch-description time { color: #ecf6ff; font-weight: 700; }
.countdown { display: flex; justify-content: center; align-items: flex-start; gap: 10px; margin: 27px 0; }
.countdown div { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 47px; }
.countdown strong { font-size: 36px; line-height: 1; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.countdown span { color: #a9cae8; font-size: 9px; }
.countdown b { color: #83bdf5; font-size: 24px; line-height: 30px; font-weight: 400; }
.primary-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 17px 15px; border: 0; border-radius: 17px; background: #f1f8ff; color: #0869cd; font-size: 13px; font-weight: 800; cursor: pointer; }
.primary-button:hover { background: #d7ebff; }
.text-button { border: 0; background: transparent; padding: 18px 0 8px; color: #d2e8ff; font-size: 11px; cursor: pointer; }
.text-button span { margin-left: 7px; }
.records-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 40px 26px 26px; border: 1px solid #87c7ff40; border-radius: 28px; background: radial-gradient(ellipse at 90% 0%, #0c3d6c, #071b31 65%); color: #fff; box-shadow: 0 25px 100px #0008; }
.records-dialog::backdrop { background: #010b19c9; }
.subscription-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100svh - 32px); overflow-y: auto; padding: 28px; text-align: center; border: 1px solid #87c7ff40; border-radius: 28px; background: radial-gradient(ellipse at 50% 0%, #123d67, #071b31 70%); color: #fff; }
.subscription-dialog::backdrop { background: #010b19e8; }
.subscription-duck { width: min(100%, 170px, 25svh); aspect-ratio: 1; margin: 0 auto 16px; }
.leaderboard-duck { display: block; margin-bottom: 14px; object-fit: contain; }
.subscription-dialog h2 { font-size: 38px; margin: 16px 0; }
.subscription-dialog p { color: #b9d3f7; font-size: 13px; line-height: 1.6; }
.subscription-dialog .primary-button { margin-top: 12px; text-decoration: none; }
.check-subscription { background: #248be8; color: #fff; }
.check-subscription:disabled { opacity: .6; cursor: wait; }
.subscription-dialog .subscription-status { font-size: 11px; min-height: 36px; }
.subscription-dialog .text-button { display: block; width: 100%; padding: 12px 0; }
.dialog-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #ffffff12; color: #cde6ff; font-size: 23px; cursor: pointer; }
.records-dialog h2 { font-size: 34px; }
.records-dialog p { color: #b9d3f7; font-size: 13px; line-height: 1.6; }
.records-dialog .records-note { font-size: 11px; margin: 22px 0; }
.records-list { padding-left: 26px; }
.records-list li { padding: 12px 4px; border-bottom: 1px solid #ffffff18; color: #d9eeff; font-size: 14px; }
.screen { transform: translate3d(0, calc((var(--index, 0) - var(--screen, 0)) * 100% + var(--drag, 0px)), 0); }
.game-invitation { border-top: 1px solid #ffffff24; padding-top: 19px; margin-top: 23px; }
.game-invitation h3 { font-size: 19px; letter-spacing: -.6px; margin: 0 0 8px; }
.game-invitation p { color: #b9d3f7; font-size: 12px; line-height: 1.5; margin: 0; }
.game-swipe { padding-top: 10px; margin-top: 0; font-size: 10px; }
.game-screen { padding: 82px 6% 24px; gap: 10px; }
.game-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.game-heading .chapter { margin-bottom: 7px; font-size: 8px; }
.game-heading h2 { font-size: 29px; margin: 0; letter-spacing: -1.3px; }
.leaders-button { background: #9bccff16; border: 1px solid #bddfff30; border-radius: 20px; color: #cbe7ff; padding: 10px 12px; font-size: 10px; cursor: pointer; }
.game-hud { display: flex; justify-content: space-between; align-items: center; padding: 5px 4px; color: #a5c8e7; font-size: 8px; letter-spacing: 1.5px; }
.game-hud strong { color: #fff; font-size: 22px; letter-spacing: -1px; margin-left: 7px; font-variant-numeric: tabular-nums; }
.game-arena { flex: 1; min-height: 240px; position: relative; border: 1px solid #a4d6ff40; border-radius: 24px; overflow: hidden; box-shadow: 0 15px 40px #00172d40; background: #052039; }
#flight-canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; touch-action: none; }
.game-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 22px; background: #041b35b8; }
.game-mascot-slot { flex: 0 1 224px; min-height: 0; width: 100%; container-type: size; display: grid; place-items: center; }
.game-mascot { width: min(100%, 100cqh, 224px); aspect-ratio: 1; }
.game-instruction { flex-shrink: 0; color: #c2ddf3; font-size: 12px; line-height: 1.6; margin: 0; }
.play-button { flex-shrink: 0; max-width: 240px; }
.pause-button { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 1px solid #b0dfff40; background: #082039aa; border-radius: 12px; color: white; cursor: pointer; }
.game-status { font-size: 10px; line-height: 1.4; text-align: center; color: #b9d3f7; min-height: 14px; margin: 0; }
.game-back { flex-shrink: 0; padding: 8px; font-size: 11px; }
.wrapped.is-dragging .screen { transition: none; }
.wrapped.is-dragging .screen, .wrapped.is-transitioning .screen { will-change: transform; }

@keyframes swipe-up { 0%, 100% { transform: translateY(4px); opacity: .55; } 50% { transform: translateY(-5px); opacity: 1; } }
@keyframes northern-lights { from { transform: translate3d(-3%, 2%, 0) rotate(-4deg); opacity: .4; } to { transform: translate3d(3%, -2%, 0) rotate(4deg); opacity: 1; } }
@keyframes snow-drift { from { transform: translate3d(-3px, -12px, 0); opacity: .35; } to { transform: translate3d(5px, 12px, 0); opacity: .65; } }

@media (min-width: 620px) {
  body { min-height: 100svh; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at 50% 70%, #0a2946, #080e17 65%); }
  .wrapped { height: min(860px, calc(100svh - 40px)); border-radius: 32px; box-shadow: 0 30px 100px #0007, 0 0 0 1px #ffffff0b; }
}

@media (max-height: 740px) {
  .screen { padding-top: 67px; }
  .welcome-duck { width: min(100%, 100cqh, 300px); }
  .welcome-copy { margin-top: 15px; }
  .eyebrow { margin-bottom: 9px; }
  .swipe-prompt { padding-top: 10px; margin-top: 4px; }
  .overview { padding: 76px 9% 24px; }
  .overview .chapter { margin-bottom: 0; }
  .overview h2 { font-size: 32px; margin: 12px 0; }
  .overview-intro { font-size: 12px; line-height: 1.4; margin: 10px 0; }
  .chapter-card { padding: 10px 12px; }
  .chapter-card h3 { font-size: 13px; }
  .chapter-card p { font-size: 9px; }
  .chapters { margin-top: 16px; gap: 8px; }
  .data-note { font-size: 10px; line-height: 1.4; margin: 12px 0; }
  .back-button { padding: 10px; }
  .overview.is-waiting { padding-top: 73px; }
  .waiting-duck { width: min(100%, 144px, 24svh); margin: 8px auto; }
  .launch-content h2 { font-size: 30px; margin: 13px 0 10px; }
  .launch-description { font-size: 12px; }
  .countdown { margin: 20px 0; gap: 7px; }
  .countdown strong { font-size: 30px; }
  .primary-button { padding: 15px 12px; font-size: 12px; }
  .game-invitation { margin-top: 14px; padding-top: 13px; }
  .game-invitation h3 { font-size: 17px; }
  .game-invitation p { font-size: 11px; }
  .game-swipe { padding-top: 4px; gap: 0; font-size: 9px; }
  .game-swipe .swipe-arrow { height: 32px; }
  .game-screen { padding: 72px 6% 22px; gap: 8px; }
  .game-heading h2 { font-size: 25px; }
  .game-overlay { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
