/* ============================================
   Shadow Defense: Tales from the Pages
   Website Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-dark: #0a0a1a;
    --bg-section: #0e0e24;
    --bg-card: #141432;
    --bg-card-hover: #1a1a40;
    --gold: #c9a84c;
    --gold-light: #e8d48b;
    --gold-dim: #8a7433;
    --parchment: #f0e6d3;
    --text: #c4baa8;
    --text-muted: #8a8278;
    --accent-robin: #4a8c3f;
    --accent-alice: #6fa8dc;
    --accent-witch: #7b3fa0;
    --accent-peter: #e67e22;
    --accent-phantom: #c0392b;
    --accent-scrooge: #c9a84c;
    --accent-sherwood: #2d6a1e;
    --accent-wonderland: #8e44ad;
    --accent-oz: #27ae60;
    --accent-neverland: #2980b9;
    --accent-opera: #c0392b;
    --accent-london: #7f8c8d;
    --font-display: 'Cinzel', serif;
    --font-body: 'Crimson Text', serif;
    --font-ui: 'Inter', sans-serif;
    --nav-height: 70px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--parchment);
    line-height: 1.2;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--gold-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--bg-dark);
    box-shadow: 0 6px 30px rgba(201, 168, 76, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--parchment);
    border: 2px solid var(--gold-dim);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
    font-family: var(--font-ui);
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-small:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--parchment);
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 16px auto;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 8px;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: background 0.4s, box-shadow 0.4s;
}

#navbar.scrolled {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold) !important;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--parchment);
}

.nav-cta {
    background: var(--gold) !important;
    color: var(--bg-dark) !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600 !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--gold-light) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--parchment);
    transition: all 0.3s;
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #141432 0%, var(--bg-dark) 70%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.floating-pages .page {
    position: absolute;
    width: 40px;
    height: 52px;
    border: 1px solid rgba(201, 168, 76, 0.15);
    background: rgba(201, 168, 76, 0.03);
    border-radius: 2px;
    animation: floatPage 20s infinite ease-in-out;
}

.page-1 { top: 15%; left: 10%; animation-delay: 0s; width: 35px; height: 45px; }
.page-2 { top: 60%; left: 80%; animation-delay: -4s; width: 45px; height: 58px; }
.page-3 { top: 30%; left: 70%; animation-delay: -8s; width: 30px; height: 40px; }
.page-4 { top: 75%; left: 20%; animation-delay: -12s; width: 38px; height: 50px; }
.page-5 { top: 20%; left: 50%; animation-delay: -16s; width: 42px; height: 55px; }

@keyframes floatPage {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
    25% { transform: translateY(-30px) rotate(5deg); opacity: 0.7; }
    50% { transform: translateY(-15px) rotate(-3deg); opacity: 0.5; }
    75% { transform: translateY(-40px) rotate(8deg); opacity: 0.6; }
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.hero-tagline {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 1s 0.3s forwards;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeUp 1s 0.5s forwards;
}

.title-shadow {
    display: block;
    background: linear-gradient(180deg, var(--parchment) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(201, 168, 76, 0.3));
}

.title-defense {
    display: block;
    font-size: 0.55em;
    color: var(--text-muted);
    letter-spacing: 12px;
    -webkit-text-fill-color: var(--text-muted);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-style: italic;
    color: var(--gold-dim);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 1s 0.7s forwards;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeUp 1s 0.9s forwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s 1.1s forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp 1s 1.5s forwards;
}

.scroll-indicator span {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--gold-dim), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.3); }
}

/* ============================================
   About Section
   ============================================ */
#about {
    padding: 120px 0;
    background: var(--bg-section);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-lead {
    font-size: 1.4rem;
    color: var(--parchment);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.5;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-text strong {
    color: var(--gold);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat {
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 8px;
    padding: 28px 20px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.stat:hover {
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-4px);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* ============================================
   Towers Section
   ============================================ */
#towers {
    padding: 120px 0;
    background: var(--bg-dark);
}

.tower-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tower-card {
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.tower-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tower-card:hover {
    border-color: rgba(201, 168, 76, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.tower-card:hover::before {
    transform: scaleX(1);
}

.tower-card[data-tower="robin"]:hover { border-color: var(--accent-robin); }
.tower-card[data-tower="robin"]:hover::before { background: var(--accent-robin); }
.tower-card[data-tower="robin"] .tower-icon { color: var(--accent-robin); }

.tower-card[data-tower="alice"]:hover { border-color: var(--accent-alice); }
.tower-card[data-tower="alice"]:hover::before { background: var(--accent-alice); }
.tower-card[data-tower="alice"] .tower-icon { color: var(--accent-alice); }

.tower-card[data-tower="witch"]:hover { border-color: var(--accent-witch); }
.tower-card[data-tower="witch"]:hover::before { background: var(--accent-witch); }
.tower-card[data-tower="witch"] .tower-icon { color: var(--accent-witch); }

.tower-card[data-tower="peter"]:hover { border-color: var(--accent-peter); }
.tower-card[data-tower="peter"]:hover::before { background: var(--accent-peter); }
.tower-card[data-tower="peter"] .tower-icon { color: var(--accent-peter); }

.tower-card[data-tower="phantom"]:hover { border-color: var(--accent-phantom); }
.tower-card[data-tower="phantom"]:hover::before { background: var(--accent-phantom); }
.tower-card[data-tower="phantom"] .tower-icon { color: var(--accent-phantom); }

.tower-card[data-tower="scrooge"]:hover { border-color: var(--accent-scrooge); }
.tower-card[data-tower="scrooge"]:hover::before { background: var(--accent-scrooge); }
.tower-card[data-tower="scrooge"] .tower-icon { color: var(--accent-scrooge); }

.tower-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: var(--gold);
}

.tower-svg {
    width: 100%;
    height: 100%;
}

.tower-card h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.tower-role {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-dim);
    margin-bottom: 14px;
}

.tower-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   Character Gallery Section
   ============================================ */
#gallery {
    padding: 120px 0;
    background: var(--bg-section);
    position: relative;
    overflow: hidden;
}

#gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.gallery-ornament {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0.3;
}

.gallery-ornament svg {
    width: 200px;
    height: 20px;
    color: var(--gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.character-card {
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s ease;
    position: relative;
}

.character-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 168, 76, 0.2);
}

.character-card[data-character="witch"]:hover {
    box-shadow: 0 20px 60px rgba(123, 63, 160, 0.3);
    border-color: rgba(123, 63, 160, 0.3);
}

.character-card[data-character="robin"]:hover {
    box-shadow: 0 20px 60px rgba(74, 140, 63, 0.3);
    border-color: rgba(74, 140, 63, 0.3);
}

.character-card[data-character="alice"]:hover {
    box-shadow: 0 20px 60px rgba(111, 168, 220, 0.3);
    border-color: rgba(111, 168, 220, 0.3);
}

.character-card[data-character="peter"]:hover {
    box-shadow: 0 20px 60px rgba(230, 126, 34, 0.3);
    border-color: rgba(230, 126, 34, 0.3);
}

.character-card[data-character="phantom"]:hover {
    box-shadow: 0 20px 60px rgba(192, 57, 43, 0.3);
    border-color: rgba(192, 57, 43, 0.3);
}

.character-card[data-character="scrooge"]:hover {
    box-shadow: 0 20px 60px rgba(201, 168, 76, 0.3);
    border-color: rgba(201, 168, 76, 0.3);
}

.character-portrait {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.character-portrait svg {
    width: 100%;
    height: auto;
    display: block;
}

.character-portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center 40%, transparent 40%, rgba(10, 10, 26, 0.5) 100%);
    pointer-events: none;
}

.character-info {
    padding: 24px;
    text-align: center;
}

.character-info h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.character-source {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--gold-dim);
    margin-bottom: 12px;
}

.character-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.character-card[data-character="witch"] .character-info h3 { color: #b266d9; }
.character-card[data-character="robin"] .character-info h3 { color: #6db85a; }
.character-card[data-character="alice"] .character-info h3 { color: #8fc4e8; }
.character-card[data-character="peter"] .character-info h3 { color: #f0a050; }
.character-card[data-character="phantom"] .character-info h3 { color: #e05a4a; }
.character-card[data-character="scrooge"] .character-info h3 { color: #e0c868; }

/* ============================================
   Levels Section
   ============================================ */
#levels {
    padding: 120px 0;
    background: var(--bg-section);
}

.level-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.level-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: 10px;
    padding: 28px;
    transition: all 0.4s ease;
}

.level-card:hover {
    border-color: rgba(201, 168, 76, 0.2);
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.level-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    min-width: 50px;
    text-align: center;
    line-height: 1;
    padding-top: 4px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.level-card:hover .level-number {
    opacity: 1;
}

.level-card[data-level="sherwood"] .level-number { color: var(--accent-sherwood); }
.level-card[data-level="wonderland"] .level-number { color: var(--accent-wonderland); }
.level-card[data-level="oz"] .level-number { color: var(--accent-oz); }
.level-card[data-level="neverland"] .level-number { color: var(--accent-neverland); }
.level-card[data-level="opera"] .level-number { color: var(--accent-opera); }
.level-card[data-level="london"] .level-number { color: var(--accent-london); }

.level-info h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.level-info p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   Features Section
   ============================================ */
#features {
    padding: 120px 0;
    background: var(--bg-dark);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.06);
    border-radius: 10px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(201, 168, 76, 0.15);
    transform: translateY(-4px);
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    color: var(--gold);
}

.feature-svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   Play Section
   ============================================ */
#play {
    padding: 120px 0;
    background: var(--bg-section);
}

.game-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.game-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(201, 168, 76, 0.15);
}

.game-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a1a35, #0a0a18);
}

.game-placeholder-content {
    text-align: center;
    padding: 24px;
}

.play-icon {
    width: 80px;
    height: 80px;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0.7;
}

.game-placeholder-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.game-placeholder-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-style: italic;
}

#game-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.game-controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.game-requirements {
    margin-top: 40px;
    text-align: center;
}

.game-requirements h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.game-requirements ul {
    list-style: none;
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-requirements li {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 16px;
}

.game-requirements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-dim);
}

/* ============================================
   Footer
   ============================================ */
footer {
    padding: 60px 0 24px;
    background: var(--bg-dark);
    border-top: 1px solid rgba(201, 168, 76, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.2rem;
    color: var(--gold);
}

.footer-brand p {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-credit p {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .tower-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .level-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .tower-grid,
    .feature-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        max-width: 360px;
        margin: 0 auto;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .title-defense {
        letter-spacing: 6px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .game-requirements ul {
        flex-direction: column;
        align-items: center;
    }
}
