/* namu.club - Pixel-Art Digital Grove */
/* Colors: #1A0A2E, #00FF88, #E0E0E8, #0E0E1A, #6A6A7A, #0A2A1E, #00E5FF, #0A0A12, #FF006E */
/* Fonts: Press Start 2P, Source Code Pro */

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

body {
    font-family: 'Source Code Pro', monospace;
    color: #E0E0E8;
    background: #0A0A12;
    overflow-x: hidden;
    image-rendering: pixelated;
}

/* Aurora Background */
.aurora {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: linear-gradient(180deg, #0A0A12 0%, #1A0A2E 30%, #0A2A1E 60%, #0E0E1A 100%);
    background-size: 100% 400%;
    animation: auroraShift 20s ease-in-out infinite;
}

/* Scenes */
.scene {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 40px;
    z-index: 5;
    overflow: hidden;
}

.scene--footer {
    min-height: 40vh;
}

.scene__content {
    max-width: 700px;
    width: 100%;
}

.scene__content--center {
    text-align: center;
    margin: 0 auto;
}

.scene__content--offset-left {
    margin-left: 8%;
}

.scene__content--offset-right {
    margin-left: auto;
    margin-right: 8%;
}

/* Pixel Tree (CSS box-shadow sprite) */
.pixel-tree {
    position: absolute;
    width: 4px;
    height: 4px;
    z-index: 2;
}

.pixel-tree--hero {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    box-shadow:
        0 -40px 0 #00FF88, 4px -40px 0 #00FF88, -4px -40px 0 #00FF88,
        0 -36px 0 #00FF88, 4px -36px 0 #00FF88, -4px -36px 0 #00FF88, 8px -36px 0 #00FF88, -8px -36px 0 #00FF88,
        0 -32px 0 #00FF88, 4px -32px 0 #00FF88, -4px -32px 0 #00FF88, 8px -32px 0 #00FF88, -8px -32px 0 #00FF88, 12px -32px 0 #00FF88, -12px -32px 0 #00FF88,
        0 -28px 0 #00FF88, 4px -28px 0 #00FF88, -4px -28px 0 #00FF88, 8px -28px 0 #00FF88, -8px -28px 0 #00FF88, 12px -28px 0 #00FF88, -12px -28px 0 #00FF88, 16px -28px 0 #00FF88, -16px -28px 0 #00FF88,
        0 -24px 0 #00FF88, 4px -24px 0 #00FF88, -4px -24px 0 #00FF88, 8px -24px 0 #00FF88, -8px -24px 0 #00FF88,
        0 -20px 0 #00FF88, 4px -20px 0 #00FF88, -4px -20px 0 #00FF88,
        0 -16px 0 #6A6A7A, 0 -12px 0 #6A6A7A, 0 -8px 0 #6A6A7A, 0 -4px 0 #6A6A7A, 0 0 0 #6A6A7A;
}

.pixel-tree--small {
    opacity: 0.2;
    box-shadow:
        0 -24px 0 #00FF88, 4px -24px 0 #00FF88, -4px -24px 0 #00FF88,
        0 -20px 0 #00FF88, 4px -20px 0 #00FF88, -4px -20px 0 #00FF88, 8px -20px 0 #00FF88, -8px -20px 0 #00FF88,
        0 -16px 0 #00FF88, 4px -16px 0 #00FF88, -4px -16px 0 #00FF88, 8px -16px 0 #00FF88, -8px -16px 0 #00FF88,
        0 -12px 0 #6A6A7A, 0 -8px 0 #6A6A7A, 0 -4px 0 #6A6A7A, 0 0 0 #6A6A7A;
}

.pixel-tree--right {
    right: 12%;
    top: 55%;
}

.pixel-tree--left {
    left: 8%;
    top: 50%;
}

/* Typography */
.pixel-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #00FF88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    margin-bottom: 16px;
    opacity: 0;
    animation: pixelFadeIn 0.8s steps(8) 1s forwards;
}

.pixel-subtitle {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    color: #00E5FF;
    opacity: 0;
    animation: pixelFadeIn 0.8s steps(8) 1.8s forwards;
}

.pixel-heading {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #00FF88;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.2);
    margin-bottom: 20px;
}

.code-text {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #E0E0E8;
    margin-bottom: 24px;
}

.code-text--dim {
    color: #6A6A7A;
    font-size: 0.75rem;
}

/* Season Indicators */
.season-indicators {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.season {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    padding: 8px 12px;
    border: 2px solid;
}

.season--spring { color: #00FF88; border-color: #00FF88; }
.season--summer { color: #00E5FF; border-color: #00E5FF; }
.season--autumn { color: #FF006E; border-color: #FF006E; }
.season--winter { color: #E0E0E8; border-color: #E0E0E8; }

/* Stats Row */
.stats-row {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.stat-block {
    text-align: center;
}

.stat-block__value {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: #00E5FF;
    display: block;
}

.stat-block__label {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    color: #6A6A7A;
    margin-top: 6px;
    display: block;
}

/* Footer */
.pixel-footer {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65rem;
    color: #6A6A7A;
    margin-bottom: 12px;
}

/* Scroll Reveal */
.scene-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s steps(4), transform 0.8s ease;
}

.scene-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes auroraShift {
    0%, 100% { background-position: 0% 0%; }
    33% { background-position: 0% 50%; }
    66% { background-position: 0% 100%; }
}

@keyframes pixelFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .scene {
        padding: 60px 20px;
    }

    .scene__content--offset-left,
    .scene__content--offset-right {
        margin-left: auto;
        margin-right: auto;
    }

    .pixel-tree--small {
        display: none;
    }

    .stats-row {
        flex-direction: column;
        gap: 16px;
    }
}
