:root{--navy:#0b2038;--tan:#f1e3cb;--paper:#fffdfa;--copper:#985526;--line:#e2d8ca;--muted:#626973;--reading-size:19px;font-family:Inter,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;color:var(--navy);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}button{cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b87738;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:inherit;font-weight:650}h1{font-size:30px;letter-spacing:-.6px;line-height:1.08;margin-bottom:14px}h2{font-size:30px;letter-spacing:-.5px}h3{font-size:22px}p{line-height:1.55}hr{border:0;border-top:1px solid var(--line);margin:26px 0}.site-header{background:var(--tan)}.header-inner{max-width:1280px;margin:auto;min-height:76px;display:flex;align-items:center;padding:0 40px;gap:32px;border-bottom:1px solid var(--copper)}.brand{width:170px;height:76px;display:flex;align-items:center;flex-shrink:0}.brand img{width:160px;height:76px;object-fit:contain}.header-inner nav{display:flex;gap:52px;align-items:center}.header-inner nav a{font-size:20px;padding:18px 0 12px;border-bottom:3px solid transparent;white-space:nowrap}.header-inner nav a[aria-current]{border-color:var(--copper)}.profile-link{margin-left:auto;font-size:18px;white-space:nowrap}main{max-width:1280px;margin:auto;padding:28px 40px 0;min-height:0}.library-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:34px}.library-heading p{font-size:24px;margin:0}.release-note{font:italic 25px system-ui,sans-serif;white-space:nowrap;margin-top:12px}.library-grid{display:grid;grid-template-columns:minmax(0,2.32fr) minmax(290px,1fr);gap:26px}.book-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;padding-top:10px}.book-button{padding:0;width:100%;border:0;border-radius:9px;background:transparent;display:block;transition:transform .2s;box-shadow:0 5px 10px #1421301c;overflow:hidden}.book-button:hover{transform:translateY(-5px)}.book img{display:block;width:100%;aspect-ratio:.60;object-fit:cover}.book h2{text-align:center;font-size:25px;line-height:1.2;margin:17px 0 5px;letter-spacing:-.5px}.book p{text-align:center;font-size:18px;margin:0;line-height:1.4}.current-story{border-left:1px solid #b9ac98;padding-left:27px;display:flex;flex-direction:column}.eyebrow{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:2.3px;color:var(--copper);margin-bottom:16px;line-height:1.5}.current-story .eyebrow{font-size:15px}.scene-preview{width:100%;aspect-ratio:2.55;object-fit:cover;border-radius:8px;display:block;margin-bottom:12px}.current-story h2{font-size:clamp(26px,2.7vw,39px);margin-bottom:5px;letter-spacing:-1px;line-height:1.05}.act-caption{font-size:19px;margin-bottom:10px}.story-intro{font-size:17px;line-height:1.45;margin-bottom:0}.companions{width:100%;height:180px;object-fit:contain;mix-blend-mode:multiply;margin-top:4px}.companion-labels{display:flex;justify-content:space-around;font:bold 22px system-ui,sans-serif;margin-bottom:24px}.button{border:1px solid var(--navy);border-radius:6px;padding:13px 24px;display:inline-flex;align-items:center;justify-content:center;font-size:16px;line-height:1.3;min-height:46px;gap:10px;text-decoration:none!important;transition:background .15s}.button.primary{background:var(--navy);color:white}.button.primary:hover{background:#1e3d5d}.button.secondary{background:transparent;color:var(--navy)}.button.secondary:hover{background:#f1eadf}.button.subtle{background:transparent;border-color:var(--line);padding:9px 16px;font-size:14px;min-height:40px}.current-story>.button{width:100%;margin-top:auto;font:24px system-ui,sans-serif;padding:14px 18px}.world-promise{border-top:1px solid var(--copper);display:flex;align-items:center;gap:30px;margin-top:38px;padding:28px 0 18px}.world-promise h2{font-size:35px;white-space:nowrap;margin:0}.world-promise p{font-size:18px;margin:0}.world-promise a{font-size:17px;white-space:nowrap;margin-left:auto;text-decoration:underline;text-underline-offset:7px}.site-footer{max-width:1280px;margin:25px auto 0;padding:24px 40px;display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:12px;border-top:1px solid #eee7dc}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:12px 0 20px}.page-heading h1{font-size:30px}.page-heading p{margin-bottom:0;color:var(--muted);font-size:18px}.quiet,.muted{color:var(--muted)}.character-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.character-card{border:1px solid var(--line);padding:18px;border-radius:8px}.character-card.selected{border-color:var(--copper)}.character-card h2{font-size:24px;margin-bottom:10px}.character-card>.button{width:100%}.new-character{background:#f8f3e9;display:flex;flex-direction:column;justify-content:center}.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.mini-stats dt{font-size:12px;color:var(--muted)}.mini-stats dd{margin:5px 0 0;font:25px system-ui,sans-serif}.detail-section{margin-top:24px}.detail-section .page-heading{margin-bottom:10px}.item-row{padding:12px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:20px;justify-content:space-between}.item-row h3{margin-bottom:7px}.item-row p{margin-bottom:5px}.item-row small{color:var(--muted)}.creation-form{display:grid;grid-template-columns:1.2fr 1fr;gap:32px;max-width:1150px}.creation-form h2,.settings-grid h2{font-size:28px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:35px}label{display:flex;flex-direction:column;font-size:15px;font-weight:600;gap:10px}input,select{border:1px solid #c9c3ba;border-radius:5px;padding:13px 12px;min-height:46px;background:white;color:var(--navy);width:100%;font-weight:400}.calling-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.calling{border:1px solid var(--line);border-radius:6px;padding:16px;display:flex;flex-direction:row;gap:12px;cursor:pointer;align-items:flex-start}.calling:has(input:checked){border-color:var(--copper);background:#f7f0e4}.calling input{width:17px;min-height:17px;margin:3px 0;accent-color:var(--navy);flex-shrink:0}.calling strong{display:block;font:20px system-ui,sans-serif;margin-bottom:6px}.calling small{font-weight:400;line-height:1.4;display:block}.calling em{font-size:11px;font-style:normal;display:block;margin-top:10px;color:var(--copper)}.questions label,.settings-grid label{margin-bottom:20px}.questions>.button{width:100%;margin:15px 0}.text-link{display:block;text-align:center;text-decoration:underline}.error{color:#943d31}.warning{background:#fff0de;padding:14px;margin-bottom:20px;line-height:1.4}.reader-top{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:0 0 22px;font-size:13px;color:var(--muted)}.text-button{border:0;background:none;color:var(--navy);padding:10px 0;text-decoration:underline}.reader-layout{display:grid;grid-template-columns:minmax(0,850px) 270px;gap:32px;justify-content:center}.act-track{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);margin-bottom:25px}.act-track span{font-size:13px;padding:12px 0;color:var(--muted)}.act-track .current{color:var(--copper);border-bottom:2px solid var(--copper)}.reader-art{width:100%;aspect-ratio:3.6;object-fit:cover;border-radius:7px;margin-bottom:26px}.reader h1{font-size:30px;letter-spacing:-1px}.reader .eyebrow{margin-bottom:10px}.narration-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0 18px;font-size:12px}.narration-controls a{text-decoration:underline}.prose{font:var(--reading-size)/1.65 system-ui,sans-serif;max-width:66ch}.prose p{line-height:1.65;margin-bottom:16px}.choices{margin:20px 0}.choices h2{font-size:26px}.choice{width:100%;display:flex;justify-content:space-between;align-items:center;gap:20px;text-align:left;padding:13px 16px;border:1px solid #cfcbc2;border-radius:6px;margin:12px 0;background:white;color:var(--navy);line-height:1.45}.choice:hover:enabled{border-color:var(--copper);background:#faf5ed}.choice small{font-size:11px;flex-shrink:0;color:var(--copper)}.choice:disabled{color:#81858b;background:#f7f5f1;border-color:#e8e4de}.reader-notes{border-left:1px solid var(--line);padding:25px 0 0 25px;margin-top:0;font-size:14px}.reader-notes h2{font-size:28px}.reader-notes h3{font-size:21px}.reader-notes ol{padding-left:20px}.reader-notes li{margin:13px 0;line-height:1.5}.ending{border-top:1px solid var(--copper);padding-top:28px;margin:32px 0}.button-row{display:flex;gap:12px;flex-wrap:wrap}.journal-grid,.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;max-width:1200px}.journal-grid h2{font-size:28px}.journal-entry{border-bottom:1px solid var(--line);padding:20px 0;margin-bottom:15px}.journal-entry .eyebrow{margin:0 0 6px}.journal-entry h3{margin-bottom:8px}.journal-entry ul{padding-left:20px;line-height:1.6}.discovery{padding:12px 0;border-bottom:1px solid var(--line)}.chronicle{padding-left:22px}.chronicle li{padding:12px 0}.chronicle p{color:var(--muted);margin:6px 0}.empty{padding:70px 0;max-width:650px}.empty h1{font-size:30px}.empty p{font-size:19px}.empty .button{margin-top:20px}dialog{border:1px solid var(--line);border-radius:12px;padding:0;color:var(--navy);max-width:740px;width:calc(100% - 32px);max-height:85vh;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#07182c88}.dialog-content{padding:42px;position:relative}.dialog-content h2{font-size:32px}.dialog-content li{margin:12px 0;line-height:1.5}.dialog-close{position:absolute;right:15px;top:12px;border:0;background:none;color:var(--muted);font-size:12px;padding:7px}.book-detail{display:grid;grid-template-columns:200px 1fr;gap:30px;align-items:center}.book-detail img{width:100%;border-radius:6px}.book-detail h2{font-size:24px}.book-detail .button{margin-top:10px}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:1000;background:var(--navy);color:white;padding:15px 24px;border-radius:8px;box-shadow:0 5px 30px #0002;max-width:90%;font-size:14px;line-height:1.5}.skip{position:fixed;top:-100px;left:20px;background:white;padding:12px;z-index:9999}.skip:focus{top:10px}@media(min-width:1500px){.book img{aspect-ratio:.62}}@media(max-width:1150px){.header-inner{gap:25px;padding:0 25px}.header-inner nav{gap:25px}.header-inner nav a{font-size:17px}main{padding:28px 25px 0}.release-note{font-size:19px}.library-heading p{font-size:20px}.library-grid{grid-template-columns:2fr 1fr;gap:20px}.current-story{padding-left:20px}.book h2{font-size:20px}.book p{font-size:14px}.current-story h2{font-size:29px}.story-intro{font-size:15px}.act-caption{font-size:16px}.companions{height:130px}.current-story>.button{font-size:20px}.world-promise{gap:20px}.world-promise h2{font-size:28px}.world-promise p{font-size:15px}.world-promise a{font-size:14px}.reader-layout{gap:30px;grid-template-columns:minmax(0,1fr) 230px}.creation-form{gap:35px}.character-grid{gap:14px}.character-card{padding:20px}}@media(max-width:800px){.header-inner{min-height:100px;gap:15px;flex-wrap:wrap;justify-content:space-between;padding:0 20px}.brand{height:80px;width:150px}.brand img{width:145px;height:85px}.profile-link{font-size:14px}.header-inner nav{order:3;width:100%;gap:28px;justify-content:flex-start}.header-inner nav a{font-size:16px;padding:0 0 12px}.library-heading{display:block;margin-bottom:25px}.library-heading h1{font-size:28px;letter-spacing:-1px}.library-heading p{font-size:17px}.release-note{display:block;font-size:18px;margin-top:20px}.library-grid{display:flex;flex-direction:column;gap:35px}.book-shelf{gap:13px}.book h2{font-size:18px}.book p{font-size:12px}.current-story{border-left:0;border-top:1px solid var(--line);padding:24px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:12px 20px}.current-story .eyebrow{grid-column:1/-1;margin-bottom:0}.scene-preview{grid-row:2/5;margin-bottom:0;aspect-ratio:1.5;height:100%}.current-story h2{font-size:28px;margin:0}.current-story p{margin:0}.companions,.companion-labels{display:none}.current-story>.button{grid-column:2;font-size:18px}.world-promise{flex-wrap:wrap;margin-top:30px;gap:14px}.world-promise h2{width:100%;font-size:30px}.world-promise a{margin-left:0}.world-promise p{font-size:16px}.site-footer{padding:20px;flex-direction:column;font-size:11px}.character-grid{grid-template-columns:1fr 1fr}.creation-form,.journal-grid,.settings-grid{grid-template-columns:1fr;gap:35px}.page-heading h1{font-size:28px}.page-heading{align-items:flex-start}.reader-layout{grid-template-columns:1fr}.reader-notes{border-left:0;border-top:1px solid var(--line);padding:20px 0;margin-top:0}.reader-top{flex-wrap:wrap}.reader h1{font-size:28px}.reader-art{aspect-ratio:2.7}.book-detail{grid-template-columns:140px 1fr;gap:20px}.book-detail h2{font-size:28px}}@media(max-width:480px){main{padding:26px 20px 0}.library-heading h1{font-size:28px}.book-shelf{gap:10px}.book h2{font-size:16px;letter-spacing:-.3px}.book p{font-size:11px}.book-button{border-radius:5px}.current-story{display:flex}.scene-preview{height:auto;aspect-ratio:2.5}.current-story h2{font-size:24px}.current-story>.button{margin-top:12px}.current-story .story-intro{font-size:16px}.character-grid,.form-grid{grid-template-columns:1fr}.page-heading{display:block}.page-heading .quiet{display:block;margin-top:18px}.calling-grid{gap:9px}.calling{padding:12px}.calling strong{font-size:18px}.act-track span{font-size:11px}.choice{display:block}.choice small{display:block;margin-top:7px}.dialog-content{padding:40px 24px 28px}.book-detail{grid-template-columns:1fr}.book-detail img{width:130px;margin:auto}.reader-top>span{display:none}.narration-controls{gap:8px}.detail-section .page-heading>.button{margin-top:15px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.dice-panel{background:#f6efdf;border:1px solid #cfbea0;border-radius:12px;padding:18px;margin:18px 0}.dice-panel h2{margin:8px 0 12px}.dice-panel input{display:block;max-width:160px;padding:12px;margin:10px 0 16px;border:1px solid #9b8d78;border-radius:6px;font:inherit}.dice-panel .button-row{flex-wrap:wrap}.button:disabled{opacity:.5;cursor:not-allowed}

/* Compact reading layout: plain typography, fewer repeated labels. */
.header-inner{gap:32px}.header-inner nav{gap:24px}.header-inner nav a,.profile-link{font:500 15px/1.4 system-ui,sans-serif}
h2{font-size:21px;letter-spacing:-.3px;margin-bottom:12px}h3{font-size:17px}.eyebrow{font-size:12px;letter-spacing:.2px;text-transform:none;margin-bottom:8px;color:var(--muted)}
.library-heading{margin-bottom:18px}.library-heading h1{margin:0;font-size:28px}.library-heading span{font-size:14px}.book-shelf{padding:0;gap:18px}.book img{aspect-ratio:.68;max-height:390px}.book h2{font-size:17px;margin:12px 0 4px}.book p{font-size:13px}.current-story h2{font-size:24px;letter-spacing:-.4px;line-height:1.2}.current-story .eyebrow{font-size:13px}.current-story>.button{font:500 15px/1.4 system-ui,sans-serif}.companions,.companion-labels{display:none}.current-story{gap:10px}.story-intro{margin-bottom:14px}.act-caption{font-size:14px}.site-footer{margin-top:20px;padding-top:16px;padding-bottom:16px}
.reader-layout{grid-template-columns:minmax(0,760px) 230px;gap:32px}.reader-art{max-height:135px;margin-bottom:16px}.reader h1{font-size:30px;letter-spacing:-.6px}.chapter-label{color:var(--muted);font-size:13px;margin-bottom:6px}.act-track{margin-bottom:16px}.reader-notes{padding:16px 0 0 18px}.reader-notes h2{font-size:20px}.reader-notes h3{font-size:15px}.reader-notes li{margin:8px 0}.reader-notes hr{margin:16px 0}.reader-top{padding-bottom:12px}.prose{max-width:68ch}.narration-controls{gap:8px}.character-card h2{font-size:23px}.mini-stats dd{font:600 20px/1.4 system-ui,sans-serif}.new-character h2{font-size:21px}.gear-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.detail-section .page-heading h2{font-size:21px}.page-heading h1{font-size:28px}.page-heading p{font-size:15px}.dice-panel h2{font-size:20px}.creation-form h2,.settings-grid h2,.journal-grid h2{font-size:21px}.journal-grid h3{font-size:18px}.calling strong{font:600 16px/1.4 system-ui,sans-serif}
.practice-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:32px}.rules{margin:16px 0;font-size:14px;line-height:1.6}.rules summary{cursor:pointer;text-decoration:underline}.health-row{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0 12px}.health-row strong{font-size:14px}progress{display:block;width:100%;height:10px;margin-top:8px;accent-color:var(--navy)}.combat-log{padding-left:22px;font-size:15px;line-height:1.6}.combat-log li{padding:6px 0}.training-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin:20px 0}.training-controls form{display:flex;gap:10px;align-items:flex-end}.training-controls input{max-width:140px}.trail-tasks{border-left:1px solid var(--line);padding-left:24px}.trail-task{padding:16px 0;border-top:1px solid var(--line)}.trail-task p{font-size:14px}.practice-layout>section>p,.trail-tasks>p{font-size:15px}
@media(max-width:800px){.header-inner{min-height:80px;gap:6px 16px}.brand,.brand img{height:62px}.header-inner nav{gap:20px;justify-content:space-between}.header-inner nav a{font-size:14px}.library-heading{display:flex}.library-heading h1{font-size:26px}.library-heading span{font-size:12px}.reader-layout,.practice-layout{grid-template-columns:1fr}.trail-tasks{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}.reader-notes{padding:16px 0}.current-story{display:flex;padding-top:18px;gap:8px}.scene-preview{max-height:130px}.reader h1{font-size:26px}.page-heading h1{font-size:26px}.book h2{font-size:15px}.site-footer{gap:8px}.item-row{align-items:flex-start}.gear-actions{max-width:210px}.book img{max-height:none}}
@media(max-width:480px){main{padding:18px 16px 0}.header-inner{padding:0 16px}.book-shelf{gap:10px}.library-heading span{max-width:130px;text-align:right}.item-row{flex-wrap:wrap;gap:10px}.gear-actions{max-width:none;justify-content:flex-start}.character-grid{gap:12px}.page-heading{margin:8px 0 18px}.detail-section{margin-top:22px}.reader-art{max-height:100px}.button{padding:11px 16px}}
