/* ============================================
   ASHBORN - The Last Age of Giants
   Marketing Website Styles
   Studio: PER AEVUM
   ============================================
   1. CSS Custom Properties (Design Tokens)
   2. Reset & Base
   3. Typography
   4. Utility Classes
   5. Layout: Container & Grid
   6. Components: Buttons
   7. Components: Navigation
   8. Section: Hero
   9. Section: About / Vision
   10. Section: Features
   11. Section: Species
   12. Section: World / Biomes
   13. Section: Community
   14. Components: Footer
   15. Responsive Breakpoints
   ============================================ */

/* ============================================
   1. CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Colors */
    --color-bg-primary:     #0a0a0a;
    --color-bg-secondary:   #111111;
    --color-bg-card:        #1a1a1a;
    --color-bg-card-hover:  #222222;
    --color-border:         #2a2a2a;
    --color-border-subtle:  #1f1f1f;

    --color-amber:          #d4a543;
    --color-amber-dark:     #c17a2a;
    --color-amber-light:    #e8c36a;
    --color-amber-glow:     rgba(212, 165, 67, 0.15);

    --color-text-primary:   #e8e0d0;
    --color-text-secondary: #a8a090;
    --color-text-muted:     #6a6560;

    --color-volcanic-red:   #8b2500;
    --color-volcanic-glow:  rgba(139, 37, 0, 0.3);

    /* Typography */
    --font-heading:     'Cinzel', serif;
    --font-body:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --fs-hero-title:    clamp(3.5rem, 10vw, 8rem);
    --fs-hero-subtitle: clamp(1.2rem, 3vw, 2rem);
    --fs-section-title: clamp(1.8rem, 4vw, 3rem);
    --fs-section-label: clamp(0.75rem, 1.5vw, 0.875rem);
    --fs-body:          clamp(0.95rem, 1.2vw, 1.1rem);
    --fs-small:         0.875rem;

    --fw-regular:       400;
    --fw-medium:        500;
    --fw-bold:          700;
    --fw-black:         900;

    --lh-heading:       1.1;
    --lh-body:          1.7;
    --ls-heading:       0.15em;
    --ls-label:         0.3em;

    /* Spacing (8px base grid) */
    --space-xs:   0.5rem;
    --space-sm:   1rem;
    --space-md:   1.5rem;
    --space-lg:   2rem;
    --space-xl:   3rem;
    --space-2xl:  4rem;
    --space-3xl:  6rem;
    --space-4xl:  8rem;

    /* Layout */
    --container-max:    1200px;
    --container-pad:    var(--space-sm);
    --nav-height:       70px;
    --border-radius:    8px;
    --border-radius-lg: 12px;

    /* Transitions */
    --transition-fast:    150ms ease;
    --transition-normal:  300ms ease;
    --transition-slow:    600ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-reveal:  800ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   SPLASH / ENTER SCREEN
   ============================================ */
body.splash-active {
    overflow: hidden;
}

.splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-primary);
    background-image:
        radial-gradient(ellipse at 50% 35%, rgba(212, 165, 67, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 60%, rgba(139, 37, 0, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(212, 165, 67, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(212, 165, 67, 0.03) 0%, transparent 40%),
        linear-gradient(180deg, #0a0a0a 0%, #100d06 40%, #0f0d08 100%);
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

.splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Splash particle canvas */
.splash__particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Decorative arcs */
.splash__arc {
    position: absolute;
    top: 5%;
    height: 55%;
    width: auto;
    z-index: 2;
    opacity: 0;
    animation: splashArcIn 2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.splash__arc--left {
    left: 2%;
}

.splash__arc--right {
    right: 2%;
}

@keyframes splashArcIn {
    0%   { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.splash__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    z-index: 3;
    position: relative;
}

.splash__studio {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-amber);
    opacity: 0.7;
    margin-bottom: var(--space-xs);
}

/* Ornamental lines with diamond */
.splash__ornament-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 280px;
    height: 12px;
    position: relative;
    opacity: 0;
}

.splash__ornament-line::before,
.splash__ornament-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-amber), transparent);
}

.splash__ornament-diamond {
    width: 6px;
    height: 6px;
    background: var(--color-amber);
    transform: rotate(45deg);
    flex-shrink: 0;
    margin: 0 var(--space-sm);
    opacity: 0.7;
}

.splash__title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: var(--fw-black);
    color: var(--color-text-primary);
    letter-spacing: 0.15em;
    line-height: 1;
    text-shadow:
        0 0 80px rgba(212, 165, 67, 0.20),
        0 0 40px rgba(212, 165, 67, 0.10);
    padding: var(--space-xs) 0;
}

.splash__subtitle {
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: var(--fw-regular);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Emblem */
.splash__emblem {
    width: 50px;
    height: 50px;
    margin: var(--space-xs) 0;
    opacity: 0;
}

.splash__emblem svg {
    width: 100%;
    height: 100%;
}

.splash__enter {
    font-size: 1.1rem;
    padding: 1rem 3rem;
    letter-spacing: 0.15em;
    animation: splashPulse 2.5s ease-in-out infinite;
    margin-top: var(--space-xs);
}

@keyframes splashPulse {
    0%, 100% { box-shadow: 0 0 20px var(--color-amber-glow); }
    50%      { box-shadow: 0 0 40px var(--color-amber-glow), 0 0 80px rgba(212, 165, 67, 0.1); }
}

.splash__hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    opacity: 0.5;
    letter-spacing: 0.1em;
}

/* Skip Navigation (Accessibility) */
.skip-nav {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--color-amber);
    color: var(--color-bg-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-sm);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-small);
    z-index: 10000;
    transition: top var(--transition-fast);
    text-decoration: none;
}

.skip-nav:focus {
    top: var(--space-md);
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: scroll;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow: visible;
}

img, video, svg, canvas {
    max-width: 100%;
    height: auto;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-amber);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul, ol {
    list-style: none;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
}

/* ============================================
   4. UTILITY CLASSES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   5. LAYOUT: CONTAINER & GRID
   ============================================ */
.container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section {
    position: relative;
    z-index: 1;
    padding: var(--space-4xl) 0;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section__label {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--fs-section-label);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--color-amber);
    margin-bottom: var(--space-sm);
}

.section__title {
    font-family: var(--font-heading);
    font-size: var(--fs-section-title);
    font-weight: var(--fw-black);
    letter-spacing: var(--ls-heading);
    line-height: var(--lh-heading);
    color: var(--color-text-primary);
}

.section__subtitle {
    font-size: var(--fs-body);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: var(--space-sm) auto 0;
}

/* Section dividers */
.section + .section {
    border-top: 1px solid var(--color-border-subtle);
}

/* ============================================
   6. COMPONENTS: BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
    color: var(--color-bg-primary);
    border-color: var(--color-amber);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--color-amber-light), var(--color-amber));
    color: var(--color-bg-primary);
    box-shadow: 0 0 30px var(--color-amber-glow);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-text-secondary);
}

.btn--outline:hover {
    border-color: var(--color-amber);
    color: var(--color-amber);
    box-shadow: 0 0 20px var(--color-amber-glow);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
}

.btn__icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
}

.btn__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* ============================================
   7. COMPONENTS: NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    transition: background-color var(--transition-normal),
                backdrop-filter var(--transition-normal);
}

.site-header.scrolled {
    background-color: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-subtle);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: var(--fw-black);
    letter-spacing: 0.2em;
    color: var(--color-text-primary);
}

.logo-studio {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--color-amber);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-amber);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-cta {
    text-decoration: none;
}

/* Mobile hamburger (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: 110;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-normal);
    transform-origin: center;
}

/* Mobile nav overlay backdrop */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   8. SECTION: HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 120%, var(--color-volcanic-glow), transparent 60%),
        radial-gradient(ellipse at 50% 0%, rgba(212, 165, 67, 0.05), transparent 50%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(13, 8, 0, 0.5) 50%, var(--color-bg-primary) 100%),
        url('../assets/images/hero-bg.jpg') center/cover no-repeat;
    z-index: -1;
    will-change: transform;
}

/* Mouse-following ambient glow (desktop only) */
.hero__overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(212, 165, 67, 0.06),
        transparent 60%
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero:hover .hero__overlay::before {
    opacity: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: var(--space-lg);
}

.hero__studio {
    font-family: var(--font-heading);
    font-size: var(--fs-section-label);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--color-amber);
    margin-bottom: var(--space-md);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: var(--fs-hero-title);
    font-weight: var(--fw-black);
    letter-spacing: 0.2em;
    line-height: 1;
    margin-bottom: var(--space-sm);
    /* Gold shimmer text effect */
    background: linear-gradient(
        90deg,
        var(--color-text-primary) 0%,
        var(--color-text-primary) 35%,
        var(--color-amber-light) 50%,
        var(--color-text-primary) 65%,
        var(--color-text-primary) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 60px var(--color-amber-glow)) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8));
}

.hero__subtitle {
    font-family: var(--font-heading);
    font-size: var(--fs-hero-subtitle);
    font-weight: var(--fw-regular);
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.hero__tagline {
    font-size: var(--fs-body);
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto var(--space-xl);
    line-height: var(--lh-body);
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   9. SECTION: ABOUT / VISION
   ============================================ */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about__text {
    max-width: 560px;
}

.about__lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about__text p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.about__pillars {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.pillar-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    transition: transform 0.15s ease-out,
                border-color var(--transition-normal),
                box-shadow var(--transition-normal);
}

.pillar-card:hover {
    border-color: var(--color-amber-dark);
}

.pillar-card__icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    color: var(--color-amber);
    margin-bottom: var(--space-sm);
}

.pillar-card__icon svg {
    width: 100%;
    height: 100%;
}

.pillar-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-xs);
    color: var(--color-text-primary);
}

.pillar-card__desc {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================
   10. SECTION: FEATURES
   ============================================ */
.features {
    background: var(--color-bg-secondary);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    will-change: transform;
    transition: transform 0.15s ease-out,
                box-shadow var(--transition-normal),
                border-color var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--color-amber-dark);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 30px var(--color-amber-glow);
}

.feature-card__visual {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.feature-card__visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(0deg, var(--color-bg-card), transparent);
}

.feature-card__content {
    padding: var(--space-lg);
}

.feature-card__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    color: var(--color-amber);
    margin-bottom: var(--space-sm);
}

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

.feature-card__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-xs);
    color: var(--color-text-primary);
}

.feature-card__subtitle {
    font-size: var(--fs-small);
    color: var(--color-amber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.feature-card__desc {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================
   11. SECTION: SPECIES
   ============================================ */
.species__showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

/* Centered 2-card layout */
.species__showcase--duo {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.species-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-align: center;
    transition: transform 0.15s ease-out,
                border-color var(--transition-normal),
                box-shadow var(--transition-normal);
}

.species-card:hover {
    border-color: var(--color-amber);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.species-card__silhouette {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #151510 0%, var(--color-bg-card) 100%);
    position: relative;
    font-size: 5rem;
    opacity: 0.3;
}

/* Real image containers */
.species-card__image {
    height: 320px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #121215 0%, var(--color-bg-card) 100%);
}

.species-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform var(--transition-slow);
}

.species-card:hover .species-card__image img {
    transform: scale(1.05);
}

.species-card__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(0deg, var(--color-bg-card), transparent);
    pointer-events: none;
}

.species-card__info {
    padding: var(--space-lg);
}

.species-card__name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
    color: var(--color-text-primary);
}

.species-card__latin {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-style: italic;
    color: var(--color-amber);
    margin-bottom: var(--space-md);
}

.species-card__stats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-md);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-amber);
    margin-bottom: 2px;
}

.stat dd {
    font-weight: var(--fw-medium);
    font-size: var(--fs-small);
    color: var(--color-text-primary);
}

.species-card__desc {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Species Count Badge */
.species__count {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: var(--space-md);
}

.species__count-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: var(--fw-black);
    color: var(--color-amber);
    line-height: 1;
}

.species__count-label {
    font-size: 0.7rem;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* Species Groups Container */
.species-groups {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 1100px;
    margin: 0 auto;
}

/* Individual Group Dropdown */
.species-group {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-normal),
                box-shadow var(--transition-normal);
}

.species-group:hover {
    border-color: rgba(212, 165, 67, 0.3);
}

.species-group.active {
    border-color: var(--color-amber-dark);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Toggle Button (full-width header) */
.species-group__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: none;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.species-group__toggle:hover {
    background: rgba(212, 165, 67, 0.04);
}

.species-group__toggle:focus-visible {
    outline: 2px solid var(--color-amber);
    outline-offset: -2px;
    border-radius: var(--border-radius-lg);
}

.species-group__header-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.species-group__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    flex-shrink: 0;
    color: var(--color-amber);
}

.species-group__icon svg {
    width: 100%;
    height: 100%;
}

.species-group__titles {
    text-align: left;
}

.species-group__name {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
}

.species-group.active .species-group__name {
    color: var(--color-amber);
}

.species-group__desc {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

.species-group__header-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.species-group__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 var(--space-xs);
    border-radius: 14px;
    background: rgba(212, 165, 67, 0.12);
    color: var(--color-amber);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: var(--fw-bold);
}

.species-group__chevron {
    display: inline-flex;
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    transition: transform var(--transition-normal),
                color var(--transition-fast);
}

.species-group__chevron svg {
    width: 100%;
    height: 100%;
}

.species-group.active .species-group__chevron {
    transform: rotate(180deg);
    color: var(--color-amber);
}

/* Dropdown Panel (animated via grid-template-rows) */
.species-group__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--transition-slow);
}

.species-group.active .species-group__panel {
    grid-template-rows: 1fr;
}

.species-group__panel-inner {
    overflow: hidden;
}

/* Species List inside panels */
.species-list {
    list-style: none;
    margin: 0;
    padding: 0 var(--space-lg) var(--space-md);
}

.species-list__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background var(--transition-fast);
}

.species-list__item:last-child {
    border-bottom: none;
}

.species-list__item:hover {
    border-radius: var(--border-radius-sm);
}

.species-list__name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: var(--fw-bold);
    color: var(--color-text-primary);
    letter-spacing: 0.04em;
    min-width: 0;
    flex: 0 1 auto;
}

.species-list__latin {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-style: italic;
    color: var(--color-text-muted);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.species-list__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
}

.species-list__tag--apex {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.species-list__tag--large {
    background: rgba(212, 165, 67, 0.15);
    color: var(--color-amber);
}

.species-list__tag--mid {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.species-list__tag--small {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.species-list__tag--marine {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.species-list__tag--flying {
    background: rgba(192, 132, 252, 0.15);
    color: #c084fc;
}

/* Coming Soon text */
.species-group__coming-soon {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    font-style: italic;
    text-align: center;
}

/* Species List Item — Clickable Header */
.species-list__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    padding: var(--space-sm) var(--space-lg);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    text-align: left;
    transition: background var(--transition-fast);
}

.species-list__item:last-child .species-list__header {
    border-bottom: none;
}

.species-list__header:hover {
    background: rgba(212, 165, 67, 0.04);
}

.species-list__item.detail-open .species-list__header {
    background: rgba(212, 165, 67, 0.06);
    border-bottom-color: var(--color-amber-dark);
}

.species-list__item.detail-open .species-list__name {
    color: var(--color-amber);
}

/* Species Detail Panel (nested dropdown) */
.species-detail {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--transition-slow);
}

.species-list__item.detail-open .species-detail {
    grid-template-rows: 1fr;
}

.species-detail__inner {
    overflow: hidden;
}

.species-list__item.detail-open .species-detail__inner {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-xl);
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.2);
}

/* Species Image Slot */
.species-detail__image {
    width: 240px;
    height: 240px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}

.species-detail__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.species-detail__image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.species-detail__image.no-image::after {
    content: 'Image Coming Soon';
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-align: center;
    padding: var(--space-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.species-detail__image.no-image img {
    display: none;
}

/* Species Info */
.species-detail__info {
    min-width: 0;
}

.species-detail__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm) var(--space-xl);
    margin-bottom: var(--space-md);
}

.species-detail__stats > div {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.species-detail__stats dt {
    font-size: 0.65rem;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-amber);
}

.species-detail__stats dd {
    font-size: 0.9rem;
    color: var(--color-text-primary);
    line-height: 1.4;
}

.species-detail__desc {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ============================================
   12. SECTION: WORLD / BIOMES
   ============================================ */
.world {
    background: var(--color-bg-secondary);
}

.world__biomes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

.biome-panel {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    cursor: default;
    transition: transform 0.15s ease-out,
                box-shadow var(--transition-normal);
}

.biome-panel:hover {
    /* 3D tilt handled by JS */
}

.biome-panel__visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform var(--transition-slow);
}

.biome-panel:hover .biome-panel__visual {
    transform: scale(1.05);
}

.biome-panel__content {
    position: relative;
    z-index: 1;
    padding: var(--space-lg);
    padding-top: var(--space-3xl);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    width: 100%;
}

.biome-panel__name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-xs);
    color: var(--color-text-primary);
}

.biome-panel__desc {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ============================================
   13. SECTION: COMMUNITY
   ============================================ */
.community__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.community__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.community-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: transform 0.15s ease-out,
                box-shadow var(--transition-normal),
                border-color var(--transition-normal);
    text-decoration: none;
}

.community-link:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.community-link--discord:hover {
    border-color: #5865F2;
}

.community-link--patreon:hover {
    border-color: #FF424D;
}

.community-link--youtube:hover {
    border-color: #FF0000;
}

.community-link--twitter:hover {
    border-color: #e8e0d0;
}

.community-link__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.community-link:hover .community-link__icon {
    color: var(--color-text-primary);
}

.community-link__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.community-link__label {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
}

.community-link__desc {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
}

/* Newsletter */
.community__newsletter {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
}

.newsletter__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-xs);
    color: var(--color-text-primary);
}

.newsletter__desc {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.newsletter__form {
    display: flex;
    gap: var(--space-xs);
}

.newsletter__input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    outline: none;
    transition: border-color var(--transition-fast),
                box-shadow var(--transition-fast);
}

.newsletter__input:focus {
    border-color: var(--color-amber);
    box-shadow: 0 0 15px var(--color-amber-glow);
}

.newsletter__input::placeholder {
    color: var(--color-text-muted);
}

/* ============================================
   13b. SECTION: SUPPORT / PATREON
   ============================================ */
.support__content {
    display: flex;
    justify-content: center;
}

.support__card {
    max-width: 640px;
    width: 100%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FF424D, transparent);
}

.support__icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    color: #FF424D;
    margin-bottom: var(--space-md);
}

.support__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.support__title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: var(--fw-bold);
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.support__desc {
    font-size: var(--fs-body);
    color: var(--color-text-secondary);
    line-height: var(--lh-body);
    margin-bottom: var(--space-xl);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.support__perks {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    text-align: left;
}

.support__perk {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.support__perk-icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--color-amber);
}

.support__perk-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.btn--patreon {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    background: #FF424D;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn--patreon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn--patreon:hover {
    background: #e63640;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 66, 77, 0.3);
}

/* ============================================
   14. COMPONENTS: FOOTER
   ============================================ */
.site-footer {
    position: relative;
    z-index: 1;
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: var(--fw-black);
    letter-spacing: 0.2em;
    color: var(--color-amber);
}

.footer__tagline {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    font-style: italic;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer__links a {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    text-decoration: none;
}

.footer__links a:hover {
    color: var(--color-amber);
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.social-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-icon:hover {
    color: var(--color-amber);
    border-color: var(--color-amber);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer__bottom {
    border-top: 1px solid var(--color-border-subtle);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer__bottom p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ============================================
   15. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large desktop (1400px+) */
@media (min-width: 1400px) {
    :root {
        --container-max: 1320px;
    }
}

/* Tablet landscape / small desktop (1024px) */
@media (max-width: 1024px) {
    .section {
        padding: var(--space-3xl) 0;
    }

    .section__header {
        margin-bottom: var(--space-2xl);
    }

    .about__grid {
        gap: var(--space-2xl);
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .world__biomes {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet portrait (768px) */
@media (max-width: 768px) {
    :root {
        --container-pad: var(--space-md);
        --nav-height: 60px;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .section__header {
        margin-bottom: var(--space-xl);
    }

    /* ---- Mobile Navigation ---- */
    .nav-toggle {
        display: flex;
    }

    .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: var(--space-xl);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform: translateX(100%);
        transition: transform var(--transition-slow);
        gap: var(--space-md);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.1rem;
        padding: var(--space-sm) var(--space-lg);
    }

    .nav-cta.btn {
        margin-top: var(--space-sm);
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    /* ---- Hero Mobile ---- */
    .hero {
        min-height: 100svh; /* Use svh for mobile browsers with address bar */
    }

    .hero__content {
        padding: var(--space-md);
    }

    .hero__studio {
        font-size: 0.7rem;
        margin-bottom: var(--space-sm);
    }

    .hero__subtitle {
        margin-bottom: var(--space-md);
    }

    .hero__tagline {
        font-size: 0.9rem;
        margin-bottom: var(--space-lg);
        padding: 0 var(--space-sm);
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .hero__scroll-indicator {
        display: none;
    }

    /* ---- About / Vision ---- */
    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about__text {
        max-width: 100%;
    }

    .about__lead {
        font-size: 1.05rem;
    }

    .pillar-card {
        padding: var(--space-md);
    }

    /* ---- Features ---- */
    .features__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .feature-card__visual {
        height: 140px;
    }

    .feature-card__content {
        padding: var(--space-md);
    }

    /* ---- Species ---- */
    .species__showcase,
    .species__showcase--duo {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: var(--space-lg);
    }

    .species-card__image {
        height: 260px;
    }

    .species-card__info {
        padding: var(--space-md);
    }

    .species-group__toggle {
        padding: var(--space-sm) var(--space-md);
    }

    .species-group__desc {
        display: none;
    }

    .species-group__icon {
        width: 1.3rem;
        height: 1.3rem;
    }

    .species-list {
        padding: 0 var(--space-sm) var(--space-sm);
    }

    .species-list__item {
        padding: var(--space-xs) var(--space-sm);
        gap: var(--space-sm);
    }

    .species-list__latin {
        display: none;
    }

    .species-list__item.detail-open .species-detail__inner {
        grid-template-columns: 1fr;
    }

    .species-detail__image {
        width: 100%;
        height: 160px;
    }

    .species-detail__stats {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xs) var(--space-sm);
    }

    /* ---- World / Biomes ---- */
    .world__biomes {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .biome-panel {
        min-height: 260px;
    }

    .biome-panel__content {
        padding: var(--space-md);
        padding-top: var(--space-2xl);
    }

    .biome-panel__name {
        font-size: 1.05rem;
    }

    .biome-panel__desc {
        font-size: 0.8rem;
    }

    /* ---- Progress ---- */
    .progress__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }

    .stat-card {
        padding: var(--space-md);
    }

    .milestone-list {
        grid-template-columns: 1fr;
    }

    /* ---- Server Status ---- */
    .servers__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .server-card:hover {
        transform: none;
    }

    /* ---- FAQ ---- */
    .faq-item__question {
        padding: var(--space-md);
        font-size: 0.95rem;
    }

    .faq-item__answer-inner p {
        padding: 0 var(--space-md) var(--space-md);
    }

    /* ---- Community ---- */
    .community__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

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

    .community-link {
        padding: var(--space-md);
    }

    .community__newsletter {
        padding: var(--space-lg);
    }

    /* ---- Support / Patreon ---- */
    .support__card {
        padding: var(--space-xl);
    }

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

    .btn--patreon:hover {
        transform: none;
    }

    /* ---- Footer ---- */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__links ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }

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

    .social-icon {
        width: 44px;
        height: 44px;
    }
}

/* Small mobile (480px) */
@media (max-width: 480px) {
    :root {
        --container-pad: var(--space-sm);
    }

    .section {
        padding: var(--space-xl) 0;
    }

    /* ---- Hero Small ---- */
    .hero__title {
        letter-spacing: 0.1em;
    }

    .hero__tagline {
        font-size: 0.85rem;
        padding: 0;
    }

    .hero__actions .btn {
        max-width: 100%;
        font-size: 0.85rem;
    }

    /* ---- Features Small ---- */
    .feature-card__visual {
        height: 120px;
    }

    .feature-card__title {
        font-size: 1.1rem;
    }

    /* ---- Species Small ---- */
    .species-card__image {
        height: 220px;
    }

    .species-card__name {
        font-size: 1.2rem;
    }

    .species-card__stats {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .species-group__name {
        font-size: 0.9rem;
    }

    .species-group__badge {
        min-width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .species-list__name {
        font-size: 0.85rem;
    }

    .species-list__tag {
        font-size: 0.6rem;
        padding: 0.1rem 0.45rem;
    }

    .species-detail__image {
        width: 100%;
        height: 140px;
    }

    .species-detail__stats {
        grid-template-columns: 1fr 1fr;
    }

    .species-detail__stats dt {
        font-size: 0.6rem;
    }

    .species-detail__stats dd {
        font-size: 0.8rem;
    }

    .species-detail__desc {
        font-size: 0.8rem;
    }

    .species-list__header {
        padding: var(--space-xs) var(--space-sm);
    }

    .species-list__item.detail-open .species-detail__inner {
        padding: var(--space-md) var(--space-sm);
    }

    /* ---- Biomes Small ---- */
    .world__biomes {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .biome-panel {
        min-height: 220px;
    }

    /* ---- Progress Small ---- */
    .progress__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card__value {
        font-size: 1.5rem;
    }

    .progress-bar {
        padding: var(--space-sm) var(--space-md);
    }

    /* ---- Server Status Small ---- */
    .server-card {
        padding: var(--space-md);
    }

    .servers__note {
        font-size: 0.75rem;
    }

    /* ---- FAQ Small ---- */
    .faq-item__question {
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-sm);
        font-size: 0.9rem;
    }

    .faq-item__answer-inner p {
        padding: 0 var(--space-md) var(--space-md);
        font-size: 0.8rem;
    }

    .faq-item__icon {
        width: 16px;
        height: 16px;
    }

    /* ---- Community Small ---- */
    .community__links {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .community-link {
        flex-direction: row;
        text-align: left;
        gap: var(--space-sm);
        padding: var(--space-md);
    }

    .community-link__icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    .community-link__desc {
        display: none;
    }

    /* ---- Support / Patreon Small ---- */
    .support__card {
        padding: var(--space-lg);
    }

    .support__icon {
        width: 44px;
        height: 44px;
    }

    .support__desc {
        font-size: var(--fs-small);
    }

    .btn--patreon {
        padding: 0.85rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }

    /* ---- Music Control Small ---- */
    .music-control {
        bottom: var(--space-md);
        right: var(--space-md);
    }

    .music-control__toggle {
        width: 36px;
        height: 36px;
    }

    .music-control__icon {
        width: 16px;
        height: 16px;
    }

    .music-control:hover .music-control__volume,
    .music-control.playing .music-control__volume {
        width: 70px;
    }

    /* ---- Newsletter Small ---- */
    .newsletter__form {
        flex-direction: column;
    }

    .newsletter__form .btn {
        width: 100%;
        justify-content: center;
    }

    /* ---- Footer Small ---- */
    .footer__links ul {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .footer__bottom p {
        font-size: 0.7rem;
    }
}

/* Extra small mobile (360px) */
@media (max-width: 360px) {
    :root {
        --container-pad: 0.75rem;
    }

    .hero__content {
        padding: var(--space-sm);
    }

    .hero__title {
        letter-spacing: 0.05em;
    }

    .hero__actions .btn {
        max-width: 100%;
        padding: 0.85rem 1rem;
        font-size: 0.8rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: var(--space-xs) var(--space-md);
    }

    .section__title {
        font-size: 1.5rem;
    }

    /* ---- Features 360 ---- */
    .feature-card__content {
        padding: var(--space-sm);
    }

    .feature-card__title {
        font-size: 1rem;
    }

    /* ---- Species 360 ---- */
    .species-groups {
        max-width: 100%;
    }

    .species-group__toggle {
        padding: var(--space-xs) var(--space-sm);
        gap: var(--space-sm);
    }

    .species-group__name {
        font-size: 0.85rem;
    }

    .species-list {
        padding: 0 var(--space-xs) var(--space-xs);
    }

    .species-list__header {
        padding: var(--space-xs);
        gap: var(--space-xs);
    }

    .species-list__name {
        font-size: 0.8rem;
    }

    .species-list__tag {
        font-size: 0.55rem;
        padding: 0.1rem 0.35rem;
    }

    .species-detail__image {
        height: 120px;
    }

    .species-list__item.detail-open .species-detail__inner {
        padding: var(--space-sm) var(--space-xs);
        gap: var(--space-sm);
    }

    .species-detail__stats {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }

    .species-detail__desc {
        font-size: 0.75rem;
    }

    /* ---- Biomes 360 ---- */
    .biome-panel {
        min-height: 180px;
    }

    /* ---- Progress 360 ---- */
    .stat-card {
        padding: var(--space-sm);
    }

    .stat-card__value {
        font-size: 1.3rem;
    }

    .progress-bar {
        padding: var(--space-sm);
    }

    /* ---- Server Status 360 ---- */
    .server-card {
        padding: var(--space-sm);
    }

    /* ---- FAQ 360 ---- */
    .faq-item__question {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.85rem;
    }

    .faq-item__answer-inner p {
        padding: 0 var(--space-sm) var(--space-sm);
        font-size: 0.75rem;
    }

    /* ---- Community 360 ---- */
    .community-link {
        padding: var(--space-sm);
    }

    /* ---- Support / Patreon 360 ---- */
    .support__card {
        padding: var(--space-md);
    }

    .support__perk {
        font-size: 0.75rem;
    }

    .btn--patreon {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    /* ---- Newsletter 360 ---- */
    .newsletter__form .btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    /* ---- Music Control 360 ---- */
    .music-control {
        bottom: var(--space-sm);
        right: var(--space-sm);
    }

    /* ---- Footer 360 ---- */
    .footer__content {
        padding: var(--space-md) 0;
    }

    .footer__bottom p {
        font-size: 0.65rem;
    }

    /* ---- Splash 360 ---- */
    .splash__title {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .splash__enter {
        padding: 0.85rem 2rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices - they cause sticky states */
    .feature-card:hover,
    .species-card:hover,
    .biome-panel:hover,
    .community-link:hover,
    .pillar-card:hover,
    .stat-card:hover,
    .progress-item:hover,
    .server-card:hover,
    .btn--patreon:hover {
        transform: none;
    }

    .faq-item__question:hover {
        color: var(--color-text-primary);
    }

    .faq-item.active .faq-item__question:hover {
        color: var(--color-amber);
    }

    .biome-panel:hover .biome-panel__visual {
        transform: none;
    }

    .species-card:hover .species-card__image img {
        transform: none;
    }

    .species-group:hover {
        border-color: var(--color-border);
    }

    .species-list__item:hover {
        background: none;
    }

    /* Ensure minimum touch targets (44x44px) */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn {
        min-height: 44px;
    }

    .social-icon {
        width: 44px;
        height: 44px;
    }

    .footer__links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* ============================================
   16. SECTION: DEVELOPMENT PROGRESS
   ============================================ */
.progress {
    background: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.progress__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

/* ---- Stat Cards ---- */
.stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    text-align: center;
    transition: transform 0.15s ease-out,
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    border-color: rgba(212, 165, 67, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 165, 67, 0.05);
}

.stat-card:hover .stat-card__value {
    text-shadow: 0 0 20px rgba(212, 165, 67, 0.3);
}

.stat-card__value {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: var(--fw-bold);
    color: var(--color-amber);
    margin-bottom: 0.25rem;
    transition: text-shadow 0.5s ease;
}

.stat-card__label {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--ls-label);
}

/* ---- Progress Bars ---- */
.progress__bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.progress-bar {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--space-md) var(--space-lg);
}

.progress-bar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.progress-bar__label {
    font-family: var(--font-heading);
    font-size: var(--fs-small);
    font-weight: var(--fw-bold);
    letter-spacing: 0.05em;
}

.progress-bar__pct {
    font-size: var(--fs-small);
    color: var(--color-amber);
    font-weight: var(--fw-bold);
}

.progress-bar__track {
    height: 8px;
    background: var(--color-bg-primary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    border-radius: 4px;
    position: relative;
    width: 0;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar__fill--stable   { background: linear-gradient(90deg, #2d6a4f, #40916c); }
.progress-bar__fill--active   { background: linear-gradient(90deg, #b45309, var(--color-amber)); }
.progress-bar__fill--pending  { background: linear-gradient(90deg, #b8860b, #d4a543); }
.progress-bar__fill--complete {
    background: linear-gradient(90deg, #d4a543, #f5d77a, #d4a543);
    box-shadow: 0 0 10px rgba(212, 165, 67, 0.5), 0 0 20px rgba(212, 165, 67, 0.2);
}
.progress-bar--complete .progress-bar__pct {
    color: #f5d77a;
    text-shadow: 0 0 8px rgba(245, 215, 122, 0.5);
}
.progress-bar--complete .progress-bar__label {
    color: #f5d77a;
}

/* ---- Milestones 3-Column Grid ---- */
.progress__milestones {
    margin-bottom: var(--space-lg);
}

.milestone-group__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
}

.milestone-group__title--completed { color: #40916c; }

.milestone-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xs);
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    padding: var(--space-xs);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.milestone-item:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateX(4px);
}

.milestone-item__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.milestone-item--completed .milestone-item__icon { color: #40916c; }

.milestone-item--completed:hover .milestone-item__icon {
    filter: drop-shadow(0 0 6px rgba(64, 145, 108, 0.4));
}

/* ---- LEGACY (kept for fallback) ---- */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 720px;
    margin: 0 auto var(--space-2xl);
}

.countdown-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.countdown-card:hover {
    border-color: var(--color-amber);
    transform: translateY(-4px);
}

.countdown-card__ring {
    position: relative;
    width: 110px;
    height: 110px;
}

.countdown-card__ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.countdown-card__track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 6;
}

.countdown-card__fill {
    fill: none;
    stroke: var(--color-amber);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.5s ease-out;
    filter: drop-shadow(0 0 6px rgba(212, 165, 67, 0.4));
}

.countdown-card__days {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: var(--fw-bold);
    color: var(--color-amber);
    line-height: 1;
}

.countdown-card__label {
    display: block;
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: var(--ls-label);
    line-height: 1.3;
}

.progress__categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.progress-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    transition: border-color var(--transition-normal);
}

.progress-item:hover {
    border-color: var(--color-border-subtle);
}

.progress-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.progress-item__name {
    font-weight: var(--fw-medium);
    color: var(--color-text-primary);
}

.progress-item__percent {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    color: var(--color-amber);
}

.progress-item__bar {
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.progress-item__fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-item__fill.stable { background: #22c55e; }
.progress-item__fill.active { background: var(--color-amber); }
.progress-item__fill.pending { background: #eab308; }
.progress-item__fill.critical { background: #ef4444; }
.progress-item__fill.not-started { background: var(--color-text-muted); }

.progress-item__desc {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
}

.progress__milestones {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.milestones__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: var(--ls-heading);
}

.milestones__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.milestone {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.milestone:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.milestone:first-child {
    padding-top: 0;
}

.milestone__date {
    font-size: var(--fs-small);
    color: var(--color-amber);
    text-transform: uppercase;
    letter-spacing: var(--ls-label);
    margin-bottom: 0.25rem;
}

.milestone__title {
    font-weight: var(--fw-medium);
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.milestone__desc {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
}

.progress__updated {
    text-align: center;
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

@media (min-width: 768px) {
    .progress__stats {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Bottom grid: Milestones + Upcoming Tasks side by side */
.progress__bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* ---- Upcoming Tasks ---- */
.progress__upcoming {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
}

.upcoming__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: var(--ls-heading);
}

.upcoming__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.upcoming-task {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.upcoming-task:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.upcoming-task:first-child {
    padding-top: 0;
}

.upcoming-task__priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    border: 1px solid;
    flex-shrink: 0;
    min-width: 60px;
    text-align: center;
}

.upcoming-task__priority--critical {
    color: #ef4444;
    border-color: #7f1d1d;
    background: rgba(239, 68, 68, 0.1);
}

.upcoming-task__priority--high {
    color: var(--color-amber);
    border-color: var(--color-amber-dark);
    background: rgba(212, 165, 67, 0.1);
}

.upcoming-task__priority--medium {
    color: #eab308;
    border-color: #713f12;
    background: rgba(234, 179, 8, 0.1);
}

.upcoming-task__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: var(--space-sm);
}

.upcoming-task__name {
    font-size: var(--fs-small);
    color: var(--color-text-primary);
    font-weight: var(--fw-medium);
}

.upcoming-task__est {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* ---- Critical Path ---- */
.progress__critical-path {
    margin-bottom: var(--space-lg);
}

.critical-path__timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.critical-path__phase {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    position: relative;
}

.critical-path__phase::after {
    content: '\2192';
    position: absolute;
    right: -1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.2rem;
}

.critical-path__phase:last-child::after {
    display: none;
}

.critical-path__days {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: var(--fw-bold);
    color: var(--color-amber);
    line-height: 1.2;
    margin-bottom: var(--space-xs);
}

.critical-path__label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.critical-path__blockers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius);
}

.critical-path__blockers-label {
    font-size: var(--fs-small);
    font-weight: var(--fw-bold);
    color: #ef4444;
    margin-right: var(--space-xs);
}

.critical-path__blocker {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 3px;
}

/* ============================================
   17. SECTION: SERVER STATUS
   ============================================ */
.servers {
    background: var(--color-bg-primary);
}

.servers__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.server-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    transition: transform 0.15s ease-out,
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.server-card:hover {
    border-color: rgba(212, 165, 67, 0.3);
}

.server-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.server-card__name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: var(--fw-bold);
    color: var(--color-text-primary);
}

.server-card__status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: var(--ls-label);
}

.server-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.server-card__dot--online {
    background: #40916c;
    box-shadow: 0 0 8px rgba(64, 145, 108, 0.5);
    animation: serverOnlinePulse 2s infinite;
}

.server-card__dot--offline {
    background: #666;
    animation: none;
}

.server-card__dot--checking {
    background: var(--color-text-muted);
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes serverOnlinePulse {
    0%, 100% { box-shadow: 0 0 4px rgba(64, 145, 108, 0.4); }
    50%      { box-shadow: 0 0 12px rgba(64, 145, 108, 0.7), 0 0 24px rgba(64, 145, 108, 0.3); }
}

.server-card__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
}

.server-card__detail-label {
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--ls-label);
    font-size: 0.65rem;
}

.server-card__detail-value {
    color: var(--color-text-primary);
    font-weight: var(--fw-medium);
    font-size: var(--fs-small);
}

.servers__footer {
    text-align: center;
    margin-top: var(--space-lg);
}

.servers__refresh {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
}

.servers__refresh-btn {
    color: var(--color-amber);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
}

.servers__refresh-btn:hover {
    color: var(--color-amber-light, #f4d03f);
}

.servers__note {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: var(--space-sm);
}

/* ============================================
   18. SECTION: FAQ
   ============================================ */
.faq {
    background: var(--color-bg-secondary);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-normal);
}

.faq-item.active {
    border-color: var(--color-amber-dark);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    width: 100%;
    padding: var(--space-lg);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    font-weight: var(--fw-bold);
    color: var(--color-text-primary);
    letter-spacing: 0.03em;
    transition: color var(--transition-fast);
}

.faq-item__question:hover {
    color: var(--color-amber);
}

.faq-item__question:focus-visible {
    outline: 2px solid var(--color-amber);
    outline-offset: -2px;
    border-radius: var(--border-radius-lg);
}

.faq-item.active .faq-item__question {
    color: var(--color-amber);
}

.faq-item__text {
    flex: 1;
}

.faq-item__icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-amber);
    transition: transform var(--transition-normal);
}

.faq-item__icon svg {
    width: 100%;
    height: 100%;
}

.faq-item.active .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--transition-slow);
}

.faq-item.active .faq-item__answer {
    grid-template-rows: 1fr;
}

.faq-item__answer-inner {
    overflow: hidden;
}

.faq-item__answer-inner p {
    padding: 0 var(--space-lg) var(--space-lg);
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ============================================
   19. SECTION: BACKGROUND MUSIC CONTROL
   ============================================ */
.music-control {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 6px 6px 6px 6px;
    transition: border-color var(--transition-normal),
                box-shadow var(--transition-normal);
}

.music-control:hover {
    border-color: var(--color-amber-dark);
    box-shadow: 0 0 20px rgba(212, 165, 67, 0.1);
}

.music-control__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-amber);
    border: none;
    cursor: pointer;
    color: var(--color-bg-primary);
    flex-shrink: 0;
    transition: background var(--transition-fast),
                transform var(--transition-fast),
                box-shadow var(--transition-fast);
}

.music-control__toggle:hover {
    background: var(--color-amber-light);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--color-amber-glow);
}

.music-control__toggle:active {
    transform: scale(0.95);
}

.music-control__icon {
    width: 18px;
    height: 18px;
}

.music-control__icon--pause {
    display: none;
}

.music-control.playing .music-control__icon--play {
    display: none;
}

.music-control.playing .music-control__icon--pause {
    display: block;
}

/* Volume slider container */
.music-control__volume {
    display: flex;
    align-items: center;
    width: 0;
    overflow: hidden;
    transition: width var(--transition-normal),
                padding var(--transition-normal);
}

.music-control:hover .music-control__volume,
.music-control.playing .music-control__volume {
    width: 90px;
    padding-right: 10px;
}

/* Custom range slider */
.music-control__slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--color-border);
    outline: none;
    cursor: pointer;
}

.music-control__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-amber);
    cursor: pointer;
    border: none;
    transition: box-shadow var(--transition-fast);
}

.music-control__slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 8px var(--color-amber-glow);
}

.music-control__slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-amber);
    cursor: pointer;
    border: none;
}

.music-control__slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: var(--color-border);
}

/* ============================================
   SAFE AREA (notch/home indicator) SUPPORT
   ============================================ */
@supports (padding: env(safe-area-inset-bottom)) {
    .site-footer {
        padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom));
    }

    .hero {
        padding-top: env(safe-area-inset-top);
    }

    .nav-container {
        padding-left: calc(var(--container-pad) + env(safe-area-inset-left));
        padding-right: calc(var(--container-pad) + env(safe-area-inset-right));
    }
}
