:root { --story-panel: #fffdf8; --story-ink: #2b4037; --story-accent: #967864; }
.story-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 40px); overflow-y: auto; overscroll-behavior: contain; color: var(--story-ink); background: linear-gradient(145deg, #fffdf8, #f4f0e6); border: 1px solid #ded8ca; border-radius: 22px; padding: clamp(24px, 5vw, 38px); box-shadow: 0 24px 90px #3446372b; scrollbar-width: thin; }
.story-dialog::backdrop { background: #34413755; backdrop-filter: blur(9px); }
.story-dialog .eyebrow { color: var(--story-accent); font-size: 10px; letter-spacing: .16em; }
.story-dialog h2 { margin: 12px 0 28px; color: var(--story-ink); font: 400 clamp(26px, 5vw, 34px)/1.3 var(--album-serif, Georgia, serif); letter-spacing: -.025em; }
#story-body { padding-top: 18px; border-top: 1px solid #e4ddd0; font-size: 15px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
#story-body b { display: inline-block; padding: 3px 9px; border-radius: 5px; background: #e9eee4; color: #365549; font-size: 11px; font-weight: 500; letter-spacing: .025em; }
#story-body p { margin: 9px 0 24px; }
#story-actions { display: grid; gap: 12px; margin-top: 24px; }
#story-actions button { white-space: normal; height: auto; min-height: 50px; padding: 14px 18px; border: 1px solid #ccd4c4; border-radius: 12px; color: #244e43; background: #fffdf8; font: 500 14px/1.7 var(--album-sans, system-ui, sans-serif); transition: transform .18s, background .18s, box-shadow .18s; }
#story-actions button:hover:not(:disabled) { transform: translateY(-2px); background: #eaf0e5; box-shadow: 0 5px 15px #244e4310; }
#story-actions button:only-child { color: #fffdf8; background: #244e43; border-color: #244e43; }
#story-actions button:only-child:hover:not(:disabled) { background: #315f50; }
#story-exit { display: flex; margin: 20px auto 0; padding-inline: 12px; color: #747b6e; font-size: 12px; }
#story-journal-list { margin-block: 0; padding-left: 20px; color: var(--story-ink); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
#story-journal-list li { padding-left: 7px; margin: 20px 0; }
#story-journal-list li::marker { color: #b58c7d; }
@media (max-width: 420px) { .story-dialog { width: calc(100vw - 24px); padding: 25px 22px; border-radius: 18px; } #story-body { font-size: 14px; } .story-dialog h2 { margin-bottom: 23px; } }
@media (prefers-reduced-motion: reduce) { #story-actions button { transition: none; } }
