/* ============================================
   FLYING ACID GIRAFFE - PSYCHEDELIC STYLESHEET
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');

:root {
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffff;
    --neon-yellow: #ffff00;
    --neon-green: #00ff00;
    --neon-orange: #ff6600;
    --neon-purple: #9900ff;
    --neon-red: #ff0066;
    
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    
    --rainbow-speed: 3s;
}

body.acid-mode {
    --rainbow-speed: 1.5s;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Courier New', monospace;
    background: var(--bg-dark);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
}

.nav-logo {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan), var(--neon-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-shadow: none;
    filter: drop-shadow(0 0 10px rgba(255,0,255,0.5));
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

.acid-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--neon-purple);
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.acid-toggle:hover {
    background: rgba(153, 0, 255, 0.3);
    box-shadow: 0 0 20px rgba(153, 0, 255, 0.5);
}

.toggle-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    border: 1px solid var(--neon-cyan);
    transition: all 0.3s ease;
}

body.acid-mode .toggle-indicator {
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

/* ============================================
   PARTICLES & SPARKLES
   ============================================ */
.particles, .sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.game-section {
    position: relative;
    z-index: 100;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: floatParticle 12s ease-in-out infinite;
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px #fff, 0 0 20px var(--neon-cyan); }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.4) brightness(0.7);
    animation: bgPulse 8s ease-in-out infinite alternate;
}

body.acid-mode .hero-bg-img {
    filter: saturate(2.5) brightness(0.8) hue-rotate(20deg);
    animation: bgPulseAcid 2s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { filter: saturate(1.4) brightness(0.7); }
    100% { filter: saturate(1.6) brightness(0.75) hue-rotate(15deg); }
}

@keyframes bgPulseAcid {
    0% { filter: saturate(2.5) brightness(0.8) hue-rotate(0deg); }
    100% { filter: saturate(3) brightness(0.9) hue-rotate(50deg); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
}

.rainbow-gradient {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: linear-gradient(45deg, var(--neon-red), var(--neon-orange), var(--neon-yellow), var(--neon-green), var(--neon-cyan), var(--neon-purple), var(--neon-pink), var(--neon-red));
    background-size: 400% 400%;
    animation: rainbowShift var(--rainbow-speed) linear infinite;
    opacity: 0.2;
    mix-blend-mode: overlay;
    z-index: 2;
}

body.acid-mode .rainbow-gradient {
    opacity: 0.4;
}

@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Rainbow decoration image - centered behind title */
.hero-rainbow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 70%;
    max-width: 650px;
    height: auto;
    z-index: 3;
    opacity: 0.85;
    animation: rainbowFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255,100,200,0.4));
    pointer-events: none;
}

@keyframes rainbowFloat {
    0%, 100% { transform: translate(-50%, -55%) scale(1); }
    50% { transform: translate(-50%, -58%) scale(1.02); }
}

body.acid-mode .hero-rainbow {
    opacity: 0.95;
    animation: rainbowFloatAcid 3s ease-in-out infinite;
    filter: drop-shadow(0 0 50px rgba(255,0,255,0.5));
}

@keyframes rainbowFloatAcid {
    0%, 100% { transform: translate(-50%, -55%) scale(1); filter: hue-rotate(0deg); }
    50% { transform: translate(-50%, -60%) scale(1.08); filter: hue-rotate(30deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 10px 20px;
}

/* ============================================
   ACID TITLE - Dripping melty style
   ============================================ */
.acid-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 10px;
}

.acid-title-line {
    display: flex;
    justify-content: center;
    overflow: visible;
}

.acid-letter {
    font-family: 'Bangers', cursive;
    font-size: clamp(2.5rem, 10vw, 7rem);
    text-transform: uppercase;
    display: inline-block;
    animation: acidWave 2s ease-in-out infinite, colorCycle 4s linear infinite;
    /* Clean readable style */
    color: #fff;
    text-shadow: 
        3px 3px 0 #ff0066,
        6px 6px 0 #ff6600,
        9px 9px 0 #ffcc00,
        12px 12px 0 #00ff66,
        0 0 20px currentColor,
        0 0 40px currentColor;
    -webkit-text-stroke: 1px rgba(0,0,0,0.3);
}

/* Rainbow color cycle for each letter */
.acid-letter:nth-child(1) { animation-delay: 0s; --hue: 0; }
.acid-letter:nth-child(2) { animation-delay: 0.05s; --hue: 20; }
.acid-letter:nth-child(3) { animation-delay: 0.10s; --hue: 40; }
.acid-letter:nth-child(4) { animation-delay: 0.15s; --hue: 60; }
.acid-letter:nth-child(5) { animation-delay: 0.20s; --hue: 80; }
.acid-letter:nth-child(6) { animation-delay: 0.25s; --hue: 100; }
.acid-letter:nth-child(7) { animation-delay: 0.30s; --hue: 140; }
.acid-letter:nth-child(8) { animation-delay: 0.35s; --hue: 180; }
.acid-letter:nth-child(9) { animation-delay: 0.40s; --hue: 200; }
.acid-letter:nth-child(10) { animation-delay: 0.45s; --hue: 220; }
.acid-letter:nth-child(11) { animation-delay: 0.50s; --hue: 260; }
.acid-letter:nth-child(12) { animation-delay: 0.55s; --hue: 280; }
.acid-letter:nth-child(13) { animation-delay: 0.60s; --hue: 300; }
.acid-letter:nth-child(14) { animation-delay: 0.65s; --hue: 320; }
.acid-letter:nth-child(15) { animation-delay: 0.70s; --hue: 340; }
.acid-letter:nth-child(16) { animation-delay: 0.75s; --hue: 0; }
.acid-letter:nth-child(17) { animation-delay: 0.80s; --hue: 20; }
.acid-letter:nth-child(18) { animation-delay: 0.85s; --hue: 40; }

@keyframes acidWave {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}

@keyframes colorCycle {
    0% { color: hsl(calc(var(--hue, 0)), 100%, 70%); }
    25% { color: hsl(calc(var(--hue, 0) + 90), 100%, 70%); }
    50% { color: hsl(calc(var(--hue, 0) + 180), 100%, 70%); }
    75% { color: hsl(calc(var(--hue, 0) + 270), 100%, 70%); }
    100% { color: hsl(calc(var(--hue, 0) + 360), 100%, 70%); }
}

body.acid-mode .acid-letter {
    animation: acidWaveIntense 0.8s ease-in-out infinite, colorCycle 1.5s linear infinite;
}

@keyframes acidWaveIntense {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-10px) rotate(-3deg) scale(1.1); }
    50% { transform: translateY(0) rotate(0deg) scale(1); }
    75% { transform: translateY(10px) rotate(3deg) scale(0.95); }
}

/* ============================================
   MAIN GIRAFFE - MIRRORED (facing right)
   ============================================ */
.hero-giraffe {
    margin-top: 5px;
}

.main-giraffe {
    max-width: min(500px, 80vw);
    height: auto;
    /* MIRROR THE IMAGE - flip horizontally */
    transform: scaleX(-1);
    filter: drop-shadow(0 0 40px var(--neon-purple)) drop-shadow(0 0 80px rgba(255,0,255,0.5));
    animation: floatGiraffe 3.5s ease-in-out infinite;
}

@keyframes floatGiraffe {
    0%, 100% { transform: scaleX(-1) translateY(0) rotate(-1deg); }
    50% { transform: scaleX(-1) translateY(-15px) rotate(1deg); }
}

body.acid-mode .main-giraffe {
    animation: floatGiraffeAcid 2s ease-in-out infinite;
}

@keyframes floatGiraffeAcid {
    0%, 100% { 
        transform: scaleX(-1) translateY(0) rotate(-2deg); 
        filter: drop-shadow(0 0 40px var(--neon-cyan)) drop-shadow(0 0 80px rgba(0,255,255,0.6));
    }
    50% { 
        transform: scaleX(-1) translateY(-20px) rotate(2deg); 
        filter: drop-shadow(0 0 50px var(--neon-pink)) drop-shadow(0 0 100px rgba(255,0,255,0.7));
    }
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    opacity: 0;
    animation: fadeIn 0.8s ease 1s forwards;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-3px);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.scroll-arrow {
    width: 28px;
    height: 28px;
    color: var(--neon-cyan);
    animation: arrowBounce 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--neon-cyan));
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
    text-transform: lowercase;
}

/* ============================================
   LORE SECTION
   ============================================ */
.lore {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 50%, var(--bg-dark) 100%);
    overflow: hidden;
    z-index: 50;
}

.lore-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.lore-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: floatOrb 15s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate(30px, -50px) scale(1.1); opacity: 0.8; }
    50% { transform: translate(-20px, -80px) scale(0.9); opacity: 0.7; }
    75% { transform: translate(40px, -30px) scale(1.05); opacity: 0.8; }
}

.lore-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.lore-text {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.lore-line {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 2;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--neon-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: textShimmer 3s linear infinite;
}

.lore-line.visible {
    opacity: 1;
    transform: translateX(0);
}

@keyframes textShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.lore-giraffe {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

.side-giraffe {
    max-width: 260px;
    height: auto;
    filter: drop-shadow(0 0 20px var(--neon-pink));
    animation: sideFloat 5s ease-in-out infinite;
}

@keyframes sideFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.lore-divider {
    width: 60%;
    height: 2px;
    margin-top: 60px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), var(--neon-pink), transparent);
    animation: dividerPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes dividerPulse {
    0%, 100% { opacity: 0.5; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* ============================================
   FRIENDS SECTION - THE DEGENERATES
   ============================================ */
.friends-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 50;
}

.friends-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.friends-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.4) brightness(0.85) contrast(1.1);
}

.friends-overlay {
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        ),
        linear-gradient(
            180deg,
            rgba(10, 0, 30, 0.5) 0%,
            rgba(20, 0, 50, 0.2) 50%,
            rgba(10, 0, 30, 0.6) 100%
        );
}

/* Chromatic aberration overlay */
.friends-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: 
        linear-gradient(90deg, rgba(255,0,0,0.03) 0%, transparent 20%, transparent 80%, rgba(0,255,255,0.03) 100%);
    pointer-events: none;
}

.friends-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    max-width: 1200px;
}

.friends-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(2.8rem, 10vw, 6rem);
    letter-spacing: 8px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff0066, #ff00ff, #00ffff, #00ff66);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowShift 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 0, 255, 0.7));
    -webkit-text-stroke: 3px rgba(0, 0, 0, 0.3);
    position: relative;
}


.friends-image {
    position: relative;
    margin: 10px 0 -30px;
}

.duo-image {
    width: min(95vw, 850px);
    height: auto;
    filter: drop-shadow(0 0 50px rgba(255, 0, 255, 0.6))
            drop-shadow(0 0 100px rgba(0, 255, 255, 0.4))
            drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    animation: floatDuo 5s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(255,0,255,0.3) 0%, rgba(0,255,255,0.2) 30%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes floatDuo {
    0%, 100% { transform: translateY(0) rotate(-0.5deg); }
    33% { transform: translateY(-15px) rotate(0.5deg); }
    66% { transform: translateY(-8px) rotate(-0.3deg); }
}

.friends-story {
    max-width: 750px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
    margin-top: 0;
}

.story-line {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.story-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-line.quote-line {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    padding: 8px 0;
}

.story-line .quote {
    font-style: italic;
    font-weight: bold;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.5));
}

.story-line.highlight {
    font-family: 'Bangers', cursive;
    font-size: clamp(1.4rem, 4vw, 2rem);
    letter-spacing: 3px;
    background: linear-gradient(90deg, #ff0066, var(--neon-pink), var(--neon-cyan), #00ff66);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s linear infinite;
    filter: drop-shadow(0 0 15px rgba(255, 0, 255, 0.6));
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 0, 255, 0.3);
}

@keyframes textShine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* Acid mode enhancements */
body.acid-mode .friends-bg-img {
    filter: saturate(2.5) brightness(1) hue-rotate(20deg) contrast(1.2);
    animation: acidBg 4s ease-in-out infinite alternate;
}

@keyframes acidBg {
    0% { filter: saturate(2.5) brightness(1) hue-rotate(0deg) contrast(1.2); }
    100% { filter: saturate(3) brightness(1.1) hue-rotate(50deg) contrast(1.3); }
}

body.acid-mode .duo-image {
    animation: floatDuo 3s ease-in-out infinite, acidGlow 1.5s ease-in-out infinite alternate;
}

@keyframes acidGlow {
    0% { filter: drop-shadow(0 0 50px rgba(255, 0, 255, 1)) drop-shadow(0 0 100px rgba(0, 255, 255, 0.7)); }
    100% { filter: drop-shadow(0 0 70px rgba(0, 255, 255, 1)) drop-shadow(0 0 120px rgba(255, 255, 0, 0.7)); }
}

body.acid-mode .image-glow {
    animation: pulseGlow 1.5s ease-in-out infinite alternate;
}


/* Mobile adjustments */
@media (max-width: 768px) {
    .friends-section {
        padding: 60px 15px 40px;
        min-height: auto;
    }
    
    .friends-bg-img {
        filter: saturate(1.2) brightness(0.7);
    }
    
    .friends-content {
        padding: 40px 10px;
    }
    
    .friends-title {
        font-size: clamp(2rem, 10vw, 3rem);
        letter-spacing: 3px;
        margin-bottom: 10px;
    }
    
    .friends-image {
        margin: 0 0 -50px;
    }
    
    .duo-image {
        width: 100vw;
        max-width: none;
        margin: 0 -15px;
    }
    
    .friends-story {
        gap: 14px;
        padding: 10px 15px;
        margin: 0;
    }
    
    .story-line {
        font-size: 0.95rem;
        line-height: 1.6;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }
    
    .story-line.quote-line {
        font-size: 1.05rem;
    }
    
    .story-line.highlight {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .image-glow {
        display: none;
    }
}

/* ============================================
   GAME SECTION
   ============================================ */
.game-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: radial-gradient(ellipse at center, #1a0a2e 0%, var(--bg-darker) 100%);
    z-index: 100;
    gap: 30px;
}

.game-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    letter-spacing: 6px;
    margin: 0;
}

.game-window {
    width: 100%;
    max-width: 900px;
    background: #06000c;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 0 0 2px rgba(153, 0, 255, 0.5),
        0 0 50px rgba(153, 0, 255, 0.25),
        0 25px 70px rgba(0, 0, 0, 0.6);
}

.game-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: linear-gradient(180deg, #251040 0%, #150820 100%);
    border-bottom: 1px solid rgba(153, 0, 255, 0.4);
}

.window-dots {
    display: flex;
    gap: 7px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; box-shadow: 0 0 8px #ff5f56; }
.dot-yellow { background: #ffbd2e; box-shadow: 0 0 8px #ffbd2e; }
.dot-green { background: #27ca40; box-shadow: 0 0 8px #27ca40; }

.window-title {
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.window-controls {
    font-size: 0.7rem;
    color: var(--neon-yellow);
    letter-spacing: 1px;
}

.game-canvas-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(180deg, #080012 0%, #0c0018 100%);
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    touch-action: none; /* Prevent scrolling when touching canvas */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* ============================================
   SOCIALS SECTION
   ============================================ */
.socials {
    position: relative;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    z-index: 50;
}

.section-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.rainbow-text {
    background: linear-gradient(90deg, var(--neon-red), var(--neon-orange), var(--neon-yellow), var(--neon-green), var(--neon-cyan), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: rainbowText var(--rainbow-speed) linear infinite;
    text-shadow: none;
    filter: drop-shadow(0 0 10px rgba(255,0,255,0.5));
}

@keyframes rainbowText {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.social-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 40px 0;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #fff;
    padding: 30px;
    border: 2px solid transparent;
    border-radius: 20px;
    background: rgba(255,255,255,0.02);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--neon-yellow));
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.social-link:hover::before {
    width: 80%;
}

.social-link:hover {
    border-color: var(--neon-purple);
    background: rgba(153, 0, 255, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(153, 0, 255, 0.3);
}

.social-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.social-icon svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px currentColor);
}

/* Dexscreener button - same size as Twitter */
.dex-link .social-icon {
    background-image: url('fag dex.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.social-link:hover .social-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 20px var(--neon-cyan));
}

.social-name {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 30px;
    text-align: center;
    background: var(--bg-darker);
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 50;
    position: relative;
}

.footer-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav {
        padding: 10px 15px;
    }
    
    .nav-links {
        display: none;
    }
    
    .toggle-text {
        display: none;
    }
    
    .hero {
        padding-top: 50px;
        min-height: 100svh; /* Use svh for mobile */
    }
    
    .hero-rainbow {
        width: 85%;
        max-width: 400px;
        top: 45%;
        opacity: 0.7;
    }
    
    .acid-letter {
        font-size: clamp(1.8rem, 8vw, 3.5rem);
    }
    
    .main-giraffe {
        max-width: 60vw;
    }
    
    .lore {
        min-height: auto;
        padding: 60px 15px;
    }
    
    .lore-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .lore-line {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 15px;
    }
    
    .side-giraffe {
        max-width: 150px;
    }
    
    .game-section {
        padding: 60px 10px;
        min-height: auto;
        flex-direction: column;
        gap: 15px;
    }
    
    .game-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        letter-spacing: 3px;
        margin-bottom: 5px;
    }
    
    .game-window {
        border-radius: 10px;
        max-width: 100%;
        width: 100%;
    }
    
    .game-window-header {
        padding: 8px 12px;
    }
    
    .window-title {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }
    
    .window-controls {
        font-size: 0.55rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .game-canvas-container {
        aspect-ratio: 4 / 3; /* Taller on mobile */
    }
    
    .socials {
        min-height: auto;
        padding: 60px 15px;
    }
    
    .section-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        padding: 20px 25px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
    }
    
    .social-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .social-name {
        font-size: 0.85rem;
    }
    
    .scroll-indicator {
        bottom: 15px;
    }
    
    .scroll-arrow {
        width: 24px;
        height: 24px;
    }
    
    .scroll-text {
        font-size: 0.65rem;
    }
    
    .footer {
        padding: 20px 15px;
    }
    
    .footer-text {
        font-size: 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .acid-letter {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }
    
    .main-giraffe {
        max-width: 55vw;
    }
    
    .hero-rainbow {
        width: 90%;
        max-width: 280px;
    }
    
    .lore-line {
        font-size: 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover::after {
        width: 0;
    }
    
    .social-link:hover {
        transform: none;
        box-shadow: none;
    }
    
    .social-link:active {
        transform: scale(0.95);
        border-color: var(--neon-purple);
        background: rgba(153, 0, 255, 0.15);
    }
    
    .acid-toggle:active {
        background: rgba(153, 0, 255, 0.4);
    }
}

/* ============================================
   SCREEN SHAKE
   ============================================ */
.screen-shake {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-4px, -4px); }
    40% { transform: translate(4px, -4px); }
    60% { transform: translate(-4px, 4px); }
    80% { transform: translate(4px, 4px); }
}
