/* ═══════════════════════════════════════════════════════════
   Voidroad — Dark Terminal Aesthetic
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f18;
    --bg-card: #12121e;
    --bg-card-hover: #1a1a2e;
    --text-primary: #e0e0e0;
    --text-secondary: #8a8a9a;
    --text-muted: #5a5a6a;
    --accent-green: #00cc88;
    --accent-green-dim: #009966;
    --accent-gold: #d4a853;
    --accent-gold-dim: #a07830;
    --accent-red: #e53935;
    --accent-blue: #4fc3f7;
    --accent-purple: #bb86fc;
    --border-color: #1e1e2e;
    --border-glow: rgba(0, 204, 136, 0.15);
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
    --font-serif: 'Crimson Pro', 'Georgia', serif;
    --max-width: 1100px;
    --nav-height: 64px;
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-mono);
    background: transparent;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: env(safe-area-inset-bottom);
}

a { color: var(--accent-green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-gold); }

img { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════
   STORE BANNER
   ═══════════════════════════════════════ */
:root { --store-banner-h: 36px; }

.store-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--store-banner-h);
    background: linear-gradient(90deg, rgba(0, 204, 136, 0.12) 0%, rgba(10, 10, 15, 0.95) 50%, rgba(212, 168, 83, 0.12) 100%);
    border-bottom: 1px solid rgba(0, 204, 136, 0.15);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.store-banner-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: var(--max-width);
    padding: 0 1rem;
}

.store-banner-text {
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    white-space: nowrap;
}

.store-badges {
    display: flex;
    gap: 0.8rem;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: rgba(10, 10, 15, 0.6);
    text-decoration: none;
    transition: border-color 0.3s, background 0.3s;
}

.store-badge:hover {
    border-color: var(--accent-green-dim);
    background: rgba(0, 204, 136, 0.06);
    color: var(--text-primary);
}

.store-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.store-badge:hover .store-icon { color: var(--accent-green); }

.store-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.store-badge-text small {
    font-size: 0.5rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.store-badge-text span {
    font-size: 0.65rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.navbar {
    position: fixed;
    top: var(--store-banner-h);
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background 0.3s;
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.navbar-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.navbar-title {
    letter-spacing: 2px;
    text-transform: uppercase;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-radius: 4px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-green);
    background: rgba(0, 204, 136, 0.08);
}

/* Hamburger */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s;
}

/* ═══════════════════════════════════════
   LANGUAGE SWITCHER
   ═══════════════════════════════════════ */
.lang-switcher {
    position: relative;
    margin-left: 0.8rem;
}

.lang-current {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: border-color 0.2s;
}

.lang-current:hover {
    border-color: var(--accent-green-dim);
}

.lang-icon { font-size: 0.9rem; }

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-width: 60px;
    z-index: 1001;
    overflow: hidden;
}

.lang-dropdown.open { display: block; }

.lang-option {
    display: block;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.lang-option:hover {
    background: rgba(0, 204, 136, 0.1);
    color: var(--accent-green);
}

.lang-option.active {
    color: var(--accent-green);
    font-weight: 600;
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 10, 15, 0.2) 0%, rgba(10, 10, 15, 0.35) 60%, var(--bg-primary) 100%),
        radial-gradient(ellipse at 20% 50%, rgba(0, 204, 136, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(212, 168, 83, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-logo {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    box-shadow: 0 0 40px rgba(0, 204, 136, 0.15);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-title .cursor-blink {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: var(--accent-green);
    margin-left: 4px;
    animation: blink 1s infinite;
    vertical-align: baseline;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.8;
    margin-bottom: 3rem;
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.5s forwards;
}

.hero-cta {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: transparent;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 2s forwards;
}

.hero-cta:hover {
    background: var(--accent-green);
    color: var(--bg-primary);
    box-shadow: 0 0 30px rgba(0, 204, 136, 0.2);
}

/* ═══════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════ */
.section {
    padding: 6rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-dark {
    background: rgba(18, 18, 24, 0.75);
    max-width: none;
}

.section-dark > .section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.section-heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-heading::before {
    content: '> ';
    color: var(--accent-green);
}

.section-subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
}

/* ═══════════════════════════════════════
   INTRO SECTION (HOME)
   ═══════════════════════════════════════ */
.intro-section {
    padding: 5rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.intro-heading {
    font-size: 1.6rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.intro-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.9;
}

/* ═══════════════════════════════════════
   FEATURE CARDS
   ═══════════════════════════════════════ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-gold));
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    border-color: var(--accent-green-dim);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.card:hover::before { opacity: 1; }

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.card-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ═══════════════════════════════════════
   STORY PAGE — Cinematic Scroll
   ═══════════════════════════════════════ */
.story-chapter {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 1.5rem;
    max-width: 750px;
    margin: 0 auto;
    position: relative;
}

.story-chapter--left {
    border-right: 2px solid var(--border-color);
    padding-right: 3rem;
    margin-right: auto;
    margin-left: 2rem;
    text-align: left;
}

.story-chapter--right {
    border-left: 2px solid var(--border-color);
    padding-left: 3rem;
    margin-left: auto;
    margin-right: 2rem;
    text-align: right;
}

.chapter-number {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.chapter-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.chapter-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 2rem;
}

/* NPC Dialog Bubble */
.npc-dialog {
    background: var(--bg-card);
    border: 1px solid var(--accent-green-dim);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    position: relative;
    display: inline-block;
    max-width: 500px;
    text-align: left;
}

.npc-dialog::before {
    content: 'NPC';
    position: absolute;
    top: -10px;
    left: 12px;
    background: var(--accent-green);
    color: var(--bg-primary);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 3px;
    letter-spacing: 1px;
}

.npc-dialog-text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--accent-green);
    font-style: italic;
    line-height: 1.6;
}

/* ═══════════════════════════════════════
   FEATURES PAGE
   ═══════════════════════════════════════ */
.feature-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: start;
}

.feature-block:last-child { border-bottom: none; }

.feature-icon-large {
    font-size: 2.5rem;
    width: 60px;
    text-align: center;
    padding-top: 0.3rem;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.feature-desc {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ═══════════════════════════════════════
   WORLD PAGE — Regions
   ═══════════════════════════════════════ */
.region-tier {
    margin-bottom: 3rem;
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tier-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 3px;
    color: var(--bg-primary);
}

.tier-badge.starter { background: var(--accent-green); }
.tier-badge.mid { background: var(--accent-blue); }
.tier-badge.advanced { background: var(--accent-gold); }
.tier-badge.exotic { background: var(--accent-purple); }

.tier-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tier-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.region-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.6rem;
}

.region-item {
    padding: 0.7rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.region-item:hover {
    border-color: var(--accent-green-dim);
    color: var(--text-primary);
}

.region-item::before {
    content: '> ';
    color: var(--accent-green);
}

/* Seasons */
.seasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.season-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
}

.season-card:hover {
    border-color: var(--accent-gold-dim);
}

.season-icon { font-size: 2rem; margin-bottom: 0.8rem; display: block; }

.season-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Parcels Table */
.parcels-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.8rem;
}

.parcels-table th {
    text-align: left;
    padding: 0.7rem 0.8rem;
    color: var(--accent-green);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.parcels-table td {
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.parcels-table tr:hover td {
    background: rgba(0, 204, 136, 0.03);
}

.check { color: var(--accent-green); }
.cross { color: var(--accent-red); opacity: 0.4; }

/* ═══════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════ */
.principles-list {
    list-style: none;
    margin: 2rem 0;
}

.principles-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
}

.principles-list li::before {
    content: '//';
    color: var(--accent-green);
    font-weight: 700;
    flex-shrink: 0;
}

/* FAQ Accordion */
.faq-list { margin-top: 1.5rem; }

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 0.6rem;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item.open { border-color: var(--accent-green-dim); }

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-mono);
    transition: background 0.2s;
}

.faq-question:hover { background: var(--bg-card-hover); }

.faq-arrow {
    font-size: 0.7rem;
    color: var(--accent-green);
    transition: transform 0.3s;
}

.faq-item.open .faq-arrow { transform: rotate(90deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.2rem 1.5rem;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ═══════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem;
    text-align: center;
    background: rgba(10, 10, 15, 0.8);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.footer-name {
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.footer-bottom {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links {
    margin-bottom: 1rem;
    font-size: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent-green); }

.footer-link-sep {
    color: var(--border-color);
    margin: 0 0.5rem;
}

.visitor-count {
    color: var(--accent-green-dim);
    font-size: 0.65rem;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════
   COOKIE CONSENT BANNER
   ═══════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.cookie-text a {
    color: var(--accent-green);
    text-decoration: underline;
}

.cookie-accept {
    background: var(--accent-green);
    color: var(--bg-primary);
    border: none;
    padding: 0.6rem 1.8rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
}

.cookie-accept:hover { background: #00e699; }

/* ═══════════════════════════════════════
   POLICY MODALS
   ═══════════════════════════════════════ */
.policy-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.policy-modal.open {
    opacity: 1;
    visibility: visible;
}

.policy-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-width: 650px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
}

.policy-modal-content h2 {
    color: var(--accent-gold);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.policy-modal-content h3 {
    color: var(--accent-green);
    font-size: 0.95rem;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
    letter-spacing: 1px;
}

.policy-modal-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.policy-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.policy-modal-close:hover { color: var(--accent-green); }

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* ═══════════════════════════════════════
   FIXED BACKGROUND LAYER (parallax)
   ═══════════════════════════════════════ */
.fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.fixed-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.25);
}

.fixed-bg--home { background-image: url('/images/voidroad-bg.png'); }
.fixed-bg--story { background-image: url('/images/bg-story.png'); }
.fixed-bg--features { background-image: url('/images/bg-features.png'); }
.fixed-bg--world { background-image: url('/images/bg-world.png'); }
.fixed-bg--about { background-image: url('/images/bg-about.png'); }

/* ═══════════════════════════════════════
   MUSIC PLAYER
   ═══════════════════════════════════════ */
.music-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.music-toggle:hover {
    border-color: var(--accent-green-dim);
    color: var(--accent-green);
    transform: scale(1.05);
}

.music-toggle.playing {
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 20px rgba(0, 204, 136, 0.15);
}

.music-toggle.playing .music-icon-bars {
    animation: musicPulse 1.2s ease-in-out infinite;
}

.music-icon-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.music-icon-bars span {
    display: block;
    width: 3px;
    background: currentColor;
    border-radius: 1px;
    transition: height 0.3s;
}

.music-toggle:not(.playing) .music-icon-bars span { height: 4px; }

.music-toggle.playing .music-icon-bars span:nth-child(1) { animation: bar1 0.8s ease-in-out infinite; }
.music-toggle.playing .music-icon-bars span:nth-child(2) { animation: bar2 0.6s ease-in-out infinite 0.1s; }
.music-toggle.playing .music-icon-bars span:nth-child(3) { animation: bar3 0.7s ease-in-out infinite 0.2s; }
.music-toggle.playing .music-icon-bars span:nth-child(4) { animation: bar4 0.9s ease-in-out infinite 0.05s; }

@keyframes bar1 { 0%, 100% { height: 6px; } 50% { height: 14px; } }
@keyframes bar2 { 0%, 100% { height: 10px; } 50% { height: 5px; } }
@keyframes bar3 { 0%, 100% { height: 4px; } 50% { height: 16px; } }
@keyframes bar4 { 0%, 100% { height: 12px; } 50% { height: 7px; } }

/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE-FIRST OVERHAUL
   ═══════════════════════════════════════ */

/* --- Tablet & below (768px) --- */
@media (max-width: 768px) {
    html { font-size: 15px; }

    .store-banner-text { display: none; }
    .store-badge-text small { font-size: 0.45rem; }
    .store-badge-text span { font-size: 0.6rem; }

    .navbar-toggle { display: flex; }

    .navbar-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-links.open { display: flex; }

    .nav-link {
        padding: 0.9rem 1rem;
        font-size: 1rem;
        width: 100%;
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .lang-current {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Portrait images on mobile */
    .fixed-bg--home { background-image: url('/images/voidroad-bg-portrait.png'); }
    .fixed-bg--story { background-image: url('/images/bg-story-portrait.png'); }
    .fixed-bg--features { background-image: url('/images/bg-features-portrait.png'); }
    .fixed-bg--world { background-image: url('/images/bg-world-portrait.png'); }
    .fixed-bg--about { background-image: url('/images/bg-about-portrait.png'); }

    .fixed-bg::after { background: rgba(10, 10, 15, 0.3); }

    /* Remove backgrounds from elements (fixed-bg handles it) */
    .hero {
        min-height: 100svh;
        padding: 2rem 1.2rem;
        background: transparent;
    }

    .page-header {
        background: transparent;
    }

    .page-header::before {
        background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.3) 70%, var(--bg-primary) 100%);
    }

    body { background: var(--bg-primary); }

    .hero-logo {
        width: 90px;
        height: 90px;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        padding: 0 0.5rem;
        max-width: 100%;
    }

    .hero-cta {
        padding: 1rem 2.5rem;
        font-size: 0.9rem;
    }

    .music-toggle {
        bottom: 4.5rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-text { font-size: 0.75rem; }

    .policy-modal-content {
        padding: 1.5rem;
        width: 95%;
        max-height: 85vh;
    }

    /* Sections */
    .section { padding: 3.5rem 1.2rem; }

    .section-heading {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Intro */
    .intro-section { padding: 3.5rem 1.2rem; }

    .intro-heading { font-size: 1.4rem; }

    .intro-text {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    /* Cards */
    .cards-grid { grid-template-columns: 1fr; }

    .card {
        padding: 1.8rem 1.5rem;
    }

    .card-icon { font-size: 2.2rem; }

    .card-title { font-size: 1.1rem; }

    .card-text { font-size: 0.9rem; }

    /* Story chapters */
    .story-chapter {
        min-height: auto;
        padding: 3rem 1.2rem;
    }

    .story-chapter--left,
    .story-chapter--right {
        border: none;
        padding-left: 1.2rem;
        padding-right: 1.2rem;
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }

    .chapter-title { font-size: 1.5rem; }

    .chapter-text {
        font-size: 1.05rem;
        line-height: 1.85;
    }

    .npc-dialog {
        max-width: 100%;
        padding: 1rem 1.2rem;
    }

    .npc-dialog-text { font-size: 0.95rem; }

    /* Features */
    .feature-block {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 2rem 0;
    }

    .feature-icon-large {
        text-align: left;
        font-size: 2.2rem;
        width: auto;
    }

    .feature-title { font-size: 1.15rem; }

    .feature-desc { font-size: 1rem; }

    /* Regions */
    .region-list { grid-template-columns: 1fr; }

    .region-item {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }

    .tier-title { font-size: 1.15rem; }

    .tier-subtitle { font-size: 0.85rem; }

    /* Seasons */
    .seasons-grid { grid-template-columns: 1fr 1fr; }

    .season-card { padding: 1.3rem; }

    .season-icon { font-size: 2.2rem; }

    .season-text { font-size: 0.9rem; }

    /* Table */
    .parcels-table { font-size: 0.75rem; }
    .parcels-table th,
    .parcels-table td { padding: 0.5rem 0.6rem; }

    /* Principles */
    .principles-list li {
        font-size: 0.95rem;
        padding: 0.9rem 0;
    }

    /* FAQ */
    .faq-question {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }

    .faq-answer-inner {
        padding: 0 1.2rem 1rem 1.2rem;
        font-size: 0.95rem;
    }

    /* Page headers */
    .page-header {
        padding-top: calc(var(--nav-height) + var(--store-banner-h) + 3rem);
        padding-bottom: 3rem;
        padding-left: 1.2rem;
        padding-right: 1.2rem;
        background-attachment: scroll;
    }

    .page-header--story,
    .page-header--features,
    .page-header--about { min-height: 260px; }

    .page-header--world { min-height: 300px; }

    /* Footer */
    .site-footer { padding: 2.5rem 1.2rem; }

    .footer-tagline { font-size: 0.85rem; }
}

/* --- Phone (480px and below) --- */
@media (max-width: 480px) {
    html { font-size: 14px; }

    :root {
        --nav-height: 56px;
    }

    .navbar-logo {
        width: 28px;
        height: 28px;
    }

    .navbar-brand { font-size: 1rem; }

    .navbar-toggle span { width: 22px; }

    /* Hero */
    .hero { padding: 1.5rem 1rem; }

    .hero-logo {
        width: 80px;
        height: 80px;
        border-radius: 12px;
        margin-bottom: 1.2rem;
    }

    .hero-title {
        letter-spacing: 4px;
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.7;
    }

    .hero-cta {
        padding: 0.9rem 2rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* Sections */
    .section { padding: 2.5rem 1rem; }

    .section-heading {
        font-size: 1.3rem;
        letter-spacing: 1.5px;
    }

    .section-dark > .section-inner { padding: 2.5rem 1rem !important; }

    /* Intro */
    .intro-section { padding: 2.5rem 1rem; }

    .intro-heading {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }

    .intro-text { font-size: 1rem; }

    /* Cards */
    .card {
        padding: 1.5rem 1.2rem;
    }

    .card-icon { font-size: 2rem; margin-bottom: 0.8rem; }

    .card-title { font-size: 1.05rem; }

    .card-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    /* Story */
    .story-chapter { padding: 2rem 1rem; }

    .chapter-number { font-size: 0.65rem; }

    .chapter-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .chapter-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .npc-dialog { padding: 0.9rem 1rem; }

    .npc-dialog-text { font-size: 0.9rem; }

    .story-divider { padding: 1rem 0; }

    /* Features */
    .feature-block { padding: 1.5rem 0; }

    .feature-icon-large { font-size: 2rem; }

    .feature-title { font-size: 1.1rem; }

    .feature-desc {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    /* Regions */
    .tier-header { gap: 0.6rem; }

    .tier-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.6rem;
    }

    .tier-title { font-size: 1.1rem; }

    .region-item {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }

    /* Seasons */
    .seasons-grid { grid-template-columns: 1fr; }

    .season-card { padding: 1.2rem; }

    .season-icon { font-size: 2rem; margin-bottom: 0.6rem; }

    .season-text { font-size: 0.9rem; }

    /* Table - mobile card layout */
    .parcels-table { font-size: 0.7rem; }

    .parcels-table th,
    .parcels-table td { padding: 0.4rem; white-space: nowrap; }

    /* Principles */
    .principles-list li {
        font-size: 0.9rem;
        gap: 0.6rem;
    }

    /* FAQ */
    .faq-question {
        padding: 0.9rem 1rem;
        font-size: 0.85rem;
        gap: 0.8rem;
    }

    .faq-answer-inner {
        padding: 0 1rem 0.9rem 1rem;
        font-size: 0.9rem;
    }

    /* Page headers */
    .page-header {
        padding-top: calc(var(--nav-height) + var(--store-banner-h) + 2.5rem);
        padding-bottom: 2.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-header .section-heading { font-size: 1.4rem; }

    .page-header .section-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .page-header--story,
    .page-header--features,
    .page-header--about { min-height: 220px; }

    .page-header--world { min-height: 260px; }

    /* Footer */
    .site-footer { padding: 2rem 1rem; }

    .footer-logo {
        width: 24px;
        height: 24px;
    }

    .footer-name { font-size: 0.8rem; }

    .footer-tagline { font-size: 0.8rem; }

    .footer-bottom { font-size: 0.65rem; }
}

/* --- Very small phones (360px) --- */
@media (max-width: 360px) {
    html { font-size: 13px; }

    .hero-title {
        letter-spacing: 3px;
        font-size: 2rem;
    }

    .hero-logo {
        width: 64px;
        height: 64px;
    }

    .section { padding: 2rem 0.8rem; }

    .card { padding: 1.3rem 1rem; }

    .page-header {
        padding-top: calc(var(--nav-height) + var(--store-banner-h) + 2rem);
        padding-bottom: 2rem;
    }
}

/* --- Touch device optimizations --- */
@media (hover: none) and (pointer: coarse) {
    .nav-link { min-height: 44px; display: flex; align-items: center; }

    .lang-current { min-height: 40px; }

    .lang-option { min-height: 40px; display: flex; align-items: center; }

    .hero-cta { min-height: 48px; display: flex; align-items: center; justify-content: center; }

    .faq-question { min-height: 48px; }

    .region-item { min-height: 44px; display: flex; align-items: center; }

    .card:hover { transform: none; }

    .hero { background-attachment: scroll; }

    .page-header { background-attachment: scroll; }
}

/* --- Landscape phone --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 2rem 3rem;
    }

    .hero-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .hero-subtitle { margin-bottom: 1.5rem; }

    .page-header--story,
    .page-header--features,
    .page-header--world,
    .page-header--about { min-height: 200px; }
}

/* ═══════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-green-dim); }

/* ═══════════════════════════════════════
   PAGE HEADER (non-home pages)
   ═══════════════════════════════════════ */
.page-header {
    padding-top: calc(var(--nav-height) + var(--store-banner-h) + 6rem);
    padding-bottom: 4rem;
    text-align: center;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.15) 0%, rgba(10, 10, 15, 0.3) 60%, var(--bg-primary) 100%);
    pointer-events: none;
}

.page-header > * {
    position: relative;
    z-index: 1;
}

.page-header .section-heading { margin-bottom: 0.5rem; }

.page-header--story,
.page-header--features,
.page-header--world,
.page-header--about {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-header--world { min-height: 380px; }

/* ═══════════════════════════════════════
   PAGE ATMOSPHERIC SECTIONS
   ═══════════════════════════════════════ */
.section-atmospheric {
    position: relative;
    overflow: hidden;
}

.section-atmospheric::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-atmospheric--story::after {
    background-image: url('/images/bg-story.png');
}

.section-atmospheric--features::after {
    background-image: url('/images/bg-features.png');
}

.section-atmospheric--world::after {
    background-image: url('/images/bg-world.png');
}

.section-atmospheric--about::after {
    background-image: url('/images/bg-about.png');
}

/* Story page cinematic dividers */
.story-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    opacity: 0.3;
}

.story-divider::before,
.story-divider::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold));
}

.story-divider::after {
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.story-divider-icon {
    padding: 0 1rem;
    color: var(--accent-gold);
    font-size: 0.9rem;
}
