/* Từ Số 0 Đến Transformer — a voyage through the channel's night sky.
   Palette from the videos (remotion/src/kit/sky/theme.ts). Every accent keeps one meaning:
   amber = now (the open pot, the main action) · ice = pulled early by the community
   --p   = the planet you are on (part colors from videos/roadmap-flow.html) */

/* Fonts, self-hosted (SIL Open Font License). One file per weight and script; a page only
   downloads the scripts its text uses (unicode-range). JetBrains Mono is variable: one file. */
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url("fonts/be-vietnam-pro-400-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url("fonts/be-vietnam-pro-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url("fonts/be-vietnam-pro-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url("fonts/be-vietnam-pro-500-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url("fonts/be-vietnam-pro-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url("fonts/be-vietnam-pro-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url("fonts/be-vietnam-pro-700-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url("fonts/be-vietnam-pro-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url("fonts/be-vietnam-pro-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 800; font-display: swap; src: url("fonts/be-vietnam-pro-800-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 800; font-display: swap; src: url("fonts/be-vietnam-pro-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 800; font-display: swap; src: url("fonts/be-vietnam-pro-800-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 900; font-display: swap; src: url("fonts/be-vietnam-pro-900-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 900; font-display: swap; src: url("fonts/be-vietnam-pro-900-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 900; font-display: swap; src: url("fonts/be-vietnam-pro-900-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500 700; font-display: swap; src: url("fonts/jetbrains-mono-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500 700; font-display: swap; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500 700; font-display: swap; src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --sky: #000000;
  --glow: #0a0a0c;
  --chart: #2a2a30;
  --star: #f3eedf;
  --star-soft: #cfcabf;
  --amber: #ffb547;
  --ice: #7fb2ff;
  --red: #ff5a4e;
  --mute: #9a9aa2;
  --glass: rgba(3, 3, 5, 0.72);
  --hair: rgba(243, 238, 223, 0.09);
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 16px;
  --col: min(600px, 100%);
  --p: var(--star);
}
@media (min-width: 900px) {
  :root {
    --gutter: clamp(32px, 6vw, 96px);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--star);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The universe. The canvas paints over the CSS stars whenever WebGL works. */
#space {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
}
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    radial-gradient(1px 1px at 8% 12%, #f3eedf, transparent 60%),
    radial-gradient(1px 1px at 27% 64%, #f3eedf, transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 22%, #f3eedf, transparent 60%),
    radial-gradient(1px 1px at 63% 81%, #f3eedf, transparent 60%),
    radial-gradient(1px 1px at 79% 37%, #f3eedf, transparent 60%),
    radial-gradient(1.5px 1.5px at 91% 71%, #f3eedf, transparent 60%),
    radial-gradient(1px 1px at 16% 88%, #9a9aa2, transparent 60%),
    radial-gradient(1px 1px at 53% 47%, #9a9aa2, transparent 60%),
    radial-gradient(1px 1px at 86% 9%, #9a9aa2, transparent 60%),
    radial-gradient(1px 1px at 35% 33%, #9a9aa2, transparent 60%);
  background-size: 620px 620px, 620px 620px, 620px 620px, 620px 620px, 620px 620px, 620px 620px,
    910px 910px, 910px 910px, 910px 910px, 910px 910px;
}

a {
  color: var(--star);
  text-decoration-color: rgba(243, 238, 223, 0.35);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--amber);
}
:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
  border-radius: 4px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
h1,
h2,
h3 {
  text-wrap: balance;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px var(--gutter);
}
.voyage .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  background: linear-gradient(rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.78) 65%, transparent);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark svg {
  color: var(--amber);
  flex: none;
  filter: drop-shadow(0 0 6px rgba(255, 181, 71, 0.8));
}
.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.site-nav a {
  color: var(--mute);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--star);
}
@media (max-width: 899px) {
  .site-nav {
    display: none;
  }
  .wordmark span {
    max-width: 44vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.fuel-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 181, 71, 0.45);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.fuel-chip .num {
  color: var(--star);
  font-size: 12px;
}
.chip-bar {
  --f: 0;
  position: relative;
  display: inline-block;
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: #1c1c21;
  overflow: hidden;
}
.chip-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--f) * 100%);
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.voyage-main {
  padding: 0 var(--gutter);
}
.stop {
  position: relative;
}
section[id] {
  scroll-margin-top: 72px;
}

/* ── Launch panel: mission control for the next episode ─────────────────── */

.launch {
  position: relative;
  max-width: 560px;
  padding: 24px;
  border: 1px solid rgba(255, 181, 71, 0.32);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 181, 71, 0.07), transparent 38%), var(--glass);
  box-shadow: 0 0 80px rgba(255, 181, 71, 0.07), inset 0 1px 0 rgba(255, 181, 71, 0.25);
}
@media (min-width: 900px) {
  .launch {
    padding: 30px;
    backdrop-filter: blur(10px);
  }
}
.launch-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
}
.launch-title {
  margin: 12px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.launch-title a {
  text-decoration: none;
}
.launch-ep {
  display: block;
  margin-bottom: 6px;
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}
.launch-sum {
  margin: 10px 0 0;
  color: var(--star-soft);
}
.launch-status {
  margin: 18px 0 0;
  color: var(--amber);
  font-weight: 700;
}
.launch-note {
  margin: 10px 0 0;
  color: var(--mute);
  font-size: 14px;
}
.launch-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
.countdown {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}
.countdown-label {
  color: var(--amber);
  font: 700 18px var(--mono);
}
.countdown .num {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fuel {
  margin-top: 14px;
}
.fuel-cells {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  height: 26px;
}
.fuel-cells i {
  border-radius: 3px;
  background: #141418;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: background 0.5s, box-shadow 0.5s;
}
.fuel-cells i.on {
  background: linear-gradient(180deg, #ffd08a, var(--amber) 60%, #d98a1e);
  box-shadow: 0 0 10px rgba(255, 181, 71, 0.55);
}
.fuel.is-full .fuel-cells i {
  animation: charge 2.2s ease-in-out infinite;
}
.fuel.is-full .fuel-cells i:nth-child(3n + 1) {
  animation-delay: 0.15s;
}
.fuel.is-full .fuel-cells i:nth-child(3n + 2) {
  animation-delay: 0.3s;
}
@keyframes charge {
  50% {
    filter: brightness(1.35);
    box-shadow: 0 0 18px rgba(255, 181, 71, 0.9);
  }
}
.fuel-read {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 10px;
}
.fuel-read .num {
  white-space: nowrap;
}
.fuel-label {
  color: var(--mute);
  font-size: 13px;
}
.fuel-read b {
  font-size: clamp(18px, 5vw, 22px);
}
.fuel-read .of {
  color: var(--mute);
  font-size: 14px;
}

/* ── Crew, rules, signal ─────────────────────────────────────────────────── */

.crew,
.signal {
  padding: 24px;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: var(--glass);
}
@media (min-width: 900px) {
  .crew,
  .signal {
    backdrop-filter: blur(10px);
  }
}
.crew h3,
.signal h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.block-lede {
  margin: 6px 0 0;
  color: var(--mute);
  font-size: 15px;
}
.rules {
  display: grid;
  gap: 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}
.rules li {
  position: relative;
  padding-left: 40px;
  color: var(--star-soft);
  counter-increment: rule;
}
.rules li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--amber);
  font: 700 13px var(--mono);
}
.rules b {
  color: var(--star);
}

.crew-list {
  display: grid;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.crew-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--hair);
}
.crew-list .who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.crew-list .who svg {
  flex: none;
  color: var(--amber);
}
.crew-list .amount {
  color: var(--star-soft);
  font-size: 14px;
}
.crew-list .for {
  grid-column: 1;
  padding-left: 18px;
  color: var(--mute);
  font-size: 13px;
}
.crew-list .msg {
  grid-column: 1 / -1;
  padding-left: 18px;
  color: var(--star-soft);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.empty {
  color: var(--mute);
}

.subscribe-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.subscribe-form input {
  flex: 1;
}
@media (max-width: 420px) {
  .subscribe-form {
    flex-direction: column;
  }
}

.site-footer {
  padding: 40px var(--gutter) 64px;
  color: var(--mute);
  font-size: 14px;
}
.footer-links {
  display: flex;
  gap: 18px;
}

/* ── Buttons & fields ────────────────────────────────────────────────────── */

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 14px;
  font: 800 16px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  border: 0;
  background: var(--amber);
  color: #000;
  box-shadow: 0 0 30px rgba(255, 181, 71, 0.35);
  transition: box-shadow 0.3s, transform 0.2s;
}
.btn-primary:hover {
  box-shadow: 0 0 44px rgba(255, 181, 71, 0.6);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-primary:disabled {
  background: var(--chart);
  color: var(--mute);
  box-shadow: none;
  cursor: not-allowed;
}
@media (max-width: 560px) {
  .launch .btn-primary {
    width: 100%;
  }
}
.btn-secondary {
  border: 1px solid rgba(243, 238, 223, 0.4);
  background: transparent;
  color: var(--star);
}
.btn-secondary:hover {
  border-color: var(--star);
}
.btn-ghost {
  border: 1px dashed var(--chart);
  background: transparent;
  color: var(--mute);
  font-weight: 500;
  font-size: 14px;
  min-height: 40px;
}
.btn-danger {
  border: 1px solid var(--red);
  background: transparent;
  color: var(--red);
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--chart);
  border-radius: 12px;
  background: #07070a;
  color: var(--star);
  font: 400 16px/1.4 var(--sans);
}
input::placeholder,
textarea::placeholder {
  color: #6c6c74;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 0;
  border-color: transparent;
}
.field {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
}
.field > span {
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
}
.form-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--amber);
  font-size: 14px;
}

/* ── Donate dialog ───────────────────────────────────────────────────────── */

.donate {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid rgba(255, 181, 71, 0.35);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 181, 71, 0.08), transparent 30%), #050507;
  color: var(--star);
  box-shadow: 0 0 120px rgba(255, 181, 71, 0.15);
}
.donate::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.donate-inner {
  position: relative;
  padding: 26px;
}
.donate h2 {
  margin: 8px 40px 8px 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.donate-lede {
  margin: 0 0 16px;
  color: var(--mute);
  font-size: 15px;
}
.close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--mute);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.close:hover {
  color: var(--star);
}
.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.amounts legend {
  margin-bottom: 8px;
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
}
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.chip span {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--chart);
  border-radius: 999px;
  font: 500 14px/1.2 var(--mono);
  cursor: pointer;
}
.chip-custom span {
  font-family: var(--sans);
}
.chip input:checked + span {
  border-color: var(--amber);
  background: rgba(255, 181, 71, 0.12);
  color: var(--amber);
  box-shadow: 0 0 16px rgba(255, 181, 71, 0.25);
}
.chip input:focus-visible + span {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}
.custom-amount {
  margin-top: 4px;
}
.donate form .btn-primary {
  width: 100%;
  margin-top: 16px;
}
.warn {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 181, 71, 0.45);
  border-radius: 10px;
  color: var(--amber);
  font-size: 14px;
}
.qr {
  display: block;
  width: 240px;
  height: auto;
  min-height: 240px;
  margin: 8px auto 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 40px rgba(255, 181, 71, 0.2);
}
.bank {
  display: grid;
  gap: 8px;
  margin: 0;
}
.bank div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.bank dt {
  color: var(--mute);
  font-size: 14px;
}
.bank dd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.bank .memo {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--chart);
}
.bank .memo dd {
  justify-content: space-between;
}
.bank .code {
  white-space: nowrap;
  color: var(--amber);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.copy {
  flex: none;
  white-space: nowrap;
  padding: 4px 10px;
  border: 1px solid var(--chart);
  border-radius: 8px;
  background: transparent;
  color: var(--star);
  font: 500 13px var(--sans);
  cursor: pointer;
}
.waiting {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 4px;
  color: var(--amber);
  font-weight: 700;
}
.waiting::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
.fine {
  margin: 4px 0 0;
  color: var(--mute);
  font-size: 13px;
}
[data-step="pay"] .btn-ghost {
  width: 100%;
  margin-top: 16px;
}
[data-step="done"] {
  text-align: center;
}
.done-star {
  display: block;
  margin: 10px auto 14px;
  color: var(--amber);
  filter: drop-shadow(0 0 22px rgba(255, 181, 71, 0.9));
  animation: flare 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes flare {
  from {
    transform: scale(0.2) rotate(-90deg);
    opacity: 0;
  }
}
[data-step="done"] h2 {
  margin-right: 0;
}
[data-step="done"] p {
  color: var(--star-soft);
}

/* ── Episode page ────────────────────────────────────────────────────────── */

.ep-stage {
  min-height: 100vh;
  padding: 96px 0 40px;
}
.ep-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 24px;
}
.back-map {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px 0 15px;
  border: 1px solid color-mix(in srgb, var(--p) 55%, transparent);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--star);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.back-map svg {
  color: var(--p);
  transition: transform 0.2s;
}
.back-map:hover,
.back-map:focus-visible {
  border-color: var(--p);
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 0 24px color-mix(in srgb, var(--p) 30%, transparent);
}
.back-map:hover svg {
  transform: translateX(-3px);
}
.crumb {
  margin: 0;
  color: var(--mute);
  font-size: 14px;
}
.ep-grid {
  display: grid;
  gap: 28px;
  max-width: 900px;
}
.viewport {
  position: relative;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--p) 40%, transparent);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 90px color-mix(in srgb, var(--p) 18%, transparent);
}
.viewport video {
  display: block;
  width: 100%;
  max-height: 80vh;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  background: #000;
}
.ep-info {
  padding: 4px 0;
}
.ep-kicker {
  margin: 0;
  color: var(--p);
  font-size: 14px;
}
.ep-page-title {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 30px #000;
}
.ep-page-summary {
  margin: 0;
  max-width: 46ch;
  color: var(--star-soft);
  font-size: 18px;
}
.elsewhere {
  margin: 16px 0 0;
  color: var(--mute);
}
.ep-info .launch,
.ep-info .crew {
  margin-top: 24px;
}
.locked {
  margin: 22px 0 0;
  padding: 16px 18px;
  border: 1px dashed color-mix(in srgb, var(--p) 40%, transparent);
  border-radius: 14px;
  background: var(--glass);
  color: var(--star-soft);
}
.ep-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 900px;
  margin: 48px 0 0;
}
.ep-nav a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: var(--glass);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
}
.ep-nav a:hover {
  border-color: color-mix(in srgb, var(--p) 50%, transparent);
}
.ep-nav span {
  display: block;
  margin-bottom: 4px;
  color: var(--mute);
  font-weight: 500;
  font-size: 13px;
}
.ep-nav-next {
  text-align: right;
}

.message {
  max-width: 560px;
  margin: 0 auto;
  padding: 12vh var(--gutter) 0;
}
.message h1 {
  font-size: 36px;
  font-weight: 900;
}

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

/* ══ Galaxy map (home) ═══════════════════════════════════════════════════════ */

.map-page {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}
.no-webgl .map-page {
  overflow: auto;
  height: auto;
}
/* On the map the canvas is the thing you hold: above the page, under the HUD. */
.map-page #space {
  z-index: 0;
  cursor: grab;
}
.map-page #space:active {
  cursor: grabbing;
}
.map-page .fallback {
  display: none;
}
.no-webgl .map-page .fallback {
  display: block;
  padding: 32px var(--gutter) 80px;
}
.no-webgl .map-page .hud {
  display: none;
}

/* Start screen */
.start {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  padding: 80px var(--gutter);
  background: radial-gradient(ellipse at 70% 50%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.7) 75%);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.start[hidden] {
  display: none;
}
.start.is-leaving {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}
.no-webgl .start {
  position: relative;
  min-height: 70vh;
}
.no-webgl .btn-start {
  display: none;
}
.start-inner {
  max-width: 900px;
}
.start-kicker {
  margin: 0 0 18px;
  color: var(--amber);
  font-weight: 700;
  font-size: 15px;
}
.start-title {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-weight: 900;
  font-size: clamp(50px, calc(6vw + 12px), 124px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.9);
}
.start-title span:last-child {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--star);
  text-shadow: none;
}
.start-lede {
  max-width: 36ch;
  margin: 24px 0 0;
  color: var(--star-soft);
  font-size: clamp(18px, 2vw, 22px);
  text-shadow: 0 2px 20px #000;
}
.btn-start {
  position: relative;
  margin-top: 36px;
  padding: 18px 34px;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: #000;
  font: 900 18px/1 var(--sans);
  cursor: pointer;
  box-shadow: 0 0 40px rgba(255, 181, 71, 0.55);
}
.btn-start::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(255, 181, 71, 0.6);
  border-radius: 999px;
  animation: ping 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes ping {
  from {
    transform: scale(0.95);
    opacity: 1;
  }
  to {
    transform: scale(1.35, 1.7);
    opacity: 0;
  }
}
.start-meta {
  margin: 18px 0 0;
  color: var(--mute);
  font-size: 15px;
}
.start-meta .num {
  color: var(--star);
}

/* HUD */
.hud {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}
.is-started .hud {
  opacity: 1;
}
.hud > *,
.hud-top > * {
  pointer-events: auto;
}
.hud-top {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px var(--gutter);
  background: linear-gradient(rgba(0, 0, 0, 0.85), transparent);
  pointer-events: none;
}
.hud-progress {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--star);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.hud-bar {
  --f: 0;
  position: relative;
  width: 70px;
  height: 4px;
  border-radius: 2px;
  background: #1c1c21;
  overflow: hidden;
}
.hud-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--f) * 100%);
  background: linear-gradient(90deg, #5fd38d, #6fb6ff, #ff7aa8, #b49cff);
}
.hud-mine {
  color: var(--mute);
  font-weight: 500;
}
.hud-mine b {
  color: var(--star);
}
.hud-menu {
  display: flex;
  gap: 8px;
}
.hud-menu button,
.regions button,
.menu-list button {
  padding: 8px 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--star-soft);
  font: 700 13px/1.2 var(--sans);
  cursor: pointer;
}
.hud-menu button:hover,
.regions button:hover {
  border-color: rgba(243, 238, 223, 0.35);
  color: var(--star);
}
.hud-menu-mobile {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--star);
  cursor: pointer;
}
@media (max-width: 899px) {
  .hud-menu,
  .hud-mine,
  .map-page .wordmark span {
    display: none;
  }
  .hud-menu-mobile {
    display: grid;
    place-items: center;
  }
}

/* Mission card on the map */
.mission {
  position: absolute;
  left: var(--gutter);
  bottom: 24px;
  width: min(430px, calc(100vw - 2 * var(--gutter)));
  padding: 20px 22px;
}
.mission .launch-title {
  font-size: 24px;
}
.mission .launch-ep {
  font-size: 13px;
}
.mission .launch-status {
  margin-top: 10px;
  font-size: 14px;
}
.mission .launch-note {
  display: none;
}
.mission .countdown .num {
  font-size: 20px;
}
.launch-actions {
  display: flex;
  gap: 8px;
}
.launch-actions button {
  white-space: nowrap;
}
.mission .btn-primary,
.mission .btn-secondary {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}
@media (max-width: 899px) {
  .mission {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    padding: 14px 16px;
    border-radius: 18px;
  }
  .mission .launch-kicker,
  .mission .launch-status {
    display: none;
  }
  .mission .launch-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
  }
  .mission .fuel {
    margin-top: 10px;
  }
  .mission .fuel-cells {
    height: 16px;
    gap: 2px;
  }
  .mission .fuel-read {
    margin-top: 6px;
  }
  .mission .fuel-read b {
    font-size: 16px;
  }
  .mission .launch-foot {
    margin-top: 10px;
  }
  .has-selection .mission {
    display: none;
  }
}

/* Planet badges that follow the 3D planets */
.labels {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.pl {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 7px;
  border: 1px solid color-mix(in srgb, var(--p) 45%, transparent);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--star);
  font: 700 12px/1.2 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  will-change: transform;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.pl-num {
  font-family: var(--mono);
  color: var(--p);
}
.pl-glyph {
  font-family: var(--mono);
  color: var(--star-soft);
  font-weight: 500;
}
.pl-title {
  display: none;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl svg {
  flex: none;
}
.pl.is-open svg,
.pl.is-early svg {
  color: var(--p);
}
.pl.is-buy,
.pl.is-reserved {
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--mute);
}
.pl.is-buy .pl-num,
.pl.is-buy .pl-glyph {
  color: #6c6c74;
}
.pl.is-buy.is-ready {
  border-color: rgba(255, 181, 71, 0.55);
  color: var(--star);
}
.pl.is-buy.is-ready .pl-num {
  color: var(--p);
}
.pl.is-ready svg,
.pl-price,
.pl-tag {
  color: var(--amber);
}
.pl-tag {
  font-size: 11px;
  font-weight: 800;
}
.pl-price {
  font-family: var(--mono);
  font-weight: 700;
}
.pl.is-next {
  box-shadow: 0 0 18px rgba(255, 181, 71, 0.3);
}
.pl.is-boss {
  padding: 5px 11px 5px 9px;
  font-size: 13px;
}
.pl:hover,
.pl:focus-visible,
.pl.is-selected {
  z-index: 2;
  background: rgba(0, 0, 0, 0.85);
  border-color: var(--p);
}
.pl.is-buy:hover,
.pl.is-buy.is-selected {
  border-color: var(--amber);
}
.pl:hover .pl-title,
.pl:focus-visible .pl-title,
.pl.is-selected .pl-title {
  display: inline;
}
.pl-core {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber);
  font: 900 15px/1 var(--sans);
  letter-spacing: 0.02em;
  text-shadow: 0 0 16px rgba(255, 181, 71, 0.8);
  pointer-events: none;
}

/* Level card */
.level-card {
  position: absolute;
  right: calc(var(--gutter) + 8px);
  top: 50%;
  width: min(390px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100dvh - 180px);
  overflow: auto;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--p) 40%, transparent);
  border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--p) 12%, transparent), transparent 40%), rgba(3, 3, 5, 0.86);
  box-shadow: 0 0 80px color-mix(in srgb, var(--p) 16%, transparent);
  transform: translateY(-50%);
  animation: card-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 900px) {
  .level-card {
    backdrop-filter: blur(12px);
  }
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translate(16px, -50%);
  }
}
.level-card[hidden] {
  display: none;
}
.level-card .close {
  position: absolute;
  top: 10px;
  right: 10px;
}
.card-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 36px 0 0;
  color: var(--p);
  font-size: 13px;
  font-weight: 700;
}
.card-kicker .num {
  color: var(--mute);
  font-weight: 500;
}
.card-dot,
.region-dot,
.ll-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--p);
  box-shadow: 0 0 10px var(--p);
}
.card-glyph {
  margin: 18px 0 0;
  color: var(--p);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 24px color-mix(in srgb, var(--p) 70%, transparent);
}
.card-title {
  margin: 12px 0 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.card-sum {
  margin: 10px 0 0;
  color: var(--star-soft);
}
.card-status {
  margin: 14px 0 0;
  color: var(--mute);
  font-size: 14px;
}
.level-card.is-buy .card-status {
  color: var(--amber);
  font-weight: 700;
}
.card-mine {
  margin: 8px 0 0;
  color: var(--p);
  font-size: 14px;
  font-weight: 700;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.card-actions .btn-primary {
  gap: 10px;
}
.card-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--hair);
  border-radius: 12px;
  color: var(--mute);
  font-size: 14px;
}
@media (max-width: 899px) {
  .level-card {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    max-height: 62dvh;
    padding: 20px 18px 16px;
    border-width: 1px 0 0;
    border-radius: 22px 22px 0 0;
    transform: none;
    animation-name: sheet-in;
  }
  .card-glyph {
    display: none;
  }
  .card-title {
    font-size: 22px;
  }
}
@keyframes sheet-in {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}

/* Regions */
.regions {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-12%);
}
.regions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.region-all {
  color: var(--mute) !important;
}
@media (max-width: 1199px) {
  .regions {
    left: auto;
    right: var(--gutter);
    transform: none;
    flex-direction: column;
    align-items: flex-end;
  }
}
@media (max-width: 899px) {
  .regions {
    top: 66px;
    right: auto;
    bottom: auto;
    left: 10px;
    flex-direction: row;
    max-width: calc(100vw - 20px);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .regions button {
    flex: none;
    padding: 6px 11px;
    font-size: 12px;
  }
}

.hint {
  position: absolute;
  left: 50%;
  top: 76px;
  margin: 0;
  color: var(--mute);
  font-size: 13px;
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 0.6s;
  pointer-events: none;
}
.has-interacted .hint,
.has-selection .hint {
  opacity: 0;
}
@media (max-width: 899px) {
  .hint {
    top: 110px;
    width: calc(100vw - 40px);
  }
}

.toast {
  position: absolute;
  left: 50%;
  top: 90px;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid rgba(255, 181, 71, 0.6);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--amber);
  font-weight: 800;
  box-shadow: 0 0 40px rgba(255, 181, 71, 0.35);
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Sheets (menus) */
.sheet {
  margin: 0 0 0 auto;
  width: min(480px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--hair);
  background: #040406;
  color: var(--star);
}
.sheet.is-wide {
  width: min(680px, 100vw);
}
.sheet[open] {
  animation: drawer-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes drawer-in {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}
.sheet::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}
.sheet-inner {
  padding: 22px 24px 40px;
}
.sheet-head {
  position: sticky;
  top: -22px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -22px -24px 12px;
  padding: 22px 24px 14px;
  background: linear-gradient(#040406 70%, transparent);
}
.sheet-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.sheet-head .close {
  position: static;
}
.sheet .crew,
.sheet .signal {
  padding: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
}
.sheet .signal {
  margin-top: 32px;
}
.menu-list {
  display: grid;
  gap: 10px;
}
.menu-list button {
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 16px;
  text-align: left;
}
@media (max-width: 899px) {
  .sheet,
  .sheet.is-wide {
    margin: auto 0 0;
    width: 100vw;
    height: auto;
    max-height: 88dvh;
    border-left: 0;
    border-top: 1px solid var(--hair);
    border-radius: 22px 22px 0 0;
  }
  .sheet[open] {
    animation-name: sheet-in;
  }
}

/* The list of all planets */
.level-list {
  display: grid;
  gap: 28px;
}
.ll-region h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--p);
  font-size: 20px;
  font-weight: 900;
}
.ll-count {
  margin-left: auto;
  color: var(--mute);
  font-size: 13px;
  font-weight: 500;
}
.ll-lore {
  margin: 4px 0 10px;
  color: var(--mute);
  font-size: 14px;
}
.ll-region ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid color-mix(in srgb, var(--p) 20%, transparent);
  border-radius: 16px;
  overflow: hidden;
}
.ll-item + .ll-item .ll-row {
  border-top: 1px solid var(--hair);
}
.ll-row {
  display: grid;
  grid-template-columns: 26px 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  color: inherit;
  text-decoration: none;
}
a.ll-row:hover {
  background: color-mix(in srgb, var(--p) 9%, transparent);
}
.ll-num {
  color: var(--p);
  font-size: 13px;
}
.ll-glyph {
  color: var(--star-soft);
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
}
.ll-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}
.ll-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mute);
  font-size: 12px;
  white-space: nowrap;
}
.ll-item.is-open .ll-state,
.ll-item.is-early .ll-state {
  color: var(--star);
  font-weight: 700;
}
.ll-item.is-early .ll-state,
.ll-item.is-reserved .ll-state {
  color: var(--amber);
}
.ll-item.is-buy .ll-title,
.ll-item.is-buy .ll-num {
  color: #7a7a82;
}
@media (max-width: 560px) {
  .ll-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }
  .ll-glyph {
    display: none;
  }
}

.ep-glyph {
  margin-left: 12px;
  color: var(--star-soft);
}
.ep-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--mute);
  font-size: 15px;
}
.ep-status.is-buy {
  color: var(--amber);
  font-weight: 700;
}
.ep-mine {
  margin: 8px 0 0;
  color: var(--p);
  font-weight: 700;
  font-size: 14px;
}
/* With a planet open, the mission card steps back to its essentials. */
@media (min-width: 900px) {
  .has-selection .mission .launch-status,
  .has-selection .mission .fuel-read,
  .has-selection .mission .countdown {
    display: none;
  }
  .has-selection .mission {
    width: 340px;
    padding: 16px 18px;
  }
  .has-selection .mission .launch-title {
    font-size: 18px;
  }
  .has-selection .mission .fuel-cells {
    height: 12px;
  }
}

/* ══ Selling ══════════════════════════════════════════════════════════════════ */

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 181, 71, 0.5);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.account-link.is-in {
  border-color: var(--hair);
  color: var(--star);
  padding: 4px 12px 4px 4px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amber);
  color: #000;
  font-weight: 900;
  font-size: 13px;
}
@media (max-width: 899px) {
  .account-name {
    display: none;
  }
  .account-link.is-in {
    padding: 4px;
  }
}
.hud-top .account-link {
  pointer-events: auto;
}

.offer-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 12px 0 0;
}
.offer-price > .num {
  color: var(--amber);
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 0 24px rgba(255, 181, 71, 0.45);
}
.offer-alt {
  color: var(--mute);
  font-size: 14px;
}
.offer-mine {
  margin: 10px 0 0;
  color: var(--mute);
  font-size: 14px;
}
.offer-mine b {
  color: var(--star);
}
.offer .countdown-label {
  font: 700 13px var(--sans);
  color: var(--mute);
}
.offer .countdown .num {
  font-size: 18px;
}
.mission.offer .launch-note {
  display: block;
  font-size: 13px;
}
@media (max-width: 899px) {
  .mission.offer .launch-note,
  .mission.offer .offer-mine {
    display: none;
  }
  .offer-price {
    margin-top: 6px;
  }
  .offer-price > .num {
    font-size: 22px;
  }
}
@media (min-width: 900px) {
  .has-selection .offer .offer-price,
  .has-selection .offer .launch-note,
  .has-selection .offer .offer-mine {
    display: none;
  }
}

.paywall {
  margin-top: 22px;
}
.paywall .launch-actions {
  flex-wrap: wrap;
  margin-top: 16px;
}
.viewport.is-locked {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-height: 80vh;
}
.locked-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  filter: blur(14px) brightness(0.45) saturate(0.7);
  transform: scale(1.08);
}
.lock-over {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  font-weight: 800;
}
.lock-over p {
  margin: 0;
}
.lock-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 181, 71, 0.6);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--amber);
  box-shadow: 0 0 30px rgba(255, 181, 71, 0.35);
}
.lock-badge svg {
  width: 22px;
  height: 26px;
}
.viewport.no-poster {
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--p) 25%, transparent), #000 70%);
}
@media (min-width: 900px) {
  .ep-grid {
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    align-items: start;
  }
}

.buy-amount {
  margin: 4px 0 0;
  color: var(--amber);
  font-size: 26px;
  font-weight: 700;
}
.buy-upsell {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
  color: var(--mute);
  font-size: 14px;
}
.btn-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--amber);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
[data-step="done"] .btn-primary {
  margin-top: 8px;
}
.sheet-cta {
  margin: 24px 0 0;
}
.menu-list a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--star-soft);
  font-weight: 700;
  text-decoration: none;
}

/* Login, register, account */
.auth {
  display: grid;
  place-items: start center;
  min-height: 80vh;
  padding: 6vh var(--gutter) 60px;
}
.auth-card {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--hair);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 181, 71, 0.06), transparent 30%), rgba(3, 3, 5, 0.85);
}
.account .auth-card {
  width: min(640px, 100%);
}
.auth-card h1 {
  margin: 10px 0 0;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.auth-lede {
  margin: 8px 0 0;
  color: var(--mute);
}
.auth-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--hair);
  border-radius: 12px;
}
.auth-tabs a {
  flex: 1;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--mute);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}
.auth-tabs a[aria-current="page"] {
  background: rgba(255, 181, 71, 0.12);
  color: var(--amber);
}
.auth-form {
  display: grid;
  margin-top: 8px;
}
.auth-form .btn-primary {
  margin-top: 20px;
}
.auth-foot {
  margin: 18px 0 0;
  font-size: 14px;
}
.auth-foot a {
  color: var(--mute);
}
.flash {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(127, 178, 255, 0.5);
  border-radius: 12px;
  color: var(--ice);
}
.flash.is-error {
  border-color: rgba(255, 90, 78, 0.6);
  color: var(--red);
}
.acct-block {
  margin-top: 28px;
}
.acct-block h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
}
.acct-bundle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--star-soft);
}
.acct-bundle svg {
  color: var(--amber);
}
.acct-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.acct-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--hair);
  font-size: 15px;
}
.acct-list a {
  text-decoration: none;
  font-weight: 700;
}
.acct-list .num {
  color: var(--mute);
  margin-right: 6px;
}
.account form .btn-secondary {
  margin-top: 8px;
}

/* Badges live under the panels, never on top of them. */
.labels {
  z-index: 1;
}
.hud-top,
.mission,
.level-card,
.regions,
.toast {
  z-index: 2;
}

/* A finished episode waiting for its Friday: the thing to buy early. */
.ll-item.is-buy .ll-state:has(svg) {
  color: var(--amber);
  font-weight: 700;
}

/* ══ The deal: free countdown · watch now · the whole set ════════════════════ */

.deal {
  display: grid;
  gap: 10px;
  width: 100%;
}
.deal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.deal-clock,
.deal-now,
.deal-full {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--star);
  font: inherit;
  text-align: left;
  text-decoration: none;
}
.deal-label {
  color: var(--mute);
  font-size: 13px;
  font-weight: 700;
}
.deal-days {
  margin-top: 4px;
  color: var(--star);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
}
.deal-hms {
  color: var(--star-soft);
  font-size: 16px;
  font-weight: 500;
}
.deal-sub {
  margin-top: 4px;
  color: var(--mute);
  font-size: 12px;
  line-height: 1.35;
}
.deal-now,
.deal-full {
  border-color: rgba(255, 181, 71, 0.5);
  background: linear-gradient(180deg, rgba(255, 181, 71, 0.12), rgba(255, 181, 71, 0.03));
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.deal-now:hover,
.deal-full:hover {
  border-color: var(--amber);
  box-shadow: 0 0 30px rgba(255, 181, 71, 0.3);
}
.deal-now:active,
.deal-full:active {
  transform: translateY(1px);
}
.deal-now .deal-label,
.deal-full .deal-label {
  color: var(--amber);
  font-size: 15px;
  font-weight: 900;
}
.deal-price {
  margin-top: 4px;
  color: var(--star);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}
.deal-was {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mute);
  font-size: 13px;
}
.deal-was s {
  text-decoration-thickness: 1.5px;
}
.deal-off {
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--amber);
  color: #000;
  font: 900 12px/1.4 var(--sans);
}
.deal-now.is-owned {
  border-color: var(--hair);
  background: rgba(0, 0, 0, 0.45);
  cursor: default;
}
.deal-now.is-owned .deal-label {
  color: var(--p, var(--star));
}
.deal-now.is-owned .btn-primary {
  margin-top: 8px;
  min-height: 42px;
}
.deal-full {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.deal-full-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.deal-full-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: none;
}
.deal-full-price .deal-price {
  margin: 0;
}
.card-actions .deal {
  margin-top: 2px;
}
.ep-info .deal {
  margin-top: 22px;
  max-width: 520px;
}
@media (max-width: 420px) {
  .deal-days {
    font-size: 24px;
  }
  .deal-price {
    font-size: 20px;
  }
}

/* Previous / next planet: a round marker on the trail, its chevron pointing along it */
.pl-step {
  --a: 0rad;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(243, 238, 223, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: var(--star);
  cursor: pointer;
  will-change: transform;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.pl-step[hidden] {
  display: none;
}
.pl-step-chev {
  grid-area: 1 / 1;
  transform: rotate(var(--a)) translateX(2px);
}
.pl-step .num {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--star-soft);
  font-size: 12px;
  white-space: nowrap;
}
.pl-step:hover,
.pl-step:focus-visible {
  border-color: var(--star);
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 0 24px rgba(243, 238, 223, 0.22);
}
.pl-step:hover .num {
  color: var(--star);
}
@media (max-width: 899px) {
  .pl-step {
    width: 48px;
    height: 48px;
  }
}

/* ══ Pods: each planet carries its own actions right underneath ══════════════ */

.pod {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  will-change: transform;
}
.labels .pod .pl {
  position: static;
}
.pod-sum,
.pod-actions {
  display: none;
}
.pod[data-mode="compact"] .pod-actions,
.pod[data-mode="full"] .pod-actions {
  display: block;
}
.pod[data-mode="full"] .pod-sum {
  display: block;
}
.pod[data-mode="full"] .pl-title,
.pod[data-mode="compact"] .pl-title {
  display: inline;
}
.pod-sum {
  max-width: 320px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--star-soft);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.pod-actions {
  width: 320px;
  max-width: calc(100vw - 24px);
}
.pod[data-mode="compact"] .pod-actions {
  width: 280px;
}
.pod-watch {
  gap: 10px;
  width: 100%;
  min-height: 46px;
}
.pod[data-mode="compact"] .pod-watch {
  min-height: 40px;
  font-size: 14px;
}
/* the deal, compact enough to hang under a planet */
.pod .deal {
  gap: 6px;
}
.pod .deal-row {
  gap: 6px;
}
.pod .deal-clock,
.pod .deal-now,
.pod .deal-full {
  padding: 9px 11px;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.72);
}
.pod .deal-label {
  font-size: 12px;
}
.pod .deal-now .deal-label,
.pod .deal-full .deal-label {
  font-size: 13px;
}
.pod .deal-days {
  margin-top: 2px;
  font-size: 20px;
}
.pod .deal-hms {
  font-size: 13px;
}
.pod .deal-price {
  margin-top: 2px;
  font-size: 18px;
}
.pod .deal-was {
  font-size: 11px;
}
.pod .deal-off {
  font-size: 11px;
}
.pod .deal-sub {
  margin-top: 2px;
  font-size: 11px;
}
.pod[data-mode="compact"] .deal-clock .deal-sub,
.pod[data-mode="compact"] .deal-now .deal-sub,
.pod[data-mode="compact"] .deal-full-text .deal-sub {
  display: none;
}
.pod[data-mode="compact"] .deal-full {
  padding: 7px 11px;
}
@media (max-width: 899px) {
  .pod-actions,
  .pod[data-mode="compact"] .pod-actions {
    width: 290px;
  }
  .pod-sum {
    max-width: 290px;
  }
}

/* Phones, episode not playable yet: what you can do comes first, the locked frame after it. */
@media (max-width: 899px) {
  .ep-grid.is-buy .ep-media,
  .ep-grid.is-reserved .ep-media {
    order: 2;
  }
  .ep-grid.is-buy .viewport.is-locked,
  .ep-grid.is-reserved .viewport.is-locked {
    aspect-ratio: auto;
    height: 30vh;
    min-height: 200px;
  }
}
