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

body {
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    font-weight: 900;
    color: #bb88ff;
    overflow: hidden;
    background: #000;
    text-transform: uppercase;
}

/* Galaxy Background */
#bg {
    position: fixed;
    inset: 0;
    background: url('img/bg-landing.jpg') center center / cover no-repeat;
    z-index: -1;
}


@keyframes floatAstronaut {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-30px);
    }
}

/* Top Center: Title */
#top-title {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
}

#r69-title {
    font-size: 5rem;
    font-weight: 900;
    color: #9966dd;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 15px rgba(120, 80, 200, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.8);
    -webkit-text-stroke: 2px #000;
    letter-spacing: 18px;
    margin: 0;
    padding: 0;
    font-family: 'Arial Black', sans-serif;
}

#tagline {
    font-size: 1.3rem;
    color: #9966dd;
    letter-spacing: 5px;
    margin: 10px 0 0 0;
    padding: 0;
    font-weight: 300;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 8px rgba(120, 80, 200, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.7);
    -webkit-text-stroke: 1px #000;
    text-transform: uppercase;
}

/* Top Right: Login / Sign Up */
#user-controls {
    position: fixed;
    top: 30px;
    right: 40px;
    display: flex;
    gap: 20px;
    z-index: 100;
}

.login-btn, .signup-btn {
    background: transparent;
    border: 2px solid #9966ff;
    color: #bb88ff;
    padding: 10px 30px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.login-btn:hover, .signup-btn:hover {
    background: #9966ff;
    box-shadow: 0 0 20px #9966ff;
}

/* Left Side: Ash Container */
#ash-container {
    position: fixed;
    left: 40px;
    top: 30px;
    transform: none;
    z-index: 50;
}

#ash-frame {
    width: 180px;
    height: 280px;
    border: 3px solid #9966ff;
    border-radius: 15px;
    background: rgba(30, 15, 60, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px #9966ff;
    position: relative;
    overflow: hidden;
}

#ash-hologram {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#ash-hologram img,
#ash-hologram video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) saturate(1.3);
}

#ash-play-btn {
    position: relative;
    display: block;
    margin: 15px auto 0;
    background: rgba(138, 43, 226, 0.9);
    border: 2px solid #bb88ff;
    color: #bb88ff;
    padding: 6px 14px;
    font-size: 0.65rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
    z-index: 10;
}

#ash-play-btn:hover {
    background: #bb88ff;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.9);
    transform: scale(1.05);
}

#ash-play-btn.playing {
    background: rgba(255, 100, 100, 0.9);
    border-color: #ff6666;
    box-shadow: 0 0 15px rgba(255, 100, 100, 0.6);
}

#ash-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #bb88ff;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 10px #9966ff;
    letter-spacing: 3px;
}

/* Navigation Menu - positioned on left side below ash on desktop */
#ash-menu {
    position: fixed;
    left: 40px;
    top: 370px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 50;
}

#ash-menu button {
    background: transparent;
    border: none;
    color: #bb88ff;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    padding: 10px 0;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    transition: all 0.3s;
    letter-spacing: 1px;
}

#ash-menu button:hover {
    color: #bb88ff;
    text-shadow: 0 0 10px #9966ff;
    transform: translateX(5px);
}

/* Center: Astronaut Section */
#astronaut-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 700px;
    perspective: 1000px;
}

/* Orbital Rings */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
    transform-style: preserve-3d;
}

#orbit-ring-1 {
    width: 500px;
    height: 500px;
    border-color: rgba(255, 255, 255, 0.3);
    border-width: 2px;
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(10deg);
}

#orbit-ring-2 {
    width: 750px;
    height: 750px;
    border-color: rgba(255, 255, 255, 0.25);
    border-width: 2px;
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(-15deg);
}

#orbit-ring-3 {
    width: 1000px;
    height: 1000px;
    border-color: rgba(255, 255, 255, 0.2);
    border-width: 2px;
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(25deg);
}

#astronaut {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 450px;
    background: url('img/astronaut.png') center center / contain no-repeat;
    z-index: 10;
    filter: drop-shadow(0 0 40px rgba(138, 43, 226, 0.4));
    animation: floatAstronaut 4s ease-in-out infinite;
}

/* Orbiting Planets */
.orbit-planet {
    position: absolute;
    width: 80px;
    height: 80px;
    cursor: pointer;
    z-index: 5;
    top: 50%;
    left: 50%;
    margin: -40px 0 0 -40px;
    transform-style: preserve-3d;
}

.planet-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 0 25px;
    background: transparent;
    overflow: hidden;
}

.planet-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#planet-instagram:hover .planet-circle {
    transform: rotateZ(-55deg) rotateX(-75deg) scale(1.15);
}
#planet-youtube:hover .planet-circle {
    transform: rotateZ(-180deg) rotateX(-75deg) scale(1.15);
}
#planet-spotify:hover .planet-circle {
    transform: rotateZ(-235deg) rotateX(-75deg) scale(1.15);
}
#planet-tiktok-1:hover .planet-circle {
    transform: rotateZ(5deg) rotateX(-75deg) scale(1.15);
}
#planet-apple:hover .planet-circle {
    transform: rotateZ(-105deg) rotateX(-75deg) scale(1.15);
}

/* Individual Planet Positions - On Ring 1 (500px radius = 250px) */
#planet-instagram {
    transform: rotateX(75deg) rotateZ(55deg) translateX(250px);
}
#planet-instagram .planet-circle {
    border-color: #e1306c;
    color: #bb88ff;
    box-shadow: 0 0 30px #e1306c, inset 0 0 15px rgba(225, 48, 108, 0.3);
    transform: rotateZ(-55deg) rotateX(-75deg);
}

/* Individual Planet Positions - On Ring 2 (750px radius = 375px) */
#planet-tiktok-1 {
    transform: rotateX(75deg) rotateZ(-5deg) translateX(375px);
}
#planet-tiktok-1 .planet-circle {
    border-color: #00d4ff;
    color: #bb88ff;
    box-shadow: 0 0 30px #00d4ff, inset 0 0 15px rgba(0, 212, 255, 0.3);
    transform: rotateZ(5deg) rotateX(-75deg);
}

#planet-apple {
    transform: rotateX(75deg) rotateZ(105deg) translateX(375px);
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
}
#planet-apple .planet-circle {
    border-color: #ff9966;
    color: #bb88ff;
    box-shadow: 0 0 30px #ff9966, inset 0 0 15px rgba(255, 153, 102, 0.3);
    transform: rotateZ(-105deg) rotateX(-75deg);
}

#planet-youtube {
    transform: rotateX(75deg) rotateZ(180deg) translateX(375px);
}
#planet-youtube .planet-circle {
    border-color: #ff6644;
    color: #bb88ff;
    box-shadow: 0 0 30px #ff6644, inset 0 0 15px rgba(255, 102, 68, 0.3);
    transform: rotateZ(-180deg) rotateX(-75deg);
}

#planet-spotify {
    transform: rotateX(75deg) rotateZ(235deg) translateX(375px);
}
#planet-spotify .planet-circle {
    border-color: #1ed760;
    color: #bb88ff;
    box-shadow: 0 0 30px #1ed760, inset 0 0 15px rgba(30, 215, 96, 0.3);
    transform: rotateZ(-235deg) rotateX(-75deg);
}
#planet-spotify .planet-circle img {
    transform: scale(1.25);
}

/* Individual Planet Positions - On Ring 3 (1000px radius = 500px) - REMOVED */

#planet-store {
    display: none;
}

#planet-patreon {
    transform: rotateX(75deg) rotateZ(320deg) translateX(375px);
}
#planet-patreon .planet-circle {
    border-color: #ff6b6b;
    color: #bb88ff;
    box-shadow: 0 0 30px #ff6b6b, inset 0 0 15px rgba(255, 107, 107, 0.3);
    transform: rotateZ(-320deg) rotateX(-75deg);
}
#planet-patreon .planet-circle img {
    filter: invert(1);
}
#planet-patreon:hover .planet-circle {
    transform: rotateZ(-320deg) rotateX(-75deg) scale(1.15);
}

/* Bottom Center: Hero Section */
#hero-section {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 20;
}

#main-title {
    display: none;
}

#subtitle {
    display: none;
}

#enter-btn {
    background: transparent;
    border: 2px solid #9966ff;
    color: #bb88ff;
    padding: 15px 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50px;
    letter-spacing: 2px;
    transition: all 0.3s;
}

#enter-btn:hover {
    background: #9966ff;
    color: #bb88ff;
    box-shadow: 0 0 30px #9966ff;
}

#max-version {
    position: fixed;
    bottom: 40px;
    left: 0;
    right: 0;
    width: 100%;
    font-size: 1rem;
    color: #bb88ff;
    letter-spacing: 5px;
    font-weight: 300;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 15px rgba(153, 102, 255, 0.8);
    text-transform: uppercase;
    text-align: center;
    z-index: 20;
}

/* ==================== MOBILE RESPONSIVE ==================== */

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* Title - moved down more, matching desktop font */
    #top-title {
        position: fixed;
        top: 130px;
        left: 0;
        right: 0;
        width: 100%;
        text-align: center;
        transform: none;
        z-index: 100;
    }

    #r69-title {
        font-family: 'Arial Black', sans-serif;
        font-size: 54px;
        letter-spacing: 16px;
        font-weight: 900;
        color: #9966ff;
        text-shadow: none;
        -webkit-text-stroke: none;
        transform: none !important;
    }

    #tagline {
        font-family: 'Arial', sans-serif;
        font-size: 14px;
        letter-spacing: 8px;
        font-weight: 700;
        color: #bb88ff;
        text-shadow: none;
        -webkit-text-stroke: none;
        transform: none !important;
    }

    /* User controls - top right */
    #user-controls {
        position: fixed;
        top: 10px;
        right: 10px;
        gap: 10px;
    }

    .login-btn, .signup-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    /* ASH card - centered at bottom, above max version */
    #ash-container {
        position: fixed;
        left: 50%;
        bottom: 80px;
        top: auto;
        transform: translateX(-50%);
        z-index: 100;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        visibility: visible !important;
        opacity: 1 !important;
    }

    #ash-frame {
        width: 90px;
        height: 130px;
        border-width: 2px;
        display: block !important;
        visibility: visible !important;
        background: rgba(30, 15, 60, 0.3);
    }

    #ash-hologram {
        display: block !important;
        visibility: visible !important;
        width: 100%;
        height: 100%;
    }

    /* Video visible by default as preview (like desktop) */
    #ash-hologram video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Listen button - smaller, centered under ASH card */
    #ash-play-btn {
        display: block !important;
        font-size: 8px;
        padding: 4px 8px;
        margin: 8px auto 0 auto;
        width: auto;
        text-align: center;
    }

    #ash-label {
        font-size: 12px;
        letter-spacing: 2px;
        display: block !important;
        visibility: visible !important;
        position: absolute;
        bottom: 6px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Navigation - horizontal row at top */
    #ash-menu {
        position: fixed !important;
        top: 50px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin-top: 0;
        transform: none;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
        padding: 0 10px;
        z-index: 100;
    }

    #ash-menu button {
        font-size: 10px;
        padding: 5px 10px;
        letter-spacing: 1px;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: geometricPrecision;
    }

    /* ========== ORBIT SECTION - DO NOT MODIFY RING CSS ========== */
    /* Astronaut section - centered */
    #astronaut-section {
        position: fixed;
        top: 55%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 360px;
        height: 360px;
        perspective: none;
    }

    /* Astronaut - centered */
    #astronaut {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 150px;
        height: 190px;
        z-index: 5;
        animation: floatAstronaut 4s ease-in-out infinite;
    }

    /* ========== ORBIT RINGS - LOCKED, DO NOT CHANGE ========== */
    .orbit-ring {
        display: block;
        border-color: rgba(153, 102, 255, 0.5) !important;
    }

    #orbit-ring-1 {
        width: 200px;
        height: 200px;
        border-width: 2px;
        box-shadow: 0 0 15px rgba(153, 102, 255, 0.3);
    }

    #orbit-ring-2 {
        width: 280px;
        height: 280px;
        border-width: 2px;
        box-shadow: 0 0 15px rgba(153, 102, 255, 0.3);
    }

    #orbit-ring-3 {
        width: 360px;
        height: 360px;
        border-width: 2px;
        box-shadow: 0 0 15px rgba(153, 102, 255, 0.3);
    }
    /* ========== END ORBIT RINGS - DO NOT MODIFY ABOVE ========== */

    /* ========== PLANETS - POSITIONED ON TILTED RING 3 ========== */
    /* Ring 3 is 360px with rotateX(75deg) rotateZ(25deg) - appears as tilted ellipse */
    /* Container: 360px, Center: 180px */
    .orbit-planet {
        position: absolute !important;
        width: 50px !important;
        height: 50px !important;
        z-index: 20;
        transform: none !important;
    }

    /* Planet circles - perfectly round, NO skew/perspective */
    .orbit-planet .planet-circle {
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        border-width: 3px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        transform: none !important;
    }

    /* Images inside - perfectly round */
    .orbit-planet .planet-circle img {
        width: 100% !important;
        height: 100% !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        transform: none !important;
    }

    /* ========== PLANET POSITIONS ON TILTED ELLIPSE ========== */
    /* Ring 3: 360px diameter, rotateX(75deg) = ~47px visual height, rotateZ(25deg) tilt */
    /* Ellipse: ~360px wide, ~94px tall, tilted 25deg */
    /* Place planets at positions matching where ring visually appears */
    
    /* Spotify - upper left area of ellipse */
    #planet-spotify {
        top: 130px !important;
        left: 75px !important;
    }

    /* Patreon - upper right area */
    #planet-patreon {
        top: 140px !important;
        left: 295px !important;
    }

    /* Instagram - right side of ellipse (mirroring YouTube) */
    #planet-instagram {
        top: 175px !important;
        left: 355px !important;
    }

    /* TikTok - lower right */
    #planet-tiktok-1 {
        top: 225px !important;
        left: 280px !important;
    }

    /* YouTube - left side of ellipse */
    #planet-youtube {
        top: 175px !important;
        left: 5px !important;
    }

    /* Apple Music - lower left */
    #planet-apple {
        width: 50px !important;
        height: 50px !important;
        top: 220px !important;
        left: 75px !important;
    }
    #planet-apple .planet-circle {
        width: 50px !important;
        height: 50px !important;
    }

    /* Hide store planet on mobile */
    #planet-store {
        display: none !important;
    }

    /* Max version text */
    #max-version {
        position: fixed;
        bottom: 15px;
        left: 0;
        right: 0;
        width: 100%;
        text-align: center;
        transform: none;
        font-size: 11px;
        letter-spacing: 3px;
    }
}

@media screen and (max-width: 480px) {
    #top-title {
        top: 115px;
    }

    #r69-title {
        font-size: 32px;
        letter-spacing: 10px;
        text-shadow: none;
        -webkit-text-stroke: none;
    }

    #tagline {
        font-size: 11px;
        letter-spacing: 5px;
        font-weight: 700;
        color: #bb88ff;
        text-shadow: none;
        -webkit-text-stroke: none;
    }

    #ash-container {
        bottom: 70px;
    }

    #ash-frame {
        width: 80px;
        height: 110px;
    }

    #ash-label {
        font-size: 10px;
    }

    #ash-play-btn {
        display: block !important;
        font-size: 8px;
        padding: 4px 8px;
        margin-top: 6px;
        width: auto;
        text-align: center;
    }

    #ash-menu {
        top: 45px;
        gap: 5px 10px;
    }

    #ash-menu button {
        font-size: 9px;
        padding: 4px 8px;
    }

    /* Smaller container for small phones */
    #astronaut-section {
        top: 58%;
        width: 300px;
        height: 300px;
    }

    #astronaut {
        width: 120px;
        height: 150px;
    }

    /* Orbit rings scaled for 300px container - DO NOT CHANGE */
    #orbit-ring-1 { width: 160px; height: 160px; }
    #orbit-ring-2 { width: 230px; height: 230px; }
    #orbit-ring-3 { width: 300px; height: 300px; }

    /* Smaller planets for small phones */
    .orbit-planet {
        width: 40px !important;
        height: 40px !important;
        margin: -20px 0 0 -20px !important;
    }
    
    .orbit-planet .planet-circle {
        width: 40px !important;
        height: 40px !important;
    }

    /* ========== PLANET POSITIONS ON TILTED ELLIPSE (small screens) ========== */
    /* Ring 3: 300px, tilted - place planets on the visible ellipse */
    #planet-spotify {
        top: 110px !important;
        left: 55px !important;
    }

    #planet-patreon {
        top: 115px !important;
        left: 235px !important;
    }

    #planet-instagram {
        top: 145px !important;
        left: 295px !important;
    }

    #planet-tiktok-1 {
        top: 185px !important;
        left: 230px !important;
    }

    #planet-youtube {
        top: 145px !important;
        left: 5px !important;
    }

    #planet-apple {
        width: 40px !important;
        height: 40px !important;
        top: 180px !important;
        left: 65px !important;
    }
    #planet-apple .planet-circle {
        width: 40px !important;
        height: 40px !important;
    }

    .login-btn, .signup-btn {
        padding: 6px 12px;
        font-size: 10px;
    }

    #max-version {
        font-size: 10px;
    }
}
