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

:root {
    --bg-void: #050508;
    --bg-deep: #08080d;
    --bg-surface: #0c0c14;
    --bg-card: #0f0f1a;
    --blood: #8b1a1a;
    --blood-bright: #c41e3a;
    --blood-glow: rgba(139, 26, 26, 0.4);
    --eye-blue: #2a6fdb;
    --eye-glow: rgba(42, 111, 219, 0.5);
    --bone: #d4c5a9;
    --bone-dim: #8a7e68;
    --flesh: #3a2020;
    --ink: #c8bfa0;
    --ink-dim: #6b6352;
    --ink-faint: #3d3a30;
    --shadow-purple: #1a0a2e;
    --rot: #2a1a0a;
    --font-chapter: 'Cinzel', serif;
    --font-prose: 'EB Garamond', 'Georgia', serif;
    --font-horror: 'Creepster', cursive;
    --font-whisper: 'Special Elite', cursive;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--blood) var(--bg-void);
    scroll-snap-type: y proximity;
}

body {
    background: var(--bg-void);
    color: var(--ink);
    font-family: var(--font-prose);
    font-size: clamp(16px, 1.15vw + 14px, 19px);
    line-height: 2;
    overflow-x: hidden;
    cursor: default;
}

::selection {
    background: var(--blood);
    color: var(--bone);
}

/* ==================== FILM GRAIN + VIGNETTE ==================== */
#grain {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: overlay;
}

#vignette {
    position: fixed;
    inset: 0;
    z-index: 9997;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.7) 100%);
}

/* ==================== FOG LAYERS ==================== */
#fog {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.12;
}

.fog-layer {
    position: absolute;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 60px,
        rgba(139, 26, 26, 0.015) 60px,
        rgba(139, 26, 26, 0.015) 61px
    );
}

.fog-layer:nth-child(1) {
    animation: fogDrift 40s linear infinite;
    opacity: 0.5;
}

.fog-layer:nth-child(2) {
    animation: fogDrift 60s linear infinite reverse;
    opacity: 0.3;
    top: 30%;
}

@keyframes fogDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================== AMBIENT CANVAS ==================== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.25;
}

/* ==================== BLOOD DRIP / PROGRESS ==================== */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--blood-bright);
    z-index: 10000;
    box-shadow: 0 0 8px var(--blood-glow), 0 2px 15px var(--blood-glow);
    transition: width 0.15s linear;
}

/* ==================== GLITCH / HORROR OVERLAY ==================== */
#glitch-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(139, 26, 26, 0.04) 1px,
            rgba(139, 26, 26, 0.04) 2px
        );
}

#glitch-overlay.active {
    opacity: 1;
    animation: horrorFlash 0.4s ease-out;
}

@keyframes horrorFlash {
    0% { opacity: 1; background-color: rgba(139, 26, 26, 0.15); }
    15% { opacity: 0.8; transform: translateX(-3px); }
    30% { opacity: 0.5; transform: translateX(2px) skewX(0.5deg); }
    50% { opacity: 0.3; transform: translateX(-1px); background-color: transparent; }
    100% { opacity: 0; transform: translateX(0); }
}

/* ==================== CHAPTER NAV ==================== */
#chapter-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.nav-label {
    font-family: var(--font-chapter);
    font-size: 8px;
    letter-spacing: 4px;
    color: var(--ink-faint);
    margin-bottom: 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    text-transform: uppercase;
}

.nav-dots {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink-faint);
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
}

.nav-dot span {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--ink-dim);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: var(--font-chapter);
    letter-spacing: 2px;
}

.nav-dot:hover span { opacity: 1; }

.nav-dot.active {
    background: var(--blood-bright);
    box-shadow: 0 0 8px var(--blood-glow);
    transform: scale(1.6);
}

/* ==================== SECTIONS ==================== */
.section {
    min-height: 100vh;
    position: relative;
    z-index: 2;
    padding: 120px 24px 100px;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(139, 26, 26, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 70%, rgba(42, 111, 219, 0.03) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-emoji {
    font-size: 60px;
    margin-bottom: 30px;
    filter: grayscale(40%) drop-shadow(0 0 40px var(--blood-glow));
    animation: emojiBreath 4s ease-in-out infinite;
}

@keyframes emojiBreath {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.hero-title {
    font-family: var(--font-horror);
    font-size: clamp(70px, 14vw, 180px);
    letter-spacing: 15px;
    color: var(--blood-bright);
    text-shadow:
        0 0 20px var(--blood-glow),
        0 0 60px rgba(139, 26, 26, 0.3),
        0 4px 30px rgba(0,0,0,0.8);
    line-height: 1;
    margin-bottom: 30px;
    position: relative;
}

.hero-arc {
    font-family: var(--font-chapter);
    font-size: clamp(11px, 2vw, 14px);
    letter-spacing: 20px;
    color: var(--ink-dim);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: var(--font-prose);
    font-size: clamp(14px, 2vw, 18px);
    color: var(--ink-faint);
    letter-spacing: 6px;
    font-style: italic;
    text-transform: lowercase;
}

.scroll-indicator {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-indicator span {
    font-size: 10px;
    letter-spacing: 5px;
    color: var(--ink-faint);
    text-transform: uppercase;
    font-family: var(--font-chapter);
}

.scroll-arrow {
    width: 16px;
    height: 16px;
    border-right: 1px solid var(--ink-faint);
    border-bottom: 1px solid var(--ink-faint);
    transform: rotate(45deg);
    animation: scrollBounce 3s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.6; }
    50% { transform: rotate(45deg) translateY(8px); opacity: 0.1; }
}

/* ==================== GLITCH TEXT ==================== */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text:hover::before {
    animation: glitch1 0.4s steps(2) infinite;
    color: var(--eye-blue);
    opacity: 0.6;
    clip-path: inset(0 0 60% 0);
}

.glitch-text:hover::after {
    animation: glitch2 0.4s steps(2) infinite;
    color: var(--blood-bright);
    opacity: 0.6;
    clip-path: inset(60% 0 0 0);
}

@keyframes glitch1 {
    0% { transform: translate(0); }
    50% { transform: translate(-4px, 2px); }
    100% { transform: translate(0); }
}

@keyframes glitch2 {
    0% { transform: translate(0); }
    50% { transform: translate(4px, -2px); }
    100% { transform: translate(0); }
}

/* ==================== CHAPTER HEADER ==================== */
.chapter-header {
    text-align: center;
    margin-bottom: 100px;
    padding-top: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid transparent;
    background-image: linear-gradient(var(--bg-void), var(--bg-void)),
        linear-gradient(90deg, transparent, rgba(139, 26, 26, 0.4), transparent);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
}

.chapter-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 26, 26, 0.35), transparent);
    box-shadow: 0 0 12px rgba(139, 26, 26, 0.2), 0 0 30px rgba(139, 26, 26, 0.08);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.chapter-header.visible::after,
.section.visible .chapter-header::after {
    opacity: 1;
}

.chapter-icon {
    font-size: 36px;
    margin-bottom: 30px;
    filter: grayscale(60%);
    opacity: 0.6;
}

.chapter-number {
    font-family: var(--font-chapter);
    font-size: 11px;
    letter-spacing: 10px;
    color: var(--blood);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.chapter-title {
    font-family: var(--font-chapter);
    font-size: clamp(20px, 4vw, 42px);
    color: var(--bone);
    margin-bottom: 20px;
    font-weight: 400;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    padding: 0 8px;
}

.chapter-location {
    font-family: var(--font-whisper);
    font-size: 13px;
    color: var(--ink-faint);
    letter-spacing: 4px;
}

/* ==================== CHAPTER CONTENT ==================== */
.chapter-content {
    max-width: min(640px, 65ch);
    margin: 0 auto;
    padding: 0 8px;
}

/* ==================== PROSE TEXT ==================== */
.text-block {
    margin-bottom: 35px;
    padding: 0 4px;
}

.text-block p {
    margin-bottom: 18px;
    color: var(--ink-dim);
    font-size: clamp(16px, 1vw + 14px, 18px);
    line-height: 2;
    text-align: justify;
    hyphens: auto;
    max-width: 65ch;
}

.text-block p:last-child {
    margin-bottom: 0;
}

.emphasis {
    color: var(--ink) !important;
    font-style: italic;
    border-left: 2px solid var(--blood);
    padding-left: 24px;
    margin: 35px 0 !important;
    text-align: left !important;
}

.dramatic {
    font-size: 21px;
    font-weight: 400;
    color: var(--bone) !important;
    text-align: center;
    margin: 40px 0 !important;
    font-style: italic;
    text-shadow:
        0 0 30px rgba(139, 26, 26, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(212, 197, 169, 0.08);
    letter-spacing: 1px;
}

.highlight {
    color: var(--bone);
    font-weight: 600;
}

.highlight-red {
    color: var(--blood-bright);
    font-weight: 600;
    text-shadow: 0 0 10px var(--blood-glow);
}

.highlight-blue {
    color: var(--eye-blue);
    font-weight: 600;
    text-shadow: 0 0 10px var(--eye-glow);
}

/* ==================== SUB HEADERS ==================== */
.sub-header {
    text-align: center;
    margin: 80px 0 50px;
    position: relative;
}

.sub-header::before,
.sub-header::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blood), transparent);
    opacity: 0.4;
}

.sub-header::before { right: calc(50% + 140px); }
.sub-header::after { left: calc(50% + 140px); }

.sub-header h3 {
    font-family: var(--font-chapter);
    font-size: clamp(15px, 2.5vw, 20px);
    color: var(--bone-dim);
    letter-spacing: 3px;
    font-weight: 400;
}

/* ==================== DRAMATIC MOMENT ==================== */
.dramatic-moment {
    text-align: center;
    padding: 50px 20px;
    margin: 30px 0;
}

.time-stamp {
    font-family: var(--font-horror);
    font-size: 42px;
    color: var(--blood-bright);
    text-shadow: 0 0 20px var(--blood-glow), 0 0 60px rgba(139, 26, 26, 0.2);
    letter-spacing: 8px;
}

/* ==================== JIMMY APPARITION ==================== */
.jimmy-apparition {
    text-align: center;
    padding: 80px 30px;
    margin: 50px -20px;
    background:
        radial-gradient(ellipse at center, rgba(139, 26, 26, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at center, rgba(5, 5, 8, 0.9) 0%, transparent 100%);
    border-top: 1px solid rgba(139, 26, 26, 0.1);
    border-bottom: 1px solid rgba(139, 26, 26, 0.1);
    position: relative;
    overflow: hidden;
}

.jimmy-apparition::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(139, 26, 26, 0.015) 2px,
        rgba(139, 26, 26, 0.015) 4px
    );
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.jimmy-apparition.small {
    padding: 50px 30px;
}

.apparition-text {
    font-family: var(--font-chapter);
    font-size: 24px;
    color: var(--bone);
    margin-bottom: 12px;
    letter-spacing: 4px;
}

.apparition-subtitle {
    font-family: var(--font-prose);
    font-size: 16px;
    color: var(--ink-faint);
    font-style: italic;
    margin-bottom: 40px;
}

/* Jimmy Eyes */
.jimmy-visual {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.jimmy-visual.large {
    gap: 16px;
}

.jimmy-eye {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--eye-blue);
    box-shadow:
        0 0 10px var(--eye-blue),
        0 0 25px var(--eye-glow),
        0 0 50px rgba(42, 111, 219, 0.15),
        inset 0 0 4px rgba(255,255,255,0.3);
    animation: eyeWatch 3s ease-in-out infinite;
}

.jimmy-eye:nth-child(2) { animation-delay: 0.5s; width: 18px; height: 18px; }
.jimmy-eye:nth-child(3) { animation-delay: 1s; width: 12px; height: 12px; }
.jimmy-eye:nth-child(4) { animation-delay: 1.5s; width: 10px; height: 10px; }
.jimmy-eye:nth-child(5) { animation-delay: 2s; width: 16px; height: 16px; }

@keyframes eyeWatch {
    0%, 100% { opacity: 1; transform: scale(1); filter: brightness(1); }
    25% { opacity: 0.9; transform: scale(1.05); filter: brightness(1.1); }
    38% { opacity: 0.15; transform: scale(0.7) scaleY(0.3); filter: brightness(0.5); }
    42% { opacity: 0; transform: scale(0.5) scaleY(0.1); filter: brightness(0); }
    46% { opacity: 0.6; transform: scale(0.85) scaleY(0.7); filter: brightness(1.3); }
    52% { opacity: 1; transform: scale(1.08); filter: brightness(1.15); }
    60% { opacity: 1; transform: scale(1); filter: brightness(1); }
    80% { opacity: 0.85; transform: scale(0.98); filter: brightness(0.95); }
}

/* ==================== DIALOGUE ==================== */
.dialogue-block {
    padding: 18px 24px;
    margin: 18px 0;
    border-radius: 2px;
    position: relative;
    font-family: var(--font-prose);
}

.dialogue-speaker {
    font-family: var(--font-chapter);
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 6px;
    opacity: 0.7;
}

.dialogue-block p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink);
}

/* Scory */
.dialogue-block.scory {
    background: linear-gradient(90deg, rgba(139, 26, 26, 0.08), transparent);
    border-left: 2px solid var(--blood);
}

.dialogue-block.scory .dialogue-speaker {
    color: var(--blood-bright);
}

/* Flaynn */
.dialogue-block.flaynn {
    background: linear-gradient(90deg, rgba(42, 111, 219, 0.06), transparent);
    border-left: 2px solid rgba(42, 111, 219, 0.4);
}

.dialogue-block.flaynn .dialogue-speaker {
    color: var(--eye-blue);
}

/* Demon */
.dialogue-block.demon {
    background: linear-gradient(90deg, rgba(26, 10, 46, 0.3), transparent);
    border-left: 2px solid var(--shadow-purple);
    box-shadow: 0 0 30px rgba(26, 10, 46, 0.2);
}

.dialogue-block.demon .dialogue-speaker {
    color: #6633aa;
}

.dialogue-block.demon p {
    color: var(--bone);
    font-style: italic;
}

.dialogue-block.important {
    border-left-width: 3px;
}

.dialogue-exchange {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 35px 0;
}

.dialogue-exchange .dialogue-block {
    margin: 0;
}

/* ==================== PHONE MESSAGES ==================== */
.phone-messages {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 16px;
    margin: 30px 0;
    max-width: 360px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    font-family: -apple-system, sans-serif;
}

.message {
    background: rgba(42, 111, 219, 0.1);
    border-radius: 10px;
    padding: 8px 14px;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--ink);
}

.message:last-child { margin-bottom: 0; }

.message.urgent {
    background: rgba(139, 26, 26, 0.15);
    border: 1px solid rgba(139, 26, 26, 0.2);
}

.msg-sender {
    font-weight: 600;
    color: var(--eye-blue);
    display: block;
    font-size: 11px;
    margin-bottom: 2px;
}

/* ==================== POWER CARDS ==================== */
.power-section {
    margin: 50px 0;
}

.power-category-title {
    font-family: var(--font-chapter);
    font-size: 18px;
    color: var(--bone-dim);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: 2px;
    font-weight: 400;
}

.power-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--blood);
    color: var(--blood-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-chapter);
    font-size: 13px;
    flex-shrink: 0;
}

.power-description {
    color: var(--ink-dim);
    margin-bottom: 20px;
    font-size: 16px;
    font-style: italic;
}

.power-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.power-card {
    background: var(--bg-surface);
    border: 1px solid rgba(139, 26, 26, 0.1);
    border-radius: 4px;
    padding: 18px;
    transition: all 0.4s ease;
}

.power-card:hover {
    border-color: rgba(139, 26, 26, 0.3);
    box-shadow: 0 0 25px rgba(139, 26, 26, 0.08);
}

.power-card.kido {
    border-color: rgba(26, 10, 46, 0.3);
}

.power-card.kido:hover {
    border-color: rgba(102, 51, 170, 0.4);
    box-shadow: 0 0 25px rgba(26, 10, 46, 0.15);
}

.power-card.single {
    max-width: 480px;
    margin: 20px auto;
}

.power-card-icon {
    font-size: 20px;
    margin-bottom: 8px;
    filter: grayscale(50%);
}

.power-card h4 {
    font-family: var(--font-chapter);
    font-size: 13px;
    color: var(--bone-dim);
    margin-bottom: 6px;
    letter-spacing: 2px;
    font-weight: 400;
}

.power-card p {
    font-size: 14px;
    color: var(--ink-dim);
    line-height: 1.6;
}

/* ==================== INVOCATION WORD ==================== */
.invocation-word {
    font-family: var(--font-horror);
    font-size: clamp(40px, 9vw, 80px);
    text-align: center;
    color: var(--blood-bright);
    text-shadow:
        0 0 15px var(--blood-glow),
        0 0 40px rgba(139, 26, 26, 0.3),
        0 0 80px rgba(139, 26, 26, 0.1);
    margin: 50px 0;
    letter-spacing: 8px;
    position: relative;
    animation: invocationBreath 4s ease-in-out infinite;
}

@keyframes invocationBreath {
    0%, 100% {
        text-shadow:
            0 0 15px var(--blood-glow),
            0 0 40px rgba(139, 26, 26, 0.3),
            0 0 80px rgba(139, 26, 26, 0.1);
        filter: brightness(1);
    }
    50% {
        text-shadow:
            0 0 25px rgba(196, 30, 58, 0.6),
            0 0 60px rgba(139, 26, 26, 0.5),
            0 0 120px rgba(139, 26, 26, 0.25),
            0 0 180px rgba(139, 26, 26, 0.1);
        filter: brightness(1.15);
    }
}

.invocation-word.small {
    font-size: clamp(28px, 5vw, 42px);
    margin: 35px 0;
}

.invocation-word.end {
    color: #6633aa;
    text-shadow:
        0 0 15px rgba(102, 51, 170, 0.5),
        0 0 40px rgba(102, 51, 170, 0.2);
}

/* ==================== EXPLOSION SCENE ==================== */
.explosion-scene {
    text-align: center;
    padding: 70px 20px;
    margin: 50px -20px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(139, 26, 26, 0.04), transparent);
}

.explosion-word {
    font-family: var(--font-chapter);
    font-size: clamp(16px, 3.5vw, 28px);
    color: var(--blood-bright);
    letter-spacing: 12px;
    text-shadow: 0 0 20px var(--blood-glow);
    position: relative;
    z-index: 2;
    font-weight: 700;
}

.explosion-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 26, 26, 0.08), transparent);
    animation: voidPulse 3s infinite;
}

@keyframes voidPulse {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.6; }
}

/* ==================== CHECKLIST ==================== */
.checklist {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    background: rgba(139, 26, 26, 0.04);
    border-left: 2px solid var(--blood);
    color: var(--ink-dim);
    font-size: 15px;
}

.check-item::before {
    content: '\2717';
    color: var(--blood-bright);
    font-weight: bold;
    font-size: 12px;
    opacity: 0.7;
}

.checklist.manga .check-item {
    border-left-color: rgba(42, 111, 219, 0.3);
    background: rgba(42, 111, 219, 0.03);
}

.checklist.manga .check-item::before {
    content: '\2713';
    color: var(--eye-blue);
}

/* ==================== NARRATOR BLOCK ==================== */
.narrator-block {
    border-left: 2px solid var(--bone-dim);
    padding: 18px 24px;
    margin: 35px 0;
    background: linear-gradient(90deg, rgba(212, 197, 169, 0.03), transparent);
}

.narrator-block p {
    color: var(--ink-dim);
    font-style: italic;
    font-size: 16px;
}

/* ==================== 4TH WALL BREAK ==================== */
.fourth-wall {
    background: var(--bg-surface);
    border: 1px solid rgba(212, 197, 169, 0.1);
    padding: 30px;
    margin: 50px 0;
    position: relative;
}

.fourth-wall::before {
    content: 'NARRATEUR';
    position: absolute;
    top: -8px;
    left: 20px;
    background: var(--bg-void);
    padding: 0 12px;
    font-family: var(--font-chapter);
    font-size: 9px;
    color: var(--bone-dim);
    letter-spacing: 5px;
}

.fourth-wall h3 {
    font-family: var(--font-chapter);
    font-size: 18px;
    color: var(--bone-dim);
    margin-bottom: 15px;
    letter-spacing: 3px;
    font-weight: 400;
}

.fourth-wall p {
    color: var(--ink-dim);
    margin-bottom: 10px;
    font-size: 16px;
    font-style: italic;
}

/* ==================== FAIT DIVERS ==================== */
.fait-divers .chapter-header {
    border-bottom: 1px solid rgba(139, 26, 26, 0.15);
    padding-bottom: 40px;
}

.fait-divers .chapter-number {
    color: var(--bone-dim);
}

/* ==================== DIVIDER ==================== */
.divider {
    width: 60px;
    height: 1px;
    background: var(--blood);
    margin: 70px auto;
    opacity: 0.4;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blood);
}

/* ==================== END SECTION ==================== */
.end-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
}

.end-title {
    font-family: var(--font-horror);
    font-size: clamp(24px, 6vw, 48px);
    color: var(--blood-bright);
    letter-spacing: 8px;
    text-shadow: 0 0 30px var(--blood-glow);
    margin-bottom: 20px;
    animation: endTitleBreath 5s ease-in-out infinite;
}

@keyframes endTitleBreath {
    0%, 100% {
        text-shadow: 0 0 30px var(--blood-glow);
        opacity: 0.85;
    }
    50% {
        text-shadow:
            0 0 20px rgba(196, 30, 58, 0.5),
            0 0 50px rgba(139, 26, 26, 0.4),
            0 0 100px rgba(139, 26, 26, 0.2);
        opacity: 1;
    }
}

.end-subtitle {
    font-family: var(--font-prose);
    font-size: 16px;
    color: var(--ink-faint);
    letter-spacing: 4px;
    font-style: italic;
    margin-bottom: 50px;
}

.end-jimmy {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ==================== SCROLL ANIMATIONS ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll[data-animation="fade-up"].visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll[data-animation="scale-in"] {
    transform: scale(0.85);
}

.animate-on-scroll[data-animation="scale-in"].visible {
    opacity: 1;
    transform: scale(1);
}

.animate-on-scroll[data-animation="glitch-in"].visible {
    opacity: 1;
    transform: translateY(0);
    animation: horrorReveal 0.6s ease-out;
}

@keyframes horrorReveal {
    0% { opacity: 0; transform: translateY(10px); filter: blur(6px) brightness(0.3); }
    30% { filter: blur(3px) brightness(2); }
    50% { filter: blur(1px) brightness(0.8); }
    70% { filter: blur(0) brightness(1.2); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0) brightness(1); }
}

.animate-on-scroll[data-animation="jimmy-reveal"] {
    transform: scale(0.95);
}

.animate-on-scroll[data-animation="jimmy-reveal"].visible {
    opacity: 1;
    transform: scale(1);
    animation: jimmyManifest 1.2s ease-out;
}

@keyframes jimmyManifest {
    0% { opacity: 0; transform: scale(0.9); filter: blur(15px) brightness(0.2); }
    20% { filter: blur(10px) brightness(0.4); }
    40% { opacity: 0.5; filter: blur(5px) brightness(3); }
    45% { filter: blur(8px) brightness(0.5); }
    60% { opacity: 0.8; filter: blur(2px) brightness(1.5); }
    80% { filter: blur(0) brightness(1); }
    100% { opacity: 1; transform: scale(1); filter: none; }
}

.animate-on-scroll[data-animation="explosion"].visible {
    opacity: 1;
    transform: translateY(0);
    animation: destructionReveal 1s ease-out;
}

@keyframes destructionReveal {
    0% { opacity: 0; transform: scale(0.6); filter: brightness(5) saturate(0); }
    20% { transform: scale(1.1); filter: brightness(3) saturate(0.5); }
    40% { transform: scale(0.98); }
    60% { filter: brightness(1.5) saturate(1); }
    100% { opacity: 1; transform: scale(1); filter: none; }
}

/* Delays */
.animate-on-scroll[data-delay="200"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="400"] { transition-delay: 0.4s; }
.animate-on-scroll[data-delay="600"] { transition-delay: 0.6s; }
.animate-on-scroll[data-delay="800"] { transition-delay: 0.8s; }

/* ==================== INK BLEED ON HOVER (prose) ==================== */
.text-block p:hover {
    color: var(--ink);
    transition: color 0.6s ease;
}

/* ==================== LANDING PAGE ==================== */
.landing-hero {
    min-height: 70vh;
}

.arc-selection {
    min-height: auto;
    padding: 40px clamp(14px, 4vw, 24px) 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arc-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 640px;
    width: 100%;
}

.arc-card {
    display: block;
    text-decoration: none;
    background: var(--bg-surface);
    border: 1px solid rgba(139, 26, 26, 0.1);
    padding: 35px 30px;
    position: relative;
    transition: all 0.5s ease;
    overflow: hidden;
    cursor: pointer;
}

.arc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.03), transparent);
    transition: all 0.5s ease;
}

.arc-card:hover {
    border-color: rgba(139, 26, 26, 0.35);
    box-shadow: 0 0 40px rgba(139, 26, 26, 0.08);
    transform: translateX(5px);
}

.arc-card:hover::before {
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.08), transparent);
}

.arc-card-number {
    font-family: var(--font-chapter);
    font-size: 10px;
    letter-spacing: 8px;
    color: var(--blood);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.arc-card-title {
    font-family: var(--font-chapter);
    font-size: clamp(22px, 4vw, 32px);
    color: var(--bone);
    margin-bottom: 14px;
    font-weight: 400;
    letter-spacing: 2px;
}

.arc-card-description {
    font-family: var(--font-prose);
    font-size: 15px;
    color: var(--ink-dim);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.arc-card-chapters {
    font-family: var(--font-chapter);
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--ink-faint);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.arc-card-eyes {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
}

.arc-card-eyes .jimmy-eye {
    width: 6px;
    height: 6px;
}

.arc-card-arrow {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--blood);
    opacity: 0;
    transition: all 0.4s ease;
}

.arc-card:hover .arc-card-arrow {
    opacity: 0.6;
    transform: translateY(-50%) translateX(5px);
}

/* ==================== ARC NAVIGATION (bottom of arc pages) ==================== */
.arc-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 60px 20px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(139, 26, 26, 0.1);
    margin-top: 40px;
}

.arc-nav-link {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-chapter);
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ink-dim);
    padding: 16px 32px;
    border: 1px solid rgba(139, 26, 26, 0.25);
    transition: all 0.4s ease;
    background: rgba(139, 26, 26, 0.03);
    position: relative;
}

.arc-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--blood-bright);
    transition: width 0.4s ease;
    box-shadow: 0 0 8px var(--blood-glow);
}

.arc-nav-link:hover::after {
    width: 80%;
}

.arc-nav-link:hover {
    color: var(--bone);
    border-color: var(--blood);
    box-shadow: 0 0 25px rgba(139, 26, 26, 0.12);
    background: rgba(139, 26, 26, 0.06);
    transform: translateY(-2px);
}

.arc-nav-link.primary {
    border-color: var(--blood);
    color: var(--bone-dim);
    background: rgba(139, 26, 26, 0.06);
    box-shadow: 0 0 15px rgba(139, 26, 26, 0.06);
}

.arc-nav-link.primary:hover {
    background: rgba(139, 26, 26, 0.12);
    color: var(--bone);
    box-shadow: 0 0 30px rgba(139, 26, 26, 0.15);
}

/* ==================== PROLOGUE (Arc 2) ==================== */
.prologue {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.prologue-content {
    max-width: 600px;
}

.prologue-content p {
    font-family: var(--font-prose);
    font-size: 17px;
    color: var(--ink-dim);
    line-height: 2;
    font-style: italic;
    margin-bottom: 15px;
    text-align: justify;
}

/* ==================== KERIAN DIALOGUE ==================== */
.dialogue-block.kerian {
    background: linear-gradient(90deg, rgba(212, 197, 169, 0.06), transparent);
    border-left: 2px solid rgba(212, 197, 169, 0.3);
}

.dialogue-block.kerian .dialogue-speaker {
    color: var(--bone-dim);
}

/* ==================== NIXILIYS DIALOGUE ==================== */
.dialogue-block.nixiliys {
    background: linear-gradient(90deg, rgba(26, 10, 46, 0.4), rgba(139, 26, 26, 0.05));
    border-left: 2px solid #4a1a6e;
    box-shadow: 0 0 30px rgba(26, 10, 46, 0.15);
}

.dialogue-block.nixiliys .dialogue-speaker {
    color: #7733bb;
}

.dialogue-block.nixiliys p {
    color: var(--bone);
}

/* ==================== SCENE IMAGES ==================== */
.scene-image {
    margin: 40px auto;
    max-width: 100%;
    text-align: center;
}
.scene-image img {
    width: 100%;
    max-width: 700px;
    border: 1px solid rgba(139, 26, 26, 0.15);
    filter: grayscale(15%) contrast(1.1);
    transition: filter 0.5s;
}
.scene-image img:hover {
    filter: grayscale(0%) contrast(1.15) brightness(1.05);
}
.scene-image.character-portrait img {
    max-width: 300px;
}

/* ==================== CUSTOM CURSOR ==================== */
body {
    cursor: none;
}
a, button, .nav-dot, .arc-card, .home-arc, .home-link {
    cursor: none;
}
#custom-cursor {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    mix-blend-mode: difference;
}
#custom-cursor .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--blood-bright);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--blood-glow), 0 0 20px rgba(196, 30, 58, 0.3);
}
#custom-cursor .cursor-ring {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(139, 26, 26, 0.3);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
}

/* ==================== DIALOGUE GLASSMORPHISM ==================== */
.dialogue-block {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ==================== DIVIDER PULSE ==================== */
.divider {
    animation: dividerPulse 4s ease-in-out infinite;
}
@keyframes dividerPulse {
    0%, 100% { opacity: 0.3; width: 60px; }
    50% { opacity: 0.6; width: 80px; }
}

/* ==================== JIMMY APPARITION AURA ==================== */
.jimmy-apparition::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(42, 111, 219, 0.03) 0%, transparent 70%);
    animation: jimmyAura 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes jimmyAura {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* ==================== SCENE IMAGE KEN BURNS ==================== */
.scene-image img {
    animation: kenBurns 20s ease-in-out infinite alternate;
}
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* ==================== ENHANCED PROGRESS BAR ==================== */
#progress-bar {
    box-shadow: 0 0 8px var(--blood-glow), 0 2px 15px var(--blood-glow), 0 0 30px rgba(196, 30, 58, 0.4), 0 0 60px rgba(139, 26, 26, 0.2);
}

/* ==================== TEXT REVEAL ENHANCEMENTS ==================== */
.animate-on-scroll[data-animation="fade-up"] {
    filter: blur(2px);
}
.animate-on-scroll[data-animation="fade-up"].visible {
    filter: blur(0);
}

.dramatic.visible {
    animation: dramaticGlow 2s ease-out;
}
@keyframes dramaticGlow {
    0% { text-shadow: 0 0 30px rgba(139, 26, 26, 0.2), 0 1px 3px rgba(0, 0, 0, 0.6); }
    30% { text-shadow: 0 0 60px rgba(196, 30, 58, 0.6), 0 0 120px rgba(139, 26, 26, 0.4), 0 1px 3px rgba(0, 0, 0, 0.6); }
    100% { text-shadow: 0 0 30px rgba(139, 26, 26, 0.2), 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 12px rgba(212, 197, 169, 0.08); }
}

/* ==================== CHAPTER HEADER FLOAT ==================== */
.chapter-header {
    animation: chapterFloat 6s ease-in-out infinite;
}
@keyframes chapterFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ==================== VIGNETTE BREATHING ==================== */
#vignette {
    animation: vignetteBreathe 8s ease-in-out infinite;
}
@keyframes vignetteBreathe {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

/* ==================== BLOOD TRAIL CANVAS ==================== */
#blood-trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9996;
    pointer-events: none;
}

/* ==================== GLITCH ENHANCEMENT ==================== */
#glitch-overlay.active-heavy {
    opacity: 1;
    animation: heavyGlitch 0.5s ease-out;
}
@keyframes heavyGlitch {
    0% { opacity: 1; background-color: rgba(139, 26, 26, 0.25); transform: translate(-5px, 2px) skewX(2deg); }
    10% { transform: translate(4px, -3px) skewX(-1deg); background-color: rgba(42, 111, 219, 0.15); }
    20% { transform: translate(-3px, 1px) skewX(1.5deg); background-color: rgba(139, 26, 26, 0.2); }
    30% { transform: translate(2px, -2px) skewX(-0.5deg); }
    40% { transform: translate(-1px, 3px); background-color: transparent; }
    60% { transform: translate(1px, -1px); opacity: 0.5; }
    100% { opacity: 0; transform: translate(0); }
}

#glitch-overlay.active-flash {
    opacity: 1;
    animation: whiteFlash 0.4s ease-out;
}
@keyframes whiteFlash {
    0% { opacity: 1; background-color: rgba(255, 255, 255, 0.5); }
    15% { background-color: rgba(255, 255, 255, 0.3); transform: translate(-2px, 1px); }
    30% { background-color: rgba(139, 26, 26, 0.1); transform: translate(1px, -1px); }
    50% { background-color: transparent; }
    100% { opacity: 0; transform: translate(0); }
}

/* ==================== JIMMY EYE BLINK ==================== */
.jimmy-eye.blinking {
    animation: eyeBlink 0.15s ease-in-out !important;
}
@keyframes eyeBlink {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); opacity: 0.2; }
    100% { transform: scaleY(1); }
}
.jimmy-eye.enhanced-glow {
    box-shadow:
        0 0 15px var(--eye-blue),
        0 0 35px var(--eye-glow),
        0 0 70px rgba(42, 111, 219, 0.25),
        inset 0 0 6px rgba(255,255,255,0.4) !important;
    transform: scale(1.15);
    transition: all 0.3s ease;
}

/* ==================== PROGRESS SPARK CONTAINER ==================== */
#progress-sparks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 10001;
    pointer-events: none;
    overflow: visible;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .section {
        padding: 80px 18px 60px;
    }

    body {
        font-size: 17px;
    }

    .chapter-content {
        max-width: 100%;
        padding: 0 4px;
    }

    .text-block {
        margin-left: 4px;
        margin-right: 4px;
    }

    .text-block p {
        text-align: left;
    }

    .power-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .power-card {
        padding: 16px;
    }

    /* Chapter nav transforms into horizontal bottom bar on tablets */
    #chapter-nav {
        right: auto;
        left: 0;
        top: auto;
        bottom: 0;
        transform: none;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 10px 16px;
        background: linear-gradient(0deg, var(--bg-void) 60%, transparent);
    }

    .nav-label {
        display: none;
    }

    .nav-dots {
        flex-direction: row;
        gap: 8px;
    }

    .nav-dot {
        width: 8px;
        height: 8px;
    }

    .nav-dot span {
        display: none;
    }

    .sub-header::before,
    .sub-header::after {
        display: none;
    }

    .sub-header {
        margin: 50px 0 35px;
    }

    .jimmy-apparition {
        margin: 40px -18px;
        padding: 40px 18px;
    }

    .jimmy-apparition.small {
        padding: 35px 18px;
    }

    .explosion-scene {
        margin: 50px -18px;
    }

    .dialogue-block {
        padding: 14px 16px;
    }

    .dialogue-exchange {
        gap: 8px;
        margin: 28px 0;
    }

    .arc-card {
        padding: 28px 22px;
    }

    .arc-grid {
        gap: 18px;
    }

    .emphasis {
        padding-left: 16px;
    }

    .fourth-wall {
        padding: 24px 18px;
        margin: 35px 0;
    }

    .narrator-block {
        padding: 14px 18px;
    }

    .arc-nav {
        gap: 14px;
        padding: 40px 16px;
    }

    .arc-nav-link {
        padding: 14px 22px;
        font-size: 11px;
        letter-spacing: 3px;
    }

    .chapter-header {
        margin-bottom: 60px;
    }

    .hero-arc {
        letter-spacing: 10px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 70px 14px 80px;
    }

    .hero-title {
        letter-spacing: 8px;
    }

    .hero-subtitle {
        letter-spacing: 3px;
    }

    .hero-arc {
        letter-spacing: 6px;
        font-size: 10px;
    }

    .invocation-word {
        letter-spacing: 4px;
    }

    .invocation-word.small {
        letter-spacing: 2px;
    }

    /* Bottom bar remains visible on small phones */
    #chapter-nav {
        padding: 8px 12px;
    }

    .nav-dot {
        width: 7px;
        height: 7px;
    }

    .arc-card {
        padding: 22px 18px;
    }

    .arc-card-arrow {
        display: none;
    }

    .arc-card-title {
        font-size: clamp(18px, 5vw, 28px);
    }

    .arc-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .arc-nav-link {
        text-align: center;
        padding: 14px 18px;
    }

    .chapter-title {
        font-size: clamp(18px, 5vw, 32px);
        letter-spacing: 1px;
    }

    .chapter-number {
        letter-spacing: 6px;
        font-size: 10px;
    }

    .dramatic {
        font-size: 18px;
        margin: 30px 8px !important;
    }

    .apparition-text {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .time-stamp {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .text-block p {
        font-size: 16px;
    }

    .dialogue-block {
        padding: 12px 14px;
    }

    .dialogue-block p {
        font-size: 15px;
    }

    .phone-messages {
        max-width: 100%;
    }

    .scroll-indicator {
        margin-top: 50px;
    }

    .jimmy-apparition {
        padding: 35px 14px;
        margin: 30px -14px;
    }

    .explosion-scene {
        padding: 50px 14px;
        margin: 40px -14px;
    }

    .end-title {
        letter-spacing: 4px;
    }

    .power-card.single {
        max-width: 100%;
    }
}

/* ==================== 320px - Very Small Phones ==================== */
@media (max-width: 320px) {
    .section {
        padding: 60px 10px 80px;
    }

    body {
        font-size: 15px;
    }

    .hero-title {
        letter-spacing: 4px;
        font-size: clamp(44px, 14vw, 70px);
    }

    .hero-arc {
        letter-spacing: 4px;
        font-size: 9px;
    }

    .hero-subtitle {
        letter-spacing: 2px;
        font-size: 12px;
    }

    .hero-emoji {
        font-size: 40px;
    }

    .chapter-title {
        font-size: clamp(16px, 5vw, 24px);
        letter-spacing: 0;
        padding: 0 4px;
    }

    .chapter-number {
        letter-spacing: 4px;
        font-size: 9px;
    }

    .chapter-header {
        margin-bottom: 40px;
    }

    .text-block {
        margin-bottom: 24px;
        margin-left: 2px;
        margin-right: 2px;
    }

    .text-block p {
        font-size: 15px;
        line-height: 1.85;
    }

    .invocation-word {
        font-size: clamp(28px, 10vw, 50px);
        letter-spacing: 2px;
        margin: 30px 0;
    }

    .invocation-word.small {
        font-size: clamp(22px, 7vw, 36px);
        letter-spacing: 1px;
    }

    .dialogue-block {
        padding: 10px 12px;
    }

    .dialogue-speaker {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .dialogue-block p {
        font-size: 14px;
        line-height: 1.7;
    }

    .dramatic {
        font-size: 16px;
        margin: 24px 4px !important;
    }

    .emphasis {
        padding-left: 12px;
        margin: 24px 0 !important;
    }

    .sub-header h3 {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .sub-header {
        margin: 40px 0 28px;
    }

    .jimmy-apparition {
        padding: 28px 10px;
        margin: 24px -10px;
    }

    .apparition-text {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .apparition-subtitle {
        font-size: 13px;
    }

    .fourth-wall {
        padding: 18px 14px;
        margin: 30px 0;
    }

    .fourth-wall h3 {
        font-size: 14px;
    }

    .fourth-wall p {
        font-size: 14px;
    }

    .narrator-block {
        padding: 12px 14px;
    }

    .narrator-block p {
        font-size: 14px;
    }

    .arc-card {
        padding: 18px 14px;
    }

    .arc-card-title {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .arc-card-description {
        font-size: 13px;
    }

    .arc-nav-link {
        font-size: 10px;
        letter-spacing: 2px;
        padding: 12px 14px;
    }

    .power-card {
        padding: 14px;
    }

    .power-card h4 {
        font-size: 12px;
    }

    .power-card p {
        font-size: 13px;
    }

    .power-category-title {
        font-size: 15px;
    }

    .check-item {
        font-size: 13px;
        padding: 8px 12px;
    }

    .end-title {
        letter-spacing: 2px;
        font-size: clamp(20px, 7vw, 36px);
    }

    .end-subtitle {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .nav-dot {
        width: 6px;
        height: 6px;
    }

    .nav-dots {
        gap: 6px;
    }

    .time-stamp {
        font-size: 26px;
        letter-spacing: 3px;
    }

    .scroll-indicator {
        margin-top: 40px;
    }

    .scroll-indicator span {
        font-size: 8px;
        letter-spacing: 3px;
    }

    .divider {
        margin: 40px auto;
    }
}

/* ==================== INVOCATION END BREATHING ==================== */
.invocation-word.end {
    animation: invocationEndBreath 5s ease-in-out infinite;
}

@keyframes invocationEndBreath {
    0%, 100% {
        text-shadow:
            0 0 15px rgba(102, 51, 170, 0.5),
            0 0 40px rgba(102, 51, 170, 0.2);
        filter: brightness(1);
    }
    50% {
        text-shadow:
            0 0 25px rgba(102, 51, 170, 0.7),
            0 0 60px rgba(102, 51, 170, 0.4),
            0 0 120px rgba(102, 51, 170, 0.15);
        filter: brightness(1.1);
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    #grain,
    #vignette,
    #fog,
    .fog-layer,
    #particles,
    #progress-bar,
    #glitch-overlay,
    #chapter-nav,
    .scroll-indicator,
    .explosion-effect,
    .jimmy-visual,
    .arc-card-eyes {
        display: none !important;
    }

    body {
        background: #fff;
        color: #1a1a1a;
        font-size: 12pt;
        line-height: 1.6;
    }

    .section {
        min-height: auto;
        padding: 20pt 0;
        page-break-inside: avoid;
    }

    .hero {
        min-height: auto;
        padding: 40pt 0 20pt;
    }

    .hero-title {
        color: #1a1a1a;
        text-shadow: none;
        font-size: 28pt;
    }

    .hero-arc,
    .hero-subtitle {
        color: #444;
    }

    .chapter-header {
        page-break-after: avoid;
        background: none;
        border-bottom: 1px solid #ccc;
    }

    .chapter-header::after {
        display: none;
    }

    .chapter-title {
        color: #1a1a1a;
        text-shadow: none;
    }

    .chapter-number {
        color: #666;
    }

    .text-block p {
        color: #333;
        text-align: left;
    }

    .dramatic {
        color: #1a1a1a !important;
        text-shadow: none;
    }

    .emphasis {
        border-left-color: #999;
        color: #333 !important;
    }

    .dialogue-block {
        background: none;
        border-left: 2pt solid #999;
    }

    .dialogue-speaker {
        color: #444;
    }

    .dialogue-block p {
        color: #333;
    }

    .invocation-word {
        color: #1a1a1a;
        text-shadow: none;
        animation: none;
    }

    .jimmy-apparition {
        background: none;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
    }

    .jimmy-apparition::before {
        display: none;
    }

    .highlight-red {
        color: #8b1a1a;
        text-shadow: none;
    }

    .highlight-blue {
        color: #2a6fdb;
        text-shadow: none;
    }

    .end-title {
        color: #1a1a1a;
        text-shadow: none;
        animation: none;
    }

    .arc-card {
        border: 1px solid #ccc;
        background: none;
    }

    .arc-nav-link {
        border: 1px solid #999;
        color: #333;
        background: none;
    }

    .arc-nav-link::after {
        display: none;
    }

    .fourth-wall {
        background: #f5f5f5;
        border-color: #ccc;
    }

    .narrator-block {
        border-left-color: #999;
        background: none;
    }

    .power-card {
        border-color: #ccc;
        background: #fafafa;
    }

    a {
        color: #333;
        text-decoration: underline;
    }
}
