:root {
    --space: #0a0a1f;
    --accent: #00fdc9;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Press Start 2P', system-ui;
    background: var(--space);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.stars { position:fixed; inset:0; pointer-events:none; z-index:1; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, #1a1a3a 0%, #0a0a1f 70%);
    overflow: hidden;
    padding: 1.5rem;
    text-align: center;
    flex-direction: column;
}

.solar-system {
    position: relative;
    width: 100%;
    max-width: 760px;
    height: 460px;
    border-radius: 50%;
    border: 2px solid rgba(0,253,201,0.25);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .solar-system { height: 760px; max-width: 820px; }
}

@media (max-width: 480px) {
    .solar-system { max-width: 92vw; height: 340px; }
}

.sun {
    position: absolute;
    top: 50%; left: 50%;
    width: 68px; height: 68px;
    background: radial-gradient(circle, #ffdd00, #ff8800);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 90px #ffdd00, 0 0 180px #ff8800;
    z-index: 2;
}

.planet {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255,255,255,0.6);
}

/* The secret trigger */
.oumuamua {
    position: absolute;
    width: 170px;
    height: 34px;
    background: linear-gradient(90deg, #444, #aaa, #444);
    border-radius: 60px;
    transform: rotate(-28deg);
    box-shadow: 0 0 35px #ccc;
    z-index: 10;
    animation: flyby 24s linear infinite;
    top: 37%;
    left: -200px;
    cursor: pointer;
    transition: filter 0.3s;
}
.oumuamua:hover {
    filter: brightness(1.4) drop-shadow(0 0 12px #00fdc9);
}
.oumuamua::before {
    content: '';
    position: absolute;
    top: -12px; left: 22px;
    width: 30px; height: 15px;
    background: #ddd;
    border-radius: 50%;
    opacity: 0.75;
}
@keyframes flyby {
    0%   { transform: rotate(-28deg) translateX(-200px); }
    100% { transform: rotate(-28deg) translateX(1200px); }
}

.content {
    position: relative;
    z-index: 20;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

h1, h2 {
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent);
}

h1 {
    font-size: 3.2rem;
    letter-spacing: 6px;
    margin-bottom: 0.6rem;
    text-align: center;
}

@media (min-width: 768px) {
    h1 { font-size: 4.8rem; }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.0rem;
        letter-spacing: 1.5px;
        padding: 0 6px;
    }
    .hero .content { padding-top: 1rem; }
}

.pronounce {
    font-size: 1.05rem;
    color: #bbffdd;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1rem;
    color: #bbffdd;
    margin-bottom: 1.5rem;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 480px) {
    .tagline { font-size: 0.9rem; }
    .pronounce { font-size: 0.85rem; }
}

/* Buttons */
.cta, .define-btn, .close-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--accent);
    border: 3px solid var(--accent);
    font-size: 1.1rem;
    text-decoration: none;
    margin-top: 1rem;
    box-shadow: 0 0 25px var(--accent);
    transition: all .3s;
    cursor: pointer;
    font-family: inherit;
}
.cta:hover, .define-btn:hover, .close-btn:hover {
    background: var(--accent);
    color: #000;
    transform: scale(1.05);
}

section {
    padding: 4rem 1rem;
    position: relative;
    z-index: 10;
}

.facts { background: rgba(10,10,31,0.96); }
.facts .content h2 { text-align: center; margin-bottom: 2rem; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: rgba(255,255,255,0.06);
    padding: 1.8rem;
    border: 1px solid rgba(0,253,201,0.35);
    transition: transform .4s;
    position: relative;
}
.card:hover { transform: translateY(-8px); }
.card h3 {
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.stamp {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 4px solid #ff2222;
    color: #ff2222;
    padding: 4px 18px;
    font-size: 1.1rem;
    transform: rotate(-12deg);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: none;
}

.definition, .trailer, .probe, .kuiper, .science {
    background: var(--space);
    text-align: center;
}

.trailer-container {
    max-width: 920px;
    margin: 2rem auto;
    background: #000;
    border: 5px solid var(--accent);
    overflow: hidden;
}
.trailer-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
}

.type-log {
    text-align: left;
    max-width: 720px;
    margin: 1.5rem auto;
    padding: 1.5rem;
    background: rgba(0,253,201,0.08);
    border: 2px solid var(--accent);
    min-height: 180px;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

footer {
    text-align: center;
    padding: 3.5rem 1rem;
    background: #000;
    font-size: 0.85rem;
    color: var(--accent);
}

.scanline {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,253,201,0.04) 50%);
    background-size: 100% 6px;
    pointer-events: none;
    animation: scan 4.5s linear infinite;
    z-index: 30;
    opacity: 0.35;
}
@keyframes scan {
    0% { background-position: 0 0; }
    100% { background-position: 0 500px; }
}

.speculation { color: #ffdd88; font-style: italic; }

/* Kuiper */
.kuiper-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, #0f1a2a 0%, #0a0a1f 80%);
    overflow: hidden;
    padding: 2rem 1rem;
    text-align: center;
    flex-direction: column;
}
.kuiper-system {
    position: relative;
    width: 100%;
    max-width: 820px;
    height: 380px;
    border-radius: 50%;
    border: 2px solid rgba(100,200,255,0.2);
    margin: 0 auto 2rem;
    background: radial-gradient(circle, rgba(80,120,180,0.1) 20%, transparent 70%);
}
@media (max-width: 480px) {
    .kuiper-system { height: 280px; max-width: 92vw; }
}
.kuiper-oumuamua {
    position: absolute;
    width: 140px;
    height: 28px;
    background: linear-gradient(90deg, #555, #bbb, #555);
    border-radius: 60px;
    transform: rotate(-35deg);
    box-shadow: 0 0 40px #88ddff;
    z-index: 10;
    animation: kuiperfly 18s linear infinite;
    top: 42%;
    left: -180px;
}
.kuiper-oumuamua::before {
    content: '';
    position: absolute;
    top: -10px; left: 18px;
    width: 26px; height: 13px;
    background: #ddd;
    border-radius: 50%;
    opacity: 0.8;
}
@keyframes kuiperfly {
    0%   { transform: rotate(-35deg) translateX(-180px); }
    100% { transform: rotate(-35deg) translateX(1100px); }
}
.kuiper-body {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #99bbdd;
    border-radius: 50%;
    box-shadow: 0 0 15px #77aaff;
    opacity: 0.85;
}
.kuiper-content { position: relative; z-index: 20; max-width: 780px; }

/* ===== EASTER EGG MODAL ===== */
#snake-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.97);
    z-index: 200;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1rem;
    overflow-y: auto;
}
#snake-modal.open {
    display: flex;
}

.modal-inner {
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.modal-title {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 20px var(--accent);
}
.modal-sub {
    color: #88aaff;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

#snake-canvas {
    border: 4px solid var(--accent);
    background: #000;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: 320px;
    height: 320px;
    touch-action: none;
}

#snake-score {
    color: #fff;
    margin: 0.8rem 0;
    font-size: 0.9rem;
}

/* D-pad for mobile */
.dpad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0.8rem auto;
    user-select: none;
}
.dpad-mid {
    display: flex;
    gap: 48px;
}
.dpad-btn {
    width: 56px;
    height: 56px;
    background: rgba(0,253,201,0.15);
    border: 3px solid var(--accent);
    color: var(--accent);
    font-size: 1.4rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.dpad-btn:active,
.dpad-btn.active {
    background: var(--accent);
    color: #000;
}

.modal-controls {
    margin-top: 0.5rem;
}
.close-btn {
    font-size: 0.85rem;
    padding: 0.7rem 1.8rem;
}

.modal-hint {
    color: #ffdd88;
    font-size: 0.7rem;
    margin-top: 1rem;
    line-height: 1.5;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.desktop-only { display: inline; }
.mobile-only { display: none; }

@media (max-width: 600px) {
    .desktop-only { display: none; }
    .mobile-only { display: inline; }
    #snake-canvas {
        width: 280px;
        height: 280px;
    }
    .modal-title { font-size: 1.1rem; }
}

/* Lyra star */
.lyra-star {
    position: absolute;
    border-radius: 50%;
    background: #aaffff;
    box-shadow: 0 0 15px #aaffff, 0 0 30px #77ddff;
    animation: lyraPulse 2s infinite alternate ease-in-out;
    pointer-events: none;
}
@keyframes lyraPulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 25px #ccffff, 0 0 50px #88eeff; }
}
