/* Production: minify with csso (npm i -g csso-cli) before deploy — see website/build.sh */
/* ============================================
   МИР ЭРДМАРА — v9 "Frozen Horror"
   Three.js 3D + glass panels + icy palette
   The Thing + Frostpunk + Lovecraft
   ============================================ */

:root {
    /* ─── Depth palette — polar night ─── */
    --void:     #020408;
    --abyss:    #040812;
    --murk:     #081018;
    --deep:     #0c1420;
    --surface:  #101c2a;
    --raised:   #142232;

    /* ─── Accent: ice ─── */
    --ice:        #4a9abb;
    --ice-bright: #6ec0e0;
    --ice-dim:    rgba(74, 154, 187, 0.12);
    --ice-glow:   rgba(74, 154, 187, 0.35);
    --ice-faint:  rgba(74, 154, 187, 0.06);

    /* ─── Accent: blood — danger only ─── */
    --blood:       #8b2020;
    --blood-bright:#cc2020;
    --blood-glow:  rgba(140, 32, 32, 0.3);

    /* ─── Accent: abyss purple — Depths ─── */
    --purple:      #3a2060;
    --purple-glow: rgba(80, 40, 120, 0.2);

    --frost:       #3a7a9b;
    --bone:        #c8d0d8;

    /* ─── Seam borders ─── */
    --seam:        rgba(74, 154, 187, 0.06);
    --seam-bright: rgba(74, 154, 187, 0.15);
    --seam-active: rgba(74, 154, 187, 0.3);

    /* ─── Text: cool tinted ─── */
    --text:        #8898a8;
    --text-mid:    #586878;
    --text-dim:    #405060;
    --text-faint:  #202a30;
    --text-bright: #c0d0d8;
    --text-heading:#b8c8d0;

    /* ─── Fonts ─── */
    --font-display: 'Cinzel', serif;
    --font-body:    'Cormorant Garamond', serif;
    --font-ui:      'Inter', sans-serif;
    --font-code:    'Source Code Pro', monospace;

    --nav-h: 56px;
}

/* ═══ RESET ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--void);
    color: var(--text);
    font-size: 18px;
    line-height: 1.8;
    overflow-x: hidden;
}

::selection { background: rgba(74, 154, 187, 0.2); color: #fff; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: rgba(74, 154, 187, 0.15); border-radius: 2px; }

a { color: var(--ice); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--ice-bright); text-shadow: 0 0 12px var(--ice-glow); }
img { max-width: 100%; height: auto; }
strong { color: var(--text-bright); }

/* ════════════════════════════════════════════
   OVERLAY STACK — 7 layers of atmosphere
   ════════════════════════════════════════════ */

#fog-canvas {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    opacity: 0.7;
}

.overlay-grain {
    position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
    animation: grain 0.3s steps(3) infinite;
}
@keyframes grain {
    0% { transform: translate(0); }
    33% { transform: translate(-1px, 2px); }
    66% { transform: translate(2px, -1px); }
}

.overlay-scanlines {
    position: fixed; inset: 0; z-index: 9999; pointer-events: none;
    background: repeating-linear-gradient(0deg,
        transparent, transparent 2px,
        rgba(0, 0, 0, 0.12) 2px, rgba(0, 0, 0, 0.12) 4px
    );
}

.overlay-vignette {
    position: fixed; inset: 0; z-index: 9997; pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(2, 4, 8, 0.8) 100%);
}

.overlay-vhs-track {
    position: fixed; left: 0; right: 0; height: 3px; z-index: 9996; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.06) 70%, transparent);
    opacity: 0;
}

.shadow-flash {
    position: fixed; inset: 0; z-index: 9992; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.4) 70%, transparent);
    opacity: 0; transform: translateX(-120%);
}

#cursor-trail, #watching-eyes { position: fixed; inset: 0; pointer-events: none; }
#cursor-trail { z-index: 9994; }
#watching-eyes { z-index: 9993; }

.rec-indicator {
    position: fixed; top: 16px; right: 20px; z-index: 10000;
    font-family: var(--font-code); font-size: 10px; color: var(--blood);
    letter-spacing: 0.15em; display: flex; align-items: center; gap: 6px; pointer-events: none;
    text-shadow: 0 0 8px var(--blood-glow);
}
.rec-dot {
    width: 5px; height: 5px; background: var(--blood); border-radius: 50%;
    animation: blink 1.5s ease infinite; box-shadow: 0 0 6px var(--blood-glow);
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.1; } }

.timestamp {
    position: fixed; bottom: 16px; right: 20px; z-index: 10000;
    font-family: var(--font-code); font-size: 10px; color: var(--text-faint);
    letter-spacing: 0.1em; pointer-events: none;
}

/* ════════════════════════════════════════════
   AMBIENT GLOW
   ════════════════════════════════════════════ */
.ambient-glow {
    position: absolute; border-radius: 50%;
    filter: blur(100px); pointer-events: none;
    animation: breathe 12s ease-in-out infinite;
}
.ambient-glow--ice {
    background: radial-gradient(circle, rgba(74, 154, 187, 0.2), rgba(74, 154, 187, 0.04) 50%, transparent 70%);
}
.ambient-glow--red {
    background: radial-gradient(circle, rgba(140, 32, 32, 0.25), rgba(140, 32, 32, 0.06) 50%, transparent 70%);
}
.ambient-glow--purple {
    background: radial-gradient(circle, rgba(80, 40, 120, 0.2), rgba(80, 40, 120, 0.05) 50%, transparent 70%);
}
@keyframes breathe {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.12); }
}

/* ════════════════════════════════════════════
   GLASS PANELS — semi-transparent, depth
   ════════════════════════════════════════════ */

.panel {
    background: linear-gradient(160deg,
        rgba(14, 22, 32, 0.88) 0%,
        rgba(8, 14, 22, 0.85) 100%
    );
    border: 1px solid var(--seam);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.6),
        0 4px 24px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(74, 154, 187, 0.04),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    transition: all 0.4s;
    position: relative;
}
.panel:hover {
    border-color: var(--seam-bright);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.6),
        0 8px 40px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(74, 154, 187, 0.03),
        inset 0 1px 0 rgba(74, 154, 187, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Corner rivets */
.panel::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background:
        radial-gradient(circle 2px at 8px 8px, rgba(74,154,187,0.15) 50%, transparent 50%),
        radial-gradient(circle 2px at calc(100% - 8px) 8px, rgba(74,154,187,0.15) 50%, transparent 50%),
        radial-gradient(circle 2px at 8px calc(100% - 8px), rgba(74,154,187,0.15) 50%, transparent 50%),
        radial-gradient(circle 2px at calc(100% - 8px) calc(100% - 8px), rgba(74,154,187,0.15) 50%, transparent 50%);
}

/* Gothic panel — corner brackets */
.gothic-panel {
    background: linear-gradient(160deg,
        rgba(14, 22, 32, 0.92) 0%,
        rgba(8, 14, 22, 0.88) 100%
    );
    border: 1px solid var(--seam);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.6),
        0 4px 24px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(74, 154, 187, 0.04);
    backdrop-filter: blur(16px);
    padding: 2.5rem; transition: 0.4s;
    position: relative;
}
.gothic-panel::after {
    content: ''; position: absolute; inset: -1px; pointer-events: none;
    background:
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 0 / 14px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 0 / 1px 14px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 0 / 14px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 0 / 1px 14px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 100% / 14px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 100% / 1px 14px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 100% / 14px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 100% / 1px 14px;
    opacity: 0.2; transition: opacity 0.4s;
}
.gothic-panel:hover { border-color: var(--seam-bright); }
.gothic-panel:hover::after { opacity: 0.4; }

/* Dark panel */
.dark-panel {
    background: linear-gradient(160deg,
        rgba(12, 18, 26, 0.85) 0%,
        rgba(6, 10, 18, 0.82) 100%
    );
    border: 1px solid var(--seam);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.5),
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(74, 154, 187, 0.03);
    backdrop-filter: blur(10px);
    padding: 2rem; transition: 0.3s;
}
.dark-panel:hover { border-color: var(--seam-bright); }

/* ════════════════════════════════════════════
   NAVIGATION — glass bar
   ════════════════════════════════════════════ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
    background: rgba(2, 4, 8, 0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--seam);
    box-shadow: 0 1px 0 rgba(74,154,187,0.04), 0 4px 20px rgba(0,0,0,0.4);
    z-index: 1000; display: flex; align-items: center;
}
.nav::after {
    content: ''; position: absolute; bottom: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74,154,187,0.12), transparent);
}
.nav .container {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px;
}

.nav-logo {
    font-family: var(--font-display); font-size: 14px; font-weight: 700;
    color: var(--ice); letter-spacing: 0.3em; text-transform: uppercase;
    text-shadow: 0 0 16px rgba(74, 154, 187, 0.2); text-decoration: none;
    flex-shrink: 0;
}

.nav-links { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav-item { position: relative; }
.nav-item > a {
    font-family: var(--font-ui); font-size: 11px; font-weight: 400;
    color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em;
    text-decoration: none; transition: 0.3s;
    padding: 18px 14px; display: flex; align-items: center; gap: 5px;
}
.nav-item > a:hover,
.nav-item:hover > a { color: var(--ice); text-shadow: 0 0 8px rgba(74,154,187,0.15); }
.nav-item > a.active { color: var(--ice); }

.nav-arrow { font-size: 7px; opacity: 0.3; transition: 0.3s; display: inline-block; }
.nav-item:hover .nav-arrow { opacity: 0.7; transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    min-width: 200px; padding: 8px 0;
    background: rgba(4, 8, 18, 0.95);
    backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid var(--seam);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.4);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateX(-50%) translateY(8px);
    z-index: 1001;
}
.nav-dropdown::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav-item:hover .nav-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown::after {
    content: ''; position: absolute; top: 0; left: 16px; right: 16px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74,154,187,0.12), transparent);
}
.nav-dropdown a {
    display: block; padding: 8px 20px;
    font-family: var(--font-ui); font-size: 12px; font-weight: 300;
    color: var(--text-dim); text-decoration: none; letter-spacing: 0.04em;
    transition: all 0.2s; position: relative; text-shadow: none;
}
.nav-dropdown a:hover {
    color: var(--ice); background: rgba(74,154,187,0.04);
    padding-left: 24px;
}
.nav-dropdown a:hover::before {
    content: ''; position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 3px; background: var(--ice); border-radius: 50%;
    box-shadow: 0 0 6px rgba(74,154,187,0.3);
}
.nav-dropdown-sep {
    height: 1px; margin: 6px 16px;
    background: linear-gradient(90deg, transparent, var(--seam), transparent);
}
.nav-dropdown-label {
    font-family: var(--font-code); font-size: 9px; font-weight: 400;
    color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.15em;
    padding: 8px 20px 4px; pointer-events: none;
}

.nav-cta {
    font-family: var(--font-display); font-size: 10px; font-weight: 700;
    color: var(--ice); text-transform: uppercase; letter-spacing: 0.15em;
    text-decoration: none; padding: 8px 20px;
    border: 1px solid rgba(74,154,187,0.2);
    transition: all 0.3s; margin-left: 12px;
    text-shadow: 0 0 8px rgba(74,154,187,0.15);
}
.nav-cta:hover {
    border-color: var(--ice); background: rgba(74,154,187,0.06);
    box-shadow: 0 0 20px rgba(74,154,187,0.08);
}

.nav-toggle { display: none; background: none; border: none; color: var(--ice); font-size: 20px; cursor: pointer; }
.nav-overlay { display: none; }

/* ═══ CONTAINER ═══ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ════════════════════════════════════════════
   HERO — full screen with 3D scene behind
   ════════════════════════════════════════════ */
.hero {
    position: relative; min-height: 100vh; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}

/* 3D scene canvas — fixed behind everything */
.hero-scene-canvas {
    position: fixed; inset: 0; z-index: 0;
    width: 100% !important; height: 100% !important;
    transition: opacity 0.3s;
}

/* Page-specific 3D scene canvas (inner pages) */
.page-scene-canvas {
    position: fixed; inset: 0; z-index: 0;
    width: 100% !important; height: 100% !important;
    pointer-events: none;
}

/* Gradient overlay for text readability */
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg,
        rgba(2, 4, 8, 0.1) 0%,
        rgba(2, 4, 8, 0.0) 20%,
        rgba(2, 4, 8, 0.05) 50%,
        rgba(2, 4, 8, 0.4) 85%,
        rgba(2, 4, 8, 0.9) 100%
    );
    pointer-events: none;
}

.hero-content { position: relative; z-index: 10; padding: 40px 20px; }

.hero-subtitle {
    font-family: var(--font-code); font-size: 11px; font-weight: 300;
    color: var(--text-dim); letter-spacing: 0.5em; text-transform: uppercase;
    margin-bottom: 32px;
    opacity: 0; animation: rise 1s ease 0.3s forwards;
}
.hero-title {
    font-family: var(--font-display); font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 900; color: var(--text-heading);
    letter-spacing: 0.12em; text-transform: uppercase;
    line-height: 1.1; margin-bottom: 28px;
    opacity: 0; animation: rise 1.2s ease 0.6s forwards;
    text-shadow: 0 2px 60px rgba(0,0,0,0.8);
}
.hero-title span {
    color: var(--ice);
    text-shadow:
        0 0 7px rgba(74, 154, 187, 0.7),
        0 0 20px rgba(74, 154, 187, 0.4),
        0 0 40px rgba(74, 154, 187, 0.2),
        0 0 80px rgba(74, 154, 187, 0.1);
    animation: title-glow 6s ease-in-out infinite;
}
@keyframes title-glow {
    0%, 100% { text-shadow: 0 0 7px rgba(74,154,187,0.6), 0 0 20px rgba(74,154,187,0.3), 0 0 40px rgba(74,154,187,0.15); }
    50% { text-shadow: 0 0 10px rgba(74,154,187,0.8), 0 0 30px rgba(74,154,187,0.5), 0 0 60px rgba(74,154,187,0.25), 0 0 100px rgba(74,154,187,0.1); }
}

.hero-tagline {
    font-family: var(--font-body); font-size: 21px; font-style: italic;
    color: var(--text-mid); max-width: 500px; margin: 0 auto 52px;
    opacity: 0; animation: rise 1s ease 1s forwards;
}
.hero-cta {
    display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
    opacity: 0; animation: rise 0.8s ease 1.3s forwards;
}
.hero-scroll {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    font-family: var(--font-ui); font-size: 9px; color: var(--text-faint);
    letter-spacing: 0.3em; text-transform: uppercase;
    animation: pulse-down 2.5s ease-in-out infinite; z-index: 10;
}
.hero-scroll::after {
    content: ''; display: block; width: 1px; height: 40px;
    background: linear-gradient(180deg, var(--text-faint), transparent);
    margin: 12px auto 0;
}

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-down { 0%,100% { opacity: 0.2; transform: translateX(-50%) translateY(0); } 50% { opacity: 0.5; transform: translateX(-50%) translateY(10px); } }

/* ════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════ */
.btn {
    font-family: var(--font-display); font-size: 12px; font-weight: 700;
    padding: 16px 44px;
    border: 1px solid var(--seam);
    background: linear-gradient(160deg, rgba(14,22,32,0.6), rgba(8,14,22,0.5));
    backdrop-filter: blur(8px);
    color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.2em;
    cursor: pointer; transition: all 0.4s; text-decoration: none; display: inline-block;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(74,154,187,0.03);
}
.btn::before, .btn::after {
    content: ''; position: absolute; width: 10px; height: 10px; transition: 0.4s;
}
.btn::before { top: -2px; left: -2px; border-top: 1px solid var(--ice); border-left: 1px solid var(--ice); opacity: 0.15; }
.btn::after { bottom: -2px; right: -2px; border-bottom: 1px solid var(--ice); border-right: 1px solid var(--ice); opacity: 0.15; }

.btn:hover {
    border-color: var(--seam-bright); color: var(--ice);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 20px rgba(74,154,187,0.05), inset 0 1px 0 rgba(74,154,187,0.06);
    text-shadow: 0 0 10px rgba(74,154,187,0.2);
}
.btn:hover::before, .btn:hover::after { opacity: 0.4; }

.btn-primary {
    border-color: rgba(74,154,187,0.2); color: var(--ice);
    background: linear-gradient(160deg, rgba(74,154,187,0.08), rgba(14,22,32,0.7));
    box-shadow: 0 2px 16px rgba(0,0,0,0.3), 0 0 12px rgba(74,154,187,0.04);
}
.btn-primary:hover {
    background: linear-gradient(160deg, rgba(74,154,187,0.12), rgba(14,22,32,0.8));
    color: var(--ice-bright);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 30px rgba(74,154,187,0.08);
}

.btn-blood { border-color: rgba(140,32,32,0.2); color: var(--blood); }
.btn-blood:hover {
    border-color: rgba(140,32,32,0.4); box-shadow: 0 0 25px var(--blood-glow);
    text-shadow: 0 0 10px var(--blood-glow);
}
.btn-blood::before { border-color: var(--blood); }
.btn-blood::after { border-color: var(--blood); }

.btn-download {
    border-color: rgba(74,154,187,0.25); color: var(--ice-bright);
    background: linear-gradient(160deg, rgba(74,154,187,0.1), rgba(14,22,32,0.8));
    box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 20px rgba(74,154,187,0.06);
    font-size: 14px; padding: 18px 56px;
}
.btn-download:hover {
    background: linear-gradient(160deg, rgba(74,154,187,0.16), rgba(14,22,32,0.85));
    color: #fff;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 40px rgba(74,154,187,0.1), 0 0 80px rgba(74,154,187,0.04);
    border-color: var(--ice);
}

/* ════════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════════ */
.section {
    position: relative; padding: 120px 0; overflow: hidden; z-index: 2;
    background: rgba(2, 4, 8, 0.93);
}
.section-dark { background: rgba(2, 4, 8, 0.97); }
.section-blood { background: rgba(2, 4, 8, 0.93); }
.section-blood::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 50% 30%, rgba(140,32,32,0.05) 0%, transparent 60%);
}

/* Section with 3D scene behind */
.section-scene { position: relative; }
.scene-wrapper {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.section-scene-canvas {
    width: 100% !important; height: 100% !important;
    display: block;
}
.section-scene > .container { position: relative; z-index: 10; }

.section-header { text-align: center; margin-bottom: 72px; }
.section-header h2 {
    font-family: var(--font-display); font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 700; color: var(--text-heading);
    letter-spacing: 0.12em; text-transform: uppercase;
    text-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.section-header h2::after {
    content: ''; display: block; width: 60px; height: 1px; margin: 24px auto 0;
    background: linear-gradient(90deg, transparent, var(--ice), transparent);
    box-shadow: 0 0 12px var(--ice-glow);
}
.section-header p {
    font-family: var(--font-body); font-size: 19px; font-style: italic;
    color: var(--text-mid); max-width: 600px; margin: 16px auto 0;
}

/* ═══ DIVIDERS ═══ */
.divider {
    display: flex; align-items: center; justify-content: center;
    padding: 64px 32px; user-select: none;
    position: relative; z-index: 2; background: rgba(2, 4, 8, 0.93);
}
.divider::before, .divider::after { content: ''; flex: 1; max-width: 160px; height: 1px; }
.divider::before { background: linear-gradient(90deg, transparent, rgba(74,154,187,0.1)); margin-right: 20px; }
.divider::after { background: linear-gradient(270deg, transparent, rgba(74,154,187,0.1)); margin-left: 20px; }
.divider-gem {
    width: 6px; height: 6px; background: var(--ice); transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(74,154,187,0.3), 0 0 20px rgba(74,154,187,0.1);
}
.divider-tall { padding: 96px 32px; }

/* ═══ VOID BREAK ═══ */
.void-break { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; background: rgba(2, 4, 8, 0.93); }
.void-break-tall { height: 300px; }
.void-break .whisper { font-family: var(--font-body); font-style: italic; font-size: 16px; color: rgba(74, 154, 187, 0.03); letter-spacing: 0.25em; user-select: none; }
.void-break .whisper:hover { color: rgba(74, 154, 187, 0.1); transition: color 3s; }

/* ═══ PROSE & BLOCKQUOTE ═══ */
.prose { max-width: 800px; margin: 0 auto; padding: 0 32px; }
.prose p { margin-bottom: 1.5em; font-size: 18px; line-height: 1.9; }

blockquote {
    position: relative; margin: 48px auto; max-width: 800px;
    padding: 32px 40px 32px 48px;
    border-left: 2px solid var(--ice);
    background: linear-gradient(160deg, rgba(74,154,187,0.03), rgba(8,14,22,0.5));
    backdrop-filter: blur(6px);
    font-style: italic; font-size: 19px; line-height: 1.8;
}
blockquote::before {
    content: '\201C'; position: absolute; top: 8px; left: 16px;
    font-family: var(--font-display); font-size: 48px; color: var(--ice); opacity: 0.12;
}
blockquote cite {
    display: block; margin-top: 16px; font-family: var(--font-code);
    font-size: 12px; font-style: normal; color: var(--text-faint); letter-spacing: 0.06em;
}
blockquote cite::before { content: '\2014\00a0'; }
blockquote.blood { border-left-color: var(--blood); background: linear-gradient(160deg, rgba(140,32,32,0.03), rgba(8,14,22,0.5)); }
blockquote.blood::before { color: var(--blood); }
blockquote.frost { border-left-color: var(--frost); background: linear-gradient(160deg, rgba(58,122,155,0.03), rgba(8,14,22,0.5)); }
blockquote.frost::before { color: var(--frost); }

/* ════════════════════════════════════════════
   FEATURE CARDS
   ════════════════════════════════════════════ */
.features-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin: 48px 0; }

.feature-card {
    background: linear-gradient(160deg, rgba(14,22,32,0.85), rgba(8,14,22,0.8));
    border: 1px solid var(--seam);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(74,154,187,0.03);
    backdrop-filter: blur(10px);
    padding: 32px 24px; transition: all 0.4s; position: relative;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74,154,187,0.1), transparent);
    opacity: 0; transition: opacity 0.4s;
}
.feature-card:hover {
    border-color: var(--seam-bright); transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(74,154,187,0.03), inset 0 1px 0 rgba(74,154,187,0.06);
}
.feature-card:hover::before { opacity: 1; }
.feature-card h3 {
    font-family: var(--font-display); font-size: 15px; font-weight: 700;
    color: var(--text-heading); letter-spacing: 0.06em; margin-bottom: 12px;
}
.feature-card p { font-size: 15px; line-height: 1.7; margin: 0; color: var(--text-mid); }

/* ════════════════════════════════════════════
   ENTITY TEASERS
   ════════════════════════════════════════════ */
.entity-teaser-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.entity-teaser {
    background: linear-gradient(160deg, rgba(12,18,26,0.85), rgba(6,10,18,0.82));
    border: 1px solid var(--seam);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(74,154,187,0.03);
    backdrop-filter: blur(10px);
    padding: 28px 24px; transition: 0.4s;
}
.entity-teaser:hover { border-color: rgba(140,32,32,0.15); box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 8px 32px rgba(0,0,0,0.5), 0 0 12px rgba(140,32,32,0.04); }
.entity-teaser-label {
    font-family: var(--font-code); font-size: 10px; color: var(--blood);
    letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 8px;
    text-shadow: 0 0 6px var(--blood-glow);
}
.entity-teaser h3 {
    font-family: var(--font-display); font-size: 18px; font-weight: 700;
    color: var(--text-heading); letter-spacing: 0.06em; margin-bottom: 8px;
}
.entity-teaser p { font-size: 15px; line-height: 1.7; margin: 0; color: var(--text-mid); }

/* ════════════════════════════════════════════
   CONNECT / DOWNLOAD BLOCK
   ════════════════════════════════════════════ */
.connect-block {
    position: relative;
    background: linear-gradient(160deg, rgba(14,22,32,0.92), rgba(8,14,22,0.88));
    border: 1px solid var(--seam-bright);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.6),
        0 8px 40px rgba(0,0,0,0.5),
        0 0 30px rgba(74,154,187,0.03),
        inset 0 1px 0 rgba(74,154,187,0.05);
    backdrop-filter: blur(16px);
    padding: 64px 48px; text-align: center; max-width: 650px; margin: 0 auto;
}
.connect-block::after {
    content: ''; position: absolute; inset: -1px; pointer-events: none;
    background:
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 0 / 18px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 0 / 1px 18px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 0 / 18px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 0 / 1px 18px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 100% / 18px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 100% / 1px 18px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 100% / 18px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 100% / 1px 18px;
    opacity: 0.2;
}
.connect-block h3 {
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
    color: var(--text-heading); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px;
}
.connect-block .connect-desc {
    font-size: 17px; color: var(--text-mid); font-style: italic;
    margin-bottom: 36px; line-height: 1.7;
}
.connect-version { font-family: var(--font-code); font-size: 12px; color: var(--text-faint); margin-top: 20px; letter-spacing: 0.06em; }
.connect-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.connect-link {
    font-family: var(--font-display); font-size: 12px; padding: 10px 24px;
    border: 1px solid var(--seam); color: var(--text-dim);
    background: linear-gradient(160deg, rgba(14,22,32,0.5), rgba(8,14,22,0.4));
    backdrop-filter: blur(6px);
    text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase; transition: 0.3s;
}
.connect-link:hover { border-color: var(--seam-bright); color: var(--ice); box-shadow: 0 0 16px rgba(74,154,187,0.05); }

/* ═══ FOOTER ═══ */
.footer {
    padding: 48px 0 32px; text-align: center;
    background: var(--void); position: relative; z-index: 2;
    border-top: 1px solid var(--seam);
}
.footer::before {
    content: ''; display: block; width: 40%; max-width: 300px; height: 1px; margin: 0 auto 32px;
    background: linear-gradient(90deg, transparent, rgba(74,154,187,0.08), transparent);
}
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-ui); font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; text-shadow: none; }
.footer-links a:hover { color: var(--ice); }
.footer-copy { font-family: var(--font-code); font-size: 10px; color: var(--text-faint); letter-spacing: 0.05em; }

/* ═══ SCROLL ANIMATIONS ═══ */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.9s ease, transform 0.9s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

body.depth-1 { --void: #020307; }
body.depth-2 { --void: #010205; }
body.depth-3 { --void: #000103; }

/* ═══ REDACTED ═══ */
.redacted { background: var(--text-faint); color: transparent; padding: 0 4px; cursor: pointer; transition: 0.2s; user-select: none; }
.redacted:hover { background: var(--blood); color: #fff; text-shadow: 0 0 6px var(--blood-glow); animation: glitch 0.3s; }
@keyframes glitch { 20% { transform: translateX(-2px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-1px); } 80% { transform: translateX(2px); } }

/* ════════════════════════════════════════════
   VARIABLE ALIASES — for legacy HTML references
   ════════════════════════════════════════════ */
:root {
    --accent-red: var(--blood);
    --accent-red-dark: var(--blood);
    --accent-red-bright: var(--blood-bright);
    --bg-primary: var(--void);
    --border-accent: var(--seam-bright);
    --border-color: var(--seam);
    --text-secondary: var(--text);
    --text-muted: var(--text-dim);
    --font-mono: var(--font-code);
}

/* ════════════════════════════════════════════
   PAGE HEADER — shared across all internal pages
   ════════════════════════════════════════════ */
.page-header {
    padding: calc(var(--nav-h) + 80px) 0 80px;
    text-align: center;
    background: transparent;
    border-bottom: 1px solid var(--seam);
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(74, 154, 187, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: header-glow 8s ease-in-out infinite;
}
@keyframes header-glow {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.15); }
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 900;
    color: var(--text-heading);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    margin-bottom: 12px;
    position: relative;
}
.page-header p {
    font-family: var(--font-body);
    font-size: 18px;
    font-style: italic;
    color: var(--text-mid);
    letter-spacing: 0.04em;
    position: relative;
}

/* ════════════════════════════════════════════
   WIKI STYLES — lore.html
   ════════════════════════════════════════════ */

/* Infobox — floating sidebar panel */
.wiki-infobox {
    float: right;
    width: 280px;
    margin: 0 0 24px 32px;
    background: linear-gradient(160deg, rgba(14, 22, 32, 0.92), rgba(8, 14, 22, 0.88));
    border: 1px solid var(--seam);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(74,154,187,0.04);
    backdrop-filter: blur(12px);
    position: relative;
}
/* Corner brackets */
.wiki-infobox::after {
    content: '';
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background:
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 0 / 12px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 0 / 1px 12px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 0 / 12px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 0 / 1px 12px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 100% / 12px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 100% / 1px 12px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 100% / 12px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 100% / 1px 12px;
    opacity: 0.15;
    transition: opacity 0.4s;
}
.wiki-infobox:hover::after { opacity: 0.35; }
.wiki-infobox-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--seam);
    background: linear-gradient(160deg, rgba(74,154,187,0.04), transparent);
}
.wiki-infobox-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 20px;
    border-bottom: 1px solid rgba(74,154,187,0.03);
    font-size: 14px;
}
.wiki-infobox-row:last-child { border-bottom: none; }
.wiki-infobox-label {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    margin-right: 12px;
}
.wiki-infobox-val {
    font-family: var(--font-body);
    color: var(--text-bright);
    text-align: right;
}

/* Table of Contents */
.wiki-toc {
    background: linear-gradient(160deg, rgba(14, 22, 32, 0.7), rgba(8, 14, 22, 0.6));
    border: 1px solid var(--seam);
    padding: 20px 28px;
    margin-bottom: 40px;
    max-width: 400px;
}
.wiki-toc-title {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--seam);
}
.wiki-toc ol {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
}
.wiki-toc ol ol {
    margin-top: 4px;
    padding-left: 20px;
}
.wiki-toc li {
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 2;
    color: var(--text-dim);
}
.wiki-toc a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}
.wiki-toc a:hover {
    color: var(--ice);
    text-shadow: none;
}

/* Wiki headings */
.wiki-h2 {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 56px 0 20px;
    padding-bottom: 16px;
    border-bottom: none;
    clear: both;
    position: relative;
}
.wiki-h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--ice), rgba(74,154,187,0.2) 30%, rgba(74,154,187,0.05) 100%);
}
.wiki-h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--ice);
    letter-spacing: 0.06em;
    margin: 32px 0 12px;
}

/* Wiki text block */
.wiki-text {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.9;
    color: var(--text);
}
.wiki-text p { margin-bottom: 1.2em; }

/* Wiki zone indicators — colored left border + ambient glow */
.wiki-zone-warm {
    border-left: 3px solid rgba(74, 154, 187, 0.3);
    padding-left: 24px;
    margin-bottom: 32px;
    background: linear-gradient(90deg, rgba(74, 154, 187, 0.02), transparent 40%);
    position: relative;
}
.wiki-zone-cold {
    border-left: 3px solid var(--frost);
    padding-left: 24px;
    margin-bottom: 32px;
    background: linear-gradient(90deg, rgba(58, 122, 155, 0.04), transparent 40%);
    position: relative;
}
.wiki-zone-danger {
    border-left: 3px solid var(--blood);
    padding-left: 24px;
    margin-bottom: 32px;
    background: linear-gradient(90deg, rgba(140, 32, 32, 0.04), transparent 40%);
    position: relative;
}
.wiki-zone-dark {
    border-left: 3px solid var(--purple);
    padding-left: 24px;
    margin-bottom: 32px;
    background: linear-gradient(90deg, rgba(58, 32, 96, 0.06), transparent 50%);
    position: relative;
}

/* Wiki cards — related articles grid */
.wiki-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 20px 0 32px;
}
.wiki-card {
    background: linear-gradient(160deg, rgba(14, 22, 32, 0.85), rgba(8, 14, 22, 0.8));
    border: 1px solid var(--seam);
    padding: 20px;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
}
.wiki-card:hover {
    border-color: var(--seam-bright);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(74, 154, 187, 0.03);
    color: inherit;
    text-shadow: none;
    background: linear-gradient(160deg, rgba(74,154,187,0.04), rgba(8, 14, 22, 0.85));
}
.wiki-card:hover .wiki-card-tag { opacity: 1; }
.wiki-card:hover h4 { color: var(--ice); transition: color 0.3s; }
.wiki-card-tag {
    font-family: var(--font-code);
    font-size: 9px;
    color: var(--ice);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
}
.wiki-card h4 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: 0.04em;
    margin: 6px 0;
}
.wiki-card p {
    font-size: 14px;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.5;
}

/* Wiki links */
.wiki-link { color: var(--ice); text-decoration: none; border-bottom: 1px solid rgba(74,154,187,0.2); transition: all 0.3s; }
.wiki-link:hover { color: var(--ice-bright); border-bottom-color: var(--ice); text-shadow: 0 0 8px rgba(74,154,187,0.2); }
.wiki-link-red { color: var(--blood-bright); text-decoration: none; border-bottom: 1px solid rgba(204,32,32,0.2); transition: all 0.3s; }
.wiki-link-red:hover { color: #ff4040; border-bottom-color: var(--blood-bright); text-shadow: 0 0 8px var(--blood-glow); }

/* ════════════════════════════════════════════
   DOSSIER STYLES — bestiary.html
   ════════════════════════════════════════════ */
.dossier {
    background: linear-gradient(160deg, rgba(14, 22, 32, 0.92), rgba(8, 14, 22, 0.88));
    border: 1px solid var(--seam);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(74,154,187,0.04);
    backdrop-filter: blur(12px);
    margin-bottom: 32px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s;
}
.dossier::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ice), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.dossier:hover {
    border-color: var(--seam-bright);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 8px 40px rgba(0,0,0,0.5), 0 0 20px rgba(74,154,187,0.04), inset 0 1px 0 rgba(74,154,187,0.06);
}
.dossier:hover::before { opacity: 0.4; }
/* Corner brackets on dossier */
.dossier::after {
    content: '';
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background:
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 0 / 14px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 0 / 1px 14px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 0 / 14px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 0 / 1px 14px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 100% / 14px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 100% / 1px 14px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 100% / 14px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 100% / 1px 14px;
    opacity: 0.1;
    transition: opacity 0.4s;
}
.dossier:hover::after { opacity: 0.3; }
.dossier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(160deg, rgba(74,154,187,0.04), transparent);
    border-bottom: 1px solid var(--seam);
    position: relative;
}
/* Pulsing status indicator */
.dossier-header::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blood-bright);
    box-shadow: 0 0 8px var(--blood-glow), 0 0 16px var(--blood-glow);
    animation: dossier-pulse 3s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes dossier-pulse {
    0%, 100% { opacity: 0.3; box-shadow: 0 0 4px var(--blood-glow); }
    50% { opacity: 1; box-shadow: 0 0 8px var(--blood-glow), 0 0 16px var(--blood-glow); }
}
.dossier-id {
    font-family: var(--font-code);
    font-size: 12px;
    font-weight: 400;
    color: var(--ice);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(74,154,187,0.15);
}
.dossier-class {
    font-family: var(--font-code);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border: 1px solid currentColor;
    flex-shrink: 0;
    opacity: 0.9;
    position: relative;
    overflow: hidden;
}
/* Animated threat level shimmer */
.dossier-class::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: threat-shimmer 4s ease-in-out infinite;
}
@keyframes threat-shimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}
.dossier-body {
    padding: 24px;
}
.dossier-field {
    margin-bottom: 16px;
}
.dossier-field:last-child { margin-bottom: 0; }
.dossier-label {
    font-family: var(--font-code);
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.dossier-value {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

/* Warning block — bestiary */
.warning-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 28px 32px;
    border: 1px solid var(--blood);
    background: linear-gradient(160deg, rgba(140, 32, 32, 0.06), rgba(8, 14, 22, 0.8));
    position: relative;
    animation: warning-border-pulse 4s ease-in-out infinite;
}
@keyframes warning-border-pulse {
    0%, 100% { border-color: rgba(140, 32, 32, 0.3); box-shadow: 0 0 12px rgba(140, 32, 32, 0.04); }
    50% { border-color: rgba(140, 32, 32, 0.6); box-shadow: 0 0 24px rgba(140, 32, 32, 0.08); }
}
.warning-block::after {
    content: '';
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background:
        linear-gradient(var(--blood), var(--blood)) no-repeat 0 0 / 12px 1px,
        linear-gradient(var(--blood), var(--blood)) no-repeat 0 0 / 1px 12px,
        linear-gradient(var(--blood), var(--blood)) no-repeat 100% 0 / 12px 1px,
        linear-gradient(var(--blood), var(--blood)) no-repeat 100% 0 / 1px 12px,
        linear-gradient(var(--blood), var(--blood)) no-repeat 0 100% / 12px 1px,
        linear-gradient(var(--blood), var(--blood)) no-repeat 0 100% / 1px 12px,
        linear-gradient(var(--blood), var(--blood)) no-repeat 100% 100% / 12px 1px,
        linear-gradient(var(--blood), var(--blood)) no-repeat 100% 100% / 1px 12px;
    opacity: 0.3;
}
.warning-label {
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--blood-bright);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
    text-shadow: 0 0 8px var(--blood-glow);
}
.warning-text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin: 0;
}

/* ════════════════════════════════════════════
   RACE STYLES — races.html
   ════════════════════════════════════════════ */
.race-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: linear-gradient(160deg, rgba(14, 22, 32, 0.88), rgba(8, 14, 22, 0.85));
    border: 1px solid var(--seam);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(74,154,187,0.04);
    backdrop-filter: blur(10px);
    padding: 32px;
    margin-bottom: 20px;
    transition: all 0.4s;
}
.race-card:hover {
    border-color: var(--seam-bright);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 8px 32px rgba(0,0,0,0.5), 0 0 16px rgba(74,154,187,0.03), inset 0 1px 0 rgba(74,154,187,0.06);
}
.race-emblem {
    width: 64px;
    height: 64px;
    border: 1px solid var(--seam-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    background: linear-gradient(160deg, rgba(74,154,187,0.04), transparent);
    color: var(--ice);
    position: relative;
    transition: all 0.4s;
}
.race-card:hover .race-emblem {
    border-color: var(--ice);
    box-shadow: 0 0 20px rgba(74,154,187,0.12), inset 0 0 12px rgba(74,154,187,0.06);
    text-shadow: 0 0 16px rgba(74,154,187,0.4);
}
.race-info { flex: 1; }
.race-info h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.race-origin {
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--ice);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.7;
}
.race-info p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 16px;
}
.subraces {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.subrace-tag {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--text-mid);
    padding: 4px 12px;
    border: 1px solid var(--seam);
    background: rgba(74, 154, 187, 0.03);
    transition: all 0.3s;
}
.subrace-tag:hover {
    border-color: var(--seam-bright);
    color: var(--ice);
}

/* ════════════════════════════════════════════
   ARTIFACT STYLES — artifacts.html
   ════════════════════════════════════════════ */
.artifact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.artifact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: linear-gradient(160deg, rgba(14, 22, 32, 0.85), rgba(8, 14, 22, 0.82));
    border: 1px solid var(--seam);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(74,154,187,0.03);
    backdrop-filter: blur(8px);
    padding: 20px;
    transition: all 0.3s;
}
.artifact-item:hover {
    border-color: var(--seam-bright);
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.4), 0 0 12px rgba(74,154,187,0.03);
}
.artifact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    image-rendering: pixelated;
    border: 1px solid var(--seam);
    background: var(--void);
    transition: all 0.4s;
}
.artifact-item:hover .artifact-icon {
    border-color: var(--ice);
    box-shadow: 0 0 12px rgba(74,154,187,0.15), 0 0 24px rgba(74,154,187,0.06);
}
.artifact-icon-placeholder {
    width: 48px; height: 48px; flex-shrink: 0;
    border: 1px solid var(--seam); background: var(--void);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--text-mid); transition: all 0.4s;
}
.artifact-item:hover .artifact-icon-placeholder {
    border-color: var(--ice);
    box-shadow: 0 0 12px rgba(74,154,187,0.15);
}
.artifact-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--ice);
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    transition: text-shadow 0.3s;
}
.artifact-item:hover .artifact-name {
    text-shadow: 0 0 12px rgba(74,154,187,0.3);
}
.artifact-desc {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-mid);
    margin: 0;
}

/* Materials (resources section) */
.material-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid var(--seam);
    transition: background 0.3s;
}
.material-item:last-child { border-bottom: none; }
.material-item:hover { background: rgba(74, 154, 187, 0.02); }
.material-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    image-rendering: pixelated;
    border: 1px solid var(--seam);
    background: var(--void);
}

/* ════════════════════════════════════════════
   JOIN/HOW TO PLAY — join.html
   ════════════════════════════════════════════ */

/* Steps */
.steps {
    max-width: 700px;
    margin: 0 auto;
}
.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid var(--seam);
}
.step:last-child { border-bottom: none; }
.step-number {
    width: 48px;
    height: 48px;
    border: 1px solid var(--seam-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--ice);
    flex-shrink: 0;
    background: linear-gradient(160deg, rgba(74,154,187,0.06), transparent);
    text-shadow: 0 0 12px rgba(74,154,187,0.2);
    transition: all 0.3s;
    position: relative;
}
.step:hover .step-number {
    border-color: var(--ice);
    box-shadow: 0 0 16px rgba(74,154,187,0.12);
    color: var(--ice-bright);
    text-shadow: 0 0 16px rgba(74,154,187,0.4);
}
.step-content h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.step-content p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}

/* Server IP block */
.connect-ip {
    font-family: var(--font-code);
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 400;
    color: var(--ice-bright);
    letter-spacing: 0.08em;
    padding: 20px 32px;
    border: 1px solid var(--seam-bright);
    background: linear-gradient(160deg, rgba(74,154,187,0.06), rgba(14,22,32,0.6));
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-shadow: 0 0 20px rgba(74,154,187,0.3);
    position: relative;
    user-select: all;
    animation: ip-glow 4s ease-in-out infinite;
}
@keyframes ip-glow {
    0%, 100% { text-shadow: 0 0 16px rgba(74,154,187,0.2); box-shadow: 0 0 12px rgba(74,154,187,0.04); }
    50% { text-shadow: 0 0 24px rgba(74,154,187,0.4), 0 0 48px rgba(74,154,187,0.15); box-shadow: 0 0 24px rgba(74,154,187,0.08); }
}
.connect-ip:hover {
    border-color: var(--ice);
    background: linear-gradient(160deg, rgba(74,154,187,0.1), rgba(14,22,32,0.7));
    box-shadow: 0 0 30px rgba(74,154,187,0.12);
    animation: none;
    text-shadow: 0 0 24px rgba(74,154,187,0.5);
}
.copy-hint {
    display: block;
    font-family: var(--font-ui);
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 8px;
    opacity: 0.6;
}

/* Rules list */
.rules-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}
.rules-list li {
    padding: 16px 0 16px 24px;
    border-bottom: 1px solid var(--seam);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    position: relative;
}
.rules-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22px;
    width: 6px;
    height: 6px;
    background: var(--ice);
    transform: rotate(45deg);
    opacity: 0.4;
}
.rules-list li:last-child { border-bottom: none; }

/* Features grid (join page mechanics) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.feature-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
/* ═══ CHRONICLE / LETOPIS ═══ */
.chronicle-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}
.chronicle-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--nav-h) - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--seam-bright) transparent;
}
.chronicle-toc {
    border: 1px solid var(--seam);
    background: rgba(2, 4, 8, 0.7);
    backdrop-filter: blur(8px);
    padding: 20px;
    font-family: var(--font-ui);
}
.chronicle-toc-title {
    font-family: var(--font-display);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ice);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--seam);
}
.chronicle-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}
.chronicle-toc li {
    counter-increment: toc;
    margin-bottom: 6px;
}
.chronicle-toc a {
    font-size: 12px;
    color: var(--text-mid);
    text-decoration: none;
    display: block;
    padding: 4px 0;
    transition: color 0.3s;
    line-height: 1.4;
}
.chronicle-toc a::before {
    content: counter(toc) ". ";
    color: var(--text-dim);
    font-size: 10px;
}
.chronicle-toc a:hover { color: var(--ice); }
.chronicle-toc a.active { color: var(--ice); text-shadow: 0 0 8px rgba(74,154,187,0.15); }

.chronicle-content {
    min-width: 0;
}
.chronicle-intro {
    border-left: 2px solid var(--ice);
    padding-left: 24px;
    margin-bottom: 64px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 17px;
    line-height: 1.9;
    color: #b0c0cc;
}

.chronicle-chapter {
    margin-bottom: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--seam);
}
.chronicle-chapter:last-child { border-bottom: none; }
.chronicle-chapter h2 {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.06em;
    color: var(--text-heading);
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--seam);
}
.chronicle-chapter p {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.9;
    color: #c0ccd6;
    margin-bottom: 1.4em;
}
.chronicle-chapter p:last-child { margin-bottom: 0; }
.chronicle-chapter em { color: var(--text-bright); }
.chronicle-chapter strong { color: var(--text-heading); font-weight: 600; }

.chronicle-chapter blockquote {
    border-left: 2px solid var(--seam-bright);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(74, 154, 187, 0.03);
    font-style: italic;
    color: #a0b0bc;
}
.chronicle-chapter blockquote p { font-size: 16px; margin-bottom: 0.8em; }
.chronicle-chapter blockquote p:last-child { margin-bottom: 0; }

.chronicle-author {
    text-align: right;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 16px;
    color: var(--text-mid);
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--seam);
}

/* ═══ DONATE PAGE ═══ */
.donate-desc {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 48px;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
}
.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}
.donate-card {
    background: rgba(4, 8, 18, 0.6);
    border: 1px solid var(--seam);
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
}
.donate-card:hover {
    border-color: var(--seam-bright);
    box-shadow: 0 0 24px rgba(74, 154, 187, 0.06);
}
.donate-card-icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: block;
}
.donate-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.06em;
    color: var(--text-heading);
    margin-bottom: 12px;
}
.donate-card p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 20px;
}
.donate-card .donate-price {
    font-family: var(--font-code);
    font-size: 13px;
    color: var(--ice);
    letter-spacing: 0.05em;
}
.donate-cta {
    text-align: center;
    margin: 48px 0;
}
.donate-faq {
    max-width: 700px;
    margin: 0 auto;
}
.donate-faq-item {
    border-bottom: 1px solid var(--seam);
    padding: 20px 0;
}
.donate-faq-item:last-child { border-bottom: none; }
.donate-faq-item h4 {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--text-heading);
    margin-bottom: 8px;
}
.donate-faq-item p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.7;
    margin: 0;
}

/* ═══ REGISTER PAGE ═══ */
.register-container {
    max-width: 460px;
    margin: 0 auto;
}
.register-form {
    background: rgba(4, 8, 18, 0.6);
    border: 1px solid var(--seam);
    padding: 40px 32px;
    backdrop-filter: blur(8px);
}
.form-group {
    margin-bottom: 24px;
}
.form-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-mid);
    margin-bottom: 8px;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(2, 4, 8, 0.8);
    border: 1px solid var(--seam);
    color: var(--text-bright);
    font-family: var(--font-code);
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    box-sizing: border-box;
}
.form-input:focus {
    border-color: var(--seam-active);
    box-shadow: 0 0 12px rgba(74, 154, 187, 0.08);
}
.form-input::placeholder {
    color: var(--text-dim);
    font-style: italic;
}
.form-input.error {
    border-color: rgba(140, 32, 32, 0.4);
    box-shadow: 0 0 8px rgba(140, 32, 32, 0.1);
}
.form-error-text {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--blood-bright);
    margin-top: 6px;
    display: none;
}
.form-error-text.visible { display: block; }
.form-hint {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 6px;
}
.form-btn {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid var(--ice);
    color: var(--ice);
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}
.form-btn:hover {
    background: rgba(74, 154, 187, 0.08);
    box-shadow: 0 0 24px rgba(74, 154, 187, 0.12);
}
.form-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.form-status {
    text-align: center;
    font-family: var(--font-ui);
    font-size: 13px;
    margin-top: 16px;
    min-height: 20px;
}
.form-status.success { color: var(--ice); }
.form-status.error { color: var(--blood-bright); }
.register-note {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-dim);
}
.register-note a { color: var(--ice); text-decoration: none; border-bottom: 1px solid rgba(74,154,187,0.2); }
.register-note a:hover { color: var(--ice-bright); }

/* ═══ RACE BELIEFS ═══ */
.belief-tag {
    display: inline-block;
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--ice);
    border: 1px solid var(--seam);
    padding: 3px 10px;
    margin-top: 8px;
    letter-spacing: 0.04em;
}
.race-culture {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--seam);
}
.race-culture p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-mid);
    margin: 0 0 8px;
}
.race-culture p:last-child { margin-bottom: 0; }
.race-quote {
    font-style: italic;
    color: var(--text-dim);
    font-size: 14px;
    border-left: 2px solid var(--seam);
    padding-left: 12px;
    margin-top: 8px;
}

/* ═══ NAV REGISTER BUTTON ═══ */
.nav-register {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mid);
    border: 1px solid var(--seam);
    padding: 6px 14px;
    text-decoration: none;
    transition: all 0.3s;
    margin-left: 8px;
}
.nav-register:hover {
    color: var(--ice);
    border-color: var(--seam-bright);
}

/* ═══ 404 PAGE ═══ */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: calc(var(--nav-h) + 40px) 20px 80px; position: relative; z-index: 10; }
.error-content { max-width: 600px; }
.error-code { font-family: var(--font-display); font-size: clamp(100px, 20vw, 200px); font-weight: 900; color: transparent; background: linear-gradient(180deg, var(--ice) 0%, var(--blood) 100%); -webkit-background-clip: text; background-clip: text; line-height: 1; letter-spacing: 0.1em; text-shadow: 0 0 60px rgba(74, 154, 187, 0.3); margin-bottom: 16px; }
.error-subtitle { font-family: var(--font-display); font-size: clamp(18px, 3vw, 28px); color: var(--text-heading); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 24px; }
.error-text { font-size: 18px; line-height: 1.8; color: var(--text); margin-bottom: 40px; }
.error-quote { font-style: italic; color: var(--text-mid); font-size: 15px; margin-top: 32px; opacity: 0.7; }

@media (max-width: 768px) {
    :root { --nav-h: 48px; }
    body { font-size: 16px; }

    /* ── Slide-in panel from right ── */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: rgba(2, 4, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 0 32px;
        gap: 0;
        border-left: 1px solid var(--seam-active);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.6), -1px 0 0 rgba(74, 154, 187, 0.08);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        display: flex;
        list-style: none;
    }
    .nav-links.open {
        transform: translateX(0);
    }

    /* ── Overlay backdrop ── */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.35s;
    }
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    /* ── Hamburger → X rotation ── */
    .nav-toggle {
        display: block;
        z-index: 1001;
        transition: transform 0.3s;
    }
    .nav-toggle.active {
        transform: rotate(90deg);
    }

    /* ── Panel nav items — more vertical spacing ── */
    .nav-item > a {
        padding: 14px 28px;
        font-size: 12px;
        border-left: 3px solid transparent;
        transition: all 0.25s;
    }
    .nav-item > a:hover {
        background: rgba(74, 154, 187, 0.04);
        border-left-color: rgba(74, 154, 187, 0.15);
    }
    .nav-item > a.active {
        color: var(--ice);
        border-left-color: var(--ice);
        background: rgba(74, 154, 187, 0.06);
        text-shadow: 0 0 10px rgba(74, 154, 187, 0.2);
    }

    /* ── Mobile dropdown inside panel ── */
    .nav-dropdown {
        position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
        min-width: 0; background: rgba(0,0,0,0.2); border: none; box-shadow: none;
        padding: 4px 0 4px 16px; display: none; backdrop-filter: none;
    }
    .nav-item:hover .nav-dropdown,
    .nav-item.open .nav-dropdown { display: block; transform: none; }
    .nav-dropdown::after { display: none; }
    .nav-cta { margin: 12px 24px 8px; text-align: center; display: block; }
    .container, .prose { padding: 0 20px; }
    .section { padding: 80px 0; }
    .features-row, .entity-teaser-grid { grid-template-columns: 1fr; }
    .gothic-panel { padding: 1.5rem; }
    .connect-block { padding: 32px 20px; }
    .void-break { height: 120px; }
    .void-break-tall { height: 180px; }
    .hero-scroll { display: none; }
    .rec-indicator { top: 12px; right: 12px; font-size: 9px; }
    .timestamp { bottom: 12px; right: 12px; font-size: 8px; }
    #fog-canvas { opacity: 0.4; }
    .panel::before { display: none; }

    /* Internal pages responsive */
    .page-header { padding: calc(var(--nav-h) + 48px) 0 40px; }
    .page-header h1 { letter-spacing: 0.06em; }
    .wiki-infobox { float: none; width: 100%; margin: 0 0 24px 0; }
    .wiki-toc { max-width: 100%; }
    .wiki-h2 { font-size: 20px; margin-top: 40px; }
    .wiki-zone-warm, .wiki-zone-cold, .wiki-zone-danger, .wiki-zone-dark { padding-left: 16px; }
    .wiki-cards { grid-template-columns: 1fr 1fr; }
    .dossier-header { flex-direction: column; gap: 8px; align-items: flex-start; padding: 12px 16px; }
    .dossier-body { padding: 16px; }
    .dossier-body > div[style*="grid"] { display: block !important; }
    .race-card { flex-direction: column; gap: 16px; padding: 24px 20px; }
    .race-emblem { width: 52px; height: 52px; font-size: 24px; }
    .artifact-grid { grid-template-columns: 1fr; }
    .artifact-item { padding: 16px; }
    .step { gap: 16px; }
    .step-number { width: 40px; height: 40px; font-size: 16px; }
    .connect-ip { font-size: 22px; padding: 16px 24px; }
    .features-grid { grid-template-columns: 1fr; }

    /* Chronicle responsive */
    .chronicle-layout { grid-template-columns: 1fr; gap: 0; padding: 0 20px; }
    .chronicle-sidebar { position: static; max-height: none; margin-bottom: 32px; }
    .chronicle-chapter h2 { font-size: 18px; }
    .chronicle-chapter p { font-size: 16px; }

    /* Donate responsive */
    .donate-grid { grid-template-columns: 1fr; }

    /* Register responsive */
    .register-form { padding: 28px 20px; }
    .nav-register { display: none; }

    /* Page nav responsive */
    .page-nav { flex-direction: column; }
    .page-nav-link { min-width: 0; }
    .page-nav-next { text-align: left; }
}
@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 260px; text-align: center; }
    .btn-download { max-width: 300px; }
    blockquote { padding: 24px 20px 24px 28px; font-size: 16px; }
    .wiki-cards { grid-template-columns: 1fr; }
    .subraces { flex-direction: column; }
}

/* Page navigation (prev/next) */
.page-nav {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    gap: 20px;
    position: relative;
    z-index: 10;
}
.page-nav-link {
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    border: 1px solid rgba(74, 154, 187, 0.1);
    border-radius: 4px;
    background: rgba(4, 8, 18, 0.6);
    backdrop-filter: blur(8px);
    text-decoration: none;
    transition: all 0.3s;
    min-width: 160px;
}
.page-nav-link:hover {
    border-color: rgba(74, 154, 187, 0.3);
    background: rgba(4, 8, 18, 0.8);
    text-shadow: none;
}
.page-nav-next { text-align: right; margin-left: auto; }
.page-nav-dir {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #586878;
}
.page-nav-title {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    color: #4a9abb;
    margin-top: 4px;
}

/* Lore term tooltips */
.lore-term {
    color: #4a9abb;
    border-bottom: 1px dotted rgba(74, 154, 187, 0.3);
    cursor: help;
    position: relative;
}
.lore-term:hover { color: #6ec0e0; }
.lore-term::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 14px;
    background: rgba(4, 8, 18, 0.95);
    border: 1px solid rgba(74, 154, 187, 0.2);
    border-radius: 4px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    line-height: 1.5;
    color: #8898a8;
    white-space: normal;
    width: max-content;
    max-width: 280px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
    backdrop-filter: blur(8px);
}
.lore-term:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Name generator */
.name-gen-btn {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 16px;
    background: rgba(4, 8, 18, 0.6);
    border: 1px solid rgba(74, 154, 187, 0.15);
    color: #586878;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}
.name-gen-btn:hover, .name-gen-btn.active {
    background: rgba(74, 154, 187, 0.1);
    border-color: rgba(74, 154, 187, 0.4);
    color: #4a9abb;
}
.name-gen-result {
    text-align: center;
    padding: 20px;
    background: rgba(4, 8, 18, 0.5);
    border: 1px solid rgba(74, 154, 187, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.name-gen-result span {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: #4a9abb;
    letter-spacing: 0.06em;
}
.name-gen-copy {
    font-size: 16px;
    background: none;
    border: 1px solid rgba(74, 154, 187, 0.15);
    color: #586878;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
}
.name-gen-copy:hover {
    color: #4a9abb;
    border-color: rgba(74, 154, 187, 0.4);
}

/* Floating Discord button */
.discord-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5865F2;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}
.discord-float:hover {
    background: rgba(88, 101, 242, 0.25);
    border-color: #5865F2;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.3);
    color: #fff;
    text-shadow: none;
}

/* Enhanced hover effects */
.feature-card {
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 154, 187, 0.3);
    box-shadow: 0 8px 32px rgba(74, 154, 187, 0.08);
}

.entity-teaser {
    transition: transform 0.3s, border-color 0.3s;
}
.entity-teaser:hover {
    transform: translateY(-3px);
    border-color: rgba(140, 32, 32, 0.4);
}

.race-card {
    transition: transform 0.3s, border-color 0.3s;
}
.race-card:hover {
    transform: translateY(-3px);
    border-color: rgba(74, 154, 187, 0.25);
}

.artifact-item {
    transition: transform 0.3s, border-color 0.3s;
}
.artifact-item:hover {
    transform: translateY(-3px);
    border-color: rgba(74, 154, 187, 0.3);
}

.donate-card {
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.donate-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 154, 187, 0.3);
    box-shadow: 0 8px 24px rgba(74, 154, 187, 0.1);
}

/* Freeze effect */
.freeze-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(74, 154, 187, 0.08) 100%);
    border: 2px solid rgba(74, 154, 187, 0);
    opacity: 0;
    transition: opacity 3s, border-color 3s;
}
.freeze-overlay.active {
    opacity: 1;
    border-color: rgba(74, 154, 187, 0.15);
}

/* Bestiary filters */
.filter-btn {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 18px;
    background: rgba(4, 8, 18, 0.6);
    border: 1px solid rgba(74, 154, 187, 0.1);
    color: #586878;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-btn:hover {
    border-color: rgba(74, 154, 187, 0.3);
    color: #4a9abb;
}
.filter-btn.active {
    background: rgba(74, 154, 187, 0.12);
    border-color: rgba(74, 154, 187, 0.4);
    color: #4a9abb;
}

/* Bestiary item filtering */
.bestiary-item { transition: opacity 0.3s, transform 0.3s; }
.bestiary-item.hidden { opacity: 0; transform: scale(0.95); height: 0; overflow: hidden; margin: 0; padding: 0; border: none; }

/* Accordion */
.dossier-header { cursor: pointer; user-select: none; position: relative; }
.dossier-header::after {
    content: '\25BE';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #586878;
    font-size: 14px;
    transition: transform 0.3s;
}
.dossier-header.collapsed::after { transform: translateY(-50%) rotate(-90deg); }
.dossier-body { transition: max-height 0.4s ease, opacity 0.3s; overflow: hidden; }
.dossier-body.collapsed { max-height: 0 !important; opacity: 0; padding-top: 0; padding-bottom: 0; }

/* ============================================
   UI ENHANCEMENTS
   ============================================ */

/* Preloader */
.preloader { position: fixed; inset: 0; z-index: 99999; background: #020408; display: flex; align-items: center; justify-content: center; transition: opacity 0.6s, visibility 0.6s; }
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-symbol { width: 60px; height: 60px; border: 3px solid transparent; border-top-color: #4a9abb; border-radius: 50%; animation: preloader-spin 1s linear infinite; position: relative; }
.preloader-symbol::after { content: ''; position: absolute; inset: 8px; border: 2px solid transparent; border-top-color: #8b2020; border-radius: 50%; animation: preloader-spin 0.6s linear infinite reverse; }
@keyframes preloader-spin { to { transform: rotate(360deg); } }

/* Scroll to top */
.scroll-top { position: fixed; bottom: 2rem; right: 2rem; z-index: 900; width: 44px; height: 44px; border-radius: 50%; background: rgba(10, 20, 32, 0.85); border: 1px solid rgba(74, 154, 187, 0.3); color: #4a9abb; font-size: 1rem; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s, transform 0.3s; backdrop-filter: blur(8px); }
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); border-color: #4a9abb; background: rgba(10, 20, 32, 0.95); }

/* Reading progress bar */
.reading-progress { position: fixed; top: 0; left: 0; height: 2px; background: linear-gradient(90deg, #4a9abb, #8b2020); z-index: 10000; width: 0%; transition: width 0.1s linear; pointer-events: none; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #020408; }
::-webkit-scrollbar-thumb { background: rgba(74, 154, 187, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(74, 154, 187, 0.5); }
html { scrollbar-color: rgba(74, 154, 187, 0.3) #020408; scrollbar-width: thin; }

/* Custom cursor */
body { cursor: crosshair; }
a, button, .nav-toggle, [role="button"] { cursor: pointer; }

/* ============================================
   ONLINE COUNTER + COUNTDOWN + QUOTES
   ============================================ */

/* Online counter — hero section */
.hero-online {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mid);
    opacity: 0;
    animation: fadeInSlow 2s 1.5s forwards;
}
.hero-online-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(46, 204, 113, 0.6); }
    50% { opacity: 0.5; box-shadow: 0 0 16px rgba(46, 204, 113, 0.3); }
}
@keyframes fadeInSlow { to { opacity: 1; } }

/* Countdown timer */
.countdown { display: flex; justify-content: center; gap: 20px; margin: 28px 0 8px; }
.countdown-item { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.countdown-value {
    font-family: var(--font-display);
    font-size: 32px; font-weight: 700; color: var(--ice); line-height: 1.1;
    text-shadow: 0 0 20px var(--ice-glow);
}
.countdown-label {
    font-family: var(--font-ui);
    font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--text-mid); margin-top: 4px;
}
.countdown-title {
    font-family: var(--font-ui);
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-dim); text-align: center; margin-bottom: 12px;
}

/* Random whisper quotes */
.whisper { transition: opacity 0.6s; }
.whisper.changing { opacity: 0; }

/* "New" badge */
.badge-new {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 9px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    color: #020408; background: linear-gradient(135deg, #4a9abb, #2ecc71);
    padding: 2px 8px; border-radius: 3px; margin-left: 8px; vertical-align: middle;
    animation: badge-glow 2s ease-in-out infinite;
}
@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 6px rgba(74, 154, 187, 0.3); }
    50% { box-shadow: 0 0 14px rgba(74, 154, 187, 0.6); }
}

/* ═══ LOGO HOVER SHAKE ═══ */
.nav-logo:hover { animation: logo-shake 0.4s ease-in-out; }
@keyframes logo-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px) rotate(-0.5deg); }
    40% { transform: translateX(2px) rotate(0.5deg); }
    60% { transform: translateX(-1px) rotate(-0.3deg); }
    80% { transform: translateX(1px) rotate(0.3deg); }
}

/* ═══ SCROLL REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ═══ BREATHING BACKGROUND ═══ */
@keyframes breathe-bg {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}
.breathe-overlay {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse at 50% 40%, rgba(74, 154, 187, 0.04), transparent 70%);
    animation: breathe-bg 8s ease-in-out infinite;
}

/* ═══ BUTTON RIPPLE ═══ */
.btn-cta, .btn-secondary, .filter-btn { position: relative; overflow: hidden; }
.btn-ripple {
    position: absolute; border-radius: 50%;
    background: rgba(74, 154, 187, 0.3);
    transform: scale(0); animation: ripple-expand 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes ripple-expand { to { transform: scale(4); opacity: 0; } }

/* ═══ ANIMATED TITLES ═══ */
.hero-title .letter {
    display: inline-block; opacity: 0; transform: translateY(20px);
    animation: letter-appear 0.5s ease forwards;
}
@keyframes letter-appear { to { opacity: 1; transform: translateY(0); } }

/* ═══ SNOWFLAKES ═══ */
.snowflake {
    position: fixed; color: rgba(200, 220, 240, 0.25);
    font-size: 1em; top: -5%; z-index: 2; pointer-events: none;
    animation: snowfall linear infinite;
}
@keyframes snowfall {
    0% { transform: translateY(0) rotate(0deg) translateX(0); }
    25% { transform: translateY(25vh) rotate(90deg) translateX(15px); }
    50% { transform: translateY(50vh) rotate(180deg) translateX(-10px); }
    75% { transform: translateY(75vh) rotate(270deg) translateX(10px); }
    100% { transform: translateY(105vh) rotate(360deg) translateX(0); }
}

/* ═══ FOOTER RED EYES ═══ */
.footer-eyes {
    position: absolute; width: 4px; height: 4px; border-radius: 50%;
    background: var(--blood); box-shadow: 0 0 6px var(--blood-glow), 0 0 12px rgba(140, 32, 32, 0.15);
    animation: eye-blink 4s ease-in-out infinite; pointer-events: none;
}
@keyframes eye-blink {
    0%, 42%, 58%, 100% { opacity: 0.7; }
    50% { opacity: 0; }
}

/* ═══ DYNAMIC PAGE PALETTE ═══ */
body[data-page="lore"] { --page-accent: #4a9abb; }
body[data-page="bestiary"] { --page-accent: #cc2020; }
body[data-page="races"] { --page-accent: #2ecc71; }
body[data-page="artifacts"] { --page-accent: #e67e22; }
body[data-page="join"] { --page-accent: #6ec0e0; }
body[data-page="donate"] { --page-accent: #f1c40f; }
body[data-page="register"] { --page-accent: #9b59b6; }
body[data-page="404"] { --page-accent: #cc2020; }

/* ═══ PARCHMENT FOR LORE ═══ */
body[data-page="lore"] .chronicle-chapter {
    background: linear-gradient(to bottom, rgba(30, 24, 18, 0.12), rgba(20, 16, 12, 0.06));
    border-left: 2px solid var(--seam-bright); padding-left: 24px;
    margin-bottom: 40px;
}
body[data-page="lore"] .chronicle-chapter blockquote {
    background: rgba(74, 154, 187, 0.03);
    border-left-color: var(--ice-dim);
}

/* ═══ STICKY NAV SHRINK ═══ */
.nav { transition: all 0.3s ease; }
.nav.scrolled {
    --nav-h: 42px;
    backdrop-filter: blur(24px);
    background: rgba(2, 4, 8, 0.97) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.nav.scrolled .nav-logo { font-size: 16px; }

/* ═══ ACTIVE NAV ITEM ═══ */
.nav-item a.active {
    color: var(--ice-bright) !important;
}
.nav-item a.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: var(--ice);
    animation: nav-pulse 2s ease-in-out infinite;
}
@keyframes nav-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ═══ PAGE TRANSITION ═══ */
.page-transition {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--void); opacity: 1;
    transition: opacity 0.4s ease; pointer-events: none;
}
.page-transition.done { opacity: 0; }

/* ═══ CLICK FLASH ═══ */
.click-flash {
    position: fixed; pointer-events: none; z-index: 99998;
    width: 80px; height: 80px; border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 154, 187, 0.3), transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    animation: flash-burst 0.4s ease-out forwards;
}
@keyframes flash-burst { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* ═══ LORE TOC ACTIVE ═══ */
.chronicle-toc a { transition: all 0.3s ease; border-left: 2px solid transparent; padding-left: 12px; }
.chronicle-toc a.active {
    color: var(--ice-bright); border-left-color: var(--ice);
    text-shadow: 0 0 8px var(--ice-glow);
}

/* ═══ GRADIENT DIVIDERS ═══ */
.section-divider {
    height: 1px; border: none;
    background: linear-gradient(90deg, transparent, var(--ice-glow), transparent);
    margin: 60px auto; width: 60%; opacity: 0.6;
}

/* ═══ ARTIFACT GLOW ═══ */
.artifact-item { transition: all 0.3s ease; }
.artifact-item:hover .material-name,
.artifact-item:hover h3 {
    text-shadow: 0 0 12px var(--ice-glow);
}


/* ═══ TYPEWRITER ═══ */
.typewriter-text {
    overflow: hidden; white-space: nowrap;
    border-right: 2px solid var(--ice);
    animation: tw-type 3s steps(40) forwards, tw-blink 0.75s step-end infinite;
    display: inline-block; max-width: 100%;
}
@keyframes tw-type { from { width: 0; } to { width: 100%; } }
@keyframes tw-blink { 50% { border-color: transparent; } }

/* ═══ DECORATIVE RUNES ═══ */
.rune-decoration {
    text-align: center; color: var(--text-faint); font-size: 10px;
    letter-spacing: 0.5em; opacity: 0.25; margin: 30px 0;
    font-family: var(--font-display);
}

/* ═══ RACE COMPARISON TABLE ═══ */
.race-comparison { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 13px; }
.race-comparison th {
    background: var(--deep); color: var(--text-heading); padding: 10px 12px;
    text-align: left; border-bottom: 1px solid var(--seam-bright);
    font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; font-size: 11px;
}
.race-comparison td { padding: 8px 12px; border-bottom: 1px solid var(--seam); color: var(--text); }
.race-comparison tr:hover td { background: var(--ice-faint); }

/* ═══ RUMORS ═══ */
.rumors-list { list-style: none; padding: 0; }
.rumors-list li {
    padding: 12px 16px; border-left: 2px solid var(--blood); margin-bottom: 12px;
    background: rgba(140, 32, 32, 0.04); font-style: italic; color: var(--text-mid);
    transition: 0.3s;
}
.rumors-list li:hover { border-left-color: var(--blood-bright); background: rgba(140, 32, 32, 0.08); }

/* ═══ FOLLOWER EYE ═══ */
#follower-eye { transition: transform 0.15s ease, opacity 0.3s; }
@media (max-width: 768px) { #follower-eye { display: none !important; } }

/* ═══ ENCODED MESSAGE ═══ */
.encoded-message {
    text-align: center; padding: 20px; margin: 20px 0;
}
.rune-text {
    font-family: var(--font-display); font-size: 14px;
    letter-spacing: 0.3em; color: var(--blood);
    cursor: pointer; transition: all 0.5s ease;
    display: inline-block;
}
.rune-text:hover { text-shadow: 0 0 8px var(--blood-glow); }

/* ═══ FOCUS STYLES ═══ */
:focus-visible {
    outline: 2px solid var(--ice);
    outline-offset: 2px;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--ice);
    outline-offset: 2px;
    box-shadow: 0 0 8px var(--ice-glow);
}

/* ═══ CLAMP RESPONSIVE FONTS ═══ */
.hero-title { font-size: clamp(28px, 5vw, 56px); }
.section-title { font-size: clamp(20px, 3vw, 32px); }
.hero-subtitle, .hero-lead { font-size: clamp(14px, 2vw, 20px); }
body { font-size: clamp(16px, 1.2vw, 20px); }

/* ═══ TOUCH-FRIENDLY TARGETS ═══ */
@media (pointer: coarse) {
    .nav-item a, .filter-btn, .btn-cta, .btn-secondary,
    .scroll-top, .discord-float { min-height: 44px; min-width: 44px; }
    .nav-item a { padding: 12px 16px; }
}

/* ═══ PRINT STYLES ═══ */
@media print {
    body { background: #fff; color: #000; font-size: 12pt; }
    .nav, .footer, .overlay-grain, .overlay-scanlines, .overlay-vignette,
    .overlay-vhs-track, #fog-canvas, #scene-container, .shadow-flash,
    #cursor-trail, #watching-eyes, .scroll-top, .discord-float,
    .preloader, .reading-progress, .page-transition,
    .freeze-overlay, #snowfall, .breathe-overlay, .rec-indicator,
    #follower-eye, .btn-cta, .btn-secondary { display: none !important; }
    a { color: #000; text-decoration: underline; }
    .hero-title, .section-title, h1, h2, h3 { color: #000; text-shadow: none; }
    .section, .container { padding: 10px 0; }
    .glass-panel { background: none; border: 1px solid #ccc; box-shadow: none; backdrop-filter: none; }
}

/* ═══ ANIMATION TOGGLE ═══ */
body.no-animations *, body.no-animations *::before, body.no-animations *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}
body.no-animations .overlay-grain, body.no-animations .overlay-vhs-track,
body.no-animations #cursor-trail, body.no-animations #watching-eyes,
body.no-animations .freeze-overlay, body.no-animations #snowfall,
body.no-animations .breathe-overlay, body.no-animations .shadow-flash,
body.no-animations #follower-eye { display: none !important; }

/* ═══ CSS CONTAINMENT ═══ */
section { contain: layout style; }
.feature-card, .entity-teaser, .race-card, .donate-card, .artifact-item { contain: layout style paint; }


/* ════════════════════════════════════════════════════════════════════
   VISUAL EFFECTS — Features #16, #21, #26, #28, #121, #128,
                    #139, #144, #150
   ════════════════════════════════════════════════════════════════════ */


/* ═══ #16 — GLITCH PAGE TRANSITION ═══ */

.page-transition::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(74, 154, 187, 0.03) 2px,
        rgba(74, 154, 187, 0.03) 4px
    );
    mix-blend-mode: screen;
}

.page-transition.glitching::before {
    opacity: 1;
    animation: page-glitch 0.6s steps(4) forwards;
}

.page-transition.glitching {
    background: var(--void);
    animation: page-glitch-bg 0.6s steps(3) forwards;
}

@keyframes page-glitch {
    0% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
    10% {
        opacity: 1;
        clip-path: inset(20% 0 40% 0);
        background: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(74, 154, 187, 0.06) 1px,
            rgba(74, 154, 187, 0.06) 3px
        );
    }
    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translateX(-3px);
    }
    30% {
        clip-path: inset(5% 0 70% 0);
        transform: translateX(5px);
        background: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 32, 32, 0.05) 2px,
            rgba(139, 32, 32, 0.05) 4px
        );
    }
    40% {
        clip-path: inset(40% 0 20% 0);
        transform: translateX(-2px) skewX(0.5deg);
    }
    60% {
        clip-path: inset(0);
        transform: translateX(0);
        opacity: 0.8;
    }
    80% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        clip-path: inset(0);
        transform: none;
    }
}

@keyframes page-glitch-bg {
    0%, 15% { background: var(--void); }
    16%, 18% { background: linear-gradient(90deg, var(--void) 0%, var(--void) 48%, rgba(74, 154, 187, 0.08) 49%, var(--void) 50%); }
    19%, 30% { background: var(--void); }
    31%, 33% { background: linear-gradient(90deg, var(--void) 0%, var(--void) 30%, rgba(139, 32, 32, 0.05) 31%, var(--void) 33%); }
    34%, 100% { background: var(--void); }
}


/* ═══ #21 — ENHANCED FROSTED GLASS ═══ */

.glass-frost {
    position: relative;
    background: linear-gradient(160deg,
        rgba(14, 22, 32, 0.92) 0%,
        rgba(8, 16, 26, 0.88) 50%,
        rgba(10, 20, 32, 0.90) 100%
    );
    border: 1px solid rgba(74, 154, 187, 0.12);
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(74, 154, 187, 0.04),
        inset 0 0 120px rgba(74, 154, 187, 0.02),
        inset 0 1px 0 rgba(200, 220, 240, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.glass-frost::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.035;
    background:
        radial-gradient(ellipse 2px 6px at 15% 20%, rgba(200, 220, 255, 0.8) 0%, transparent 100%),
        radial-gradient(ellipse 4px 2px at 75% 15%, rgba(200, 220, 255, 0.6) 0%, transparent 100%),
        radial-gradient(ellipse 3px 8px at 40% 60%, rgba(200, 220, 255, 0.7) 0%, transparent 100%),
        radial-gradient(ellipse 2px 5px at 85% 45%, rgba(200, 220, 255, 0.5) 0%, transparent 100%),
        radial-gradient(ellipse 5px 3px at 25% 80%, rgba(200, 220, 255, 0.6) 0%, transparent 100%),
        radial-gradient(ellipse 3px 7px at 60% 90%, rgba(200, 220, 255, 0.5) 0%, transparent 100%),
        radial-gradient(ellipse 2px 4px at 90% 75%, rgba(200, 220, 255, 0.7) 0%, transparent 100%),
        radial-gradient(ellipse 6px 2px at 50% 30%, rgba(200, 220, 255, 0.4) 0%, transparent 100%);
    mix-blend-mode: screen;
}

.glass-frost::after {
    content: '';
    position: absolute;
    inset: -1px;
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(135deg,
        rgba(74, 154, 187, 0.15) 0%,
        transparent 20%,
        transparent 40%,
        rgba(74, 154, 187, 0.08) 50%,
        transparent 60%,
        transparent 80%,
        rgba(74, 154, 187, 0.12) 100%
    ) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}


/* ═══ #26 — STOLP SHADOW ON HERO ═══ */

@media (min-width: 1200px) {
    .hero::after {
        content: '';
        position: absolute;
        right: 5%;
        bottom: 0;
        width: 180px;
        height: 85vh;
        z-index: 3;
        pointer-events: none;
        opacity: 0.04;
        background:
            /* Main body — tall tapered figure */
            linear-gradient(180deg,
                transparent 0%,
                rgba(2, 4, 8, 0.3) 5%,
                rgba(2, 4, 8, 0.9) 15%,
                rgba(2, 4, 8, 1) 30%,
                rgba(2, 4, 8, 1) 70%,
                rgba(2, 4, 8, 0.8) 90%,
                rgba(2, 4, 8, 0.4) 100%
            ),
            /* Narrow taper mask */
            linear-gradient(90deg,
                transparent 10%,
                rgba(2, 4, 8, 1) 25%,
                rgba(2, 4, 8, 1) 55%,
                transparent 85%
            ),
            /* Hunched shoulder/head mass */
            radial-gradient(ellipse 120px 60px at 50% 12%,
                rgba(2, 4, 8, 0.8) 0%,
                transparent 100%
            ),
            /* Fog around base */
            radial-gradient(ellipse 200px 40px at 50% 100%,
                rgba(2, 4, 8, 0.5) 0%,
                transparent 70%
            );
        background-blend-mode: multiply, normal, normal, normal;
        filter: blur(3px);
        animation: stolp-sway 12s ease-in-out infinite;
    }

    .hero-section::after {
        content: '';
        position: absolute;
        right: 5%;
        bottom: 0;
        width: 180px;
        height: 85vh;
        z-index: 3;
        pointer-events: none;
        opacity: 0.04;
        background:
            linear-gradient(180deg,
                transparent 0%,
                rgba(2, 4, 8, 0.3) 5%,
                rgba(2, 4, 8, 0.9) 15%,
                rgba(2, 4, 8, 1) 30%,
                rgba(2, 4, 8, 1) 70%,
                rgba(2, 4, 8, 0.8) 90%,
                rgba(2, 4, 8, 0.4) 100%
            ),
            linear-gradient(90deg,
                transparent 10%,
                rgba(2, 4, 8, 1) 25%,
                rgba(2, 4, 8, 1) 55%,
                transparent 85%
            ),
            radial-gradient(ellipse 120px 60px at 50% 12%,
                rgba(2, 4, 8, 0.8) 0%,
                transparent 100%
            ),
            radial-gradient(ellipse 200px 40px at 50% 100%,
                rgba(2, 4, 8, 0.5) 0%,
                transparent 70%
            );
        background-blend-mode: multiply, normal, normal, normal;
        filter: blur(3px);
        animation: stolp-sway 12s ease-in-out infinite;
    }
}

@keyframes stolp-sway {
    0%, 100% {
        transform: translateX(0) scaleX(1);
    }
    25% {
        transform: translateX(4px) scaleX(1.01);
    }
    50% {
        transform: translateX(-3px) scaleX(0.99);
    }
    75% {
        transform: translateX(2px) scaleX(1.005);
    }
}


/* ═══ #28 — 3D TEXT FOR MAIN HEADINGS ═══ */

.section-title,
.hero-title,
h1 {
    transform: perspective(500px) rotateX(2deg);
    transform-origin: center bottom;
}

.section-title {
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.4),
        0 2px 0 rgba(0, 0, 0, 0.3),
        0 3px 0 rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(74, 154, 187, 0.06);
}

.hero-title {
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.5),
        0 2px 0 rgba(0, 0, 0, 0.4),
        0 3px 0 rgba(0, 0, 0, 0.3),
        0 4px 0 rgba(0, 0, 0, 0.2),
        0 6px 12px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(74, 154, 187, 0.08);
}


/* ═══ #121 — PARALLAX SCROLL LAYERS ═══ */

.parallax-container {
    perspective: 1px;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100vh;
    -webkit-perspective: 1px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.parallax-layer {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.parallax-bg {
    transform: translateZ(-2px) scale(3);
    z-index: 0;
}

.parallax-mid {
    transform: translateZ(-1px) scale(2);
    z-index: 1;
}

.parallax-fg {
    transform: translateZ(0);
    z-index: 2;
}

.parallax-content {
    position: relative;
    transform: translateZ(0);
    z-index: 3;
}


/* ═══ #128 — SVG MORPHING ON HOVER ═══ */

.morph-icon {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.5s ease;
    cursor: pointer;
    will-change: transform, filter;
}

.morph-icon path,
.morph-icon polygon,
.morph-icon circle,
.morph-icon rect {
    transition: all 0.5s ease,
                d 0.5s ease,
                fill 0.4s ease,
                stroke 0.4s ease;
}

.morph-icon:hover {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 0 8px rgba(74, 154, 187, 0.4))
            drop-shadow(0 0 20px rgba(74, 154, 187, 0.15));
}

.morph-icon:hover path,
.morph-icon:hover polygon {
    fill: var(--ice);
}

.morph-icon:active {
    transform: scale(0.95) rotate(-2deg);
    transition-duration: 0.15s;
}


/* ═══ #139 — CRACK ANIMATION (OSKOLKI / SHARDS) ═══ */

.crack-effect {
    position: relative;
    overflow: hidden;
}

.crack-effect::before,
.crack-effect::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.crack-effect::before {
    background:
        /* Central vertical fracture */
        linear-gradient(0deg,
            transparent 44%,
            rgba(200, 220, 240, 0.5) 49.5%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(200, 220, 240, 0.5) 50.5%,
            transparent 56%
        ),
        /* Diagonal fracture upper-left */
        linear-gradient(135deg,
            transparent 46%,
            rgba(200, 220, 240, 0.4) 49.5%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(200, 220, 240, 0.4) 50.5%,
            transparent 54%
        ),
        /* Diagonal fracture upper-right */
        linear-gradient(225deg,
            transparent 46%,
            rgba(200, 220, 240, 0.4) 49.5%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(200, 220, 240, 0.4) 50.5%,
            transparent 54%
        ),
        /* Small branch crack */
        linear-gradient(70deg,
            transparent 47%,
            rgba(200, 220, 240, 0.3) 49.5%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(200, 220, 240, 0.3) 50.5%,
            transparent 53%
        );
}

.crack-effect::after {
    /* Ice glow at fracture center */
    background: radial-gradient(
        circle at 50% 50%,
        rgba(74, 154, 187, 0.2) 0%,
        rgba(74, 154, 187, 0.05) 30%,
        transparent 60%
    );
}

.crack-effect:hover::before {
    opacity: 1;
    animation: crack-spread 0.6s ease-out forwards;
}

.crack-effect:hover::after {
    opacity: 1;
    animation: crack-glow 0.8s ease-out forwards;
}

@keyframes crack-spread {
    0% {
        clip-path: circle(0% at 50% 50%);
        opacity: 0;
    }
    30% {
        clip-path: circle(15% at 50% 50%);
        opacity: 0.6;
    }
    60% {
        clip-path: circle(40% at 50% 50%);
        opacity: 1;
    }
    100% {
        clip-path: circle(75% at 50% 50%);
        opacity: 0.8;
    }
}

@keyframes crack-glow {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}


/* ═══ #144 — SMOKE / FOG ANIMATION ═══ */

.smoke-rise {
    position: relative;
    overflow: hidden;
}

.smoke-rise::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 30%;
    width: 40%;
    height: 60%;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(74, 154, 187, 0.06) 0%,
        rgba(74, 154, 187, 0.03) 30%,
        rgba(8, 16, 24, 0.04) 60%,
        transparent 80%
    );
    filter: blur(12px);
    animation: smoke-rise-anim 8s ease-in-out infinite;
}

.smoke-rise::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 50%;
    width: 30%;
    height: 50%;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(8, 16, 24, 0.08) 0%,
        rgba(8, 16, 24, 0.04) 40%,
        transparent 70%
    );
    filter: blur(16px);
    animation: smoke-rise-anim 11s ease-in-out 3s infinite;
}

@keyframes smoke-rise-anim {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(0.8);
    }
    15% {
        opacity: 0.6;
    }
    40% {
        opacity: 0.4;
        transform: translateY(-40%) translateX(8px) scale(1);
    }
    65% {
        opacity: 0.2;
        transform: translateY(-80%) translateX(-5px) scale(1.2);
    }
    85% {
        opacity: 0.05;
        transform: translateY(-110%) translateX(3px) scale(1.4);
    }
    100% {
        opacity: 0;
        transform: translateY(-130%) translateX(0) scale(1.5);
    }
}


/* ═══ #150 — CINEMATIC TRANSITION BARS ═══ */

.cinematic-bars {
    position: relative;
}

.cinematic-bars::before,
.cinematic-bars::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    height: 0;
    background: var(--void);
    z-index: 9990;
    pointer-events: none;
    transition: height 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.cinematic-bars::before {
    top: 0;
}

.cinematic-bars::after {
    bottom: 0;
}

.cinematic-bars.bars-active::before,
.cinematic-bars.bars-active::after {
    height: 60px;
    animation: bars-in 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.cinematic-bars.bars-out::before,
.cinematic-bars.bars-out::after {
    animation: bars-out 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes bars-in {
    0% {
        height: 0;
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        height: 60px;
        opacity: 1;
    }
}

@keyframes bars-out {
    0% {
        height: 60px;
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        height: 0;
        opacity: 0;
    }
}

/* Cinematic bars inner vignette edge */
.cinematic-bars.bars-active::before {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.cinematic-bars.bars-active::after {
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.8);
}


/* ════════════════════════════════════════════════════════════════════
   END VISUAL EFFECTS
   ════════════════════════════════════════════════════════════════════ */


/* ============================================
   ACCESSIBILITY — reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .overlay-grain, .overlay-vhs-track, .shadow-flash,
    #cursor-trail, #watching-eyes, .freeze-overlay,
    .snowflake, .footer-eyes, .breathe-overlay,
    .page-transition, .click-flash, #snowfall,
    #follower-eye { display: none !important; }
    .hero-content { transform: none !important; }
    .preloader { display: none !important; }
    html { scroll-behavior: auto; }

    /* Disable visual effects for reduced motion */
    .page-transition::before { display: none !important; }
    .hero::after,
    .hero-section::after { display: none !important; }
    .section-title,
    .hero-title,
    h1 { transform: none !important; }
    .smoke-rise::before,
    .smoke-rise::after { display: none !important; }
    .crack-effect::before,
    .crack-effect::after { display: none !important; }
    .cinematic-bars::before,
    .cinematic-bars::after { display: none !important; }
    .morph-icon { transition: none !important; }
    .morph-icon path,
    .morph-icon polygon,
    .morph-icon circle,
    .morph-icon rect { transition: none !important; }
}

/* ═══ FAQ ACCORDION (join page) ═══ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-accordion-item {
    border-bottom: 1px solid var(--seam);
}
.faq-accordion-item:last-child { border-bottom: none; }
.faq-accordion-item details {
    padding: 0;
}
.faq-accordion-item summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-heading);
    list-style: none;
    transition: color 0.3s;
    position: relative;
    user-select: none;
}
.faq-accordion-item summary::-webkit-details-marker { display: none; }
.faq-accordion-item summary::before {
    content: '+';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: 1px solid var(--seam-bright);
    border-radius: 2px;
    font-family: var(--font-code);
    font-size: 16px;
    font-weight: 300;
    color: var(--ice);
    transition: all 0.3s;
    background: rgba(4, 8, 18, 0.4);
}
.faq-accordion-item details[open] summary::before {
    content: '\2212';
    border-color: var(--ice);
    box-shadow: 0 0 12px rgba(74, 154, 187, 0.15);
    color: var(--ice-bright);
}
.faq-accordion-item summary:hover {
    color: var(--ice-bright);
}
.faq-accordion-item summary:hover::before {
    border-color: var(--ice);
    box-shadow: 0 0 12px rgba(74, 154, 187, 0.1);
}
.faq-accordion-item .faq-answer {
    padding: 0 0 20px 44px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-mid);
    animation: faqFadeIn 0.3s ease;
}
@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══ RULES NUMBERED LIST (join page) ═══ */
.rules-numbered {
    max-width: 800px;
    margin: 0 auto;
    counter-reset: rule-counter;
    list-style: none;
    padding: 0;
}
.rules-numbered li {
    counter-increment: rule-counter;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--seam);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
}
.rules-numbered li:last-child { border-bottom: none; }
.rules-numbered li::before {
    content: counter(rule-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--seam-bright);
    border-radius: 2px;
    font-family: var(--font-code);
    font-size: 13px;
    font-weight: 400;
    color: var(--ice);
    flex-shrink: 0;
    margin-top: 2px;
    background: rgba(4, 8, 18, 0.4);
    transition: all 0.3s;
}
.rules-numbered li:hover::before {
    border-color: var(--ice);
    box-shadow: 0 0 12px rgba(74, 154, 187, 0.12);
    color: var(--ice-bright);
}
.rules-numbered li strong {
    color: var(--text-heading);
}

/* ═══ GUIDE CARDS (join page) ═══ */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.guide-card {
    background: linear-gradient(160deg, rgba(14, 22, 32, 0.85), rgba(8, 14, 22, 0.8));
    border: 1px solid var(--seam);
    border-radius: 4px;
    padding: 28px 24px;
    transition: all 0.4s;
    position: relative;
}
.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 154, 187, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.guide-card:hover {
    border-color: var(--seam-bright);
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(74, 154, 187, 0.03);
}
.guide-card:hover::before { opacity: 1; }
.guide-card-icon {
    font-size: 28px;
    margin-bottom: 14px;
    display: block;
}
.guide-card h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.guide-card p {
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
    color: var(--text-mid);
}
.guide-card a {
    color: var(--ice);
    border-bottom: 1px solid rgba(74, 154, 187, 0.2);
}
.guide-card a:hover {
    color: var(--ice-bright);
    border-bottom-color: var(--ice);
}

/* ═══ PARTNER PROGRAM (donate page) ═══ */
.partner-panel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(160deg,
        rgba(14, 22, 32, 0.92) 0%,
        rgba(8, 14, 22, 0.88) 100%
    );
    border: 1px solid var(--seam-bright);
    border-radius: 4px;
    padding: 48px 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}
.partner-panel::after {
    content: '';
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background:
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 0 / 18px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 0 / 1px 18px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 0 / 18px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 0 / 1px 18px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 100% / 18px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 100% / 1px 18px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 100% / 18px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 100% / 1px 18px;
    opacity: 0.2;
}
.partner-panel h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.partner-panel > p {
    font-family: var(--font-body);
    font-size: 17px;
    font-style: italic;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 28px;
}
.partner-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}
.partner-benefit {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    background: rgba(4, 8, 18, 0.5);
    border: 1px solid var(--seam);
    border-radius: 3px;
    transition: border-color 0.3s;
}
.partner-benefit:hover {
    border-color: var(--seam-bright);
}
.partner-benefit-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.partner-benefit-text {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
}
.partner-benefit-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--text-heading);
    margin-bottom: 4px;
}
.partner-conditions {
    padding: 20px 0;
    border-top: 1px solid var(--seam);
    border-bottom: 1px solid var(--seam);
    margin-bottom: 24px;
}
.partner-conditions p {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.8;
    margin: 0;
}
.partner-conditions strong {
    color: var(--text-heading);
}
.partner-cta {
    text-align: center;
    padding-top: 8px;
}
.partner-cta p {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
}
.partner-cta a {
    color: var(--ice);
    border-bottom: 1px solid rgba(74, 154, 187, 0.3);
}
.partner-cta a:hover {
    color: var(--ice-bright);
    border-bottom-color: var(--ice);
}

/* Partner responsive */
@media (max-width: 640px) {
    .partner-panel { padding: 28px 20px; }
    .partner-benefits { grid-template-columns: 1fr; }
}
/* Guide responsive */
@media (max-width: 640px) {
    .guides-grid { grid-template-columns: 1fr; }
}

/* ============================================
   #27 — HERO COUNTDOWN TIMER
   ============================================ */
.hero-countdown-section {
    position: relative;
    z-index: 2;
    padding: 80px 0;
    background: rgba(2, 4, 8, 0.96);
    overflow: hidden;
}
.hero-countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74,154,187,0.1), transparent);
}
.hero-countdown-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(160deg, rgba(14,22,32,0.92), rgba(8,14,22,0.88));
    border: 1px solid var(--seam-bright);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.6),
        0 8px 40px rgba(0,0,0,0.5),
        0 0 40px rgba(74,154,187,0.04);
    backdrop-filter: blur(16px);
    padding: 48px 40px;
    position: relative;
}
.hero-countdown-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background:
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 0 / 14px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 0 / 1px 14px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 0 / 14px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 0 / 1px 14px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 100% / 14px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 0 100% / 1px 14px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 100% / 14px 1px,
        linear-gradient(var(--ice), var(--ice)) no-repeat 100% 100% / 1px 14px;
    opacity: 0.15;
    transition: opacity 0.4s;
}
.hero-countdown-card:hover::after { opacity: 0.3; }
.hero-countdown-title {
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 24px;
}
.hero-countdown-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
}
.hero-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}
.hero-countdown-number {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    color: var(--ice);
    line-height: 1;
    text-shadow: 0 0 20px var(--ice-glow), 0 0 40px rgba(74,154,187,0.15);
    transition: transform 0.3s ease;
}
.hero-countdown-number.tick {
    animation: countdown-tick 0.3s ease;
}
@keyframes countdown-tick {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.hero-countdown-label {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-top: 8px;
}
.hero-countdown-separator {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--ice);
    opacity: 0.3;
    align-self: flex-start;
    margin-top: 4px;
    animation: separator-pulse 2s ease-in-out infinite;
}
@keyframes separator-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}
.hero-countdown-launched {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: var(--ice);
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px var(--ice-glow), 0 0 40px rgba(74,154,187,0.2);
    animation: launch-glow 3s ease-in-out infinite;
}
@keyframes launch-glow {
    0%, 100% { text-shadow: 0 0 20px var(--ice-glow), 0 0 40px rgba(74,154,187,0.2); }
    50% { text-shadow: 0 0 30px var(--ice-glow), 0 0 60px rgba(74,154,187,0.35), 0 0 80px rgba(74,154,187,0.1); }
}
@media (max-width: 480px) {
    .hero-countdown-grid { gap: 16px; }
    .hero-countdown-item { min-width: 60px; }
    .hero-countdown-separator { font-size: 24px; }
}

/* ============================================
   #32 — ANIMATED INFOGRAPHIC
   ============================================ */
.infographic-section {
    position: relative;
    z-index: 2;
    padding: 100px 0;
    background: rgba(2, 4, 8, 0.93);
    overflow: hidden;
}
.infographic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.infographic-stat {
    text-align: center;
    padding: 32px 16px;
    background: linear-gradient(160deg, rgba(14,22,32,0.85), rgba(8,14,22,0.8));
    border: 1px solid var(--seam);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 4px 20px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    transition: all 0.4s;
}
.infographic-stat:hover {
    border-color: var(--seam-bright);
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(74,154,187,0.04);
}
.infographic-number {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: var(--ice);
    line-height: 1.1;
    text-shadow: 0 0 16px var(--ice-glow);
    margin-bottom: 8px;
}
.infographic-label {
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mid);
}
@media (max-width: 768px) {
    .infographic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .infographic-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .infographic-stat { padding: 24px 12px; }
}

/* ============================================
   #38 — LORE TOOLTIPS
   ============================================ */
.lore-tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted rgba(74,154,187,0.4);
    color: var(--ice);
    transition: color 0.3s, border-color 0.3s;
}
.lore-tooltip:hover {
    color: var(--ice-bright);
    border-bottom-color: var(--ice);
}
.lore-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(4, 8, 18, 0.96);
    border: 1px solid rgba(74,154,187,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 0 12px rgba(74,154,187,0.06);
    backdrop-filter: blur(12px);
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    font-style: normal;
    line-height: 1.5;
    color: var(--text);
    white-space: nowrap;
    max-width: 300px;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 100;
    border-radius: 3px;
}
.lore-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
@media (max-width: 768px) {
    .lore-tooltip::after {
        max-width: 200px;
        font-size: 13px;
        left: 0;
        transform: translateX(0) translateY(4px);
    }
    .lore-tooltip:hover::after {
        transform: translateX(0) translateY(0);
    }
}

/* ============================================
   #3 — WIKI-STYLE CROSS-LINKS
   ============================================ */
.wiki-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(74, 154, 187, 0.35);
    transition: all 0.3s ease;
    cursor: pointer;
}
.wiki-link:hover {
    color: var(--ice);
    background: rgba(74, 154, 187, 0.06);
    border-bottom-color: var(--ice);
    text-shadow: none;
    text-decoration: none;
}

/* ============================================
   #48 — SIZE COMPARISON
   ============================================ */
.size-comparison {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--seam);
}
.size-comparison h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
}
.size-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 32px;
    min-height: 340px;
    padding: 0 20px 20px;
    position: relative;
}
.size-bars::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(74,154,187,0.1);
}
.size-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.size-bar {
    width: 48px;
    background: linear-gradient(180deg, var(--ice), rgba(74,154,187,0.4));
    box-shadow: 0 0 12px rgba(74,154,187,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
    border-radius: 2px 2px 0 0;
    position: relative;
    transition: box-shadow 0.3s;
}
.size-bar:hover {
    box-shadow: 0 0 20px rgba(74,154,187,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.size-bar.danger {
    background: linear-gradient(180deg, var(--blood), rgba(140,32,32,0.5));
    box-shadow: 0 0 12px rgba(140,32,32,0.2);
}
.size-bar.danger:hover {
    box-shadow: 0 0 20px rgba(140,32,32,0.4);
}
.size-bar-height {
    font-family: var(--font-code);
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-align: center;
    white-space: nowrap;
}
.size-bar-name {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .size-bars { gap: 16px; }
    .size-bar { width: 36px; }
    .size-bar-name { font-size: 9px; }
}

/* ============================================
   #50 — DANGER LEVEL BARS
   ============================================ */
.danger-bar {
    width: 100%;
    height: 6px;
    background: rgba(74,154,187,0.06);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}
.danger-fill {
    height: 100%;
    border-radius: 3px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px currentColor;
}
.danger-fill.animated {
    /* width set by JS based on level */
}
.danger-fill.level-low { background: #2ecc71; color: #2ecc71; }
.danger-fill.level-mid { background: #f39c12; color: #f39c12; }
.danger-fill.level-high { background: #e67e22; color: #e67e22; }
.danger-fill.level-extreme {
    background: linear-gradient(90deg, #e74c3c, #8b2020);
    color: #e74c3c;
}
.danger-label-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.danger-label-text {
    font-family: var(--font-code);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.danger-label-level {
    font-family: var(--font-code);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* ============================================
   #87 — ANIMATED SECTION DIVIDERS
   ============================================ */
.section-divider {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    background: rgba(2, 4, 8, 0.93);
    overflow: hidden;
    user-select: none;
}
.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    max-width: 200px;
    height: 1px;
}
.section-divider::before {
    background: linear-gradient(90deg, transparent, rgba(74,154,187,0.15));
    margin-right: 16px;
}
.section-divider::after {
    background: linear-gradient(270deg, transparent, rgba(74,154,187,0.15));
    margin-left: 16px;
}
.section-divider-runes {
    display: flex;
    gap: 16px;
    font-size: 16px;
    color: var(--ice);
    opacity: 0.25;
    animation: rune-glow 6s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(74,154,187,0.3);
    letter-spacing: 0.3em;
}
@keyframes rune-glow {
    0%, 100% {
        opacity: 0.15;
        text-shadow: 0 0 6px rgba(74,154,187,0.2);
    }
    50% {
        opacity: 0.4;
        text-shadow: 0 0 12px rgba(74,154,187,0.5), 0 0 24px rgba(74,154,187,0.2);
    }
}
.section-divider-runes span {
    display: inline-block;
    animation: rune-float 4s ease-in-out infinite;
}
.section-divider-runes span:nth-child(2) { animation-delay: 0.5s; }
.section-divider-runes span:nth-child(3) { animation-delay: 1.0s; }
.section-divider-runes span:nth-child(4) { animation-delay: 1.5s; }
.section-divider-runes span:nth-child(5) { animation-delay: 2.0s; }
.section-divider-runes span:nth-child(6) { animation-delay: 2.5s; }
@keyframes rune-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* ============================================
   #127 — USERNAME CHECK INDICATOR
   ============================================ */
.username-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0.04em;
    vertical-align: middle;
    transition: opacity 0.3s;
}
.username-check.available {
    color: #2ecc71;
}
.username-check.taken {
    color: var(--blood-bright);
}
.username-check.checking {
    color: var(--text-dim);
}
.username-check-icon {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
}
.username-check .spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--seam-bright);
    border-top-color: var(--ice);
    border-radius: 50%;
    animation: spin-check 0.6s linear infinite;
}
@keyframes spin-check {
    to { transform: rotate(360deg); }
}
.form-group-username {
    position: relative;
}
.form-group-username .username-check {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}
