
        :root {
            --bg: #070a10;
            --panel: #0d141e;
            --panel-border: #182433;
            --panel-hover: #141f2e;
            --accent: #ff9f43;
            --accent-glow: rgba(255, 159, 67, 0.45);
            --cyan: #00d2d3;
            --cyan-glow: rgba(0, 210, 211, 0.4);
            --red: #ff5252;
            --green: #2ed573;
            --purple: #a55eea;
            --gold: #ffd32a;
            --text: #e2e8f0;
            --text-muted: #7e91a6;
            --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            --font-size-base: 1.05rem;
            --font-retro: 'Courier New', Courier, monospace;
        }
        body.theme-amber {
            --bg: #100801;
            --panel: #1a1003;
            --panel-border: #382407;
            --accent: #ffa000;
            --cyan: #ffd54f;
            --text: #ffe082;
            --text-muted: #aa8d4f;
        }
        body.theme-parchment {
            --bg: #f4edd8;
            --panel: #e9ddbe;
            --panel-border: #bfb08c;
            --accent: #8b2500;
            --cyan: #22577a;
            --text: #2c221a;
            --text-muted: #6b5a4d;
            --font-family: Georgia, serif;
        }
        body.theme-oled {
            --bg: #000000;
            --panel: #080808;
            --panel-border: #1a1a1a;
            --accent: #00f0ff;
            --cyan: #ff007f;
            --text: #ffffff;
            --text-muted: #888888;
        }
        body.font-serif { --font-family: 'Merriweather', Georgia, serif; }
        body.font-mono { --font-family: 'Courier New', Courier, monospace; }
        
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            background-color: var(--bg);
            color: var(--text);
            font-family: var(--font-family);
            font-size: var(--font-size-base);
            display: flex;
            height: 100vh;
            overflow: hidden;
            transition: background 0.3s, color 0.3s;
        }

        /* Left Sidebar */
        #sidebar {
            width: 350px;
            background: var(--panel);
            border-right: 1px solid var(--panel-border);
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            z-index: 10;
        }
        .sidebar-header {
            padding: 1.1rem;
            border-bottom: 1px solid var(--panel-border);
            background: rgba(0,0,0,0.25);
        }
        .sidebar-header h1 {
            font-size: 1.05rem;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-family: var(--font-retro);
        }
        .search-box {
            margin-top: 0.6rem;
            width: 100%;
            padding: 0.5rem 0.75rem;
            background: rgba(0,0,0,0.35);
            border: 1px solid var(--panel-border);
            border-radius: 4px;
            color: var(--text);
            font-size: 0.85rem;
        }
        .genre-bar {
            display: flex;
            gap: 0.35rem;
            overflow-x: auto;
            padding: 0.6rem 1rem;
            border-bottom: 1px solid var(--panel-border);
            scrollbar-width: none;
        }
        .genre-btn {
            background: rgba(0,0,0,0.25);
            border: 1px solid var(--panel-border);
            color: var(--text-muted);
            padding: 0.2rem 0.55rem;
            border-radius: 12px;
            font-size: 0.75rem;
            cursor: pointer;
            white-space: nowrap;
        }
        .genre-btn.active {
            background: var(--cyan);
            color: #000;
            border-color: var(--cyan);
            font-weight: bold;
        }
        #book-list {
            flex: 1;
            overflow-y: auto;
            padding: 0.5rem;
        }
        .book-item {
            padding: 0.65rem 0.85rem;
            border-radius: 6px;
            cursor: pointer;
            border: 1px solid transparent;
            margin-bottom: 0.35rem;
            transition: all 0.2s;
        }
        .book-item:hover {
            background: var(--panel-hover);
            border-color: var(--panel-border);
        }
        .book-item.active {
            background: rgba(255, 159, 67, 0.15);
            border-color: var(--accent);
        }
        .book-item-title {
            font-weight: 600;
            font-size: 0.88rem;
            color: var(--text);
        }
        .book-item-meta {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 0.2rem;
            display: flex;
            justify-content: space-between;
        }

        /* Center Main Stage */
        #stage {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            background: var(--bg);
            position: relative;
        }
        .stage-header {
            padding: 0.85rem 2rem;
            background: var(--panel);
            border-bottom: 1px solid var(--panel-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .stage-title-area h2 {
            font-size: 1.25rem;
            color: var(--accent);
            font-family: var(--font-retro);
        }
        .stage-meta {
            color: var(--cyan);
            font-size: 0.8rem;
            margin-top: 0.15rem;
        }
        .top-controls {
            display: flex;
            gap: 0.4rem;
            align-items: center;
            flex-wrap: wrap;
        }
        .pill-btn {
            background: rgba(0,0,0,0.3);
            border: 1px solid var(--panel-border);
            color: var(--text);
            padding: 0.35rem 0.65rem;
            border-radius: 4px;
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        .pill-btn:hover { border-color: var(--accent); }
        .btn-glow-accent {
            background: var(--accent);
            color: #000;
            font-weight: bold;
            border: none;
            box-shadow: 0 0 10px var(--accent-glow);
        }
        .btn-glow-cyan {
            background: var(--cyan);
            color: #000;
            font-weight: bold;
            border: none;
            box-shadow: 0 0 10px var(--cyan-glow);
        }

        /* Act Breadcrumb Bar */
        .breadcrumb-bar {
            display: flex;
            background: rgba(0,0,0,0.2);
            padding: 0.5rem 2rem;
            border-bottom: 1px solid var(--panel-border);
            gap: 0.75rem;
            font-size: 0.78rem;
            font-family: var(--font-retro);
        }
        .crumb-step {
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .crumb-step.active {
            color: var(--accent);
            font-weight: bold;
        }
        .crumb-step.completed {
            color: var(--green);
        }

        .stage-body {
            max-width: 880px;
            margin: 0 auto;
            padding: 1.75rem;
            width: 100%;
        }
        .scene-illustration-box {
            width: 100%;
            height: 280px;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 1.5rem;
            border: 1px solid var(--panel-border);
            box-shadow: 0 8px 30px rgba(0,0,0,0.5);
            background: #000;
        }
        .scene-illustration-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .story-card {
            background: var(--panel);
            border: 1px solid var(--panel-border);
            border-radius: 8px;
            padding: 1.8rem;
            margin-bottom: 1.5rem;
            line-height: 1.85;
            box-shadow: 0 4px 30px rgba(0,0,0,0.3);
            position: relative;
        }
        .story-section-title {
            font-family: var(--font-retro);
            color: var(--accent);
            font-size: 1.1rem;
            margin-bottom: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .lore-box {
            background: rgba(0,0,0,0.35);
            border-left: 3px solid var(--cyan);
            padding: 1rem 1.25rem;
            border-radius: 0 6px 6px 0;
            margin-bottom: 1.25rem;
            font-size: 0.95rem;
        }
        .companion-dialogue-box {
            background: rgba(165, 94, 234, 0.12);
            border-left: 3px solid var(--purple);
            padding: 0.9rem 1.2rem;
            border-radius: 0 6px 6px 0;
            margin: 1rem 0;
            font-size: 0.92rem;
            display: flex;
            gap: 0.75rem;
            align-items: flex-start;
        }
        .choices-container {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
            margin: 1.75rem 0;
        }
        .choice-btn {
            background: rgba(0,0,0,0.35);
            border: 1px solid var(--cyan);
            color: var(--text);
            padding: 1rem 1.3rem;
            border-radius: 6px;
            font-size: 0.96rem;
            text-align: left;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.85rem;
            line-height: 1.45;
        }
        .choice-btn:hover {
            background: var(--cyan);
            color: #000;
            transform: translateX(4px);
            box-shadow: 0 0 15px var(--cyan-glow);
        }
        .choice-badge {
            background: rgba(0, 210, 211, 0.2);
            color: var(--cyan);
            padding: 0.25rem 0.55rem;
            border-radius: 4px;
            font-size: 0.75rem;
            font-family: var(--font-retro);
            font-weight: bold;
            flex-shrink: 0;
        }
        .choice-btn:hover .choice-badge {
            background: #000;
            color: var(--cyan);
        }

        /* Right RPG HUD */
        #hud {
            width: 350px;
            background: var(--panel);
            border-left: 1px solid var(--panel-border);
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            gap: 1.1rem;
            flex-shrink: 0;
            overflow-y: auto;
        }
        .hud-card {
            background: rgba(0,0,0,0.3);
            border: 1px solid var(--panel-border);
            border-radius: 6px;
            padding: 0.95rem;
        }
        .hud-card h3 {
            font-size: 0.8rem;
            text-transform: uppercase;
            color: var(--accent);
            font-family: var(--font-retro);
            margin-bottom: 0.6rem;
            letter-spacing: 1px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .level-badge {
            background: var(--accent);
            color: #000;
            font-size: 0.75rem;
            padding: 0.15rem 0.5rem;
            border-radius: 3px;
            font-weight: bold;
        }
        .meter-container { margin-bottom: 0.65rem; }
        .meter-label {
            display: flex;
            justify-content: space-between;
            font-size: 0.75rem;
            margin-bottom: 0.25rem;
        }
        .meter-track {
            height: 8px;
            background: #05080c;
            border-radius: 4px;
            overflow: hidden;
        }
        .meter-fill-hp {
            height: 100%;
            background: var(--red);
            width: 100%;
            transition: width 0.3s ease;
        }
        .meter-fill-resolve {
            height: 100%;
            background: var(--cyan);
            width: 100%;
            transition: width 0.3s ease;
        }
        .meter-fill-xp {
            height: 100%;
            background: var(--purple);
            width: 0%;
            transition: width 0.3s ease;
        }
        .d20-container { text-align: center; padding: 0.5rem 0; }
        .d20-val {
            font-size: 2.5rem;
            font-weight: bold;
            font-family: var(--font-retro);
            color: var(--cyan);
            margin: 0.2rem 0;
            text-shadow: 0 0 15px var(--cyan-glow);
            transition: transform 0.2s;
        }
        .d20-val.rolling {
            transform: rotate(360deg) scale(1.1);
        }
        .roll-btn {
            width: 100%;
            background: var(--accent);
            border: none;
            color: #000;
            font-weight: bold;
            padding: 0.6rem;
            border-radius: 4px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.85rem;
        }
        .roll-btn:hover { box-shadow: 0 0 15px var(--accent-glow); }

        /* MODALS */
        .modal-backdrop {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.85);
            backdrop-filter: blur(5px);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }
        .modal-box {
            width: 820px;
            max-width: 95vw;
            max-height: 90vh;
            background: var(--panel);
            border: 2px solid var(--accent);
            border-radius: 10px;
            box-shadow: 0 0 40px var(--accent-glow);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .modal-head {
            padding: 1.25rem 1.75rem;
            border-bottom: 1px solid var(--panel-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(0,0,0,0.3);
        }
        .modal-head h2 {
            color: var(--accent);
            font-family: var(--font-retro);
            font-size: 1.3rem;
            letter-spacing: 1px;
        }
        .modal-content-area {
            padding: 1.5rem 1.75rem;
            overflow-y: auto;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }
        .trophy-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 1rem;
        }
        .trophy-card {
            background: rgba(0,0,0,0.4);
            border: 1px solid var(--panel-border);
            border-radius: 6px;
            padding: 1rem;
            text-align: center;
            transition: all 0.3s;
        }
        .trophy-card:hover {
            border-color: var(--gold);
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(255, 211, 42, 0.2);
        }
        .atlas-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }
        .realm-card {
            background: rgba(0,0,0,0.4);
            border: 1px solid var(--panel-border);
            border-radius: 6px;
            padding: 1.25rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .realm-card:hover {
            border-color: var(--cyan);
            background: rgba(0, 210, 211, 0.08);
        }
        .companion-card {
            background: rgba(0,0,0,0.35);
            border: 1px solid var(--panel-border);
            border-radius: 6px;
            padding: 1rem;
            cursor: pointer;
            display: flex;
            gap: 0.85rem;
            align-items: center;
            transition: all 0.2s;
        }
        .companion-card:hover, .companion-card.active {
            border-color: var(--purple);
            background: rgba(165, 94, 234, 0.12);
        }

/* Recovery pass: keep the established palette; give the story room to breathe. */
:root { --text-muted: #a2b1c3; }
body { font-size: 16px; height: 100dvh; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, a:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 4px;
}
button:disabled { opacity: .58; cursor: not-allowed; box-shadow: none; transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 20000; color: #000; background: var(--cyan); padding: .8rem 1rem; }
.skip-link:focus { top: 1rem; }
#sidebar { width: 250px; }
.sidebar-header { padding: 1.3rem 1rem 1rem; }
.sidebar-header h1 { font-size: 1.05rem; letter-spacing: .02em; margin-top: .35rem; }
.eyebrow { color: var(--text-muted); font-size: .65rem; letter-spacing: .12em; font-weight: 700; }
.library-description { font-size: .78rem; color: var(--text-muted); line-height: 1.5; margin: .45rem 0 .85rem; }
.search-box { min-height: 42px; font-size: .85rem; margin: 0; }
.genre-bar { flex-wrap: wrap; overflow: visible; padding: .75rem; gap: .4rem; }
.genre-btn { min-height: 32px; font-size: .74rem; padding: .25rem .5rem; }
.library-note { color: var(--text-muted); font-size: .72rem; line-height: 1.55; padding: .75rem 1rem; border-bottom: 1px solid var(--panel-border); }
.book-item { width: 100%; display: block; background: transparent; color: var(--text); text-align: left; font: inherit; padding: .8rem .65rem; }
.book-item-title { font-size: .83rem; line-height: 1.45; }
.book-item-meta { font-size: .68rem; gap: .3rem; line-height: 1.4; flex-wrap: wrap; }
#hud { width: 260px; padding: 1rem; gap: .9rem; }
.hud-card { padding: .85rem; }
.hud-card h3 { font-size: .73rem; letter-spacing: .03em; }
#stage { min-width: 0; overscroll-behavior: contain; }
.stage-header { display: block; padding: 1.25rem 1.75rem 1rem; position: sticky; top: 0; z-index: 50; }
.stage-title-area h2 { font-family: var(--font-family); font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -.025em; line-height: 1.3; }
.stage-meta { color: var(--text-muted); font-size: .78rem; line-height: 1.5; margin-top: .3rem; }
.top-controls { margin-top: .9rem; gap: .5rem; }
.pill-btn { min-height: 38px; font-size: .78rem; padding: .45rem .75rem; box-shadow: none; justify-content: center; }
#top-sp-badge { font-size: .68rem; background: rgba(0,0,0,.16); padding: .18rem .3rem; border-radius: 3px; }
.reading-status { display: flex; justify-content: space-between; gap: .65rem; align-items: center; padding: .65rem 1.75rem; color: var(--text-muted); font-size: .7rem; border-bottom: 1px solid var(--panel-border); }
.text-button { border: 0; background: none; color: var(--cyan); cursor: pointer; font-size: .72rem; white-space: nowrap; min-height: 30px; }
#level-up-banner:not([hidden]) { margin: .8rem 1.75rem 0; padding: .8rem 1rem; border: 1px solid var(--accent); background: var(--panel); color: var(--accent); font-size: .85rem; line-height: 1.6; animation: levelNotice .55s ease-out; }
@keyframes levelNotice { from { opacity: .3; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.breadcrumb-bar { flex-wrap: wrap; font-family: var(--font-family); font-size: .68rem; padding: .7rem 1.75rem; gap: .5rem 1rem; }
.crumb-step { line-height: 1.5; }
.stage-body { max-width: 850px; padding: 1.5rem 1.75rem 3rem; }
.scene-illustration-box { height: clamp(160px, 17vw, 225px); margin-bottom: 1.25rem; box-shadow: none; background: var(--panel); }
.scene-illustration-box img { object-fit: contain; display: block; }
.story-card { padding: clamp(1.2rem, 2.5vw, 2rem); font-size: var(--font-size-base); line-height: 1.85; box-shadow: none; }
.story-card p { margin-bottom: 1rem; }
.story-card p:last-child { margin-bottom: 0; }
.story-section-title { font-size: 1.03rem; font-family: var(--font-family); text-transform: none; letter-spacing: .01em; font-weight: 700; line-height: 1.5; }
.choice-btn { align-items: flex-start; padding: 1rem; font-size: .95rem; }
.choice-badge { margin-top: .12rem; font-size: .63rem; white-space: nowrap; }
.choice-support { display: block; margin-top: .55rem; color: var(--text-muted); font-size: .78rem; font-weight: 400; line-height: 1.65; }
.dilemma-record { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--panel-border); color: var(--text-muted); font-size: .85rem; }
.choice-btn:hover { transform: none; box-shadow: none; }
.choices-container { margin: 1.25rem 0; }
.settings-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.settings-row .pill-btn { min-height: 44px; }
.supporting-text { color: var(--text-muted); font-size: .8rem; line-height: 1.65; margin-top: .7rem; }
.companion-card, .realm-card { color: var(--text); text-align: left; font: inherit; }
.puzzle-controls { display: flex; flex-wrap: wrap; gap: .65rem; margin: .6rem 0; }
.puzzle-controls input { flex: 1 1 160px; min-height: 44px; min-width: 0; padding: .6rem; border: 1px solid var(--panel-border); border-radius: 4px; color: var(--text); background: var(--bg); }
.puzzle-controls .pill-btn { min-height: 44px; }
.story-card details { margin: .6rem 0; }
.story-card summary { cursor: pointer; min-height: 40px; color: var(--cyan); }
.help-copy { line-height: 1.8; }
.modal-box { border-width: 1px; box-shadow: 0 15px 80px rgba(0,0,0,.5); }
.modal-head { padding: 1rem 1.25rem; gap: 1rem; }
.modal-head h2 { font-family: var(--font-family); font-size: 1.15rem; text-transform: none; letter-spacing: 0; }
.modal-content-area { padding: 1.25rem; }
.panel-toggle { display: none; }
.reading-mode #sidebar, .reading-mode #hud { display: none; }
.reading-mode .scene-illustration-box { display: none; }
.reading-mode .panel-toggle { display: flex; }
body.reading-mode.library-open #sidebar { display: flex; position: fixed; left: 0; top: 155px; bottom: 0; z-index: 100; width: min(320px, 92vw); box-shadow: 10px 0 50px rgba(0,0,0,.7); }
body.reading-mode.character-open #hud { display: flex; position: fixed; right: 0; top: 155px; bottom: 0; z-index: 100; width: min(330px, 92vw); box-shadow: -10px 0 50px rgba(0,0,0,.7); }
.reading-mode .stage-header, .reading-mode .breadcrumb-bar, .reading-mode .reading-status { padding-left: max(1.75rem, calc((100% - 794px) / 2)); padding-right: max(1.75rem, calc((100% - 794px) / 2)); }
#story-notice { padding: .85rem 1rem; margin-bottom: 1rem; border-left: 3px solid var(--cyan); background: var(--panel); line-height: 1.6; font-size: .85rem; }
body.theme-parchment { --green: #246b3d; --purple: #733b94; --gold: #705600; }
body.theme-parchment .btn-glow-accent, body.theme-parchment .btn-glow-cyan, body.theme-parchment .genre-btn.active, body.theme-parchment .roll-btn, body.theme-parchment .level-badge { color: #fff; }
body.theme-parchment .story-card, body.theme-parchment .hud-card { background: var(--panel); }
@media (max-width: 1100px) {
    #sidebar { width: 220px; }
    #hud { display: none; }
    .panel-toggle[data-panel="character"] { display: flex; }
    body.character-open #hud { display: flex; position: fixed; right: 0; top: 145px; bottom: 0; z-index: 100; width: min(330px, 92vw); box-shadow: -10px 0 50px rgba(0,0,0,.7); }
}
@media (max-width: 760px) {
    #sidebar { display: none; }
    .panel-toggle { display: flex; }
    body.library-open #sidebar { display: flex; position: fixed; left: 0; top: 155px; bottom: 0; z-index: 100; width: min(320px, 92vw); box-shadow: 10px 0 50px rgba(0,0,0,.7); }
    .stage-header { padding: 1rem; }
    .stage-title-area h2 { font-size: 1.35rem; }
    .top-controls { gap: .4rem; margin-top: .75rem; }
    .pill-btn { min-height: 42px; font-size: .74rem; padding: .4rem .65rem; }
    .breadcrumb-bar { padding: .7rem 1rem; gap: .35rem .7rem; font-size: .65rem; }
    .reading-status { padding: .4rem 1rem; font-size: .65rem; }
    #level-up-banner:not([hidden]) { margin: .65rem 1rem 0; }
    .stage-body { padding: 1rem 1rem 3rem; }
    .scene-illustration-box { height: 175px; }
    .story-card { padding: 1.15rem; font-size: var(--font-size-base); line-height: 1.8; }
    .choice-btn { flex-direction: column; gap: .55rem; padding: 1rem; }
    .modal-box { max-width: 96vw; max-height: 94dvh; }
    .modal-head { padding: .85rem; }
    .modal-head h2 { font-size: 1rem; }
    .modal-content-area { padding: 1rem; }
    #skill-cards-grid, #companion-list-area, .atlas-grid { grid-template-columns: 1fr !important; }
    #skill-modal .modal-content-area > div:first-child { flex-wrap: wrap; gap: 1rem; }
    .reading-mode .stage-header, .reading-mode .breadcrumb-bar, .reading-mode .reading-status { padding-left: 1rem; padding-right: 1rem; }
    input { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
#stage.story-background-art {
    background-image: linear-gradient(rgba(10,13,17,.68), rgba(10,13,17,.84)), var(--scene-art-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
#stage.story-background-art .scene-illustration-box { display: none; }
#stage.story-background-art .stage-body { background: transparent; }
#stage.story-background-art .story-card {
    background: rgba(12,15,19,.82);
    border-color: rgba(255,255,255,.16);
    box-shadow: 0 8px 30px rgba(0,0,0,.24);
    backdrop-filter: blur(3px);
}
@media print {
    body { height: auto; display: block; overflow: visible; color: #111; background: #fff; }
    #sidebar, #hud, .stage-header, .breadcrumb-bar, .reading-status, .choices-container, .modal-backdrop { display: none !important; }
    #stage { overflow: visible; display: block; }
    .stage-body { padding: 0; max-width: 100%; }
    .story-card { border: 0; color: #111; background: #fff; }
    .story-section-title { color: #111; }
}
    
