:root{color-scheme:dark;--ink:#10232c;--gold:#efc266;--paper:#fbf1d5;--line:#9aabad;--ui-font:"Arial Narrow","Liberation Sans Narrow",Arial,sans-serif}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#09151c;color:var(--paper);font-family:var(--ui-font);overflow-x:hidden}button,input,select{font:inherit}button{cursor:pointer;color:inherit;background:linear-gradient(#314a57,#162b37);border:1px solid #8b9ca3;border-radius:7px;padding:.6em 1em;font-weight:700;touch-action:manipulation}button:focus-visible{outline:3px solid #ffdc82;outline-offset:3px}button:active{filter:brightness(1.15)}button:disabled{opacity:.55;cursor:wait}button.primary{color:#172b35;border:1px solid #fff0bd;border-bottom:4px solid #795221;background:linear-gradient(#fff0b2,#eac05f 56%,#c58d38);padding:.8em 1.6em;font-size:1.08em}button img{pointer-events:none}[hidden]{display:none!important}.hidden{display:none!important}.gold{color:var(--gold)}p{line-height:1.55}small{font-size:.79em}#app{min-height:100svh;display:grid;place-items:center}#stage-wrap{position:relative;overflow:hidden}#stage{position:absolute;width:1280px;height:720px;transform-origin:top left;overflow:hidden;background:#b8baa5;isolation:isolate;user-select:none;-webkit-user-select:none;direction:ltr}.world-bg{position:absolute;inset:0;background:var(--world-art, url("assets/scene/static-master-3.5.2.webp?v=3.5.2")) center/100% 100% no-repeat;z-index:0}#hud{position:absolute;inset:0;pointer-events:none;z-index:20}.instrument{position:absolute;overflow:hidden}.skin{position:absolute;width:100%;height:100%;inset:0;object-fit:fill}.instrument-label{position:absolute;object-fit:contain;z-index:1}.instrument canvas{position:absolute;z-index:2}#time-card{left:0;top:0;width:195px;height:79px}#time-number{left:62px;top:30px;width:126px;height:43px}#debt-card{left:211px;top:0;width:293px;height:80px}#debt-card .instrument-label{left:45px;top:4px;width:240px;height:20px}#debt-number{left:48px;top:28px;width:232px;height:30px}.simulation-label{position:absolute;left:47px;top:61px;width:237px;height:11px;object-fit:contain}#sam-card{position:absolute;left:508px;top:0;width:243px;height:113px}#sam-face{position:absolute;right:2px;top:2px;width:108px;height:108px;object-fit:cover;object-position:center 4px;background:radial-gradient(circle at 35% 28%,#21323c,#0f1f28 62%,#0a161d);border:5px solid #8294a0;border-bottom-width:7px;border-radius:50%;box-shadow:0 4px 0 #0b1419aa,0 10px 18px #06101866;padding:4px}#sam-bubble{position:absolute;left:0;top:4px;width:156px;height:auto;object-fit:contain}#stats-card{left:788px;top:0;width:358px;height:77px}.stat{position:absolute;top:0;height:100%}.stat.score{left:0;width:133px}.stat.loaded{left:130px;width:133px}.stat.flights{left:262px;width:96px}.stat-label{position:absolute;top:6px;left:11px;width:calc(100% - 20px);height:18px;object-fit:contain}.stat-icon{position:absolute;left:10px;top:31px;width:30px;height:34px;object-fit:contain}.stat canvas{position:absolute;left:39px;top:29px;width:calc(100% - 45px);height:39px}.stat.flights .stat-icon{width:29px}.art-button{position:absolute;pointer-events:auto;padding:0;border:0;border-radius:0;background:none!important;width:51px;height:57px}.art-button>img{width:100%;height:100%;object-fit:contain}#sound-toggle{left:1159px;top:3px}#settings-toggle{left:1224px;top:3px}#sound-state{display:block;position:absolute;left:0;top:58px;min-width:100%;background:#203b16;border:1px solid #759129;border-radius:3px;font-size:10px;white-space:nowrap;color:#d0e25f;font-weight:800;padding:1px 2px}#sound-toggle.muted #sound-state{background:#4b251f;color:#ffd8b3}#agent-card{position:absolute;left:1029px;top:235px;width:251px;height:140px;z-index:7;pointer-events:none;overflow:hidden}#agent-face{position:absolute;right:5px;top:20px;width:174px;height:133px;object-fit:contain}#agent-bubble{position:absolute;left:0;top:0;width:144px;height:90px;object-fit:contain;z-index:2}.drop-zone{position:absolute;z-index:9;border:2px solid transparent;border-radius:9px;touch-action:none}#load-zone{left:431px;top:321px;width:334px;height:57px;border-color:#e6c47688;background:#28302e10}#load-zone>span{display:block;position:absolute;bottom:2px;left:50%;transform:translateX(-50%);font-size:11px;font-weight:800;color:#ffeeb7;white-space:nowrap;text-shadow:1px 1px 2px #0c1719;background:#1b292db8;padding:2px 10px;border-radius:4px}#shred-zone{left:0;top:361px;width:231px;height:258px}#wait-zone{left:997px;top:372px;width:283px;height:247px}#wait-count{position:absolute;right:25px;top:67px;background:#11212a;outline:2px solid #5d737b;padding:1px 5px;color:#ff5236;font-size:21px;font-family:monospace;direction:ltr;letter-spacing:1px}.drop-zone.candidate{border-color:#ffe177;box-shadow:inset 0 0 0 2px #4c5129;outline:2px solid #fff0ba;background:#e5bb591f}.drop-zone.invalid{border-color:#e36b4d}.lane{position:absolute;top:432px;width:258px;height:186px;z-index:12;direction:ltr}.lane:nth-child(1){left:239px}.lane:nth-child(2){left:495px}.lane:nth-child(3){left:750px}.platform-skin{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.cargo{position:absolute;left:17px;top:5px;width:224px;height:123px;cursor:grab;touch-action:none;user-select:none;z-index:3;display:flex;align-items:center;justify-content:center}.cargo:active{cursor:grabbing}.cargo>img{width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 5px 3px #16212166)}.cargo.dragging{opacity:.22}.cargo.person>img{object-fit:contain}.lane-category{position:absolute;left:15px;bottom:13px;height:29px;right:12px;display:flex;align-items:center;gap:7px}.lane-category>.cat-icon{width:35px;height:31px;object-fit:contain}.lane-category>.cat-title{width:calc(100% - 42px);height:25px;object-fit:contain}.lane-next{position:absolute;left:74px;top:-54px;width:163px;height:57px}.next-skin{position:absolute;width:100%;height:100%;inset:0}.next-item{position:absolute;right:6px;top:3px;width:101px;height:47px;object-fit:contain}.lane.threat .cargo{outline:3px solid #f8a059;border-radius:8px}#action-line{position:absolute;top:618px;left:242px;right:292px;font-size:10px;z-index:16;color:#fff2c7;text-shadow:1px 1px #17252c;text-align:center}#event-note{position:absolute;left:414px;top:287px;width:363px;z-index:30;background:#102f3bea;color:#fff1bf;border:1px solid #e2c16d;border-radius:5px;padding:4px 8px;text-align:center;font-size:15px;font-weight:700;pointer-events:none}#event-note:empty{display:none}#category-strip{position:absolute;left:0;right:0;top:629px;height:91px;z-index:18;background:linear-gradient(#58717c,#253d49);border-top:3px solid #9bafae;direction:ltr;padding:2px 0}#category-list{position:absolute;left:16px;top:2px;width:851px;height:83px;display:flex;gap:3px;overflow-x:auto;scrollbar-width:none;scroll-behavior:auto;overscroll-behavior:contain;touch-action:pan-x}#category-list::-webkit-scrollbar{display:none}.category-card{flex:0 0 92px;height:82px;background:var(--category-art, url("assets/ui/category-card-3.3.0.webp?v=3.5.1")) center/100% 100%;border:0;padding:2px;color:#132a33;display:grid;grid-template-rows:29px 29px 22px;place-items:center;border-radius:6px}.category-card img{width:46px;height:27px;object-fit:contain}.category-card span{font-size:11px;font-weight:900;text-align:center;line-height:1.05;max-width:87px;overflow:hidden}.category-card b{font-size:23px;line-height:1;font-family:var(--ui-font);font-weight:900;direction:ltr}#cat-prev,#cat-next{position:absolute;top:3px;bottom:3px;width:16px;padding:0;border-radius:4px;border-color:#6f858d;color:var(--gold);font-size:26px}#cat-prev{left:0}#cat-next{left:868px}.poster-photo{position:absolute;left:887px;top:2px;width:151px;height:82px;border-radius:3px}.poster-text{position:absolute;right:0;top:2px;width:238px;height:82px;border-radius:3px}.mobile-only{display:none}.overlay{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:28px;overflow:auto}.overlay.dim{background:#06141be6}.paper-modal{width:min(660px,100%);max-height:calc(100svh - 48px);overflow:auto;padding:26px;background:linear-gradient(140deg,#2e4956,#122a37 90%);border:2px solid #a6b8bb;border-top:3px solid #e6ce8f;border-bottom:5px solid #09222f;border-radius:9px;box-shadow:0 16px 80px #0008}.paper-modal>h2{font-size:clamp(26px,3vw,40px);line-height:1.1;margin:16px 0}.paper-modal>p{margin:12px 0}.paper-modal>small:last-child{display:block;margin-top:15px;text-align:center;color:#c4d0cd}.paper-modal .primary{width:100%;margin-top:16px}.links{display:flex;gap:10px;justify-content:center;margin-top:13px}.links button{border:0;background:none;font-size:13px;color:var(--gold);padding:6px}.rule{font-size:14px;line-height:1.65;border-bottom:1px solid #9eb0ad33;padding:10px 0}.rule:last-child{color:var(--gold)}#asset-status{margin-top:12px;font-size:13px;color:#f7d888}#asset-status:empty{display:none}#modal{position:fixed;inset:0;width:min(1100px,94vw);height:min(86svh,950px);max-height:90svh;background:linear-gradient(140deg,#2a4654,#112a38);color:var(--paper);border:2px solid #97afb5;border-top:3px solid #efd38b;border-radius:10px;padding:0;overflow:hidden;box-shadow:0 20px 80px #000b}#modal::backdrop{background:#020b10cc}#modal-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 22px;border-bottom:1px solid #6e8d953d}#modal-title{margin:0;font-size:22px}#modal-close{font-size:25px;line-height:1;padding:4px 10px}#modal-body{height:calc(100% - 65px);overflow:auto;padding:18px 22px;overscroll-behavior:contain}.catalog-category{margin:8px 0 26px;scroll-margin-top:10px}.catalog-category h3{color:var(--gold);margin:12px 0}.catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.catalog-item{min-height:180px;background:linear-gradient(135deg,#e9dfb9,#bec8c1);border:1px solid #e9e0bb;border-radius:7px;color:#143440;display:flex;flex-direction:column;align-items:center;padding:10px}.catalog-item img{display:block;width:100%;height:145px;object-fit:contain}.catalog-item strong{font-size:14px;line-height:1.35;text-align:center}.settings-group{margin:10px 0 25px}.settings-group h3{color:var(--gold)}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:10px 0;border-bottom:1px solid #708f9644}.setting-row input[type=range]{max-width:180px;accent-color:#eec267}.setting-row input[type=checkbox]{width:23px;height:23px;accent-color:#e8c15f}.setting-row select{max-width:180px;background:#183646;color:var(--paper);padding:7px}.setting-note{color:#c5ccc7;font-size:13px;line-height:1.6}.results{width:min(1080px,100%)}.result-main{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}.result-stat{border:1px solid #95aaac;border-radius:7px;background:#102a39;padding:13px;text-align:center}.result-stat strong{display:block;font-size:clamp(24px,3.5vw,43px);font-weight:900;margin-top:8px;color:#f0c771;direction:ltr}.result-stat small{font-weight:800}.result-controls{display:flex;flex-wrap:wrap;gap:10px}.result-controls .primary{width:auto;margin:0}.result-controls button{flex:1;min-width:115px}#auto-note{font-size:12px;color:#b8ccc8}.results h3{color:#f4cb70}#result-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.category-result{background:#152f3d;border:1px solid #79919a;border-radius:6px;padding:8px}.category-result summary{display:flex;align-items:center;gap:5px;cursor:pointer;min-height:38px;list-style:none}.category-result summary img{width:36px;height:30px;object-fit:contain;filter:brightness(1.8)}.category-result summary span{flex:1;font-size:13px;font-weight:700}.category-result summary b{color:#f3ca72;font-size:23px}.category-result.empty{opacity:.55}.item-result{display:flex;gap:6px;align-items:center;font-size:12px;margin-top:10px;border-top:1px solid #617d8644}.item-result img{width:47px;height:39px;object-fit:contain}.item-result span{flex:1}.report-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #65818a44;gap:20px}.report-row b{direction:ltr;white-space:nowrap;color:#f2cf80}#credits-screen{position:fixed;inset:0;z-index:70;background:#030605;color:#eeeddf;display:flex;flex-direction:column;min-height:100svh;padding:20px 4vw;overflow:auto}#credits-screen header,#credits-screen footer{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;font-size:13px}#credits-screen button{background:#07100e;border:1px solid #687a704f;color:#e1e3d7;min-height:39px}#credits-screen .primary{background:linear-gradient(#fbe2a0,#d5a94e);color:#152c32}.credit-body{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;text-align:center;width:min(990px,100%);margin:25px auto}.credit-body h2{font-size:clamp(22px,2.2vw,32px);line-height:1.3;font-weight:700;max-width:850px;margin:10px auto}.credit-body p{font-size:clamp(18px,2vw,27px);line-height:1.65;white-space:pre-line;max-width:880px;margin:14px auto}.credit-counter{margin:25px 0 32px;width:min(710px,100%);display:flex;align-items:center;flex-direction:column;gap:12px}.credit-counter label{font-size:16px;letter-spacing:.06em;font-weight:800}.credit-counter canvas{width:100%;height:66px;direction:ltr}.credit-counter small{font-size:12px;color:#a8b4ab;line-height:1.4}.credit-body>small{color:#d0c4a1;max-width:720px;font-size:14px}#credit-final p{font-size:16px}#credit-final button{margin:5px}#drag-ghost{position:fixed;left:0;top:0;z-index:90;width:150px;height:110px;pointer-events:none;will-change:transform}#drag-ghost img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 10px 7px #00121a66)}#cover{position:fixed;inset:0;z-index:100;background:#071821ed;display:grid;place-items:center;color:#f0c366;font-size:clamp(20px,3vw,38px);padding:35px;text-align:center;font-weight:900}.large-text .rule,.large-text .setting-note{font-size:16px}.high-contrast .drop-zone{border-color:#ffde70}.high-contrast #load-zone{background:#152b3399}.high-contrast button{border-color:#fff1b8}.high-contrast .category-card{outline:1px solid #253c45}.rtl-ui .paper-modal,.rtl-ui #modal{direction:rtl;font-family:Tahoma,Arial,sans-serif}.rtl-ui .credit-body{direction:rtl;font-family:Tahoma,Arial,sans-serif}.rtl-ui .credit-counter{direction:ltr}.rtl-ui .credit-counter label,.rtl-ui .credit-counter small{direction:rtl}.rtl-ui .category-card span{font-family:Tahoma,Arial,sans-serif}.rtl-ui #event-note{direction:rtl;font-family:Tahoma,Arial,sans-serif}.rtl-ui .stat-label{height:21px}.rtl-ui #sam-bubble{width:163px;height:107px}.rtl-ui .report-row b{unicode-bidi:isolate}.rtl-ui #credit-page{direction:ltr}
/* Portrait: recompose, never mirror or stretch the aircraft; every drop target stays visible. */
#stage.portrait{width:390px;height:844px}#stage.portrait .world-bg{inset:0;background-image:linear-gradient(#0d293600,#0d293600 74%,#16313a),var(--world-art, url("assets/scene/static-master-3.5.2.webp?v=3.5.2"));background-size:100% 100%,1040px 585px;background-position:center,center 128px;background-repeat:no-repeat}#stage.portrait:before{content:"";position:absolute;left:0;right:0;top:0;height:196px;background:linear-gradient(#143e52,#7597a0);z-index:1}#stage.portrait #time-card{left:4px;top:4px;width:124px;height:65px}#stage.portrait #time-number{left:40px;top:28px;width:81px;height:29px}#stage.portrait #debt-card{left:131px;top:4px;width:255px;height:66px}#stage.portrait #debt-card .instrument-label{left:41px;top:5px;width:205px;height:17px}#stage.portrait #debt-number{left:42px;top:27px;width:202px;height:26px}#stage.portrait .simulation-label{left:41px;top:54px;width:207px;height:10px}#stage.portrait #stats-card{left:4px;top:73px;width:277px;height:64px}#stage.portrait .stat.score{left:0;width:105px}#stage.portrait .stat.loaded{left:104px;width:103px}#stage.portrait .stat.flights{left:206px;width:70px}#stage.portrait .stat-label{top:7px;left:5px;width:calc(100% - 9px);height:15px}#stage.portrait .stat-icon{left:6px;top:29px;width:23px;height:26px}#stage.portrait .stat canvas{left:28px;top:27px;width:calc(100% - 32px);height:31px}#stage.portrait .stat.flights .stat-icon{width:21px}#stage.portrait #sound-toggle{left:286px;top:76px;width:46px;height:49px}#stage.portrait #settings-toggle{left:340px;top:76px;width:46px;height:49px}#stage.portrait #sound-state{top:49px;font-size:9px}#stage.portrait #sam-card{left:2px;top:141px;width:283px;height:96px}#stage.portrait #sam-face{right:0;width:105px;height:96px}#stage.portrait #sam-bubble{left:2px;width:179px;height:106px}#stage.portrait #agent-card{left:204px;top:238px;width:182px;height:101px}#stage.portrait #agent-face{right:0;top:18px;width:101px;height:80px}#stage.portrait #agent-bubble{left:0;top:0;width:127px;height:80px}#stage.portrait #load-zone{left:75px;top:317px;width:229px;height:70px;background:#313d3d26;border-color:#e9ce88}#stage.portrait #load-zone>span{font-size:12px;bottom:8px;padding:4px 8px}#stage.portrait .lane{top:443px;width:126px;height:136px}#stage.portrait .lane:nth-child(1){left:2px}#stage.portrait .lane:nth-child(2){left:131px}#stage.portrait .lane:nth-child(3){left:260px}#stage.portrait .platform-skin{object-fit:fill}#stage.portrait .cargo{left:4px;top:7px;width:118px;height:92px}#stage.portrait .lane-category{left:5px;right:5px;bottom:13px;height:19px;gap:2px}#stage.portrait .lane-category>.cat-icon{width:19px;height:20px}#stage.portrait .lane-category>.cat-title{width:calc(100% - 22px);height:22px}#stage.portrait .lane-next{left:9px;top:-44px;width:109px;height:39px}#stage.portrait .next-item{right:4px;top:2px;width:68px;height:34px}#stage.portrait #action-line{left:5px;right:5px;top:580px;height:17px;font-size:10px;background:#183541d9;padding:2px}#stage.portrait #event-note{left:12px;top:369px;width:366px;font-size:12px}#stage.portrait #shred-zone{left:4px;top:600px;width:168px;height:139px;border-color:#cbba72;background:#173b29;overflow:hidden}#stage.portrait #shred-zone>img{width:100%;height:100%;object-fit:cover;object-position:center 32%}#stage.portrait #wait-zone{left:176px;top:600px;width:210px;height:139px;border-color:#c1c9bd;background:#263e42;overflow:hidden}#stage.portrait #wait-zone>img{width:100%;height:100%;object-fit:cover;object-position:center 42%}#stage.portrait #wait-count{right:11px;top:47px;font-size:17px}#stage.portrait .mobile-only{display:block}#stage.portrait .desktop-only{display:none}#stage.portrait #category-strip{top:744px;height:99px}#stage.portrait #category-list{left:19px;top:3px;width:352px;height:89px;gap:4px}#stage.portrait .category-card{flex-basis:85px;height:88px;grid-template-rows:30px 34px 22px}#stage.portrait .category-card span{font-size:11px;max-width:81px}#stage.portrait #cat-prev{left:0;width:18px}#stage.portrait #cat-next{left:auto;right:0;width:18px}
@media(max-width:700px){.overlay{padding:14px}.paper-modal{padding:17px;max-height:calc(100svh - 24px)}.paper-modal>h2{font-size:27px}.rule{font-size:13px;padding:8px 0}#modal{width:96vw;height:93svh;max-height:94svh}#modal-head{padding:12px 14px}#modal-title{font-size:20px}#modal-body{padding:10px 13px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.catalog-item{padding:6px;min-height:149px}.catalog-item img{height:115px}.catalog-item strong{font-size:12px}.result-main{grid-template-columns:repeat(2,1fr);gap:8px}.result-stat strong{font-size:31px}#result-grid{grid-template-columns:repeat(2,1fr)}.credit-body{margin:18px auto}.credit-body p{font-size:18px;line-height:1.65}.credit-counter{margin:23px 0;width:100%;gap:9px}.credit-counter canvas{height:42px}.credit-counter label{font-size:13px}.credit-counter small{font-size:10px}.credit-body>small{font-size:12px}#credits-screen{padding:12px 15px}.credit-body h2{font-size:21px}.setting-row input[type=range]{max-width:130px}.rtl-ui .category-result summary span{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}/* No CSS animations or transitions are intentionally present. */

/* Refined master numerals and genuine source panel icons. */
.stat-icon{visibility:hidden}.stat.score canvas{left:42px;width:86px}.stat.loaded canvas{left:49px;width:78px}.stat.flights canvas{left:45px;width:43px}
#sound-state{left:-5px;width:65px;top:49px;font-size:11px;min-width:0;text-align:center;line-height:13px}
#stage.portrait .stat.score canvas{left:29px;width:71px}#stage.portrait .stat.loaded canvas{left:35px;width:64px}#stage.portrait .stat.flights canvas{left:33px;width:35px}
#stage.portrait #sound-state{width:49px;left:0;top:49px;font-size:8px}
#stage.portrait .world-bg{background-image:linear-gradient(#1b465e,#1b465e 24%,#b8ad8f 55%,#657b78 86%,#16313a),var(--airfield-art, url("assets/scene/airfield-crop-3.5.0.webp?v=3.5.1"));background-size:100% 100%,1080px 251px;background-position:center,58% 197px;background-blend-mode:normal;}
/* Put the airfield above the solid mobile fill rather than under an opaque gradient. */
#stage.portrait .world-bg{background-image:var(--airfield-art, url("assets/scene/airfield-crop-3.5.0.webp?v=3.5.1")),linear-gradient(#1b465e,#7ca3aa 28%,#b8ad8f 55%,#657b78 86%,#16313a);background-size:1080px 251px,100% 100%;background-position:58% 197px,center;}
#debt-card .instrument-label{height:18px;top:7px}.stat-label{height:16px;top:10px}.lane-category>.cat-title{height:21px}

#debt-number{width:219px}.debt-arrow{position:absolute;right:8px;top:28px;width:13px;height:29px;object-fit:contain}#stage.portrait #debt-number{width:189px}#stage.portrait .debt-arrow{top:27px;right:8px;width:12px;height:24px}
/* Start and briefing are separate scenes, before any game instruments appear. */
#stage:is([data-view="language"], [data-view="brief"]) > :not(.world-bg) {
  display: none !important;
}
#stage:is([data-view="language"], [data-view="brief"])::before {
  display: none;
}
#stage:is([data-view="language"], [data-view="brief"]) .world-bg {
  background: #17323e var(--start-art, url("assets/scene/start-airfield.webp?v=3.5.1")) center / cover no-repeat;
}
/* Preload feedback belongs below the briefing card, on the scene itself. */
.brief-content {
  width: min(660px, 100%);
  margin: auto;
}
.brief-content .paper-modal {
  width: 100%;
  max-height: none;
}
.brief-footer {
  padding: 12px 10px 0;
  text-align: center;
  color: #d0dbd5;
  text-shadow: 0 1px 3px #061017;
}
.brief-footer #asset-status {
  margin: 0 0 8px;
  line-height: 1.5;
}
.brief-footer small { display: block; line-height: 1.5; }
.rtl-ui .brief-footer { direction: rtl; font-family: Tahoma, Arial, sans-serif; }

/* Every desktop category is visible at once. */
#category-list {
  left: 5px;
  right: 5px;
  top: 3px;
  width: auto;
  height: 82px;
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 3px;
  overflow: visible;
  touch-action: manipulation;
}
.category-card {
  min-width: 0;
  width: 100%;
  height: 82px;
  grid-template-rows: 26px 31px 21px;
  padding: 2px 3px;
}
.category-card img { width: 41px; height: 25px; }
.category-card span {
  max-width: 100%;
  font-size: 10px;
  line-height: 1.07;
  overflow: visible;
  overflow-wrap: anywhere;
}
.category-card b { font-size: 21px; }
#cat-prev,
#cat-next,
#category-strip .poster-photo,
#category-strip .poster-text { display: none; }
.catalog-category h3 { text-transform: uppercase; }

/* A paper receipt remains distinct from the dark results panel. */
.debt-receipt {
  position: relative;
  margin: 28px 0 12px;
  padding: 23px 26px 27px;
  color: #26332f;
  background: repeating-linear-gradient(0deg, #ffffff00 0 3px, #927c4310 3px 4px),
    linear-gradient(105deg, #f7edcf, #fff8df 46%, #eadebc);
  border-top: 1px solid #fff8e2;
  box-shadow: 0 7px 16px #04172066;
  font-family: "Courier New", monospace;
}
.debt-receipt::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 8px;
  background: linear-gradient(135deg, #eadebc 25%, transparent 25%) -5px 0 / 12px 12px repeat-x,
    linear-gradient(225deg, #eadebc 25%, transparent 25%) -5px 0 / 12px 12px repeat-x;
}
.results .debt-receipt h3 {
  color: #25362f;
  margin: 0 0 14px;
  padding-bottom: 13px;
  border-bottom: 2px dashed #867d61;
  font-size: 20px;
  letter-spacing: .02em;
}
.debt-receipt .report-row {
  border-bottom: 1px dashed #aa9f7c;
  font-size: 14px;
  line-height: 1.5;
}
.debt-receipt .report-row b { color: #243c31; }
.debt-receipt .report-row:last-child {
  margin-top: 9px;
  padding: 12px 0;
  border-top: 2px solid #6d775f;
  border-bottom: 2px solid #6d775f;
  font-weight: 700;
}
.debt-receipt > small { display: block; margin-top: 14px; line-height: 1.5; }
.rtl-ui .debt-receipt { font-family: Tahoma, Arial, sans-serif; }

/* Epilogue navigation follows the physical screen corners in every language. */
#credits-screen header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  direction: ltr;
}
#skip-credits { justify-self: start; }
#credit-sound { justify-self: center; }
#credit-page { justify-self: end; }
#credits-screen footer { direction: ltr; }

/* Phones keep full-size targets, then show a readable four-column tally grid. */
#stage.portrait { height: 1080px; }
#stage.portrait #category-strip { top: 744px; height: 336px; }
#stage.portrait #category-list {
  left: 5px;
  right: 5px;
  top: 4px;
  width: auto;
  height: 324px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, 78px);
  gap: 4px;
}
#stage.portrait .category-card {
  height: 78px;
  grid-template-rows: 23px 29px 20px;
}
#stage.portrait .category-card span { max-width: 100%; font-size: 11px; }
#stage.portrait .category-card img { width: 38px; height: 22px; }
#stage.portrait .category-card b { font-size: 20px; }
@media (max-width: 700px) {
  .brief-content .paper-modal { max-height: none; }
  .brief-footer { padding: 10px 3px 0; }
  .debt-receipt { padding: 19px 14px 22px; }
  .results .debt-receipt h3 { font-size: 17px; }
  .debt-receipt .report-row { flex-wrap: wrap; gap: 3px 12px; font-size: 12px; }
  .debt-receipt .report-row b { margin-inline-start: auto; }
  #credits-screen header { gap: 8px; font-size: 11px; }
  #credits-screen header button { padding: 7px 9px; }
}

/* Immediate scoring feedback stays clear of the cargo and drop label. */
#stage:not(.portrait) #wait-count {
  top: 54px;
  right: 16px;
  width: 110px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #11212a;
}
#score-feedback {
  position: absolute;
  left: 50%;
  top: -44px;
  transform: translateX(-50%);
  z-index: 2;
  min-width: 72px;
  padding: 3px 12px;
  border: 2px solid #f3d880;
  border-radius: 7px;
  background: #204c36;
  color: #fff0a7;
  box-shadow: 0 3px 8px #081c20aa;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  direction: ltr;
  pointer-events: none;
}
#stage.portrait #score-feedback {
  top: -31px;
  min-width: 57px;
  padding: 2px 9px;
  font-size: 20px;
}

/* The supplied title artwork is the interface: exact pixels on desktop, with
   transparent, keyboard-accessible hitboxes over the four painted buttons. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }













#initial-status { position: fixed; left: 10px; right: 10px; bottom: 10px; margin: 0; text-align: center; background: #102938ed; }
#initial-status:empty { display: none; }

/* All instrument and tally digits are painted from the alpha digit atlas. */
#time-number { left: 69px; top: 15px; width: 120px; height: 52px; background: transparent; }
#stage.portrait #time-number { left: 44px; top: 14px; width: 76px; height: 38px; }
.lane-category { background: transparent; }
.next-item, .cat-icon, .cat-title, .category-count { background: transparent; }
.next-item { right: 8px; top: 6px; width: 96px; height: 44px; }
#stage.portrait .next-item { right: 5px; top: 4px; width: 64px; height: 30px; }
.category-card { grid-template-rows: 45px 28px; padding: 4px 3px; }
.category-card img { width: 57px; height: 42px; }
.category-count { display: block; width: 100%; max-width: 67px; height: 30px; direction: ltr; }
#stage.portrait .category-card { grid-template-rows: 41px 27px; padding: 3px; }
#stage.portrait .category-card img { width: 57px; height: 40px; }
#stage.portrait .category-count { width: 100%; max-width: 70px; height: 28px; }

/* Preserve the painted support sign; the only overlay occupies its original LED. */
#stage:not(.portrait) #wait-count { left: 203px; top: 58px; right: auto; width: 47px; height: 22px; padding: 0; background: transparent; outline: none; border: 0; font-size: 15px; line-height: 22px; letter-spacing: 0; text-align: center; color: #ff452e; }
#stage.portrait #wait-count { left: 152.5px; top: 34px; right: auto; width: 32.3px; height: 15.1px; padding: 0; background: transparent; outline: none; border: 0; font-size: 10px; line-height: 15px; letter-spacing: 0; text-align: center; color: #ff452e; }

/* Phone composition reuses the same artwork. Its painted buttons remain large
   enough to read and tap instead of shrinking the full desktop poster. */


/* A shared flow layout reserves separate rows for notices and the latest score.
   The rail grows upward, away from the load target, in either orientation. */
#action-feedback { position: absolute; left: 414px; bottom: 410px; width: 363px; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 30; pointer-events: none; }
#action-feedback #event-note { position: static; width: 100%; margin: 0; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
#action-feedback #score-feedback { position: static; margin: 0; transform: none; width: auto; max-width: 100%; }
#stage.portrait #action-feedback { left: 10px; bottom: 769px; width: 185px; gap: 5px; }
#stage.portrait #action-feedback #event-note { width: 100%; max-width: 100%; font-size: 12px; padding: 4px 6px; }
#stage.portrait #action-feedback #score-feedback { font-size: 20px; }

/* Instrument text paints only alpha glyphs. Keep the complete coin unobstructed. */
#debt-card .instrument-label { left: 55px; top: 7px; width: 212px; height: 17px; background: transparent; }
#debt-number { left: 55px; top: 29px; width: 209px; height: 27px; background: transparent; }
#debt-card .simulation-label { left: 55px; top: 60px; width: 211px; height: 12px; font-size: 9.5px; font-weight: 800; line-height: 12px; text-align: center; white-space: nowrap; color: #fdf2df; background: transparent; }
#debt-card .simulation-label.surge { color: #ffca81; }
#stage.portrait #debt-card .instrument-label { left: 48px; top: 7px; width: 183px; height: 15px; }
#stage.portrait #debt-number { left: 48px; top: 27px; width: 183px; height: 23px; }
#stage.portrait #debt-card .simulation-label { left: 48px; top: 52px; width: 183px; height: 10px; font-size: 8px; line-height: 10px; }
.rtl-ui #debt-card .simulation-label { font-family: Tahoma, Arial, sans-serif; direction: rtl; }


/* 3.5.2 HUD integration and speech sprites */
#hud .instrument > .skin{display:none}
#sound-toggle>img,#settings-toggle>img{display:none}
#sound-toggle,#settings-toggle{background:transparent!important;border:0;box-shadow:none}
.speech-bubble{background:none;border:0;border-radius:0;padding:0;box-shadow:none;pointer-events:none}
.speech-bubble::after{display:none}
.speech-bubble .speech-sprite{display:block;width:100%;height:auto;object-fit:contain}
#sam-card{position:absolute;left:508px;top:4px;width:266px;height:116px}
#agent-bubble{left:-18px;top:0;width:158px;height:auto;z-index:4}
#sound-state{top:60px;left:-4px;min-width:59px;text-align:center}
