/* Public play keeps the paper, jade and brass palette at readable sizes. */
.public-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.public-skip{position:fixed;inset-block-start:8px;inset-inline-start:8px;z-index:1500;transform:translateY(-160%);background:#fffdf6;color:#19382f;padding:12px 18px;border:2px solid #244d40;border-radius:8px;font-size:16px}
.public-skip:focus{transform:none}
#connection{max-width:min(640px,calc(100% - 24px));box-sizing:border-box;font-size:16px;line-height:1.55;overflow-wrap:anywhere;text-align:center;z-index:1250}
#connection[hidden]{display:none}
.public-save-tools{display:flex;align-items:baseline;justify-content:space-between;gap:8px 22px;flex-wrap:wrap;max-width:1160px;margin:0 auto;padding:12px 24px;color:#486154;background:#f7f3e8;font-size:14px;line-height:1.6;box-sizing:border-box}
.public-save-tools[hidden]{display:none}
#saveStatus{margin:0;font-size:14px}
#savePanel{position:relative;max-width:100%;min-width:0}
#savePanel>summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;color:#244d40;font-size:14px;overflow-wrap:anywhere}
#savePanel[open]{flex:1 1 100%;width:100%;border-block-start:1px solid #c5cebd;margin-block-start:8px;padding-block-start:8px}
.public-save-panel{max-width:760px;padding-block:6px 16px;font-size:16px;line-height:1.7;color:#19382f}
.public-save-panel p{margin:8px 0 16px;overflow-wrap:anywhere}
.public-save-panel button,.public-restore-row button{font:inherit;min-height:44px;padding:10px 15px;border:1px solid #244d40;border-radius:7px;color:#244d40;background:#fffdf6;white-space:normal;line-height:1.45;cursor:pointer}
.public-save-panel button:disabled{cursor:wait;opacity:.65}
.public-save-actions{display:flex;flex-wrap:wrap;gap:10px;margin-block:12px}
.public-save-panel label{display:block;font-weight:600;margin-block:12px 6px}
.public-save-panel input,.public-save-panel select,.public-save-panel textarea{box-sizing:border-box;max-width:100%;font:inherit;font-size:16px;line-height:1.6;padding:10px 12px;color:#19382f;background:#fffdf6;border:1px solid #7b8e7e;border-radius:6px;min-width:0}
#recoveryCode{width:min(100%,560px);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.06em;font-weight:600}
#codePrivacy,#restoreHelp,.public-study-panel .public-study-privacy{font-size:14px;color:#486154;line-height:1.65}
.public-restore-row{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap}
.public-restore-row input{flex:1 1 250px}
#saveFormStatus:empty,#studyStatus:empty{display:none}
#saveFormStatus{padding:12px;background:#f3f1e7;border-radius:6px;font-weight:500}
.public-study-entry{flex:0 1 auto;max-width:100%;font:inherit;font-size:14px;min-height:44px;line-height:1.6;color:#244d40;background:transparent;border:1px solid #8a9d88;border-radius:7px;padding:8px 12px;cursor:pointer}
.public-study-panel{flex:1 1 100%;font-size:16px;color:#19382f;border-block-start:1px solid #c5cebd;padding-block:14px;max-width:760px}
.public-study-panel[hidden],#recoveryCodeWrap[hidden],#copyRecoveryCode[hidden]{display:none}
.public-study-panel h2{font-size:20px;line-height:1.5;margin:0 0 8px}
.public-study-panel form{display:grid;gap:14px}
.public-study-panel label{display:grid;gap:6px;line-height:1.6}
.public-study-panel select,.public-study-panel textarea{width:100%;box-sizing:border-box;font:inherit;font-size:16px;line-height:1.6;padding:10px 12px;border:1px solid #7b8e7e;border-radius:6px;background:#fffdf6;color:#19382f}
.public-study-panel .btnrow{display:flex;flex-wrap:wrap;gap:10px}
.public-study-panel button{font:inherit;min-height:44px;border:1px solid #244d40;border-radius:7px;padding:10px 16px;background:#244d40;color:#fffdf6;cursor:pointer}
.public-study-panel button[type=button]{background:transparent;color:#244d40}
#langGate .lang-panel{box-sizing:border-box;max-height:calc(100dvh - 40px);overflow:auto}
.lang-panel h1 span,.lang-picks small,.lang-foot{font-size:14px;line-height:1.65;color:#486154}
.lang-picks button{min-height:60px}
#feedbackOpen,#feedbackOpen.inline{min-height:44px;font-size:14px}
#feedbackDialog{box-sizing:border-box;max-height:calc(100dvh - 28px);overflow:auto;font-size:16px;line-height:1.65}
#feedbackDialog input,#feedbackDialog select,#feedbackDialog textarea{font-size:16px}
#feedbackDialog .privacy,.beta-brand{font-size:14px;color:#486154}
#feedbackDialog button{min-height:44px;font:inherit;font-size:16px}
.run-links button{font-size:14px;line-height:1.6;white-space:normal}
:where(#saveTools,#langGate,#feedbackDialog,#game) :where(button,input,select,textarea,summary,a):focus-visible{outline:3px solid #a57620;outline-offset:3px}
/* Main decisions stay at body size; records and chart labels remain secondary. */
.novice-polished .novice-step-copy p,.novice-polished .novice-goal p,.novice-polished .novice-choice-title,.novice-polished .novice-choice-action,.novice-polished .novice-next-step .novice-step-action,.novice-polished .novice-action-list button,.novice-polished .novice-step-wait{font-size:16px;line-height:1.65}
.novice-polished .novice-choice-math,.novice-polished .novice-budget-choice>span:not(.novice-choice-title):not(.novice-choice-action),.novice-polished .novice-step-copy .novice-milestone,.novice-polished .novice-compact-advice h3,.novice-polished .novice-coach-compact>.btn,.novice-polished .novice-help{font-size:14px;line-height:1.65}
.novice-polished .novice-dashboard,.novice-polished .novice-step-copy,.novice-polished .novice-action-list button,.novice-polished .novice-coach-compact{min-width:0;overflow-wrap:anywhere}
@media(max-width:650px){
 .public-save-tools{padding:10px 18px;gap:4px 12px}.public-save-tools #savePanel{max-width:100%}
 #savePanel[open]{order:3}.public-restore-row{display:grid;grid-template-columns:minmax(0,1fr)}.public-restore-row input{width:100%}
 .public-save-panel button{flex:1 1 auto}.novice-polished .novice-next-step .novice-step-action{font-size:16px}
 .novice-polished .novice-coach-column>.tristan-v2.novice-coach-compact{grid-template-columns:64px minmax(0,1fr);padding:14px}.novice-polished .novice-coach-compact>.btn{grid-column:1/-1;width:100%;max-width:none;font-size:14px}.novice-polished .novice-coach-compact>.tristan-v2-portrait{width:64px;height:64px}
 .run-links{position:relative;z-index:50}.run-links button{flex:1 1 100%}body:has(#runLinks:not([hidden])) .overlay{padding-top:18px}
}
@media(forced-colors:active){button,input,select,textarea,summary{border:1px solid ButtonText!important}.public-save-tools,#connection{background:Canvas;color:CanvasText}}
/* Keep setup, settled results and the inherited decision windows readable too. */
.novice-welcome .novice-intro-lede,.novice-welcome .novice-start-context b,.novice-customize p,.novice-replace-save p,.novice-setup-fields select,.novice-checkpoint .novice-recap-intro p,.novice-checkpoint .novice-recap-outcomes p,.novice-polished .novice-event-list li,.novice-polished .novice-action-list>button b{font-size:16px;line-height:1.7}
.novice-welcome .novice-start-context span,.novice-welcome .novice-duration,.novice-save-caption,.novice-welcome-foot p,.novice-welcome-foot .novice-back-link,.novice-setup-fields label,.novice-polished .novice-chapter-progress,.novice-polished .novice-chapter-progress b,.novice-polished .novice-dashboard dt,.novice-polished .novice-action-list>button span,.novice-polished .novice-world .world-copy p,.novice-polished .novice-unlock-note,.novice-polished .novice-cash-equation dt,.novice-polished .novice-event-list li>span,.novice-polished .novice-section-heading>span,.novice-polished .novice-summary-note,.novice-polished .novice-detail p,.novice-polished .novice-detail>summary,.novice-polished .novice-month-entry>summary,.novice-polished .novice-month-entry dl>div,.novice-turnbar span,.novice-help .simulation-note,.novice-first-coach p{font-size:14px;line-height:1.65}
.novice-turnbar .btn,.novice-recap-actions>.btn{font-size:16px;line-height:1.6;white-space:normal;max-width:100%;min-width:0}
#game .modal :where(p,.lede,label,input,select,textarea,button,summary){font-size:16px;line-height:1.65;overflow-wrap:anywhere}
#game .modal :where(.tip,.small,.simulation-note,small,.cash-preview .wide,.cash-preview small,.novice-home-kind){font-size:14px;line-height:1.65}
#game .modal :where(input,select,textarea){max-width:100%;min-width:0;box-sizing:border-box}
#game .modal .btnrow{flex-wrap:wrap}
#game .modal .btn{white-space:normal}
@media(max-width:380px){.novice-polished .novice-dashboard{grid-template-columns:1fr 1fr}.novice-polished .novice-dashboard>div:first-child{grid-column:1/-1}.novice-start-btn{min-width:0}.public-save-tools{padding-inline:14px}}
