@font-face {
  font-family: "DOS VGA";
  src: url("../fonts/perfect-dos-vga-437-win.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alagard";
  src: url("../fonts/alagard.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font-display: "Alagard", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-dos: "DOS VGA", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --g-blue: #4285f4;
  --g-red: #ea4335;
  --g-yellow: #fbbc05;
  --g-green: #34a853;

  --blue-glow: rgba(66, 133, 244, 0.62);
  --red-glow: rgba(234, 67, 53, 0.58);
  --yellow-glow: rgba(251, 188, 5, 0.66);
  --green-glow: rgba(52, 168, 83, 0.56);

  --blue-ink: #1b5fc1;
  --red-ink: #c5221f;
  --yellow-ink: #7a5600;
  --green-ink: #137333;

  --sun: #ffd25e;
  --warm-glow-1: rgba(255, 246, 214, 0.8);
  --warm-glow-2: rgba(255, 206, 110, 0.3);
  --sun-hot: #fff3c4;
  --sky-deep: #0d4f9e;
  --sky-mid: #3f8ada;
  --sky-high: #a9d6f5;

  --ink: #0f2340;
  --ink-soft: #3d5573;
  --ink-faint: #5b7089;

  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --glass-line: rgba(255, 255, 255, 0.72);
  --glass-edge: rgba(24, 56, 100, 0.14);
  --glass-shadow: 0 26px 60px rgba(12, 40, 84, 0.24), 0 4px 14px rgba(12, 40, 84, 0.12);

  --r-card: 26px;
  --step: 118%;
  --r-pill: 999px;
  --card-w: 336px;
  --card-h: 322px;
  --ease-swoosh: cubic-bezier(0.22, 1, 0.28, 1);
  --top-h: 60px;
  --bar-h: 78px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--sky-deep);
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100dvh;
}

h1, h2, h3, p, ul, li, figure { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }

.sr {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 400;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: #fff; color: var(--ink); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: top 0.18s ease;
}
.skip:focus { top: 12px; }

.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.grain { display: none; }

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

.sky__base,
.sky__warm,
.sky__sun,
.sky__vignette { position: absolute; inset: 0; }

.sky__base {
  background:
    linear-gradient(180deg, #1a63b8 0%, #2f7ecc 34%, #63a7e0 62%, #a9d6f5 100%);
}
.sky__base::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 50% 118%, rgba(255, 231, 176, 0.5), rgba(255, 231, 176, 0) 62%);
}

.sky__warm {
  opacity: 0;
  background:
    linear-gradient(180deg, #0f4a96 0%, #3f7fc4 26%, #8fbde8 54%, #ffd9a6 82%, #ffc777 100%);
  transition: opacity 1.3s var(--ease-swoosh);
}
.sky__sun {
  opacity: 0;
  background: radial-gradient(58% 44% at 68% 24%, rgba(255, 246, 214, 0.92), rgba(255, 213, 128, 0.34) 44%, rgba(255, 213, 128, 0) 74%);
  transition: opacity 1.5s var(--ease-swoosh);
}
.sky__vignette {
  background: radial-gradient(120% 90% at 50% 40%, rgba(6, 28, 60, 0) 40%, rgba(6, 28, 60, 0.34) 100%);
  pointer-events: none;
}

body[data-stage="fly"] .sky__warm,
body[data-stage="chat"] .sky__warm { opacity: 1; }
body[data-stage="fly"] .sky__sun,
body[data-stage="chat"] .sky__sun { opacity: 1; }

.deckglow { position: absolute; left: -6%; right: -6%; top: -10%; bottom: -10%; pointer-events: none; }
.deckglow i {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--w);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), rgba(255, 255, 255, 0) 100%);
  opacity: var(--o);
  animation: orbDrift var(--dur) ease-in-out infinite alternate;
}
@keyframes orbDrift {
  from { transform: translate(-50%, -50%); }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))); }
}

.filterdefs { position: absolute; width: 0; height: 0; overflow: hidden; }

.world {
  position: fixed;
  inset: 0;
  z-index: 1;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.deck {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}
.deck--high { top: -100dvh; }

.skyfield {
  position: absolute;
  left: 0;
  top: -100dvh;
  width: 100%;
  height: 200dvh;
}

.cloudfield {
  position: absolute;
  left: -6%;
  right: -6%;
  top: -10%;
  bottom: -10%;
  background-image: url("../img/clouds.webp");
  background-repeat: no-repeat;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.cloudfield--far {
  background-image: url("../img/clouds-far.webp");
  background-size: 100% 100%;
  background-position: 50% 50%;
  opacity: 0.62;
}
.cloudfield--near {
  background-size: 100% 100%;
  background-position: 50% 50%;
}
.cloudfield--warm {
  background-size: 132% 132%;
  background-position: 38% 2%;
  opacity: 0;
  transition: opacity 1.4s var(--ease-swoosh);
}
body[data-stage="fly"] .cloudfield--warm,
body[data-stage="chat"] .cloudfield--warm { opacity: 0.86; }

.warmlight {
  position: absolute;
  left: -6%;
  right: -6%;
  top: -10%;
  bottom: -10%;
  background: radial-gradient(46% 34% at 70% 26%, var(--warm-glow-1), var(--warm-glow-2) 48%, rgba(255, 255, 255, 0) 78%);
  opacity: 0;
  transition: opacity 1.5s var(--ease-swoosh);
  pointer-events: none;
}
body[data-stage="fly"] .warmlight,
body[data-stage="chat"] .warmlight { opacity: 1; }

.stage {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--top-h) + 14px) 20px calc(var(--bar-h) + 16px);
}
.stage--pick { gap: 0; }
.stage--pick::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--top-h) + 40px);
  width: min(940px, 96vw);
  height: 300px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(6, 26, 54, 0.54), rgba(6, 26, 54, 0.22) 62%, rgba(6, 26, 54, 0) 100%);
  pointer-events: none;
  z-index: -1;
}
.stage--chat { padding: calc(var(--top-h) + 8px) 24px calc(var(--bar-h) + 10px); justify-content: center; }

.stage__kicker {
  font-family: var(--font-dos);
  -webkit-font-smoothing: none;
  font-smooth: never;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 2px 2px 0 rgba(6, 30, 64, 0.75);
}
.stage__title {
  font-family: var(--font-display);
  font-weight: 400;
  -webkit-font-smoothing: none;
  font-smooth: never;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.04;
  margin: 12px 0 0;
  color: #ffffff;
  text-shadow: 0 3px 0 rgba(22, 66, 122, 0.34), 0 14px 34px rgba(6, 30, 64, 0.5);
}
.stage__lede {
  max-width: 620px;
  margin: 16px 0 0;
  text-align: center;
  text-wrap: balance;
  font-family: var(--font-dos);
  -webkit-font-smoothing: none;
  font-smooth: never;
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
  text-shadow: 2px 2px 0 rgba(6, 30, 64, 0.8);
}
.stage__hint {
  font-size: 12.5px;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(6, 30, 64, 0.6);
}


.sky__moon {
  position: absolute;
  left: 93%;
  top: 58%;
  width: 108px;
  height: 108px;
  margin: -54px 0 0 -54px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 30%, rgba(198, 214, 234, 0.5) 0%, rgba(198, 214, 234, 0) 22%),
    radial-gradient(circle at 36% 66%, rgba(190, 208, 230, 0.45) 0%, rgba(190, 208, 230, 0) 18%),
    radial-gradient(circle at 30% 32%, #ffffff 0%, #f2f7fd 34%, #dde8f4 62%, #bccde1 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 0 34px 8px rgba(236, 246, 255, 0.72),
    0 0 90px 30px rgba(196, 222, 252, 0.42),
    0 0 190px 80px rgba(150, 195, 245, 0.22),
    0 0 320px 160px rgba(120, 170, 235, 0.1);
  opacity: 0;
  transition: opacity 1.3s ease;
  pointer-events: none;
  transform: translateY(calc(-1 * var(--cam-y, 0px)));
}
.moonwash {
  position: absolute;
  left: -6%;
  right: -6%;
  top: -10%;
  bottom: -10%;
  background: radial-gradient(52% 44% at 92% 20%, rgba(214, 236, 255, 0.58), rgba(158, 196, 244, 0.2) 46%, rgba(150, 190, 240, 0) 80%);
  opacity: 0;
  transition: opacity 1.3s ease;
  pointer-events: none;
}
.sky__stars {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 42%;
  bottom: 42%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%271600%27 height=%271000%27%3E%3Cg fill=%27%23ffffff%27%3E%3Ccircle cx=%27520.2%27 cy=%27155.0%27 r=%270.7%27 opacity=%270.4%27/%3E%3Ccircle cx=%27857.0%27 cy=%27367.3%27 r=%270.7%27 opacity=%270.94%27/%3E%3Ccircle cx=%27346.9%27 cy=%2790.9%27 r=%271.6%27 opacity=%270.4%27/%3E%3Ccircle cx=%27150.1%27 cy=%27425.4%27 r=%270.8%27 opacity=%270.97%27/%3E%3Ccircle cx=%271007.4%27 cy=%27582.0%27 r=%270.7%27 opacity=%270.73%27/%3E%3Ccircle cx=%27635.9%27 cy=%27970.5%27 r=%270.7%27 opacity=%270.71%27/%3E%3Ccircle cx=%27217.5%27 cy=%27420.1%27 r=%270.8%27 opacity=%270.72%27/%3E%3Ccircle cx=%27895.7%27 cy=%27679.8%27 r=%270.8%27 opacity=%270.73%27/%3E%3Ccircle cx=%271020.6%27 cy=%27373.9%27 r=%270.8%27 opacity=%270.72%27/%3E%3Ccircle cx=%27989.0%27 cy=%27496.5%27 r=%271.6%27 opacity=%270.86%27/%3E%3Ccircle cx=%27745.4%27 cy=%27918.4%27 r=%271.3%27 opacity=%270.54%27/%3E%3Ccircle cx=%271267.5%27 cy=%27696.6%27 r=%271.0%27 opacity=%270.4%27/%3E%3Ccircle cx=%27482.8%27 cy=%27495.2%27 r=%271.3%27 opacity=%270.82%27/%3E%3Ccircle cx=%27463.2%27 cy=%27974.4%27 r=%270.8%27 opacity=%270.68%27/%3E%3Ccircle cx=%27268.0%27 cy=%27344.0%27 r=%272.0%27 opacity=%270.62%27/%3E%3Ccircle cx=%271533.7%27 cy=%2782.7%27 r=%271.3%27 opacity=%270.57%27/%3E%3Ccircle cx=%27562.1%27 cy=%27496.7%27 r=%272.0%27 opacity=%270.39%27/%3E%3Ccircle cx=%27154.6%27 cy=%27272.7%27 r=%270.8%27 opacity=%270.39%27/%3E%3Ccircle cx=%271120.0%27 cy=%27645.4%27 r=%272.0%27 opacity=%270.53%27/%3E%3Ccircle cx=%27618.6%27 cy=%27666.6%27 r=%270.7%27 opacity=%270.96%27/%3E%3Ccircle cx=%27570.5%27 cy=%27609.6%27 r=%272.0%27 opacity=%270.39%27/%3E%3Ccircle cx=%271226.0%27 cy=%27133.8%27 r=%271.0%27 opacity=%270.61%27/%3E%3Ccircle cx=%271461.9%27 cy=%27496.5%27 r=%270.9%27 opacity=%270.64%27/%3E%3Ccircle cx=%27878.5%27 cy=%27878.8%27 r=%271.6%27 opacity=%270.91%27/%3E%3Ccircle cx=%27448.1%27 cy=%27416.3%27 r=%271.3%27 opacity=%270.79%27/%3E%3Ccircle cx=%27610.1%27 cy=%27234.0%27 r=%270.8%27 opacity=%270.46%27/%3E%3Ccircle cx=%27374.3%27 cy=%27236.5%27 r=%272.0%27 opacity=%270.89%27/%3E%3Ccircle cx=%27295.6%27 cy=%27284.5%27 r=%270.9%27 opacity=%270.62%27/%3E%3Ccircle cx=%27592.4%27 cy=%27565.5%27 r=%270.9%27 opacity=%270.8%27/%3E%3Ccircle cx=%27824.6%27 cy=%27616.2%27 r=%270.7%27 opacity=%270.65%27/%3E%3Ccircle cx=%271389.1%27 cy=%27946.5%27 r=%271.6%27 opacity=%270.61%27/%3E%3Ccircle cx=%27631.9%27 cy=%27481.7%27 r=%271.6%27 opacity=%270.39%27/%3E%3Ccircle cx=%27112.9%27 cy=%27212.3%27 r=%270.9%27 opacity=%270.42%27/%3E%3Ccircle cx=%27960.0%27 cy=%27107.2%27 r=%270.9%27 opacity=%270.7%27/%3E%3Ccircle cx=%271512.9%27 cy=%27612.4%27 r=%270.8%27 opacity=%270.92%27/%3E%3Ccircle cx=%27981.1%27 cy=%27152.8%27 r=%271.1%27 opacity=%270.97%27/%3E%3Ccircle cx=%27962.4%27 cy=%27474.5%27 r=%270.8%27 opacity=%270.9%27/%3E%3Ccircle cx=%271583.0%27 cy=%27466.4%27 r=%272.0%27 opacity=%270.55%27/%3E%3Ccircle cx=%27234.9%27 cy=%27746.7%27 r=%271.1%27 opacity=%270.66%27/%3E%3Ccircle cx=%271105.0%27 cy=%27516.1%27 r=%271.0%27 opacity=%270.97%27/%3E%3Ccircle cx=%27844.9%27 cy=%27150.8%27 r=%270.7%27 opacity=%270.84%27/%3E%3Ccircle cx=%27479.4%27 cy=%27641.2%27 r=%270.8%27 opacity=%270.8%27/%3E%3Ccircle cx=%27420.7%27 cy=%27368.3%27 r=%270.9%27 opacity=%270.58%27/%3E%3Ccircle cx=%27359.8%27 cy=%27541.1%27 r=%271.3%27 opacity=%270.76%27/%3E%3Ccircle cx=%27979.8%27 cy=%27784.9%27 r=%271.0%27 opacity=%270.87%27/%3E%3Ccircle cx=%271305.5%27 cy=%27737.0%27 r=%271.0%27 opacity=%270.48%27/%3E%3Ccircle cx=%27788.5%27 cy=%27728.2%27 r=%270.7%27 opacity=%270.86%27/%3E%3Ccircle cx=%27755.9%27 cy=%27197.3%27 r=%271.3%27 opacity=%270.64%27/%3E%3Ccircle cx=%271494.0%27 cy=%27982.2%27 r=%271.3%27 opacity=%270.4%27/%3E%3Ccircle cx=%27168.2%27 cy=%27470.4%27 r=%271.3%27 opacity=%270.48%27/%3E%3Ccircle cx=%27997.0%27 cy=%27895.5%27 r=%270.7%27 opacity=%270.66%27/%3E%3Ccircle cx=%271042.9%27 cy=%27796.0%27 r=%270.8%27 opacity=%270.89%27/%3E%3Ccircle cx=%27196.4%27 cy=%27389.9%27 r=%271.0%27 opacity=%270.66%27/%3E%3Ccircle cx=%27289.5%27 cy=%27785.7%27 r=%271.3%27 opacity=%270.41%27/%3E%3Ccircle cx=%271508.5%27 cy=%27719.2%27 r=%272.0%27 opacity=%270.61%27/%3E%3Ccircle cx=%271509.5%27 cy=%27722.1%27 r=%270.9%27 opacity=%271.0%27/%3E%3Ccircle cx=%2749.7%27 cy=%27589.7%27 r=%272.0%27 opacity=%270.87%27/%3E%3Ccircle cx=%27238.1%27 cy=%27822.6%27 r=%272.0%27 opacity=%270.78%27/%3E%3Ccircle cx=%27562.4%27 cy=%27548.1%27 r=%270.9%27 opacity=%270.36%27/%3E%3Ccircle cx=%271275.4%27 cy=%27723.7%27 r=%270.8%27 opacity=%270.69%27/%3E%3Ccircle cx=%271488.6%27 cy=%27434.6%27 r=%271.0%27 opacity=%270.89%27/%3E%3Ccircle cx=%27341.1%27 cy=%27254.8%27 r=%271.1%27 opacity=%270.68%27/%3E%3Ccircle cx=%271218.7%27 cy=%27328.1%27 r=%271.6%27 opacity=%270.89%27/%3E%3Ccircle cx=%27102.7%27 cy=%27737.0%27 r=%272.0%27 opacity=%270.78%27/%3E%3Ccircle cx=%271300.3%27 cy=%27516.6%27 r=%270.9%27 opacity=%270.7%27/%3E%3Ccircle cx=%27837.3%27 cy=%2724.5%27 r=%272.0%27 opacity=%270.85%27/%3E%3Ccircle cx=%27972.4%27 cy=%27772.7%27 r=%270.9%27 opacity=%270.46%27/%3E%3Ccircle cx=%27757.9%27 cy=%27722.5%27 r=%270.7%27 opacity=%270.56%27/%3E%3Ccircle cx=%27829.1%27 cy=%27554.8%27 r=%270.8%27 opacity=%270.92%27/%3E%3Ccircle cx=%2796.2%27 cy=%27195.0%27 r=%270.7%27 opacity=%270.85%27/%3E%3Ccircle cx=%27812.2%27 cy=%27561.0%27 r=%270.8%27 opacity=%270.64%27/%3E%3Ccircle cx=%27978.7%27 cy=%27505.5%27 r=%271.0%27 opacity=%270.8%27/%3E%3Ccircle cx=%27724.3%27 cy=%27532.9%27 r=%272.0%27 opacity=%270.68%27/%3E%3Ccircle cx=%27399.3%27 cy=%27522.9%27 r=%271.1%27 opacity=%270.95%27/%3E%3Ccircle cx=%271423.7%27 cy=%27206.2%27 r=%272.0%27 opacity=%270.44%27/%3E%3Ccircle cx=%27199.1%27 cy=%27442.8%27 r=%270.8%27 opacity=%270.79%27/%3E%3Ccircle cx=%27686.2%27 cy=%27216.1%27 r=%271.1%27 opacity=%270.86%27/%3E%3Ccircle cx=%271430.5%27 cy=%27158.6%27 r=%271.3%27 opacity=%270.44%27/%3E%3Ccircle cx=%271407.9%27 cy=%27961.9%27 r=%271.0%27 opacity=%270.84%27/%3E%3Ccircle cx=%27155.5%27 cy=%27880.3%27 r=%270.9%27 opacity=%270.99%27/%3E%3Ccircle cx=%271327.9%27 cy=%27165.5%27 r=%271.6%27 opacity=%271.0%27/%3E%3Ccircle cx=%27647.2%27 cy=%27422.2%27 r=%271.3%27 opacity=%270.56%27/%3E%3Ccircle cx=%271152.8%27 cy=%2725.2%27 r=%272.0%27 opacity=%270.64%27/%3E%3Ccircle cx=%2734.7%27 cy=%27333.5%27 r=%271.1%27 opacity=%270.68%27/%3E%3Ccircle cx=%27108.1%27 cy=%27979.3%27 r=%271.0%27 opacity=%270.98%27/%3E%3Ccircle cx=%27172.4%27 cy=%27268.4%27 r=%270.7%27 opacity=%270.94%27/%3E%3Ccircle cx=%27294.3%27 cy=%27752.7%27 r=%271.6%27 opacity=%270.9%27/%3E%3Ccircle cx=%271079.4%27 cy=%27940.6%27 r=%271.6%27 opacity=%270.45%27/%3E%3Ccircle cx=%271465.6%27 cy=%27569.7%27 r=%271.3%27 opacity=%270.41%27/%3E%3Ccircle cx=%2797.4%27 cy=%27685.9%27 r=%271.6%27 opacity=%270.93%27/%3E%3Ccircle cx=%27433.1%27 cy=%2722.6%27 r=%270.8%27 opacity=%270.87%27/%3E%3Ccircle cx=%27139.0%27 cy=%27852.0%27 r=%270.8%27 opacity=%270.52%27/%3E%3Ccircle cx=%27199.2%27 cy=%2717.4%27 r=%271.6%27 opacity=%270.95%27/%3E%3Ccircle cx=%27431.4%27 cy=%27133.7%27 r=%271.0%27 opacity=%270.96%27/%3E%3Ccircle cx=%271545.1%27 cy=%27264.8%27 r=%270.9%27 opacity=%270.48%27/%3E%3Ccircle cx=%27501.4%27 cy=%27307.3%27 r=%271.0%27 opacity=%270.54%27/%3E%3Ccircle cx=%27800.1%27 cy=%27181.8%27 r=%271.3%27 opacity=%270.87%27/%3E%3Ccircle cx=%271585.3%27 cy=%2742.5%27 r=%270.7%27 opacity=%270.83%27/%3E%3Ccircle cx=%27881.1%27 cy=%27193.2%27 r=%272.0%27 opacity=%270.51%27/%3E%3Ccircle cx=%27715.9%27 cy=%27656.4%27 r=%271.6%27 opacity=%270.78%27/%3E%3Ccircle cx=%27872.9%27 cy=%27884.1%27 r=%271.1%27 opacity=%270.8%27/%3E%3Ccircle cx=%271566.1%27 cy=%27344.6%27 r=%270.9%27 opacity=%270.61%27/%3E%3Ccircle cx=%27557.9%27 cy=%2759.7%27 r=%270.9%27 opacity=%270.36%27/%3E%3Ccircle cx=%27999.2%27 cy=%27875.3%27 r=%271.6%27 opacity=%270.46%27/%3E%3Ccircle cx=%27140.2%27 cy=%27837.2%27 r=%271.1%27 opacity=%270.74%27/%3E%3Ccircle cx=%271106.0%27 cy=%2750.7%27 r=%270.9%27 opacity=%270.45%27/%3E%3Ccircle cx=%27714.0%27 cy=%27266.1%27 r=%271.3%27 opacity=%270.98%27/%3E%3Ccircle cx=%27874.8%27 cy=%27247.5%27 r=%271.1%27 opacity=%270.49%27/%3E%3Ccircle cx=%27296.5%27 cy=%27337.3%27 r=%270.8%27 opacity=%270.66%27/%3E%3Ccircle cx=%27804.4%27 cy=%27204.6%27 r=%270.7%27 opacity=%270.41%27/%3E%3Ccircle cx=%271303.5%27 cy=%27148.1%27 r=%270.7%27 opacity=%270.61%27/%3E%3Ccircle cx=%27481.8%27 cy=%27628.1%27 r=%270.8%27 opacity=%270.73%27/%3E%3Ccircle cx=%27846.4%27 cy=%27747.5%27 r=%271.6%27 opacity=%270.85%27/%3E%3Ccircle cx=%271150.4%27 cy=%27494.3%27 r=%271.1%27 opacity=%270.82%27/%3E%3Ccircle cx=%271027.4%27 cy=%2749.3%27 r=%271.6%27 opacity=%270.83%27/%3E%3Ccircle cx=%271295.8%27 cy=%27143.6%27 r=%270.7%27 opacity=%270.89%27/%3E%3Ccircle cx=%27933.5%27 cy=%27888.1%27 r=%271.0%27 opacity=%270.41%27/%3E%3Ccircle cx=%2772.5%27 cy=%27635.5%27 r=%270.8%27 opacity=%270.59%27/%3E%3Cg transform=%27translate(300 180) scale(1.0)%27 opacity=%270.95%27%3E%3Cpath d=%27M0 -11 l2.6 8.4 8.4 2.6 -8.4 2.6 -2.6 8.4 -2.6 -8.4 -8.4 -2.6 8.4 -2.6z%27/%3E%3C/g%3E%3Cg transform=%27translate(1180 760) scale(0.85)%27 opacity=%270.9%27%3E%3Cpath d=%27M0 -11 l2.6 8.4 8.4 2.6 -8.4 2.6 -2.6 8.4 -2.6 -8.4 -8.4 -2.6 8.4 -2.6z%27/%3E%3C/g%3E%3Cg transform=%27translate(860 120) scale(0.7)%27 opacity=%270.85%27%3E%3Cpath d=%27M0 -11 l2.6 8.4 8.4 2.6 -8.4 2.6 -2.6 8.4 -2.6 -8.4 -8.4 -2.6 8.4 -2.6z%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
  transform: translateY(calc(-1 * var(--cam-y, 0px)));
}
.nightveil {
  position: absolute;
  left: -6%;
  right: -6%;
  top: -10%;
  bottom: -10%;
  background: linear-gradient(180deg, rgba(4, 12, 26, 0.84) 0%, rgba(9, 24, 46, 0.68) 40%, rgba(14, 36, 66, 0.56) 70%, rgba(24, 58, 98, 0.5) 100%);
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

html[data-theme="night"] { color-scheme: dark; }
html[data-theme="night"] .sky__base {
  background: linear-gradient(180deg, #03080f 0%, #061527 34%, #0a2440 62%, #113458 100%);
}
html[data-theme="night"] .sky__base::after {
  background: radial-gradient(120% 70% at 50% 118%, rgba(110, 160, 215, 0.3), rgba(110, 160, 215, 0) 62%);
}
html[data-theme="night"] .sky__warm {
  background: linear-gradient(180deg, #16375c 0%, #0f2946 34%, #0a1d33 62%, #061223 100%);
}
html[data-theme="night"] .sky__sun {
  background: radial-gradient(58% 44% at 74% 20%, rgba(214, 232, 255, 0.5), rgba(150, 190, 235, 0.16) 44%, rgba(150, 190, 235, 0) 74%);
}
html[data-theme="night"] .sky__vignette {
  background: radial-gradient(120% 90% at 50% 40%, rgba(2, 8, 18, 0) 38%, rgba(2, 8, 18, 0.5) 100%);
}
html[data-theme="night"] .sky__moon { opacity: 1; }
html[data-theme="night"] .moonwash { opacity: 1; }
html[data-theme="night"] .sky__stars { opacity: 0.95; animation: starPulse 7s ease-in-out infinite; }
html[data-theme="night"] .nightveil { opacity: 1; }
html[data-theme="night"] .deckglow { opacity: 0.4; }
html[data-theme="night"] .grain { opacity: 0.14; }

@keyframes starPulse { 0%, 100% { opacity: 0.95; } 50% { opacity: 0.7; } }

.streaks { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.35s ease; }
.streaks i {
  position: absolute;
  left: var(--x);
  top: -30%;
  width: var(--w);
  height: 26%;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.72) 60%, rgba(255, 255, 255, 0));
  transform: translate3d(0, -40vh, 0);
}
body[data-stage="fly"] .streaks { opacity: 0.85; }
body[data-stage="fly"] .streaks i { animation: streakFall var(--dur) linear var(--delay) infinite; }
@keyframes streakFall {
  from { transform: translate3d(0, -40vh, 0) scaleY(0.6); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translate3d(0, 150vh, 0) scaleY(1.5); opacity: 0; }
}

.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  pointer-events: none;
}
.top::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 240px;
  background: linear-gradient(180deg, rgba(6, 28, 60, 0.42), rgba(6, 28, 60, 0.16) 46%, rgba(6, 28, 60, 0));
  pointer-events: none;
  z-index: -1;
}
.top > * { pointer-events: auto; position: relative; z-index: 1; }

.top__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px 0 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 26px rgba(10, 38, 78, 0.18);
  text-decoration: none;
}
.top__mark { width: 26px; height: 26px; border-radius: 8px; display: block; }
.top__word { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; color: #ffffff; text-shadow: 0 2px 8px rgba(8, 34, 70, 0.45); }

.top__link {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.38);
  text-shadow: 0 2px 8px rgba(8, 34, 70, 0.45);
}
.top__brand:hover, .top__link:hover { background: rgba(255, 255, 255, 0.44); }


.top__left { display: flex; align-items: center; gap: 10px; }

.switch {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 76px;
  height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(0deg, #8ecdf0 0%, #e9f7ff 100%);
  box-shadow: 0 10px 24px rgba(10, 38, 78, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  overflow: hidden;
  transition: background 0.7s ease, border-color 0.7s ease;
}
.switch__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.switch:has(.switch__input:focus-visible) { outline: 3px solid #ffffff; outline-offset: 3px; }
.switch__slider { position: absolute; inset: 0; transition: background 0.7s ease; }
.switch__sun,
.switch__moon {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transition: transform 0.6s var(--ease-swoosh), opacity 0.45s ease;
}
.switch__sun {
  background: radial-gradient(circle at 35% 34%, #fff3c2 0%, #ffc93f 58%, #f0a01c 100%);
  box-shadow: 0 0 14px rgba(255, 191, 45, 0.9);
}
.switch__moon {
  background: radial-gradient(circle at 36% 34%, #ffffff 0%, #dfe9f5 56%, #b6c6d9 100%);
  box-shadow: 0 0 14px rgba(214, 232, 255, 0.85);
  opacity: 0;
  transform: translateX(-22px) scale(0.5);
}
.switch__cloud {
  position: absolute;
  background: #ffffff;
  border-radius: var(--r-pill);
  transition: transform 0.7s var(--ease-swoosh), opacity 0.5s ease;
}
.switch__cloud--1 { width: 20px; height: 7px; top: 10px; left: 36px; }
.switch__cloud--1::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
}
.switch__cloud--2 { width: 14px; height: 5px; top: 24px; left: 46px; }
.switch__cloud--2::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
}
.switch__star {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #ffffff;
  clip-path: polygon(50% 0%, 62% 36%, 98% 36%, 68% 58%, 79% 92%, 50% 71%, 21% 92%, 32% 58%, 2% 36%, 38% 36%);
  opacity: 0;
  transform: scale(0.4);
  transition: transform 0.55s var(--ease-swoosh), opacity 0.5s ease;
}
.switch__star--1 { top: 9px; left: 15px; }
.switch__star--2 { top: 22px; left: 26px; width: 5px; height: 5px; }
.switch__star--3 { top: 12px; left: 40px; width: 4px; height: 4px; }

html[data-theme="night"] .switch {
  background: linear-gradient(0deg, #0b1b30 0%, #1b3454 100%);
  border-color: rgba(198, 222, 255, 0.6);
}
html[data-theme="night"] .switch__sun { opacity: 0; transform: translateX(40px) scale(0.45); }
html[data-theme="night"] .switch__moon { opacity: 1; transform: translateX(40px) scale(1); }
html[data-theme="night"] .switch__cloud { transform: translateX(-34px) scale(0.6); opacity: 0; }
html[data-theme="night"] .switch__star { opacity: 0.95; transform: scale(1); }
html[data-theme="night"] .switch__star--1 { animation: twinkle 2.4s ease-in-out infinite; }
html[data-theme="night"] .switch__star--2 { animation: twinkle 2.4s ease-in-out 0.5s infinite; }
html[data-theme="night"] .switch__star--3 { animation: twinkle 2.4s ease-in-out 1s infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.95; } 50% { opacity: 0.4; } }

.bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
}
.bar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 200px;
  background: linear-gradient(0deg, rgba(6, 28, 60, 0.62), rgba(6, 28, 60, 0.28) 52%, rgba(6, 28, 60, 0));
  pointer-events: none;
  z-index: -1;
}
.bar > * { position: relative; z-index: 1; }
.bar__note {
  max-width: 560px;
  text-wrap: pretty;
  font-size: 12.5px;
  line-height: 1.55;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(6, 30, 64, 0.8);
}
.bar__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 900px) {
  :root { --card-w: 300px; --card-h: 306px; }
  .bar { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 16px; }
  .bar__actions { justify-content: flex-start; width: 100%; }
}
@media (max-width: 980px) {
  .sky__moon { top: 53%; }
}
@media (max-width: 620px) {
  .sky__moon { left: 88%; top: 52%; width: 104px; height: 104px; margin: -52px 0 0 -52px; }
  :root {
    --card-w: 292px;
    --card-h: 262px;
    --step: 100%;
    --bar-h: 126px;
    --top-h: 58px;
  }
  .stage--pick { padding-top: calc(var(--top-h) + 4px); }
  .stage__kicker { display: none; }
  .stage__title { font-size: 34px; margin-top: 0; }
  .stage__lede { margin-top: 12px; }
  .stage--pick::before { height: 240px; top: calc(var(--top-h) + 8px); }
  .stage__hint { font-size: 12px; }
  .top { padding: 0 14px; }
  .top__word { display: none; }
  .bar { padding: 12px 16px; gap: 10px; }
  .bar__note { font-size: 12px; }
  .bar__btn { padding: 11px 14px; font-size: 12.5px; gap: 7px; }
  .bar__btn svg { width: 14px; height: 14px; }
}
@media (max-width: 430px) {
  :root { --card-w: 272px; --card-h: 246px; --top-h: 50px; }
  .stage__title { font-size: 30px; }
}

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

@media (prefers-reduced-motion: reduce) {
  .deckglow i { animation: none; }
  .sky__stars, .switch__star,
  html[data-theme="night"] .sky__stars,
  html[data-theme="night"] .switch__star { animation: none; }
  .sky__warm, .sky__sun { transition-duration: 0.001ms; }
  .streaks { display: none; }
}

.lite *, .lite *::before, .lite *::after { animation: none !important; }
.lite .sky__stars { opacity: 0.9; }
