/* Settings are a tool panel: quick help, two compact control groups, then privacy and diagnostics. */
.settings-panel,.feedback-panel{width:100%;max-width:900px;min-width:0;margin:0 auto;display:grid;gap:12px}
.settings-panel section,.feedback-panel>section{min-width:0;border:1px solid var(--line);border-radius:13px;padding:13px;background:#fffaf0}
.settings-panel h3,.feedback-panel h3{font-size:15px;line-height:1.25;margin:0 0 8px;color:var(--ink)}
.settings-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.settings-shortcuts .small{min-width:0;min-height:58px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;padding:9px 8px;text-align:center;background:#e5eadb;border-color:#a6b297;color:#244b37}
.settings-shortcuts .small>span{font-size:21px;line-height:1;flex:none}
.settings-shortcuts .small strong{font-size:12px;line-height:1.2;max-width:calc(100% - 27px)}
.settings-shortcuts .small small{flex-basis:100%;font-size:10px;color:#5c4a27}
.settings-core{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:46px;border-top:1px solid #ded5c3;font-size:13px;line-height:1.25}
.setting-row>span{flex:1;min-width:0}
.setting-row select{width:auto;max-width:54%;min-width:0;min-height:44px;background:#fffaf0;border:1px solid var(--line);border-radius:7px;padding:7px;font-size:12px}
.setting-row input[type=checkbox]{width:23px;height:23px;accent-color:var(--mint);flex:0 0 23px}
.setting-row input[type=range]{width:47%;max-width:47%;min-width:0;min-height:44px;accent-color:var(--mint)}
.setting-row output{display:inline-block;min-width:35px;font-size:11px;color:var(--muted)}
.settings-panel small,.feedback-panel small{font-size:11px;line-height:1.4;color:var(--muted)}
.settings-panel .setting-hint{display:block;margin:5px 0 0}
.settings-privacy{display:grid;gap:10px;min-width:0}
.settings-privacy:empty{display:none}
.settings-panel .settings-privacy .safety-settings{padding:12px 13px}
.settings-panel .settings-privacy .safety-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0}
.settings-panel .settings-privacy .safety-actions .small{min-width:0;min-height:44px;padding:7px;font-size:12px;line-height:1.2}
.settings-panel .settings-ad-privacy{display:flex;align-items:center;justify-content:space-between;gap:12px}
.settings-panel .settings-ad-privacy h3{margin:0}
.settings-panel .settings-ad-privacy .small{min-height:44px}
.settings-system{border:1px solid var(--line);border-radius:11px;background:#eee8d8;min-width:0}
.settings-system>summary{padding:12px 13px;min-height:44px;font-size:12px;font-weight:750;cursor:pointer;color:#475744}
.settings-system>summary:focus-visible,.feedback-diagnostics>summary:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:8px}
.settings-system>div{padding:0 10px 11px;display:grid;gap:6px}
.settings-panel .settings-connection{padding:10px}
.settings-connection .small{min-height:44px;margin:2px 0 8px}
.settings-connection>small{display:block}
.setting-buttons{display:grid;gap:8px}
.setting-buttons .small{font-size:13px;min-height:44px;text-align:left}
.settings-version{display:block;text-align:center;overflow-wrap:anywhere}
.settings-status{font-size:13px;line-height:1.45;overflow-wrap:anywhere;margin:7px 0}
.settings-status:empty{display:none}
.feedback-panel{max-width:620px}
.feedback-panel form{display:grid;gap:12px}
.feedback-panel label{display:grid;gap:6px;font-size:14px;font-weight:650}
.feedback-panel textarea,.feedback-panel select{width:100%;padding:10px;background:#fffaf0;border:1px solid var(--line);border-radius:8px;font:inherit;min-height:44px;color:var(--ink)}
.feedback-panel textarea{resize:vertical;line-height:1.5}
.feedback-panel .guide-never{display:flex;align-items:center;font-size:13px}
.feedback-panel .guide-never input{flex:0 0 22px}
.feedback-diagnostics{font-size:12px;border-radius:10px;padding:0 10px;background:#ece8da;line-height:1.5;overflow-wrap:anywhere}
.feedback-diagnostics summary{min-height:44px;padding:11px 0;cursor:pointer}
.feedback-diagnostics>p:last-child,.feedback-diagnostics>small:last-child{margin-bottom:10px}
.feedback-receipt{font-size:12px;overflow-wrap:anywhere}
.feedback-panel .action{font-size:14px;min-height:48px}
.feedback-panel>.small{min-height:44px}
.pause-settings{display:block;min-height:44px;font-size:12px;margin-top:8px}
@media(max-width:680px){
 .settings-core{grid-template-columns:minmax(0,1fr);gap:10px}
 .settings-panel .settings-privacy .safety-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .settings-panel .settings-ad-privacy{flex-wrap:wrap}
}
@media(max-width:400px){
 .settings-shortcuts{gap:5px}
 .settings-shortcuts .small{padding:8px 5px;gap:4px;flex-direction:column}
 .settings-shortcuts .small strong{max-width:100%;font-size:11px}
 .settings-shortcuts .small>span{font-size:18px}
}
body.reduce-motion *,body.reduce-motion *::before,body.reduce-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}body.high-contrast{--ink:#211b13;--muted:#4f4431;--line:#796c50;--mint:#215a43;--gold:#9b6809;--blue:#205766;--red:#8b3d25}body.high-contrast .game-mode-card small,body.high-contrast .home-hero-copy p,body.high-contrast .note,body.high-contrast .eyebrow,body.high-contrast .text-button{color:#493b24}body.high-contrast button:disabled{opacity:.65}body.high-contrast .board,body.high-contrast .modal-inner{border-color:#716146}body.high-contrast button:focus-visible,body.high-contrast input:focus-visible,body.high-contrast select:focus-visible,body.high-contrast textarea:focus-visible{outline:3px solid #845308;outline-offset:3px}body.large-text .home-tool strong,body.large-text .home-target span,body.large-text .home-hall-peek strong{font-size:15px}
body.large-text .game-mode-card .mode-card-copy strong{font-size:clamp(20px,2.8vw,25px);line-height:1.18}body.large-text .home-tool small,body.large-text .game-mode-card .mode-card-copy small,body.large-text .home-target small,body.large-text .home-hall-peek span{font-size:14px}
body.large-text .game-mode-card .mode-card-copy .mode-action{font-size:14px}body.large-text .modal-inner p,body.large-text .modal-inner label,body.large-text .modal-inner summary{font-size:16px;line-height:1.55}body.large-text .modal-inner .small,body.large-text .modal-inner .action{font-size:14px}body.large-text .home-tool,body.large-text .game-mode-card{height:auto;min-height:110px}body.large-text .settings-panel{gap:16px}body.large-text .context-guide li{font-size:16px}body.reduced-effects .reward-heckler{animation:none}@media(max-width:400px){.settings-panel section{padding:11px}.setting-row{gap:9px;font-size:13px}.setting-row select{font-size:12px}.feedback-panel{gap:10px}body.large-text .home-tools{grid-template-columns:repeat(2,minmax(0,1fr))}}
body.motion-full .reward-heckler{animation:parcel-handoff .45s ease-out!important}body.motion-full .shared-ego-reveal{animation:ego-reveal 1.8s ease-out!important}body.motion-full.reduced-effects .reward-heckler{animation:none!important}

/* The active playing surface uses the same readable-text preference as menus. */
body.large-text.play-screen .hud small{font-size:12px;letter-spacing:0;line-height:1.1}
body.large-text.play-screen .hud strong{font-size:22px;line-height:1.1}
body.large-text.play-screen .hud{min-height:40px}
body.large-text.play-screen #goal-context,body.large-text.play-screen #goal-progress{font-size:12px;letter-spacing:0}
body.large-text.play-screen .goal-card #goal-title{font-size:15px;line-height:1.2}
body.large-text.play-screen .goal-card .goal-order>span small{font-size:12px;line-height:1.2}
body.large-text.play-screen #held-name,body.large-text.play-screen #hold small{font-size:12px;line-height:1.1}
body.large-text.play-screen #piece-trait,body.large-text.play-screen #pause-button,body.large-text.play-screen #help-button{font-size:12px}
body.large-text.play-screen #merge-chain-label{font-size:12px;line-height:14px;letter-spacing:0}
body.large-text.play-screen .coach .speech-bubble{font-size:15px!important;line-height:1.3}
@media(max-width:599px){
 body.large-text.play-screen .play-stage,body.large-text.play-screen .play-stage:not(:has(.coach .speaker:not([hidden]))){grid-template-rows:minmax(var(--play-min-scene-height,400px),1fr) 60px;min-height:calc(var(--play-min-scene-height,400px) + 64px)}
 body.large-text.play-screen #hold{grid-template-columns:minmax(0,1fr)}
 body.large-text.play-screen #hold small,body.large-text.play-screen #held-name{grid-column:1}
 body.large-text.play-screen #held-preview{display:none}
}
body.large-text .settings-panel .setting-row select{font-size:16px}
body.large-text .settings-shortcuts .small strong{font-size:14px}
