#finaleLedgerButton{position:absolute;right:22px;top:150px;z-index:35;background:#163b30ec;color:#f6e0a1;border:1px solid #c3a76866;border-radius:24px;padding:11px 17px;font-size:12px;box-shadow:0 5px 24px #0c241733}.late-panel{max-width:770px}.late-panel h2{font-size:clamp(26px,4vw,39px)}.late-next,.late-cost{border:1px solid #b49b6355;background:#304b3524;padding:16px 20px;border-radius:14px;margin:18px 0}.late-next small{letter-spacing:.16em;font-size:10px;color:var(--gold,#d6bd81)}.late-next h3{margin:8px 0}.late-ledger{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.late-ledger article{padding:18px;border:1px solid #ad9b6766;border-radius:16px;background:#23463433;display:flex;flex-direction:column;gap:8px}.late-ledger b{font:36px Georgia,serif;color:#dcc389}.late-ledger span,.late-ledger small{font-size:12px}.late-ledger progress{width:100%;height:5px;accent-color:#bba96b}.late-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.late-history{width:100%;border-collapse:collapse;font-size:12px;margin:15px 0;text-align:left}.late-history td,.late-history th{padding:10px;border-bottom:1px solid #78836644}.late-evidence{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.late-evidence button[aria-pressed=true]{background:#375d44;border-color:#ddc47e;color:#fff1c4}.late-control-guide{line-height:2;padding:16px;background:#19392b22;border-radius:12px}.late-control-guide b{border:1px solid #9b986c66;border-radius:6px;padding:5px 8px;margin-right:6px}.late-illustration,.late-ending,.late-game{max-width:none!important;width:100vw!important;height:100dvh!important;max-height:none!important;padding:0!important;border:0!important;border-radius:0!important;background:#142b23!important;overflow:hidden!important;position:relative}.late-story-image{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.late-story-copy{position:absolute;inset:auto 0 0;padding:70px max(6vw,22px) 30px;background:linear-gradient(transparent,#10241dee 35%);color:#f5e8c0}.late-story-copy h2{font:clamp(25px,4vw,46px) Georgia;margin:12px 0}.late-story-copy p{max-width:700px;color:#e5decd;font-size:16px}.late-story-copy small{letter-spacing:.2em}.late-ending{overflow-y:auto!important}.late-ending-art img{width:100%;height:40vh;object-fit:cover;object-position:50% 43%}.late-ending-copy{max-width:870px;margin:auto;padding:24px;color:#e7dec7}.late-ending-copy p{color:#ddd6c4}.late-game-world{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 30%,#42633f,#112d24)}.late-game-world canvas{width:100%;height:100%;display:block;touch-action:none}.late-game-top{position:absolute;inset:0 0 auto;display:flex;align-items:start;justify-content:space-between;gap:15px;padding:25px 32px 45px;background:linear-gradient(#102a25dd,transparent);pointer-events:none;color:#fff0c8}.late-game-top small{font-size:10px;letter-spacing:.21em;color:#dacb93}.late-game-top h2{font:clamp(22px,3vw,34px) Georgia;margin:7px 0}.late-game-top button{pointer-events:auto;background:#173c30cc;color:#e9daae;border:1px solid #dcc98a66;border-radius:24px}.late-game-status{position:absolute;top:111px;left:32px;width:min(360px,70vw);color:#ffedba;display:grid;gap:10px;text-shadow:0 1px 5px #143121}.late-game-status b{font-size:13px}.late-game-status span{font-size:12px;line-height:1.5}.late-game-status progress{width:100%;height:7px;accent-color:#ead591}.late-game-controls{position:absolute;bottom:32px;left:50%;transform:translateX(-50%);display:flex;gap:12px;max-width:95%;width:max-content}.late-game-controls button{background:#183e32ed;border:1px solid #dfcb8977;color:#f7e5b3;min-width:76px;min-height:55px;border-radius:18px;box-shadow:0 5px 18px #10261955;touch-action:manipulation}.late-game-controls button[aria-pressed=true]{background:#ead79d;color:#223b2c;border-color:#fff0bd;transform:translateY(-4px)}.late-game-controls button.threatened{box-shadow:0 0 0 3px #e7805e88,0 0 35px #cf6c3933}.late-game-ready,.late-game-result{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(520px,90%);background:#102e27f2;border:1px solid #d1b96b80;border-radius:24px;padding:30px;color:#f6e7bb;text-align:center;box-shadow:0 24px 90px #0b201b66;backdrop-filter:blur(16px)}.late-game-ready h3,.late-game-result h3{font:32px Georgia;margin:10px 0}.late-game-ready p,.late-game-result p{font-size:14px;line-height:1.65;color:#d7d8c5}.late-game-result small{letter-spacing:.14em;color:#d7c58b;font-size:10px}.late-game-result button{margin:5px}.late-threat{position:absolute;top:120px;right:32px;padding:15px;border:1px solid #db916980;border-radius:12px;background:#4e3026e6;color:#ffe4b9;display:grid;gap:10px;font-size:12px}.late-threat progress{width:100%;accent-color:#e68e61}.late-timing-scene{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(#102d2244,#12281fd9),url('assets/art/farm.png') center/cover}.late-ring{--sector:248deg;width:min(47vh,340px);height:min(47vh,340px);border-radius:50%;position:relative;background:conic-gradient(from calc(var(--sector) - 37deg),#ddc277 0deg 74deg,#d0c89522 74deg 360deg);box-shadow:0 0 0 2px #dfcd9855,0 15px 80px #101c1977;display:grid;place-items:center}.late-ring:before{content:'';position:absolute;inset:20px;background:#193b2fe8;border:1px solid #cdbb7b66;border-radius:50%}.late-ring span{z-index:1;color:#f5e4b3;font:40px Georgia;pointer-events:none}.late-ring i{position:absolute;inset:0;border-radius:50%;z-index:2}.late-ring i:before{content:'';position:absolute;top:0;left:calc(50% - 9px);width:18px;height:18px;border-radius:50%;background:#fff2c0;box-shadow:0 0 25px #ffe39d}.late-game #lateGameLoading{position:absolute;top:43%;left:50%;transform:translateX(-50%);color:#efdfaf}.late-panel .small{font-size:12px}.late-panel details{margin:18px 0}.late-illustration .theme-links{margin:12px 0}
@media(max-width:700px){#finaleLedgerButton{top:170px;right:12px;font-size:10px;padding:8px 10px;max-width:220px}.late-ledger{gap:6px}.late-ledger article{padding:11px 9px}.late-ledger b{font-size:25px}.late-ledger span,.late-ledger small{font-size:10px}.late-history{font-size:10px}.late-history td,.late-history th{padding:7px 3px}.late-game-top{padding:18px 16px 30px}.late-game-top button{font-size:11px;padding:10px}.late-game-status{top:100px;left:18px;width:230px}.late-game-controls{bottom:max(22px,env(safe-area-inset-bottom));gap:6px;width:calc(100% - 28px);justify-content:center}.late-game-controls button{min-width:0;flex:1;font-size:13px;padding:12px 9px;min-height:56px}.late-game-ready,.late-game-result{padding:24px 20px;top:51%}.late-game-ready h3,.late-game-result h3{font-size:25px}.late-threat{top:192px;left:18px;right:auto;font-size:10px}.late-game-controls kbd{display:none}.late-story-copy{padding:85px 22px 26px}.late-story-copy p{font-size:13px}.late-evidence{grid-template-columns:1fr}.late-ring{width:260px;height:260px}.late-game-top h2{max-width:250px}}
body:has(#overlay:not([hidden]) :is(.late-game,.late-illustration,.late-ending)) .topbar{visibility:hidden}.overlay:has(:is(.late-game,.late-illustration,.late-ending)){position:fixed!important;inset:0!important;padding:0!important;background:#10271e!important;z-index:100;align-items:stretch!important;backdrop-filter:none}.overlay:has(.late-game) #modal{max-height:100dvh!important}
.late-game-menu{display:flex;gap:8px;pointer-events:auto}@media(max-width:700px){.late-game-menu{flex-direction:column;gap:5px}.late-game-menu button{font-size:10px;padding:8px 10px}}

#toast{pointer-events:none}

/* Evidence is readable at rest; the world resumes only when the notebook closes. */
.case-sources{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.case-sources button{display:flex;flex-direction:column;gap:10px;text-align:left;min-height:170px;padding:16px;background:#203d2e0e;border:1px solid #b49b6380;border-radius:14px}.case-sources small{font-size:12px;line-height:1.5}.case-sources b{font:21px Georgia,serif}.case-sources span,.case-source-copy{font-size:16px;line-height:1.65}.case-sources button:disabled{opacity:.65;min-height:100px}.case-sources button[aria-pressed=true],.case-claims button[aria-pressed=true]{background:#224c3a;color:#fff0c5;border-color:#b79743;box-shadow:inset 0 0 0 2px #d9bc70}.case-claims{display:grid;gap:10px}.case-claims button{text-align:left;padding:14px 18px;font-size:16px;line-height:1.5}.case-panel{max-width:980px}.case-panel #caseFeedback{padding:13px 16px;background:#bc9d5520;border-left:3px solid #a58942;font-size:16px}.case-panel .small{font-size:13px}.case-panel .buttons{position:sticky;bottom:-24px;background:var(--paper,#ede5ce);padding:12px 0;margin-bottom:0}.case-panel .buttons button{font-size:14px;min-height:44px}@media(max-width:700px){.case-sources{grid-template-columns:1fr}.case-sources button{min-height:0}.case-panel{padding:20px!important}.case-panel .buttons{bottom:-20px}.case-sources b{font-size:21px}}

/* One compact command area; warnings and controls always share the same lanes. */
.defence-orders{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);width:min(660px,94vw);background:#102e28ee;border:1px solid #a48d5577;border-radius:18px;padding:14px;color:#f6e5b7;display:grid;gap:10px;box-shadow:0 12px 40px #071c2366}.defence-teams,.defence-lanes{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.defence-orders button{display:grid;gap:6px;min-height:62px;background:#254a3b;color:#f6e5b7;border:1px solid #bbab7766;border-radius:10px;padding:10px;font-size:15px;touch-action:manipulation}.defence-orders button span{font-size:13px}.defence-orders button[aria-pressed=true]{background:#ddc88d;color:#183b2d;border-color:#ffebb2}.defence-lanes .threatened{border-color:#e39069;box-shadow:inset 0 0 0 1px #e39069}.defence-lanes .covered{border-color:#9ad9a6;box-shadow:inset 0 0 0 1px #9ad9a6;background:#376447}.defence-orders progress{height:7px;width:100%;accent-color:#ddc88d}.defence-orders>span{font-size:13px;text-align:center}.late-game .late-game-status{max-width:420px;width:calc(100% - 50px)}.late-game-status b,.late-game-status span{font-size:14px}.late-game-top small{font-size:12px}.quarry-instrument{position:absolute;right:5%;bottom:125px;display:grid;justify-items:center;gap:20px;width:240px}.quarry-instrument .late-ring{width:210px;height:210px;--window:37.8deg;background:conic-gradient(from calc(var(--sector) - var(--window)),#ddc277 0deg calc(var(--window) * 2),#d0c89522 calc(var(--window) * 2) 360deg)}.quarry-instrument .late-ring:before{inset:14px}.quarry-instrument .late-ring span{font-size:32px}.work-meters{width:100%;padding:12px;background:#17382deb;border-radius:14px;color:#f6e4b8;display:grid;gap:10px}.work-meters label,.hen-alarm label{display:grid;gap:5px;font-size:14px}.work-meters progress,.hen-alarm progress{width:100%;accent-color:#d2bd7d;height:8px}.work-meters label:first-child progress{accent-color:#d49a78}.hen-route{position:absolute;bottom:110px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;width:min(550px,94vw);justify-content:center;color:#f5e6bd}.hen-route [data-henspot]{padding:13px 19px;background:#153c2fdd;border:1px solid #d5ba77;border-radius:12px;font-size:15px;white-space:nowrap}.hen-route .watched{border-color:#ef956d;background:#773f2cee}.hen-route .occupied{box-shadow:0 0 0 3px #f8e4a4}.hen-alarm{position:absolute;right:28px;top:120px;color:#f4e1bb;background:#183b30df;border-radius:14px;padding:14px;display:grid;gap:12px;min-width:200px}.hen-alarm b{font-size:14px}.late-game .late-game-ready,.late-game .late-game-result{z-index:5}.late-game .late-game-result[hidden],.late-game .late-game-ready[hidden]{display:none}.late-game-top h2{max-width:650px}
@media(max-width:700px){.defence-orders{bottom:14px;padding:10px;gap:8px}.defence-orders button{font-size:14px;padding:9px 5px;min-height:68px}.defence-orders button span{font-size:12px}.defence-orders>span{font-size:12px}.quarry-instrument{right:16px;bottom:105px;width:180px;gap:12px}.quarry-instrument .late-ring{width:164px;height:164px}.quarry-instrument .late-ring span{font-size:28px}.work-meters{padding:10px}.hen-route{gap:5px;bottom:103px}.hen-route [data-henspot]{font-size:14px;padding:12px 11px}.hen-alarm{top:200px;right:18px;min-width:170px;padding:12px}.late-game-top{padding:18px 16px 30px}.late-game-top h2{font-size:24px;max-width:245px}.late-game-top small{max-width:240px;display:block;font-size:11px;line-height:1.5;letter-spacing:.1em}.late-game .late-game-status{top:120px;left:18px;width:calc(100% - 36px)}.late-game .late-game-status span{max-width:310px}.late-game-menu button{font-size:12px;min-height:42px}.late-game-controls button{font-size:15px}.late-game-controls kbd{display:none}}

.case-record{border-bottom:1px solid #98825166;padding:16px 0}.case-record h3{font-size:22px}.case-record p{font-size:16px}.case-record small{font-size:13px}.case-panel .buttons{background:#192e24}.late-game-status{pointer-events:none}.late-panel summary{font-size:15px;min-height:44px;padding:10px 0}.late-game #defenceRegroup small{font-size:12px}
/* Quiet evidence work: readable documents and native, keyboard-friendly choices. */
.workshop-versions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.workshop-versions article{padding:16px;border:1px solid #b8a56a;border-radius:10px;background:#f8f1dc}.workshop-versions small{font-weight:700;color:#4b5e45}.workshop-versions p{margin-bottom:0}.workshop-question{border:0;padding:0;margin:24px 0}.workshop-question legend{font-weight:700;padding:0 0 10px}.workshop-question label{display:flex;gap:12px;align-items:flex-start;margin:8px 0;padding:12px;border:1px solid #c4c8ad;border-radius:8px;cursor:pointer}.workshop-question label:has(input:checked){background:#e6edce;border-color:#52754b}.workshop-question input{accent-color:#385639;margin-top:4px;flex-shrink:0}.workshop-label{display:block;font-weight:700;margin:18px 0 8px}.workshop select,.workshop textarea{width:100%;padding:12px;border:1px solid #869874;border-radius:8px;font:inherit;background:#fffdf5;color:#253b2e}.workshop-oral{display:flex;gap:12px;margin-top:12px}.workshop-sources{margin:16px 0}.workshop-sources article{padding:12px 0;border-bottom:1px solid #c8c9b2}.workshop :focus-visible{outline:3px solid #927019;outline-offset:3px}.workshop #workshopFeedback{font-weight:600}.workshop table{width:100%}@media(max-width:520px){.workshop-versions{grid-template-columns:1fr}}
.workshop-versions article,.workshop-versions article p{color:#253b2e}.workshop-question label:has(input:checked){background:#334d36;color:#fff6d8;border-color:#d5c287}.workshop .buttons{position:static;background:transparent;margin-top:12px}.workshop #workshopFeedback:not(:empty){padding:13px 16px;background:#bc9d5520;border-left:3px solid #d4b56d;line-height:1.6}
