/* ========================================
   GLOBAL STYLES & VARIABLES
   ======================================== */

:root {
    /* Colors */
    --color-primary: #00ffc8;
    --color-secondary: #00d4aa;
    --color-accent: #ffd700;
    --color-danger: #ff3366;
    --color-warning: #ffaa00;
    
    --color-bg-dark: #0a0e1a;
    --color-bg-darker: #060911;
    --color-bg-card: #141824;
    --color-bg-card-hover: #1a1f2e;
    
    --color-text-primary: #e8e8e8;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #6a6a6a;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00ffc8 0%, #00d4aa 100%);
    --gradient-dark: linear-gradient(180deg, rgba(10, 14, 26, 0.95) 0%, rgba(6, 9, 17, 0.98) 100%);
    --gradient-spore: radial-gradient(circle, rgba(0, 255, 200, 0.1) 0%, transparent 70%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Typography */
    --font-primary: 'Noto Sans KR', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 255, 200, 0.3);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: var(--spacing-sm);
}

strong {
    color: var(--color-primary);
    font-weight: 600;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.title-decoration {
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 auto var(--spacing-md);
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* ========================================
   MUSIC BUTTON
   ======================================== */

.music-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: var(--transition-normal);
    z-index: 999;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 255, 200, 0.5);
}

.music-btn:active {
    transform: scale(0.95);
}

.music-icon {
    font-size: 20px;
    color: var(--color-bg-dark);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    line-height: 1;
}

.music-icon.hidden {
    display: none;
}

@media (max-width: 768px) {
    .music-btn {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .music-icon {
        font-size: 18px;
    }
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 200, 0.1);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(6, 9, 17, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--color-text-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.download-link {
    color: var(--color-accent);
    font-weight: 700;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-primary);
    position: absolute;
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

.hamburger .bar:nth-child(1) {
    top: 12px;
}

.hamburger .bar:nth-child(2) {
    top: 19px;
}

.hamburger .bar:nth-child(3) {
    top: 26px;
}

.hamburger.active .bar:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: rgba(6, 9, 17, 0.98);
        backdrop-filter: blur(10px);
        width: 280px;
        height: calc(100vh - 70px);
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        border-left: 1px solid rgba(0, 255, 200, 0.1);
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(6, 9, 17, 0.7) 0%,
        rgba(10, 14, 26, 0.9) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-md);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 8px;
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 1s ease;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch-1 2.5s infinite;
    color: #00ffc8;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2.5s infinite;
    color: #ff3366;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-text-secondary);
    letter-spacing: 3px;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--color-bg-dark);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transition: var(--transition-normal);
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 255, 200, 0.5);
}

.hero-btn .btn-arrow,
.hero-btn .btn-icon {
    font-size: 20px;
    line-height: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 0; }
    40% { opacity: 1; }
    80% { transform: translate(-50%, 20px); opacity: 0; }
    100% { opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spore Particles */
.spore-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.spore-particles::before,
.spore-particles::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--gradient-spore);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
}

.spore-particles::before {
    top: 20%;
    left: 10%;
}

.spore-particles::after {
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

/* ========================================
   WORLD INTRO SECTION
   ======================================== */

.world-intro {
    background: var(--color-bg-darker);
}

.world-content {
    display: grid;
    gap: var(--spacing-lg);
}

.world-card {
    background: var(--color-bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 255, 200, 0.1);
    transition: var(--transition-normal);
}

.world-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 255, 200, 0.3);
}

.world-card.highlight {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.1) 0%, rgba(0, 255, 200, 0.1) 100%);
    border-color: var(--color-danger);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.world-card h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

/* ========================================
   STATUS SYSTEM SECTION
   ======================================== */

.status-system {
    background: var(--color-bg-dark);
}

.status-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.status-window {
    background: var(--color-bg-card);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    font-family: 'Courier New', monospace;
}

.status-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(0, 255, 200, 0.2);
}

.status-icon {
    font-size: 1.5rem;
}

.status-code {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 700;
}

.status-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
}

.status-label {
    color: var(--color-text-secondary);
    font-weight: 600;
}

.status-value {
    color: var(--color-text-primary);
    text-align: right;
}

.status-value.status-danger {
    color: var(--color-danger);
}

.status-divider {
    height: 1px;
    background: rgba(0, 255, 200, 0.2);
    margin: var(--spacing-md) 0;
}

.status-bars {
    margin: var(--spacing-md) 0;
}

.stat-bar {
    margin-bottom: var(--spacing-md);
}

.stat-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.stat-value {
    color: var(--color-primary);
}

.stat-value.danger {
    color: var(--color-warning);
}

.stat-progress {
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 255, 200, 0.3);
}

.stat-fill {
    height: 100%;
    transition: width 1s ease;
    position: relative;
}

.stat-fill.filter {
    background: linear-gradient(90deg, #00ffc8, #00d4aa);
}

.stat-fill.contamination {
    background: linear-gradient(90deg, #ffaa00, #ff3366);
}

.stat-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.status-alert {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid var(--color-warning);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    color: var(--color-warning);
    margin: var(--spacing-md) 0;
}

.system-info h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.info-grid {
    display: grid;
    gap: var(--spacing-md);
}

.info-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 255, 200, 0.1);
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    margin-bottom: var(--spacing-xs);
}

.info-item p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.warning-box {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid var(--color-danger);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.warning-box h4 {
    color: var(--color-danger);
    margin-bottom: var(--spacing-sm);
}

.warning-box ul {
    list-style: none;
    padding-left: 0;
}

.warning-box li {
    padding: var(--spacing-xs) 0;
    color: var(--color-text-secondary);
}

.warning-box li::before {
    content: '⚠ ';
    color: var(--color-danger);
    margin-right: var(--spacing-xs);
}

@media (max-width: 992px) {
    .status-demo {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CHARACTERS SECTION
   ======================================== */

.characters-section {
    background: var(--color-bg-darker);
}

.team-header {
    text-align: center;
    margin: var(--spacing-xxl) 0 var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(0, 255, 200, 0.05) 0%, rgba(0, 212, 170, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 255, 200, 0.2);
}

.team-header.crimson {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.05) 0%, rgba(255, 0, 68, 0.05) 100%);
    border-color: rgba(255, 51, 102, 0.2);
}

.team-header.independent {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 170, 0, 0.05) 100%);
    border-color: rgba(255, 215, 0, 0.2);
}

.team-title {
    color: var(--color-primary);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
}

.team-header.crimson .team-title {
    color: var(--color-danger);
}

.team-header.independent .team-title {
    color: var(--color-accent);
}

.team-description {
    color: var(--color-text-secondary);
    margin-top: var(--spacing-sm);
    margin-bottom: 0;
}

.character-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
    border: 1px solid rgba(0, 255, 200, 0.1);
    transition: var(--transition-normal);
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 255, 200, 0.3);
}

.character-header {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(0, 255, 200, 0.05) 0%, transparent 100%);
}

.character-images {
    display: grid;
    gap: var(--spacing-sm);
}

.character-main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(0, 255, 200, 0.2);
}

.character-sub-imgs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.character-sub-imgs img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 255, 200, 0.1);
    cursor: pointer;
    transition: var(--transition-fast);
}

.character-sub-imgs img:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.character-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.character-name {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.character-subtitle {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.character-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    background: var(--color-bg-darker);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

.character-body {
    padding: var(--spacing-lg);
}

.character-section {
    margin-bottom: var(--spacing-lg);
}

.character-section h4 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid rgba(0, 255, 200, 0.2);
}

.character-section p {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.dialogue-section {
    background: rgba(0, 255, 200, 0.03);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
}

.dialogue-box {
    background: var(--color-bg-darker);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    border-left: 3px solid var(--color-primary);
    position: relative;
}

.dialogue-box:last-child {
    margin-bottom: 0;
}

.dialogue-box::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.3;
}

.dialogue-box p {
    color: var(--color-text-primary);
    font-style: italic;
    margin: 0;
    padding-left: var(--spacing-sm);
}

.speaker-name {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.whisper {
    font-size: 1.2rem;
    color: var(--color-primary);
    text-align: center;
    font-weight: 700;
}

@media (max-width: 992px) {
    .character-header {
        grid-template-columns: 1fr;
    }
    
    .character-main-img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .character-main-img {
        height: 250px;
    }
    
    .character-sub-imgs img {
        height: 80px;
    }
}

/* ========================================
   PROLOGUE SECTION
   ======================================== */

.prologue-section {
    background: var(--color-bg-dark);
}

.prologue-content {
    display: grid;
    gap: var(--spacing-xl);
}

.prologue-image,
.prologue-camp-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.prologue-image img,
.prologue-camp-image img {
    width: 100%;
    height: auto;
    display: block;
}

.prologue-text {
    background: var(--color-bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 255, 200, 0.1);
}

.prologue-text p {
    color: var(--color-text-secondary);
    line-height: 2;
    margin-bottom: var(--spacing-md);
    text-indent: 1em;
}

.prologue-text .dialogue-box {
    text-indent: 0;
}

.speaker-ash .speaker-name {
    color: #87ceeb;
}

.speaker-zed .speaker-name {
    color: #808080;
}

.speaker-kairon .speaker-name {
    color: #ffd700;
}

/* ========================================
   LOCATIONS SECTION
   ======================================== */

.locations-section {
    background: var(--color-bg-darker);
}

.location-category {
    margin-bottom: var(--spacing-xxl);
}

.category-title {
    color: var(--color-primary);
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.category-desc {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.location-card {
    background: var(--color-bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 255, 200, 0.1);
    transition: var(--transition-normal);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.location-card.danger {
    border-color: rgba(255, 51, 102, 0.2);
}

.location-card.danger:hover {
    border-color: var(--color-danger);
}

.location-card.neutral {
    border-color: rgba(255, 215, 0, 0.2);
}

.location-card.neutral:hover {
    border-color: var(--color-accent);
}

.location-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.location-card h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.location-card.danger h4 {
    color: var(--color-danger);
}

.location-card.neutral h4 {
    color: var(--color-accent);
}

.location-use,
.location-feature {
    color: var(--color-text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.location-mood,
.location-event {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.location-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: var(--spacing-xl);
}

.location-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Weather System */
.weather-system {
    margin-top: var(--spacing-xxl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(0, 255, 200, 0.05) 0%, rgba(0, 212, 170, 0.05) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 255, 200, 0.2);
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.weather-card {
    background: var(--color-bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(0, 255, 200, 0.1);
    transition: var(--transition-normal);
}

.weather-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
}

.weather-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.weather-card h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.weather-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.weather-conditions h4 {
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.condition-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.condition-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 255, 200, 0.2);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.condition-tag:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery-section {
    background: var(--color-bg-dark);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: var(--radius-lg);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-card-hover);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--color-bg-dark);
    border-color: var(--color-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    width: 100%;
}

.gallery-grid:has(.loading) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    border: 1px solid rgba(0, 255, 200, 0.1);
    transition: var(--transition-normal);
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item.hidden {
    display: none;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 1rem;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--color-secondary);
    transform: scale(1.1);
}

.lightbox-close {
    top: 1rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-grid:has(.loading) {
        min-height: 300px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
    }
    
    .lightbox-close {
        font-size: 2rem;
    }
}

/* ========================================
   DOWNLOAD SECTION
   ======================================== */

.download-section {
    background: linear-gradient(135deg, rgba(0, 255, 200, 0.1) 0%, rgba(0, 212, 170, 0.1) 100%);
    padding: var(--spacing-xxl) 0;
}

.download-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xxl);
    text-align: center;
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.download-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.download-desc {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1.25rem 3rem;
    background: var(--gradient-primary);
    color: var(--color-bg-dark);
    font-weight: 700;
    font-size: 1.3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transition: var(--transition-normal);
}

.download-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 255, 200, 0.6);
}

.download-btn .btn-icon {
    font-size: 28px;
    line-height: 1;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--color-bg-darker);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid rgba(0, 255, 200, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-logo h3 {
    font-family: var(--font-display);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.footer-logo p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 576px) {
    :root {
        --spacing-xs: 0.4rem;
        --spacing-sm: 0.8rem;
        --spacing-md: 1.2rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 3rem;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   LOADING STATE
   ======================================== */

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xxl);
    color: var(--color-primary);
    font-size: 1rem;
    min-height: 300px;
    gap: var(--spacing-md);
    width: 100%;
    text-align: center;
}

.loading::before {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 200, 0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@media (max-width: 768px) {
    .loading {
        font-size: 0.9rem;
        padding: var(--spacing-xl);
        min-height: 200px;
    }
    
    .loading::before {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .navbar,
    .music-btn,
    .hamburger,
    .scroll-indicator,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
