/* ScreenReads v4 — Shared Chapter Styles */

:root {
    --bg-deep: #0a0908;
    --bg-card: #141210;
    --bg-sticky: rgba(10, 9, 8, 0.97);
    --text-primary: #f5f0eb;
    --text-action: #c8c4be;
    --text-muted: #a89f97;
    --accent-ochre: #c4703f;
    --accent-turquoise: #5c9a9a;
    --border-subtle: rgba(196, 112, 63, 0.2);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 300;
    line-height: 1.6;
    font-size: 18px;
    -webkit-overflow-scrolling: touch;
    transition: background 1.0s ease 0.3s;
}

/* === LIGHT MODE === */
body.light-mode {
    --bg-deep: #fdfdfc;
    --bg-card: #f5f3f0;
    --bg-sticky: rgba(253, 253, 252, 0.97);
    --text-primary: #1a1614;
    --text-action: #3a3530;
    --text-muted: #6b635b;
    --border-subtle: rgba(196, 112, 63, 0.25);
    background: var(--bg-deep);
    color: var(--text-primary);
}
body.light-mode .location-time { color: #3d7a7a; opacity: 1; }
body.light-mode .location-card::before { background: #3d7a7a; }
body.light-mode .sticky-header.is-stuck { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
body.light-mode .sticky-image img,
body.light-mode .chapter-hero img {
    -webkit-mask-image: none;
    mask-image: none;
}
body.light-mode .chapter-hero img { opacity: 1; border: none; border-radius: 0; }
body.light-mode .chapter-hero .film-strip {
    display: block; position: relative; background: #1a1614;
    padding: 28px 22px; border-radius: 3px; width: 65%; margin: 0 auto;
    box-shadow: 2px 3px 10px rgba(0,0,0,0.15);
}
body.light-mode .chapter-hero .film-strip img { width: 100%; margin: 0; }
body.light-mode .chapter-hero .film-strip::before,
body.light-mode .chapter-hero .film-strip::after {
    content: ''; position: absolute; left: 6px; right: 6px; height: 14px;
    background: repeating-linear-gradient(90deg,
        transparent 0px, transparent 6px,
        rgba(253,253,252,0.85) 6px, rgba(253,253,252,0.85) 16px,
        transparent 16px, transparent 24px);
    border-radius: 1.5px;
}
body.light-mode .chapter-hero .film-strip::before { top: 7px; }
body.light-mode .chapter-hero .film-strip::after { bottom: 7px; }
.film-strip { display: contents; }
body.light-mode .reading-progress-track { background: rgba(196, 112, 63, 0.12); }
body.light-mode.ambient-active .ambient-glow.mood-warm {
    background: radial-gradient(ellipse at 0% 50%, rgba(196, 112, 63, 0.10) 0%, transparent 55%),
                radial-gradient(ellipse at 100% 50%, rgba(196, 112, 63, 0.10) 0%, transparent 55%);
}
body.light-mode.ambient-active .ambient-glow.mood-coast {
    background: radial-gradient(ellipse at 0% 50%, rgba(61, 122, 122, 0.12) 0%, transparent 55%),
                radial-gradient(ellipse at 100% 50%, rgba(61, 122, 122, 0.12) 0%, transparent 55%);
}
body.light-mode.ambient-active .ambient-glow.mood-storm {
    background: radial-gradient(ellipse at 0% 50%, rgba(60, 60, 90, 0.14) 0%, transparent 55%),
                radial-gradient(ellipse at 100% 50%, rgba(60, 60, 90, 0.14) 0%, transparent 55%);
}
body.light-mode.ambient-active .ambient-glow.mood-alien {
    background: radial-gradient(ellipse at 0% 50%, rgba(180, 140, 50, 0.12) 0%, transparent 55%),
                radial-gradient(ellipse at 100% 50%, rgba(50, 50, 140, 0.12) 0%, transparent 55%);
}

/* === AMBIENT LAYER === */
.ambient-layer {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; z-index: 1; opacity: 0;
    transition: opacity 1.2s ease;
}
body.ambient-active .ambient-layer { opacity: 1; }
.ambient-glow {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    transition: background 1.8s ease;
}
.ambient-glow.mood-warm {
    background: radial-gradient(ellipse at 0% 50%, rgba(196, 112, 63, 0.18) 0%, transparent 55%),
                radial-gradient(ellipse at 100% 50%, rgba(196, 112, 63, 0.18) 0%, transparent 55%),
                radial-gradient(ellipse at 50% 0%, rgba(196, 112, 63, 0.08) 0%, transparent 45%),
                radial-gradient(ellipse at 50% 100%, rgba(196, 112, 63, 0.12) 0%, transparent 45%);
}
.ambient-glow.mood-coast {
    background: radial-gradient(ellipse at 0% 50%, rgba(92, 154, 154, 0.20) 0%, transparent 55%),
                radial-gradient(ellipse at 100% 50%, rgba(92, 154, 154, 0.20) 0%, transparent 55%),
                radial-gradient(ellipse at 50% 100%, rgba(92, 154, 154, 0.14) 0%, transparent 45%);
}
.ambient-glow.mood-storm {
    background: radial-gradient(ellipse at 0% 50%, rgba(60, 60, 100, 0.22) 0%, transparent 55%),
                radial-gradient(ellipse at 100% 50%, rgba(60, 60, 100, 0.22) 0%, transparent 55%),
                radial-gradient(ellipse at 50% 0%, rgba(60, 60, 100, 0.14) 0%, transparent 45%),
                radial-gradient(ellipse at 50% 100%, rgba(40, 40, 70, 0.10) 0%, transparent 45%);
}
.ambient-glow.mood-alien {
    background: radial-gradient(ellipse at 0% 50%, rgba(200, 170, 50, 0.18) 0%, transparent 55%),
                radial-gradient(ellipse at 100% 50%, rgba(50, 50, 160, 0.20) 0%, transparent 55%),
                radial-gradient(ellipse at 50% 0%, rgba(200, 170, 50, 0.10) 0%, transparent 45%),
                radial-gradient(ellipse at 50% 100%, rgba(50, 50, 160, 0.14) 0%, transparent 45%);
}
.ambient-glow.mood-none { background: transparent; }

/* === PROGRESS BAR === */
.reading-progress-track {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px;
    background: rgba(196, 112, 63, 0.08); z-index: 199;
}
.reading-progress {
    position: fixed; top: 0; left: 0; width: 0%; height: 3px;
    background: linear-gradient(90deg, var(--accent-ochre), #d4884f);
    z-index: 200; transition: width 0.05s linear;
    box-shadow: 0 0 8px rgba(196, 112, 63, 0.4);
}

/* === HERO === */
.chapter-hero { max-width: 900px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }
.chapter-hero img {
    width: 65%; height: auto; display: block; margin: 0 auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 60%, transparent 100%),
            linear-gradient(to right, transparent 0%, black 25%, black 60%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 60%, transparent 100%),
                linear-gradient(to right, transparent 0%, black 25%, black 60%, transparent 100%);
    mask-composite: intersect;
}

/* === CHAPTER === */
.chapter { max-width: 900px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }
article { position: relative; z-index: 2; }
.chapter-header {
    padding: 3rem 0; border-bottom: 1px solid var(--border-subtle); margin-bottom: 2rem;
    text-align: center;
}
.chapter-number {
    font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
    letter-spacing: 0.4em; text-transform: uppercase;
    color: var(--accent-ochre); margin-bottom: 1rem;
}
.chapter-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 400; line-height: 1.2; margin-bottom: 1rem;
}
.chapter-setting {
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    letter-spacing: 0.15em; color: var(--text-muted);
}
.byline {
    font-family: 'JetBrains Mono', monospace; font-size: 0.6rem;
    letter-spacing: 0.15em; color: var(--text-muted); margin-top: 0.8rem;
}

/* === STICKY HEADER === */
.sticky-header {
    position: sticky; top: 3px; z-index: 100;
    background: var(--bg-sticky); backdrop-filter: blur(12px);
    margin: 0 -2rem 1.5rem -2rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.4rem;
}
.sticky-header.is-stuck { box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.sticky-chapter-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(196, 112, 63, 0.1);
}
.sticky-chapter-info { display: flex; align-items: center; gap: 0.75rem; }
.sticky-chapter-num {
    font-family: 'JetBrains Mono', monospace; font-size: 0.55rem;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--accent-ochre); opacity: 0.8;
}
.sticky-chapter-title {
    font-family: 'Playfair Display', serif; font-size: 0.95rem;
    font-weight: 400; color: var(--text-primary);
}
.sticky-toggles { display: flex; gap: 0.4rem; align-items: center; }
.toggle-btn {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.6rem; background: transparent;
    border: 1px solid var(--border-subtle); border-radius: 100px;
    cursor: pointer; color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace; font-size: 0.55rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    transition: all 0.3s ease; -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.toggle-btn:hover { border-color: var(--accent-ochre); color: var(--accent-ochre); }
.toggle-btn.is-active {
    background: rgba(196, 112, 63, 0.15);
    border-color: var(--accent-ochre); color: var(--accent-ochre);
}
.toggle-btn-icon { font-size: 0.7rem; line-height: 1; }

/* === TEXT SIZE === */
body.text-lg .action, body.text-lg .dialogue, body.text-lg .parenthetical { font-size: 1.15em; }
body.text-xl .action, body.text-xl .dialogue, body.text-xl .parenthetical { font-size: 1.3em; }

.sticky-content { display: flex; align-items: stretch; gap: 0; }
.sticky-image {
    width: 120px; flex-shrink: 0; overflow: hidden;
    border-radius: 6px; margin: 0.4rem 0 0.4rem 0.6rem;
}
.sticky-image img {
    width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 60%, transparent 100%),
            linear-gradient(to right, transparent 0%, black 25%, black 60%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 60%, transparent 100%),
                linear-gradient(to right, transparent 0%, black 25%, black 60%, transparent 100%);
    mask-composite: intersect;
}
.sticky-characters {
    display: flex; gap: 0.6rem; flex-wrap: wrap; flex: 1;
    padding: 0.6rem 0.75rem; align-content: center;
}
.character-chip {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.3rem 0.7rem 0.3rem 0.3rem;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 100px;
}
.character-chip-portrait {
    width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
    border: 1px solid var(--border-subtle); flex-shrink: 0;
}
.character-chip-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.character-chip-name {
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    letter-spacing: 0.08em; color: var(--accent-ochre);
    font-weight: 400; text-transform: uppercase;
}
.character-chip-role {
    font-family: 'JetBrains Mono', monospace; font-size: 0.55rem;
    color: var(--text-muted); letter-spacing: 0.05em;
}

/* === LOCATION CARDS === */
.location-card {
    text-align: center; padding: 1.8rem 1rem; margin-bottom: 1.5rem;
    position: relative; transition: opacity 0.5s ease;
}
.location-card::before {
    content: ''; display: block; width: 40px; height: 1px;
    background: var(--accent-turquoise); margin: 0 auto 1rem; opacity: 0.5;
}
.location-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 400; font-style: italic;
    color: var(--text-primary); letter-spacing: 0.02em; margin-bottom: 0.4rem;
}
.location-time {
    font-family: 'JetBrains Mono', monospace; font-size: 0.6rem;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent-turquoise); opacity: 0.7;
}

/* === SPOTLIGHT === */
.scene { margin-bottom: 2rem; transition: opacity 0.5s ease; }
body.spotlight-active .scene { opacity: 0.25; }
body.spotlight-active .scene.in-spotlight { opacity: 1; }
body.spotlight-active .location-card,
body.spotlight-active .super,
body.spotlight-active .transition { opacity: 0.25; transition: opacity 0.5s ease; }
body.spotlight-active .location-card.in-spotlight,
body.spotlight-active .super.in-spotlight { opacity: 1; }
body.spotlight-active .transition { opacity: 0.3; }

/* === CONTENT === */
.scene-reactions {
    display: flex; gap: 0.5rem; margin-top: 1rem;
    padding-top: 0.75rem; border-top: 1px solid rgba(196, 112, 63, 0.08);
}
.scene-react-btn {
    background: none; border: 1px solid transparent; border-radius: 100px;
    padding: 0.25rem 0.5rem; cursor: pointer; font-size: 0.85rem;
    line-height: 1; opacity: 0.35; transition: all 0.2s ease;
    display: flex; align-items: center; gap: 0.3rem;
}
.scene-react-btn:hover { opacity: 0.7; border-color: var(--border-subtle); background: var(--bg-card); }
.scene-react-btn.reacted {
    opacity: 1; border-color: var(--border-subtle);
    background: var(--bg-card); transform: scale(1.1);
}
.react-count {
    font-family: 'JetBrains Mono', monospace; font-size: 0.5rem;
    color: var(--text-muted); min-width: 0; display: none;
}
.scene-react-btn.reacted .react-count { display: inline; }
.action { color: var(--text-action); margin-bottom: 0.6rem; }
.action strong { color: var(--accent-ochre); font-weight: 400; }
.dialogue-block { margin: 0.7rem 0; padding-left: 2rem; }
.character-name {
    font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--accent-ochre); margin-bottom: 0.2rem;
}
.parenthetical { font-style: italic; color: var(--text-muted); font-size: 0.9em; margin-bottom: 0.2rem; }
.dialogue { color: var(--text-primary); }
.super {
    text-align: center;
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent-ochre); padding: 1.5rem; margin: 2rem 0;
    border: 1px solid var(--border-subtle); border-radius: 4px;
    transition: opacity 0.5s ease;
}
.transition {
    text-align: right;
    font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
    letter-spacing: 0.15em; color: var(--text-muted);
    margin-top: 3rem; padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    transition: opacity 0.5s ease;
}
.montage-label {
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--accent-turquoise); margin-bottom: 0.8rem; margin-top: 1rem;
}
.montage-item {
    color: var(--text-action); margin-bottom: 0.6rem; padding-left: 1.2rem;
    text-indent: -1.2rem;
}
.scene-image {
    width: 100%; margin: 1rem 0; border-radius: 6px; overflow: hidden;
}
.scene-image img {
    width: 100%; height: auto; display: block;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%);
}

/* === THE END (Ch29 only — safe to keep globally) === */
.the-end {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 400; font-style: italic;
    color: var(--accent-ochre);
    padding: 3rem 0 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    letter-spacing: 0.05em;
}

/* === FOOTER NAV === */
.chapter-footer { max-width: 900px; margin: 3rem auto 2rem; padding: 0 2rem; position: relative; z-index: 2; }
.chapter-nav {
    display: flex; justify-content: space-between;
    padding-top: 2rem; border-top: 1px solid var(--border-subtle);
}
.chapter-nav a {
    color: var(--accent-ochre); text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; letter-spacing: 0.1em;
}

/* === SCREENPLAY LAYER === */
.screenplay-layer {
    display: none;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}
body.screenplay-mode .screenplay-layer { display: block; }
body.screenplay-mode .visual-layer { display: none; }
body.screenplay-mode .chapter-hero { display: none; }

.sp-page {
    background: transparent; color: #000;
    font-family: "Courier New", Courier, monospace;
    font-size: 10pt; line-height: 1.0;
    max-width: 8.5in; margin: 0 auto 2rem;
    padding: 1in 1in 1in 1.5in; position: relative;
}
.sp-page-number {
    position: absolute; top: 0.5in; right: 0.75in;
    font-family: "Courier New", Courier, monospace;
    font-size: 10pt; color: #000;
}
.sp-scene-heading {
    font-weight: 700; text-transform: uppercase;
    margin: 1.5em 0 1em; font-size: 10pt;
    scroll-margin-top: 80px;
}
.sp-scene-heading:first-child { margin-top: 0; }
.sp-action { margin: 1em 0; font-size: 10pt; }
.sp-character {
    margin: 1em 0 0; padding-left: 2.2in;
    text-transform: uppercase; font-weight: 700; font-size: 10pt;
}
.sp-parenthetical { padding-left: 1.6in; margin: 0; font-size: 10pt; }
.sp-dialogue { padding-left: 1.0in; padding-right: 1.5in; margin: 0; font-size: 10pt; }
.sp-page-break {
    border: none; margin: 2em 0; position: relative; height: 1em;
}
.sp-page-break::after {
    content: attr(data-page);
    position: absolute; right: 0; top: 0;
    font-family: "Courier New", Courier, monospace;
    font-size: 10pt; color: #000;
}
.sp-super { text-align: center; margin: 1.5em 0; font-size: 10pt; text-transform: uppercase; }
.sp-the-end { text-align: center; margin: 3em 0 1em; font-size: 10pt; font-weight: 700; }
.sp-footer {
    text-align: center; font-family: "Courier New", Courier, monospace;
    font-size: 10pt; color: #999; margin-top: 3em; padding-top: 1em;
}

/* Screenplay mode overrides */
body.screenplay-mode .sticky-content { display: none; }
body.screenplay-mode .sticky-header {
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid #e0e0e0;
}
body.screenplay-mode .sticky-header.is-stuck { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
body.screenplay-mode .sticky-chapter-num {
    color: #666; font-family: "Courier New", Courier, monospace;
}
body.screenplay-mode .sticky-chapter-title {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.85rem; font-weight: 700; color: #000; text-transform: uppercase;
}
body.screenplay-mode .toggle-btn {
    color: #666; border-color: #ccc; font-family: "Courier New", Courier, monospace;
}
body.screenplay-mode .toggle-btn:hover { color: #000; border-color: #000; }
body.screenplay-mode .toggle-btn.is-active {
    background: rgba(0,0,0,0.08); border-color: #000; color: #000;
}
body.screenplay-mode .toggle-visual-only { display: none; }
.sp-page-indicator {
    display: none;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.6rem; color: #999; letter-spacing: 0.05em;
}
body.screenplay-mode .sp-page-indicator { display: block; }
body.screenplay-mode { background: #fff; }
body.screenplay-mode.light-mode { background: #fff; }
body.screenplay-mode .ambient-layer { display: none; }
body.screenplay-mode .reading-progress {
    background: linear-gradient(90deg, #000, #444); box-shadow: none;
}
body.screenplay-mode .reading-progress-track { background: rgba(0,0,0,0.05); }
body.screenplay-mode .chapter-footer {
    background: transparent; border-top-color: #e0e0e0;
}
body.screenplay-mode .chapter-nav a {
    color: #666; font-family: "Courier New", Courier, monospace;
}

/* === TRANSITION: SLOW REVEAL === */
.visual-layer { transition: opacity 0.8s ease; }
body.screenplay-mode .visual-layer { opacity: 0; pointer-events: none; }
.screenplay-layer { opacity: 0; }
body.screenplay-mode .screenplay-layer {
    display: block; animation: screenplayReveal 1.4s ease forwards;
}
@keyframes screenplayReveal {
    0%   { opacity: 0; transform: translateY(40px); }
    40%  { opacity: 0.3; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}
body:not(.screenplay-mode) .visual-layer {
    animation: visualReturn 0.6s ease forwards;
}
@keyframes visualReturn { from { opacity: 0; } to { opacity: 1; } }

/* "YOU ARE HERE" HIGHLIGHT */
.sp-scene-heading.sp-here {
    position: relative;
    background: linear-gradient(90deg, rgba(196, 112, 63, 0.12) 0%, rgba(196, 112, 63, 0.04) 70%, transparent 100%);
    margin-left: -0.6em; padding: 0.3em 0.6em;
    border-left: 2px solid rgba(196, 112, 63, 0.6);
    border-radius: 0 2px 2px 0;
}
.sp-scene-heading.sp-here-fade {
    transition: background 2.0s ease, border-color 2.0s ease;
    background: transparent; border-left-color: transparent;
}

/* === MOBILE === */
@media (max-width: 600px) {
    body { font-size: 16px; }
    .chapter { padding: 0 1.25rem; }
    .chapter-hero { padding: 0 1.25rem; }
    .dialogue-block { padding-left: 1rem; }
    .sticky-header { margin: 0 -1.25rem 1.5rem -1.25rem; }
    .sticky-chapter-title { font-size: 0.85rem; }
    .sticky-image { width: 70px; border-radius: 4px; }
    .character-chip-portrait { width: 30px; height: 30px; }
    .character-chip-name { font-size: 0.65rem; }
    .character-chip-role { display: none; }
    .location-name { font-size: 1.1rem; }
    .toggle-btn { font-size: 0.5rem; padding: 0.25rem 0.5rem; }
    .toggle-btn-icon { font-size: 0.6rem; }
    .sp-page { padding: 1em; font-size: 9pt; }
    .sp-character { padding-left: 1.5em; }
    .sp-parenthetical { padding-left: 1em; }
    .sp-dialogue { padding-left: 0.5em; padding-right: 0; }
    .sp-page-number { display: none; }
    .screenplay-layer { padding: 0 1.25rem; }
}
@media print {
    body.screenplay-mode { background: #fff; }
    .sticky-header, .reading-progress-track, .reading-progress,
    .ambient-layer, .chapter-hero, .chapter-footer { display: none; }
    .sp-page { margin: 0; padding: 1in 1in 1in 1.5in; }
    @page { size: letter; margin: 0; }
}
