:root{--ink:#29372e;--forest:#2e4a3a;--gold:#ad894d;--paper:#f6f4ee;--line:#deded3;--muted:#889083}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;font-size:14px}button,select{font:inherit}button{cursor:pointer;border:0;color:inherit;background:none;transition:background .2s,transform .2s}button:hover{background:#d7ddcf80}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid #b18b48;outline-offset:3px}button:disabled{opacity:.35;cursor:not-allowed}header{height:83px;display:flex;align-items:center;justify-content:space-between;background:#24352c;color:#f2f0e5;padding:0 max(30px,calc((100vw - 1440px)/2));border-bottom:1px solid #425144}.brand{display:flex;align-items:center;gap:13px;color:inherit;text-decoration:none;letter-spacing:3px;font:21px Georgia,serif}.brand-icon{font-size:40px;color:#d6b67a}.brand small{display:block;letter-spacing:2px;font:10px sans-serif;margin-top:5px;color:#b0bcac}.header-center{font-size:12px;color:#b4bfaf;display:flex;align-items:center;gap:10px}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#a6ba84;box-shadow:0 0 0 4px #a6ba8415}nav{display:flex;align-items:center;gap:18px}nav button{font-size:12px;padding:9px 5px}nav button span{font-size:10px;padding:2px 5px;background:#526046;border-radius:3px;margin-left:5px}#settings-btn{font-size:23px}main{max-width:1440px;padding:0 34px;margin:auto}.page-heading{padding:32px 0 27px;display:flex;align-items:end;justify-content:space-between}.eyebrow{font:10px Arial,sans-serif;letter-spacing:2px;color:var(--gold);font-weight:600}h1{font-family:Georgia,'Batang',serif;font-weight:400;font-size:28px;letter-spacing:-1px;margin:9px 0 0}h1 em{font-style:normal;color:#647054}.save-indicator{font-size:11px;color:#84907f;padding-bottom:4px}.save-indicator:before{content:'✓';margin-right:6px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 302px;gap:22px}.world-wrap{border:1px solid #d0d5c7;border-radius:9px;overflow:hidden;background:#203c2b;min-width:0;box-shadow:0 5px 20px #2635220b}.world-toolbar{display:flex;justify-content:space-between;align-items:center;background:#eef0e6;height:48px;padding:0 19px;font-size:12px}.world-toolbar>span:first-child{display:flex;align-items:center;gap:10px}.world-toolbar small{font-size:10px;color:#88917f;border-left:1px solid #cad0c0;padding-left:10px}.world-toolbar .live-dot{background:#6c8e5d}.viewport{height:505px;position:relative;overflow:hidden;background:#365541}#world{display:block;width:100%;height:100%;image-rendering:pixelated;touch-action:pan-y}.world-vignette{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 -100px 100px -70px #0d241cdf}.world-caption{position:absolute;left:22px;bottom:20px;color:#fff;font-size:13px;text-shadow:0 2px 3px #172515}.world-caption small{display:block;font-size:11px;opacity:.85;margin-top:5px}.camera-tools{position:absolute;right:14px;bottom:16px;display:flex;gap:3px;background:#233629cd;padding:4px;border:1px solid #c3d4ab40;border-radius:5px;color:#fff}.camera-tools button{width:29px;height:29px}.camera-tools .selected{background:#b7c69b35}.intro-card{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;padding:29px 34px 24px;min-width:370px;color:#f8f6e9;background:linear-gradient(145deg,#20382eea,#203229e8);border:1px solid #b9b89070;box-shadow:0 10px 60px #13221965;backdrop-filter:blur(5px);border-radius:5px}.intro-star{font-size:30px;color:#d5bc83;display:block;margin-bottom:12px}.intro-card h2{font:30px/1.5 Georgia,'Batang',serif;letter-spacing:-.8px;margin:17px 0 12px}.intro-card .eyebrow{font-size:9px;color:#c2bb93}.intro-card p{font-size:12px;line-height:1.9;color:#c2cabc;margin:0 0 24px}.primary{background:#d6b77b;color:#2c3729;border:1px solid #e3cda3;padding:14px 20px;border-radius:3px;font-weight:700}.primary:hover{background:#e7c88e}.intro-card .primary{display:flex;width:100%;align-items:center;justify-content:space-between}.intro-card>small{display:block;font-size:9px;color:#a9b69f;margin-top:14px}.playback{height:58px;display:flex;justify-content:space-between;align-items:center;padding:0 15px;background:#f0f1e8}.play-left{display:flex;align-items:center;gap:12px}#pause{width:32px;font-size:17px}.speed-group{display:flex;gap:2px;background:#e2e6d9;padding:3px;border-radius:4px}.speed-group button{padding:5px 10px;font-size:11px;border-radius:3px}.speed-group .selected{background:#fff;box-shadow:0 1px 3px #0001}#next-year{font-size:10px;color:#6d7968;padding:8px}.auto-control{display:flex;align-items:center;gap:6px;font-size:10px;color:#707e68;cursor:pointer}.auto-control input{accent-color:#48673c}.character-panel{border:1px solid var(--line);border-radius:8px;padding:20px;background:#fbfaf5;display:flex;flex-direction:column}.panel-label{display:flex;justify-content:space-between;font-size:11px;color:#72816c}.panel-label>span{color:#b0b69d;font-family:Georgia,serif}.identity{display:flex;align-items:center;gap:12px;margin:22px 0 18px}.portrait{width:59px;height:67px;flex-shrink:0;background:repeating-linear-gradient(0deg,#e5e9d9 0px,#e5e9d9 2px,#e1e5d5 2px,#e1e5d5 4px);border:1px solid #cdd4bd;border-radius:4px;position:relative;display:grid;place-items:center}.portrait canvas{width:46px;height:62px;image-rendering:pixelated}.portrait-mark{position:absolute;bottom:-5px;right:-5px;color:#9c854c;background:#f7f6ec;font-size:16px}.subtle{color:#87917c;font-size:10px}.identity h2{font:23px Georgia,'Batang',serif;margin:6px 0 7px}.job-tag{font-size:10px;color:#617653}.age-row{display:flex;align-items:baseline;justify-content:space-between}.age-row strong{font:36px Georgia,serif;color:#304c38}.age-row>span>span{font-size:11px;color:#939c88}.life-stage{font-size:10px;color:#8e967f}.life-track{height:4px;background:#e9e9dc;margin-top:9px}.life-track i{display:block;height:100%;background:#b1aa75;width:0;transition:width 1s}.life-labels{display:flex;justify-content:space-between;font-size:9px;color:#a1a58f;margin:7px 0 21px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:15px 22px}.stat-head{display:flex;justify-content:space-between;font-size:10px;color:#76846e;margin-bottom:7px}.stat-head b{font-size:11px;color:#40523b;font-weight:500}.stat-bar{height:3px;background:#e8e9dd}.stat-bar i{display:block;height:100%;width:0;background:var(--bar);transition:width .5s}.wealth{display:flex;justify-content:space-between;align-items:center;padding:16px 0;margin-top:6px;border-bottom:1px solid #e4e5d9;font-size:11px;color:#7b886f}.wealth b{color:#6d6543;font:17px Georgia,serif}.wealth small{font-size:10px}.coin{color:#b09246;font-size:12px}.section-label{font-size:11px;color:#5c6d54;display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.section-label>span{font-size:9px;color:#9aa08c}.section-label button{font-size:9px;color:#8b957c}.focus-block{margin-top:17px}select{width:100%;padding:10px;background:#eeeee4;color:#526148;border:1px solid #dbdfce;border-radius:4px;font-size:11px}.skill-block{margin-top:20px}.skill-list{display:flex;flex-wrap:wrap;gap:6px;min-height:35px}.skill-chip{font-size:10px;background:#edf0e4;color:#617352;border:1px solid #dce2d0;border-radius:3px;padding:6px 7px;display:flex;align-items:center;gap:5px}.empty-note{font-size:10px;color:#a1a58e;line-height:1.8;margin:0}.talent-note{font-size:10px;color:#969a81;line-height:1.9;margin-top:auto;padding-top:16px}.journal{margin-top:30px}.journal-heading{display:flex;justify-content:space-between;align-items:end;border-bottom:1px solid #daded1;padding-bottom:17px}.journal h2{font:21px Georgia,'Batang',serif;font-weight:400;margin:7px 0 0}.journal .eyebrow{font-size:9px}.journal-tabs{display:flex;gap:18px}.journal-tabs button{padding:8px 0;font-size:11px;color:#949b87}.journal-tabs .selected{color:#3c5439;border-bottom:2px solid #738461}.log{max-height:270px;overflow:auto;padding:10px 0}.log-entry{display:grid;grid-template-columns:63px 22px 1fr;gap:10px;padding:14px 2px;border-bottom:1px solid #e4e6dc}.log-age{font:15px Georgia,serif;color:#889478;padding-top:1px}.log-age small{font:10px sans-serif}.log-icon{font-size:14px;color:#b5a06b}.log-entry h3{font-size:12px;font-weight:600;margin:1px 0 6px;color:#536248}.log-entry p{font-size:11px;color:#87907c;line-height:1.7;margin:0}.empty-log{text-align:center;padding:28px;color:#9ba48e}.empty-log>span{font-size:24px}.empty-log p{font-size:12px}.empty-log small{font-size:10px}footer{display:flex;justify-content:space-between;padding:25px 0;color:#a4aa97;font-size:10px;letter-spacing:.5px}.footer-dot{padding:0 8px}.choice-card{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(460px,90%);max-height:95%;overflow:auto;background:#f9f7eff7;border:1px solid #b8bd9d;border-radius:5px;padding:25px;box-shadow:0 12px 80px #10261680;backdrop-filter:blur(8px)}.choice-card .eyebrow{font-size:9px}.choice-card h2{font:24px Georgia,'Batang',serif;margin:12px 0}.choice-card p{font-size:12px;line-height:1.9;color:#78816c}.choice-options{display:grid;gap:7px;margin-top:17px}.choice-options button{background:#eef0e4;border:1px solid #d8dec8;text-align:left;padding:12px;border-radius:3px;font-size:12px;color:#43563c}.choice-options button:hover{background:#dce5ce;border-color:#a1b58d}.choice-options small{display:block;font-size:10px;color:#8c957d;margin-top:5px;line-height:1.5}.choice-foot{font-size:9px;color:#9c9c82;margin-top:13px}.ending{text-align:center}.ending .primary{width:100%;margin-top:12px}#toast{position:absolute;bottom:70px;left:50%;transform:translateX(-50%);max-width:90%;background:#213d2de8;color:#e8efd8;padding:13px 20px;font-size:12px;border:1px solid #a1b18b;border-radius:4px;pointer-events:none}dialog{width:min(760px,calc(100vw - 28px));max-height:85vh;background:#f8f7f0;border:1px solid #a9b69a;border-radius:8px;padding:25px;color:var(--ink);box-shadow:0 20px 100px #0005}dialog::backdrop{background:#14251e88;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce0d0;padding-bottom:15px;margin-bottom:20px}.dialog-heading h2{font:24px Georgia,'Batang',serif;margin:0}.dialog-heading button{font-size:25px}#dialog-body{font-size:12px;line-height:1.8}.codex-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.codex-card{background:#ecefe2;border:1px solid #dce2cf;padding:15px;border-radius:5px}.codex-card h3{font-size:13px;margin:7px 0}.codex-card p{font-size:11px;color:#809071;margin:0}.codex-section{font:18px Georgia,'Batang',serif;margin:25px 0 12px}.item-icon{display:inline-block;width:40px;height:40px;background-size:400% 400%;image-rendering:pixelated;vertical-align:middle}.item-icon.equipment{background-image:url('./assets/equipment.webp')}.history-card{padding:17px;border:1px solid #d9e0ce;border-radius:4px;margin-bottom:12px;background:#eef1e6}.history-card h3{margin:0 0 5px}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid #dde2d0;gap:15px}.settings-row button{padding:8px 14px;background:#e6ebdb;border-radius:3px}.settings-row small{color:#8c9780}.notice{font-size:11px;color:#8d987d;padding:12px;background:#eef0e5;border-radius:4px}.modal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.modal-actions button{padding:10px 15px;background:#dfe7d3;border-radius:3px}[hidden]{display:none!important}@media(min-width:1500px){.viewport{height:560px}}@media(max-width:1100px){main{padding:0 22px}.game-layout{grid-template-columns:minmax(0,1fr) 270px;gap:15px}.character-panel{padding:17px}.viewport{height:525px}.header-center{display:none}.world-toolbar small{display:none}.intro-card{min-width:330px;padding:24px}.play-left{gap:5px}.auto-control{font-size:9px}}@media(max-width:760px){header{height:66px;padding:0 18px}.brand{font-size:18px}.brand-icon{font-size:31px}nav{gap:10px}nav button{font-size:10px}.brand small{font-size:8px}.page-heading{padding:24px 0 18px}.page-heading h1{font-size:22px;line-height:1.5}.save-indicator{display:none}main{padding:0 14px}.eyebrow{font-size:8px}.game-layout{display:flex;flex-direction:column}.viewport{height:460px}.world-toolbar{padding:0 12px}.intro-card{min-width:0;width:85%;padding:24px 20px}.intro-card h2{font-size:27px}.intro-card p{font-size:11px}.playback{padding:0 7px}.play-left{gap:3px}.speed-group button{padding:6px 8px}.auto-control{gap:2px}.character-panel{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.panel-label{grid-column:1/-1}.identity{grid-column:1/2;margin:17px 0}.identity h2{font-size:21px}.age-row{grid-column:2/3;grid-row:2;align-self:center}.life-track,.life-labels{grid-column:1/-1}.life-labels{margin-bottom:20px}.stats{grid-column:1/-1;grid-template-columns:1fr 1fr 1fr}.wealth{grid-column:1/2}.focus-block{grid-column:2/3;margin:12px 0}.focus-block .section-label>span{display:none}.skill-block{grid-column:1/-1;margin:12px 0}.talent-note{grid-column:1/-1;padding-top:0}.journal{margin-top:25px}.journal-heading{align-items:start;gap:10px}.journal h2{font-size:19px}.journal-tabs{gap:12px;flex-wrap:wrap;justify-content:end;max-width:175px}.journal-tabs button{font-size:10px}.journal-tabs #export{display:none}.log{max-height:290px}.codex-grid{grid-template-columns:1fr 1fr}footer{font-size:8px}.choice-card{padding:20px}.choice-card h2{font-size:21px}.choice-card p{font-size:11px}.world-caption{left:14px;bottom:15px}.world-caption small{max-width:220px}.camera-tools{bottom:12px;right:10px}.header-center{display:none}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.world-wrap{display:flex;flex-direction:column}.world-toolbar,.playback{flex-shrink:0}.viewport{flex:1;min-height:505px}.relations-button{margin-top:13px;text-align:left;font-size:10px;color:#788567;padding:7px 0;border-top:1px solid #e3e5d8}.combat-badge{position:absolute;top:14px;left:15px;background:#412b29e8;color:#efdbb7;padding:12px 16px;border:1px solid #c7a27377;border-radius:4px;pointer-events:none}.combat-badge b{font-size:12px;display:block}.combat-badge span{font-size:10px;display:block;margin-top:6px}@media(max-width:760px){.viewport{flex:none;min-height:460px}.relations-button{grid-column:1/-1}}



.scene-tools{position:absolute;right:14px;top:14px;display:flex;gap:5px}.scene-tools button{height:30px;background:#263a2dd9;border:1px solid #d0d7af40;border-radius:4px;color:#e2e8ce;padding:0 10px;font-size:15px}.scene-tools span{font-size:9px;margin-left:5px}.scene-tools .selected{color:#f0d290;border-color:#dac286}.year-progress{height:3px;background:#d8dece}.year-progress i{display:block;background:#a8b184;height:100%;width:0;transition:width .1s linear}.year-summary{display:flex;align-items:center;gap:25px;border:1px solid #dce1d1;background:#f0f2e8;border-radius:6px;margin-top:18px;padding:15px 20px}.summary-heading{min-width:90px}.summary-heading strong{display:block;font:16px Georgia,'Batang',serif;margin-top:5px}#summary-data{display:flex;gap:25px;flex-wrap:wrap;font-size:11px;color:#89927c}#summary-data b{color:#536744;font-size:13px;margin-left:8px}.relationship-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.person-card{border:1px solid #d4dec9;border-radius:5px;padding:17px;background:#edf1e6}.person-head{display:flex;align-items:center;gap:12px}.person-head h3{margin:0;font-size:15px}.person-head small{font-size:10px;color:#87927a}.person-avatar{width:48px;height:48px;border:2px solid #bac6a7;image-rendering:pixelated}.bond-row{margin:12px 0 5px;display:flex;justify-content:space-between;font-size:10px;color:#7d8b70}.bond-track{height:4px;background:#dae2d0}.bond-track i{height:4px;background:#98ac80;display:block}.person-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:13px}.person-actions button{border:1px solid #ced8c0;background:#f8f9f2;border-radius:3px;padding:7px 9px;font-size:10px}.person-card .interaction-note{font-size:10px;color:#929b84;min-height:18px;margin-top:8px}.person-card.deceased{opacity:.65}.mastery-tag{display:inline-block;margin:8px 0 0;font-size:10px;padding:3px 7px;background:#dce6ce;border-radius:3px;color:#60734e}.game-layout.theater{grid-template-columns:1fr}.game-layout.theater .character-panel{display:none}.game-layout.theater .viewport{height:min(78vh,850px);min-height:520px}.game-layout.theater .world-wrap{min-height:0}.npc-dialog .notice{margin-top:15px}.npc-dialog h3{font:22px Georgia,'Batang',serif}.dialog-result{padding:10px;background:#e0e8d3;color:#576b48;margin:12px 0;font-size:12px}.combat-badge{max-width:calc(100% - 130px)}.combat-badge .battle-bar{height:3px;background:#70554e;margin-top:8px}.combat-badge .battle-bar i{height:100%;display:block;background:#d6bc7c;width:0}.world-caption{pointer-events:none}footer small{margin-left:8px;opacity:.7}@media(max-width:760px){.year-summary{padding:12px;gap:15px;align-items:flex-start}#summary-data{gap:8px 16px;font-size:10px}#summary-data b{font-size:12px}.summary-heading{min-width:70px}.summary-heading strong{font-size:14px}.relationship-grid{grid-template-columns:1fr}.game-layout.theater .viewport{height:75vh;min-height:420px}.scene-tools{right:10px;top:10px}.scene-tools button{padding:0 8px}.journal-tabs{max-width:210px;gap:10px}.combat-badge{max-width:calc(100% - 120px);padding:9px}.combat-badge b{font-size:10px}}

@media(max-width:760px){.summary-heading{min-width:82px}.summary-heading strong{font-size:13px;white-space:nowrap}}

/* One material language: warm parchment, moss, walnut and antique gold. */
:root{--paper:#f3f0e6;--line:#d5d7c4;--muted:#7e896f;--frame:#79866b;--frame-light:#e6dfc8}
.ui-glyph{display:inline-block;width:16px;height:16px;fill:currentColor;shape-rendering:crispEdges;vertical-align:middle;flex-shrink:0}
.world-wrap,.character-panel,.intro-card,.choice-card,dialog,.year-summary,.person-card,.codex-card,.history-card{border-radius:2px}
.world-wrap{border:2px solid #899477;box-shadow:0 0 0 1px #e6dfc8,0 4px 0 #2c3d2510}
.character-panel,.year-summary{border-color:#c3cbb3;box-shadow:inset 0 0 0 3px #fffdf34d}
.world-toolbar,.playback{background:#e9ecdf;border-color:#c4ceb6}
.world-toolbar{border-bottom:2px solid #53694a}.playback{border-top:1px solid #d9dfca}
.camera-tools,.scene-tools button{border-radius:1px;border-color:#c8bc8966;background:#2b4033ef;color:#e6ddbb;box-shadow:inset 0 0 0 1px #152b1f44}
.scene-tools button{display:flex;align-items:center;justify-content:center;gap:3px}.scene-tools span{margin:0 0 0 3px}
.camera-tools button{display:grid;place-items:center}.camera-tools .selected{color:#ecd296;background:#79866455}
#pause{display:grid;place-items:center;color:#48613e}#pause .ui-glyph{width:20px;height:20px}
#settings-btn .ui-glyph{width:19px;height:19px}
.portrait{width:64px;height:72px;border-radius:1px;background:#d5dcc3;border:2px solid #a4af8d;box-shadow:inset 0 0 0 2px #e5e9d5}
.portrait canvas{width:60px;height:68px;image-rendering:pixelated}.portrait-mark{background:#faf7ec;color:#ad8c4c}
.person-avatar,.race-avatar{display:block;width:56px;height:56px;flex-shrink:0;image-rendering:pixelated;background:#d9dfc9;background-image:none;border:2px solid #acb793;box-shadow:inset 0 0 0 2px #eef0df}
.race-avatar{width:64px;height:64px}
.item-icon.unified-icon{background-image:url('./assets/icons-v3.webp');background-size:600% 400%;border-radius:0;width:44px;height:44px}
.item-icon.equipment{width:44px;height:44px;background-size:400% 400%;border-radius:0}
.skill-chip{border-radius:1px;padding:4px 6px 4px 3px;gap:3px;background:#e7ecdc;border-color:#cbd4b9;color:#4e653f}
.skill-chip .item-icon{width:22px;height:22px;flex-shrink:0}.skill-chip span{white-space:nowrap}
.codex-card{background:#eceddf;border-color:#cdd4bd}.codex-card>.item-icon{background-color:#dce2ce;outline:1px solid #c4cdb0;outline-offset:3px;margin:4px}
.person-card{background:#e9edde;border-color:#c7d0b8}.person-actions button,.choice-options button,select,.mastery-tag,.primary,.speed-group,.speed-group button,.settings-row button,.modal-actions button{border-radius:1px}
.choice-card{background:#f5f2e7fb;border:2px solid #8e9b76;box-shadow:0 0 0 2px #dcd3af,0 12px 60px #162a1e70}.choice-options button{box-shadow:inset 0 0 0 1px #fff8}
dialog{border:2px solid #869574;box-shadow:0 0 0 2px #e3d9b9,0 20px 80px #10251866}.dialog-heading{border-color:#c6cfb3}
.primary{box-shadow:inset 0 -2px 0 #92744255}.relations-button{display:flex;align-items:center;gap:7px;color:#61744f}.relations-button .ui-glyph{width:12px;height:12px}
.log-icon .ui-glyph{width:15px;height:15px}.combat-badge{border-radius:1px;border-color:#b9a875;background:#3e392aef}.combat-badge b{display:flex;align-items:center;gap:6px}.combat-badge .ui-glyph{width:14px;height:14px}
.stat-bar,.life-track,.bond-track{box-shadow:inset 0 1px 0 #273c2710}.stat-head,.subtle{color:#778269}
@media(max-width:760px){.portrait{width:54px;height:64px}.portrait canvas{width:50px;height:60px}.identity{gap:8px}.identity h2{font-size:20px}.skill-chip{padding:4px 6px 4px 3px}.skill-chip .item-icon{width:22px;height:22px}.scene-tools button{min-width:28px}.person-head{gap:10px}}

/* Choice scenes remain visible while the story waits below the canvas. */
.world-toolbar-actions{display:flex;align-items:center;gap:13px;flex-shrink:0}
#places{min-height:44px;font-size:10px;color:#526746;padding:0 6px;border-left:1px solid #cad2bc}
#choice{position:static;inset:auto;transform:none;width:100%;max-height:none;overflow:visible;flex:none;margin:0;padding:20px 24px 22px;border:0;border-top:3px solid #8b9b72;background:#f5f2e7;box-shadow:inset 0 0 0 3px #fff9;backdrop-filter:none}
.choice-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.choice-place{display:flex;align-items:center;gap:6px;font-size:10px;min-height:36px;padding:6px 9px;background:#e4e9d7;border:1px solid #cad3b7;color:#5a7047}
.choice-place .ui-glyph{width:11px;height:11px}.choice-place span{color:#9a8152}
#choice h2{margin:9px 0 8px;font-size:23px}#choice>p{margin:0;max-width:75ch;color:#6b785f;line-height:1.8}
#choice .choice-options{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:15px;gap:8px}
#choice .choice-options button{display:flex;align-items:flex-start;gap:10px;min-height:64px;padding:12px;font-size:12px;line-height:1.6}
#choice .choice-options button:last-child:nth-child(odd){grid-column:1/-1}
.choice-number{flex-shrink:0;display:grid;place-items:center;min-width:20px;height:22px;margin-top:1px;font:12px Georgia,serif;color:#8d7c4e;background:#e0e5d2;border:1px solid #cdd4bb}
#choice .choice-options small{color:#788666;margin-top:3px;font-size:10px}#choice .choice-foot{color:#8b927c}
.has-choice .viewport{min-height:360px;height:360px;flex:none}.game-layout.theater .has-choice .viewport{height:min(65vh,700px);min-height:360px}
.codex-places-link{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:14px;border:1px solid #b9c5a5;background:#e3ead5;color:#526944;min-height:52px;font-size:12px}
.codex-places-link span{margin-left:auto;font-size:10px;color:#758462}.codex-places-link .ui-glyph{width:14px;height:14px}
.places-dialog{width:min(980px,calc(100vw - 28px))}.places-dialog .dialog-heading{position:sticky;top:-25px;background:#f8f7f0;z-index:2;padding-top:8px}
#close-dialog{min-width:44px;min-height:44px;flex-shrink:0}
.place-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.place-card{display:flex;flex-direction:column;padding:0;text-align:left;background:#eceddf;border:1px solid #c3ceb1;overflow:hidden;min-width:0}
.place-card:hover{background:#e3e8d6;border-color:#82956a}.place-card.is-current{border:2px solid #a58a4f}
.place-card>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;image-rendering:pixelated;background:#3c5941}
.place-card-body{display:flex;flex-direction:column;padding:12px;gap:6px;flex:1}.place-kind{font-size:9px;color:#8c805c;letter-spacing:.4px}.place-card strong{font:17px Georgia,'Batang',serif;color:#445e39}
.place-description{font-size:11px;line-height:1.7;color:#768666;flex:1}.place-more{font-size:10px;color:#778b60;margin-top:3px}
.places-back{min-height:44px;font-size:11px;color:#637a4e;padding:0 9px;margin-bottom:8px;border:1px solid #c5cfb4;background:#e9eddf}
.place-large{display:block;width:100%;height:auto;image-rendering:pixelated;border:1px solid #9fae88;background:#3b543a}
.place-detail-copy{padding:14px 0 5px}.place-detail-copy p{margin:5px 0 10px;color:#6d7e5e;line-height:1.8}
.place-pagination{display:flex;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid #d3dbc4}.place-pagination button{min-height:44px;font-size:11px;padding:9px 12px;background:#e4e9d8;border:1px solid #c4cfb1;max-width:49%;line-height:1.5;text-align:left}.place-pagination button:last-child{text-align:right}
@media(max-width:760px){
 .world-toolbar{gap:8px}.world-toolbar>span:first-child{gap:8px;min-width:0}.world-toolbar b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.world-toolbar-actions{gap:5px}#season-label{font-size:10px}#places{font-size:9px;padding:0 4px}
 .has-choice .viewport{height:320px;min-height:320px}.game-layout.theater .has-choice .viewport{height:55vh;min-height:320px}
 #choice{padding:15px 14px 18px}#choice h2{font-size:21px;margin:9px 0}#choice>p{font-size:12px;line-height:1.8}.choice-heading{gap:3px}.choice-heading .eyebrow{font-size:8px;letter-spacing:1px}.choice-place{font-size:10px;min-height:44px;padding:6px}.choice-place .ui-glyph{width:10px;height:10px}
 #choice .choice-options{grid-template-columns:1fr;gap:8px;margin-top:13px}#choice .choice-options button{min-height:66px;font-size:12px}#choice .choice-options small{font-size:11px}#choice .choice-foot{font-size:9px;line-height:1.6}
 .place-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.places-dialog{padding:16px;max-height:88vh}.places-dialog .dialog-heading{top:-16px;margin-bottom:14px}.places-dialog .dialog-heading h2{font-size:21px}.place-card-body{padding:9px;gap:5px}.place-card strong{font-size:15px}.place-description{font-size:10px;line-height:1.7}.place-more{font-size:9px}.place-kind{font-size:9px}.place-pagination{gap:8px}.place-pagination button{padding:8px;font-size:10px}.codex-places-link{flex-wrap:wrap}.codex-places-link span{font-size:10px}
}

/* Shared heraldry and independent race/faction identity. */
.faction-symbol{display:inline-block;width:48px;height:48px;flex-shrink:0;background-image:url('./assets/factions-v5.webp');background-size:600% 400%;background-repeat:no-repeat;image-rendering:pixelated;vertical-align:middle}
.faction-identity{display:flex;align-items:center;gap:8px;width:100%;padding:9px 8px;margin:0 0 18px;background:#e7ecdc;border:1px solid #b8c4a6;box-shadow:inset 0 0 0 2px #f5f2e5;text-align:left;min-height:80px}
.faction-identity:hover{background:#dce6ce;border-color:#84966b}.faction-identity>.faction-symbol{width:48px;height:48px}.faction-identity>span{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.faction-identity small{font-size:9px;letter-spacing:1px;color:#889477}.faction-identity strong{font-size:13px;color:#48623a}.faction-identity em{font-size:9px;font-style:normal;color:#7a8868;line-height:1.6}.faction-identity>b{font-size:12px;color:#a38c57;font-weight:400}
.identity-dialog{width:min(880px,calc(100vw - 28px))}.birth-odds{display:flex;flex-direction:column;gap:7px;margin:18px 0;padding:16px 18px;background:#e9eddf;border:1px solid #c7cfb6}.birth-odds strong{font:21px Georgia,'Batang',serif;color:#4c6541}.birth-odds span{font-size:12px;color:#687b58;line-height:1.7}.birth-odds small{font-size:10px;color:#8b927c}
.codex-tabs{display:flex;gap:5px;border-bottom:1px solid #c9d1bc;margin:0 0 18px}.codex-tabs button{flex:1;min-height:46px;padding:10px;font-size:12px;border:1px solid transparent;border-bottom:0;color:#7b886a}.codex-tabs button[aria-selected=true]{background:#e4ead6;border-color:#c9d1bc;color:#425f34;font-weight:700;box-shadow:inset 0 3px 0 #9b8957}
.race-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.race-card{border:1px solid #c5ceb2;background:#ecefdf;padding:16px;min-width:0}.race-portraits{display:flex;gap:7px;margin-bottom:12px}.race-portraits .race-avatar{width:58px;height:65px;background:#dce4cd}.race-title{display:flex;align-items:center;justify-content:space-between;gap:6px}.race-title h3{margin:0;font:19px Georgia,'Batang',serif;color:#47643a}.race-title span{font-size:10px;color:#8c805b;background:#e0e7d1;padding:4px 7px;border:1px solid #cdd4ba}.race-card p{font-size:12px;color:#758461;line-height:1.7;min-height:2.8em;margin:8px 0}.race-card>small{font-size:10px;color:#8b947a}
.faction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.faction-codex-card{display:flex;align-items:flex-start;gap:8px;padding:16px 12px;text-align:left;border:1px solid #c5cdb4;background:#ecefdf;min-width:0}.faction-codex-card:hover{background:#e3ead4;border-color:#8d9e76}.faction-codex-card.is-current{border:2px solid #ac9258;padding:15px 11px}.faction-codex-card>.banner{width:80px;height:80px}.faction-card-copy{display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}.faction-card-copy>small{font-size:9px;color:#a08a54}.faction-card-copy>strong{font:18px Georgia,'Batang',serif;color:#46623b}.faction-card-copy>em{font-size:10px;line-height:1.6;font-style:normal;color:#8e805e}.faction-card-copy>span{font-size:11px;line-height:1.7;color:#758264}.faction-card-copy>b{font-size:10px;color:#6c8457;font-weight:400;margin-top:3px}
.faction-hero{display:flex;align-items:center;gap:18px;padding:14px 20px;background:#e9edde;border:1px solid #bcc8a8}.faction-hero>.banner{width:150px;height:150px}.faction-hero>div{min-width:0;flex:1}.faction-hero .eyebrow{font-size:9px;letter-spacing:1px}.faction-hero h3{font:29px Georgia,'Batang',serif;margin:10px 0;color:#405c35}.faction-hero p{font-size:12px;line-height:1.7;color:#8a7952;margin:7px 0}.faction-tokens{display:flex;gap:7px;align-items:center;margin-top:10px}.faction-tokens .faction-symbol{width:40px;height:40px}.faction-tokens>span{font-size:10px;color:#8b947c}.faction-description{font-size:13px;line-height:1.9;color:#687b57;margin:20px 0}.faction-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.faction-facts>div{padding:15px;background:#e9edde;border:1px solid #cbd2bb}.faction-facts small{display:block;font-size:10px;color:#8a947b;margin-bottom:7px}.faction-facts strong{font-size:15px;color:#506943}.faction-facts p{font-size:11px;color:#7f8b70;line-height:1.7;margin:8px 0 0}.faction-scene{display:flex;align-items:center;gap:8px;width:100%;min-height:48px;padding:12px 15px;text-align:left;border:1px solid #bdc9a9;background:#e2e8d4;color:#5a7447;font-size:12px}.faction-scene .ui-glyph{width:13px;height:13px}.faction-scene>span{margin-left:auto}
.person-origin{display:flex;align-items:center;gap:4px;margin:9px 0 0;font-size:10px;color:#7b896a;flex-wrap:wrap}.person-origin>.faction-symbol{width:24px;height:24px;margin-left:3px}.archive-faction{display:flex;align-items:center;gap:6px;font-size:12px;color:#7c8968}.archive-faction .faction-symbol{width:28px;height:28px}.npc-head{display:flex;align-items:center;gap:12px}.npc-head h3{margin:0 0 5px}.npc-head p{margin:0;color:#879275;font-size:12px}.npc-faction{display:flex;align-items:center;gap:9px;min-height:54px;width:100%;margin:18px 0;padding:7px 10px;text-align:left;border:1px solid #c3cdb1;background:#e8edda;font-size:12px}.npc-faction .faction-symbol{width:34px;height:34px}.npc-faction b{margin-left:auto;font-weight:400;color:#a38b53}
@media(max-width:760px){
 .faction-identity{margin-bottom:16px}.faction-identity strong{font-size:14px}.faction-identity em{font-size:10px}.identity-dialog{padding:16px;max-height:88vh}.identity-dialog .dialog-heading h2{font-size:21px}.birth-odds{padding:13px;margin:14px 0}.birth-odds strong{font-size:19px}.birth-odds span{font-size:11px}.birth-odds small{font-size:10px;line-height:1.6}.codex-tabs{gap:2px;margin-bottom:12px}.codex-tabs button{font-size:11px;padding:10px 5px}.race-grid{gap:9px}.race-card{padding:11px}.race-portraits{gap:4px;margin-bottom:9px}.race-portraits .race-avatar{width:48px;height:54px}.race-title h3{font-size:17px}.race-card p{font-size:11px}.race-title span{font-size:9px;padding:3px 5px}.faction-grid{grid-template-columns:1fr;gap:10px}.faction-codex-card{padding:13px 10px}.faction-codex-card.is-current{padding:12px 9px}.faction-codex-card>.banner{width:86px;height:86px}.faction-card-copy>strong{font-size:20px}.faction-card-copy>span{font-size:12px}.faction-card-copy>em,.faction-card-copy>b{font-size:11px}.faction-hero{padding:11px;gap:7px}.faction-hero>.banner{width:110px;height:110px}.faction-hero h3{font-size:24px}.faction-hero p{font-size:11px}.faction-hero .eyebrow{font-size:8px}.faction-tokens{gap:3px;margin-top:6px}.faction-tokens .faction-symbol{width:30px;height:30px}.faction-tokens>span{font-size:9px}.faction-description{font-size:12px}.faction-facts{grid-template-columns:1fr;gap:9px}.faction-facts>div{padding:12px}.faction-facts strong{font-size:14px}.person-origin{font-size:10px}
}

/* Birth circumstances, individual bonds and a separate moral alignment. */
.stat-limit{display:block;min-height:12px;font-size:8px;color:#939a82;margin-top:4px;line-height:1.4}.morality-stat{display:block;padding:0;text-align:left;min-width:0}.morality-stat:hover{background:transparent}.morality-stat .stat-head{margin-bottom:6px}.morality-track{position:relative;height:5px;background:linear-gradient(90deg,#b28c842d 0 50%,#9cac752d 50%);box-shadow:inset 0 1px 0 #273c2710}.morality-track>i{position:absolute;top:0;height:5px;background:#91a472;transition:left .35s,width .35s}.morality-track>i.is-evil{background:#a77975}.morality-track>span{position:absolute;left:50%;top:-2px;width:1px;height:9px;background:#9ca38a}.morality-labels{display:flex;justify-content:space-between;margin-top:5px;color:#9a9f8a;font-size:7px}.morality-stat>small{display:block;margin-top:2px;font-size:8px;color:#859273}.morality-detail{text-align:center;padding:20px;border:1px solid #c2cbb1;background:#e9edde;margin-bottom:18px}.morality-detail>strong{display:block;font:45px Georgia,serif;color:#6d7951;margin:13px 0 5px}.morality-detail h3{font:20px Georgia,'Batang',serif;margin:0 0 15px;color:#4b6340}.morality-scale{display:flex;justify-content:space-between;max-width:370px;margin:auto;padding-top:10px;border-top:3px solid #a7a88b;color:#8a927c;font-size:10px}.archive-morality{color:#7d875e;font-size:11px}
.life-fact-card{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin:9px 0 0;padding:11px 12px;min-height:62px;text-align:left;border:1px solid #cbd2b8;background:#edf0e2;color:#5e724c}.life-fact-card:hover{background:#e5ebd7;border-color:#9bac84}.life-fact-card>span{display:flex;flex-direction:column;gap:5px;min-width:0}.life-fact-card small{font-size:9px;color:#949981;letter-spacing:.6px}.life-fact-card strong{font-size:12px;font-weight:500;line-height:1.5}.life-fact-card em{font-size:9px;font-style:normal;line-height:1.6;color:#7f8e6a}.life-fact-card>b{font-size:12px;font-weight:400;color:#a18b55}.character-panel .talent-note{margin-top:10px;padding:11px 12px}.companions-summary{display:flex;align-items:center;gap:7px;width:100%;min-height:42px;padding:10px 2px 0;color:#7f8d69;font-size:10px}.companions-summary .ui-glyph{width:12px;height:12px}.companions-summary b{margin-left:auto;color:#a18b55;font-weight:400}
.talent-dialog{width:min(700px,calc(100vw - 28px))}.talent-hero{padding:20px;background:#e8eddb;border:1px solid #bdc8a8}.talent-hero h3{font:24px Georgia,'Batang',serif;color:#48623c;margin:10px 0}.talent-hero p{font-size:12px;line-height:1.9;color:#7d8b6b;margin:0}.talent-table-wrap{overflow-x:auto}.talent-table{width:100%;border-collapse:collapse;margin-top:16px;font-size:12px;text-align:right}.talent-table th,.talent-table td{padding:13px 12px;border-bottom:1px solid #d3dac4}.talent-table thead th{font-size:10px;color:#8a9479;background:#e8eddd;font-weight:400}.talent-table th:first-child{text-align:left;color:#5c7149}.talent-table tbody th{font-size:12px;font-weight:500}.talent-table td{color:#8a9479}.talent-table td b{color:#4c653c;font-weight:500}.detail-footnote{color:#949d85;font-size:10px;margin:17px 0 0}
.relationships-dialog{width:min(1000px,calc(100vw - 28px))}.family-overview{padding:18px;background:#e7eddb;border:1px solid #bdc9a9}.family-overview h3{font:23px Georgia,'Batang',serif;margin:9px 0;color:#4b643f}.family-overview p{font-size:12px;line-height:1.8;color:#788968;margin:0}.relationship-counts{display:flex;gap:22px;flex-wrap:wrap;margin-top:15px;padding-top:12px;border-top:1px solid #ccd6bc;color:#8a947c;font-size:11px}.relationship-counts b{font:17px Georgia,serif;font-weight:400;color:#61784f;margin-left:6px}.relationship-tabs{display:flex;gap:4px;margin:18px 0 14px;border-bottom:1px solid #c9d1b9}.relationship-tabs button{flex:1;min-height:44px;padding:10px 8px;border:1px solid transparent;border-bottom:0;font-size:11px;color:#81906f}.relationship-tabs button[aria-selected=true]{color:#4b683c;border-color:#c9d1b9;background:#e2e9d3;box-shadow:inset 0 3px #a38e56}.relationship-tabs span{font:12px Georgia,serif;margin-left:4px;color:#a08c57}.relationships-dialog .relationship-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px}.person-card{min-width:0}.person-card:focus{outline:2px solid #ad955d;outline-offset:3px}.person-card.is-following{border-color:#a79359;box-shadow:inset 0 0 0 2px #ebe5ca}.following-tag{display:inline-block;margin-top:6px;font-size:9px;color:#837341;background:#e5dfbc;padding:3px 7px;border:1px solid #c6bc91}.parent-mode{display:flex;flex-direction:column;gap:3px;margin-top:10px;padding:9px 10px;background:#e1e8d2;border-left:2px solid #a3af88;font-size:10px;line-height:1.7;color:#859371}.parent-mode b{font-weight:500;color:#6d8056}.relationships-dialog .person-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:13px}.relationships-dialog .person-actions button{min-width:0;min-height:52px;text-align:left;padding:8px 9px;line-height:1.5}.relationships-dialog .person-actions button>span{display:block;font-size:11px;color:#5a7147}.relationships-dialog .person-actions button>small{display:block;line-height:1.5;font-size:9px;color:#8c977d;margin-top:4px;overflow-wrap:anywhere}.relationships-dialog .person-actions button:disabled{opacity:.56}.relationships-dialog .person-actions button[data-action=follow]{background:#e0e8d0;border-color:#b8c7a1}.relationships-dialog .person-actions button[data-action=breakup]{background:#eee7dd;border-color:#d4c7b7}.relationships-dialog .person-actions button[data-action=breakup]>span{color:#8b7766}.empty-people{grid-column:1/-1;padding:35px 22px;text-align:center;line-height:1.9;font-size:12px;color:#89967b;border:1px dashed #c7cfb8;background:#edf0e3}
@media(max-width:760px){.character-panel .faction-identity,.character-panel .life-fact-card,.character-panel .companions-summary{grid-column:1/-1}.character-panel .age-row{grid-row:2}.stat-limit{font-size:8px}.morality-labels{font-size:7px}.morality-stat>small{font-size:8px}.life-fact-card{min-height:61px;padding:10px 12px;margin-top:8px}.life-fact-card strong{font-size:13px}.life-fact-card em,.life-fact-card small{font-size:10px}.companions-summary{min-height:44px;font-size:11px}.talent-table th,.talent-table td{padding:11px 8px;font-size:11px}.talent-dialog,.relationships-dialog{padding:16px;max-height:88vh}.talent-hero{padding:15px}.talent-hero h3{font-size:22px}.talent-hero p{font-size:11px}.relationships-dialog .relationship-grid{grid-template-columns:1fr}.family-overview{padding:14px}.family-overview h3{font-size:21px}.family-overview p{font-size:11px}.relationship-counts{gap:18px;margin-top:12px}.relationship-tabs{gap:2px}.relationship-tabs button{font-size:11px;padding:9px 5px}.relationships-dialog .person-actions button{min-height:60px;padding:9px 10px}.relationships-dialog .person-actions button>small{font-size:10px}.parent-mode{font-size:11px}.relationships-dialog .person-actions button>span{font-size:12px}.morality-detail{padding:17px}.morality-detail>strong{font-size:38px}}

/* Everyday life flows into the chronicle; choices mark important turning points. */
.playback{min-height:58px;height:auto;flex-wrap:wrap;gap:5px 10px;padding-top:7px;padding-bottom:7px}
.auto-control{white-space:nowrap;min-height:36px}
.journal-heading{gap:18px;flex-wrap:wrap}
.journal-description{margin:8px 0 0;font-size:11px;line-height:1.7;color:#849076}
.journal-tabs{align-items:center;flex-wrap:wrap;gap:6px 16px}
.journal-tabs [data-filter]{min-height:40px;padding:8px 3px}
.log-title{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;margin-bottom:6px}
.log-title h3{margin:0}
.log-kind{display:inline-flex;align-items:center;padding:2px 5px;border:1px solid #cbd6bc;font-size:9px;line-height:1.4;white-space:nowrap;font-weight:400}
.log-kind.is-daily{color:#6e805a;background:#e7eddc}
.log-kind.is-choice{color:#927844;background:#eee7d0;border-color:#d9c89e}
@media(max-width:760px){
 .playback{padding:7px;gap:3px 8px}.auto-control{min-height:44px;margin-left:auto;font-size:10px}
 .journal-heading{display:block}.journal-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;max-width:none;gap:3px;margin-top:12px}
 .journal-tabs button[data-filter]{min-height:44px;padding:8px 4px;text-align:center;white-space:nowrap}.journal-tabs #export{display:none}
 .journal-description{font-size:11px}.log-kind{font-size:9px}
}

.auto-control small{display:block;margin-top:3px;font-size:8px;line-height:1.5;color:#849076}

#choice.career-choice .choice-options small{white-space:pre-line;line-height:1.7}

.choice-context{font-size:11px;line-height:1.65;color:#68785d;border-left:2px solid #afb995;padding:6px 10px;margin:8px 0 12px}.choice-fit{display:block;font-size:10px;font-style:normal;color:#58704e;margin-top:4px}

/* Faction conflict is felt in the household ledger and mental resilience. */
.economy-banner{display:grid;grid-template-columns:minmax(210px,1fr) minmax(220px,1.45fr) auto;align-items:center;gap:14px 22px;padding:13px 16px;margin:0 0 16px;background:#ece8d9;border:1px solid #c8bea1;box-shadow:inset 3px 0 #9d8256;color:#665c41;min-width:0}
.economy-banner>div{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;min-width:0}.economy-banner .eyebrow{width:100%;font-size:8px;letter-spacing:1px;color:#958362}.economy-banner strong{font-size:13px;font-weight:600;color:#695832}.conflict-factions{font-size:10px;line-height:1.6;color:#887858;overflow-wrap:anywhere}.economy-banner p{margin:0;font-size:11px;line-height:1.7;color:#817557}.economy-banner>button{font-size:10px;min-height:44px;padding:7px 9px;white-space:nowrap;color:#75613d;background:#e2dcc7;border:1px solid #c7b993}
.living-cost-card{display:flex;width:100%;min-width:0;min-height:76px;padding:10px 11px;margin-top:10px;border:1px solid #c7bea2;background:#eeeadc;text-align:left;color:#776846;box-shadow:inset 0 0 0 2px #faf8ee66}.living-cost-card>span{display:flex;flex-direction:column;gap:5px;min-width:0;width:100%}.living-cost-card small{font-size:9px;line-height:1.6;color:#918567}.living-cost-card strong{display:flex;justify-content:space-between;align-items:center;gap:8px;font:18px Georgia,serif;color:#71603d}.living-cost-card em{font:9px sans-serif;color:#8b7952}.living-cost-card:hover{border-color:#a08b59;background:#e8e1cc}.living-cost-card small.cost-warning,.summary-shortfall,.summary-shortfall b{color:#9a5c49!important}
.willpower-stat{display:block;text-align:left;min-height:44px;padding:0}.willpower-stat:hover{background:#e7e9db}.willpower-detail{padding:20px;background:#ece8d8;border:1px solid #cbbd9b;text-align:center}.willpower-detail>strong{display:block;font:42px Georgia,serif;color:#8a7144;margin:14px 0 9px}.willpower-detail>strong small{font-size:15px;color:#a39676}.willpower-detail h3{margin:0;font:22px Georgia,'Batang',serif}.willpower-detail p{color:#857656;font-size:12px;line-height:1.8;margin:13px 0 0}
.world-lore{padding:18px 20px;background:#ebe7d7;border:1px solid #c8bea1;margin-bottom:18px}.world-lore h3{font:24px Georgia,'Batang',serif;line-height:1.5;color:#685c3c;margin:10px 0}.world-lore p{font-size:12px;line-height:1.9;color:#817354;margin:12px 0}.world-lore p:last-child{margin-bottom:0}.economy-detail{padding:14px 0 2px}.economy-detail .eyebrow{letter-spacing:.7px;line-height:1.8;color:#9b855b}.economy-detail h3{font-size:15px;font-weight:500;line-height:1.7;color:#766441}.economy-detail h3 b{margin-left:8px;font:22px Georgia,serif;color:#8e7647}.economy-detail>p{font-size:11px;line-height:1.8;color:#8b7c5c}.cost-breakdown{margin:15px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cost-breakdown>div{padding:11px 12px;border:1px solid #d1c7aa;background:#f0ecdf;min-width:0}.cost-breakdown dt{font-size:10px;color:#918264;margin-bottom:6px}.cost-breakdown dd{margin:0;font:17px Georgia,serif;color:#77623c}
@media(max-width:760px){.economy-banner{grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;padding:11px 12px;margin-bottom:13px}.economy-banner>div{gap:4px 8px}.economy-banner strong{font-size:12px}.economy-banner .conflict-factions{font-size:10px;flex-basis:100%}.economy-banner p{grid-column:1/-1;grid-row:2;font-size:10px;line-height:1.7}.economy-banner>button{grid-column:2;grid-row:1;padding:6px 8px;font-size:9px}.character-panel .living-cost-card{grid-column:1/-1;margin:5px 0 12px;min-height:76px}.living-cost-card small{font-size:10px}.living-cost-card strong{font-size:19px}.world-lore{padding:14px}.world-lore h3{font-size:22px}.world-lore p{font-size:11px}.cost-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}.economy-detail h3{font-size:14px}.economy-detail h3 b{font-size:20px}.willpower-detail{padding:16px}.willpower-detail>strong{font-size:36px}.codex-tabs button{font-size:10px;padding:9px 3px}}

.choice-meta{display:flex;flex-wrap:wrap;gap:7px 14px;margin:7px 0 12px;font-size:10px;color:#737b62}.choice-meta>span:first-child{font-weight:700;letter-spacing:.06em}.choice-alignment{display:table;font-size:10px;font-style:normal;padding:2px 6px;margin:0 0 5px;border:1px solid #b6b99e;background:#e9ecdb;color:#53634c;line-height:1.5}.choice-alignment.evil,.choice-alignment.ruthless{border-color:#c3aba5;background:#f0e4df;color:#885c50}.choice-alignment.neutral{border-color:#b6b3a0;background:#ece9dc;color:#786d51}.choice-alignment.virtuous{border-color:#b7aa73;background:#f0ecd5;color:#77703e}.alignment-guide{border-top:1px solid #c8ccb8;border-bottom:1px solid #c8ccb8;padding:8px 0;margin:14px 0}.alignment-guide p{font-size:12px;margin:7px 0;line-height:1.6}

.year-flow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px 8px;font-size:11px;color:#6c735c;background:#e9e7d8}.year-flow small{font-size:9px;color:#8c8065}.log-step{display:block;margin-top:5px;font-size:9px!important;white-space:nowrap;color:#9b8c6b}.log-count{font-size:11px;color:#82775e;margin:8px 0 14px}.log-more,.archive-more{display:block;margin:20px auto 0;min-height:44px;padding:10px 24px;border:1px solid #bdb696;background:#e8e6d5;color:#596249;font-size:12px}.log-more[hidden],.archive-more[hidden]{display:none}.archive-log p{font-size:12px;line-height:1.8}@media(max-width:760px){.year-flow{padding:10px 12px 8px;font-size:10px}.year-flow small{font-size:8px}.log-more{width:100%}}
@media(max-width:760px){#next-year{min-height:44px}}

/* Ordinary footprints and stage decisions share the game's parchment palette. */
.focus-value{padding:11px 10px;border:1px solid #bec7ad;background:#edf0e2;color:#536648;font-size:12px;line-height:1.6;box-shadow:inset 0 0 0 2px #faf9ed;overflow-wrap:anywhere}.focus-value.is-pending{color:#8b6b38;border-color:#bfaa73;background:#f1ead6}.focus-stage-note{font-size:9px;line-height:1.7;color:#879175;margin:7px 0 0}.log-effects{display:flex;flex-wrap:wrap;gap:4px 6px;margin-top:8px}.log-delta{display:inline-block;font-size:10px;line-height:1.5;padding:2px 6px;border:1px solid #cbd6bd;background:#edf1e6;color:#627b50;font-variant-numeric:tabular-nums}.log-delta.is-loss{border-color:#d9c5b8;background:#f3e9e2;color:#9b6852}.stat-head b,#gold{display:inline-block;border-radius:2px;font-variant-numeric:tabular-nums}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:760px){.focus-value{font-size:11px;padding:9px}.focus-stage-note{font-size:9px}.log-delta{font-size:10px}}

/* Five speed levels remain touchable without pushing mobile controls outside. */
.playback{height:auto;min-height:58px;gap:10px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}.play-left{min-width:0;flex-wrap:wrap;gap:8px}.speed-group button{min-width:36px;min-height:36px;padding:5px 7px}.year-flow{flex-wrap:wrap}#year-speed-label{font-variant-numeric:tabular-nums}@media(max-width:760px){.playback{padding:8px 10px;gap:6px}.play-left{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr);gap:6px}#pause{width:44px;min-height:44px}.speed-group{justify-content:space-between;min-width:0;gap:0;padding:2px}.speed-group button{flex:1;min-width:44px;min-height:44px;padding:5px 2px}#next-year{grid-column:1/-1;justify-self:end;padding:8px 12px}.auto-control{width:100%;justify-content:flex-end;min-height:36px}.year-flow small{font-size:9px}}
@media(max-width:360px){.speed-group{grid-column:1/-1;grid-row:2}#next-year{grid-column:2;grid-row:1}}

/* Environment causes remain readable beside their actual annual consequences. */
.environment-current{display:block;margin-top:5px;font-weight:600;color:#79613f}.environment-detail{margin-top:18px;padding:16px;background:#eeeada;border:1px solid #c8bea1}.environment-detail h3{margin:7px 0 12px}.environment-metrics{display:flex;flex-wrap:wrap;gap:8px 18px;padding:10px 0;border-top:1px solid #d7cdb2;border-bottom:1px solid #d7cdb2;font-size:11px;color:#817456}.environment-metrics b{margin-left:6px;font-variant-numeric:tabular-nums;color:#695534}.environment-note{font-size:10px;line-height:1.8;color:#8d8065}.environment-factors{padding:0;margin:14px 0 0;list-style:none;display:grid;gap:8px}.environment-factors li{padding:9px 11px;border-left:3px solid #9e9b80;background:#f7f3e7;display:grid;gap:4px}.environment-factors strong{font-size:11px;color:#6e644c}.environment-factors span{font-size:10px;line-height:1.8;color:#887c62}.environment-factors .is-harsh{border-left-color:#ad7964}.environment-factors .is-helpful{border-left-color:#8d9d74}@media(max-width:760px){.environment-detail{padding:12px}.environment-metrics{gap:8px 13px}.environment-current{line-height:1.7}.environment-factors span{font-size:11px}}

/* New capabilities retain the existing parchment, muted metal and pixel style. */
.charm-stat{border:0;background:none;text-align:left;color:inherit;padding:0;cursor:pointer}.charm-stat:hover .stat-head{color:#95687c}.stats .morality-stat{grid-column:1/-1}.charm-detail{padding:18px;background:#eee5e6;border:1px solid #d6c4c6}.charm-detail>strong{display:block;margin:12px 0;font-size:34px;font-weight:400;color:#946c7a}.charm-detail>strong small{font-size:14px}.race-traits-link{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;margin:0 0 12px;padding:9px 0;border:0;border-bottom:1px solid var(--line,#d8d6c7);font-size:11px;text-align:left;color:#767d65;background:none;cursor:pointer}.race-traits-link:hover{color:#44573e}.race-trait-copy p{font-size:11px;line-height:1.8}.race-trait-copy b{display:block;font-size:10px;margin-bottom:3px;color:#687658}.race-trait-copy .race-unfair b{color:#956f5c}.racial-current{margin-top:16px;border:1px solid #c9d0b9;background:#edf0e4;padding:14px}.racial-current h3{font-size:14px;margin:0 0 10px}.racial-current ul{margin:0;padding-left:17px;font-size:11px;line-height:1.9}.skill-chip{gap:6px;min-width:0}.skill-level{display:inline-block;white-space:nowrap;font-size:10px;font-weight:600;color:#738057;font-variant-numeric:tabular-nums}.skill-chip .skill-level{margin-left:auto;font-size:9px}.skill-detail-card h3{display:flex;justify-content:space-between;gap:8px;align-items:center}.skill-progress{height:5px;background:#dedfcf;margin:14px 0 8px;overflow:hidden}.skill-progress i{display:block;height:100%;background:#8b9b6e}.skill-detail-card.is-learned{border-color:#c2c9ae}.skill-detail-card .mastery-tag{line-height:1.7}.race-card .race-trait-copy{border-top:1px solid #dbd9cb;margin-top:12px;padding-top:8px}@media(max-width:760px){.race-traits-link{grid-column:1/-1;min-height:44px;margin-bottom:8px}.skill-chip{min-height:36px}.charm-detail{padding:14px}.race-trait-copy p{font-size:12px}.racial-current ul{font-size:12px}}

/* Disaster notices use the same worn parchment and quiet pixel borders. */
.disaster-banner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:15px 24px;align-items:center;padding:15px 18px;margin:0 0 16px;border:1px solid #c6aa8e;background:#eee3d4;box-shadow:inset 4px 0 #a37b56;color:#72563e;min-width:0}
.disaster-banner[data-phase=impact]{border-color:#ba8f7c;background:#eee0d7;box-shadow:inset 4px 0 #9c6655}.disaster-banner[data-phase=aftermath]{border-color:#b8b8a2;background:#e8e6d9;box-shadow:inset 4px 0 #868971}
.disaster-banner-copy{min-width:0}.disaster-banner-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px 13px}.disaster-banner-title .eyebrow{font-size:9px;letter-spacing:1px;color:#926f48}.disaster-banner-title strong{font-size:16px;color:#77593f}.disaster-banner p{max-width:100ch;margin:7px 0 5px;font-size:11px;line-height:1.8;overflow-wrap:anywhere}.disaster-banner small{display:block;font-size:10px;line-height:1.7;color:#8a7156;overflow-wrap:anywhere}.disaster-banner>button{min-height:44px;padding:9px 12px;background:#e6d6bd;border:1px solid #c0a581;font-size:11px;white-space:nowrap;color:#765b3e}
.disaster-stages{display:flex;flex-wrap:wrap;gap:4px;list-style:none;margin:10px 0 0;padding:0}.disaster-stages li{position:relative;padding:4px 12px;border:1px solid #d2c6b1;background:#efe9dc;font-size:9px;color:#9a8b73;line-height:1.5}.disaster-stages li[aria-current=step]{border-color:#b59a72;background:#e4d6b9;color:#755a37;box-shadow:inset 0 -2px #b8a077;font-weight:600}
.survival-card{display:block;width:100%;min-width:0;min-height:76px;padding:10px 11px;margin-top:8px;border:1px solid #bdc6ae;background:#e9ecdf;text-align:left;color:#677255;box-shadow:inset 0 0 0 2px #faf8ee66}.survival-card>span{display:flex;flex-direction:column;gap:5px;min-width:0}.survival-card small{font-size:9px;line-height:1.7;overflow-wrap:anywhere}.survival-card strong{display:flex;justify-content:space-between;align-items:center;gap:7px;font-size:14px;font-weight:500}.survival-card em{font-style:normal;font-size:9px;color:#7c866a}.survival-card:hover{background:#e0e5d2;border-color:#929e7e}.survival-card.is-danger{background:#ece1d5;border-color:#c6a28b;color:#8b634e}.survival-card.is-danger em{color:#8b634e}.survival-card.is-critical{box-shadow:inset 3px 0 #a96855,inset 0 0 0 2px #faf8ee66}
.disaster-detail,.survival-overview{padding:17px 19px;border:1px solid #c5bea4;background:#ede8d8;margin-bottom:14px;overflow-wrap:anywhere}.disaster-detail h3,.survival-overview h3{font:22px Georgia,'Batang',serif;color:#705d40;margin:9px 0 11px}.disaster-detail p,.survival-overview p{font-size:12px;line-height:1.9;color:#7d7058}.disaster-detail .disaster-hint{font-size:11px;padding:10px 12px;background:#e4dac3;border-left:3px solid #a58a60}.disaster-preparation{display:flex;align-items:baseline;justify-content:space-between;padding-top:10px;border-top:1px solid #d4c8ab;font-size:11px;color:#8c7959}.disaster-preparation b{font-size:20px;font-weight:400;color:#76613c}.disaster-preparation small{font-size:10px}.survival-overview{background:#e9eddf;border-color:#c2caaf}.survival-overview h3{color:#60704c}.survival-overview p{margin:8px 0;color:#738061}.survival-overview .survival-note{font-size:10px;line-height:1.8;color:#899078}.survival-overview.is-critical{background:#eee0d6;border-color:#bd9d86}.survival-overview.is-critical h3{color:#8c604c}
.survival-risk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.survival-risk{min-width:0;border:1px solid #ccd2bc;padding:13px 14px;background:#f0f1e7;--risk-color:#8b9b74}.survival-risk.is-warning{--risk-color:#b29a67;border-color:#d2c6a7;background:#f1ecdf}.survival-risk.is-danger,.survival-risk.is-critical{--risk-color:#ad7960;border-color:#d3b6a2;background:#f1e7dd}.survival-risk.is-critical{--risk-color:#a75b51;border-left:3px solid #a75b51}.risk-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.risk-heading h4{margin:0;color:#687454;font-size:12px;font-weight:500}.risk-heading>span{font-size:10px;color:#8a8069;white-space:nowrap}.risk-heading b{margin-left:5px;font:17px Georgia,serif;color:var(--risk-color)}.risk-meter{height:5px;background:#dedfce;margin:10px 0 12px;overflow:hidden}.risk-meter i{display:block;height:100%;background:var(--risk-color)}.survival-risk p{font-size:11px;line-height:1.8;color:#8b735e;margin:7px 0}.survival-risk p.risk-response{color:#7e816c;margin-bottom:0}
.disaster-catalog{margin-top:25px;padding-top:18px;border-top:1px solid #c9cfb9}.disaster-catalog>h3{font:21px Georgia,'Batang',serif;margin:9px 0;color:#66734f}.disaster-catalog>p{font-size:11px;color:#859074;line-height:1.8}.disaster-catalog>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.disaster-catalog article{min-width:0;border:1px solid #d0c8b0;padding:13px 14px;background:#efebdf}.disaster-catalog h4{font-size:13px;font-weight:500;margin:0 0 7px;color:#7f6b48}.disaster-catalog article p{font-size:11px;line-height:1.8;color:#8a7d63;margin:0;overflow-wrap:anywhere}
#choice.disaster-choice{border-top-color:#aa8262;background:#f4eee2}.choice-manual{color:#94674b;font-weight:600}.choice-danger{display:table;font-size:10px;font-style:normal;line-height:1.6;margin-top:7px;padding:2px 6px;border:1px solid #ccb494;color:#8e694d;background:#eee2cd}#choice .choice-options button>span:last-child{min-width:0;overflow-wrap:anywhere}.ending-cause{padding:12px;margin:12px 0 0;text-align:left;border:1px solid #d1bba3;background:#eee3d6;overflow-wrap:anywhere}.ending-cause>span{display:block;font-size:9px;color:#9a8268;margin-bottom:6px}.ending-cause strong{font-size:12px;font-weight:500;line-height:1.8;color:#87624a}.archive-cause{color:#8e7056;font-size:11px}.archive-cause b{font-weight:500}
@media(max-width:760px){.disaster-banner{grid-template-columns:minmax(0,1fr);padding:13px 14px;gap:10px;margin-bottom:13px}.disaster-banner-title strong{font-size:15px}.disaster-banner p{font-size:11px}.disaster-banner>button{justify-self:start;padding:8px 11px}.disaster-banner small{font-size:10px}.character-panel .survival-card{grid-column:1/-1;margin:0 0 12px}.survival-card small{font-size:10px}.survival-card em{font-size:10px}.survival-dialog{padding:16px;max-height:90vh}.survival-dialog .dialog-heading h2{font-size:22px}.disaster-detail,.survival-overview{padding:14px}.disaster-detail h3,.survival-overview h3{font-size:21px}.survival-risk-grid,.disaster-catalog>div{grid-template-columns:minmax(0,1fr)}.survival-risk p,.disaster-catalog article p{font-size:12px}.auto-control small{white-space:normal}.choice-danger{font-size:11px}}

/* Keep a decision-triggered fight in view instead of stretching to the sidebar. */
.world-wrap.has-combat{align-self:start}
.has-combat .viewport{height:360px;min-height:360px;flex:none}
.game-layout.theater .has-combat .viewport{height:min(65vh,700px);min-height:360px}
@media(max-width:760px){.has-combat .viewport{height:320px;min-height:320px}.game-layout.theater .has-combat .viewport{height:55vh;min-height:320px}}

.legend-card{display:block;text-align:left;margin:4px 0 14px;padding:13px 15px;border:1px solid #bda570;background:#eee8d6;color:#5c4a28}.legend-card[hidden]{display:none}.legend-card span{font-size:10px;letter-spacing:2px}.legend-card strong{display:block;font-size:15px;margin:5px 0}.legend-card small{display:block;font-size:11px;line-height:1.7;opacity:.8}.legend-card.demon{background:#e7dee9;border-color:#a58ba9;color:#60446a}@media(max-width:760px){.legend-card{grid-column:1/-1}}

/* The same roadside merchant is reachable without leaving the current story. */
.header-shop{color:#e5c78b!important;border-bottom:1px solid #a68a59;min-height:44px}
.shop-fab{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,calc(env(safe-area-inset-bottom) + 12px));z-index:24;display:flex;align-items:center;justify-content:center;gap:9px;min-width:96px;min-height:48px;padding:10px 17px;background:#304632;color:#f7edcf;border:1px solid #b49a63;box-shadow:0 3px 0 #1b2b1d,0 5px 22px #17291f44;font-size:13px;letter-spacing:1px}
.shop-fab:hover{background:#425c3f}.shop-fab svg{width:20px;height:20px;fill:#d8bd7d;flex-shrink:0}body:has(dialog[open]) .shop-fab{visibility:hidden}
.shop-dialog{width:min(960px,calc(100vw - 28px));max-height:90vh;padding-bottom:25px}.shop-dialog .dialog-heading{position:sticky;top:-25px;z-index:4;background:#f8f7f0;padding-top:8px;margin-bottom:16px}.shop-dialog .dialog-heading h2{font-size:25px}
.shop-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end;min-height:152px;padding:23px 24px;border:1px solid #716545;background:linear-gradient(90deg,#243329ee 0%,#243329b8 52%,#24332970 100%),url('./assets/scene-market.webp') center 46%/cover;color:#f1e7c8;image-rendering:pixelated}.shop-hero .eyebrow{font-size:9px;color:#cfbb83;letter-spacing:2px}.shop-hero h3{font:24px Georgia,'Batang',serif;margin:9px 0}.shop-hero p{font-size:12px;margin:0;color:#d5d7bb}.shop-wallet{text-align:right;min-width:105px;padding:11px 14px;background:#213126bf;border:1px solid #ad98605c}.shop-wallet>small{display:block;color:#c9c5a6;font-size:10px}.shop-wallet strong{display:block;font:31px Georgia,serif;font-variant-numeric:tabular-nums;color:#ead392;line-height:1.3;overflow-wrap:anywhere}.shop-wallet strong span{font:11px Arial,sans-serif;margin-left:7px}
.shop-market{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 12px;padding:10px 12px;background:#e7e9da;border:1px solid #cbd0b9;border-top:0;color:#6b7556;font-size:11px}.shop-market small{font-size:10px;color:#889175}.shop-help{font-size:11px;color:#7c826a;margin:13px 0 16px}.shop-blocked{padding:10px 13px;background:#eee2d0;border-left:3px solid #ae8b58;color:#8c6a42;font-size:12px}
.shop-loadout{padding:14px 15px;border:1px solid #d0c7ad;background:#eeeada}.shop-section-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;margin-bottom:11px}.shop-section-heading h3{margin:0;font-size:13px;font-weight:500;color:#746241}.shop-section-heading>span{font-size:10px;color:#8b7958;font-variant-numeric:tabular-nums}.shop-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.shop-slot{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;align-items:center;border:1px solid #d2cbb7;background:#faf7ed;padding:8px 10px;min-width:0}.shop-slot>small{font-size:9px;color:#9b9076;grid-column:1}.shop-slot strong{font-size:11px;color:#73694e;font-weight:500;overflow-wrap:anywhere;grid-column:1}.shop-slot button,.shop-slot-empty{grid-row:1/3;grid-column:2}.shop-slot button{min-width:44px;min-height:44px;padding:5px;font-size:11px;color:#8a7753;background:#ede7d6;border:1px solid #d4c7a8}.shop-slot-empty{color:#b3aa90}.shop-loadout>small{display:block;margin-top:9px;font-size:10px;color:#978b71;line-height:1.7}
.shop-tabs{display:flex;gap:8px;margin:20px 0 12px;border-bottom:1px solid #c9cfb8}.shop-tabs button{min-width:130px;min-height:44px;padding:10px 18px;font-size:13px;color:#8b9279;border:1px solid transparent;border-bottom:0}.shop-tabs button[aria-selected=true]{background:#e7ecd9;border-color:#c3ccad;color:#536a43;box-shadow:inset 0 3px #a6925b}.shop-tabs small{font-size:10px;margin-left:7px;opacity:.75}.shop-result{margin:0;min-width:0;font-size:12px;line-height:1.7;color:#536c44;overflow-wrap:anywhere}.shop-result.has-message{position:sticky;top:49px;z-index:3;padding:11px 13px;margin:0 0 13px;background:#e4ecd6;border:1px solid #bacaa3;box-shadow:0 3px 7px #293c2622}
.shop-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.shop-item{display:flex;flex-direction:column;min-width:0;padding:17px;background:#f1f0e4;border:1px solid #cfd0bc}.shop-item.is-equipped{border-color:#9cac82;background:#e9eddc;box-shadow:inset 3px 0 #9aab7d}.shop-item-head{display:flex;align-items:center;gap:13px;min-width:0}.shop-item-head>.item-icon{flex-shrink:0;width:48px;height:48px;outline:1px solid #c8c9af;outline-offset:3px;background-color:#e0e5d1}.shop-item-head>div{min-width:0;flex:1}.shop-item-head>div>span{font-size:9px;color:#929778}.shop-item h3{font:18px Georgia,'Batang',serif;color:#536547;margin:3px 0;overflow-wrap:anywhere}.shop-owned{align-self:start;font-size:9px;padding:1px 5px;border:1px solid #b6c39e;color:#7c8c65;background:#f4f7e9;font-weight:500;flex-shrink:0}.shop-description{font-size:11px;line-height:1.7;color:#91947d;margin:13px 0 9px;overflow-wrap:anywhere}.shop-effect{font-size:12px;line-height:1.8;padding:9px 11px;margin:0 0 14px;background:#e5e8d8;color:#66784f;border-left:2px solid #afba94;overflow-wrap:anywhere;flex:1}.shop-item-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.shop-price{font:23px Georgia,serif;color:#9a7b40;font-variant-numeric:tabular-nums;white-space:nowrap}.shop-price small{font:10px Arial,sans-serif}.shop-buy{min-width:130px;min-height:44px;padding:9px 12px;font-size:11px;background:#566f46;border:1px solid #435a37;color:#f7f1db}.shop-buy:hover{background:#667f55}.shop-buy:disabled{opacity:1;background:#e1e2d3;color:#9b9c88;border-color:#cdd0bd;cursor:not-allowed}.shop-item-reason{display:block;min-height:18px;margin-top:9px;font-size:10px;line-height:1.7;color:#9c9278;overflow-wrap:anywhere}
@media(max-width:760px){header{padding-left:12px;padding-right:12px}.brand{gap:8px}nav{gap:4px}nav button{min-height:44px;padding-left:4px;padding-right:4px}.header-shop{min-width:36px}.shop-fab{right:max(12px,env(safe-area-inset-right));min-width:84px;min-height:46px;padding:8px 13px;font-size:12px}body{padding-bottom:72px}.shop-dialog{padding:14px;max-height:91vh}.shop-dialog .dialog-heading{top:-14px;padding-top:3px;margin-bottom:12px}.shop-dialog .dialog-heading h2{font-size:22px}.shop-hero{min-height:135px;padding:15px;gap:8px;grid-template-columns:minmax(0,1fr) auto}.shop-hero .eyebrow{font-size:8px;letter-spacing:1px}.shop-hero h3{font-size:20px}.shop-hero p{font-size:10px;line-height:1.7}.shop-wallet{min-width:76px;padding:9px}.shop-wallet strong{font-size:24px}.shop-wallet strong span{font-size:9px}.shop-market{padding:9px 10px;font-size:10px}.shop-market small{font-size:9px}.shop-help{font-size:11px;line-height:1.7}.shop-loadout{padding:12px}.shop-slots{grid-template-columns:minmax(0,1fr);gap:6px}.shop-slot{padding:7px 9px}.shop-slot strong{font-size:12px}.shop-slot>small{font-size:10px}.shop-section-heading>span{font-size:10px}.shop-loadout>small{font-size:10px}.shop-tabs{margin-top:16px;gap:6px}.shop-tabs button{min-width:0;flex:1;padding:9px 12px;font-size:12px}.shop-products{grid-template-columns:minmax(0,1fr);gap:11px}.shop-item{padding:15px}.shop-item h3{font-size:19px}.shop-description{font-size:12px}.shop-effect{font-size:12px}.shop-item-head>div>span{font-size:10px}.shop-buy{min-width:136px;font-size:12px;min-height:46px}.shop-item-reason{font-size:11px}.shop-result.has-message{top:48px;font-size:12px}.shop-blocked{font-size:12px}.shop-price{font-size:24px}}
@media(max-width:360px){header{padding-left:9px;padding-right:9px}.brand{font-size:16px;gap:6px}.brand-icon{font-size:25px}.brand small{font-size:7px;letter-spacing:1px}nav{gap:2px}nav button{font-size:9px}.shop-hero{grid-template-columns:1fr}.shop-wallet{display:flex;align-items:center;justify-content:space-between;text-align:left}.shop-wallet strong{font-size:23px}}

/* Sound controls share the parchment and forest palette. */
.audio-settings{padding:2px 0 20px;border-bottom:1px solid var(--line)}.audio-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.audio-settings h3{font:23px Georgia,'Batang',serif;font-weight:400;margin:8px 0}.audio-settings p{font-size:12px;color:#6c7866;line-height:1.8}.audio-settings-heading button,.audio-audition button{min-height:44px;padding:10px 16px;border:1px solid #c8cfb9;background:#e6ebdb}.audio-settings-heading button{background:#50633e;color:#fff;border-color:#50633e;min-width:100px}.audio-sliders{display:grid;grid-template-columns:1fr 1fr;gap:20px 30px;margin:22px 0}.audio-sliders label{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;font-size:12px}.audio-sliders output{font-variant-numeric:tabular-nums;color:#7a6b44}.audio-sliders input{grid-column:1/-1;width:100%;min-width:0;min-height:32px;accent-color:#63764c;cursor:pointer}.audio-sliders input:focus-visible{outline:2px solid #b18b48;outline-offset:3px}.audio-audition{display:flex;gap:8px;flex-wrap:wrap}.audio-audition button{font-size:12px}.audio-settings #audio-status{padding:10px 12px;background:#e9eddf;min-height:39px}@media(max-width:480px){.audio-sliders{grid-template-columns:1fr;gap:12px}.audio-settings-heading{gap:8px}.audio-settings-heading button{min-width:85px;padding:10px}.audio-audition button{flex:1;padding:10px 8px;white-space:nowrap}}

.map-state{display:inline-block;font-size:10px!important;white-space:nowrap;padding:3px 7px;border:1px solid #b2a28b;background:#e7decd;color:#66503b;border-radius:2px}.world-toolbar>span:first-child{min-width:0;flex-wrap:wrap;gap:6px 9px}.world-toolbar #scene-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:760px){.map-state{font-size:9px!important;padding:2px 5px}.world-toolbar>span:first-child{gap:4px 6px}.world-toolbar:has(.map-state:not([hidden])){min-height:48px;height:auto;padding-top:8px;padding-bottom:8px}.world-toolbar:has(.map-state:not([hidden])) #season-label{display:none}}

/* Keep the transformed map at a readable size even during choice-free aftermath. */
.world-wrap.has-disaster{align-self:start}.has-disaster .viewport{flex:none;height:505px;min-height:505px}.has-disaster.has-choice .viewport,.has-disaster.has-combat .viewport{height:360px;min-height:360px}.game-layout.theater .has-disaster .viewport{height:min(65vh,700px);min-height:360px}@media(max-width:760px){.has-disaster .viewport{height:460px;min-height:460px}.has-disaster.has-choice .viewport,.has-disaster.has-combat .viewport{height:320px;min-height:320px}.game-layout.theater .has-disaster .viewport{height:55vh;min-height:320px}}

/* Feedback is a normal external link, never an automatic data submission. */
.feedback-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;color:inherit;text-decoration:none;white-space:nowrap;min-height:44px;padding:8px 11px;border-radius:3px;font-size:12px;transition:background .2s,color .2s}.feedback-link:hover{background:#a8b48b25;color:#987641}.header-feedback{padding:8px 5px;font-size:12px;color:#cbd5bf;border-bottom:1px solid #697b60}.header-feedback:hover{color:#ead7a8;background:#f4e6bc12}.footer-feedback{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.footer-feedback .feedback-link{font-size:10px;padding:4px 0;color:#738164}.feedback-settings .feedback-link{background:#e6ebdb;min-width:115px;font-size:12px}.ending .ending-feedback{display:flex;width:100%;margin-top:8px;color:#677a56;font-size:11px}.feedback-settings small{line-height:1.8}
@media(max-width:760px){.header-feedback{font-size:10px;min-width:50px;padding:8px 4px}.footer-feedback{gap:0 12px;justify-content:flex-end}.feedback-settings{align-items:flex-start;flex-wrap:wrap}.feedback-settings .feedback-link{min-height:44px}.footer-feedback .feedback-link{font-size:10px}}
@media(max-width:480px){body>header{height:auto;min-height:96px;display:flex;flex-wrap:wrap;padding-top:9px;padding-bottom:3px;gap:3px}body>header>.brand{min-height:34px}body>header>nav{width:100%;justify-content:space-between;gap:4px}body>header>nav button{font-size:11px;min-height:44px;padding-left:6px;padding-right:6px}body>header .header-feedback{font-size:11px;min-width:52px}body>header #settings-btn{font-size:22px}footer{align-items:flex-start;gap:12px}.footer-feedback{flex-direction:column;align-items:flex-end}}
