:root{color-scheme:dark;--cream:#fff0c8;--gold:#d5bd73;--cyan:#65f4ec}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overscroll-behavior:none}body{font:16px Arial,sans-serif;background:#172013;color:var(--cream)}button,input{font:inherit}button{cursor:pointer;color:inherit;border:1px solid #bdb17e;background:linear-gradient(#4b5530,#2c391e);border-radius:10px;font-weight:700;box-shadow:inset 0 1px 1px #ffffff35,0 2px 4px #0005;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:hover{filter:brightness(1.12)}button:active{transform:translateY(1px)}button:focus-visible,canvas:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}button:disabled{cursor:default;opacity:.48;filter:saturate(.45)}[hidden]{display:none!important}button b,button small{display:block}small{font-size:12px}h1,h2,h3,p{margin:0}button svg{pointer-events:none}.game-shell{height:100dvh;max-height:100dvh;width:100%;max-width:1800px;margin:auto;display:flex;flex-direction:column;position:relative;overflow:hidden;background:#273a1d}.top-hud{flex:none;z-index:6;position:relative;background:linear-gradient(95deg,#252f1a,#434a25 60%,#29331c);box-shadow:0 3px 10px #0007;border-bottom:1px solid var(--gold);padding:env(safe-area-inset-top,0px) 14px 0}.top-line{height:57px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px}.brand{display:flex;align-items:center;gap:8px;white-space:nowrap}.brand img{height:39px;width:39px;border-radius:50%;border:1px solid var(--gold)}.brand strong{font-size:25px;text-shadow:0 2px #1c2516}.top-line time{font-size:34px;letter-spacing:1px;font-weight:900;text-align:center;min-width:118px;border:1px solid #a3945f;border-radius:9px;box-shadow:inset 0 0 10px #18210f;line-height:1.1;padding:3px 8px}.top-controls{display:flex;direction:ltr;gap:6px}.icon-button{width:37px;height:37px;font-size:19px}.stats{height:34px;display:flex;justify-content:space-between;gap:12px;max-width:720px;margin:auto;align-items:center;font-size:14px}.stats>span{display:flex;align-items:center;gap:6px}.stats b{font-size:18px;font-variant-numeric:tabular-nums}.stats small{color:#d6d7b4;font-size:11px}.led{width:8px;height:8px;display:inline-block;background:#a3e855;box-shadow:0 0 7px #c4ff5a77;border-radius:50%}.led.danger{background:#f45140}.coin{display:inline-block;width:15px;height:15px;background:linear-gradient(120deg,#fff2b0,#d29b22);border:2px solid #eed993;border-radius:50%;box-shadow:0 2px 0 #866411}.stat-icon{font-size:20px;color:#ecd291}.day-progress{height:2px;background:#101a0b;margin:0 -14px;direction:ltr}.day-progress i{display:block;height:100%;width:0;background:var(--gold)}
.map-stage{position:relative;flex:1;min-height:120px;overflow:hidden;background:#617340}#world{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.map-tools{position:absolute;left:12px;top:12px;display:flex;flex-direction:column;gap:6px}.map-tools button{width:34px;height:34px;background:#2c391ee8;border-color:#ddc58c;font-size:18px;backdrop-filter:blur(4px)}.map-tools #speed{font-size:13px}.map-bottom{position:absolute;bottom:12px;left:12px;right:12px;display:flex;direction:ltr;align-items:flex-end;justify-content:space-between;gap:10px;pointer-events:none}#minimap{width:106px;height:71px;flex-shrink:0;border-radius:10px;border:2px solid #ecd18a;box-shadow:0 3px 8px #0008;pointer-events:auto;cursor:pointer;background:#36432a}.radio{display:flex;direction:rtl;gap:8px;align-items:center;max-width:350px;border:1px solid #b69e66;background:#fff0ce;color:#364025;text-align:right;padding:5px 7px;box-shadow:0 3px 6px #0005;border-radius:10px;min-height:54px;pointer-events:auto}.radio-portrait{height:45px;width:38px;flex:none;border-radius:6px;overflow:hidden;border:1px solid #8e885c;background:#d6c59d}.radio-portrait svg{width:100%;height:100%}.radio-copy{display:flex;flex-direction:column;gap:3px;line-height:1.25}.radio-copy small{color:#70754c;font-size:10px}.radio-copy>span{font-size:13px;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.radio i{width:6px;height:6px;background:#89b740;border-radius:50%;flex:none}.radio.urgent{border-color:#b84a32;background:#fff0dc}.radio.urgent i{background:#d83d28}.red-banner{position:absolute;inset:0 0 auto;display:flex;align-items:center;justify-content:center;gap:16px;background:linear-gradient(#bf392b,#8b1b15);color:#fff3d2;border:1px solid #e89762;padding:8px;box-shadow:0 4px 12px #3d090a80;z-index:2;font-size:23px}.red-banner strong{font-size:27px;letter-spacing:1px}.map-stage.alert-active:after{position:absolute;inset:0;content:'';pointer-events:none;box-shadow:inset 0 0 28px #df342877}.alert-active .map-tools{top:70px}.toast{position:absolute;left:50%;top:18%;transform:translate(-50%,-8px);max-width:90%;min-width:220px;background:#19281bf0;border:1px solid #e4d29e;box-shadow:0 8px 25px #0005;padding:13px 18px;border-radius:12px;font-size:15px;text-align:center;opacity:0;transition:.18s;pointer-events:none;z-index:5}.toast.show{opacity:1;transform:translate(-50%,0)}
.command-area{position:relative;flex:none;z-index:7;background:linear-gradient(95deg,#29351d,#343f22 55%,#27331b);border-top:2px solid #beaa6b;padding:0 10px max(7px,env(safe-area-inset-bottom));box-shadow:0 -4px 15px #17200c66}.selected-strip{height:38px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #bca66866;margin-bottom:7px}.selected-strip>span{display:flex;align-items:center;gap:12px}.selected-strip strong{font-size:18px;white-space:nowrap}.selected-strip small{color:#e2dcb7;font-size:11px}.health{height:9px;border-radius:7px;background:#14200e;border:1px solid #a99762;width:90px;overflow:hidden;direction:ltr}.health i{display:block;height:100%;width:100%;background:linear-gradient(#c4f779,#65aa31);border-radius:7px}.selected-strip button{border:0;box-shadow:none;background:transparent;font-size:11px;padding:5px;white-space:nowrap}.selected-strip button b{display:inline-block;background:#c7b875;color:#26341d;border-radius:9px;min-width:17px;padding:2px}.roster-wrap{position:relative;max-width:760px;margin:auto}.roster{display:flex;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;gap:7px;padding:3px 2px 6px;scroll-behavior:smooth;scroll-snap-type:x proximity}.roster::-webkit-scrollbar{display:none}.crew-card{position:relative;flex:0 0 70px;height:98px;border-radius:10px;padding:0;overflow:hidden;background:#e5c7a0;box-shadow:inset 0 0 0 1px #fcf3d5,0 2px 3px #0005;scroll-snap-align:center;border:2px solid #f4ddb3}.crew-card .portrait{display:block;height:63px;overflow:hidden;background:#e9cfb0}.portrait svg{display:block;width:100%;height:100%}.crew-card .crew-label{position:absolute;bottom:0;width:100%;background:linear-gradient(#354321ed,#1e2e17);padding:3px 3px 4px;min-height:34px}.crew-label b{font-size:14px;line-height:16px}.crew-health{margin:3px auto 0;height:5px;border-radius:5px;background:#172515;width:80%;overflow:hidden;direction:ltr}.crew-health i{display:block;height:100%;background:#9ce14b}.crew-card.selected{border-color:#72fff4;box-shadow:0 0 7px #46eddf,inset 0 0 0 1px white}.crew-card.selected .crew-label{background:linear-gradient(#2b5946ed,#19392f)}.crew-card.wounded .portrait{filter:grayscale(.8)}.crew-card.wounded{border-color:#e8624b}.crew-state{position:absolute;top:3px;left:3px;width:18px;height:18px;display:grid;place-items:center;background:#354c25e0;border:1px solid #e2d4a4;border-radius:6px;font-size:11px}.crew-card.wounded .crew-state{background:#9e2821}#roster-next{position:absolute;left:-7px;top:27px;z-index:2;border:0;box-shadow:0 1px 7px #0005;width:22px;height:30px;border-radius:5px;background:#334622ed;font-size:25px;line-height:20px}.actions{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;max-width:760px;margin:2px auto 0}.actions button{height:65px;border:1px solid #c8b77d;border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;background:linear-gradient(135deg,#616537,#344220 75%);box-shadow:inset 0 0 0 2px #ffffff13,0 2px 4px #14210e}.actions button.active{border-color:#ffdd6e;box-shadow:inset 0 0 12px #dbaa2844,0 0 7px #ffcd5380}.action-art{display:block;height:36px;width:42px}.action-art svg{width:100%;height:100%;filter:drop-shadow(0 2px 1px #17221088)}.actions b{font-size:17px;line-height:19px;text-shadow:0 1px 1px #162311}
.emergency-row{display:flex;gap:8px;padding:8px 0;max-width:760px;margin:auto}.emergency{flex:1;min-height:53px;line-height:1.3;padding:6px 8px}.emergency b{font-size:18px}.emergency small{font-weight:400;font-size:11px}.cover{background:linear-gradient(#bd3d2b,#8e2118);border:1px solid #edbd80;flex:1.4}.drone{background:linear-gradient(#2f7374,#174f58);border:1px solid #a8d7c5}.context-panel{position:absolute;bottom:100%;left:10px;right:10px;max-width:660px;margin:0 auto 8px;background:linear-gradient(135deg,#343f20f8,#202f19fa);border:1px solid #deca8c;box-shadow:0 4px 16px #0006;border-radius:13px;padding:12px;max-height:min(39dvh,310px);overflow-y:auto;scrollbar-width:thin}.context-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.context-header strong{font-size:17px}.context-header .close-context{border:0;background:transparent;box-shadow:none;font-size:24px;padding:0 6px;line-height:24px}.context-desc{font-size:12px;line-height:1.4;color:#ddd7b3;margin-bottom:9px}.context-actions{display:flex;flex-wrap:wrap;gap:7px}.context-actions button{padding:9px 12px;min-height:42px;flex:1;font-size:13px;min-width:100px}.context-actions small{font-size:10px;color:#e2dbb2;font-weight:400}.context-actions button.primary-action{background:linear-gradient(#dfb653,#b68125);color:#2d3016;border-color:#ffe091}.context-actions button.danger-action{background:linear-gradient(#bb6034,#804321);border-color:#f1c47c}.task-list{display:grid;gap:6px}.task-item{display:flex;width:100%;text-align:right;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;box-shadow:none;border-color:#9d95657a}.task-item b{font-size:14px}.task-item small{font-size:11px;color:#d7d7b5;font-weight:400;margin-top:3px}.task-item em{font-size:12px;font-style:normal;color:#edcc80;white-space:nowrap}.condition-row{display:flex;gap:8px;flex-wrap:wrap;font-size:11px;margin:7px 0 10px}.condition-row span{background:#142719;border-radius:6px;padding:5px 7px;color:#b7eba3}.condition-row .bad{background:#603426;color:#ffd6aa}.build-progress{height:9px;border-radius:8px;background:#12200d;border:1px solid #8b8554;margin:8px 0;overflow:hidden}.build-progress i{display:block;height:100%;background:linear-gradient(#ffdf69,#dfa92b)}.upgrade-track{display:flex;justify-content:space-between;align-items:center;color:#adae86;font-size:11px;margin:8px 0}.upgrade-track .reached{color:#ffdd77}.empty{padding:12px;color:#d5d5b4;font-size:13px;text-align:center}
.intro{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;overflow-y:auto;background:linear-gradient(90deg,#15241044,#14200d88),url('assets/approved-map.png') center/cover;backdrop-filter:blur(1px);padding:20px}.briefing{position:relative;width:400px;max-width:100%;border:1px solid #d8c58b;border-radius:24px;text-align:center;padding:27px 28px 20px;background:linear-gradient(145deg,#344125f7,#192b18f7);box-shadow:0 25px 100px #15210dbb,inset 0 0 0 5px #bfa66016;backdrop-filter:blur(14px)}.intro-badge{width:80px;height:80px;border-radius:50%;border:3px solid #d8c694;box-shadow:0 4px 20px #0003}.eyebrow{display:block;color:#d4cda7;font-size:12px;letter-spacing:1px;margin-top:12px}.briefing h1{font-size:52px;line-height:1.15;margin:8px 0 14px;font-weight:900;color:#ffe8ab;text-shadow:0 3px 1px #15210f}.intro-lead{font-size:21px;line-height:1.45;font-weight:700}.intro-rule{height:1px;background:linear-gradient(90deg,transparent,#a2965a,transparent);margin:18px 0}.intro-guide{font-size:13px;line-height:1.65;color:#e3dfbe}.mode-choice{display:flex;gap:8px;margin-top:18px}.mode-choice button{flex:1;padding:10px 5px;background:#1d2f1c;border-color:#88865a;box-shadow:none}.mode-choice button.active{background:#5b6031;border-color:#ebd17d;box-shadow:inset 0 0 0 1px #ead28955}.mode-choice b{font-size:15px}.mode-choice small{font-size:12px;margin-top:4px;color:#e4dab2;font-weight:400}.intro-options{display:flex;flex-direction:column;gap:9px;text-align:right;font-size:12px;margin:18px 0}.intro-options label{display:flex;align-items:center;gap:7px;cursor:pointer}.intro-options input{accent-color:#d7bd70;width:16px;height:16px}.primary{width:100%;padding:13px 20px;font-size:18px;border-radius:10px;background:linear-gradient(#e5ca80,#b69345);border:1px solid #ffe9a7;color:#26351b;box-shadow:inset 0 1px 1px white,0 4px 9px #0003}.primary span{display:inline-block;margin-right:12px}.loading-note{font-size:11px;color:#d2d4ad;margin:10px 0 7px}.fiction-note{font-size:10px;color:#aeb698}.intro #start{min-height:48px}dialog{width:480px;max-width:calc(100% - 28px);max-height:85dvh;border:1px solid #d6c48a;border-radius:18px;background:linear-gradient(135deg,#334029,#1c2c1c);color:#fff0ce;padding:25px;box-shadow:0 20px 80px #0008}dialog::backdrop{background:#08130b9c;backdrop-filter:blur(4px)}dialog h2{font-size:29px;margin:8px 0 18px}dialog h3{font-size:18px;margin-top:22px}dialog p{color:#d5d7ba;line-height:1.6;margin:12px 0}.close-dialog{position:absolute;left:12px;top:12px;width:32px;height:32px;font-size:23px}.menu-settings{display:flex;gap:6px;flex-wrap:wrap}.menu-settings button{flex:1;padding:9px 5px;min-width:100px;font-size:12px}.instructions{padding:0 18px 0 0;line-height:1.7;color:#e0e0c5;font-size:14px}.instructions li{margin-bottom:9px}.keys{font-size:11px}.result-numbers{display:flex;justify-content:space-around;margin:28px 0}.result-numbers>div{text-align:center}.result-numbers b{display:block;font-size:30px;color:#f1da8c}.result-numbers span{display:block;font-size:11px;color:#ced3b3}#journal-list{padding:0;list-style:none}#journal-list li{margin-bottom:13px;border-bottom:1px solid #adb47e33;padding-bottom:10px;font-size:13px}#journal-list time{float:left;color:#b9be94;font-size:11px}#journal-list p{margin:5px 0}#restart-dialog>button{margin-top:12px;width:100%;padding:12px}.game-shell.is-ready .command-area{visibility:hidden}
@media(min-width:800px){.top-line{height:60px;max-width:1180px;margin:auto}.top-hud{padding-left:28px;padding-right:28px}.stats{height:29px}.brand strong{font-size:28px}.brand img{height:42px;width:42px}.map-tools{left:24px;top:20px}.map-tools button{width:40px;height:40px}.map-bottom{left:24px;right:24px;bottom:20px}#minimap{width:156px;height:104px}.radio{max-width:430px;min-height:65px;padding:7px 10px}.radio-copy>span{font-size:15px}.radio-copy small{font-size:11px}.radio-portrait{height:52px;width:44px}.command-area{padding:0 24px 8px}.selected-strip{max-width:760px;width:100%;margin:0 auto 6px}.roster-wrap{width:100%}.roster{justify-content:center;gap:10px;padding-bottom:7px}.crew-card{flex-basis:85px;height:104px}.crew-card .portrait{height:68px}.crew-label b{font-size:15px}.actions{width:100%;gap:10px}.actions button{height:57px;flex-direction:row;gap:12px}.action-art{width:40px;height:35px}.actions b{font-size:18px}#roster-next{display:none}.context-panel{bottom:calc(100% + 8px);max-width:590px}.emergency-row{width:100%}.intro{justify-content:flex-start;padding:40px 8%}.briefing{width:420px;padding:30px 35px}.briefing h1{font-size:58px}.intro-badge{width:92px;height:92px}}
@media(max-width:370px){.top-hud{padding-right:9px;padding-left:9px}.brand img{display:none}.brand strong{font-size:22px}.top-line{gap:5px}.top-line time{font-size:29px;min-width:98px}.icon-button{width:32px;height:32px}.stats{font-size:12px}.stats small{display:none}.crew-card{flex-basis:64px;height:90px}.crew-card .portrait{height:57px}.actions button{height:59px}.actions b{font-size:15px}.selected-strip{gap:6px}.selected-strip>span{gap:6px}.health{width:65px}.radio-portrait{display:none}.radio-copy>span{font-size:12px}.map-bottom{gap:7px}.briefing{padding:18px}.intro-badge{width:63px;height:63px}.briefing h1{font-size:42px}.intro-lead{font-size:19px}}
@media(max-height:690px){.top-line{height:48px}.stats{height:28px}.crew-card{height:77px}.crew-card .portrait{height:44px}.actions button{height:53px}.action-art{height:28px}.actions b{font-size:15px}.selected-strip{height:33px}.intro{padding:10px}.briefing{padding:16px 23px}.intro-badge{width:55px;height:55px}.briefing h1{font-size:39px;margin:4px 0 8px}.intro-lead{font-size:18px}.intro-rule{margin:12px 0}.intro-guide{font-size:12px}.intro-options{margin:12px 0}.mode-choice{margin-top:12px}.map-bottom{bottom:8px}}
.crew-card .crew-label{left:0;right:0;display:block}.crew-health{display:block}
.planning-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;padding:8px 12px;background:#28483f;border-bottom:1px solid #8dc7b3}.planning-bar>div{display:flex;flex-direction:column;gap:3px}.planning-bar strong{font-size:13px;color:#dcfff0}.planning-bar small{font-size:11px;line-height:1.35;color:#c6e0d0}.planning-bar button{min-height:44px;min-width:76px;padding:8px;background:#b7debd;color:#18382a;border-color:#d5f1ce;white-space:nowrap}.training-coach{display:flex;align-items:center;justify-content:space-between;gap:9px;flex:none;padding:9px 12px;background:#e8dbb3;color:#273c2b;border-bottom:2px solid #af9255}.coach-copy{min-width:0;flex:1}.coach-copy small{display:block;font-size:10px;font-weight:700;color:#576449;margin-bottom:3px}.coach-copy strong{display:block;font-size:15px;line-height:1.25}.coach-copy p{font-size:12px;line-height:1.4;margin:4px 0 0}.coach-actions{display:flex;flex-direction:column;gap:4px;max-width:112px;flex-shrink:0}.coach-actions button{font-size:11px;line-height:1.2;min-height:36px;padding:7px 9px;background:#36593f;color:#f1f3d7;border-color:#527352}.coach-actions #skip-training{background:transparent;color:#42553e;border:0;box-shadow:none;font-size:10px;min-height:32px;padding:4px}.coach-actions #coach-focus{background:#d8cea6;color:#2c4933;border-color:#aca77a}.tutorial-target{outline:3px solid #78fff2!important;outline-offset:2px;box-shadow:0 0 0 5px #163e32,0 0 13px #73efce!important}.training .context-panel{max-height:min(31dvh,225px)}.training .map-bottom{display:none}.training .context-note{font-size:10px}.training .context-desc{margin-bottom:6px}.training .actions button:disabled{opacity:.35}.start-mission{display:block;width:100%;min-height:46px;margin-top:9px;background:#34482c;border:1px solid #b5bd82;font-size:16px}.briefing #learn{min-height:48px}.planning .selected-strip small{color:#b8efdc}#training-to-menu{display:block;width:100%;margin-top:9px;min-height:44px}.training-coach #coach-next{min-height:44px}.planning-bar[hidden],.training-coach[hidden]{display:none}
.task-status{display:flex;flex-direction:column;gap:4px;padding:9px 11px;border-right:3px solid #9edbc3;background:#152b20;border-radius:6px;margin:8px 0;font-size:13px}.task-status span{font-size:12px;color:#dce5c8}.task-status.blocked{border-color:#ffbd6c;background:#4e3221}.task-status.complete{border-color:#a7dd7d}.actor-notice{font-size:12px;line-height:1.5;color:#ffdb9d;margin:9px 0}.choose-free{padding:9px 12px;min-height:42px;font-size:12px}.coverage-copy{font-size:12px;line-height:1.5;color:#c5eee0;margin:8px 0}.context-note{font-size:11px;color:#d0d2b0;line-height:1.4;margin:7px 0}.context-panel summary{padding:12px 0;font-size:13px;color:#d6e2bc;cursor:pointer}.task-item small{display:block;line-height:1.45}.task-item>span{min-width:0}.context-header .close-context{min-width:40px;min-height:40px}.selected-strip>span{min-width:0}.selected-strip small{line-height:1.3}.health{flex-shrink:0}.context-panel{padding-top:6px}.context-panel .primary-action small{color:#35351c}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.meet-crew{display:block;margin:5px auto 9px;padding:8px 18px;min-height:40px;background:transparent;box-shadow:none;font-size:13px;border-color:#9f9b69}.fiction-note{display:block}
#characters-dialog{width:920px}.character-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 24px}.character-profile{overflow:hidden;border:1px solid #b9a975;border-radius:12px;background:#263820;text-align:center}.profile-portrait{height:170px;background:#f4e4cb;overflow:hidden}.profile-portrait svg{display:block;width:100%;height:100%}.character-profile h3{margin:9px 0 0;font-size:20px}.character-profile p{margin:2px 0 10px;font-size:12px;color:#c7caa8}
@media(min-width:650px){.character-gallery{grid-template-columns:repeat(5,minmax(0,1fr))}.profile-portrait{height:185px}}
/* A separate radio lane keeps reports available while inspecting the map. */
.radio-dock{flex:none;position:relative;z-index:8;padding:5px 10px;background:#182a1d;border-top:1px solid #a5ad7255}.radio-dock .radio{width:100%;max-width:760px;margin:auto;min-height:48px;box-shadow:none}.radio-dock .radio-portrait{height:36px;width:31px}.radio-dock .radio-copy{flex:1}.radio-dock .radio-copy>span{font-size:12px}.radio-dock .radio:after{content:'⌖';font-size:23px;flex:none;color:#4e6240}.training .radio-dock,.is-ready .radio-dock{display:none}.map-stage .context-panel{bottom:8px;max-height:min(39dvh,calc(100% - 70px));margin:0 auto;z-index:4}.map-stage.has-context .map-bottom{display:none}.training .map-stage .context-panel{max-height:min(31dvh,calc(100% - 48px))}.map-stage.alert-active .context-panel{max-height:calc(100% - 72px)}
.squad-bar{display:flex;gap:8px;max-width:760px;margin:auto;border-bottom:1px solid #b6c48b30}.squad-bar>button{min-height:36px;display:flex;align-items:center;gap:8px;border:0;background:transparent;box-shadow:none;font-size:11px;padding:4px 2px}.squad-bar #show-squad{flex:1}.squad-bar #show-squad b{font-size:12px}.squad-bar #squad-summary{font-weight:400;color:#c6d9b9}.squad-bar #help-squad{color:#ffd3a5}.squad-bar #help-count{background:#833c28;color:#ffe9c9;border-radius:5px;padding:2px 5px}.training .squad-bar{display:none}.crew-card{height:108px}.crew-card .portrait{height:61px}.crew-card .crew-label{min-height:45px}.crew-label .crew-status{display:block;font-size:10px;line-height:12px;color:#d6e6bf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crew-card[data-tone='danger'],.crew-card[data-tone='injured']{border-color:#f5a27b}.crew-card[data-tone='danger'] .crew-status,.crew-card[data-tone='injured'] .crew-status{color:#ffcfaa}.crew-card[data-tone='care'] .crew-state{background:#2b7273}.crew-card[data-tone='waiting'] .crew-state{background:#8a6735}.selected-strip small{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#squad-dialog{width:610px;padding:22px 18px;max-height:92dvh}#squad-dialog h2{font-size:25px;margin-bottom:8px}#squad-dialog .squad-explainer{font-size:12px;margin:5px 0 13px}.squad-filters{display:flex;gap:6px;margin:12px 0}.squad-filters button{flex:1;padding:9px 3px;min-height:44px;font-size:11px}.squad-filters button b{display:inline;margin-right:3px}.squad-filters button[aria-pressed='true']{border-color:#88ebce;background:#315c49}.squad-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:18px}.squad-member{display:flex;align-items:center;text-align:right;gap:7px;padding:9px 7px;min-height:91px;box-shadow:none;background:#243e2a;border-color:#6b8565}.squad-member .mini-portrait{width:36px;height:48px;overflow:hidden;border-radius:7px;flex:none;background:#f0d6b8}.mini-portrait svg{width:100%;height:100%;display:block}.squad-member>span:last-child{min-width:0}.squad-member b{font-size:14px}.squad-member .member-status{font-size:12px;color:#e1f0c4;display:block;margin:3px 0}.squad-member small{font-weight:400;font-size:10px;line-height:1.4;color:#d1d8bf}.squad-member[data-tone='injured'],.squad-member[data-tone='danger']{background:#513726;border-color:#e5a776}.squad-member[data-tone='care']{background:#214843;border-color:#80bfb4}.squad-member[aria-pressed='true']{box-shadow:inset 0 0 0 2px #80ead0}.squad-member[hidden]{display:none}
.survival-note{font-size:12px;line-height:1.55;padding:10px 9px;border:1px solid #8bb2a351;background:#9ed5c310;border-radius:9px;margin:12px 0;color:#c6e7d5}.survival-note b{display:block;color:#d9f4d7}.survival-note span{display:block;margin-top:5px}.briefing{flex-shrink:0;margin:auto}.intro .survival-note b{display:inline}.opening-links{display:flex;justify-content:center;gap:7px}.opening-links .meet-crew{font-size:11px;padding:6px 9px;margin:5px 0 8px}.intro .intro-rule{margin:12px 0}.intro .intro-badge{height:64px;width:64px}.intro .intro-options{margin:12px 0}.intro .mode-choice{margin-top:12px}.intro .briefing h1{margin-bottom:8px}
/* Lightweight cinematic: the approved map and fictional portraits, no video download. */
.cinematic{position:absolute;inset:0;z-index:30;overflow:hidden;background:#111e17;color:#fff2d4;isolation:isolate}.opening-landscape{position:absolute;inset:-10%;background:url('assets/approved-map.png') center/cover;animation:opening-pan 12s ease-in-out both;filter:saturate(.8)}.opening-shade{position:absolute;inset:0;background:linear-gradient(0deg,#10231af5 2%,#15251e25 55%,#101e18cc),linear-gradient(90deg,#11241d99,transparent);transition:background 1s}.opening-top{position:absolute;top:max(20px,env(safe-area-inset-top));left:20px;right:20px;display:flex;align-items:center;justify-content:space-between;gap:8px;z-index:2}.opening-top>span{font-size:12px;letter-spacing:1px;color:#e3d9b2}.opening-top>div{display:flex;gap:8px}.opening-top button{min-height:44px;padding:7px 12px;font-size:11px;border-color:#a4b69b88;background:#162b22b8;backdrop-filter:blur(8px);box-shadow:none}.opening-scene{position:absolute;inset:16% 24px 14%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;opacity:0;transform:translateY(18px);transition:opacity 1s,transform 1.4s;pointer-events:none}.opening-kicker{display:block;font-size:12px;letter-spacing:2px;color:#e4cb89;margin-bottom:18px}.opening-scene h2{font-size:clamp(38px,8vw,86px);line-height:1.12;font-weight:900;text-shadow:0 3px 22px #0d201b99;letter-spacing:-1.5px}.opening-scene p{font-size:clamp(17px,3vw,25px);line-height:1.55;margin-top:20px;color:#f3eaca}.opening-home{align-items:flex-start;text-align:right;inset-inline:8%}.opening-team h2{font-size:clamp(32px,6vw,65px)}.opening-title img{width:96px;height:96px;border-radius:50%;border:3px solid #e4cf91;box-shadow:0 0 65px #e9c97733;margin-bottom:22px}.opening-title h2{font-size:clamp(61px,13vw,132px);color:#ffe5a3;text-shadow:0 3px 1px #13271d,0 15px 60px #0005}.opening-portraits{display:flex;justify-content:center;align-items:flex-end;margin-top:35px;width:min(660px,100%);direction:rtl}.opening-portraits>span{width:13%;height:clamp(93px,20vw,180px);overflow:hidden;border:1px solid #d5bd79;border-radius:9px;background:#c7d7b1;box-shadow:0 12px 25px #071f1688;transform:translateY(15px) rotate(-3deg);transition:transform 1.3s;flex-shrink:0;margin:0 -1.2%}.opening-portraits>span:nth-child(2n){transform:translateY(30px) rotate(4deg)}.opening-portraits svg{width:100%;height:100%;display:block}.cinematic[data-shot='team'] .opening-portraits>span{transform:translateY(0) rotate(-3deg)}.cinematic[data-shot='team'] .opening-portraits>span:nth-child(2n){transform:translateY(12px) rotate(4deg)}.cinematic[data-shot='home'] .opening-home,.cinematic[data-shot='team'] .opening-team,.cinematic[data-shot='title'] .opening-title{opacity:1;transform:none}.cinematic[data-shot='title'] .opening-landscape{filter:saturate(.5) brightness(.6)}.opening-footer{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:24px;right:24px;display:flex;flex-direction:column;align-items:center;gap:15px}.opening-footer>span{font-size:10px;color:#b9cbb5;text-align:center}.opening-progress{width:100px;height:2px;background:#ffffff25;direction:ltr}.opening-progress i{display:block;height:100%;background:#e6cf91;width:0}.cinematic.is-paused *{animation-play-state:paused!important}.cinematic.reduced-motion *{animation:none!important;transition:none!important}.cinematic.reduced-motion .opening-landscape{transform:scale(1.05)}
@keyframes opening-pan{0%{transform:scale(1.12) translate(3%,2%)}100%{transform:scale(1.32) translate(-3%,-2%)}}
@media(min-width:800px){.briefing{margin:0}.radio-dock{padding:5px 24px}.radio-dock .radio{max-width:960px}.radio-dock .radio-portrait{display:block}.radio-dock .radio-copy>span{font-size:13px}.opening-home{inset-inline:13%}.squad-bar{width:100%}}
@media(max-width:370px){.crew-card{height:99px}.crew-card .portrait{height:53px}.crew-label b{font-size:13px}.squad-member{gap:5px;padding:8px 5px}.squad-member .mini-portrait{width:29px;height:43px}.opening-top{left:12px;right:12px}.opening-top>span{font-size:10px}.opening-top button{padding:6px 8px}.intro{padding:12px}.intro .briefing{padding:17px}.intro .intro-lead{font-size:17px}.intro .survival-note{font-size:11px}}
@media(max-height:690px){.crew-card{height:91px}.crew-card .portrait{height:46px}.radio-dock .radio{min-height:44px}.radio-dock{padding:3px 8px}.squad-bar>button{min-height:32px}.opening-title img{width:65px;height:65px;margin-bottom:12px}.opening-scene p{margin-top:12px}}
@media(prefers-reduced-motion:reduce){.cinematic *{animation:none!important;transition:none!important}}
.map-stage .context-panel{overscroll-behavior:contain}.context-header{position:sticky;top:0;z-index:2;background:#2e3c22;padding:3px 0;border-radius:6px}.member-location{display:block}.crew-label .crew-status{padding-top:1px}
@media(max-width:799px){.map-tools{flex-direction:row}.map-bottom{justify-content:flex-end}}
/* Debrief separates survival, completed evacuations and unfinished work. */
.map-tools #speed.emergency-speed{font-size:10px;line-height:1.15;background:#296251;color:#e2fff0;opacity:1;filter:none;border-color:#96d8bc}.emergency small{font-variant-numeric:tabular-nums}#result-dialog{width:620px;max-height:92dvh;padding:24px 22px}#result-dialog h2{font-size:34px;margin:8px 0 10px}#result-dialog #result-copy{font-size:13px;line-height:1.5;margin:0 0 13px}.result-survival{text-align:center;padding:10px;margin:0 0 18px}.result-survival b{font-size:16px}.result-survival span{font-size:11px;margin:2px 0 0}.result-rescue{padding:17px 16px;border:1px solid #b7b27b;border-radius:14px;background:linear-gradient(125deg,#41553a,#253e2b)}.result-rescue-heading{display:flex;align-items:center;justify-content:space-between}.result-rescue-heading small{font-size:12px;color:#e0e7c9}.result-rescue-heading strong{display:block;font-size:48px;font-weight:900;line-height:1.2;color:#ffdf90;direction:ltr;text-align:right}.rescue-mark{font-size:45px;color:#c8dcb0;opacity:.7}.rescue-progress{height:8px;background:#112d21;border-radius:8px;overflow:hidden;margin:12px 0;direction:ltr}.rescue-progress i{display:block;height:100%;background:linear-gradient(90deg,#71cbb1,#c8e595);border-radius:8px}.result-civilian-states{display:flex;flex-wrap:wrap;gap:7px 14px;color:#dce7cf;font-size:11px;line-height:1.4}.result-civilian-states b{color:#fff0cc}.result-rescue #result-goal{font-size:12px;line-height:1.4;color:#f8dda0;margin:12px 0 0}.result-section{margin:20px 0 0}.result-section h3{font-size:16px;margin:0 0 12px}.result-squad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.result-squad>div{text-align:center;border:1px solid #75866966;background:#152d2190;border-radius:9px;padding:10px 2px}.result-squad b{display:block;color:#e1ecd0;font-size:25px}.result-squad span{display:block;font-size:10px;line-height:1.35;color:#c2d5bd}.result-numbers{margin:20px 0;gap:5px}.result-numbers b{font-size:26px}.result-defenses{border-top:1px solid #92a77f44;border-bottom:1px solid #92a77f44;padding:4px 0}.result-defenses summary{padding:12px 0;font-size:12px;cursor:pointer;color:#d8e2ba}.result-defenses #result-defenses>div{display:flex;justify-content:space-between;gap:12px;font-size:11px;padding:9px 0;border-top:1px solid #92a77f22}.result-defenses small{display:block;font-size:10px;color:#d6c793;margin-top:3px}.result-advice ol{padding:0;list-style:none;counter-reset:advice;display:grid;gap:9px}.result-advice li{counter-increment:advice;position:relative;padding:12px 42px 12px 12px;border:1px solid #8ca17a55;background:#1b3325;border-radius:10px}.result-advice li:before{content:counter(advice);position:absolute;right:12px;top:12px;width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:#d8c17b;color:#233d2c;font-weight:700;font-size:11px}.result-advice li b{font-size:12px;color:#f1e7c2;line-height:1.45;display:block}.result-advice li p{font-size:12px;line-height:1.5;margin:5px 0 0;color:#cbdcc6}.result-buttons{display:flex;gap:8px;margin-top:20px}.result-buttons .primary{flex:1.5;min-width:0;font-size:16px;padding:13px 8px}.result-buttons #result-learn{flex:1;font-size:12px;padding:10px 6px;background:#2d4833}.result-buttons button{min-height:48px}
@media(max-width:370px){#result-dialog{padding:20px 15px}.result-squad{gap:4px}.result-squad span{font-size:9px}.result-rescue{padding:14px 12px}.result-advice li{padding-right:37px}.result-advice li:before{right:9px}}
