/* =========================================================
   HEADER SUPPORT
   ========================================================= */

.container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-main {
    font-size: 15px;
}

.brand-vs {
    font-size: 11px;
    opacity: 0.45;
}

.brand-earth {
    font-size: 15px;
    opacity: 0.7;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: #fff;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 9999;
    padding: 10px 14px;
    background: #fff;
    color: #000;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

@media (max-width: 640px) {

    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 60px;
    }

    .brand-main,
    .brand-earth {
        font-size: 13px;
    }

    .site-nav {
        gap: 12px;
    }

    .site-nav a {
        font-size: 12px;
    }
}

/* =========================================================
   1. RESET / BASE
   ========================================================= */

:root {
    --bg: #050608;
    --bg-soft: #0b0d11;
    --panel: #101319;
    --panel-2: #151922;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);

    --text: #f5f7fa;
    --text-soft: #aeb6c2;
    --text-muted: #737d8b;

    --accent: #ffffff;
    --accent-soft: rgba(255, 255, 255, 0.10);

    --success: #78f0a4;
    --success-soft: rgba(120, 240, 164, 0.10);

    --danger: #ff7c7c;
    --danger-soft: rgba(255, 124, 124, 0.10);

    --warning: #ffd166;
    --warning-soft: rgba(255, 209, 102, 0.10);

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 26px;

    --container: 1120px;

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);

    --transition:
        180ms ease;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(255, 255, 255, 0.07),
            transparent 38%
        ),
        var(--bg);
    color: var(--text);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::selection {
    background: #ffffff;
    color: #000000;
}

img,
svg {
    max-width: 100%;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

/* =========================================================
   2. TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.3rem, 9vw, 5.8rem);
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-top: 0;
}

.muted {
    color: var(--text-soft);
}

.small {
    font-size: 0.875rem;
}

/* =========================================================
   3. SITE HEADER
   ========================================================= */

.site-header {
    position: relative;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 20px 0;
}

.brand {
    display: inline-flex;
    align-items: center;

    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.brand span {
    opacity: 0.45;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-header nav a {
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 700;
    transition:
        color var(--transition),
        opacity var(--transition);
}

.site-header nav a:hover {
    color: var(--text);
}

/* =========================================================
   4. GLOBAL LAYOUT
   ========================================================= */

main {
    overflow: hidden;
}

.container,
.panel,
.seo-section,
.final-cta {
    width: min(100% - 32px, var(--container));
    margin-left: auto;
    margin-right: auto;
}

section {
    scroll-margin-top: 80px;
}

/* =========================================================
   5. HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 620px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 60px 16px 90px;

    text-align: center;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(255, 255, 255, 0.055),
            transparent 25%
        );

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 5;

    max-width: 850px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 18px;
    padding: 7px 12px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.03);

    color: var(--text-soft);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 18px;
    font-weight: 900;
}

.hero p {
    max-width: 650px;
    margin: 0 auto 28px;

    color: var(--text-soft);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

/* =========================================================
   6. HERO ORBIT
   ========================================================= */

.hero-orbit {
    position: absolute;

    width: min(82vw, 520px);
    aspect-ratio: 1;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    pointer-events: none;

    opacity: 0.9;
}

.orbit-ring {
    position: absolute;
    inset: 0;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    transform: rotate(-12deg);
}

.orbit-ring::before,
.orbit-ring::after {
    content: "";

    position: absolute;

    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 50%;
}

.orbit-ring::before {
    inset: 10%;
}

.orbit-ring::after {
    inset: 20%;
}

.earth {
    position: absolute;

    width: 120px;
    height: 120px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 32% 28%,
            rgba(255, 255, 255, 0.35),
            transparent 13%
        ),
        radial-gradient(
            circle at 40% 40%,
            #8c96a5,
            #343b45 55%,
            #101319 100%
        );

    box-shadow:
        0 0 50px rgba(255, 255, 255, 0.09),
        inset -20px -18px 35px rgba(0, 0, 0, 0.65);
}

.car {
    position: absolute;

    top: 50%;
    left: 0;

    width: 58px;
    height: 26px;

    transform:
        translateY(-50%)
        rotate(0deg);

    border-radius: 7px 12px 7px 7px;

    background: #ffffff;

    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.35);

    animation:
        orbitCar 9s linear infinite;
}

.car::before {
    content: "";

    position: absolute;

    width: 25px;
    height: 13px;

    top: -8px;
    right: 9px;

    border-radius: 8px 8px 2px 2px;

    background: #dce0e5;
}

.car::after {
    content: "";

    position: absolute;

    width: 8px;
    height: 8px;

    left: 7px;
    bottom: -4px;

    border-radius: 50%;

    background: #050608;

    box-shadow: 36px 0 #050608;
}

@keyframes orbitCar {
    from {
        transform:
            rotate(0deg)
            translateX(235px)
            rotate(0deg)
            translateY(-50%);
    }

    to {
        transform:
            rotate(360deg)
            translateX(235px)
            rotate(-360deg)
            translateY(-50%);
    }
}

/* =========================================================
   7. BUTTONS
   ========================================================= */

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 48px;

    padding: 12px 20px;

    border: 1px solid var(--border-strong);
    border-radius: 999px;

    background: #ffffff;
    color: #050608;

    font-size: 0.95rem;
    font-weight: 800;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.button:hover,
button.button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);
}

.button:active,
button.button:active {
    transform: translateY(0);
}

.button.secondary {
    background: transparent;
    color: var(--text);
}

/* =========================================================
   8. SIMULATOR PANEL
   ========================================================= */

.simulator {
    position: relative;

    padding: 28px 0 70px;
}

.panel-inner {
    padding: 22px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );

    box-shadow: var(--shadow);
}

.simulator-header {
    margin-bottom: 30px;
}

.simulator-header h2 {
    margin-bottom: 8px;
}

.simulator-header p {
    margin-bottom: 0;
    color: var(--text-soft);
}

/* =========================================================
   9. CONTROLS
   ========================================================= */

.control-grid {
    display: grid;
    gap: 22px;
}

.control-block {
    padding: 18px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: rgba(0, 0, 0, 0.18);
}

.control-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 12px;
}

.control-heading label {
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.control-value {
    color: var(--text);
    font-weight: 900;
    white-space: nowrap;
}

input[type="range"] {
    width: 100%;
    height: 34px;

    margin: 0;

    appearance: none;
    -webkit-appearance: none;

    background: transparent;

    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 5px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            rgba(255, 255, 255, 0.14)
        );
}

input[type="range"]::-moz-range-track {
    height: 5px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            rgba(255, 255, 255, 0.14)
        );
}

input[type="range"]::-webkit-slider-thumb {
    width: 22px;
    height: 22px;

    margin-top: -8px;

    appearance: none;
    -webkit-appearance: none;

    border: 3px solid #050608;
    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.25);
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;

    border: 3px solid #050608;
    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.25);
}

.range-labels {
    display: flex;
    justify-content: space-between;

    margin-top: 5px;

    color: var(--text-muted);
    font-size: 0.72rem;
}

.location-display {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-top: 18px;
    padding-top: 16px;

    border-top: 1px solid var(--border);
}

.mini-label {
    display: block;

    margin-bottom: 2px;

    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.location-name {
    font-weight: 800;
}

.location-speed {
    font-size: 1.1rem;
    font-weight: 900;
    text-align: right;
}

/* =========================================================
   10. RACE COMPARISON
   ========================================================= */

.race {
    margin-top: 24px;
}

.race-row {
    display: grid;
    grid-template-columns: 90px 1fr 90px;

    align-items: center;
    gap: 10px;

    margin-bottom: 14px;
}

.race-label {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.race-speed {
    font-size: 0.8rem;
    font-weight: 900;
    text-align: right;
}

.race-track {
    position: relative;

    height: 14px;

    overflow: hidden;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.06);
}

.race-bar {
    width: 3%;
    height: 100%;

    border-radius: inherit;

    background: #ffffff;

    transition:
        width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

#earthBar {
    background: #747d89;
}

/* =========================================================
   11. RESULT
   ========================================================= */

.result {
    position: relative;

    margin-top: 28px;
    padding: 25px 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--panel);

    text-align: center;

    overflow: hidden;

    transition:
        border-color 250ms ease,
        background 250ms ease,
        transform 250ms ease;
}

.result::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255, 255, 255, 0.08),
            transparent 55%
        );

    pointer-events: none;
}

.result-icon {
    position: relative;

    margin-bottom: 8px;

    font-size: 2rem;
    line-height: 1;
}

.result h3 {
    position: relative;

    margin-bottom: 7px;

    font-size: 1.35rem;
    font-weight: 900;
}

.result p {
    position: relative;

    max-width: 600px;

    margin: 0 auto;

    color: var(--text-soft);
    font-size: 0.92rem;
}

.result[data-winner="roadster"] {
    border-color: rgba(120, 240, 164, 0.35);
    background:
        linear-gradient(
            145deg,
            var(--success-soft),
            rgba(0, 0, 0, 0.15)
        );
}

.result[data-winner="earth"] {
    border-color: rgba(255, 124, 124, 0.3);
    background:
        linear-gradient(
            145deg,
            var(--danger-soft),
            rgba(0, 0, 0, 0.15)
        );
}

.result[data-winner="tie"] {
    border-color: rgba(255, 209, 102, 0.3);
    background:
        linear-gradient(
            145deg,
            var(--warning-soft),
            rgba(0, 0, 0, 0.15)
        );
}

.result-pulse {
    animation: resultPulse 650ms ease;
}

@keyframes resultPulse {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.012);
    }

    100% {
        transform: scale(1);
    }
}

/* =========================================================
   12. SIMULATION STATS
   ========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    overflow: hidden;
}

.stat {
    min-width: 0;

    padding: 15px 10px;

    text-align: center;

    background: rgba(255, 255, 255, 0.02);
}

.stat + .stat {
    border-left: 1px solid var(--border);
}

.stat-label {
    display: block;

    margin-bottom: 4px;

    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-value {
    display: block;

    overflow: hidden;

    color: var(--text);
    font-size: clamp(0.9rem, 3vw, 1.15rem);
    font-weight: 900;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   13. SHARE
   ========================================================= */

.share-area {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    margin-top: 22px;
}

.share-status {
    min-height: 20px;

    color: var(--text-muted);
    font-size: 0.75rem;

    text-align: center;

    opacity: 0;
    transition: opacity var(--transition);
}

.share-status:not(:empty) {
    opacity: 1;
}

/* =========================================================
   14. CHALLENGE INTRO
   ========================================================= */

.challenge-intro {
    width: min(100% - 32px, 760px);

    margin: 40px auto 28px;

    text-align: center;
}

.challenge-intro h2 {
    margin-bottom: 10px;
}

.challenge-intro p {
    margin-bottom: 0;

    color: var(--text-soft);
}

/* =========================================================
   15. CHALLENGE CARDS
   ========================================================= */

.cards-section {
    width: min(100% - 32px, var(--container));

    margin: 0 auto;

    padding-bottom: 80px;
}

.cards-heading {
    margin-bottom: 22px;
}

.cards-heading h2 {
    margin-bottom: 6px;
}

.cards-heading p {
    margin-bottom: 0;
    color: var(--text-soft);
}

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

.challenge-card {
    position: relative;

    min-height: 200px;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.012)
        );

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.challenge-card:not(.locked):hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.challenge-card.locked {
    opacity: 0.55;
}

.challenge-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 18px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.04);

    font-size: 1.35rem;
}

.challenge-number {
    display: block;

    margin-bottom: 5px;

    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.challenge-card h3 {
    margin-bottom: 7px;
}

.challenge-card p {
    margin-bottom: 0;

    color: var(--text-soft);
    font-size: 0.9rem;
}

.coming-soon {
    position: absolute;

    top: 18px;
    right: 18px;

    padding: 4px 8px;

    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* =========================================================
   16. SCIENCE SECTION
   ========================================================= */

#science {
    width: min(100% - 32px, var(--container));

    margin: 0 auto;
    padding: 0 0 80px;
}

#science h2 {
    margin-bottom: 12px;
}

#science > p {
    max-width: 760px;
    color: var(--text-soft);
}

.formula {
    margin: 25px 0 16px;
    padding: 22px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: #080a0e;

    overflow-x: auto;

    text-align: center;
}

.formula code {
    color: var(--text);
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: clamp(1rem, 3vw, 1.35rem);
    font-weight: 700;
}

.formula-explanation {
    max-width: 760px;

    color: var(--text-soft);
    font-size: 0.9rem;
}

/* =========================================================
   17. SEO / FAQ CONTENT
   ========================================================= */

.seo-section {
    padding-bottom: 80px;
}

.seo-section > h2 {
    margin-bottom: 12px;
}

.seo-section > p {
    max-width: 800px;
    color: var(--text-soft);
}

details {
    margin-top: 12px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: rgba(255, 255, 255, 0.025);

    overflow: hidden;
}

summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 18px;

    cursor: pointer;

    color: var(--text);
    font-weight: 800;

    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";

    flex: 0 0 auto;

    color: var(--text-muted);
    font-size: 1.3rem;
    font-weight: 400;

    transition: transform var(--transition);
}

details[open] summary::after {
    transform: rotate(45deg);
}

details p {
    margin: 0;

    padding: 0 18px 18px;

    color: var(--text-soft);
    font-size: 0.9rem;
}

/* =========================================================
   18. FINAL CTA
   ========================================================= */

.final-cta {
    position: relative;

    min-height: 260px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 70px;
    padding: 40px 24px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background:
        radial-gradient(
            circle at 50% 100%,
            rgba(255, 255, 255, 0.08),
            transparent 55%
        ),
        var(--panel);

    text-align: center;

    overflow: hidden;
}

.final-cta-content {
    position: relative;
    z-index: 3;

    max-width: 680px;
}

.final-cta h2 {
    margin-bottom: 10px;
}

.final-cta p {
    margin-bottom: 22px;

    color: var(--text-soft);
}

.cta-orbit {
    position: absolute;

    width: 350px;
    height: 350px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;

    pointer-events: none;
}

.cta-orbit::before,
.cta-orbit::after {
    content: "";

    position: absolute;

    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
}

.cta-orbit::before {
    inset: 15%;
}

.cta-orbit::after {
    inset: 30%;
}

/* =========================================================
   19. FOOTER
   ========================================================= */

.site-footer {
    width: min(100% - 32px, var(--container));

    margin: 0 auto;
    padding: 25px 0 35px;

    border-top: 1px solid var(--border);

    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
}

.site-footer a {
    color: var(--text-soft);
}

.site-footer a:hover {
    color: var(--text);
}

/* =========================================================
   20. LOADING / ANIMATION STATES
   ========================================================= */

.is-animating {
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 500ms ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   21. RESPONSIVE — TABLET
   ========================================================= */

@media (min-width: 640px) {

    .site-header {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .hero {
        min-height: 700px;
        padding-top: 80px;
    }

    .panel-inner {
        padding: 30px;
    }

    .control-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .challenge-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .final-cta {
        min-height: 300px;
    }
}

/* =========================================================
   22. RESPONSIVE — DESKTOP
   ========================================================= */

@media (min-width: 900px) {

    .site-header {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .hero {
        min-height: 760px;
    }

    .hero-orbit {
        width: 600px;
    }

    .earth {
        width: 150px;
        height: 150px;
    }

    .car {
        width: 70px;
        height: 30px;
    }

    .simulator {
        padding-top: 0;
    }

    .panel-inner {
        padding: 38px;
    }

    .challenge-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .challenge-card:first-child {
        border-color: rgba(255, 255, 255, 0.2);
    }

    .stats-grid {
        margin-top: 24px;
    }

    .final-cta {
        padding: 60px;
    }
}

/* =========================================================
   23. LARGE DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

    .hero {
        min-height: 820px;
    }

    .hero-orbit {
        width: 680px;
    }

    .earth {
        width: 170px;
        height: 170px;
    }
}

/* =========================================================
   24. MOBILE OPTIMIZATION
   ========================================================= */

@media (max-width: 480px) {

    .site-header {
        width: min(100% - 24px, var(--container));
    }

    .site-header nav {
        gap: 12px;
    }

    .site-header nav a {
        font-size: 0.75rem;
    }

    .hero {
        min-height: 580px;
        padding: 40px 12px 70px;
    }

    .hero-orbit {
        width: 330px;
        opacity: 0.65;
    }

    .earth {
        width: 95px;
        height: 95px;
    }

    .car {
        width: 45px;
        height: 22px;
    }

    .race-row {
        grid-template-columns: 72px 1fr 72px;
        gap: 7px;
    }

    .race-label,
    .race-speed {
        font-size: 0.68rem;
    }

    .location-display {
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat {
        padding: 12px;
    }

    .stat + .stat {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .final-cta {
        width: min(100% - 24px, var(--container));
    }
}

/* =========================================================
   25. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .race-bar {
        transition: none;
    }
}

/* =========================================================
   26. HIGH CONTRAST / ACCESSIBILITY
   ========================================================= */

@media (prefers-contrast: more) {

    :root {
        --border: rgba(255, 255, 255, 0.28);
        --border-strong: rgba(255, 255, 255, 0.5);
        --text-soft: #d1d5dc;
        --text-muted: #aeb5bf;
    }

    .challenge-card,
    .control-block,
    .result,
    .formula,
    details,
    .final-cta {
        border-width: 2px;
    }
}

/* =========================================================
   27. PRINT
   ========================================================= */

@media print {

    body {
        background: #ffffff;
        color: #000000;
    }

    .site-header nav,
    .hero-orbit,
    .share-area,
    .final-cta,
    .site-footer {
        display: none !important;
    }

    .hero,
    .panel,
    .cards-section,
    #science,
    .seo-section {
        width: 100%;
        max-width: none;
    }

    .panel-inner,
    .challenge-card,
    .result,
    .formula,
    details {
        border: 1px solid #000000;
        box-shadow: none;
        background: #ffffff;
        color: #000000;
    }
}