/* ═══════════════════════════════════════════════════════════════════════════
   SKY LAUNCH — Flight Computer Interface
   Aesthetic: SpaceX Crew Dragon cockpit × mission control × HUD
   ═══════════════════════════════════════════════════════════════════════════ */

/* Animated rotation property */
@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  color-scheme: dark;

  --black:  #000000;
  --bg:     #010204;

  /* Glass layers — barely there */
  --g1: rgba(255,255,255, 0.025);
  --g2: rgba(255,255,255, 0.04);
  --g3: rgba(255,255,255, 0.06);
  --edge: rgba(255,255,255, 0.07);
  --edge2: rgba(255,255,255, 0.12);

  /* Text */
  --t1: rgba(255,255,255, 0.93);
  --t2: rgba(255,255,255, 0.65);
  --t3: rgba(255,255,255, 0.55);

  /* Electric cyan — the ONE accent */
  --c:     #00e8ff;
  --c50:   rgba(0,232,255, 0.50);
  --c20:   rgba(0,232,255, 0.20);
  --c10:   rgba(0,232,255, 0.10);
  --c05:   rgba(0,232,255, 0.05);
  --c03:   rgba(0,232,255, 0.03);

  /* Secondary — muted violet for T+ only */
  --v:     #9d7aff;
  --v20:   rgba(157,122,255, 0.20);
  --v05:   rgba(157,122,255, 0.05);

  /* Score colors */
  --good:  #00ffb2;
  --warn:  #ffbf00;
  --bad:   #ff3366;

  /* Dimensions */
  --r:   16px;
  --rs:  12px;
  --rss: 8px;
  --max: 940px;

  /* Type */
  --display: "Outfit", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", "SF Mono", monospace;
}

/* ─── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--black); }

body {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 13px;
  color: var(--t1);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Background: Dot grid (sensor array feel) ─────────────────────────────── */

.bgGrid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 70%);
}

/* ─── Background: Nebula glow ──────────────────────────────────────────────── */

.bgGlow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 700px 400px at 8% 3%, rgba(0,232,255,0.06), transparent 70%),
    radial-gradient(ellipse 500px 400px at 90% 5%, rgba(157,122,255,0.04), transparent 65%),
    radial-gradient(ellipse 800px 300px at 50% 100%, rgba(0,232,255,0.03), transparent 60%);
}

/* ─── Grain ────────────────────────────────────────────────────────────────── */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* ─── Layout ───────────────────────────────────────────────────────────────── */

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px 20px;
}

.mainContent { padding-top: 8px; }

.hidden { display: none !important; }

/* ─── Install Banner ───────────────────────────────────────────────────────── */

.installBanner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 12px auto 0;
  padding: 12px 16px;
  border-radius: var(--rs);
  background: var(--g2);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border: 1px solid var(--edge);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  animation: slideIn 0.5s ease both;
}

.installIcon { font-size: 22px; flex-shrink: 0; }
.installText { flex: 1; line-height: 1.5; color: var(--t2); }
.installText b { color: var(--t1); font-weight: 600; }

.installKbd {
  display: inline-block;
  background: var(--c05);
  border: 1px solid var(--c20);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 11px;
  color: var(--c);
  font-weight: 500;
}

.installX {
  background: none;
  border: none;
  color: var(--t3);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}
.installX:hover { color: var(--t1); }

/* ═══════════════════════════════════════════════════════════════════════════
   TOPBAR — frosted command strip
   ═══════════════════════════════════════════════════════════════════════════ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(1,2,4, 0.72);
  backdrop-filter: blur(60px) saturate(1.6);
  -webkit-backdrop-filter: blur(60px) saturate(1.6);
  border-bottom: 1px solid var(--edge);
}

/* Thin accent line at very top — like a status LED strip */
.topbar::before {
  content: "";
  position: absolute;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--c20) 30%, var(--c50) 50%, var(--c20) 70%, transparent 95%);
}

.titleRow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

/* ─── Brand ────────────────────────────────────────────────────────────────── */

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brandMark {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brandRing {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--c20);
  animation: ringPulse 4s ease-in-out infinite;
}

.brandRing::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(0,232,255, 0.12);
  animation: ringPulse 4s ease-in-out infinite reverse;
}

.brandDot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 6px var(--c),
    0 0 20px var(--c50),
    0 0 40px var(--c10);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(0.88); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--c), 0 0 20px var(--c50), 0 0 40px var(--c10); }
  50% { opacity: 0.6; box-shadow: 0 0 4px var(--c), 0 0 12px var(--c50); }
}

.brandName {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: white;
}

.brandAccent { color: var(--c); }

.brandTag {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--t2);
}

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

.headerNav {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.headerNavLink {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.015);
  color: var(--t3);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.headerNavLink:hover {
  background: var(--g2);
  border-color: var(--edge2);
  color: var(--t1);
}

.headerNavActive {
  border-color: var(--c20);
  background: var(--c03);
  color: var(--c);
}

/* ─── Controls ─────────────────────────────────────────────────────────────── */

.controls { display: grid; gap: 12px; }

.row {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 200px;
}

.label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--t3);
}

select {
  width: 100%;
  padding: 10px 34px 10px 14px;
  border-radius: var(--rss);
  border: 1px solid var(--edge);
  background: var(--g1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--t1);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--t3) 50%),
    linear-gradient(135deg, var(--t3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 12px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

select:focus {
  outline: none;
  border-color: var(--c20);
  box-shadow: 0 0 0 1px var(--c05), 0 0 20px var(--c03);
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  padding: 10px 18px;
  border-radius: var(--rss);
  border: 1px solid var(--edge);
  background: var(--g1);
  color: var(--t2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.btn:hover { background: var(--g2); border-color: var(--edge2); color: var(--t1); }
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

.btnCyan {
  border-color: var(--c20);
  color: var(--c);
  background: var(--c03);
}

.btnCyan:hover {
  background: var(--c05);
  border-color: rgba(0,232,255,0.35);
  box-shadow: 0 0 24px var(--c05);
  color: var(--c);
}

/* ─── Status Pills ─────────────────────────────────────────────────────────── */

.pills { align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.015);
  color: var(--t3);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  white-space: nowrap;
}

.pill b { color: var(--t2); font-weight: 600; }

/* Blinking status dot */
.statusDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--t3);
  flex-shrink: 0;
}

.statusDot.live {
  background: var(--c);
  box-shadow: 0 0 6px var(--c50);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ─── Section Titles (with flanking lines) ─────────────────────────────────── */

.sectionTitle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 14px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--t3);
}

.sectionLine {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--edge), transparent);
}

.sectionTitle .sectionLine:last-child {
  background: linear-gradient(270deg, var(--edge), transparent);
}

/* ─── Grid ─────────────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARD — Glass panel with HUD corner brackets
   ═══════════════════════════════════════════════════════════════════════════ */

.card {
  position: relative;
  background: var(--g1);
  backdrop-filter: blur(40px) saturate(1.5);
  -webkit-backdrop-filter: blur(40px) saturate(1.5);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  padding: 20px;
  overflow: hidden;
  animation: cardIn 0.5s ease both;
}

/* ── Corner brackets (HUD targeting frame) ── */
.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 2;
}

/* Top-left corner */
.card::before {
  top: 8px;
  left: 8px;
  border-top: 1.5px solid var(--t3);
  border-left: 1.5px solid var(--t3);
  border-radius: 3px 0 0 0;
}

/* Bottom-right corner */
.card::after {
  bottom: 8px;
  right: 8px;
  border-bottom: 1.5px solid var(--t3);
  border-right: 1.5px solid var(--t3);
  border-radius: 0 0 3px 0;
}

/* Top edge refraction line */
.cardShine {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 40%, rgba(255,255,255,0.06) 60%, transparent);
  pointer-events: none;
  z-index: 2;
}

.cardBody {
  position: relative;
  z-index: 1;
}

.cardTop {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.mission {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: white;
  margin: 0;
}

.launchDate {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--c);
}

.sub {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--t2);
  letter-spacing: 0.3px;
}

/* ─── Mission Description ─────────────────────────────────────────────────── */

.missionDesc {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--rs);
  border: 1px solid var(--edge);
  background: rgba(255,255,255, 0.02);
}

.missionDescText {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--t2);
  letter-spacing: 0.2px;
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.missionDescText.collapsed {
  max-height: 3.3em;         /* ~2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.missionDescToggle {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--c);
  cursor: pointer;
  transition: opacity 0.2s;
}

.missionDescToggle:hover {
  opacity: 0.7;
}

/* Score badge removed — replaced by arc gauge */

/* ═══════════════════════════════════════════════════════════════════════════
   COUNTDOWN — the centerpiece
   ═══════════════════════════════════════════════════════════════════════════ */

.countdown {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}

.countdown.big {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 3px;
}

.countdown.upcoming {
  color: var(--c);
  text-shadow:
    0 0 10px var(--c50),
    0 0 40px var(--c20),
    0 0 80px var(--c10);
  animation: countdownPulse 3s ease-in-out infinite;
}

.countdown.past {
  color: var(--v);
  text-shadow: 0 0 20px var(--v20);
}

@keyframes countdownPulse {
  0%, 100% { text-shadow: 0 0 10px var(--c50), 0 0 40px var(--c20), 0 0 80px var(--c10); }
  50% { text-shadow: 0 0 14px var(--c50), 0 0 50px rgba(0,232,255,0.25), 0 0 100px rgba(0,232,255,0.12); }
}

/* ─── Meta Row ─────────────────────────────────────────────────────────────── */

.metaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ─── Links ────────────────────────────────────────────────────────────────── */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

a.linkBtn,
button.linkBtn {
  flex: 1 1 auto;
  text-align: center;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--rss);
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.015);
  color: var(--t2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.12s ease;
}

a.linkBtn:hover,
button.linkBtn:hover {
  background: var(--g2);
  border-color: var(--edge2);
  color: var(--t1);
}

button.linkBtn.copied {
  background: rgba(0,255,178,0.06);
  border-color: rgba(0,255,178,0.20);
  color: var(--good);
}

.btnIcon {
  width: 13px;
  height: 13px;
  vertical-align: -1.5px;
  flex-shrink: 0;
}

/* ─── YouTube ──────────────────────────────────────────────────────────────── */

.yt {
  margin-top: 14px;
  border-radius: var(--rs);
  overflow: hidden;
  border: 1px solid var(--edge);
  background: #000;
}

.yt iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO CARD — rotating conic-gradient border + scan line
   ═══════════════════════════════════════════════════════════════════════════ */

.heroWrap { margin: 16px 0 22px; }

.heroCard {
  border-color: transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(from var(--border-angle), transparent 20%, var(--c20) 35%, var(--c) 50%, var(--c20) 65%, transparent 80%) border-box;
  animation: cardIn 0.5s ease both, rotateBorder 6s linear infinite;
  box-shadow:
    0 0 40px var(--c05),
    0 0 80px var(--c03),
    0 30px 60px rgba(0,0,0,0.5);
}

/* Override corner brackets to cyan on hero */
.heroCard::before {
  border-top-color: var(--c50);
  border-left-color: var(--c50);
}

.heroCard::after {
  border-bottom-color: var(--c50);
  border-right-color: var(--c50);
}

/* Inner glass layer for hero */
.heroCard > .cardShine {
  background: linear-gradient(90deg, transparent, var(--c10) 40%, var(--c10) 60%, transparent);
}

/* Horizontal scan line */
.heroCard > .scanLine {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--c20) 30%, var(--c50) 50%, var(--c20) 70%, transparent 95%);
  pointer-events: none;
  z-index: 3;
  animation: scanDown 4s linear infinite;
  opacity: 0.6;
}

@keyframes rotateBorder {
  to { --border-angle: 360deg; }
}

@keyframes scanDown {
  0% { top: 0; opacity: 0; }
  5% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

/* ─── Skeleton ─────────────────────────────────────────────────────────────── */

.skeleton {
  border: 1px solid rgba(255,255,255,0.03);
  background: var(--g1);
  border-radius: var(--r);
  padding: 20px;
  min-height: 130px;
  animation: cardIn 0.3s ease both;
}

.skeleton .bar {
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  animation: shimmer 2.5s ease-in-out infinite alternate;
}

.skeleton .bar.w60 { width: 50%; height: 14px; margin-bottom: 12px; }
.skeleton .bar.w80 { width: 70%; height: 10px; margin-bottom: 20px; }
.skeleton .bar.w40 { width: 30%; height: 28px; border-radius: 8px; }

@keyframes shimmer {
  from { opacity: 0.2; }
  to   { opacity: 0.7; }
}

/* ─── Error ────────────────────────────────────────────────────────────────── */

.errorBox {
  padding: 14px 16px;
  border-radius: var(--rs);
  margin-bottom: 14px;
  background: rgba(255,51,102,0.04);
  border: 1px solid rgba(255,51,102,0.12);
  color: var(--bad);
  font-size: 12px;
  line-height: 1.5;
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  margin-top: 28px;
  padding: 14px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.fineprint {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.8;
  color: var(--t3);
}

.footerLink {
  color: var(--t3);
  text-decoration: none;
  transition: color 0.2s;
}

.footerLink:hover {
  color: var(--c);
}

.footerDisclaimer {
  margin-top: 10px;
  font-size: 8px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* Stagger grid children */
.grid .card:nth-child(1) { animation-delay: 0.00s; }
.grid .card:nth-child(2) { animation-delay: 0.08s; }
.grid .card:nth-child(3) { animation-delay: 0.16s; }
.grid .card:nth-child(4) { animation-delay: 0.24s; }
.grid .card:nth-child(5) { animation-delay: 0.32s; }
.grid .card:nth-child(6) { animation-delay: 0.40s; }

/* Boot-up stagger for header elements */
.topbar .titleRow  { animation: slideIn 0.4s ease 0.0s both; }
.topbar .controls  { animation: slideIn 0.4s ease 0.1s both; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 719px) {
  .topbar .titleRow { margin-bottom: 10px; }

  .topbar .controls .row {
    gap: 6px;
  }

  .topbar .controls .row .btn {
    padding: 8px 10px;
    font-size: 10px;
    letter-spacing: 1px;
  }

  .siteFilterSelect {
    padding: 8px 26px 8px 10px;
    font-size: 10px;
    letter-spacing: 1px;
  }

  .topbar .controls .pills {
    gap: 6px;
  }

  .pill {
    padding: 4px 8px;
    font-size: 9px;
  }

  .brandMark { width: 32px; height: 32px; }
  .brandName { font-size: 12px; letter-spacing: 2px; }
  .brandTag { font-size: 8px; letter-spacing: 1px; }

  .wrap { padding: 10px 12px 16px; }

  .countdown.big {
    font-size: clamp(22px, 6vw, 36px);
    letter-spacing: 1px;
    white-space: nowrap;
  }
}

@media (min-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .row { flex-wrap: nowrap; }
  .btn { min-width: 120px; }

  .countdown.big {
    font-size: 48px;
    letter-spacing: 4px;
  }

  .mission { font-size: 18px; }
  .launchDate { font-size: 16px; }
}

/* ─── Selection ────────────────────────────────────────────────────────────── */

::selection {
  background: var(--c20);
  color: white;
}

/* ─── Scrollbar ────────────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

/* ═══════════════════════════════════════════════════════════════════════════
   SETUP OVERLAY — first-time location picker
   ═══════════════════════════════════════════════════════════════════════════ */

.setupOverlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 20px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(1,2,4, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  animation: fadeIn 0.4s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.setupCard {
  width: 100%;
  max-width: 420px;
  margin: auto 0;
  padding: 32px 28px;
  border-radius: var(--r);
  border: 1px solid var(--edge2);
  background: var(--g2);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  animation: cardIn 0.5s ease 0.1s both;
  flex-shrink: 0;
}

@media (max-width: 719px) {
  .setupCard {
    padding: 24px 18px;
  }

  .setupWelcomeHeading { font-size: 14px; }
  .setupWelcomeBody { font-size: 11px; }
}

.setupBrand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.setupWelcome {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: var(--rs);
  border: 1px solid var(--edge);
  background: rgba(255,255,255, 0.02);
}

.setupWelcomeHeading {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--t1);
}

.setupWelcomeBody {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--t2);
  letter-spacing: 0.2px;
}

.setupWelcomeBody:last-child {
  margin-bottom: 0;
}

.setupWelcomeBody b {
  color: var(--c);
  font-weight: 600;
}

.setupTitle {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--c);
  margin-bottom: 20px;
}

.setupGpsBtn {
  width: 100%;
  padding: 14px 18px;
  font-size: 12px;
  letter-spacing: 2px;
}

.setupDivider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
}

.setupDivider::before,
.setupDivider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--edge);
}

.setupDivider span {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--t3);
  white-space: nowrap;
}

.setupFields {
  display: grid;
  gap: 10px;
}

.setupSelect {
  width: 100%;
}

.setupInput {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--rss);
  border: 1px solid var(--edge);
  background: var(--g1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--t1);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.setupInput::placeholder {
  color: var(--t3);
  letter-spacing: 2px;
  font-size: 11px;
}

.setupInput:focus {
  outline: none;
  border-color: var(--c20);
  box-shadow: 0 0 0 1px var(--c05), 0 0 20px var(--c03);
}

.setupStatusText {
  margin-top: 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--warn);
  min-height: 16px;
  text-align: center;
}

.mainContent.blurred {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAUNCH STATUS BADGE — Go, TBD, Success, etc.
   ═══════════════════════════════════════════════════════════════════════════ */

.statusBadge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  opacity: 0.9;
}

.timeUpdatedBadge {
  color: #ffb300;
  background: rgba(255, 179, 0, 0.1);
  border-color: #ffb300;
  margin-left: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARD IMAGE BACKGROUND — hero card rocket/launch photo
   ═══════════════════════════════════════════════════════════════════════════ */

.cardImageBg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.20;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARD RIGHT COLUMN — gauge alignment
   ═══════════════════════════════════════════════════════════════════════════ */

.cardRight {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HIGHLIGHT PILL — for probability and other key metrics
   ═══════════════════════════════════════════════════════════════════════════ */

.pill.pillHighlight {
  border-color: var(--c20);
  background: var(--c03);
}

.pill.pillHighlight b {
  color: var(--c);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SITE FILTER SELECT — launch site picker in header
   ═══════════════════════════════════════════════════════════════════════════ */

.siteFilterSelect {
  width: auto;
  min-width: 0;
  padding: 10px 30px 10px 12px;
  border-radius: var(--rss);
  border: 1px solid var(--c20);
  background: var(--c03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--c);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--c) 50%),
    linear-gradient(135deg, var(--c) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

.siteFilterSelect:focus {
  outline: none;
  border-color: rgba(0,232,255,0.35);
  box-shadow: 0 0 0 1px var(--c05), 0 0 24px var(--c05);
}

.siteFilterSelect option {
  background: #0a0c12;
  color: var(--t1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ARC GAUGE — SVG visibility score gauge
   ═══════════════════════════════════════════════════════════════════════════ */

.gaugeWrap {
  position: relative;
  flex-shrink: 0;
  cursor: help;
}

.arcGauge {
  display: block;
}

.arcGauge.glow-good {
  filter:
    drop-shadow(0 0 6px rgba(0,255,178,0.5))
    drop-shadow(0 0 18px rgba(0,255,178,0.2))
    drop-shadow(0 0 40px rgba(0,255,178,0.1));
  animation: gaugeRadiate-good 3s ease-in-out infinite;
}

.arcGauge.glow-warn {
  filter:
    drop-shadow(0 0 6px rgba(255,191,0,0.5))
    drop-shadow(0 0 18px rgba(255,191,0,0.2))
    drop-shadow(0 0 40px rgba(255,191,0,0.1));
  animation: gaugeRadiate-warn 3s ease-in-out infinite;
}

.arcGauge.glow-bad {
  filter:
    drop-shadow(0 0 6px rgba(255,51,102,0.5))
    drop-shadow(0 0 18px rgba(255,51,102,0.2))
    drop-shadow(0 0 40px rgba(255,51,102,0.1));
  animation: gaugeRadiate-bad 3s ease-in-out infinite;
}

@keyframes gaugeRadiate-good {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(0,255,178,0.5)) drop-shadow(0 0 18px rgba(0,255,178,0.2)) drop-shadow(0 0 40px rgba(0,255,178,0.1)); }
  50% { filter: drop-shadow(0 0 8px rgba(0,255,178,0.6)) drop-shadow(0 0 24px rgba(0,255,178,0.25)) drop-shadow(0 0 50px rgba(0,255,178,0.12)); }
}

@keyframes gaugeRadiate-warn {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255,191,0,0.5)) drop-shadow(0 0 18px rgba(255,191,0,0.2)) drop-shadow(0 0 40px rgba(255,191,0,0.1)); }
  50% { filter: drop-shadow(0 0 8px rgba(255,191,0,0.6)) drop-shadow(0 0 24px rgba(255,191,0,0.25)) drop-shadow(0 0 50px rgba(255,191,0,0.12)); }
}

@keyframes gaugeRadiate-bad {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255,51,102,0.5)) drop-shadow(0 0 18px rgba(255,51,102,0.2)) drop-shadow(0 0 40px rgba(255,51,102,0.1)); }
  50% { filter: drop-shadow(0 0 8px rgba(255,51,102,0.6)) drop-shadow(0 0 24px rgba(255,51,102,0.25)) drop-shadow(0 0 50px rgba(255,51,102,0.12)); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCORE TOOLTIP — visibility breakdown on hover
   ═══════════════════════════════════════════════════════════════════════════ */

.scoreTooltip {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 280px;
  padding: 14px 16px;
  border-radius: var(--rs);
  border: 1px solid var(--edge2);
  background: rgba(6,8,16, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.gaugeWrap:hover .scoreTooltip {
  display: block;
  animation: fadeIn 0.15s ease both;
}

@media (pointer: coarse) {
  .gaugeWrap.tooltipOpen .scoreTooltip {
    display: block;
    animation: fadeIn 0.15s ease both;
  }
}

.tooltipTitle {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--c);
  margin-bottom: 10px;
}

.tooltipRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0 0;
  margin-top: 8px;
}

.tooltipRow:first-of-type {
  margin-top: 0;
}

.tooltipDetail {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--c50);
  padding: 1px 0 0;
}

.tooltipLabel {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--t3);
}

.tooltipValue {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--t1);
}

.tooltipValue.tooltipPenalty {
  color: var(--bad);
}

.tooltipValue.tooltipNoLoss {
  color: var(--good);
}

.tooltipValue.tooltipNeutral {
  color: var(--t1);
}

.tooltipValue.tooltipFinal {
  color: var(--c);
  font-size: 12px;
  font-weight: 700;
}

.tooltipDivider + .tooltipRow + .tooltipDetail {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--t1);
}

.tooltipDivider {
  height: 1px;
  background: var(--edge);
  margin: 6px 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.aboutPage {
  padding-top: 20px;
}

.aboutHeading {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--c);
  margin-bottom: 20px;
  text-align: center;
}

.aboutCard {
  max-width: 700px;
  margin: 0 auto;
}

.aboutAuthor {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 4px;
}

.aboutAvatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--c20);
  box-shadow: 0 0 20px var(--c05), 0 0 40px var(--c03);
  object-fit: cover;
  flex-shrink: 0;
}

.aboutAuthorName {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--t1);
}

.aboutAuthorRole {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--c);
}

.aboutSectionTitle {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--c);
  margin: 0 0 14px;
}

.aboutText {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--t2);
  letter-spacing: 0.2px;
  margin: 0 0 14px;
}

.aboutText:last-child {
  margin-bottom: 0;
}

.aboutText strong {
  color: var(--t1);
  font-weight: 600;
}

.aboutText em {
  color: var(--c);
  font-style: normal;
}

.aboutDivider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge2), transparent);
  margin: 24px 0;
}

.aboutSignoff {
  margin-top: 8px;
  color: var(--t3);
}

.aboutSignoff strong {
  color: var(--c);
}

.aboutBackLink {
  text-align: center;
  margin: 28px 0 0;
}

/* ─── FAQ ──────────────────────────────────────────────────────────────────── */

.faqCard {
  max-width: 700px;
  margin: 14px auto 0;
}

.faqItem {
  border-bottom: 1px solid var(--edge);
  padding: 0;
}

.faqItem:last-child {
  border-bottom: none;
}

.faqQuestion {
  display: block;
  padding: 16px 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--t1);
  cursor: pointer;
  list-style: none;
  transition: color 0.15s;
}

.faqQuestion::-webkit-details-marker {
  display: none;
}

.faqQuestion::before {
  content: "+";
  display: inline-block;
  width: 20px;
  font-size: 14px;
  font-weight: 400;
  color: var(--c);
  transition: transform 0.2s;
}

details[open] > .faqQuestion::before {
  content: "\2212";
}

.faqQuestion:hover {
  color: var(--c);
}

.faqAnswer {
  padding: 0 0 16px 20px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--t2);
  letter-spacing: 0.2px;
  margin: 0;
}

@media (max-width: 719px) {
  .aboutText {
    font-size: 11px;
    line-height: 1.75;
  }

  .faqQuestion {
    font-size: 11px;
  }

  .faqAnswer {
    font-size: 10px;
  }
}
