/* =========================================================
   MOON BASE ADVENTURE — PREMIUM COSMIC UI
   Deep space palette, friendly accents, responsive layouts.
========================================================= */
:root {
  color-scheme: dark;
  --space-950: #070c1d;
  --space-900: #0b1430;
  --space-850: #101b3d;
  --space-800: #16264d;
  --space-700: #23386b;
  --nebula: #8b7cf0;
  --aurora: #70e7f2;
  --aurora-soft: #b8f7ff;
  --gold: #ffd978;
  --coral: #ffad8a;
  --ink: #f4f7ff;
  --muted: #c6d1ea;
  --glass: rgba(15, 27, 60, .78);
  --line: rgba(128, 225, 247, .24);
  --shadow: 0 22px 60px rgba(0, 0, 0, .28);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  isolation: isolate;
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 8%, rgba(73, 108, 220, .22), transparent 34%),
    radial-gradient(ellipse at 88% 20%, rgba(135, 75, 202, .18), transparent 32%),
    radial-gradient(ellipse at 52% 94%, rgba(25, 157, 186, .13), transparent 42%),
    linear-gradient(145deg, #070c1d 0%, #101a3b 52%, #090f27 100%);
  background-attachment: fixed;
  font-family: "Poppins", "Trebuchet MS", Arial, sans-serif;
  line-height: 1.7;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: -1;
}
body::before {
  opacity: .48;
  background-image:
    radial-gradient(1px 1px at 8% 18%, #fff 98%, transparent),
    radial-gradient(2px 2px at 24% 73%, #b7f4ff 98%, transparent),
    radial-gradient(1px 1px at 41% 32%, #fff 98%, transparent),
    radial-gradient(2px 2px at 69% 12%, #fff 98%, transparent),
    radial-gradient(1px 1px at 83% 58%, #d2c5ff 98%, transparent),
    radial-gradient(1px 1px at 93% 88%, #fff 98%, transparent),
    radial-gradient(1px 1px at 55% 81%, #fff 98%, transparent);
  background-size: 360px 320px;
  animation: star-drift 75s linear infinite;
}
body::after {
  inset: auto auto auto -220px;
  top: 16%;
  width: 190px;
  height: 2px;
  opacity: 0;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(112, 231, 242, .95), rgba(255, 255, 255, .9), transparent);
  box-shadow: 0 0 14px rgba(112, 231, 242, .55);
  transform: rotate(-18deg);
  animation: shooting-star 19s linear infinite;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; z-index: 99; top: 12px; left: 12px; padding: 10px 15px; color: #07152d; background: var(--gold); border-radius: 10px; font-weight: 800; text-decoration: none; transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 12px;
}
::selection { background: rgba(112, 231, 242, .32); color: #fff; }

/* Header and navigation */
header { position: relative; z-index: 2; padding: 32px 18px 12px; text-align: center; }
header h1, .team-section h1 {
  color: #f8fbff;
  font-family: "Orbitron", "Poppins", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  line-height: 1.25;
  letter-spacing: .025em;
  text-shadow: 0 0 26px rgba(99, 229, 243, .2);
}
header h1 span, .welcome-text h2 span, .team-section h1 span { color: var(--aurora); }
header p { color: var(--muted); margin-top: 8px; }
.brand { display: flex; justify-content: center; align-items: center; gap: 18px; }
.brand img {
  width: 78px; height: 78px; object-fit: contain; border: 1px solid rgba(255, 217, 120, .62);
  border-radius: 50%; padding: 4px; background: rgba(18, 32, 71, .75);
  box-shadow: 0 0 30px rgba(99, 229, 243, .2);
  animation: gentle-float 5s ease-in-out infinite;
}
.navbar, nav {
  position: relative; z-index: 5;
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px;
  width: min(94%, 1180px); margin: 18px auto 34px; padding: 10px 12px;
  background: rgba(8, 15, 37, .78); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .045);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.navbar ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; list-style: none; }
.navbar li { list-style: none; }
nav a, .navbar a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 9px 15px; border-radius: 15px;
  color: #eaf2ff; font-size: .93rem; font-weight: 600; text-decoration: none;
  transition: color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}
nav a:hover, nav a.active, nav a[aria-current="page"],
.navbar a:hover, .navbar a.active, .navbar a[aria-current="page"] {
  color: #08142b; background: linear-gradient(135deg, var(--aurora), #b8f7ff);
  box-shadow: 0 7px 20px rgba(112, 231, 242, .18); transform: translateY(-2px);
}

/* Reusable surfaces and headings */
.welcome, .about-page .about-intro, .team-section, .videos-intro,
.game-info-page .game-intro, .game-info-page .mars-section,
.game-info-page .progress-section {
  background: linear-gradient(135deg, rgba(20, 35, 78, .9), rgba(43, 36, 91, .8));
  border: 1px solid rgba(99, 229, 243, .32); border-radius: var(--radius-xl);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.small-title, .discover h2, .characters-page .characters-heading h2,
.game-info-page .game-intro h2, .about-page .about-intro h2 { color: var(--gold); }
.description, .team-subtitle, .section-intro { color: var(--muted); }

/* Home page */
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 34px; width: min(94%, 1200px); margin: 28px auto; padding: clamp(24px, 4vw, 48px); }
.welcome-text { flex: 1 1 48%; min-width: 0; }
.small-title { font-size: .9rem; font-weight: 700; letter-spacing: .13em; }
.welcome-text h2 { margin: 13px 0 16px; font-family: "Orbitron", sans-serif; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.25; }
.description { max-width: 560px; font-size: 1.06rem; }
.main-button, .card a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 20px; padding: 13px 24px; border: 0; border-radius: 999px;
  color: #1c2746; background: linear-gradient(135deg, #ffe7a6, #ffc84e);
  box-shadow: 0 9px 24px rgba(255, 200, 78, .16); font-weight: 800; text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.main-button:hover, .card a:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(255, 200, 78, .25); filter: brightness(1.04); }
.hero-image { flex: 1 1 45%; min-width: 0; text-align: center; }
.hero-image img { width: 100%; max-width: 540px; height: auto; max-height: 400px; object-fit: contain; border-radius: 22px; filter: drop-shadow(0 18px 32px rgba(90, 203, 255, .22)); animation: astronaut-hover 6s ease-in-out infinite; }
.discover { width: min(94%, 1200px); margin: 58px auto; padding: 12px 0; }
.discover h2 { margin-bottom: 30px; text-align: center; font-family: "Orbitron", sans-serif; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card, .team-card, .video-card, .about-page .about-section,
.game-info-page .info-card, .game-info-page .system-card,
.game-info-page .step-card, .game-info-page .reward-card,
.characters-page .character {
  min-width: 0; color: var(--ink);
  background: linear-gradient(145deg, rgba(22, 35, 76, .94), rgba(14, 23, 52, .92));
  border: 1px solid rgba(116, 218, 245, .24); border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .035);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.card { padding: 15px; text-align: center; }
.card:hover, .team-card:hover, .video-card:hover, .info-card:hover, .character:hover { transform: translateY(-7px); border-color: rgba(112, 231, 242, .58); box-shadow: 0 20px 42px rgba(0, 0, 0, .28), 0 0 24px rgba(112, 231, 242, .08); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; }
.card h3 { margin: 17px 0 8px; color: var(--aurora); font-family: "Orbitron", sans-serif; font-size: 1.2rem; }
.card p { min-height: 72px; color: #cbd5ef; }
.card a { margin: 14px 0 2px; padding: 10px 22px; }
.explore { border-top: 3px solid #55dcf5; }
.learn { border-top: 3px solid #b59cff; }
.play { border-top: 3px solid #ffd978; }

/* Characters page */
.characters-page .characters-main { width: min(94%, 1120px); margin: 38px auto 58px; }
.characters-page .characters-heading { margin-bottom: 38px; text-align: center; }
.welcome-badge { display: inline-block; margin-bottom: 16px; padding: 8px 17px; color: var(--gold); background: rgba(255, 217, 120, .08); border: 1px solid rgba(255, 217, 120, .35); border-radius: 999px; font-size: .85rem; font-weight: 700; letter-spacing: .07em; }
.characters-page .characters-heading h1 { color: #f8fbff; font-family: "Orbitron", sans-serif; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.characters-page .characters-heading h1 span { color: var(--aurora); }
.characters-page .characters-heading p { max-width: 650px; margin: 10px auto 0; color: var(--muted); font-size: 1.02rem; }
.characters-page .character { display: flex; align-items: center; gap: 32px; margin: 24px 0; padding: clamp(18px, 3vw, 30px); }
.characters-page .character-image { flex: 0 0 220px; width: 220px; height: 220px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #24396b, #463b7c); border: 1px solid rgba(112, 231, 242, .4); border-radius: 24px; }
.characters-page .character-image img { width: 100%; height: 100%; object-fit: cover; }
.characters-page .character-info { flex: 1; }
.characters-page .character-info h2 { margin-bottom: 12px; color: var(--aurora); font-family: "Orbitron", sans-serif; font-size: clamp(1.25rem, 2.5vw, 1.7rem); }
.characters-page .character-info > p { margin-bottom: 18px; color: #cbd5ef; }
.characters-page .character-role { padding: 13px 17px; background: rgba(46, 194, 221, .1); border-left: 4px solid var(--aurora); border-radius: 12px; }
.characters-page .character-role strong { color: var(--aurora); }
.characters-page .character-role p { margin-top: 4px; color: #cbd5ef; }

/* Game information page */
.game-info-page .game-info-main { width: min(94%, 1120px); margin: 38px auto 58px; }
.game-info-page .game-intro { padding: 35px 22px; text-align: center; }
.game-info-page .game-intro h2 { margin-bottom: 8px; font-family: "Orbitron", sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.game-info-page .game-intro p { color: var(--muted); font-size: 1.05rem; }
.game-info-page .info-section { margin: 44px 0; }
.game-info-page .info-section > h2 { margin-bottom: 24px; color: #f1f6ff; text-align: center; font-family: "Orbitron", sans-serif; font-size: clamp(1.35rem, 3vw, 1.9rem); }
.game-info-page .levels-container, .game-info-page .systems-container, .game-info-page .rewards-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.game-info-page .info-card { padding: 24px; }
.game-info-page .level-number { display: inline-block; padding: 5px 11px; color: #fff; background: linear-gradient(135deg, #7568df, #9a80ed); border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; }
.game-info-page .info-card h3 { margin: 13px 0 8px; color: var(--aurora); font-family: "Orbitron", sans-serif; font-size: 1.12rem; }
.game-info-page .info-card p, .game-info-page .system-card p, .game-info-page .reward-card p { color: #cbd5ef; line-height: 1.8; }
.game-info-page .game-structure { margin-top: 24px; padding: 17px; color: var(--gold); background: rgba(8, 15, 40, .84); border: 1px solid rgba(255, 217, 120, .3); border-radius: 15px; text-align: center; }
.game-info-page .system-card { padding: 23px; }
.game-info-page .system-card h3 { margin-bottom: 12px; color: var(--aurora); font-family: "Orbitron", sans-serif; font-size: 1.12rem; }
.game-info-page .system-card ul, .game-info-page .mars-section ul { padding-left: 22px; }
.game-info-page .system-card li, .game-info-page .mars-section li { margin: 7px 0; color: #d3ddf4; }
.game-info-page .system-card p { margin-top: 13px; }
.game-info-page .steps-container { display: grid; gap: 13px; }
.game-info-page .step-card { display: flex; align-items: center; gap: 16px; padding: 15px 19px; }
.game-info-page .step-card span { display: inline-flex; flex: 0 0 38px; width: 38px; height: 38px; justify-content: center; align-items: center; color: #fff; background: linear-gradient(135deg, #7568df, #9a80ed); border-radius: 50%; font-weight: 800; }
.game-info-page .step-card p { color: #d8e1f5; }
.game-info-page .section-intro { margin-bottom: 23px; color: var(--muted); text-align: center; }
.game-info-page .reward-card { padding: 22px; text-align: center; }
.game-info-page .reward-card h3 { margin-bottom: 8px; color: var(--gold); font-family: "Orbitron", sans-serif; }
.game-info-page .ultimate-badge { margin-top: 24px; padding: 18px; color: #20213d; background: linear-gradient(135deg, #ffe49a, #ffc84e); border-radius: 18px; text-align: center; font-weight: 900; letter-spacing: .06em; box-shadow: 0 10px 28px rgba(255, 200, 78, .15); }
.game-info-page .mars-section { margin: 42px 0; padding: 28px; background: linear-gradient(135deg, rgba(55, 30, 78, .92), rgba(90, 43, 60, .86)); border-color: rgba(255, 173, 138, .42); }
.game-info-page .mars-section h2 { margin-bottom: 10px; color: var(--coral); font-family: "Orbitron", sans-serif; }
.game-info-page .mars-section p { margin: 10px 0; color: #f0e6ef; }
.game-info-page .progress-section { margin: 42px 0; padding: 28px; }
.game-info-page .progress-section h2 { margin-bottom: 8px; color: var(--aurora); font-family: "Orbitron", sans-serif; }
.game-info-page .progress-section p { color: var(--muted); }
.game-info-page .play-game-section { margin: 35px 0; text-align: center; }

/* About page */
.about-page .about-main { width: min(94%, 1000px); margin: 38px auto 58px; }
.about-page .about-intro { margin-bottom: 30px; padding: clamp(25px, 4vw, 42px); text-align: center; }
.about-page .about-intro h2 { margin-bottom: 14px; font-family: "Orbitron", sans-serif; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.about-page .about-intro p { margin: 12px 0; color: #d5def4; }
.about-page .about-section { margin-bottom: 30px; padding: clamp(24px, 4vw, 38px); border-left: 4px solid var(--nebula); }
.about-page .about-section h2 { margin-bottom: 12px; color: var(--aurora); font-family: "Orbitron", sans-serif; font-size: 1.55rem; }
.about-page .about-section p { color: #cbd5ef; }
.about-page .age-section { display: flex; align-items: center; gap: 28px; margin-bottom: 30px; padding: 28px 32px; background: linear-gradient(135deg, rgba(36, 20, 92, .94), rgba(17, 22, 92, .9)); border: 1px solid rgba(255, 217, 120, .4); border-radius: 24px; box-shadow: var(--shadow); }
.about-page .age-icon { display: flex; flex: 0 0 96px; width: 96px; height: 96px; align-items: center; justify-content: center; border: 2px solid var(--aurora); border-radius: 50%; background: rgba(81, 69, 197, .8); font-size: 2.7rem; }
.about-page .age-content h2 { margin-bottom: 8px; color: var(--aurora); font-family: "Orbitron", sans-serif; font-size: 1.5rem; }
.about-page .age-content p { color: #d7e1f7; }

/* Videos */
.videos-page header { padding: 38px 18px 20px; }
.videos-page header h1 { margin-bottom: 8px; }
.videos-intro { width: min(94%, 1000px); margin: 15px auto 30px; padding: 30px 24px; text-align: center; }
.videos-intro h1 { margin-bottom: 8px; color: var(--gold); font-family: "Orbitron", sans-serif; font-size: clamp(1.55rem, 3.5vw, 2.15rem); }
.videos-intro p { color: var(--muted); }
.videos-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: min(94%, 1200px); margin: 28px auto 55px; }
.video-card { padding: 19px; text-align: center; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 16px; overflow: hidden; border: 1px solid rgba(112, 231, 242, .35); border-radius: 15px; background: #050a19; }
.video-frame iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.video-card h2 { margin: 8px 0 5px; color: var(--aurora); font-family: "Orbitron", sans-serif; font-size: 1.2rem; }
.video-card h3 { margin-bottom: 10px; color: #fff; font-size: .98rem; }
.video-card p { color: #cbd5ef; font-size: .94rem; }
.video-card a { display: inline-flex; margin-top: 14px; padding: 9px 16px; color: #07152d; background: var(--aurora); border-radius: 12px; font-size: .9rem; font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.video-card a:hover { transform: translateY(-3px); box-shadow: 0 9px 22px rgba(112, 231, 242, .18); }

/* Team */
body.team-page { padding: 0; }
.team-page main.team-page { width: min(94%, 1180px); margin: 38px auto 58px; padding: 0; }
.team-page .team-section { padding: clamp(24px, 4vw, 46px); text-align: center; }
.team-page .welcome-badge { margin-bottom: 20px; }
.team-page .team-section h1 { margin-bottom: 13px; font-size: clamp(1.8rem, 4vw, 2.65rem); }
.team-page .team-section h1 span { color: var(--aurora); }
.team-page .team-subtitle { max-width: 650px; margin: 0 auto 38px; color: var(--muted); }
.team-page .team-container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.team-page .team-card { padding: 22px 14px; text-align: center; }
.team-page .profile { display: flex; width: 126px; height: 126px; align-items: center; justify-content: center; margin: 0 auto 17px; overflow: hidden; border: 2px solid rgba(112, 231, 242, .7); border-radius: 50%; background: linear-gradient(135deg, #283c79, #745a9d); box-shadow: 0 0 25px rgba(112, 231, 242, .15); }
.team-page .avatar-initials { color: #fff; font-family: "Orbitron", sans-serif; font-size: 1.75rem; font-weight: 800; letter-spacing: .04em; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.team-page .team-card h2 { margin-bottom: 7px; color: var(--aurora); font-size: 1.08rem; }
.team-page .team-card p { color: var(--muted); }
.team-page .team-message { margin-top: 32px; color: var(--gold); font-size: 1.1rem; font-weight: 700; }

/* Footer */
footer { position: relative; margin-top: 55px; padding: 30px 18px; border-top: 1px solid rgba(99, 229, 243, .2); background: rgba(5, 9, 23, .76); text-align: center; }
footer h2, footer h3 { margin-bottom: 6px; color: var(--aurora); font-family: "Orbitron", sans-serif; letter-spacing: .055em; }
footer p { color: var(--muted); }
.copyright { margin-top: 12px; font-size: .84rem; opacity: .82; }

/* Scroll reveal (activated only when the script is available) */
html.js-motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html.js-motion .reveal.is-visible { opacity: 1; transform: translateY(0); }
html.js-motion .reveal[data-reveal-delay="1"] { transition-delay: .08s; }
html.js-motion .reveal[data-reveal-delay="2"] { transition-delay: .16s; }
html.js-motion .reveal[data-reveal-delay="3"] { transition-delay: .24s; }

/* Responsive */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-page .team-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-page .team-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 360px; width: 100%; justify-self: center; }
  .welcome { gap: 20px; }
  .characters-page .character-image { flex-basis: 190px; width: 190px; height: 190px; }
}
@media (max-width: 700px) {
  header { padding-top: 25px; }
  .brand { flex-direction: column; gap: 10px; }
  .navbar, nav { width: 94%; margin-bottom: 24px; padding: 8px; border-radius: 20px; }
  nav a, .navbar a { min-height: 38px; padding: 8px 11px; font-size: .85rem; }
  .welcome { flex-direction: column; text-align: center; }
  .description { margin-inline: auto; }
  .hero-image img { max-height: 300px; }
  .videos-container { grid-template-columns: 1fr; }
  .game-info-page .levels-container, .game-info-page .systems-container, .game-info-page .rewards-container { grid-template-columns: 1fr; }
  .characters-page .character { flex-direction: column; gap: 20px; text-align: center; }
  .characters-page .character-image { flex: 0 0 auto; width: min(220px, 75vw); height: auto; aspect-ratio: 1; }
  .about-page .age-section { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  body { background-attachment: scroll; }
  header h1 { font-size: 1.55rem; }
  header p { font-size: .92rem; }
  .cards { grid-template-columns: 1fr; }
  .welcome { padding: 22px 17px; border-radius: 22px; }
  .discover { margin: 40px auto; }
  .card p { min-height: 0; }
  .team-page .team-container { grid-template-columns: 1fr; }
  .team-page .team-card:last-child:nth-child(odd) { grid-column: auto; max-width: none; }
  .team-page .team-section { padding: 22px 16px; }
  .game-info-page .step-card { align-items: flex-start; }
  .game-info-page .mars-section, .game-info-page .progress-section { padding: 22px 18px; }
  .videos-intro { padding: 23px 17px; }
  .video-card { padding: 13px; }
  .about-page .age-section { padding: 23px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js-motion .reveal { opacity: 1; transform: none; }
}

@keyframes star-drift { from { background-position: 0 0; } to { background-position: 360px 320px; } }
@keyframes shooting-star { 0%, 76% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-18deg); } 78% { opacity: .9; } 85% { opacity: 0; transform: translate3d(calc(100vw + 420px), 220px, 0) rotate(-18deg); } 100% { opacity: 0; transform: translate3d(calc(100vw + 420px), 220px, 0) rotate(-18deg); } }
@keyframes gentle-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes astronaut-hover { 0%, 100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-11px) rotate(.5deg); } }


/* =========================================================
   DOWNLOAD PAGE — MISSION CONTROL / ROCKET LAUNCH
========================================================= */
.download-page .navbar { margin-bottom: 26px; }
.download-main { width: min(94%, 1220px); margin: 0 auto 52px; }
.download-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  align-items: center; gap: clamp(20px, 4vw, 54px); overflow: hidden;
  min-height: 590px; padding: clamp(25px, 4.5vw, 58px);
  border: 1px solid rgba(112, 231, 242, .32); border-radius: 34px;
  background: linear-gradient(120deg, rgba(15, 28, 66, .96), rgba(35, 36, 89, .84) 60%, rgba(19, 42, 78, .9));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32), inset 0 1px rgba(255,255,255,.07);
  isolation: isolate;
}
.download-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background: radial-gradient(circle at 79% 48%, rgba(112,231,242,.17), transparent 29%), radial-gradient(circle at 12% 5%, rgba(139,124,240,.2), transparent 35%); }
.download-copy { position: relative; z-index: 2; min-width: 0; }
.download-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--aurora); font-size: .75rem; font-weight: 800; letter-spacing: .17em; }
.status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #72f2c2; box-shadow: 0 0 0 5px rgba(114,242,194,.11), 0 0 17px rgba(114,242,194,.8); animation: status-pulse 2s ease-in-out infinite; }
.download-copy h2 { margin: 15px 0 13px; color: #f8fbff; font: 800 clamp(2.2rem, 5vw, 4.1rem)/1.12 "Orbitron", sans-serif; letter-spacing: -.045em; text-shadow: 0 0 30px rgba(112,231,242,.13); }
.download-copy h2 span { display: inline-block; color: var(--aurora); }
.download-description { max-width: 590px; color: #cbd7f0; font-size: 1rem; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; margin-top: 30px; }
.platform-card { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 20px 19px 16px; overflow: hidden;
  border: 1px solid rgba(151, 206, 255, .22); border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(9,18,44,.55));
  box-shadow: inset 0 1px rgba(255,255,255,.05); transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.platform-card::before { content: ""; position: absolute; width: 120px; height: 120px; top: -70px; right: -55px; border-radius: 50%; background: rgba(112,231,242,.12); filter: blur(3px); }
.platform-card:hover { transform: translateY(-6px); border-color: rgba(112,231,242,.56); box-shadow: 0 18px 38px rgba(0,0,0,.22), 0 0 25px rgba(112,231,242,.08); }
.platform-windows:hover { border-color: rgba(181,156,255,.62); }
.platform-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 13px; border: 1px solid rgba(112,231,242,.25); border-radius: 14px; background: rgba(112,231,242,.1); font-size: 1.35rem; }
.platform-windows .platform-icon { border-color: rgba(181,156,255,.3); background: rgba(181,156,255,.12); }
.platform-label { color: var(--aurora); font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.platform-windows .platform-label { color: #c5b5ff; }
.platform-card h3 { margin: 4px 0 6px; color: #fff; font: 700 1.1rem "Orbitron", sans-serif; }
.platform-card p { min-height: 68px; color: #c5d0e9; font-size: .8rem; line-height: 1.65; }
.download-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 47px; margin-top: 13px; padding: 10px 13px;
  border: 1px solid rgba(112,231,242,.55); border-radius: 13px; color: #08172e; background: linear-gradient(120deg, #9bf2f7, #65d7ed); cursor: pointer;
  box-shadow: 0 9px 23px rgba(70,202,224,.17); font: 700 .78rem "Poppins", sans-serif; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.download-button:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 28px rgba(70,202,224,.28); }
.download-button:active { transform: translateY(0) scale(.985); }
.platform-windows .download-button { border-color: rgba(190,174,255,.6); background: linear-gradient(120deg, #d2c5ff, #a998f4); box-shadow: 0 9px 23px rgba(155,132,242,.17); }
.button-arrow { font-size: 1.1rem; }
.file-note { margin-top: 8px; color: #9eacca; font-size: .68rem; }
.download-footnote { margin-top: 17px; color: #9eacca; font-size: .78rem; }
.download-footnote span { margin-right: 6px; color: var(--gold); }
.download-art { position: relative; display: grid; place-items: center; min-height: 440px; isolation: isolate; }
.download-art::before { content: ""; position: absolute; z-index: -3; width: min(92%, 420px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(94,181,234,.19), rgba(112,91,196,.1) 48%, transparent 72%); }
.download-rocket { position: relative; z-index: 2; width: min(70%, 275px); filter: drop-shadow(0 18px 30px rgba(82,214,243,.3)); animation: download-rocket-float 5s ease-in-out infinite; }
.rocket-glow { position: absolute; z-index: -1; width: 185px; height: 185px; border-radius: 50%; background: rgba(102,212,246,.14); filter: blur(38px); animation: glow-breathe 4s ease-in-out infinite; }
.orbit { position: absolute; border: 1px solid rgba(133,220,248,.25); border-radius: 50%; transform: rotate(-24deg); }
.orbit-one { width: 96%; height: 44%; animation: orbit-turn 22s linear infinite; }
.orbit-two { width: 82%; height: 34%; border-style: dashed; border-color: rgba(196,177,255,.29); transform: rotate(52deg); animation: orbit-turn-reverse 30s linear infinite; }
.planet { position: absolute; border-radius: 50%; }
.planet-large { right: 2%; bottom: 9%; width: 94px; height: 94px; background: radial-gradient(circle at 30% 27%, #9a8bf3, #4c4b9c 58%, #252957); box-shadow: inset -13px -10px 22px rgba(0,0,0,.3), 0 0 35px rgba(135,124,240,.18); }
.planet-small { top: 8%; left: 8%; width: 35px; height: 35px; background: radial-gradient(circle at 30% 25%, #ffe7a6, #e79b69 75%); box-shadow: 0 0 22px rgba(255,217,120,.22); }
.art-star { position: absolute; color: var(--gold); text-shadow: 0 0 15px rgba(255,217,120,.7); animation: twinkle 2.4s ease-in-out infinite; }
.star-a { top: 16%; right: 16%; font-size: 1.4rem; }
.star-b { bottom: 24%; left: 6%; color: var(--aurora); font-size: 1.7rem; animation-delay: .7s; }
.star-c { top: 32%; left: 1%; font-size: 2rem; animation-delay: 1.1s; }
.star-d { right: 2%; top: 54%; color: #d1c6ff; font-size: 1.2rem; animation-delay: 1.5s; }
.rocket-flame { position: absolute; z-index: 1; top: 67%; width: 32px; height: 46px; border-radius: 50% 50% 60% 60%; background: linear-gradient(#fff9bd, #ffc65e 48%, #ff855f); opacity: .72; filter: blur(7px); animation: flame-flicker .22s ease-in-out infinite alternate; }
.art-caption { position: absolute; bottom: 0; display: flex; align-items: center; gap: 9px; color: #9fb4d7; font-size: .65rem; font-weight: 700; letter-spacing: .18em; }
.art-caption span { width: 7px; height: 7px; border-radius: 50%; background: #72f2c2; box-shadow: 0 0 12px #72f2c2; }
.download-info { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 19px; }
.download-info > div { display: flex; align-items: center; gap: 13px; padding: 16px 18px; border: 1px solid rgba(128,225,247,.17); border-radius: 17px; background: rgba(14,26,58,.62); }
.info-symbol { display: grid; flex: 0 0 39px; place-items: center; width: 39px; height: 39px; border-radius: 13px; color: var(--aurora); background: rgba(112,231,242,.1); font-size: 1.1rem; }
.download-info p { display: grid; line-height: 1.45; }
.download-info strong { color: #edf5ff; font-size: .78rem; }
.download-info small { color: #9eacca; font-size: .68rem; }

/* Full-screen launch countdown */
.launch-overlay[hidden] { display: none; }
.launch-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; overflow: hidden; padding: 22px; }
.launch-backdrop { position: absolute; inset: 0; background: rgba(3,7,22,.91); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: backdrop-in .35s ease both; }
.launch-dialog { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(100%, 540px); min-height: 580px; padding: 28px 22px; overflow: hidden; border: 1px solid rgba(112,231,242,.32); border-radius: 30px; background: radial-gradient(ellipse at 50% 75%, rgba(57,115,173,.2), transparent 52%), linear-gradient(145deg, rgba(18,32,72,.98), rgba(14,20,52,.98)); box-shadow: 0 28px 100px rgba(0,0,0,.5), 0 0 55px rgba(81,205,236,.1); text-align: center; animation: dialog-in .4s cubic-bezier(.2,.8,.2,1) both; }
.launch-kicker { color: var(--aurora); font-size: .68rem; font-weight: 800; letter-spacing: .2em; }
.launch-dialog h2 { margin-top: 7px; color: #fff; font: 700 clamp(1.1rem,3vw,1.55rem) "Orbitron",sans-serif; }
.launch-message { margin-top: 5px; color: #b9c7e5; font-size: .84rem; }
.countdown-number { position: relative; z-index: 3; display: grid; place-items: center; width: 106px; height: 106px; margin: 23px 0 0; border: 1px solid rgba(112,231,242,.6); border-radius: 50%; color: #fff; background: radial-gradient(circle, rgba(112,231,242,.25), rgba(112,231,242,.06) 68%); box-shadow: 0 0 0 9px rgba(112,231,242,.055), 0 0 45px rgba(112,231,242,.16); font: 800 3.3rem "Orbitron",sans-serif; text-shadow: 0 0 25px rgba(112,231,242,.7); animation: countdown-pop .95s ease both; }
.launch-stage { position: relative; display: grid; place-items: center; width: 100%; height: 225px; margin-top: 2px; }
.launch-rocket { position: relative; z-index: 2; width: 135px; filter: drop-shadow(0 0 28px rgba(112,231,242,.32)); transform: translateY(23px); }
.launch-fire { position: absolute; z-index: 1; bottom: 17px; left: 50%; width: 23px; height: 62px; border-radius: 50% 50% 60% 60%; background: linear-gradient(#fff8c4, #ffc24d 48%, #ff795c); opacity: .9; filter: blur(4px); transform: translateX(-50%); animation: flame-flicker .16s ease-in-out infinite alternate; }
.launch-smoke { position: absolute; bottom: 0; width: 150px; height: 45px; border-radius: 50%; background: rgba(177,201,231,.18); filter: blur(13px); }
.smoke-left { left: 13%; }.smoke-right { right: 13%; }
.launch-status { margin-top: 6px; color: var(--gold); font-size: .69rem; font-weight: 800; letter-spacing: .16em; }
.launch-close { margin-top: 18px; padding: 11px 20px; border: 1px solid rgba(112,231,242,.5); border-radius: 999px; color: #0a1930; background: var(--aurora); cursor: pointer; font: 700 .8rem "Poppins",sans-serif; }
.launch-overlay.is-launching .countdown-number { opacity: 0; transform: scale(1.55); transition: opacity .35s ease, transform .35s ease; }
.launch-overlay.is-launching .launch-rocket { animation: rocket-liftoff 1.35s cubic-bezier(.35,.02,.75,.28) forwards; }
.launch-overlay.is-launching .launch-fire { animation: launch-fire .18s ease-in-out infinite alternate; }
.launch-overlay.is-launching .launch-smoke { animation: smoke-spread 1.2s ease-out forwards; }
.launch-overlay.is-result .countdown-number, .launch-overlay.is-result .launch-stage { display: none; }
.launch-overlay.is-result .launch-dialog { min-height: 330px; }
.launch-overlay.is-result .launch-close { display: inline-flex; }
.launch-overlay.is-result .launch-status { max-width: 360px; line-height: 1.8; letter-spacing: .04em; }
body.launch-active { overflow: hidden; }

@media (max-width: 900px) {
  .download-hero { grid-template-columns: minmax(0,1fr) minmax(240px,.72fr); }
  .download-art { min-height: 360px; }
  .platform-grid { gap: 11px; }
  .platform-card { padding: 17px 14px 14px; }
}
@media (max-width: 700px) {
  .download-hero { grid-template-columns: 1fr; padding: 27px 22px 20px; }
  .download-art { grid-row: 1; min-height: 265px; max-height: 290px; }
  .download-rocket { width: 175px; }
  .planet-large { width: 65px; height: 65px; }
  .download-copy h2 { font-size: clamp(2rem, 8vw, 3rem); }
  .download-info { grid-template-columns: 1fr; }
  .download-info > div { padding: 12px 15px; }
}
@media (max-width: 480px) {
  .download-main { width: 94%; }
  .download-hero { padding: 20px 15px 18px; border-radius: 24px; }
  .download-art { min-height: 225px; }
  .download-rocket { width: 150px; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-card p { min-height: 0; }
  .launch-dialog { min-height: 535px; border-radius: 24px; }
  .launch-rocket { width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .download-rocket, .rocket-glow, .orbit, .status-dot, .art-star, .rocket-flame { animation: none !important; }
  .launch-overlay.is-launching .launch-rocket { animation: none !important; opacity: 0; }
}

@keyframes status-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(114,242,194,.08), 0 0 12px rgba(114,242,194,.65); } 50% { box-shadow: 0 0 0 8px rgba(114,242,194,.02), 0 0 20px rgba(114,242,194,.9); } }
@keyframes download-rocket-float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-15px) rotate(2deg); } }
@keyframes glow-breathe { 0%,100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes orbit-turn { from { transform: rotate(-24deg); } to { transform: rotate(336deg); } }
@keyframes orbit-turn-reverse { from { transform: rotate(52deg); } to { transform: rotate(-308deg); } }
@keyframes twinkle { 0%,100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes flame-flicker { from { transform: translateX(-50%) scaleY(.86); opacity: .72; } to { transform: translateX(-50%) scaleY(1.12); opacity: 1; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes countdown-pop { from { opacity: 0; transform: scale(.65); } to { opacity: 1; transform: scale(1); } }
@keyframes rocket-liftoff { 0% { transform: translateY(22px) scale(1); opacity: 1; } 65% { transform: translateY(-260px) scale(.82); opacity: 1; } 100% { transform: translateY(-620px) scale(.55); opacity: 0; } }
@keyframes launch-fire { from { transform: translateX(-50%) scaleY(.8); filter: blur(3px); } to { transform: translateX(-50%) scaleY(1.4); filter: blur(6px); } }
@keyframes smoke-spread { to { opacity: 0; transform: scale(2.2) translateY(25px); } }


/* =========================================================
   INTERACTION & VISUAL POLISH — SITE-WIDE
   Consistent motion for every CTA, nav item and interactive card.
========================================================= */
:root {
  --motion-fast: 180ms;
  --motion-ui: 280ms;
  --motion-smooth: cubic-bezier(.2, .75, .25, 1);
  --glow-cyan: 0 12px 30px rgba(73, 215, 241, .2);
  --glow-violet: 0 12px 30px rgba(156, 132, 255, .2);
}

html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }

/* Richer glass surfaces with cleaner edges and a more layered space feel. */
.welcome,
.about-page .about-intro,
.team-section,
.videos-intro,
.game-info-page .game-intro,
.game-info-page .mars-section,
.game-info-page .progress-section,
.download-hero {
  box-shadow: 0 28px 76px rgba(0, 0, 0, .3),
              inset 0 1px 0 rgba(255, 255, 255, .075),
              0 0 0 1px rgba(126, 211, 255, .035);
}

.card,
.team-card,
.video-card,
.about-page .about-section,
.game-info-page .info-card,
.game-info-page .system-card,
.game-info-page .step-card,
.game-info-page .reward-card,
.characters-page .character,
.platform-card,
.download-info > div {
  transition: transform var(--motion-ui) var(--motion-smooth),
              border-color var(--motion-ui) ease,
              box-shadow var(--motion-ui) ease,
              background-color var(--motion-ui) ease;
  will-change: transform;
}
.card:hover,
.team-card:hover,
.video-card:hover,
.info-card:hover,
.character:hover,
.platform-card:hover,
.download-info > div:hover {
  transform: translateY(-7px) scale(1.012);
}

/* Every actual button and button-like link receives the same tactile motion. */
button:not(:disabled),
a.main-button,
.card a,
.video-card a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform var(--motion-ui) var(--motion-smooth),
              box-shadow var(--motion-ui) ease,
              filter var(--motion-ui) ease,
              border-color var(--motion-ui) ease;
}

button:not(:disabled)::after,
a.main-button::after,
.card a::after,
.video-card a::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -80%;
  left: -55%;
  width: 34%;
  height: 260%;
  pointer-events: none;
  opacity: .58;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
  transform: translateX(-180%) rotate(24deg);
  transition: transform .75s var(--motion-smooth), opacity .25s ease;
}

button:not(:disabled):hover,
a.main-button:hover,
.card a:hover,
.video-card a:hover {
  transform: translateY(-3px) scale(1.025);
  filter: brightness(1.055) saturate(1.06);
}

button:not(:disabled):hover::after,
a.main-button:hover::after,
.card a:hover::after,
.video-card a:hover::after {
  transform: translateX(570%) rotate(24deg);
  opacity: .82;
}

button:not(:disabled):active,
a.main-button:active,
.card a:active,
.video-card a:active {
  transform: translateY(1px) scale(.975);
  filter: brightness(.98);
  transition-duration: 90ms;
}

button:disabled {
  cursor: wait;
  opacity: .72;
  filter: saturate(.72);
}

/* Navigation has its own gentle lift and a luminous indicator. */
nav a,
.navbar a {
  position: relative;
  overflow: hidden;
  transition: color var(--motion-ui) ease,
              background var(--motion-ui) ease,
              transform var(--motion-ui) var(--motion-smooth),
              box-shadow var(--motion-ui) ease;
}
nav a::after,
.navbar a::after {
  content: "";
  position: absolute;
  left: 19%;
  right: 19%;
  bottom: 5px;
  height: 2px;
  border-radius: 9px;
  background: currentColor;
  opacity: .72;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--motion-ui) var(--motion-smooth);
}
nav a:hover::after,
.navbar a:hover::after { transform: scaleX(1); }
nav a.active::after,
.navbar a.active::after,
nav a[aria-current="page"]::after,
.navbar a[aria-current="page"]::after { transform: scaleX(.55); opacity: .35; }

.main-button,
.card a,
.video-card a {
  box-shadow: 0 10px 25px rgba(255, 200, 78, .17),
              inset 0 1px 0 rgba(255,255,255,.38);
}
.main-button:hover,
.card a:hover,
.video-card a:hover {
  box-shadow: 0 15px 34px rgba(255, 200, 78, .26),
              0 0 0 4px rgba(255, 217, 120, .07),
              inset 0 1px 0 rgba(255,255,255,.45);
}

/* Small decorative movements keep the interface alive without being noisy. */
.platform-icon,
.info-symbol {
  transition: transform .35s var(--motion-smooth), box-shadow .35s ease;
}
.platform-card:hover .platform-icon,
.download-info > div:hover .info-symbol {
  transform: translateY(-3px) rotate(-7deg) scale(1.08);
  box-shadow: 0 8px 20px rgba(112, 231, 242, .14);
}
.platform-windows:hover .platform-icon { transform: translateY(-3px) rotate(7deg) scale(1.08); }
.button-arrow { display: inline-block; transition: transform .28s var(--motion-smooth); }
.download-button:hover .button-arrow { transform: translate(3px, -3px); }

/* =========================================================
   ROCKET LIFTOFF — CINEMATIC MISSION CONTROL SEQUENCE
========================================================= */
.launch-overlay {
  padding: clamp(12px, 3vw, 26px);
  background: radial-gradient(ellipse at 50% 70%, rgba(36, 105, 164, .12), transparent 58%);
}
.launch-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 98%, transparent),
    radial-gradient(2px 2px at 83% 26%, #baf7ff 98%, transparent),
    radial-gradient(1px 1px at 73% 77%, #fff 98%, transparent),
    radial-gradient(1px 1px at 21% 68%, #d6caff 98%, transparent),
    radial-gradient(2px 2px at 91% 58%, #fff 98%, transparent);
  background-size: 310px 280px;
  animation: launch-stars-slide 24s linear infinite;
}
.launch-dialog {
  min-height: min(640px, calc(100svh - 30px));
  padding: clamp(22px, 4vh, 34px) 22px 24px;
  overflow: visible;
  border-color: rgba(112, 231, 242, .42);
  background:
    radial-gradient(ellipse at 50% 78%, rgba(65, 156, 205, .24), transparent 47%),
    radial-gradient(ellipse at 8% 5%, rgba(139,124,240,.12), transparent 38%),
    linear-gradient(150deg, rgba(13, 27, 64, .985), rgba(12, 18, 49, .99));
  box-shadow: 0 32px 110px rgba(0,0,0,.58),
              0 0 0 1px rgba(255,255,255,.035),
              0 0 70px rgba(81,205,236,.15),
              inset 0 1px 0 rgba(255,255,255,.09);
}
.launch-dialog::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 3%;
  width: min(82%, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(69, 181, 225, .13);
  filter: blur(42px);
  transform: translateX(-50%);
  pointer-events: none;
}
.launch-dialog::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(144, 212, 255, .08);
  border-radius: 22px;
  pointer-events: none;
}
.launch-kicker { position: relative; z-index: 2; text-shadow: 0 0 18px rgba(112,231,242,.32); }
.launch-dialog h2 { position: relative; z-index: 2; text-shadow: 0 0 26px rgba(112,231,242,.12); }
.launch-message { position: relative; z-index: 2; }
.countdown-number {
  margin-top: 19px;
  width: 112px;
  height: 112px;
  border-width: 2px;
  box-shadow: 0 0 0 10px rgba(112,231,242,.045),
              0 0 0 20px rgba(112,231,242,.025),
              0 0 55px rgba(112,231,242,.24),
              inset 0 0 28px rgba(112,231,242,.11);
}
.launch-stage {
  z-index: 5;
  height: 250px;
  margin-top: -2px;
  overflow: visible;
  perspective: 700px;
}
.launch-stage::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 15px;
  width: min(66%, 230px);
  height: 17px;
  border: 1px solid rgba(145, 218, 255, .55);
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(43,75,130,.8), rgba(117,214,239,.72), rgba(43,75,130,.8));
  box-shadow: 0 0 13px rgba(112,231,242,.33), 0 9px 25px rgba(0,0,0,.28);
  transform: translateX(-50%);
}
.launch-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 21px;
  width: 5px;
  height: 160px;
  border-radius: 50%;
  opacity: 0;
  background: linear-gradient(to top, rgba(255,255,255,.95), rgba(112,231,242,.72) 28%, rgba(112,231,242,0));
  filter: blur(7px);
  transform: translateX(-50%) scaleY(.12);
  transform-origin: bottom;
}
.launch-sky-glow {
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 170px;
  height: 48px;
  border-radius: 50%;
  background: rgba(99, 219, 246, .2);
  filter: blur(22px);
  transform: translateX(-50%);
  transition: opacity .3s ease;
}
.launch-pad {
  position: absolute;
  z-index: 2;
  bottom: 13px;
  left: 50%;
  width: min(77%, 260px);
  height: 28px;
  border: 1px solid rgba(151,203,255,.35);
  border-radius: 9px 9px 22px 22px;
  background: linear-gradient(180deg, rgba(72,104,157,.85), rgba(20,37,78,.98));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.13), 0 8px 20px rgba(0,0,0,.32);
  transform: translateX(-50%);
}
.launch-pad span {
  position: absolute;
  top: 7px;
  left: 12%;
  right: 12%;
  height: 2px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, rgba(255,217,120,.85) 0 9px, transparent 9px 17px);
  opacity: .76;
}
.launch-rocket {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 27px;
  width: 144px;
  max-width: 36vw;
  filter: drop-shadow(0 0 22px rgba(112,231,242,.36)) drop-shadow(0 14px 25px rgba(0,0,0,.28));
  transform: translateX(-50%) translateY(0);
  transform-origin: 50% 75%;
  will-change: transform, opacity;
}
.launch-fire {
  z-index: 4;
  bottom: 32px;
  left: 50%;
  width: 27px;
  height: 72px;
  opacity: .82;
  transform: translateX(-50%);
  filter: blur(3px) drop-shadow(0 0 13px rgba(255,178,72,.55));
}
.launch-smoke {
  z-index: 3;
  bottom: 13px;
  width: 118px;
  height: 42px;
  opacity: .5;
  filter: blur(15px);
}
.smoke-left { left: 12%; }
.smoke-right { right: 12%; }
.launch-status {
  position: relative;
  z-index: 2;
  min-height: 24px;
  text-shadow: 0 0 16px rgba(255,217,120,.22);
}
.launch-close {
  z-index: 3;
  min-height: 46px;
  padding: 11px 25px;
  border-color: rgba(112,231,242,.62);
  box-shadow: 0 10px 28px rgba(70,202,224,.18), inset 0 1px 0 rgba(255,255,255,.4);
}
.launch-overlay.is-launching .launch-dialog {
  animation: launch-dialog-shake .12s ease-in-out 6, dialog-in .4s cubic-bezier(.2,.8,.2,1) both;
}
.launch-overlay.is-launching .countdown-number {
  opacity: 0;
  transform: scale(1.65);
  transition: opacity .28s ease, transform .35s ease;
}
.launch-overlay.is-launching .launch-rocket {
  animation: cinematic-liftoff 1.85s cubic-bezier(.28,.04,.69,.31) forwards;
}
.launch-overlay.is-launching .launch-fire {
  height: 92px;
  animation: launch-fire .12s ease-in-out infinite alternate, flame-stretch 1.85s ease-in forwards;
}
.launch-overlay.is-launching .launch-stage::after {
  animation: exhaust-beam 1.85s ease-out forwards;
}
.launch-overlay.is-launching .launch-pad {
  animation: pad-flash .35s ease-in-out 4 alternate;
}
.launch-overlay.is-launching .launch-sky-glow {
  animation: launch-glow 1.25s ease-out forwards;
}
.launch-overlay.is-launching .launch-smoke {
  animation: smoke-billow 1.15s ease-out forwards;
}
.launch-overlay.is-result .launch-dialog { overflow: hidden; }
.launch-overlay.is-result .launch-dialog::before { opacity: .35; }
.launch-overlay.is-result .launch-close { animation: result-button-in .45s .08s both; }
.launch-overlay.is-result .launch-status { color: #72f2c2; }

@keyframes launch-stars-slide {
  from { background-position: 0 0; }
  to { background-position: 310px 280px; }
}
@keyframes cinematic-liftoff {
  0% { transform: translateX(-50%) translateY(0) scale(.94) rotate(0); opacity: 1; }
  12% { transform: translateX(-50%) translateY(13px) scale(1.02) rotate(-1deg); opacity: 1; }
  30% { transform: translateX(-50%) translateY(-95px) scale(1.02) rotate(1deg); opacity: 1; }
  58% { transform: translateX(-50%) translateY(-330px) scale(.82) rotate(-2deg); opacity: 1; }
  82% { transform: translateX(-50%) translateY(-650px) scale(.62) rotate(1deg); opacity: .92; }
  100% { transform: translateX(-50%) translateY(-105vh) scale(.42) rotate(0); opacity: 0; }
}
@keyframes exhaust-beam {
  0% { opacity: 0; transform: translateX(-50%) scaleY(.08); }
  22% { opacity: .92; transform: translateX(-50%) scaleY(1); }
  70% { opacity: .65; }
  100% { opacity: 0; transform: translateX(-50%) scaleY(1.25); }
}
@keyframes pad-flash {
  from { box-shadow: inset 0 2px 0 rgba(255,255,255,.13), 0 0 9px rgba(112,231,242,.2); }
  to { box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 0 28px rgba(112,231,242,.65); }
}
@keyframes launch-glow {
  0% { opacity: .4; transform: translateX(-50%) scale(.8); }
  40% { opacity: 1; transform: translateX(-50%) scale(1.65); }
  100% { opacity: 0; transform: translateX(-50%) scale(2.3); }
}
@keyframes smoke-billow {
  0% { opacity: .22; transform: scale(.7) translateY(0); }
  38% { opacity: .64; }
  100% { opacity: 0; transform: scale(2.6) translateY(28px); }
}
@keyframes flame-stretch {
  0% { height: 58px; opacity: .72; }
  26% { height: 100px; opacity: 1; }
  100% { height: 125px; opacity: 0; }
}
@keyframes launch-dialog-shake {
  0%, 100% { translate: 0 0; }
  25% { translate: -2px 1px; }
  75% { translate: 2px -1px; }
}
@keyframes result-button-in {
  from { opacity: 0; transform: translateY(9px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 700px) {
  .launch-dialog { min-height: min(610px, calc(100svh - 24px)); padding: 22px 16px 20px; }
  .launch-stage { height: 225px; }
  .launch-rocket { width: 124px; }
  .launch-pad { width: min(82%, 230px); }
  .launch-overlay.is-launching .launch-rocket { animation-duration: 1.65s; }
}
@media (max-width: 420px) {
  .launch-dialog { min-height: min(570px, calc(100svh - 20px)); }
  .countdown-number { width: 94px; height: 94px; font-size: 2.9rem; }
  .launch-stage { height: 205px; }
  .launch-rocket { width: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button:not(:disabled), a.main-button, .card a, .video-card a,
  nav a, .navbar a, .card, .team-card, .video-card, .platform-card,
  .download-info > div, .platform-icon, .info-symbol {
    transition: none !important;
    animation: none !important;
  }
  button:not(:disabled)::after, a.main-button::after, .card a::after, .video-card a::after,
  nav a::after, .navbar a::after { display: none !important; }
  .launch-overlay.is-launching .launch-rocket,
  .launch-overlay.is-launching .launch-stage::after,
  .launch-overlay.is-launching .launch-fire,
  .launch-overlay.is-launching .launch-pad,
  .launch-overlay.is-launching .launch-sky-glow,
  .launch-overlay.is-launching .launch-smoke { animation: none !important; }
  .launch-overlay.is-launching .launch-rocket { opacity: 0; }
}

/* =========================================================
   LUMINOUS BLURRED-GLASS CONTROLS — SITE-WIDE FINISH
========================================================= */
:root {
  --glass-button-text: #effcff;
  --glass-button-edge: rgba(184, 245, 255, .56);
  --glass-button-glow: rgba(65, 220, 247, .28);
  --glass-button-fill: rgba(108, 214, 244, .12);
}

button:not(:disabled),
a.main-button,
.card a,
.video-card a,
.navbar a,
.download-button,
.launch-close {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--glass-button-text) !important;
  border: 1px solid var(--glass-button-edge) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.23), rgba(255,255,255,.055) 42%, rgba(94,205,239,.12)),
    var(--glass-button-fill) !important;
  -webkit-backdrop-filter: blur(19px) saturate(175%);
  backdrop-filter: blur(19px) saturate(175%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.48),
    inset 0 -1px 0 rgba(255,255,255,.08),
    0 8px 26px rgba(7,14,40,.24),
    0 0 18px var(--glass-button-glow),
    0 0 0 1px rgba(255,255,255,.035);
  text-shadow: 0 1px 10px rgba(5,17,42,.45);
  transition:
    transform .32s cubic-bezier(.2,.8,.2,1),
    box-shadow .32s ease,
    border-color .32s ease,
    background .32s ease,
    filter .32s ease;
}

button:not(:disabled)::before,
a.main-button::before,
.card a::before,
.video-card a::before,
.navbar a::before,
.download-button::before,
.launch-close::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 16% 0%, rgba(255,255,255,.35), transparent 47%),
    linear-gradient(180deg, rgba(255,255,255,.09), transparent 55%);
  opacity: .9;
}

button:not(:disabled)::after,
a.main-button::after,
.card a::after,
.video-card a::after,
.download-button::after,
.launch-close::after {
  z-index: 2;
  top: -90%;
  left: -65%;
  width: 42%;
  height: 280%;
  opacity: .66;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.82), rgba(208,250,255,.34), transparent);
  transform: translateX(-190%) rotate(24deg);
  transition: transform .9s cubic-bezier(.19,1,.22,1), opacity .3s ease;
}

button:not(:disabled) > *,
a.main-button > *,
.card a > *,
.video-card a > *,
.navbar a > *,
.download-button > *,
.launch-close > * {
  position: relative;
  z-index: 3;
}

button:not(:disabled):hover,
a.main-button:hover,
.card a:hover,
.video-card a:hover,
.navbar a:hover,
.download-button:hover,
.launch-close:hover {
  transform: translateY(-3px) scale(1.025);
  border-color: rgba(209,252,255,.94) !important;
  filter: brightness(1.18) saturate(1.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.68),
    inset 0 -1px 0 rgba(255,255,255,.12),
    0 13px 32px rgba(5,12,35,.32),
    0 0 20px rgba(112,231,242,.42),
    0 0 46px rgba(112,231,242,.23),
    0 0 0 4px rgba(112,231,242,.075);
}

button:not(:disabled):hover::after,
a.main-button:hover::after,
.card a:hover::after,
.video-card a:hover::after,
.download-button:hover::after,
.launch-close:hover::after {
  transform: translateX(570%) rotate(24deg);
  opacity: .95;
}

button:not(:disabled):active,
a.main-button:active,
.card a:active,
.video-card a:active,
.navbar a:active,
.download-button:active,
.launch-close:active {
  transform: translateY(1px) scale(.975);
  filter: brightness(1.12);
  box-shadow: inset 0 2px 12px rgba(4,15,38,.25), 0 0 22px var(--glass-button-glow);
  transition-duration: .09s;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #c7faff;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(112,231,242,.16), 0 0 30px rgba(112,231,242,.28);
}

.platform-windows .download-button {
  --glass-button-edge: rgba(210,195,255,.7);
  --glass-button-glow: rgba(177,151,255,.35);
  --glass-button-fill: rgba(165,143,255,.16);
}
.platform-windows .download-button:hover {
  border-color: rgba(235,225,255,.98) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.68), 0 13px 32px rgba(5,12,35,.32), 0 0 22px rgba(177,151,255,.5), 0 0 48px rgba(177,151,255,.24);
}
.download-button { min-height: 51px; }
.launch-close { min-height: 48px; }

/* =========================================================
   LOW-ANGLE ROCKET CAMERA — VIEW FROM THE LAUNCH PAD
   The pad fills the foreground and the camera looks upward.
========================================================= */
.launch-overlay {
  padding: 0;
  perspective: 1100px;
  background:
    radial-gradient(ellipse at 50% 77%, rgba(45,151,207,.22), transparent 42%),
    linear-gradient(180deg, rgba(5,10,29,.98), rgba(6,15,39,.88) 48%, rgba(4,9,25,.98));
}
.launch-overlay::before {
  opacity: .56;
  background-size: 220px 210px;
  animation: low-camera-stars 16s linear infinite;
}
.launch-dialog {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: none;
  height: 100svh;
  min-height: 100svh;
  padding: clamp(27px, 5vh, 58px) 18px 24px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 62%, rgba(62,173,222,.13), transparent 44%),
    linear-gradient(180deg, rgba(6,13,34,.18), rgba(5,11,30,.06) 58%, rgba(3,8,24,.28));
  box-shadow: none;
  animation: dialog-in .4s ease both;
}
.launch-dialog::before {
  z-index: 0;
  bottom: -4vh;
  width: min(150vw, 1500px);
  height: 30vh;
  aspect-ratio: auto;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(83,220,255,.34), rgba(65,114,205,.16) 38%, transparent 72%);
  filter: blur(32px);
  transform: translateX(-50%) perspective(520px) rotateX(62deg);
}
.launch-dialog::after { display: none; }
.launch-kicker {
  position: absolute;
  top: clamp(28px, 6vh, 66px);
  left: 0;
  right: 0;
  z-index: 12;
  text-align: center;
  color: #9af5ff;
  text-shadow: 0 0 22px rgba(112,231,242,.62);
}
.launch-dialog h2 {
  position: absolute;
  top: clamp(61px, 11vh, 112px);
  left: 16px;
  right: 16px;
  z-index: 12;
  text-align: center;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  text-shadow: 0 0 34px rgba(112,231,242,.35);
}
.launch-message {
  position: absolute;
  top: clamp(105px, 18vh, 178px);
  left: 18px;
  right: 18px;
  z-index: 12;
  text-align: center;
  color: #d7eaff;
}
.countdown-number {
  position: absolute;
  z-index: 13;
  top: clamp(148px, 25vh, 240px);
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(141,246,255,.29), rgba(49,125,186,.12) 70%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 10px rgba(112,231,242,.06), 0 0 0 22px rgba(112,231,242,.025), 0 0 70px rgba(112,231,242,.33), inset 0 0 32px rgba(112,231,242,.16);
}
.launch-stage {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  perspective: 900px;
  transform-style: preserve-3d;
  background:
    radial-gradient(ellipse at 50% 86%, rgba(105,219,255,.20), transparent 29%),
    radial-gradient(ellipse at 50% 52%, rgba(43,100,178,.10), transparent 56%);
  pointer-events: none;
}
.launch-stage::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -19vh;
  width: min(145vw, 1800px);
  height: 43vh;
  border: 2px solid rgba(132,227,255,.45);
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, transparent 0 7%, rgba(135,228,255,.13) 7.1% 7.3%, transparent 7.4% 14%),
    radial-gradient(ellipse at 50% 2%, rgba(128,235,255,.36), rgba(47,103,177,.32) 27%, rgba(11,25,62,.96) 69%);
  box-shadow: 0 -8px 38px rgba(92,220,255,.2), inset 0 12px 32px rgba(140,238,255,.2), 0 -28px 60px rgba(31,103,170,.17);
  transform: translateX(-50%) perspective(480px) rotateX(64deg);
  transform-origin: center bottom;
}
.launch-stage::after {
  z-index: 2;
  left: 50%;
  bottom: 14vh;
  width: clamp(22px, 5vw, 58px);
  height: 78vh;
  border-radius: 50% 50% 0 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(255,255,255,.96), rgba(107,238,255,.86) 18%, rgba(112,231,242,.28) 58%, transparent 100%);
  filter: blur(17px);
  transform: translateX(-50%) scaleY(.08);
  transform-origin: center bottom;
}
.launch-rocket {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 15vh;
  width: clamp(168px, 21vw, 250px);
  max-width: 62vw;
  filter: drop-shadow(0 0 28px rgba(112,231,242,.48)) drop-shadow(0 20px 35px rgba(0,0,0,.5));
  transform: translateX(-50%) perspective(900px) rotateX(9deg) scale(1.13,1.09);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
.launch-fire {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(15vh - 3px);
  width: clamp(34px, 5vw, 58px);
  height: 100px;
  border-radius: 40% 40% 55% 55%;
  background: linear-gradient(180deg, #fffbd4 0%, #a7f8ff 16%, #57d8ff 44%, #6f83ff 72%, rgba(142,119,255,0) 100%);
  opacity: .9;
  filter: blur(5px) drop-shadow(0 0 22px rgba(87,221,255,.8));
  transform: translateX(-50%) scaleY(.82);
  transform-origin: center top;
}
.launch-sky-glow {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 12vh;
  width: min(78vw, 720px);
  height: 90px;
  background: rgba(83,219,255,.26);
  filter: blur(48px);
  transform: translateX(-50%);
}
.launch-pad {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: -18vh;
  width: min(138vw, 1660px);
  height: 38vh;
  border: 2px solid rgba(167,239,255,.55);
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, transparent 0 8%, rgba(255,217,120,.16) 8.1% 8.35%, transparent 8.5% 16%),
    radial-gradient(ellipse at 50% 4%, rgba(148,242,255,.56), rgba(52,108,174,.9) 32%, #14264f 76%);
  box-shadow: inset 0 5px 24px rgba(255,255,255,.21), 0 -15px 45px rgba(96,224,255,.19), 0 0 90px rgba(74,181,255,.19);
  transform: translateX(-50%) perspective(430px) rotateX(68deg);
  transform-origin: center top;
}
.launch-pad span {
  top: 14%; left: 13%; right: 13%; height: 4px;
  background: repeating-linear-gradient(90deg, rgba(255,228,142,.98) 0 24px, transparent 24px 45px);
  box-shadow: 0 0 18px rgba(255,217,120,.65);
}
.launch-smoke {
  z-index: 5;
  bottom: 14vh;
  width: min(32vw, 260px);
  height: 76px;
  background: rgba(192,224,255,.3);
  filter: blur(22px);
}
.smoke-left { left: 15%; }
.smoke-right { right: 15%; }
.launch-status {
  position: absolute;
  z-index: 14;
  left: 12px;
  right: 12px;
  bottom: clamp(24px, 5vh, 48px);
  margin: 0;
  text-align: center;
  color: #ffe69b;
  text-shadow: 0 0 22px rgba(255,217,120,.52);
}
.launch-close {
  position: absolute;
  z-index: 16;
  bottom: clamp(12px, 3vh, 25px);
  left: 50%;
  transform: translateX(-50%);
}
.launch-overlay.is-launching .launch-dialog { animation: launch-dialog-shake .13s ease-in-out 7; }
.launch-overlay.is-launching .countdown-number {
  opacity: 0;
  transform: translateX(-50%) scale(1.7);
  transition: opacity .32s ease, transform .4s ease;
}
.launch-overlay.is-launching .launch-rocket {
  animation: low-angle-ascent 4.8s cubic-bezier(.18,.03,.54,.99) forwards;
}
.launch-overlay.is-launching .launch-fire {
  height: 26vh;
  animation: low-camera-thrust .6s ease-in-out infinite alternate, flame-stretch 4.8s ease-out forwards;
}
.launch-overlay.is-launching .launch-stage::after { animation: low-camera-exhaust 4.8s ease-out forwards; }
.launch-overlay.is-launching .launch-pad { animation: low-camera-pad-flash .42s ease-in-out 5 alternate; }
.launch-overlay.is-launching .launch-sky-glow { animation: launch-glow 2.2s ease-out forwards; }
.launch-overlay.is-launching .launch-smoke { animation: smoke-billow 2s ease-out forwards; }
.launch-overlay.is-result .launch-dialog {
  position: relative;
  width: min(92vw, 520px);
  height: auto;
  min-height: 340px;
  padding: 38px 25px;
  justify-content: center;
  border: 1px solid rgba(166,244,255,.48);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(19,43,83,.88), rgba(11,20,52,.9));
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 28px 100px rgba(0,0,0,.55), 0 0 55px rgba(94,220,255,.18), inset 0 1px 0 rgba(255,255,255,.14);
}
.launch-overlay.is-result .launch-kicker,
.launch-overlay.is-result .launch-dialog h2,
.launch-overlay.is-result .launch-message,
.launch-overlay.is-result .launch-status,
.launch-overlay.is-result .launch-close {
  position: relative;
  inset: auto;
  left: auto;
  right: auto;
  bottom: auto;
  top: auto;
  transform: none;
}
.launch-overlay.is-result .launch-kicker { margin-bottom: 10px; }
.launch-overlay.is-result .launch-dialog h2 { margin-bottom: 8px; }
.launch-overlay.is-result .launch-message { margin-bottom: 18px; }
.launch-overlay.is-result .launch-status { margin-top: 8px; }
.launch-overlay.is-result .launch-close { margin-top: 22px; }

@keyframes low-angle-ascent {
  0% { transform: translateX(-50%) perspective(900px) rotateX(9deg) scale(1.13,1.09) translateY(0); opacity: 1; }
  7% { transform: translateX(-50%) perspective(900px) rotateX(8deg) scale(1.18,1.13) translateY(10px); opacity: 1; }
  24% { transform: translateX(-50%) perspective(900px) rotateX(5deg) scale(1.12,1.08) translateY(-16vh); opacity: 1; }
  52% { transform: translateX(-50%) perspective(900px) rotateX(2deg) scale(.91,.94) translateY(-58vh); opacity: 1; }
  78% { transform: translateX(-50%) perspective(900px) rotateX(0) scale(.67,.72) translateY(-108vh); opacity: .94; }
  100% { transform: translateX(-50%) perspective(900px) rotateX(0) scale(.42,.48) translateY(-155vh); opacity: 0; }
}
@keyframes low-camera-thrust {
  from { filter: blur(4px) drop-shadow(0 0 16px rgba(87,221,255,.68)); opacity: .8; }
  to { filter: blur(8px) drop-shadow(0 0 35px rgba(154,244,255,1)); opacity: 1; }
}
@keyframes low-camera-exhaust {
  0% { opacity: 0; transform: translateX(-50%) scaleY(.04); }
  14% { opacity: .95; transform: translateX(-50%) scaleY(.78); }
  58% { opacity: .72; transform: translateX(-50%) scaleY(1); }
  100% { opacity: 0; transform: translateX(-50%) scaleY(1.2); }
}
@keyframes low-camera-pad-flash {
  from { filter: brightness(1); box-shadow: inset 0 5px 24px rgba(255,255,255,.21), 0 -15px 45px rgba(96,224,255,.19); }
  to { filter: brightness(1.55); box-shadow: inset 0 5px 34px rgba(255,255,255,.42), 0 -15px 68px rgba(96,224,255,.55); }
}
@keyframes low-camera-stars {
  from { background-position: 0 0; }
  to { background-position: -220px 420px; }
}

@media (max-width: 700px) {
  .launch-dialog { width: 100%; height: 100svh; min-height: 100svh; padding: 22px 12px; }
  .launch-rocket { width: clamp(178px, 48vw, 220px); max-width: 68vw; bottom: 16vh; }
  .launch-fire { bottom: calc(16vh - 3px); }
  .launch-pad { width: 158vw; height: 34vh; bottom: -17vh; }
  .launch-stage::before { width: 165vw; height: 39vh; }
  .launch-stage::after { height: 72vh; bottom: 15vh; }
  .launch-status { bottom: 4vh; font-size: .62rem; }
  .launch-overlay.is-launching .launch-rocket { animation-duration: 4.8s; }
  .launch-overlay.is-result .launch-dialog { width: min(92vw, 520px); height: auto; min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  button:not(:disabled), a.main-button, .card a, .video-card a, .navbar a,
  .download-button, .launch-close { transition: none !important; }
  button:not(:disabled)::after, a.main-button::after, .card a::after,
  .video-card a::after, .download-button::after,
  .launch-close::after { display: none !important; }
  .launch-overlay::before { animation: none !important; }
  .launch-overlay.is-launching .launch-rocket { animation-duration: .01ms !important; }
}
