/* =============================================
   GM 0WLS - Pixel NFT Website
   Premium dark vibe • Gold accents • Pixel fonts
   Fully responsive + mobile optimized
   Side Owls: dynamic progressive peek on scroll (top-to-bottom crawl, upper hide on scroll)
   ============================================= */

   :root {
    --bg: #0A0A0A;
    --bg-secondary: #111111;
    --gold: #D4AF37;
    --gold-dark: #B8972E;
    --text: #F5F5F5;
    --text-muted: #A8A8A8;
    --accent-red: #8B0000;
    --accent-purple: #4A0E4A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'VT323', 'Courier New', monospace;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 20px;
}

/* Pixel font for titles */
.pixel-font {
    font-family: 'Press Start 2P', 'VT323', monospace;
    letter-spacing: 2px;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-family: 'Press Start 2P', monospace;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 6px 14px;
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-1px);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.music-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 8px 18px;
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 4px;
    margin-left: 12px;
}

.music-btn:hover {
    background: var(--gold);
    color: #0A0A0A;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.music-btn.playing {
    border-color: #00ff9d;
    color: #00ff9d;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 72px;
}

.hero-inner {
    position: relative;
    width: 100%;
    max-width: 1672px;
    margin: 0 auto;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    animation: heroZoom 28s ease-in-out infinite;
    image-rendering: crisp-edges;
}

@keyframes heroZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.065); }
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(
        to bottom,
        transparent 10%,
        rgba(10, 10, 10, 0.4) 35%,
        rgba(10, 10, 10, 0.85) 65%,
        #0A0A0A 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
}

/* Added iridescent shimmer to the main title */
.hero-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 88px;
    color: var(--gold);
    letter-spacing: 8px;
    background: linear-gradient(
        115deg,
        #D4AF37 0%,
        #fff 18%,
        #D4AF37 32%,
        #f8e9b8 48%,
        #D4AF37 62%,
        #fff 78%,
        #D4AF37 100%
    );
    background-size: 280% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 3.8s linear infinite;
    filter: drop-shadow(6px 6px 0 #000) drop-shadow(0 0 35px rgba(212, 175, 55, 0.8));
}

@keyframes goldShimmer {
    0% { background-position: 280% 0; }
    100% { background-position: -280% 0; }
}

/* ========== SECTIONS ========== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    color: var(--gold);
    text-align: center;
    margin-bottom: 48px;
    text-shadow: 3px 3px 0 #000;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 16px auto 0;
}

/* LORE - FONT INCREASED */
.lore {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.lore-text {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    font-size: 30px;
    line-height: 1.8;
}

.lore-text .gold {
    color: var(--gold);
    font-weight: 700;
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    background: #1A1A1A;
    transition: all 0.4s cubic-bezier(0.23, 1.0, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.23, 1.0, 0.32, 1),
                filter 0.4s ease;
    image-rendering: crisp-edges;
}

.gallery-item:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7),
                0 0 0 1px var(--gold);
}

.gallery-item:hover img {
    transform: scale(1.08) rotate(1deg);
    filter: brightness(1.15) saturate(1.1);
}

/* ABOUT / DESCRIPTION - FONT INCREASED */
.about {
    background: #0F0F0F;
}

.about-text {
    max-width: 1020px;
    margin: 0 auto;
    text-align: center;
    font-size: 26px;
    line-height: 1.85;
}

.about-text .gold {
    color: var(--gold);
    font-weight: 700;
}

/* CHARACTERS */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.character-card {
    position: relative;
    background: #161616;
    border: 4px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.character-card:hover {
    border-color: var(--gold);
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 30px 70px rgba(0,0,0,0.6),
                0 0 0 1px var(--gold);
}

.character-card img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: crisp-edges;
}

/* DISCLAIMER */
.disclaimer {
    padding: 40px 0 60px;
    background: #080808;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.disclaimer-text {
    max-width: 980px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    text-align: center;
    padding: 0 20px;
}

/* FOOTER */
footer {
    background: #050505;
    padding: 50px 0 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 42px;
    align-items: center;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 15px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.footer-link:hover {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.terms-btn {
    position: relative;
}

.terms-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.terms-btn:hover::after {
    width: 100%;
}

.footer-copy {
    font-size: 13px;
    color: #666;
    letter-spacing: 1.5px;
    text-align: center;
}

/* ========== SIDE OWLS (Dynamic progressive peek - top to bottom crawl on scroll) ========== */
.side-owl-wrap {
    position: fixed;
    z-index: 90;
    pointer-events: none;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.4s ease;
    opacity: 0;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.9));
    will-change: transform, opacity;
}

.side-owl-wrap img {
    width: 100%;
    display: block;
    image-rendering: crisp-edges;
}

/* Left owls start fully off left */
.side-owl-wrap.left-owl {
    left: 0;
    transform: translateX(-100%);
}

/* Right owls start fully off right */
.side-owl-wrap.right-owl {
    right: 0;
    transform: translateX(100%);
}

/* When actively peeking (controlled by JS) - more visible now (-22%) so bottom of rotated pixel art isn't cropped */
.side-owl-wrap.peeking {
    filter: drop-shadow(0 18px 35px rgba(0,0,0,0.85));
}

/* ========== MODAL (Terms) ========== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 201;
    background: #111;
    border: 3px solid var(--gold);
    border-radius: 12px;
    max-width: 820px;
    width: 92%;
    max-height: 88vh;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 26px;
    color: var(--gold);
    padding: 32px 48px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-date {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    padding-bottom: 24px;
}

.modal-body {
    padding: 0 48px 32px;
    overflow-y: auto;
    flex: 1;
    font-size: 17px;
    line-height: 1.75;
}

.modal-body h3 {
    color: var(--gold);
    margin: 32px 0 12px;
    font-size: 18px;
    font-family: 'Press Start 2P', monospace;
}

.modal-body ul {
    padding-left: 22px;
    margin-bottom: 16px;
}

.modal-body li {
    margin-bottom: 10px;
}

.modal-footer {
    padding: 24px 48px 36px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    text-align: center;
}

.modal-btn {
    background: var(--gold);
    color: #0A0A0A;
    border: none;
    padding: 16px 48px;
    font-family: 'Press Start 2P', monospace;
    font-size: 15px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.modal-btn:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .hero-title {
        font-size: 68px;
    }
    
    .nav-links {
        gap: 14px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 18px;
    }
    
    .header-content {
        padding: 14px 16px;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .music-btn {
        margin-left: 0;
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .hero {
        height: 82vh;
        min-height: 520px;
        margin-top: 110px;
    }
    
    .hero-title {
        font-size: 48px;
        letter-spacing: 4px;
    }
    
    section {
        padding: 56px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 32px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .characters-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    
    .lore-text {
        font-size: 24px;
    }
    
    .about-text {
        font-size: 22px;
    }
    
    /* Hide side owls on mobile - they would overlap and look bad */
    .side-owl-wrap {
        display: none !important;
    }
    
    .modal-content {
        width: 96%;
        max-height: 92vh;
    }
    
    .modal-body {
        padding: 0 24px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}