:root {
    --bg-dark: #020202;
    --accent-purple: #bc6ff1;
}

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

body {
    background-color: var(--bg-dark);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

.parallax-bg {
    position: fixed;
    inset: -10%; width: 120%; height: 120%;
    background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2000') center/cover;
    filter: blur(80px) brightness(0.1);
    z-index: -2;
}

.glow-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 10%, rgba(188, 111, 241, 0.08) 0%, transparent 60%);
    z-index: -1;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: auto; 
    transition: padding-bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.container.flag-active {
    padding-bottom: 200px;
}

.hero { 
    text-align: center; 
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.chrome-title {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
}

.chrome-title::before {
    content: 'the emerald ';
    background: linear-gradient(to bottom, #fff 0%, #fff 45%, #888 50%, #333 55%, #fff 100%);
    background-size: 100% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: chrome-shine 6s ease-in-out infinite;
}

@keyframes chrome-shine { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 0% 100%; } }

#star-trigger {
    cursor: pointer;
    position: relative;
    z-index: 100;
    background: linear-gradient(to bottom, #fff 0%, #fff 45%, #888 50%, #333 55%, #fff 100%);
    background-size: 100% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: chrome-shine 6s ease-in-out infinite;
    display: inline-block;
    padding: 10px 20px;
    margin: -10px -20px;
}

.cursor {
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
    animation: blink 0.8s step-end infinite;
    font-weight: 200;
}

@keyframes blink { 50% { opacity: 0; } }

.subtitle-container {
    margin-top: 10px;
    display: block;
    width: 100%;
}

.subtitle {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.subtitle:hover {
    color: var(--accent-purple);
    text-shadow: 0 0 10px var(--accent-purple);
}

.card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 22px;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.2, 1);
    position: relative;
    z-index: 2;
}

.about-card { 
    text-align: center; 
    cursor: pointer;
    overflow: visible;
}

#snake-img {
    position: absolute;
    top: 50%;
    left: calc(100% + 20px);
    transform: translateY(-50%) scale(0);
    width: 180px;
    height: auto;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
}

#snake-img.visible {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

@media (max-width: 768px) {
    .container.flag-active {
        padding-bottom: 180px;
    }
    
    #snake-img {
        position: fixed;
        left: 50%;
        bottom: -250px;
        top: auto;
        transform: translate(-50%, 0) scale(0.8);
        width: 85%;
        max-width: 280px;
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
        z-index: 1500;
    }
    
    #snake-img.visible {
        bottom: 30px;
        transform: translate(-50%, 0) scale(1);
    }
}

.system-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.label { color: rgba(255,255,255,0.3); font-size: 0.75rem; }
.chips { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.chip {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    display: flex; align-items: center; gap: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}
.chip img { width: 18px; height: 18px; }

.links-grid { display: flex; flex-direction: column; gap: 8px; }
.link-card { text-decoration: none; color: #fff; padding: 18px 24px; }
.link-inner { display: flex; align-items: center; gap: 14px; }
.link-inner img { width: 18px; }

.important-card { text-decoration: none; border: 1px dashed rgba(188, 111, 241, 0.3); text-align: center; }
.glitch-text { color: var(--accent-purple); font-size: 0.75rem; }

.pepper-card { height: 240px; padding: 0; overflow: hidden; }
#pepper-canvas-container { width: 100%; height: 100%; }
.card-label { position: absolute; bottom: 12px; right: 20px; font-size: 0.55rem; color: rgba(255,255,255,0.2); }

#john-banan {
    position: fixed;
    top: -100px; left: 50%; transform: translateX(-50%);
    background: #111; color: #fff; border: 1px solid #bc6ff1;
    padding: 14px 30px; border-radius: 20px;
    z-index: 5000; transition: all 0.5s ease;
    cursor: pointer;
}
#john-banan.active { top: 30px; }

#death-star-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.6s ease;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
#death-star-overlay.visible { 
    opacity: 1;
}
#death-star-overlay canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
