@charset "UTF-8";
/* v0.10.8. Shared story/dialogue coordinates; the sharp background remains independent. */
:root{--plate-position:center 70%;--reading-height:216px;--reading-left:2.5vw;--reading-right:calc(2.5vw + clamp(350px,30vw,480px) + 24px);--reading-bottom:18px;--compact-top:54svh}
html{scrollbar-gutter:auto;scroll-behavior:auto;overflow:hidden}
.app-shell.immersive-shell{height:100svh;min-height:100svh;padding:0;overflow:hidden}
.app-shell.immersive-shell .world-scene{position:fixed;inset:0;height:100dvh;width:100%;overflow:hidden}
.app-shell.immersive-shell .world-scene .world-plate{display:block!important;position:absolute;inset:0!important;left:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:var(--plate-position)!important;transform:none!important;transition:none!important;animation:none!important}
.app-shell.immersive-shell .world-shade{background:linear-gradient(180deg,#10282235,transparent 23%,transparent 65%,#10282255)}
.app-shell.immersive-shell .scene-window{display:none!important}
.app-shell.immersive-shell .game-hud{position:fixed;inset:0 0 auto;z-index:20}
.app-shell.immersive-shell .dialogue-layout{position:fixed;inset:158px 2.5vw 18px;display:grid;grid-template-columns:minmax(0,1fr) clamp(350px,30vw,480px);gap:24px;height:auto;min-height:0;max-height:none;margin:0;padding:0;align-items:stretch;overflow:visible}
.app-shell.immersive-shell .scene-column{height:100%;min-height:0;position:relative;display:flex;flex-direction:column;justify-content:space-between}
.app-shell.immersive-shell .scene-chapter{position:static;inset:auto;margin:0;align-self:flex-start;padding:8px 14px;max-width:100%}
.app-shell.immersive-shell .scene-chapter h1{font-size:25px;line-height:1.3}
.app-shell.immersive-shell .scene-chapter .eyebrow{font-size:11px;margin:0 0 4px}
.app-shell.immersive-shell .fixed-dialogue{height:var(--reading-height);min-height:var(--reading-height);display:flex;flex-direction:column;margin:0;overflow:hidden}
.fixed-dialogue>header{padding:7px 14px;flex-shrink:0}
.app-shell.immersive-shell .fixed-dialogue .current-exchange{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:5px 0}
.fixed-dialogue .dialogue-tools{padding:3px 10px;flex-shrink:0}
.fixed-dialogue .dialogue-controls{padding:3px 10px;flex-shrink:0}
.fixed-dialogue .dialogue-questions .questions{position:fixed;left:2.5vw;right:calc(2.5vw + clamp(350px,30vw,480px) + 24px);bottom:calc(var(--reading-height) + 18px);max-height:220px}
.app-shell.immersive-shell .dialogue-layout .decision-column{position:relative;inset:auto;width:100%;height:100%;min-height:0;max-height:none;margin:0;padding:16px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.compact-switch,.compact-dialogue-link{display:none}
.app-shell.immersive-shell .dialogue-layout .stage-actions{position:sticky;bottom:-16px;z-index:2;margin:14px -16px -16px;padding:10px 16px}
.dialogue-layout .draft-actions{margin:0;gap:8px}
.terms-heading{display:flex;align-items:baseline;gap:10px;margin:12px 0}
.app-shell.immersive-shell .dialogue-layout #terms-title{font-size:20px;margin:0}
.terms-heading .draft-caption{margin:0;white-space:nowrap}
.dialogue-layout .offer-changes{gap:8px}
.dialogue-layout .offer-changes>span{flex:1;min-width:0;padding:8px 10px}
.dialogue-layout .offer-changes strong{font-size:21px}
.dialogue-layout .current-facts{margin-bottom:10px;padding-bottom:6px}
.app-shell.immersive-shell .dialogue-layout .preview-rail{padding:12px;margin-top:12px}
.app-shell.immersive-shell .preview-heading h2{display:block;font:600 13px/1.5 var(--sans);margin:0;color:#3a565a}
.app-shell.immersive-shell .preview-rail .quote-settlement{margin:6px 0;padding:0;border:0}
.preview-rail .quote-settlement h3{display:none}
.preview-rail .after-values{gap:14px}
.preview-rail .after-values strong{font-size:23px}
.resource-disclosure{margin:8px 0;padding:8px 10px;font-size:13px;gap:3px}
.resource-disclosure strong{font-size:13px}
.plan-brief{list-style:none;margin:12px 0;padding:0;display:grid;gap:8px;font-size:13px;line-height:1.6}
.plan-brief li{padding-left:10px;border-left:2px solid #a5956c;display:grid;gap:3px}
.plan-brief li span{color:#635d4b}
.plan-brief li strong{font-weight:600;color:#354b3c}
.payment-note{font-size:13px;line-height:1.6;margin:8px 0}
.counteroffer{margin:10px 0;padding:8px 0;border-block:1px solid #d5ccb9;background:transparent}
.counteroffer h3{font-size:13px;margin:0}
.term-differences{margin:5px 0;padding-left:18px;font-size:13px;line-height:1.6}
.counteroffer-note{font-size:13px;line-height:1.65;margin:8px 0}
.app-shell.immersive-shell .compact-survival{padding:0;margin:6px 0;border:0;background:transparent}
.remaining-days{margin:10px 0;font-size:14px;display:grid;gap:6px}
.remaining-days>div{display:flex;justify-content:space-between;border-bottom:1px solid #c9d5d5;padding-bottom:4px}
.remaining-days dd{margin:0;font-weight:600}
.compact-survival>p{font-size:13px}
.app-shell.immersive-shell .plan-result{padding:10px 0 0;margin:10px 0 0}
.app-shell.immersive-shell .optional-details{margin-top:10px;padding-top:8px}
.app-shell.immersive-shell .scene-background{margin-top:12px}
.teaching-note{font-size:14px;line-height:1.7;padding:10px 0}
.app-shell.immersive-shell .ending-summary .ending-total strong{font-size:30px}
.app-shell.immersive-shell .ending-stats{margin:12px 0}
.app-shell.immersive-shell .ending-actions{gap:8px;margin:12px 0}
.app-shell.immersive-shell>.site-footer{position:fixed;bottom:0;padding:0;font-size:9px;pointer-events:none}
/* Story pages occupy the dialogue footprint, including before the first agreement. */
.presentation-screen{position:fixed;inset:0;min-height:0;height:100svh;padding:0;overflow:hidden}
.presentation-screen>.arrival-heading{position:fixed;top:158px;left:var(--reading-left);max-width:calc(100vw - var(--reading-left) - var(--reading-right));padding:8px 14px}
.arrival-heading h1{font-size:25px;line-height:1.3}
.arrival-heading p{font-size:11px;letter-spacing:1px}
.presentation-screen .arrival-card{position:fixed;top:auto;left:var(--reading-left);right:var(--reading-right);bottom:var(--reading-bottom);width:auto;max-width:none;height:var(--reading-height);min-height:0;display:flex;flex-direction:column;padding:0;overflow:hidden;margin:0;animation:none;transition:none}
.presentation-header{height:38px;min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 14px;border-bottom:1px solid #d4c8b1}
.arrival-card .presentation-header h2{font-size:15px;line-height:1.5;margin:0}
.presentation-progress{gap:15px;flex-shrink:0}
.presentation-body{flex:1;min-height:0;max-height:none;overflow:auto;padding:6px 16px;overscroll-behavior:contain}
.presentation-screen .presentation-actions{display:grid;grid-template-columns:80px minmax(0,1fr) 170px;align-items:center;gap:8px;height:48px;min-height:48px;padding:4px 10px;margin:0;flex-shrink:0;border:1px solid transparent;border-top-color:#d4c8b1;background:#fffaf2f7}
.presentation-actions>div{min-width:0}
.presentation-skip{text-align:center}
.presentation-actions button{padding:6px 10px;min-height:38px;height:38px;max-width:100%;font-size:13px}
.presentation-actions .primary{width:100%;gap:8px;white-space:nowrap;transform:none!important}
.presentation-note{display:none}
.presentation-screen .arrival-card.panorama-card{background:transparent;border-color:transparent;box-shadow:none}
.panorama-card>.presentation-header,.panorama-card>.presentation-body{visibility:hidden;pointer-events:none}
.panorama-card .presentation-actions{border:1px solid #b9aa8d;border-radius:7px}
.arrival-card .story-narrative{margin:4px 0;font-size:15px;line-height:1.7}
.arrival-card .speech-text,.arrival-facts{font-size:15px;line-height:1.75}
.arrival-card .dialogue-bubble{margin:4px 0;display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px}
.arrival-meeting{margin-top:4px;padding-top:2px;border-top:0}
.arrival-facts{margin:2px 0;padding-left:20px}
.arrival-facts li+li{margin-top:6px}
.entry-conditions{display:flex;flex-wrap:wrap;gap:2px 24px;margin:4px 0 2px;border-top:1px solid #d4c8b1;padding-top:3px;font-size:13px;line-height:1.6}
.entry-conditions>div{display:flex;gap:10px;max-width:100%;padding:2px 0}
.entry-conditions dt{flex:0 0 5em;font-weight:600}
.entry-conditions dd{min-width:0;margin:0}
.condition-scope{margin:2px 0;font-size:12px;line-height:1.6;color:#615d50}
.departure-note{font-size:13px;line-height:1.7;margin:4px 0;color:#615d50}
.scene-only .compact-switch{display:none!important}
@media(max-width:1099px),(max-height:759px),(max-aspect-ratio:7/5){
 :root{--reading-height:calc(100svh - var(--compact-top) - 56px);--reading-left:12px;--reading-right:12px;--reading-bottom:14px}
 .app-shell.immersive-shell .game-hud{position:fixed;inset:0 0 auto;background:#19332ff2}
 .app-shell.immersive-shell .game-hud .topbar{position:static;display:flex;flex-wrap:nowrap;height:40px;min-height:40px;padding:4px 12px;gap:10px}
 .app-shell.immersive-shell .game-hud .brand-title{font-size:18px}
 .app-shell.immersive-shell .game-hud .brand-seal{display:none}
 .app-shell.immersive-shell .game-hud .top-actions{width:auto;margin:0 88px 0 auto;gap:12px}
 .app-shell.immersive-shell .game-hud .top-actions button{font-size:11px;gap:0}
 .app-shell.immersive-shell .game-hud .top-actions button .icon{display:none}
 .app-shell.immersive-shell .game-hud .journey-panel{display:flex;flex-direction:column;gap:5px;padding:6px 12px;min-height:0}
 .app-shell.immersive-shell .game-hud .resources{display:flex;justify-content:space-between;gap:10px;width:100%;order:-1}
 .app-shell.immersive-shell .game-hud .resource{min-width:0}
 .app-shell.immersive-shell .game-hud .resource strong{font-size:21px}
 .app-shell.immersive-shell .game-hud .resource-label{font-size:11px}
 .app-shell.immersive-shell .game-hud .resource-meta{display:none}
 .app-shell.immersive-shell .game-hud .goal-condition{font-size:11px;line-height:1.5}
 .app-shell.immersive-shell .game-hud .journey-goal{align-self:flex-start}
 .app-shell.immersive-shell .status-heading{display:none}
 .app-shell.immersive-shell .journey-strip{padding:3px 12px;min-height:28px;display:flex;gap:8px;flex-wrap:wrap}
 .app-shell.immersive-shell .journey-nav,.app-shell.immersive-shell .route-detail{display:none}
 .app-shell.immersive-shell .route-overview{display:inline-flex;font-size:12px;min-height:24px;padding:0}
 .app-shell.immersive-shell .knowledge-chip{font-size:11px;padding:3px 7px;min-height:24px}
 .app-shell.immersive-shell .scene-toggle{top:5px;right:12px;font-size:11px;padding:4px 7px;min-height:30px}
 .compact-switch{position:fixed;top:var(--compact-top);left:12px;right:12px;height:42px;display:flex;gap:4px;padding:4px;background:#243e35f5;z-index:5;border-radius:7px 7px 0 0}
 .compact-switch button{flex:1;font-size:13px;background:transparent;color:#edf0df;border-radius:4px;min-height:34px}
 .compact-switch button[aria-pressed="true"]{background:#fff8e9;color:#2f493b;font-weight:600}
 .app-shell.immersive-shell .dialogue-layout{position:fixed;inset:calc(var(--compact-top) + 42px) 12px 14px;display:block;padding:0;margin:0;min-height:0;height:auto;overflow:visible}
 .app-shell.immersive-shell .scene-column{display:contents;height:auto}
 .app-shell.immersive-shell .scene-chapter{display:none}
 .app-shell.immersive-shell .fixed-dialogue{position:absolute;inset:0;height:100%;min-height:0;border-radius:0 0 8px 8px}
 .app-shell.immersive-shell .dialogue-layout .decision-column{position:absolute;inset:0;height:100%;min-height:0;max-height:none;padding:12px;border-radius:0 0 8px 8px}
 .pane-dialogue .decision-column,.pane-plans .fixed-dialogue{display:none!important}
 .fixed-dialogue .dialogue-bubble{display:block;padding:5px 12px}
 .fixed-dialogue .speech-label{display:block;font-size:12px;line-height:1.5;margin-bottom:2px}
 .fixed-dialogue .speech-text{font-size:15px;line-height:1.7}
 .fixed-dialogue .dialogue-controls{gap:4px;padding:3px 8px}
 .fixed-dialogue .dialogue-adjust{font-size:12px;min-height:32px;padding:3px 7px;white-space:normal}
 .fixed-dialogue .dialogue-tools{padding:2px 8px}
 .fixed-dialogue .dialogue-tools button{font-size:12px;min-height:32px}
 .fixed-dialogue .dialogue-questions .questions{left:12px;right:12px;bottom:46svh;max-height:32svh}
 .compact-dialogue-link{display:inline-flex;font-size:12px;min-height:32px}
 .app-shell.immersive-shell .dialogue-layout .stage-actions{bottom:-12px;margin-inline:-12px;margin-bottom:-12px;padding:8px 12px}
 .app-shell.immersive-shell .dialogue-layout .draft-actions button{font-size:12px;padding:8px;min-height:40px}
 .terms-heading{margin:6px 0 0}
 .app-shell.immersive-shell .dialogue-layout #terms-title{font-size:18px}
 .dialogue-layout .quote-switcher small{display:none}
 .dialogue-layout .quote-switcher button{font-size:12px;min-height:36px;padding:5px 7px}
 .dialogue-layout .quote-switcher>span{display:none}
 .dialogue-layout .current-facts{font-size:12px;margin-bottom:6px}
 .presentation-screen>.arrival-heading{top:142px;padding:6px 12px}
 .arrival-heading h1{font-size:22px}
 .presentation-header{height:42px;min-height:42px;padding:6px 10px;gap:8px}
 .arrival-card .presentation-header h2{font-size:13px}
 .presentation-progress{font-size:10px;gap:8px}
 .presentation-body{max-height:none;padding:6px 12px}
 .arrival-card .speech-text,.arrival-facts,.arrival-card .story-narrative{font-size:15px}
 .arrival-card .dialogue-bubble{display:block}
 .presentation-screen .presentation-actions{grid-template-columns:64px minmax(0,1fr) 136px;gap:5px;padding-inline:8px}
 .presentation-actions button{font-size:12px;padding:6px 8px}
 .presentation-actions .text-button{font-size:11px}
 .app-shell.immersive-shell.view-arrival .game-hud,.app-shell.immersive-shell.view-epilogue .game-hud{background:transparent}
 .app-shell.immersive-shell .intro{position:fixed;top:54svh;left:12px;right:12px;bottom:14px;min-height:0;max-height:none;height:auto;width:auto;margin:0;padding:16px;overflow:auto;background:#fffaf2f7;border-radius:8px}
 .app-shell.immersive-shell .intro h1{font-size:28px;margin:0 0 12px}
 .app-shell.immersive-shell>.site-footer{display:none}
}
@media(max-height:540px) and (min-width:700px){
 :root{--compact-top:46svh}
 .fixed-dialogue>header{display:flex;flex-wrap:nowrap;padding:3px 10px;gap:10px}
 .fixed-dialogue h2{font-size:14px;margin:0}
 .fixed-dialogue .dialogue-tools,.fixed-dialogue .dialogue-controls{padding:0 6px;gap:4px}
 .fixed-dialogue .text-button,.fixed-dialogue .dialogue-adjust,.fixed-dialogue .dialogue-tools button{min-height:26px;padding:2px 5px}
 .fixed-dialogue .dialogue-questions summary{min-height:26px;line-height:2}
 .fixed-dialogue .dialogue-bubble{display:grid;grid-template-columns:90px 1fr}
 .presentation-header{height:30px;min-height:30px;padding-block:2px}
 .presentation-screen>.arrival-heading{top:132px;padding:4px 10px}
 .arrival-heading h1{font-size:18px}
 .arrival-heading p{font-size:10px}
 .presentation-screen .presentation-actions{height:36px;min-height:36px;padding-block:2px}
 .presentation-actions button{height:30px;min-height:30px;padding-block:2px}
}
