/* Landscape-first game shell. The village stays on the full viewport. */
:root{--shell-wood:#4e3524;--shell-edge:#b98b47;--shell-gold:#f1cc72;--shell-safe-x:max(12px,env(safe-area-inset-left));--shell-safe-r:max(12px,env(safe-area-inset-right))}
html,body,#game{height:100%;height:100dvh;overscroll-behavior:none}
body{background:#527b38}button{min-height:44px}svg{stroke-linecap:round;stroke-linejoin:round}.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}
.world-shade{background:linear-gradient(#142b252c,transparent 100px,transparent calc(100% - 100px),#142b253d);box-shadow:none}
.top-hud{top:max(10px,env(safe-area-inset-top));left:var(--shell-safe-x);right:var(--shell-safe-r);display:grid;grid-template-columns:auto minmax(0,390px) auto;justify-content:space-between;align-items:start;gap:12px}
.village-brand{height:56px;min-width:210px;padding:5px 10px 5px 6px;gap:9px;border:2px solid var(--brand-accent,#c49b57);border-radius:11px;background:linear-gradient(var(--brand-primary-light,#537449),var(--brand-primary,#2c4d35));box-shadow:inset 0 1px #d8db9d77,0 4px 0 #263c2a,0 6px 10px #18302545}
.crest{width:35px;height:42px;clip-path:none;background:none;color:#e8c675;flex-shrink:0}.crest svg{width:35px;height:42px;fill:#3b5838;stroke:#ebcc83;stroke-width:1.8}.brand-copy{min-width:0}.village-brand small{font:800 10px/1.4 'Nunito Sans',sans-serif;letter-spacing:1.1px;color:#f3dfaa;margin:0 0 3px}.village-brand strong{font:800 13px/1.2 'Nunito Sans',sans-serif;white-space:nowrap}.level-medallion{margin-left:auto;flex-shrink:0;width:30px;height:30px;font-size:16px;background:linear-gradient(#f3d486,#c29347);color:#433720;border:2px solid #ffe8aa;box-shadow:0 2px 0 #70522f}
.resource-bar{display:flex;order:0;width:auto;max-width:none;gap:7px;background:none;border:0;padding:0;box-shadow:none;border-radius:0}.resource-bar>div{height:48px;flex:1;min-width:0;gap:2px;padding:4px 8px 4px 0;background:linear-gradient(#294d32e8,#173724ee);border:2px solid #8d9c59;border-radius:9px;box-shadow:inset 0 1px #e8e1a13d,0 3px 0 #233b24,0 5px 9px #18302555}.resource-icon{width:39px;height:39px;flex-shrink:0;filter:drop-shadow(0 2px 1px #11271866)}.resource-bar .potion-resource{display:flex!important}.resource-bar b{font-size:17px;line-height:1.15;color:#fff3c7;text-shadow:0 1px #102a21}.resource-bar small{font-size:9px;letter-spacing:.7px;color:#b6ca93;margin-top:2px}.hud-actions{display:flex;gap:6px;margin:0}.round-button,.map-controls button{width:44px;height:44px;min-height:44px;border:2px solid #d6b36d;border-radius:10px;background:linear-gradient(#637b4c,#35533b);color:#f6e3ad;box-shadow:inset 0 1px #d9deb266,0 3px 0 #253c2a,0 5px 8px #1532244d;display:grid;place-items:center;padding:9px}.round-button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}.round-button[aria-pressed=true]{background:linear-gradient(#d4a650,#8d642e);border-color:#ffe1a0}
.chapter-card{top:78px;left:var(--shell-safe-x);width:190px;padding:0;background:none;border:0;border-radius:0;box-shadow:none;pointer-events:none;color:#fff3ce}.chapter-progress{height:5px;background:#1c3e2f9c;border:1px solid #d0cf8c66;margin:0;box-shadow:0 1px 3px #19332655}.chapter-progress span{background:linear-gradient(90deg,#d4a752,#ffe7a1)}.chapter-count{font-size:12px;line-height:1.3;color:#fff2c7;text-shadow:0 1px 3px #173522;margin:6px 0 0}
.bottom-hud{left:var(--shell-safe-x);right:var(--shell-safe-r);bottom:max(12px,env(safe-area-inset-bottom));gap:16px;align-items:end;transition:transform .18s,opacity .18s}.hud-left,.hud-right{display:flex;align-items:end;gap:10px;pointer-events:auto}.hud-right{margin-left:auto}.dock-button{height:66px;min-width:95px;display:flex;align-items:center;justify-content:center;gap:10px;padding:9px 17px;border:2px solid #b6a169;border-radius:12px;background:linear-gradient(#4d7048,#2c5139);box-shadow:inset 0 2px #bfc59466,0 5px 0 #223c29,0 8px 15px #12312666;color:#ffedbe;font-weight:800;font-size:16px;text-align:left;transition:transform .12s,filter .12s}.dock-button svg{width:31px;height:35px;fill:none;stroke:currentColor;stroke-width:1.7;filter:drop-shadow(0 2px #27372680);flex-shrink:0}.dock-button small{display:block;font-size:11px;font-weight:600;line-height:1.3;color:#c6d2ad;margin-top:3px}.dock-button:hover{filter:brightness(1.1)}.dock-button:active{transform:translateY(3px);box-shadow:inset 0 2px #bfc59466,0 2px 0 #223c29}.dock-button.upgrade-button{background:linear-gradient(#f5d785,#c69947);color:#503a21;border-color:#ffe2a0;box-shadow:inset 0 2px #fff2b0,0 5px 0 #805b2e,0 8px 15px #12312666;margin-left:0}.dock-button.upgrade-button small{color:#73512b}.dock-button.campaign-button{background:linear-gradient(#b87448,#7b4930);border-color:#e3ac6c;color:#fff1cf;box-shadow:inset 0 2px #e8bb7c88,0 5px 0 #503b27,0 8px 15px #12312666}.dock-button.campaign-button small{color:#efd2a6}.resume-button{border-color:#f8dd96}.xp-bar{padding:0;gap:8px;align-self:center}.xp-bar strong{font-size:13px}.xp-bar small{font-size:12px}.shield-icon svg{width:28px;height:34px;fill:#294e35;stroke:#e9c676;stroke-width:1.5}
.map-controls{right:var(--shell-safe-r);bottom:104px;gap:6px}.map-controls button{font-size:25px;font-weight:800}
.building-selected .bottom-hud{transform:translateY(150%);opacity:0;pointer-events:none}.building-selected .bottom-hud>*{pointer-events:none}.building-panel{left:50%;right:auto;top:auto;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(820px,calc(100vw - 36px));max-height:220px;min-height:174px;overflow:visible;display:grid;grid-template-columns:150px minmax(0,1fr) 180px;align-items:center;gap:18px;padding:16px 25px 16px 10px;border:3px solid #b98d4e;border-radius:15px;background:linear-gradient(100deg,#423728f5,#2d4433fa 50%,#2c3e2ff8);box-shadow:inset 0 1px #edcf864f,0 6px 0 #263825,0 16px 45px #10261980;color:#f8edcd;animation:selection-rise .18s ease-out}.building-portrait{width:150px;height:148px;margin:0;background-size:400% 200%;filter:drop-shadow(0 6px 3px #14251b66)}.building-copy{min-width:0;max-height:174px;overflow:auto;padding-right:8px;scrollbar-width:thin;scrollbar-color:#b4975c #263b2d}.building-panel .overline{font-size:10px;color:#dbb76f;letter-spacing:1.5px;margin-bottom:6px}.building-panel h2{font:800 21px/1.2 'Nunito Sans',sans-serif;color:#fff3c9;margin:0 0 6px}.building-panel p{font-size:13px;line-height:1.5;color:#c1cdb0;margin-bottom:8px}.building-panel .mini-ledger{font-size:12px;border-color:#a9b47a44;padding:6px 0;color:#d5d8b6;margin:0}.building-panel .mini-ledger b{color:#f2ce77}.building-actions{gap:8px;padding:0}.building-actions button{min-height:44px;font-size:13px;padding:9px}.building-actions .quiet-button{font-size:12px;border-color:#98a37380;background:#456449}.panel-close,.dialog-close{height:44px;width:44px;min-height:44px;border:2px solid #d7b57b;border-radius:11px;background:linear-gradient(#b8704a,#824a34);color:#fff1d0;box-shadow:inset 0 1px #e8ba8180,0 3px 0 #563c2a;font-size:28px;display:grid;place-items:center;padding:0}.panel-close{right:-12px;top:-16px}.placement-hint{bottom:90px;font-size:14px;border-width:2px}.placement-hint button{min-height:44px}
.game-dialog{width:min(1160px,calc(100dvw - 32px));height:auto;max-height:calc(100dvh - 30px);padding:24px;border:4px solid #9d7442;border-radius:17px;background:linear-gradient(130deg,#f0dfb9,#ddc390);box-shadow:inset 0 0 0 2px #ffe8ac,0 7px 0 #433425,0 22px 70px #112b2499;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#92723f #dac28c}.game-dialog[open]{animation:panel-arrive .18s ease-out}.game-dialog::backdrop{background:#0d2b24a6;backdrop-filter:blur(2px)}.game-dialog>.overline{font-size:11px;margin-bottom:6px;letter-spacing:1.4px}.game-dialog h2{font:800 26px/1.2 'Nunito Sans',sans-serif;padding-right:50px;margin-bottom:12px}.dialog-close{right:12px;top:12px;z-index:5}.small-dialog{width:min(600px,calc(100dvw - 32px))}.dialog-intro{font-size:14px;line-height:1.45;margin-bottom:12px}.project-filters{margin:12px 0;gap:9px}.project-filters input,.project-filters select{min-height:44px;font-size:14px;padding:9px;border-color:#b39158;box-shadow:inset 0 2px 3px #77533119}.projects-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.project-card{padding:14px;background:linear-gradient(#f8e9c7,#e9d5a7);border:1px solid #b59660;box-shadow:inset 0 1px #fff4d3,0 3px 0 #9f845c3b;border-radius:10px;display:flex;flex-direction:column}.project-card h3{font-size:16px;line-height:1.35;min-height:0;margin-bottom:7px}.project-card .overline{font-size:10px;letter-spacing:.5px}.project-card p{font-size:13px;line-height:1.4;flex:1}.project-card small{font-size:12px;margin:0 0 10px}.project-card button{min-height:44px;font-size:14px;border:1px solid #778e57;background:linear-gradient(#55794b,#365c3e);box-shadow:0 3px 0 #354832;align-self:stretch}.project-card.locked{opacity:.7}.growth-stages{grid-template-columns:repeat(3,minmax(0,1fr));margin:15px 0}.growth-stage{padding:14px}.growth-stage p,.inspect-row p,.inspect-row button,.scope-note,.teacher-details,.subtle{font-size:13px}.inspect-row button{min-height:44px}.game-dialog .evidence-table{font-size:13px}
.activity-layer{overflow:hidden;backdrop-filter:blur(2px);background:#182b24b0;animation:workshop-enter .2s ease-out}.scene-shell{height:100%;height:100dvh;min-height:0;display:grid;grid-template-rows:58px 42px minmax(0,1fr);background:radial-gradient(ellipse at 35% 30%,#80623e,#3e3829 80%);border:3px solid #a7814b;box-shadow:inset 0 0 0 2px #d4b47466;overflow:hidden}.scene-shell.parchment{background:#6f5135 url('assets/parchment.webp') center/cover}.scene-shell.forge{background:radial-gradient(at 20% 70%,#95502e,#3a3b2d 70%)}.scene-shell.farm{background:radial-gradient(at 40% 10%,#6b8852,#344e36)}.scene-shell.bridge,.scene-shell.ironbridge,.scene-shell.dockyard{background:radial-gradient(at 30% 60%,#507b72,#2a4d43)}.scene-header{gap:14px;padding:7px 15px;background:linear-gradient(#4e6240,#2f4833);border-bottom:2px solid #b59052;box-shadow:0 3px 10px #1b271a55;min-width:0}.scene-header>div{min-width:0}.scene-header h1{font:800 20px/1.2 'Nunito Sans',sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;color:#fff0c3}.scene-header .overline{display:block;font-size:10px;line-height:1.1;letter-spacing:1px;color:#d3bd80;margin:0 0 4px}.back-button,.book-button{min-height:42px;font-size:13px;padding:8px 14px;border:1px solid #bda16b;border-radius:8px;box-shadow:inset 0 1px #d4d0a43d,0 3px 0 #1f3525}.book-button{background:linear-gradient(#b08a45,#826233)}.scene-progress{height:42px;padding:5px 13px;gap:7px;flex-wrap:nowrap;overflow:auto;justify-content:flex-start;border:0;background:#203e30b3;scrollbar-width:none}.scene-progress>span{flex-shrink:0;max-width:260px;font-size:12px;padding:6px 10px;border-color:#8a9b6455;line-height:1.3}.scene-progress .current{background:#6d824b;border-color:#dfcd83}.scene-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:14px;width:100%;height:100%;min-height:0;max-width:1420px;margin:0 auto;padding:14px;overflow:hidden}.work-stage{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bca06b #3b4a3566;padding:0 8px 16px 0}.work-order{padding:18px;border:1px solid #d2b575;border-radius:10px;background:linear-gradient(125deg,#f7e9c9,#e8d3a5);box-shadow:0 4px 0 #302d2244}.work-order .overline{font-size:10px;letter-spacing:1px;margin-bottom:7px}.work-order h2{font:800 18px/1.45 'Nunito Sans',sans-serif;margin-bottom:8px}.work-order p{font-size:15px;line-height:1.6}.work-order p:last-child{margin-bottom:0}.work-ledger{display:flex;flex-direction:column;position:static;top:auto;height:100%;min-height:0;max-height:none;overflow:auto;border:2px solid #b69b60;border-radius:10px;padding:17px;background:linear-gradient(#f3dfae,#d8bd82);box-shadow:0 4px 0 #302d2244}.work-ledger>.overline{font-size:10px;letter-spacing:1px;margin-bottom:7px}.work-ledger h3{font:800 18px/1.3 'Nunito Sans',sans-serif;margin-bottom:10px}.work-ledger p{font-size:14px;line-height:1.5}.work-ledger-stamp{display:block;font-size:26px;margin:4px 0 14px}.work-ledger-stamp small{font-size:12px}.scene-feedback{padding-top:10px;min-height:0;font-size:14px}.work-ledger [data-submit]{margin-top:auto;min-height:48px;font-size:14px;flex-shrink:0}.work-ledger>.subtle{font-size:12px;margin:10px 0 0}.hint-content{font-size:14px}.interaction-surface{margin-top:14px}.source-document{font-size:17px;line-height:1.75}.parchment .work-stage{min-height:0;padding:12px 18px 20px;background:#ecd6a8 url('assets/parchment.webp') center/cover;border-radius:8px}.parchment .work-order{padding:10px 12px;background:#efddb785}.parchment .interaction-surface{margin:0}.parchment .work-ledger{background:linear-gradient(#f3dfae,#d8bd82)}.mark-document{font-size:19px;line-height:2.1;padding:14px 6px}.mark-document button{min-height:44px}.bridge-stage,.machine-stage,.farm-stage{height:190px;margin:0 0 12px}.bridge-stage svg{height:180px}.forge-stage{height:200px;margin:0 0 12px}.work-diagram{margin:12px 0;max-height:360px}.evidence-board{margin:12px 0;padding:12px}.evidence-board table{font-size:14px}.apparatus-fields{gap:12px}.apparatus-fields legend,.item-options button,.connection-targets button{font-size:14px}.item-options button,.connection-targets button,.diagram-tools button,.audio-player button{min-height:44px}.apparatus-fields fieldset{padding:12px}.work-stage .diagram-tools{font-size:13px}.completed-work{grid-row:2/-1;place-self:center;width:min(620px,90vw);max-height:calc(100dvh - 90px);overflow:auto}.scene-shell:has(.completed-work){grid-template-rows:58px minmax(0,1fr)}.scene-shell:has(.completed-work)>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:8px 20px;background:#36543a;color:#f3dfaa}.scene-shell:has(.completed-work)>header h1{font:800 19px 'Nunito Sans',sans-serif;margin:0}.scene-shell:has(.completed-work)>header .overline{display:none}.scene-shell:has(.completed-work)>header button{min-height:44px;border-radius:8px;background:#d4b577;color:#3c472d;padding:8px 14px}
#toast{bottom:94px;font-size:14px}.save-notice{top:80px}.orientation-hint{display:none}.scene-transition{background:radial-gradient(ellipse,#3c6441,#203b2d);transition:opacity .14s}.orientation-hint p{font-size:16px}.orientation-hint .gold-button{max-width:230px}.rotate-phone{width:80px;height:48px;border:3px solid #edcc83;border-radius:10px;display:grid;place-items:center;transform:rotate(-90deg);animation:rotate-device 1.8s ease-in-out infinite}.rotate-phone svg{width:28px;height:28px;stroke:#edcc83;stroke-width:1.5;fill:none}
@keyframes panel-arrive{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}@keyframes selection-rise{from{opacity:0;translate:0 16px}to{opacity:1;translate:0 0}}@keyframes workshop-enter{from{opacity:0;transform:scale(.985)}to{opacity:1;transform:scale(1)}}@keyframes rotate-device{0%,20%{transform:rotate(-90deg)}65%,100%{transform:rotate(0)}}
@media(max-width:1100px){.village-brand{min-width:178px}.village-brand strong{font-size:11px}.village-brand small{font-size:9px}.top-hud{grid-template-columns:auto minmax(0,350px) auto;gap:9px}.resource-bar{gap:5px}.resource-icon{width:31px;height:36px}.resource-bar b{font-size:15px}.resource-bar>div{padding-right:5px}.hud-actions{gap:4px}.xp-bar{display:none}.dock-button{padding:8px 14px}.projects-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:600px) and (orientation:landscape){.top-hud{top:max(7px,env(safe-area-inset-top));gap:8px;grid-template-columns:auto minmax(0,340px) auto}.village-brand{height:46px;min-width:68px;padding:2px 5px;gap:5px}.brand-copy{display:none}.crest,.crest svg{width:27px;height:34px}.level-medallion{height:27px;width:27px;font-size:14px}.resource-bar{gap:4px;height:44px}.resource-bar>div{height:44px;border-width:1px;padding:2px 5px 2px 0;gap:0;border-radius:7px}.resource-icon{width:30px;height:34px}.resource-bar b{font-size:14px}.resource-bar small{display:none}.hud-actions{gap:4px}.round-button{width:44px;height:44px;min-height:44px;padding:10px;border-width:1px;border-radius:8px}.round-button svg{height:21px;width:21px}.chapter-card{top:62px;width:155px}.chapter-count{font-size:11px;max-width:145px}.bottom-hud{bottom:max(9px,env(safe-area-inset-bottom));gap:8px;align-items:end}.hud-left,.hud-right{gap:7px}.dock-button{height:52px;min-width:76px;gap:7px;padding:6px 12px;border-radius:9px;font-size:14px;border-width:1px;box-shadow:inset 0 1px #bfc59466,0 3px 0 #223c29,0 5px 10px #12312666}.dock-button svg{height:29px;width:26px}.dock-button small{display:none}.xp-bar{display:none}.dock-button.upgrade-button,.dock-button.campaign-button{box-shadow:inset 0 1px #fff2b066,0 3px 0 #58452c,0 5px 10px #12312666}.map-controls{top:65px;right:var(--shell-safe-r);bottom:auto;flex-direction:row;gap:5px}.map-controls button{width:44px;height:44px;font-size:22px;border-width:1px}.building-panel{bottom:max(10px,env(safe-area-inset-bottom));width:min(740px,calc(100vw - 36px));max-height:174px;min-height:148px;grid-template-columns:118px minmax(0,1fr) 150px;gap:12px;padding:10px 20px 10px 8px;border-width:2px;border-radius:12px}.building-portrait{width:118px;height:126px}.building-copy{max-height:136px}.building-panel h2{font-size:18px}.building-panel p{font-size:12px;line-height:1.4}.building-panel .overline{font-size:9px;margin-bottom:4px}.building-actions{gap:6px}.building-actions button{min-height:40px;padding:7px;font-size:12px}.building-panel .mini-ledger{font-size:11px;padding:4px 0}.panel-close{width:40px;height:40px;min-height:40px;right:-9px;top:-15px}.game-dialog{width:calc(100dvw - 28px);max-height:calc(100dvh - 20px);padding:16px 20px;border-width:3px;border-radius:12px}.game-dialog h2{font-size:22px;margin-bottom:8px}.game-dialog>.overline{font-size:10px}.dialog-intro{font-size:13px;max-width:calc(100% - 20px);margin-bottom:8px}.dialog-close{top:8px;right:8px}.project-filters{margin:10px 0}.projects-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.project-card{padding:12px}.project-card h3{font-size:15px}.growth-stages{grid-template-columns:repeat(3,minmax(0,1fr))}.growth-stage{padding:10px}.scene-shell{grid-template-rows:50px 36px minmax(0,1fr);border-width:2px}.scene-header{padding:4px 10px;gap:9px}.scene-header h1{font-size:17px}.scene-header .overline{display:none}.back-button,.book-button{font-size:12px;min-height:40px;padding:7px 11px}.scene-progress{height:36px;padding:4px 9px;gap:6px}.scene-progress>span{font-size:11px;padding:5px 8px;max-width:210px}.scene-layout{grid-template-columns:minmax(0,1fr) 196px;gap:10px;padding:10px}.work-stage{padding:0 5px 12px 0}.work-order{padding:13px}.work-order h2{font-size:16px;line-height:1.4}.work-order p{font-size:14px;line-height:1.5}.work-ledger{padding:12px;border-width:1px}.work-ledger>.overline{font-size:9px}.work-ledger h3{font-size:16px;line-height:1.3;margin-bottom:6px}.work-ledger>p:not(.scene-feedback):not(.subtle){display:block;font-size:12px;line-height:1.45;margin-bottom:8px}.work-ledger-stamp{font-size:22px;margin:0 0 8px}.work-ledger-stamp small{font-size:11px}.work-ledger .scene-feedback{font-size:13px;padding-top:8px;margin-bottom:10px}.work-ledger>.subtle{display:none}.work-ledger [data-submit]{min-height:44px;font-size:13px;padding:9px}.hint-content{font-size:13px;padding:10px}.parchment .work-stage{padding:9px 12px 16px}.parchment .work-order{padding:7px 8px}.parchment .interaction-surface{margin:0}.bridge-stage,.machine-stage,.farm-stage{height:140px;margin-bottom:10px}.bridge-stage svg{height:130px}.forge-stage{height:155px;margin-bottom:10px}.bridge-deck{top:103px}.potion-art{height:82px}.forge-inventory .potion-art{height:86px}.forge-inventory{gap:6px}.forge-stock{padding:12px}.forge-stock .subtle{font-size:12px}.work-diagram{max-height:240px}.mark-document{font-size:17px;line-height:2;padding:8px 2px}.evidence-board{padding:9px}.evidence-board td,.evidence-board th{padding:6px}.signals-stage{padding:10px;min-height:80px}.placement-hint{bottom:74px;font-size:13px;max-width:calc(100vw - 40px);white-space:normal}.save-notice{top:58px;font-size:13px;padding:10px 15px}#toast{bottom:76px;font-size:13px;padding:10px 16px}.network-columns{grid-template-columns:1fr 1fr;gap:10px}.neighbor-list{grid-template-columns:repeat(2,minmax(0,1fr))}.network-intro{gap:10px}.network-intro .clan-banner{width:68px;height:68px}.network-intro h3{font-size:21px}.network-columns>section{padding:14px}.deployment-lanes{grid-template-columns:repeat(3,minmax(0,1fr))}.deployment-lanes>section{display:block;padding:10px}.deployment-road{height:95px}.deployment-lanes .campaign-setup{display:grid;margin-top:10px}.deployment-lanes small{font-size:12px}.visited-map{height:55vh;min-height:180px}.scene-shell:has(.completed-work){grid-template-rows:50px minmax(0,1fr)}}
@media(max-width:700px) and (orientation:landscape){.top-hud{gap:6px}.village-brand{min-width:58px;gap:2px}.crest,.crest svg{width:22px}.resource-bar{gap:3px}.resource-icon{width:25px;height:30px}.resource-bar>div{padding-right:3px}.resource-bar b{font-size:13px}.hud-actions{gap:3px}.round-button{padding:10px}.dock-button{min-width:66px;padding:6px 9px;font-size:13px;gap:5px}.dock-button svg{width:23px}.hud-left,.hud-right{gap:6px}.chapter-card{width:135px}.scene-layout{grid-template-columns:minmax(0,1fr) 178px;gap:8px;padding:8px}.scene-header h1{font-size:15px}.scene-header .back-button,.scene-header .book-button{font-size:11px;padding:6px 9px}.work-ledger{padding:10px}.work-ledger h3{font-size:15px}.work-order{padding:11px}.apparatus-fields{grid-template-columns:1fr 1fr;gap:8px}.apparatus-fields fieldset{padding:9px}.item-options button,.connection-targets button{font-size:13px}.building-panel{grid-template-columns:94px minmax(0,1fr) 134px;gap:9px}.building-portrait{width:94px;height:112px}.building-actions button{font-size:11px}.building-panel h2{font-size:16px}.building-panel p{font-size:12px}.dialog-intro{font-size:13px}.project-filters select{width:160px;max-width:40%}.building-copy{padding-right:3px}}
@media(orientation:portrait) and (max-width:900px) and (hover:none) and (pointer:coarse){.orientation-hint{position:fixed;inset:0;z-index:180;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:35px;background:radial-gradient(ellipse,#426d46,#203d2d);color:#f6e1ad;text-align:center}.orientation-hint h2{font:800 25px 'Nunito Sans',sans-serif;margin:10px 0 0}.orientation-hint p{color:#c1d1af;margin:0}.orientation-hint .gold-button{width:230px}}
@media(prefers-reduced-motion:reduce){.game-dialog[open],.building-panel,.activity-layer,.rotate-phone{animation:none!important}.bottom-hud{transition:none}}
/* Work menus share the physical workshop instead of a separate blank page. */
#projectsDialog[data-station=forge]{color:#f5e5bc;background:linear-gradient(#172b2570,#192e25ab),url('assets/workshop-interior.webp') center/cover;border-color:#bd914f}
#projectsDialog[data-station=forge]>.overline{color:#e4c780}#projectsDialog[data-station=forge] h2{color:#fff0ca;text-shadow:0 2px 3px #211c16}#projectsDialog[data-station=forge] .dialog-intro{color:#e5d2ab}
#projectsDialog[data-station=forge] .forge-stock{background:#20382bc7;border:1px solid #c29d5f;box-shadow:inset 0 1px #f4dd9c33,0 4px 0 #201d1780}
#projectsDialog[data-station=forge] .forge-inventory button{background:linear-gradient(#e5be6921,#1b302644);border-color:#bba26866;border-bottom:4px solid #9d7545;min-height:110px;color:#fff0c3}
#projectsDialog[data-station=forge] .forge-inventory button:hover{background:#d7ae5d44;border-color:#efcb79}#projectsDialog[data-station=forge] .empty-work{color:#ead6a4;border-color:#c9a461;background:#273c2ce0}
.scene-shell.forge,.scene-shell.workshop,.scene-shell.dockyard{background:linear-gradient(#253b2d35,#20352b77),url('assets/workshop-interior.webp') center/cover}
.scene-shell.workshop .work-order,.scene-shell.forge .work-order,.scene-shell.dockyard .work-order{background:linear-gradient(125deg,#f6e7c5eb,#e7cea0ed)}
@media(max-height:600px) and (orientation:landscape){#buildingDescription{display:none}.forge-inventory button{min-height:95px}.scene-shell.workshop .work-order,.scene-shell.forge .work-order,.scene-shell.dockyard .work-order{box-shadow:0 3px 0 #352a1c66}}
/* Chunky game lettering, with a separate readable typeface for long content. */
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/barlow-semicondensed-500.woff') format('woff')}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/barlow-semicondensed-700.woff') format('woff')}
:root{--game-display:'Barlow Semi Condensed','Nunito Sans',sans-serif;--game-reading:'Barlow Semi Condensed','Nunito Sans',system-ui,sans-serif}
.village-brand strong,.level-medallion,.resource-bar b,.dock-button>span,.building-panel h2,.game-dialog h2,.scene-header h1,.work-ledger h3,.loading-screen h1,.orientation-hint h2{font-family:var(--game-display);font-weight:700;font-synthesis:none;letter-spacing:.1px}
.resource-bar b{font-size:20px;line-height:1.15;text-shadow:0 2px 0 #152a20}.level-medallion{font-size:19px}.dock-button>span{font-size:17px;text-shadow:0 2px 0 #173c2a}.dock-button small{font-family:var(--game-reading);font-weight:700;font-size:11px;letter-spacing:0;text-shadow:none}.dock-button.upgrade-button>span{text-shadow:0 1px #fff0b1}.dock-button.campaign-button>span{text-shadow:0 2px #563724}.building-panel h2{font-size:23px;text-shadow:0 2px #1c2d22}.game-dialog h2{font-size:28px;line-height:1.3;letter-spacing:0}.scene-header h1{font-size:21px;text-shadow:0 2px 0 #1e3528}.work-ledger h3{font-size:18px;line-height:1.4;letter-spacing:0}.gold-button{font-family:var(--game-display);font-weight:700;letter-spacing:.1px;font-synthesis:none}.project-card button,.building-actions .quiet-button,.back-button,.book-button{font-family:var(--game-display);font-weight:700;font-synthesis:none}.project-card h3{font-family:var(--game-display);font-weight:700;font-size:17px;line-height:1.5}.project-card .overline,.chapter-count,.scene-progress>span{font-family:var(--game-reading);font-weight:800;letter-spacing:.2px}.overline{letter-spacing:1.1px}.work-order h2{font-family:var(--game-reading);font-weight:800;letter-spacing:0;font-size:18px}.work-order p,.source-material,.source-document,.item-options button,.connection-targets button{font-family:var(--game-reading)}.parchment .source-document,.parchment .mark-document,.parchment .formatted-document{font-family:Georgia,'Times New Roman',serif;font-size:19px;line-height:1.9;color:#4c3827}.parchment .mark-document button{font-family:inherit}.evidence-board>summary{font:800 13px var(--game-reading);cursor:pointer;color:#6e5937;min-height:32px;line-height:32px}.evidence-board[open]>summary{margin-bottom:8px}
@media(max-height:600px) and (orientation:landscape){.resource-bar b{font-size:17px}.level-medallion{font-size:16px}.dock-button>span{font-size:15px;line-height:1.2}.game-dialog h2{font-size:23px}.building-panel h2{font-size:20px}.scene-header h1{font-size:18px}.work-ledger h3{font-size:16px}.work-order h2{font-size:16px}.project-card h3{font-size:16px}.gold-button{font-size:14px}.back-button,.book-button{font-size:12px}.parchment .source-document,.parchment .mark-document{font-size:18px}}
@media(max-width:700px) and (orientation:landscape){.dock-button>span{font-size:14px}.scene-header h1{font-size:16px}.resource-bar b{font-size:15px}.building-panel h2{font-size:18px}.work-ledger h3{font-size:15px}.back-button,.book-button{font-size:11px}}
.order-brief>summary{font:700 15px var(--game-display);cursor:pointer;min-height:40px;line-height:40px;color:#69502f}.order-brief[open]>summary{margin-bottom:8px}.order-brief p{margin-bottom:5px}.order-brief h2{font-size:16px}.scene-shell .science-workbench{margin-top:10px}.scene-shell .science-workbench h3{font:700 17px var(--game-display)}.scene-shell .science-workbench .bench-title{padding:10px 13px 4px}.scene-shell .science-workbench .bench-note,.scene-shell .science-workbench .observation-note{font-size:13px;line-height:1.55}.scene-shell .science-workbench .bench-values>span{font-size:12px}.scene-shell .science-workbench label{font-size:14px}.scene-shell .science-workbench button{font-family:var(--game-display);font-weight:700;min-height:44px}
/* Keep the game action visible while notes and the workbench scroll separately. */
.work-ledger{margin:0;overflow:hidden}.ledger-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:4px}.work-ledger .overline{font-size:10px;letter-spacing:1px;margin-bottom:7px}.work-ledger [data-submit]{margin-top:10px;flex:0 0 auto;line-height:1.3}.ledger-scroll>.scene-feedback{margin-bottom:0}.hands-on-order>.overline{display:none}
@media(max-height:600px) and (orientation:landscape){.work-ledger{margin:0;padding:10px}.work-ledger .overline{font-size:9px}.ledger-scroll>p{font-size:12px;line-height:1.45;margin-bottom:8px}.work-ledger [data-submit]{font-size:12px;min-height:44px;padding:8px}.order-brief>summary{font-size:13px;line-height:30px;min-height:30px}.scene-shell .science-workbench .bench-plaque{display:none}.scene-shell .science-workbench .bench-title{padding:7px 11px 0}.scene-shell .science-workbench h3{font-size:14px}.work-order.hands-on-order{padding:10px}.hands-on-order .science-workbench{margin-top:5px}}
/* Equipment shelf: objects first, short labels, quiet reading type. */
body{font-family:var(--game-reading);font-weight:500}.game-dialog h2{font-size:27px;font-weight:700;letter-spacing:.2px}.scene-header h1{font-size:22px}.dock-button>span{text-shadow:0 1px #1c3527;font-size:18px}.work-order h2{font-weight:700}.source-document,.work-order p{font-size:17px;font-weight:500}.overline{font-weight:700;letter-spacing:.8px}.resource-bar b{font-size:21px}
#projectsDialog{background:linear-gradient(#182e27e6,#1c2c25ed),url('assets/workshop-interior.webp') center/cover;color:#e7ddbd;border:3px solid #a6844f;padding:22px;box-shadow:inset 0 0 0 1px #e8c78c66,0 8px 0 #1c2b21,0 20px 60px #10251fb3}
#projectsDialog>.overline{color:#c5ae7b;font-size:12px;letter-spacing:1.5px}#projectsDialog h2{color:#f8e9c7;font-size:28px;text-shadow:0 2px #19251d}#projectsDialog .dialog-intro{color:#b9c6af;font-size:16px;line-height:1.4;max-width:85%;margin-bottom:14px}#projectsDialog .project-filters input,#projectsDialog .project-filters select{color:#e7dfc3;border:1px solid #89956c;background:#20382de6;font:500 16px var(--game-reading);box-shadow:inset 0 2px 3px #0f211b66}#projectsDialog .project-filters input::placeholder{color:#a4b39a}
#projectsDialog .project-card{display:grid;grid-template-columns:90px minmax(0,1fr);grid-template-rows:1fr auto;gap:7px 14px;padding:14px;border:1px solid #8f9165;border-radius:9px;background:linear-gradient(120deg,#3d5135ec,#2b402eeb);box-shadow:inset 0 1px #c0c48c33,0 4px 0 #182b20b3;color:#e6dfc3;min-height:160px;align-items:center}#projectsDialog .project-card .project-item{grid-row:1/-1}.project-item{display:block;min-width:0;width:90px;height:100px;filter:drop-shadow(0 6px 3px #13251ba0);background-repeat:no-repeat}.project-item.item-tools{background-image:url('assets/workshop-tools.webp');background-size:400% 200%;background-position:calc(var(--item-x)*100%/3) calc(var(--item-y)*100%)}.project-item.item-resources{background-image:url('assets/resources-sheet.webp');background-size:300% 200%;background-position:calc(var(--item-x)*50%) calc(var(--item-y)*100%)}.project-item.item-potions{background-image:url('assets/potion-sheet.webp');background-size:300% 200%;background-position:calc(var(--item-x)*50%) calc(var(--item-y)*100%)}.project-copy{min-width:0}#projectsDialog .project-card .overline{color:#c3bc8c;font-size:12px;letter-spacing:.4px;margin:0 0 5px;line-height:1.3}#projectsDialog .project-card h3{font:700 20px/1.2 var(--game-display);color:#f9ebc8;text-shadow:0 1px #1b3020;margin:0 0 5px}#projectsDialog .project-card p{font:500 14px/1.4 var(--game-reading);color:#b7c5a6;margin:0 0 6px}#projectsDialog .project-card small{color:#c8ccae;font:500 13px/1.3 var(--game-reading);margin:0}#projectsDialog .project-card button{grid-column:2;align-self:end;justify-self:start;min-width:100px;width:auto;min-height:42px;padding:8px 19px;color:#3c3621;background:linear-gradient(#ead19a,#c1a268);border:1px solid #edd6a1;box-shadow:0 3px 0 #786242;font:700 16px var(--game-reading);text-shadow:none}#projectsDialog .project-card.completed{background:linear-gradient(120deg,#4e6241,#354b32);border-color:#bcc68b}#projectsDialog .empty-work{color:#d2ceaa;border-color:#7a8961;background:#1c3024bd}
@media(max-height:600px) and (orientation:landscape){#projectsDialog{padding:16px}#projectsDialog h2{font-size:25px}#projectsDialog .dialog-intro{font-size:15px;margin-bottom:8px}#projectsDialog .project-card{grid-template-columns:72px minmax(0,1fr);gap:6px 10px;padding:12px;min-height:140px}.project-item{width:72px;height:86px}#projectsDialog .project-card h3{font-size:18px}.dock-button>span{font-size:16px}.resource-bar b{font-size:18px}.scene-header h1{font-size:19px}}
/* Dedicated production games use the full landscape work area. */
.scene-shell.physical-production{grid-template-rows:50px minmax(0,1fr)}.physical-production>.scene-progress{display:none}.physical-production .scene-layout{display:flex;flex-direction:column;gap:8px;width:100%;max-width:none;padding:8px}.physical-production .work-stage{flex:1;min-height:0;width:100%;overflow:auto;padding:0}.physical-production .interaction-surface{margin:0;min-height:100%;width:100%}.physical-production .work-ledger{display:flex;flex-direction:row;align-items:center;gap:12px;flex:0 0 auto;min-height:52px;height:auto;padding:5px 10px;width:100%;border-width:1px;overflow:hidden;background:linear-gradient(#314a34,#253d2d);color:#e6dbb5}.physical-production .ledger-scroll{display:flex;align-items:center;overflow:hidden;min-width:0;padding:0;align-self:center}.physical-production .ledger-scroll>.overline,.physical-production .ledger-scroll>h3,.physical-production .ledger-scroll>p:not(.scene-feedback),.physical-production .work-ledger-stamp,.physical-production .work-ledger>.subtle{display:none}.physical-production .scene-feedback{border:0;padding:0!important;margin:0!important;color:#e2dab7;font:600 13.5px/1.25 var(--game-reading);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.physical-production .work-ledger [data-submit]{margin:0;flex:0 0 auto;width:auto;min-width:168px;min-height:42px;padding:8px 14px;max-width:48%;font:700 15px var(--game-reading)}.physical-production .hint-content{position:fixed;top:65px;left:25px;right:25px;max-height:65dvh;overflow:auto;z-index:20;box-shadow:0 10px 30px #14291dcf;padding:20px;font:500 16px/1.5 var(--game-reading)}.physical-production .work-stage .production-surface{min-height:100%;margin:0}.physical-production.production-bridge .bridge-production{max-width:100%;margin:auto}.physical-production .ph-production{font-family:var(--game-reading)}.physical-production .ph-title,.physical-production .ph-progress{font-family:var(--game-display)}
@media(max-width:700px) and (orientation:landscape){.physical-production .work-ledger [data-submit]{font-size:14px;min-width:150px}.physical-production .scene-feedback{font-size:13px}.scene-shell.physical-production{grid-template-rows:46px minmax(0,1fr)}.physical-production .scene-layout{padding:6px;gap:6px}}
.npc-guide{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-width:0;min-height:0;max-height:100%;gap:7px;padding:4px 0}.npc-speech{position:relative;background:#f2e1bc;color:#493a28;border:2px solid #c5a665;border-radius:13px;padding:12px 10px 10px;box-shadow:0 3px 0 #75583666,0 6px 16px #15291f55;width:100%;max-height:52%;overflow:auto;scrollbar-width:thin}.npc-speech:after{content:'';position:absolute;bottom:-9px;left:55%;width:13px;height:13px;background:#f2e1bc;border-right:2px solid #c5a665;border-bottom:2px solid #c5a665;transform:rotate(45deg)}.npc-speech strong{display:block;font:700 15px var(--game-display);padding-right:22px;margin-bottom:5px}.npc-speech p{font:500 15px/1.4 var(--game-reading);margin:0}.npc-speech-close{position:absolute;top:3px;right:3px;min-height:28px;width:28px;border:0;background:transparent;color:#806444;font-size:23px;padding:0}.npc-character{display:flex;flex-direction:column;align-items:center;background:none;border:0;padding:0;min-height:44px;min-width:44px;max-height:48%;color:#e9d8ac}.npc-character img{display:block;max-width:100%;height:calc(100% - 24px);min-height:65px;object-fit:contain;transform:scaleX(-1);filter:drop-shadow(0 5px 6px #14281da0)}.npc-character span{display:block;font:700 13px var(--game-reading);padding:3px 6px;background:#294630e0;border:1px solid #c0a361;border-radius:6px;white-space:nowrap}.production-ph .scene-layout{display:grid;grid-template-columns:minmax(0,1fr) 160px;grid-template-rows:minmax(0,1fr) 50px;gap:8px}.production-ph .work-stage{grid-column:1;grid-row:1;min-width:0}.production-ph .npc-guide{grid-column:2;grid-row:1}.production-ph .work-ledger{grid-column:1/-1;grid-row:2}.production-rework-note{border:1px solid #bd9b5f;background:#c4a666;color:#263b2b;padding:10px 14px;margin-bottom:8px;font:600 15px/1.45 var(--game-reading)}.hint-close{display:block;margin:15px 0 0;min-height:44px;padding:8px 15px;color:#f3e4bf;background:#3d5e3e;border:1px solid #bea169;border-radius:7px;font:700 15px var(--game-reading)}
@media(max-width:700px) and (orientation:landscape){.production-ph .scene-layout{grid-template-columns:minmax(0,1fr) 120px;grid-template-rows:minmax(0,1fr) 50px;gap:6px}.npc-speech{padding:9px 7px}.npc-speech strong{font-size:13px}.npc-speech p{font-size:14px}.npc-character span{font-size:12px}.npc-character img{min-height:50px}}
.npc-character{height:48%;width:100%;flex-shrink:1}.npc-character img{width:100%;min-height:0;object-fit:contain}.physical-progress{display:block;color:#d5c590;font:600 12px/1.2 var(--game-reading);margin-top:2px}.physical-production .scene-header>div{display:flex;gap:12px;align-items:center;min-width:0}.physical-production .scene-header h1{min-width:0}.physical-production .scene-header .physical-progress{flex-shrink:0;white-space:nowrap}.physical-production .scene-header .overline{display:none}
@media(max-width:700px) and (orientation:landscape){.physical-production .scene-header>div{display:block}.physical-production .scene-header h1{font-size:16px}.physical-progress{font-size:11px}}
.npc-speech{padding-right:36px}.npc-speech-close{width:40px;height:40px;min-height:40px;top:0;right:0}.npc-speech strong{padding-right:0}@media(max-width:700px) and (orientation:landscape){.npc-speech{padding-right:31px}.npc-speech-close{width:36px;height:40px;min-height:40px;font-size:23px}}
.npc-speech{overflow:visible;display:flex;flex-direction:column;padding:10px;min-height:0}.npc-speech strong{flex-shrink:0;min-height:31px;padding-right:30px}.npc-speech p{min-height:0;overflow:auto;scrollbar-width:thin}.npc-speech-close{width:44px;height:44px;min-height:44px;font-size:24px}.npc-character img{object-fit:cover;object-position:50% 10%;border-radius:10px;filter:drop-shadow(0 4px 5px #13251e99)}@media(max-width:700px) and (orientation:landscape){.npc-speech{padding:9px}.npc-speech-close{width:44px;height:44px;min-height:44px}.npc-speech strong{font-size:13px;padding-right:24px}.npc-character img{object-position:50% 8%}}
.physical-production .ph-production .ph-zone-label,.physical-production .ph-production .ph-bottle-name,.physical-production .ph-production .ph-reading,.physical-production .ph-production .ph-top button,.physical-production .ph-production .ph-progress{font-size:12px;line-height:1.2;font-weight:700}.physical-production .ph-production .ph-status{font-size:12px;line-height:1.25;font-weight:500}.physical-production .ph-production .ph-area h3{font-size:11px;font-weight:700;line-height:1.3}.physical-production .ph-production .ph-display small,.physical-production .ph-production .ph-small-note{font-size:11px;line-height:1.2}.physical-production .ph-production .ph-top button{min-height:44px}.physical-production .ph-production .ph-title{font-size:14px;font-weight:700}.physical-production .ph-production button{font-synthesis:none}
@media(max-height:600px) and (orientation:landscape){.physical-production .packing-production{padding:8px}.physical-production .packing-production .pp-board{min-height:126px}.physical-production .packing-production .pp-stockpile{height:100px}.physical-production .packing-production .pp-control-bar{padding-top:6px}}
.npc-character img{object-position:50% 0%}
/* Outcome-specific generated environments; evidence remains editable above the art. */
.scene-shell[data-environment]{isolation:isolate;background:#26382a}.scene-art{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}.scene-art:after{content:'';position:absolute;inset:0;background:#14251d73}.scene-art>div{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background-repeat:no-repeat}.scene-art .atlas-room{width:max(100vw,100dvh);height:max(100vw,100dvh);background-size:200% 200%}.scene-art .single-room{width:100%;height:100%;background-size:cover;background-position:center}.scene-shell[data-environment]>.scene-header{background:#182d24ec}.scene-shell[data-environment] .work-stage{background:#efe2bdf5}.scene-shell[data-environment].physical-production .work-stage{background:transparent}.source-material .evidence-board{margin:12px 0;border:1px solid #a58b56;border-radius:7px;background:#fbf0d1;color:#293d30}.evidence-board>summary{padding:10px;font:700 16px var(--game-reading);cursor:pointer}.evidence-table-scroll{overflow-x:auto;max-width:100%;padding:0 10px 10px}.evidence-table-scroll table{border-collapse:collapse;width:100%;font:500 16px/1.45 var(--game-reading)}.evidence-table-scroll caption{text-align:left;font-weight:700;padding:5px}.evidence-table-scroll th,.evidence-table-scroll td{border:1px solid #c7b481;padding:8px;text-align:left;overflow-wrap:anywhere;min-width:70px}.evidence-table-scroll thead{background:#d6c392}.source-material .document-stack article{padding:12px;background:#fbf0d1;border:1px solid #c7b481;margin:10px 0;white-space:pre-wrap}.source-material .source-document{white-space:pre-wrap}.source-material [data-evidence][open]{display:block}
/* Explicit grid tracks also keep source material usable when preview hides the batch strip. */
.scene-shell[data-environment]{position:relative}.scene-shell[data-environment]>.scene-header{grid-row:1}.scene-shell[data-environment]>.scene-progress{grid-row:2}.scene-shell[data-environment]>.scene-layout{grid-row:3;min-height:0}.scene-shell[data-environment].physical-production>.scene-layout{grid-row:2}.focused-workshop .scene-shell[data-environment]:not(.physical-production){grid-template-rows:50px minmax(0,1fr)}.focused-workshop .scene-shell[data-environment]:not(.physical-production)>.scene-layout{grid-row:2}
@media(max-width:900px) and (orientation:landscape){.scene-shell[data-environment]:not(.physical-production) .scene-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 58px}.scene-shell[data-environment]:not(.physical-production) .work-ledger{height:58px;min-height:58px;display:flex;flex-direction:row;gap:12px;align-items:center;padding:6px 10px;background:#253f30;color:#f0e0b9}.scene-shell[data-environment]:not(.physical-production) .ledger-scroll{min-width:0;overflow:auto;padding:0;flex:1}.scene-shell[data-environment]:not(.physical-production) .ledger-scroll>.overline,.scene-shell[data-environment]:not(.physical-production) .ledger-scroll>h3,.scene-shell[data-environment]:not(.physical-production) .ledger-scroll>p:not(.scene-feedback),.scene-shell[data-environment]:not(.physical-production) .work-ledger-stamp,.scene-shell[data-environment]:not(.physical-production) .work-ledger>.subtle{display:none}.scene-shell[data-environment]:not(.physical-production) .scene-feedback{font:500 14px/1.3 var(--game-reading);color:#efe1bf;margin:0;border:0;padding:0}.scene-shell[data-environment]:not(.physical-production) .work-ledger [data-submit]{width:auto;max-width:48%;min-height:44px;flex-shrink:0;margin:0;padding:8px 14px}.scene-shell[data-environment]:not(.physical-production) .work-order{padding:12px}.scene-shell[data-environment]:not(.physical-production) .work-order h2{font-size:17px;line-height:1.3;margin:4px 0 10px}.scene-shell[data-environment]:not(.physical-production) .work-order>.overline{display:none}.scene-shell[data-environment]:not(.physical-production) .source-material>p{margin:8px 0}}
@media(max-width:900px) and (orientation:landscape){.scene-shell[data-environment] .source-document{margin:4px 0 8px;padding:6px 0;font:500 16px/1.4 var(--game-reading);background:transparent;border:0;box-shadow:none}.scene-shell[data-environment] .source-material .evidence-board{padding:0;margin:8px 0}.scene-shell[data-environment] .evidence-board>summary{padding:6px 10px;margin:0;font-size:16px}.scene-shell[data-environment] .evidence-table-scroll{padding:0 8px 8px}.scene-shell[data-environment] .evidence-table-scroll caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;padding:0}.scene-shell[data-environment] .evidence-table-scroll th,.scene-shell[data-environment] .evidence-table-scroll td{padding:5px 8px}}

/* Seal desk using generated assets/seal-desk-sheet.webp (cells 0-5). */
.seal-desk{display:flex;flex-direction:column;gap:10px;font-family:var(--game-reading)}
.seal-tray{position:sticky;top:0;z-index:3;display:flex;gap:8px;overflow-x:auto;padding:8px;background:linear-gradient(#5b4128f2,#3f2d1cf2);border:2px solid #b58b4e;border-radius:10px;box-shadow:0 4px 0 #1f160e66;scrollbar-width:thin}
.seal-pick{flex:0 0 auto;min-width:84px;min-height:84px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px 7px;color:#f6e7c0;background:#2d2217aa;border:1px solid #a98a55;border-radius:9px;font:700 13px/1.2 var(--game-reading);cursor:pointer}
.seal-pick.held,.seal-pick[aria-pressed=true]{background:#8a6a35;border-color:#ffe09a;box-shadow:0 0 14px #f1cc7288;transform:translateY(-3px)}
.seal-name{max-width:110px;text-align:center;overflow-wrap:anywhere}
.seal-art,.seal-mark{--seal-x:0;--seal-y:0;display:block;width:52px;height:52px;background-image:url('assets/seal-desk-sheet.webp');background-repeat:no-repeat;background-size:400% 200%;background-position:calc(var(--seal-x)*100%/3) calc(var(--seal-y)*100%);filter:drop-shadow(0 4px 3px #0007);position:relative;flex-shrink:0}
.seal-hint{margin:0;color:#e8dcb8;font-size:14px;line-height:1.4}
.seal-slips{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
.seal-slip{min-width:0}
.seal-paper{width:100%;min-height:96px;display:grid;grid-template-columns:minmax(0,1fr) 54px;grid-template-areas:'text mark' 'tag mark';gap:4px 10px;align-items:center;text-align:left;padding:12px 14px;color:#3d2d1b;background:#efddb7 url('assets/parchment.webp') center/cover;border:1px solid #bda06a;border-radius:7px;box-shadow:0 3px 0 #5e4a2c66;font:600 16px/1.45 var(--game-reading);cursor:pointer}
.seal-text{grid-area:text;overflow-wrap:anywhere}
.seal-mark{grid-area:mark;justify-self:center;width:48px;height:48px;transform:rotate(-8deg);animation:seal-press .22s ease-out}
.seal-mark[hidden]{display:none}
.seal-tag{grid-area:tag;font:700 13px var(--game-reading);color:#6b5430}
.seal-slip.stamped .seal-paper{border-color:#8f7236;box-shadow:0 3px 0 #5e4a2c88,inset 0 0 0 1px #f4dc9a}
.seal-paper:focus-visible,.seal-pick:focus-visible{outline:3px solid #f5ca68;outline-offset:2px}
@keyframes seal-press{from{transform:scale(1.5) rotate(-8deg);opacity:0}to{transform:scale(1) rotate(-8deg);opacity:1}}
@media(prefers-reduced-motion:reduce){.seal-mark{animation:none}}
@media(max-height:600px) and (orientation:landscape){.seal-pick{min-width:72px;min-height:72px}.seal-art{width:36px;height:36px}.seal-slips{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.seal-paper{min-height:80px;padding:8px 10px;font-size:15px}.seal-hint{font-size:13px}}

/* Mark desk: parchment quill-marking & archive dossier audit desk */
.mark-desk{display:flex;flex-direction:column;gap:10px;font-family:var(--game-reading)}
.mark-desk-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 12px;background:linear-gradient(#483420e8,#312316ee);border:2px solid #b58b4e;border-radius:10px;color:#f6e7c0}
.mark-desk-badge{font:700 14px var(--game-display);color:#ffe49c;letter-spacing:.4px}
.mark-desk-count{margin-left:auto;font:700 13px var(--game-reading);padding:3px 9px;border-radius:999px;background:#1e3528;border:1px solid #9bb177}
.mark-desk-clear{min-height:44px;padding:6px 12px;border-radius:8px;border:1px solid #b89860;background:#3a4b35;color:#f5e7be;font:700 13px var(--game-reading);cursor:pointer}
.mark-desk-clear:disabled{opacity:.45;cursor:default}
.mark-manuscript{display:flex;flex-wrap:wrap;gap:6px 5px;padding:14px 16px;background:#efddb7 url('assets/parchment.webp') center/cover;border:2px solid #bda06a;border-radius:10px;box-shadow:0 4px 0 #4d3c2355;line-height:1.9}
.mark-word{min-height:44px;padding:5px 9px;border-radius:6px;border:1px solid transparent;background:transparent;color:#3a2b1a;font:500 18px/1.4 Georgia,'Times New Roman',serif;cursor:pointer;transition:background .12s,border-color .12s}
.mark-word:hover{background:#d7ba7d44;border-color:#b2905266}
.mark-word.marked{background:#f3cf6866;border-color:#9e6a1d;box-shadow:inset 0 -3px 0 #9f4f22;color:#271a0e;font-weight:700}
.mark-dossier-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
.mark-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;min-height:92px;padding:12px 14px;border-radius:9px;border:2px solid #bda06a;background:#efddb7 url('assets/parchment.webp') center/cover;color:#382a1a;box-shadow:0 3px 0 #5b472b55;cursor:pointer;font:500 15px/1.45 var(--game-reading)}
.mark-card-source{font-size:13px;color:#5a462c;padding-bottom:5px;border-bottom:1px dashed #a88d58;width:100%}
.mark-card-claim{font-weight:600;color:#2c2113}
.mark-card-stamp{margin-top:auto;align-self:flex-end;font:700 12px var(--game-display);padding:3px 9px;border-radius:999px;border:1px solid #a88d58;background:#e4cfa0;color:#5a462c}
.mark-card.marked{border-color:#2c6e49;box-shadow:0 3px 0 #1f4c3388,inset 0 0 0 2px #78b789}
.mark-card.marked .mark-card-stamp{background:#2c6e49;border-color:#b5e2bf;color:#f5ffe8}
@media(max-height:600px) and (orientation:landscape){.mark-manuscript{padding:10px 12px;gap:4px}.mark-word{font-size:16px;padding:4px 7px}.mark-dossier-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.mark-card{padding:9px 11px;font-size:14px}}

/* Envoy listening console */
.envoy-console{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center;padding:10px 12px;margin-bottom:10px;background:linear-gradient(120deg,#253e31,#1a2d24);border:2px solid #b58b4e;border-radius:11px;color:#f6e7c0;box-shadow:0 4px 0 #14221b66}
.envoy-portrait{width:64px;height:68px;background-image:url('assets/citizens-sheet.webp');background-repeat:no-repeat;background-size:400% 200%;background-position:66.666% 0%;filter:drop-shadow(0 4px 3px #0007)}
.envoy-body{min-width:0;display:flex;flex-direction:column;gap:6px}
.envoy-overline{font:700 10px var(--game-display);letter-spacing:1.1px;color:#e3c47d}
.envoy-console .audio-player{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.envoy-console [data-listen]{min-height:44px;padding:8px 14px;border-radius:8px;border:1px solid #d4b06a;background:linear-gradient(#8e6b34,#674b22);color:#fff2cc;font:700 14px var(--game-display);cursor:pointer}
.envoy-console [data-listen]:disabled{opacity:.5;cursor:default}
.envoy-console.is-listened [data-listen]{background:linear-gradient(#4c7349,#2e4d33);border-color:#98c48c}
.envoy-wave{display:flex;align-items:flex-end;gap:3px;height:20px}
.envoy-wave i{display:block;width:4px;height:6px;border-radius:2px;background:#cbb17266;transition:height .15s}
.envoy-console.is-playing .envoy-wave i{background:#f5cf74;animation:envoy-bar .65s ease-in-out infinite alternate}
.envoy-console.is-playing .envoy-wave i:nth-child(2){animation-delay:.15s}
.envoy-console.is-playing .envoy-wave i:nth-child(3){animation-delay:.3s}
.envoy-console.is-playing .envoy-wave i:nth-child(4){animation-delay:.45s}
@keyframes envoy-bar{from{height:5px}to{height:19px}}
@media(prefers-reduced-motion:reduce){.envoy-console.is-playing .envoy-wave i{animation:none;height:14px}}

/* Coordinate & survey table production surface */
.coordinate-production{display:flex;flex-direction:column;gap:10px;padding:12px;border:2px solid #b58b4e;border-radius:12px;background:linear-gradient(145deg,#21382f,#172821);color:#f6e7c0;font-family:var(--game-reading)}
.cp-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-bottom:8px;border-bottom:1px solid #a6864c55}
.cp-overline{display:block;font:700 10px var(--game-display);letter-spacing:1.1px;color:#dfc17d}
.cp-header h2{margin:2px 0 0;font:700 18px var(--game-display);color:#fff0c6}
.cp-progress{padding:4px 10px;border-radius:999px;background:#2a4538;border:1px solid #8ea36f;font:700 13px var(--game-display)}
.cp-progress.ready{background:#346241;border-color:#a5df9e;color:#efffdf}
.cp-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr);gap:12px;align-items:start}
.cp-map-pane{display:flex;flex-direction:column;gap:8px;min-width:0}
.cp-stake-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13px}
.cp-stake-pick{min-height:44px;padding:6px 12px;border-radius:8px;border:1px solid #a88b54;background:#2f4739;color:#f5e7be;font:700 13px var(--game-display);cursor:pointer}
.cp-stake-pick.active,.cp-stake-pick[aria-pressed=true]{background:#947134;border-color:#ffe19c;box-shadow:0 0 10px #e8be5a55}
.cp-svg-wrap{background:#f5e7c3;border:2px solid #b8985d;border-radius:10px;padding:6px;overflow:hidden}
.cp-svg-wrap svg{display:block;width:100%;height:auto;max-height:300px}
.cp-map-note{margin:0;font-size:12px;color:#cdd7b8}
.cp-controls-pane{display:flex;flex-direction:column;gap:8px;max-height:360px;overflow:auto;padding-right:4px}
.cp-stake-card{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px;border-radius:9px;background:#192e25cc;border:1px solid #7f916277}
.cp-field{margin:0;padding:8px;border-radius:8px;border:1px solid #8c885a77;background:#233a2fcc}
.cp-field.cp-filled{border-color:#a3c782}
.cp-field legend{padding:0 4px;font:700 12px var(--game-reading);color:#e9d6a3}
.cp-num-row{display:flex;align-items:center;gap:4px}
.cp-step{min-width:44px;min-height:44px;border-radius:7px;border:1px solid #a88b54;background:#3a5140;color:#fff2cc;font:700 18px var(--game-display);cursor:pointer}
.cp-num-row input{min-width:0;width:100%;min-height:44px;border-radius:7px;border:1px solid #a88b54;background:#14231c;color:#fff4d2;text-align:center;font:700 15px var(--game-reading)}
.cp-options{display:flex;flex-wrap:wrap;gap:6px}
.cp-options button{min-height:44px;padding:6px 11px;border-radius:7px;border:1px solid #a88b54;background:#2f4537;color:#f4e6c2;font:700 13px var(--game-reading);cursor:pointer}
.cp-options button.chosen{background:#947134;border-color:#ffe19c}
@media(max-width:760px){.cp-layout{grid-template-columns:1fr}.cp-controls-pane{max-height:none}}
@media(max-height:600px) and (orientation:landscape){.coordinate-production{padding:8px;gap:6px}.cp-svg-wrap svg{max-height:210px}.cp-controls-pane{max-height:245px}}

/* Number-line & gears special workbench families */
.numberline-production,.gears-production{display:flex;flex-direction:column;gap:10px;padding:12px;border:2px solid #b58b4e;border-radius:12px;background:linear-gradient(145deg,#21382f,#172821);color:#f6e7c0;font-family:var(--game-reading)}
.nlp-header,.gp-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-bottom:8px;border-bottom:1px solid #a6864c55}
.nlp-overline,.gp-overline{display:block;font:700 10px var(--game-display);letter-spacing:1.1px;color:#dfc17d}
.nlp-header h2,.gp-header h2{margin:2px 0 0;font:700 18px var(--game-display);color:#fff0c6}
.nlp-progress,.gp-progress{padding:4px 10px;border-radius:999px;background:#2a4538;border:1px solid #8ea36f;font:700 13px var(--game-display)}
.nlp-progress.ready,.gp-progress.ready{background:#346241;border-color:#a5df9e;color:#efffdf}
.nlp-ruler-box{display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:10px;background:#192c24cc;border:1px solid #8c885a77}
.nlp-bound-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13px}
.nlp-bound-pick{min-height:44px;padding:6px 12px;border-radius:8px;border:1px solid #a88b54;background:#2f4739;color:#f5e7be;font:700 13px var(--game-display);cursor:pointer}
.nlp-bound-pick.active{background:#947134;border-color:#ffe19c}
.nlp-svg-wrap,.gp-stage{background:#f5e7c3;border:2px solid #b8985d;border-radius:10px;padding:6px;overflow:hidden}
.nlp-svg-wrap svg,.gp-stage svg{display:block;width:100%;height:auto;max-height:240px}
.nlp-tick-row{display:flex;gap:4px;overflow-x:auto;padding-bottom:2px}
.nlp-tick{min-width:40px;min-height:44px;flex:1 0 auto;border-radius:7px;border:1px solid #a88b54;background:#2b4135;color:#f4e6c2;font:700 14px var(--game-display);cursor:pointer}
.nlp-tick.picked{background:#947134;border-color:#ffe19c;color:#fff7dc}
.nlp-controls,.gp-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}
.nlp-field,.gp-field{margin:0;padding:8px;border-radius:8px;border:1px solid #8c885a77;background:#233a2fcc}
.nlp-field.nlp-filled,.gp-field.gp-filled{border-color:#a3c782}
.nlp-field legend,.gp-field legend{padding:0 4px;font:700 12px var(--game-reading);color:#e9d6a3}
.nlp-num-row,.gp-num-row{display:flex;align-items:center;gap:4px}
.nlp-step,.gp-step{min-width:44px;min-height:44px;border-radius:7px;border:1px solid #a88b54;background:#3a5140;color:#fff2cc;font:700 18px var(--game-display);cursor:pointer}
.nlp-num-row input,.gp-num-row input,.nlp-text-input{min-width:0;width:100%;min-height:44px;border-radius:7px;border:1px solid #a88b54;background:#14231c;color:#fff4d2;text-align:center;font:700 15px var(--game-reading)}
.nlp-options,.gp-options{display:flex;flex-wrap:wrap;gap:6px}
.nlp-options button,.gp-options button{min-height:44px;padding:6px 11px;border-radius:7px;border:1px solid #a88b54;background:#2f4537;color:#f4e6c2;font:700 13px var(--game-reading);cursor:pointer}
.nlp-options button.chosen,.gp-options button.chosen{background:#947134;border-color:#ffe19c}
.gp-tester{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 10px;border-radius:9px;background:#192c24cc;border:1px solid #8c885a77;font-size:13px}
.gp-div-out{min-width:34px;text-align:center;font:700 18px var(--game-display);color:#ffe49c}
.gp-probe-readout{color:#d8e2c1;font-size:12px}
.chart-desk,.geometry-desk{display:grid;grid-template-columns:minmax(250px,1.2fr) minmax(210px,1fr);gap:10px;align-items:start}
@media(max-width:720px){.chart-desk,.geometry-desk{grid-template-columns:1fr}}
.ch-stage-col,.geo-stage-col{display:flex;flex-direction:column;gap:8px}
.ch-stage,.geo-stage{background:#f5e7c3;border:2px solid #b8985d;border-radius:10px;padding:6px;overflow:hidden}
.ch-svg,.geo-svg{display:block;width:100%;height:auto;max-height:240px}
.ch-bar,.ch-point{cursor:pointer}
.ch-toolbar{display:flex;flex-direction:column;gap:6px}
.ch-legend,.geo-guide-bar{display:flex;flex-wrap:wrap;gap:6px}
.ch-legend-btn,.geo-guide-btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 10px;border-radius:8px;border:1px solid #a88b54;background:#2b4135;color:#f5e7be;font:700 13px var(--game-reading);cursor:pointer}
.ch-legend-btn.is-active,.geo-guide-btn.is-active{background:#947134;border-color:#ffe19c;color:#fff7dc}
.ch-swatch{width:11px;height:11px;border-radius:3px;border:1px solid #fff7dc;flex:0 0 auto}
.ch-readout,.geo-status{padding:7px 10px;border-radius:8px;background:#192c24cc;border:1px solid #8c885a77;color:#e9d6a3;font:600 13px var(--game-reading)}
.ch-readout-val{color:#ffe49c;font-weight:700}
.ch-pie-preview{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:9px;background:#233a2fcc;border:1px solid #a88b54}
.ch-pie-svg{width:76px;height:76px;flex:0 0 auto}
.ch-pie-meta{display:flex;flex-direction:column;gap:2px;color:#f4e6c2;font:600 13px var(--game-reading)}
.ch-fields-col,.geo-fields-col{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:8px}
.ch-field-card,.geo-field-card{padding:8px;border-radius:8px;border:1px solid #8c885a77;background:#233a2fcc;display:flex;flex-direction:column;gap:6px}
.ch-field-label,.geo-field-label{font:700 12px var(--game-reading);color:#e9d6a3}
.ch-input-row,.geo-input-row{display:flex;align-items:center;gap:4px}
.ch-step,.geo-step{min-width:44px;min-height:44px;border-radius:7px;border:1px solid #a88b54;background:#3a5140;color:#fff2cc;font:700 18px var(--game-display);cursor:pointer}
.ch-input,.geo-input{min-width:0;width:100%;min-height:44px;border-radius:7px;border:1px solid #a88b54;background:#14231c;color:#fff4d2;text-align:center;font:700 15px var(--game-reading)}
.ch-chip-row,.geo-chip-row{display:flex;flex-wrap:wrap;gap:6px}
.ch-chip,.geo-chip{min-height:44px;padding:6px 11px;border-radius:7px;border:1px solid #a88b54;background:#2f4537;color:#f4e6c2;font:700 13px var(--game-reading);cursor:pointer}
.ch-chip.is-selected,.geo-chip.is-selected{background:#947134;border-color:#ffe19c;color:#fff7dc}
.area-solid-desk,.inventory-desk{display:grid;grid-template-columns:minmax(250px,1.2fr) minmax(210px,1fr);gap:10px;align-items:start}
@media(max-width:720px){.area-solid-desk,.inventory-desk{grid-template-columns:1fr}}
.as-stage-col,.inv-tray-col{display:flex;flex-direction:column;gap:8px}
.as-stage{background:#f5e7c3;border:2px solid #b8985d;border-radius:10px;padding:6px;overflow:hidden}
.as-svg{display:block;width:100%;height:auto;max-height:230px}
.as-tile{cursor:pointer}
.as-toggle-bar,.inv-filter-bar{display:flex;flex-wrap:wrap;gap:6px}
.as-toggle-btn,.inv-filter-btn,.inv-clear-btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 10px;border-radius:8px;border:1px solid #a88b54;background:#2b4135;color:#f5e7be;font:700 13px var(--game-reading);cursor:pointer}
.as-toggle-btn.is-active,.inv-filter-btn.is-active{background:#947134;border-color:#ffe19c;color:#fff7dc}
.as-status,.inv-tally-bar{padding:7px 10px;border-radius:8px;background:#192c24cc;border:1px solid #8c885a77;color:#e9d6a3;font:600 13px var(--game-reading)}
.inv-tally-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.inv-tray{display:flex;flex-wrap:wrap;gap:6px;padding:10px;border-radius:10px;background:#f5e7c3;border:2px solid #b8985d}
.inv-token{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 11px;border-radius:999px;border:2px solid #8b7355;background:#fffaf0;color:#2f2419;font:700 13px var(--game-reading);cursor:pointer;transition:opacity .15s,transform .15s}
.inv-token.is-marked{background:#2c4b37;color:#fff7dc;border-color:#ffe19c;transform:translateY(-1px)}
.inv-token.is-dimmed{opacity:.32}
.inv-dot{width:11px;height:11px;border-radius:50%;flex:0 0 auto;border:1px solid #2f241933}
.as-fields-col,.inv-fields-col{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:8px}
.as-field-card,.inv-field-card{padding:8px;border-radius:8px;border:1px solid #8c885a77;background:#233a2fcc;display:flex;flex-direction:column;gap:6px}
.as-field-label,.inv-field-label{font:700 12px var(--game-reading);color:#e9d6a3}
.as-input-row,.inv-input-row{display:flex;align-items:center;gap:4px}
.as-step,.inv-step{min-width:44px;min-height:44px;border-radius:7px;border:1px solid #a88b54;background:#3a5140;color:#fff2cc;font:700 18px var(--game-display);cursor:pointer}
.as-input,.inv-input{min-width:0;width:100%;min-height:44px;border-radius:7px;border:1px solid #a88b54;background:#14231c;color:#fff4d2;text-align:center;font:700 15px var(--game-reading)}
.as-chip-row{display:flex;flex-wrap:wrap;gap:6px}
.as-chip{min-height:44px;padding:6px 11px;border-radius:7px;border:1px solid #a88b54;background:#2f4537;color:#f4e6c2;font:700 13px var(--game-reading);cursor:pointer}
.as-chip.is-selected{background:#947134;border-color:#ffe19c;color:#fff7dc}
.comic-desk{display:grid;grid-template-columns:minmax(260px,1.25fr) minmax(220px,1fr);gap:10px;align-items:start}
@media(max-width:740px){.comic-desk{grid-template-columns:1fr}}
.cm-stage-col{display:flex;flex-direction:column;gap:8px}
.cm-title{font:700 15px var(--game-display);color:#ffe49c}
.cm-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
.cm-panel{margin:0;padding:8px;border-radius:10px;background:#f5e7c3;border:2px solid #b8985d;display:flex;flex-direction:column;gap:6px}
.cm-panel-head{display:flex;justify-content:space-between;align-items:center;font:700 12px var(--game-reading);color:#5c4424}
.cm-panel-badge{padding:2px 7px;border-radius:999px;background:#3a2c1c;color:#ffe49c}
.cm-svg{display:block;width:100%;height:auto;max-height:190px}
.cm-clue{cursor:pointer}
.cm-caption{font:600 12.5px Georgia,serif;color:#2f2419;line-height:1.35}
.cm-speech-line{font:700 12px var(--game-reading);color:#1b4d7e;background:#fff9eb;padding:4px 7px;border-radius:6px;border:1px solid #cbb892}
.cm-clue-bar{padding:8px 10px;border-radius:8px;background:#192c24cc;border:1px solid #8c885a77;color:#e9d6a3;font:600 13px var(--game-reading)}
.cm-fields-col{display:flex;flex-direction:column;gap:8px}
.cm-field-card{padding:8px;border-radius:8px;border:1px solid #8c885a77;background:#233a2fcc;display:flex;flex-direction:column;gap:6px}
.cm-field-label{font:700 12.5px var(--game-reading);color:#e9d6a3}
.cm-chip-row{display:flex;flex-wrap:wrap;gap:6px}
.cm-chip{min-height:44px;padding:6px 11px;border-radius:7px;border:1px solid #a88b54;background:#2f4537;color:#f4e6c2;font:700 13px var(--game-reading);text-align:left;cursor:pointer}
.cm-chip.is-selected{background:#947134;border-color:#ffe19c;color:#fff7dc}
.cm-input{width:100%;min-height:44px;border-radius:7px;border:1px solid #a88b54;background:#14231c;color:#fff4d2;padding:6px 10px;font:700 14px var(--game-reading)}
.listening-mission-desk{display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:10px;background:#1e3328e6;border:1px solid #a88b54}
.lm-header{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lm-badge{padding:3px 8px;border-radius:999px;color:#fff7dc;font:700 11px var(--game-display);letter-spacing:.04em}
.lm-title{margin:0;font:700 16px var(--game-display);color:#ffe49c;flex:1 1 auto}
.lm-counter{font:700 12px var(--game-reading);color:#c8dfb8;padding:3px 8px;border-radius:999px;background:#14231c;border:1px solid #8c885a77}
.lm-instruction{margin:0;font:600 13px var(--game-reading);color:#e9d6a3}
.lm-pipeline-svg{display:block;width:100%;height:auto;max-height:82px}
.lm-summary{display:block;padding:7px 10px;border-radius:8px;background:#14231c;border:1px solid #8c885a77;color:#f5e7be;font:600 12.5px var(--game-reading)}
.lm-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}
.lm-slot{padding:8px;border-radius:9px;background:#243c30cc;border:1px solid #8c885a77;display:flex;flex-direction:column;gap:7px}
.lm-slot.is-filled{border-color:#98c97b}
.lm-slot-head{display:flex;align-items:center;gap:7px}
.lm-step-num{width:22px;height:22px;border-radius:50%;background:#947134;color:#fff7dc;display:inline-flex;align-items:center;justify-content:center;font:700 12px var(--game-display);flex:0 0 auto}
.lm-slot-label{font:700 13px var(--game-reading);color:#f4e6c2}
.lm-chip-row{display:flex;flex-wrap:wrap;gap:6px}
.lm-chip{min-height:44px;padding:6px 11px;border-radius:7px;border:1px solid #a88b54;background:#2f4537;color:#f4e6c2;font:700 13px var(--game-reading);text-align:left;cursor:pointer}
.lm-chip.is-selected{background:#947134;border-color:#ffe19c;color:#fff7dc}
.lm-input-row{display:flex;align-items:center;gap:4px}
.lm-step-btn{min-width:44px;min-height:44px;border-radius:7px;border:1px solid #a88b54;background:#3a5140;color:#fff2cc;font:700 18px var(--game-display);cursor:pointer}
.lm-input{min-width:0;width:100%;min-height:44px;border-radius:7px;border:1px solid #a88b54;background:#14231c;color:#fff4d2;text-align:center;font:700 15px var(--game-reading)}
.guild-workbench{display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:10px;background:#1e3328e6;border:1px solid #a88b54}
.gw-header{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gw-badge{padding:3px 8px;border-radius:999px;color:#fff7dc;font:700 11px var(--game-display);letter-spacing:.04em}
.gw-title{margin:0;font:700 16px var(--game-display);color:#ffe49c;flex:1 1 auto}
.gw-counter{font:700 12px var(--game-reading);color:#c8dfb8;padding:3px 8px;border-radius:999px;background:#14231c;border:1px solid #8c885a77}
.gw-instruction{margin:0;font:600 13px var(--game-reading);color:#e9d6a3}
.gw-ribbon-svg{display:block;width:100%;height:auto;max-height:78px}
.gw-summary{display:block;padding:7px 10px;border-radius:8px;background:#14231c;border:1px solid #8c885a77;color:#f5e7be;font:600 12.5px var(--game-reading)}
.gw-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}
.gw-slot{padding:8px;border-radius:9px;background:#243c30cc;border:1px solid #8c885a77;display:flex;flex-direction:column;gap:7px}
.gw-slot.is-filled{border-color:#98c97b}
.gw-slot-head{display:flex;align-items:center;gap:7px}
.gw-step-num{width:22px;height:22px;border-radius:50%;background:#947134;color:#fff7dc;display:inline-flex;align-items:center;justify-content:center;font:700 12px var(--game-display);flex:0 0 auto}
.gw-slot-label{font:700 13px var(--game-reading);color:#f4e6c2}
.gw-chip-row{display:flex;flex-wrap:wrap;gap:6px}
.gw-chip{min-height:44px;padding:6px 11px;border-radius:7px;border:1px solid #a88b54;background:#2f4537;color:#f4e6c2;font:700 13px var(--game-reading);text-align:left;cursor:pointer}
.gw-chip.is-selected{background:#947134;border-color:#ffe19c;color:#fff7dc}
.gw-input-row{display:flex;align-items:center;gap:4px}
.gw-step-btn{min-width:44px;min-height:44px;border-radius:7px;border:1px solid #a88b54;background:#3a5140;color:#fff2cc;font:700 18px var(--game-display);cursor:pointer}
.gw-input{min-width:0;width:100%;min-height:44px;border-radius:7px;border:1px solid #a88b54;background:#14231c;color:#fff4d2;text-align:center;font:700 15px var(--game-reading)}
.league-pill{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:999px;color:#fff7dc;font:700 11px var(--game-display);font-style:normal;vertical-align:middle}
.clan-emblem-badge{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;color:#fff7dc;font-size:15px;vertical-align:middle;margin-right:4px}
.clan-caravan{margin:8px 0;padding:8px;border-radius:8px;background:#192c24cc;border:1px solid #8c885a77}
.clan-caravan-head{display:flex;justify-content:space-between;gap:8px;font:700 12px var(--game-reading);color:#ffe49c;margin-bottom:5px}
.clan-caravan-bar{height:8px;border-radius:999px;background:#0f1d17;overflow:hidden}
.clan-caravan-bar i{display:block;height:100%;background:linear-gradient(90deg,#b45309,#22c55e)}
.clan-banner-form{display:flex;flex-wrap:wrap;gap:6px;align-items:end;margin:8px 0}
.clan-cheers{margin:8px 0;display:flex;flex-direction:column;gap:6px}
.clan-cheer-buttons{display:flex;flex-wrap:wrap;gap:5px}
.clan-cheer-feed{margin:0;padding-left:16px;font-size:12px;color:#e9d6a3}
.duel-tactical-list{margin:6px 0 0;padding-left:18px;font-size:12.5px;color:#f4e6c2;line-height:1.4}
.auth-card{display:flex;flex-direction:column;gap:8px;color:#2b1e10}
.auth-tabs{display:flex;gap:6px}
.auth-tab{flex:1;min-height:42px;border-radius:8px;border:1px solid #8b6a38;background:#efe0ba;color:#3a2815;font:700 13px var(--game-reading);cursor:pointer}
.auth-tab.is-active{background:#234d38;border-color:#173728;color:#fff7dc}
.auth-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.auth-form>p,.auth-form>button{grid-column:1 / -1;margin:0}
@media(max-width:460px){.auth-form{grid-template-columns:1fr}}
.auth-form label{display:flex;flex-direction:column;gap:3px;font:700 12.5px var(--game-reading);color:#2b1e10}
.auth-form input{min-height:40px;padding:6px 10px;border-radius:8px;border:1.5px solid #8b6a38;background:#fffaf0;color:#23180c;font:600 14px var(--game-reading)}
@media(orientation:portrait) and (max-width:720px){.orientation-hint{position:fixed;inset:0;z-index:180;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:32px;background:radial-gradient(ellipse,#426d46,#203d2d);color:#f6e1ad;text-align:center}.orientation-hint h2{font:800 24px var(--game-display);margin:8px 0 0}.orientation-hint p{color:#c1d1af;margin:0}.orientation-hint .gold-button{width:230px}}
.exponent-dial-desk,.equation-balance-desk,.sentence-rail-desk{display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:10px;background:#1e3328e6;border:1px solid #a88b54}
.ed-head,.eb-head,.sr-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ed-badge,.eb-badge,.sr-badge{padding:3px 8px;border-radius:999px;background:#947134;color:#fff7dc;font:700 11px var(--game-display);letter-spacing:.04em}
.ed-title,.eb-title,.sr-title{margin:0;font:700 16px var(--game-display);color:#ffe49c}
.ed-svg,.eb-svg{display:block;width:100%;height:auto;max-height:146px}
.ed-wheels,.eb-fields,.sr-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}
.ed-wheel,.eb-card,.sr-slot{padding:8px;border-radius:9px;background:#243c30cc;border:1px solid #8c885a77;display:flex;flex-direction:column;gap:6px}
.ed-wheel.is-filled,.eb-card.is-filled,.sr-slot.is-filled{border-color:#98c97b}
.ed-label,.eb-label,.sr-slot-label{font:700 13px var(--game-reading);color:#f4e6c2}
.ed-controls,.eb-row{display:flex;align-items:center;gap:4px}
.ed-btn,.eb-step{min-width:40px;min-height:44px;border-radius:7px;border:1px solid #a88b54;background:#3a5140;color:#fff2cc;font:700 14px var(--game-display);cursor:pointer}
.ed-input,.eb-input{min-width:0;width:100%;min-height:44px;border-radius:7px;border:1px solid #a88b54;background:#14231c;color:#fff4d2;text-align:center;font:700 15px var(--game-reading)}
.eb-chips,.sr-chips{display:flex;flex-wrap:wrap;gap:6px}
.eb-chip,.sr-chip{min-height:44px;padding:6px 11px;border-radius:7px;border:1px solid #a88b54;background:#2f4537;color:#f4e6c2;font:700 13px var(--game-reading);text-align:left;cursor:pointer}
.eb-chip.is-selected,.sr-chip.is-selected{background:#947134;border-color:#ffe19c;color:#fff7dc}
.sr-rail{display:flex;align-items:center;gap:4px;overflow-x:auto;padding:8px;border-radius:10px;background:#f5e7c3;border:2px solid #b8985d}
.sr-car{flex:1 0 104px;padding:6px 8px;border-radius:8px;background:#fffaf0;border:2px dashed var(--car-accent,#1b4d7e);display:flex;flex-direction:column;gap:2px}
.sr-car.is-coupled{border-style:solid;background:#192c24;color:#fff7dc}
.sr-car-tag{font:700 10.5px var(--game-display);color:var(--car-accent,#1b4d7e);text-transform:uppercase}
.sr-car.is-coupled .sr-car-tag{color:#ffe49c}
.sr-car-val{font:700 12.5px var(--game-reading);color:#3a2815}
.sr-car.is-coupled .sr-car-val{color:#fff7dc}
.sr-coupler{font-weight:800;color:#7c5a32;flex:0 0 auto}
.sr-slot-head{display:flex;align-items:center;gap:6px}
.sr-dot{width:10px;height:10px;border-radius:50%;flex:0 0 auto}
.wi-prop{display:inline-block;width:96px;height:96px;background-image:url('assets/workshop-instruments-sheet.webp');background-size:200% 200%;background-repeat:no-repeat;filter:drop-shadow(0 4px 8px rgba(0,0,0,.45));flex:0 0 auto}
.wi-prop-dial{background-position:0 0}
.wi-prop-scale{background-position:100% 0}
.wi-prop-cart{background-position:0 100%}
.wi-prop-compass{background-position:100% 100%}
.ed-stage-panel,.eb-stage-panel{display:flex;align-items:center;gap:14px;padding:10px 14px;border-radius:12px;background:#14231c;border:1.5px solid #b8985d}
.ed-prop-wrap{position:relative;width:98px;height:98px;flex:0 0 auto;display:grid;place-items:center}
.ed-needle-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.ed-readout-box{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.ed-readout-val{font:800 22px var(--game-display);color:#ffe49c}
.ed-readout-sub{font:600 12.5px var(--game-reading);color:#c8dfb8}
.eb-scale-art{transition:transform .25s ease-out;flex:0 0 auto}
.eb-pans-readout{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.eb-pan-chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.eb-pan{padding:5px 10px;border-radius:8px;font:700 14px var(--game-display);color:#fff7dc}
.eb-pan-left{background:#1b4d7e;border:1px solid #60a5fa}
.eb-pan-right{background:#157347;border:1px solid #4ade80}
.eb-pan-eq{font:800 18px var(--game-display);color:#ffe49c}
.eb-step-note{font:600 12.5px var(--game-reading);color:#e9d6a3}
.sr-head-art{width:46px;height:46px}
.grade-select{height:44px;min-height:44px;padding:0 10px;border:2px solid #d6b36d;border-radius:10px;background:linear-gradient(#537449,#2c4d35);color:#fff0c3;font:700 13px var(--game-display);box-shadow:inset 0 1px #d9deb266,0 3px 0 #253c2a,0 5px 8px #1532244d;cursor:pointer}
.grade-select option{background:#1c3527;color:#fff0c3}
@media(max-height:600px) and (orientation:landscape){.grade-select{height:44px;padding:0 7px;font-size:12px;border-width:1px;border-radius:8px}}
@media(max-width:700px) and (orientation:landscape){.grade-select{max-width:118px;font-size:11.5px;padding:0 5px}}
/* Bespoke MEB TYMM Grades 5-7 AI-illustrated studios (zero SVG game art) */
.tymm-studio{display:flex;flex-direction:column;gap:12px;padding:12px;border-radius:12px;background:linear-gradient(155deg,#192c23,#122019);border:2px solid #b8985d;color:#f5ebd0}
.tymm-banner{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;background:#20382c;border:1px solid #8f7748}
.tymm-banner-copy{flex:1;min-width:0}
.tymm-banner-copy h3{margin:2px 0;font:700 18px/1.2 var(--game-display);color:#ffe7a8}
.tymm-banner-copy p{margin:0;font:500 13px/1.35 var(--game-reading);color:#d7e0c8}
.tymm-pill{display:inline-block;padding:2px 8px;border-radius:999px;background:#3a5940;border:1px solid #d4b26a;font:700 10.5px var(--game-display);letter-spacing:.6px;color:#ffe7a8}
.tymm-counter{padding:6px 10px;border-radius:8px;background:#13241c;border:1px solid #b8985d;font:700 13px var(--game-display);color:#ffe49c;white-space:nowrap}
.tymm-stage-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:12px;align-items:start}
.tymm-visual-bench,.tymm-controls-col{display:flex;flex-direction:column;gap:10px;padding:10px;border-radius:10px;background:#15271e;border:1px solid #6c613e}
.tymm-orrery-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tymm-art-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px;border-radius:10px;background:#0f1d16;border:1px solid #595238}
.tymm-art-caption{font:600 12px var(--game-reading);color:#e9d8a9;text-align:center}
.tymm-art-frame{width:100%;aspect-ratio:1/1;max-width:168px;border-radius:10px;background-size:200% 200%;background-repeat:no-repeat;border:1.5px solid #c7a461;box-shadow:0 4px 12px rgba(0,0,0,.45);transition:transform .28s ease}
.tymm-banner .tymm-art-frame{width:76px;height:76px;max-width:76px;flex:0 0 76px}
.tymm-art-thumb{width:68px;height:68px;flex:0 0 68px;border-radius:8px;background-size:200% 200%;background-repeat:no-repeat;border:1.5px solid #c7a461}
.tymm-lens-big{width:154px;height:154px;max-width:154px;flex:0 0 154px;border-radius:50%}
.tymm-moon-tl,.tymm-moon-tr,.tymm-moon-bl,.tymm-moon-br{background-image:url('assets/tymm-moon-observatory-sheet.webp')}
.tymm-cell-tl,.tymm-cell-tr,.tymm-cell-bl,.tymm-cell-br{background-image:url('assets/tymm-cell-microscope-sheet.webp')}
.tymm-mill-tl,.tymm-mill-tr,.tymm-mill-bl,.tymm-mill-br{background-image:url('assets/tymm-mill-fractions-sheet.webp')}
.tymm-force-tl,.tymm-force-tr,.tymm-force-bl,.tymm-force-br{background-image:url('assets/tymm-force-work-sheet.webp')}
.tymm-planet-tl,.tymm-planet-tr,.tymm-planet-bl,.tymm-planet-br{background-image:url('assets/tymm-planet-sorter-sheet.webp')}
.tymm-vault-tl,.tymm-vault-tr,.tymm-vault-bl,.tymm-vault-br{background-image:url('assets/tymm-vault-abacus-sheet.webp')}
.tymm-chronicle-tl,.tymm-chronicle-tr,.tymm-chronicle-bl,.tymm-chronicle-br{background-image:url('assets/tymm-chronicle-desk-sheet.webp')}
.tymm-council-tl,.tymm-council-tr,.tymm-council-bl,.tymm-council-br{background-image:url('assets/tymm-council-table-sheet.webp')}
.tymm-envoy-tl,.tymm-envoy-tr,.tymm-envoy-bl,.tymm-envoy-br{background-image:url('assets/tymm-envoy-timetable-sheet.webp')}
.tymm-heritage-tl,.tymm-heritage-tr,.tymm-heritage-bl,.tymm-heritage-br{background-image:url('assets/tymm-heritage-archive-sheet.webp')}
.tymm-algebra-tl,.tymm-algebra-tr,.tymm-algebra-bl,.tymm-algebra-br{background-image:url('assets/tymm-algebra-recipe-sheet.webp')}
.tymm-mosaic-tl,.tymm-mosaic-tr,.tymm-mosaic-bl,.tymm-mosaic-br{background-image:url('assets/tymm-fraction-mosaic-sheet.webp')}
.tymm-angle-tl,.tymm-angle-tr,.tymm-angle-bl,.tymm-angle-br{background-image:url('assets/tymm-angle-compass-sheet.webp')}
.tymm-moon-tl,.tymm-cell-tl,.tymm-mill-tl,.tymm-force-tl,.tymm-planet-tl,.tymm-vault-tl,.tymm-chronicle-tl,.tymm-council-tl,.tymm-envoy-tl,.tymm-heritage-tl,.tymm-algebra-tl,.tymm-mosaic-tl,.tymm-angle-tl{background-position:0 0}
.tymm-moon-tr,.tymm-cell-tr,.tymm-mill-tr,.tymm-force-tr,.tymm-planet-tr,.tymm-vault-tr,.tymm-chronicle-tr,.tymm-council-tr,.tymm-envoy-tr,.tymm-heritage-tr,.tymm-algebra-tr,.tymm-mosaic-tr,.tymm-angle-tr{background-position:100% 0}
.tymm-moon-bl,.tymm-cell-bl,.tymm-mill-bl,.tymm-force-bl,.tymm-planet-bl,.tymm-vault-bl,.tymm-chronicle-bl,.tymm-council-bl,.tymm-envoy-bl,.tymm-heritage-bl,.tymm-algebra-bl,.tymm-mosaic-bl,.tymm-angle-bl{background-position:0 100%}
.tymm-moon-br,.tymm-cell-br,.tymm-mill-br,.tymm-force-br,.tymm-planet-br,.tymm-vault-br,.tymm-chronicle-br,.tymm-council-br,.tymm-envoy-br,.tymm-heritage-br,.tymm-algebra-br,.tymm-mosaic-br,.tymm-angle-br{background-position:100% 100%}
.tymm-mosaic-bar{display:flex;gap:5px;padding:8px;border-radius:10px;background:#0f1d16;border:1px solid #6c613e}
.tymm-tile{flex:1;min-height:44px;border-radius:7px;border:1.5px solid #8a784c;background:#26372c;color:#c9d6bc;font:700 13px var(--game-display);cursor:pointer}
.tymm-tile.is-glazed{background:linear-gradient(#1f8a8c,#146166);border-color:#7de2e4;color:#fff8e6;box-shadow:inset 0 1px #a5f3fc66}
.tymm-orbit-controls,.tymm-lens-tabs{display:flex;flex-wrap:wrap;gap:6px}
.tymm-orbit-btn{flex:1 1 82px;min-height:44px;padding:6px 8px;border-radius:8px;border:1.5px solid #8d7a4f;background:#22382c;color:#f4e6c2;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;font-family:var(--game-reading)}
.tymm-orbit-btn b{font-size:12.5px;line-height:1.2}
.tymm-orbit-btn small{font-size:10.5px;color:#c3d2b4}
.tymm-orbit-btn.is-active{background:#8b682e;border-color:#ffe39e;color:#fff9e6}
.tymm-orbit-btn.is-active small{color:#ffefc2}
.tymm-microscope-view{display:flex;align-items:center;gap:12px;padding:8px;border-radius:10px;background:#0f1d16;border:1px solid #595238}
.tymm-lens-notes h4{margin:0 0 6px;font:700 15px var(--game-display);color:#ffe49c}
.tymm-lens-notes ul{margin:0 0 6px;padding-left:18px;font:500 12.5px/1.4 var(--game-reading);color:#dce4cd}
.tymm-lens-notes small{color:#a9be98;font-size:11.5px}
.tymm-live-note{padding:8px 10px;border-radius:8px;background:#20362a;border-left:3px solid #e7c270;font:500 13px/1.4 var(--game-reading);color:#f3e8ca}
.tymm-live-note small{display:block;margin-top:4px;color:#b8cca7}
.tymm-art-mini-row{display:flex;align-items:center;gap:10px;padding:8px;border-radius:8px;background:#20352a;border:1px solid #6c613e}
.tymm-prompt-box{font:600 13.5px/1.4 var(--game-reading);color:#f8eed1}
.tymm-slots{display:flex;flex-direction:column;gap:8px}
.tymm-slot{margin:0;padding:8px 10px;border-radius:8px;border:1.5px solid #6f6440;background:#1c3026;display:flex;flex-direction:column;gap:6px}
.tymm-slot.is-filled{border-color:#74b97c;background:#1d3629}
.tymm-slot legend,.tymm-slot>span{font:700 13px var(--game-reading);color:#ffe49c;padding:0 4px}
.tymm-chip-grid{display:flex;flex-wrap:wrap;gap:6px}
.tymm-chip{min-height:44px;padding:6px 11px;border-radius:8px;border:1.5px solid #a88b54;background:#2b4335;color:#f5e7c4;font:700 13px var(--game-reading);cursor:pointer;text-align:left}
.tymm-chip.is-selected{background:#9a7331;border-color:#ffe39e;color:#fff8e0}
.tymm-input{min-height:44px;padding:8px 10px;border-radius:8px;border:1.5px solid #a88b54;background:#0f1d16;color:#fff4d2;font:700 15px var(--game-reading);width:100%}
@media(max-width:860px){.tymm-stage-grid{grid-template-columns:1fr}.tymm-microscope-view{flex-direction:column;text-align:center}}
