:root{color-scheme:dark;--ink:#e7f4f5;--muted:#a4bac2;--gold:#f8bd62;--aqua:#57e9d1;--navy:#061722;--stroke:rgba(198,239,249,.16);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}html,body{margin:0;overflow:hidden;width:100%;height:100%;background:#061b27;color:var(--ink);overscroll-behavior:none}
button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #5ee9dc;outline-offset:4px}
#viewport{position:relative;width:100%;height:100%;height:100dvh;isolation:isolate;overflow:hidden}
#world{position:absolute;inset:0;touch-action:none;z-index:0}
#world canvas{display:block;width:100%;height:100%;touch-action:none}
#vignette{position:absolute;inset:0;pointer-events:none;z-index:1;background:linear-gradient(180deg,rgba(3,13,24,.44),transparent 21%,transparent 64%,rgba(2,14,23,.66) 100%),linear-gradient(90deg,rgba(3,19,30,.22),transparent 35%,transparent 65%,rgba(3,19,30,.15));transition:opacity 1s}
.weather-grain{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:.16;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.77' numOctaves='2' seed='8' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E")}
.hidden{display:none!important}
.topbar{height:87px;position:absolute;z-index:11;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,3.2vw,50px);background:linear-gradient(180deg,rgba(3,19,30,.86),rgba(3,19,30,0));pointer-events:none}
.topbar>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:12px}.brand-shield{position:relative;display:grid;place-items:center;width:45px;height:48px;font-size:17px;font-weight:950;font-style:italic;color:#d8f7f6;letter-spacing:-2px;background:linear-gradient(155deg,#21657e,#073b58);clip-path:polygon(50% 0%,96% 19%,92% 78%,50% 100%,8% 78%,4% 19%);box-shadow:0 0 32px #09a3c36b}
.brand-shield span{font-size:9px;position:absolute;bottom:9px;right:11px;color:#f0b568}.brand-name{display:flex;flex-direction:column;line-height:1.05;gap:6px}.brand-name strong{font-size:17px;letter-spacing:.015em;font-weight:950}.brand-name strong span{color:#f9b75f}.brand-name small{font-size:9px;letter-spacing:.23em;color:#b4ced1;font-weight:750}.header-right{display:flex;align-items:center;gap:11px}.version{font-size:10px;letter-spacing:.15em;font-weight:800;color:#d4e8e8}.version b{color:#ffbf74}.live-dot,.mission-pip{width:7px;height:7px;display:inline-block;border-radius:50%;background:#59ecd0;box-shadow:0 0 13px #59ecd0}.header-button{border:1px solid rgba(237,245,243,.3);background:rgba(11,38,49,.7);color:white;width:36px;height:36px;border-radius:12px;font-size:19px;font-weight:800;transition:background .2s}.header-button:hover{background:#225367}
.hud{position:absolute;inset:0;z-index:6;pointer-events:none}.hud button,.hud .joystick{pointer-events:auto}
.statline{display:flex;align-items:center;position:absolute;right:clamp(16px,3.5vw,54px);top:110px;padding:14px 21px;border-radius:15px;border:1px solid var(--stroke);background:rgba(5,25,35,.67);backdrop-filter:blur(20px);gap:20px;box-shadow:0 18px 34px #00121c30}
.stat{display:flex;flex-direction:column;gap:4px}.stat span{font-size:9px;letter-spacing:.14em;color:#b7c9ca;font-weight:850}.stat strong{font-weight:950;font-size:25px;line-height:1;color:#f8fbf7;letter-spacing:.01em}.stat .stat-total{font-size:13px;color:#a7cacb}.stat-sep{height:31px;width:1px;background:#b6d6d536}
.mission-card{position:absolute;top:149px;left:clamp(16px,3.5vw,54px);width:min(345px,calc(100vw - 32px));background:linear-gradient(130deg,rgba(7,35,48,.88),rgba(6,29,41,.77));backdrop-filter:blur(22px);border:1px solid rgba(206,247,248,.22);border-left:3px solid var(--gold);border-radius:15px;padding:21px 22px 17px;box-shadow:0 15px 45px #00101a55}
.mission-eyebrow{display:flex;align-items:center;gap:8px;color:#f3c88a;font-size:10px;letter-spacing:.13em;font-weight:850}.slash{color:#6d949e}.mission-card h2{font-size:21px;letter-spacing:-.025em;line-height:1.15;margin:16px 0 8px;font-weight:930}.mission-card p{margin:0;color:#bdd0d2;font-size:12px;line-height:1.6;max-width:285px}.progress-line{height:6px;border-radius:10px;overflow:hidden;margin:18px 0 13px;background:#b1cccc32}.progress-line span{display:block;width:0;height:100%;background:linear-gradient(90deg,#26bcae,#81f0bd);border-radius:10px;transition:width .4s}.mission-footer{display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:.06em;color:#a7ced0;font-weight:830}.mission-footer b{color:#eec68c;font-size:10px}
.weather-pill{position:absolute;right:clamp(16px,3.5vw,54px);top:198px;display:flex;align-items:center;gap:11px;padding:12px 15px;border-radius:12px;background:rgba(5,25,35,.6);border:1px solid var(--stroke);backdrop-filter:blur(12px)}.weather-pill>span{font-size:25px;color:#f9d392}.weather-pill div{display:flex;flex-direction:column;gap:4px}.weather-pill b{font-size:10px;letter-spacing:.1em}.weather-pill small{font-size:10px;color:#bed1d1}
.hint{position:absolute;bottom:35px;left:50%;transform:translateX(-50%);white-space:nowrap;color:#d3e6e8;background:rgba(5,25,38,.62);border:1px solid rgba(196,229,233,.16);border-radius:25px;padding:11px 17px;font-size:11px;font-weight:680;letter-spacing:.025em;backdrop-filter:blur(8px)}
.toast{position:absolute;top:44%;left:50%;transform:translate(-50%,15px);background:rgba(5,30,42,.92);color:#fff9e9;border:1px solid #f9bf6d;border-radius:12px;padding:13px 20px;font-weight:850;font-size:14px;letter-spacing:.035em;white-space:nowrap;opacity:0;transition:opacity .25s,transform .25s}.toast.active{opacity:1;transform:translate(-50%,0)}
.controls{position:absolute;inset:auto 0 24px 0;display:flex;align-items:end;justify-content:space-between;padding:0 clamp(20px,5vw,68px)}.joystick{width:124px;height:124px;border-radius:50%;border:1px solid #d8f6ee66;background:radial-gradient(circle,rgba(20,65,73,.4),rgba(4,29,41,.67));backdrop-filter:blur(8px);position:relative;touch-action:none;user-select:none;box-shadow:0 0 35px #001c2680}
.joystick-cross{position:absolute;inset:0;display:grid;place-items:center;color:#b5e3e66d;font-size:27px}.stick{position:absolute;width:54px;height:54px;left:calc(50% - 27px);top:calc(50% - 27px);border-radius:50%;border:1px solid rgba(201,255,235,.55);background:linear-gradient(145deg,rgba(137,230,228,.51),rgba(11,80,95,.75));box-shadow:0 3px 19px #001d2690;transform:translate(0,0);pointer-events:none}
.controls-right{display:flex;gap:12px;align-items:end}.small-action{width:65px;height:65px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;border:1px solid rgba(218,248,251,.44);border-radius:50%;background:rgba(5,31,45,.76);backdrop-filter:blur(12px);color:#e7f7f5}.small-action span{font-size:25px;line-height:1}.small-action small{font-size:9px;font-weight:900;letter-spacing:.12em}.small-action:active,.small-action.pressed{background:rgba(48,125,139,.92);transform:scale(.96)}
.main-action{width:112px;height:112px;border:2px solid #fff3d5;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;background:radial-gradient(circle at 40% 30%,#f8ce87,#ef9c51);color:#17303d;box-shadow:0 0 0 6px #ffc5782c,0 12px 30px #0009;text-shadow:none}.main-action span{font-size:35px;line-height:1;font-weight:750}.main-action strong{font-size:12px;font-weight:950;letter-spacing:.09em}.main-action:active{transform:scale(.95)}.main-action:disabled{opacity:.38;filter:grayscale(1)}
.start-screen{position:absolute;inset:0;z-index:10;background:linear-gradient(90deg,rgba(4,20,32,.93) 0%,rgba(4,20,32,.75) 31%,rgba(4,20,32,.12) 76%),linear-gradient(0deg,rgba(4,18,30,.82),transparent 39%);display:flex;flex-direction:column;justify-content:center;padding:105px clamp(23px,7vw,115px) 75px}.start-glow{position:absolute;inset:0;background:radial-gradient(ellipse at 20% 53%,rgba(13,106,131,.2),transparent 55%);pointer-events:none}
.intro-top{position:absolute;top:105px;display:flex;gap:12px;align-items:center;color:#a9d8db;font-size:10px;font-weight:850;letter-spacing:.23em}.line-decor{width:25px;height:1px;background:#f6bb6b}
.start-hero{position:relative;max-width:770px}.chapter{display:flex;align-items:center;gap:15px;font-size:11px;font-weight:900;color:#ffc578;letter-spacing:.25em}.chapter i{width:52px;height:1px;background:#e6ad64}
.start-hero h1{font-size:clamp(65px,8.8vw,132px);line-height:.9;letter-spacing:-.085em;margin:21px 0 28px;color:#f0f9f7;font-weight:1000;text-shadow:0 8px 40px #00162255}.start-hero h1 em{font-style:normal;color:#f7b96b;letter-spacing:-.075em}
.start-hero p{font-size:clamp(14px,1.35vw,19px);line-height:1.7;color:#b9d0d0;letter-spacing:.005em;margin:0 0 31px}.play-button{display:inline-flex;align-items:center;justify-content:space-between;gap:16px;min-height:65px;padding:0 24px;background:linear-gradient(130deg,#ffd19a,#ffae5d);border:0;border-radius:11px;color:#102d39;font-size:13px;font-weight:950;letter-spacing:.075em;box-shadow:0 15px 35px #00141c75,0 0 0 2px #f8e4c339;transition:transform .2s,filter .2s}.play-button:hover{transform:translateY(-3px);filter:brightness(1.07)}.play-button>span{font-size:15px}.play-button b{font-size:22px;font-weight:500}
.intro-points{display:flex;gap:24px;flex-wrap:wrap;margin-top:25px;color:#bdd6d3;font-size:10px;letter-spacing:.13em;font-weight:830}.intro-points span:first-child{color:#f8c486}
.start-bottom{position:absolute;bottom:30px;left:clamp(23px,7vw,115px);right:clamp(23px,7vw,115px);display:flex;justify-content:space-between;color:#97b4ba;font-size:10px;letter-spacing:.11em;font-weight:780}.start-bottom b{color:#e4f3ee;margin-left:11px}
.result-screen,.help-screen{position:absolute;inset:0;z-index:20;background:rgba(3,17,26,.78);display:grid;place-items:center;padding:20px;backdrop-filter:blur(15px)}
.results-card,.help-card{border:1px solid #bddadc37;border-radius:21px;background:linear-gradient(145deg,#113441,#071e2e);width:min(540px,100%);padding:clamp(25px,4vw,45px);box-shadow:0 25px 90px #000b;position:relative}
.results-card h2{font-size:clamp(34px,6vw,56px);letter-spacing:-.06em;line-height:.98;margin:20px 0}.results-card p{color:#b8d2d4;line-height:1.6;font-size:14px}
.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:25px 0}.result-stats>div{background:#ffffff0b;border:1px solid #ffffff1e;border-radius:10px;padding:15px 11px}.result-stats small{font-size:9px;color:#a9c5cb;letter-spacing:.09em;font-weight:800}.result-stats strong{font-size:26px;display:block;margin-top:7px;color:#ffd086}
.help-card h2{font-size:32px;margin:17px 0 25px;letter-spacing:-.04em}.help-row{display:flex;gap:15px;align-items:start;border-top:1px solid #ffffff20;padding:12px 0}.help-row b{color:#ffc77d}.help-row p{margin:0;line-height:1.5;font-size:12px;color:#bdd6d8}.help-row strong{color:white}.close-help{position:absolute;right:23px;top:16px;font-size:27px;background:transparent;color:white;border:0}.help-note{font-size:11px;line-height:1.5;color:#9ab6b7}.help-card .play-button{min-height:51px}
.error{position:absolute;inset:auto 20px 35px;z-index:30;border:1px solid #fb8b73;background:#422333;color:white;padding:20px;border-radius:15px;text-align:center}
@media(min-width:901px){.joystick{opacity:.32;transition:opacity .25s}.joystick:hover{opacity:1}}
@media(max-width:880px){.topbar{height:74px}.mission-card{top:170px}.statline{top:84px;left:16px;right:16px;justify-content:space-around;padding:12px 15px}.weather-pill{top:360px;right:16px}.hint{bottom:147px}.controls{bottom:max(22px,env(safe-area-inset-bottom))}.start-hero h1{font-size:clamp(62px,10.7vw,94px)}.start-screen{padding-left:7vw}}
@media(max-width:600px){.topbar{height:68px;padding:0 17px}.brand-shield{width:34px;height:36px;font-size:14px}.brand-name{gap:4px}.brand-name strong{font-size:13px}.brand-name small{font-size:7px;letter-spacing:.2em}.header-right{gap:7px}.version,.live-dot{display:none}.header-button{height:32px;width:32px;border-radius:10px}
.statline{top:69px;gap:7px;padding:9px 12px;border-radius:10px}.stat span{font-size:7.5px;letter-spacing:.06em}.stat strong{font-size:20px}.stat .stat-total{font-size:11px}.stat-sep{height:25px}
.mission-card{top:135px;left:12px;width:min(280px,calc(100vw - 24px));padding:13px 15px 11px;border-radius:12px}.mission-eyebrow{font-size:8px;gap:5px}.mission-card h2{font-size:16px;margin:9px 0 5px}.mission-card p{font-size:10px;line-height:1.45}.progress-line{margin:9px 0 8px}.mission-footer{font-size:8px}.mission-footer b{font-size:9px}
.weather-pill{display:none}.weather-pill>span{font-size:17px}.weather-pill b{font-size:8px}.weather-pill small{font-size:9px}
.controls{padding:0 17px;bottom:max(25px,env(safe-area-inset-bottom))}.joystick{width:114px;height:114px}.controls-right{gap:8px}.small-action{width:56px;height:56px}.small-action span{font-size:21px}.main-action{width:91px;height:91px}.main-action span{font-size:29px}.main-action strong{font-size:10px}
.hint{bottom:149px;padding:8px 12px;font-size:9px;max-width:96vw;white-space:normal;text-align:center}
.start-screen{padding:110px 23px 65px;background:linear-gradient(90deg,rgba(4,20,32,.9),rgba(4,20,32,.40)),linear-gradient(0deg,rgba(4,18,30,.95),transparent 62%)}.intro-top{top:115px;font-size:8px;letter-spacing:.095em}.line-decor{width:15px}.start-hero h1{font-size:clamp(55px,12.6vw,81px);margin:18px 0 23px}.start-hero p{font-size:13px;line-height:1.65}.play-button{min-height:59px;font-size:10px;padding:0 17px}.intro-points{gap:13px;font-size:8px;line-height:1.6}.start-bottom{left:23px;right:23px;font-size:8px}.start-bottom span:last-child{display:none}.start-bottom b{margin-left:5px}.chapter{font-size:9px}.chapter i{width:20px}.toast{font-size:12px;max-width:94vw;white-space:normal}
}
@media(max-height:670px){.mission-card{top:116px}.mission-card p{display:none}.weather-pill{top:230px}.hint{display:none}.start-screen{padding-top:70px;padding-bottom:38px}.intro-top{top:77px}.start-hero h1{font-size:clamp(51px,9vw,95px);margin:10px 0 12px}.start-hero p{margin-bottom:14px}.intro-points{margin-top:13px}.start-bottom{bottom:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Field Ops Alpha 02 — activity hub and immersive defense */
.activity-dock{position:absolute;z-index:8;top:274px;right:clamp(16px,3.5vw,54px);display:flex;gap:9px;pointer-events:auto}
.activity-button{border:1px solid rgba(108,236,216,.42);border-radius:11px;background:linear-gradient(145deg,rgba(10,64,70,.85),rgba(9,32,47,.84));color:#e9fff6;min-height:43px;padding:9px 12px;display:flex;align-items:center;gap:8px;box-shadow:0 10px 22px #001b2480;backdrop-filter:blur(14px);font-size:10px;letter-spacing:.075em}
.activity-button:hover{background:#245663}
.activity-button>span{font-size:18px}.activity-button b{font-weight:950}
.activity-button.danger{border-color:rgba(255,183,108,.52);background:linear-gradient(145deg,rgba(104,56,44,.86),rgba(34,35,45,.82))}
.activity-button.danger:hover{background:#704437}
.activity-button:disabled{opacity:.48;cursor:default}
.intro-cta,.results-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.play-button.alternate{background:rgba(9,37,50,.62);color:#fff0d8;border:1px solid rgba(255,193,111,.68);box-shadow:0 12px 30px #00141c55;min-height:64px}
.play-button.alternate:hover{background:rgba(42,84,94,.85)}
.help-card{max-height:89dvh;overflow-y:auto}
.defense-readout{position:absolute;z-index:7;left:50%;top:41%;transform:translateX(-50%);pointer-events:none;color:#d7fffc;background:rgba(6,31,43,.69);border:1px solid rgba(111,246,233,.54);padding:10px 17px;border-radius:40px;font-size:10px;letter-spacing:.08em;text-align:center;white-space:nowrap}
.defense-readout span{font-size:20px;padding:0 8px;color:#ffc471}
body[data-mode="defense"] .mission-card{border-left-color:#55f1e3}
body[data-mode="drive"] .mission-card{border-left-color:#65ecce}
body[data-mode="defense"] .main-action{background:radial-gradient(circle at 35% 20%,#94fbe4,#37cbbf);color:#082d37;border-color:#defff3;box-shadow:0 0 0 6px #7cffe32c,0 10px 35px #0009}
body[data-mode="defense"] .small-action{opacity:.36;pointer-events:none}
body[data-mode="drive"] .small-action small{letter-spacing:.02em}
@media(max-width:880px){.activity-dock{top:356px;right:16px}.intro-cta{gap:11px}.intro-cta .play-button{min-height:58px}}
@media(max-width:600px){
.activity-dock{top:280px;right:12px;gap:7px}
.activity-button{min-height:37px;padding:7px 9px;font-size:8px;gap:5px;border-radius:9px}
.activity-button>span{font-size:15px}
.intro-cta{flex-direction:column;align-items:flex-start;gap:11px}
.intro-cta .play-button{min-height:55px;width:100%;max-width:335px;gap:8px;font-size:10px}
.intro-cta .play-button.alternate{min-height:49px}
.intro-points{margin-top:18px}
.defense-readout{top:48%;width:max-content;max-width:95vw;white-space:normal;font-size:9px;padding:7px 10px}
.results-actions{flex-direction:column;align-items:stretch}
.results-actions .play-button{width:100%;justify-content:space-between}
}
@media(max-height:670px){.activity-dock{top:240px}.intro-cta .play-button{min-height:43px!important}.intro-points{margin-top:10px}.defense-readout{top:51%}}

/* Keep the shooting targets unobstructed in the center of the scene. */
.defense-readout{top:auto!important;bottom:158px;transform:translateX(-50%)}
@media(max-width:600px){.defense-readout{bottom:160px;max-width:96vw;padding:7px 11px}}

/* Non-overlapping mobile guidance for the new combat HUD. */
.defense-readout{bottom:188px!important}
@media(max-width:600px){.defense-readout{bottom:209px!important}}

/* Show the supplied Roofing Giant mark unchanged. */
.official-brand{display:block;width:161px;height:auto;max-height:42px;object-fit:contain}
.game-brandline{font-size:9px;letter-spacing:.15em;font-weight:800;color:#a6d4d6;white-space:nowrap}
@media(max-width:600px){.official-brand{width:142px}.game-brandline{font-size:7px;letter-spacing:.04em}}
@media(max-width:355px){.game-brandline{display:none}}

/* Alpha 03: contract dispatch, career progress, and job completion. */
.career-status{position:absolute;right:clamp(16px,3.5vw,54px);top:334px;display:flex;gap:9px;align-items:center;padding:10px 13px;background:rgba(4,29,40,.64);border:1px solid rgba(87,236,205,.23);border-radius:12px;backdrop-filter:blur(14px);font-size:10px;color:#b5d3d3;letter-spacing:.075em}
.career-status>span{font-size:17px;color:#f5c37c}.career-status b{color:#f9d49b;font-size:9px}.career-status small{font-size:9px}
.job-board{position:absolute;inset:0;z-index:22;display:grid;place-items:center;padding:20px;background:rgba(2,17,27,.84);backdrop-filter:blur(20px);pointer-events:auto}
.job-board-card{position:relative;background:linear-gradient(145deg,#123944,#081d2d);border:1px solid rgba(188,235,239,.3);border-radius:19px;padding:clamp(22px,3.2vw,40px);width:min(940px,100%);max-height:94dvh;overflow:auto;box-shadow:0 24px 85px #000c}
.board-header{display:flex;justify-content:space-between;align-items:flex-start}
.board-header .close-help{position:static;margin-left:10px;flex-shrink:0;width:39px;height:39px;border-radius:10px;border:1px solid #ffffff35;background:#1d4050}
.board-header h2{font-size:clamp(24px,3.2vw,37px);line-height:1.06;letter-spacing:-.055em;margin:14px 0 8px;font-weight:950}
.board-header p{margin:0;color:#b4cbd0;font-size:13px;line-height:1.55}
.board-career{display:flex;justify-content:space-between;gap:12px;padding:13px 17px;margin:23px 0 19px;border:1px solid #e2c47d38;background:rgba(245,178,96,.08);border-radius:10px;font-size:10px;color:#e4cfac;letter-spacing:.13em;font-weight:870}
.job-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.job-card{background:linear-gradient(165deg,rgba(28,63,77,.95),rgba(12,39,53,.93));border:1px solid #bcdddf39;border-radius:13px;padding:19px 17px;display:flex;flex-direction:column;gap:11px}
.job-card.selected{border-color:#ffcb87;box-shadow:inset 0 0 0 1px #ffcb8742,0 0 26px #ffbc6420}
.job-card.complete{border-color:#67ead683}
.job-number{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#f3c27e;font-weight:900;letter-spacing:.13em}
.job-status{font-size:9px;white-space:nowrap;color:#b5cbd0;border:1px solid #b5cbd049;padding:5px 7px;border-radius:5px}
.job-card.complete .job-status{color:#8aefc8;border-color:#72efc66d}
.job-card h3{font-size:20px;line-height:1.13;letter-spacing:-.045em;margin:6px 0 0;color:#edf9f6}
.job-card p{font-size:11px;line-height:1.55;color:#adc8cc;margin:0;min-height:70px}
.job-chipline{display:flex;flex-wrap:wrap;gap:5px}
.job-chipline span{padding:5px 7px;border:1px solid #a5cac639;border-radius:6px;font-size:9px;color:#d7ecec;letter-spacing:.045em;font-weight:800}
.job-progress{height:6px;border-radius:10px;background:#bbd4d32b;overflow:hidden;margin:1px 0}
.job-progress span{display:block;height:100%;background:linear-gradient(90deg,#e3a25a,#84f0d1);border-radius:12px}
.job-reward{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#adcbd0}
.job-reward b{color:#fbd296;font-size:12px}
.job-pick{min-height:45px;width:100%;background:linear-gradient(140deg,#ffd29a,#efae6d);color:#123345;border:0;border-radius:8px;font-size:10px;font-weight:950;letter-spacing:.09em;margin-top:auto}
.job-pick:hover{filter:brightness(1.07)}
.job-card.complete .job-pick{background:#8ae7d1}
.board-return{margin-top:18px;width:100%;min-height:44px;border:1px solid rgba(204,234,233,.38);color:#d6eff0;border-radius:8px;background:rgba(6,36,50,.6);font-size:11px;font-weight:900;letter-spacing:.13em}
.board-footnote{color:#93b0b7;font-size:10px;text-align:center;margin-top:17px}
.career-award{font-size:12px;color:#f8db9f;border-top:1px solid #ffffff25;padding:14px 0 3px;margin-top:13px}
@media(max-width:880px){.career-status{right:16px;top:421px}.job-grid{grid-template-columns:1fr}.job-card{gap:7px;padding:13px 14px}.job-card p{min-height:0}.board-career{margin:14px 0}.job-board-card{max-width:530px}}
@media(max-width:600px){
  .activity-dock{top:275px;right:12px;left:12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .activity-button{justify-content:center;padding:7px 4px;gap:4px;min-height:36px;font-size:7.4px;letter-spacing:0}
  .activity-button b{white-space:nowrap}
  .activity-button>span{font-size:14px}
  .career-status{top:326px;right:12px;font-size:9px;padding:7px 10px;gap:6px}
  .career-status b,.career-status small{font-size:8px}
  .job-board{padding:10px}
  .job-board-card{max-height:96dvh;padding:17px 14px 13px;border-radius:13px}
  .board-header h2{margin:9px 0 6px;font-size:23px}
  .board-header p{font-size:10px}
  .board-career{padding:9px 10px;font-size:9px}
  .job-grid{gap:8px}
  .job-card{padding:10px 11px;gap:6px}
  .job-card h3{font-size:17px;margin:1px 0}
  .job-card p{font-size:10px;line-height:1.35}
  .job-chipline span{font-size:8px;padding:3px 5px}
  .job-pick{min-height:35px}
  .board-footnote{margin-top:8px;font-size:9px}
  .board-return{margin-top:9px;min-height:37px}
  .intro-cta{gap:8px}.intro-cta .play-button{min-height:46px!important}
  .intro-points{margin-top:10px}
}
@media(max-height:690px){.career-status{display:none}.job-board-card{max-height:96dvh}.job-grid{gap:6px}.job-card p{line-height:1.2}}


/* Roofing Giant Alpha 04 — immersive multi-stage roof worksite controls. */
.worksite-launch{
  position:absolute;left:clamp(16px,3.5vw,54px);top:365px;min-height:51px;
  background:linear-gradient(125deg,#f7ca8c,#eaa55d);color:#113241;
  border:2px solid #ffe2af;box-shadow:0 7px 26px #071b2470;
  border-radius:10px;padding:9px 16px;display:flex;align-items:center;gap:9px;
  font-size:13px;z-index:9;pointer-events:auto
}
.worksite-launch>span{font-size:26px;line-height:1}
.worksite-launch b{font-size:11px;letter-spacing:.1em;font-weight:950}
.worksite-launch small{font-size:9px;font-weight:750;opacity:.72}
.worksite-launch:active{transform:scale(.97)}
.worksite-panel{
  z-index:8;position:absolute;bottom:165px;left:50%;transform:translateX(-50%);
  width:min(780px,calc(100vw - 24px));border-radius:15px;
  border:1px solid rgba(255,212,139,.58);
  padding:15px 18px 10px;
  background:linear-gradient(135deg,rgba(11,45,55,.96),rgba(8,31,43,.94));
  backdrop-filter:blur(20px);box-shadow:0 19px 46px #00121d99;pointer-events:auto;
}
.worksite-head{display:flex;align-items:start;justify-content:space-between;gap:10px}
.worksite-stage{display:flex;flex-direction:column;gap:5px;min-width:0}
.stage-eyebrow{font-size:10px;letter-spacing:.15em;font-weight:850;color:#f8bb75}
.worksite-stage strong{font-size:18px;letter-spacing:-.04em;color:#f5f8f0;font-weight:930}
.worksite-stage small{color:#b6d4d1;font-size:10px;line-height:1.35}
.worksite-total{font-size:15px;font-weight:950;color:#f6cd94;white-space:nowrap}
.worksite-steps{margin:11px 0 10px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.worksite-step{padding:6px 4px;border-radius:6px;background:#50717935;border:1px solid #b6d9d928;min-width:0}
.worksite-step.active{background:#f9bd7126;border-color:#faca80}
.worksite-step.done{background:#61eac321;border-color:#5fecc49c}
.worksite-step b{font-size:8px;display:block;letter-spacing:.06em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.worksite-step span{display:block;font-size:9px;color:#bad5d1;margin-top:4px}
.worksite-step.done b{color:#9df4d0}.worksite-step.active b{color:#fbd495}
.worksite-tools-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;font-size:9px;color:#93ced0;letter-spacing:.12em;font-weight:900}
.worksite-tools-head small{font-size:9px;color:#f2c58a;letter-spacing:.02em}
.worksite-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.worksite-tool{background:#173c49;border:1px solid #b4d5d259;color:#cee6e7;display:flex;align-items:center;justify-content:center;gap:7px;min-height:37px;border-radius:7px;font-size:10px;font-weight:850}
.worksite-tool>span{font-size:18px;line-height:1}
.worksite-tool.selected{color:#153540;background:linear-gradient(135deg,#ffe0a4,#f4b76d);border:1px solid #fff7dc}
.worksite-tool.required:not(.selected){border-color:#f5bb68;color:#f2c997}
.worksite-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}
.worksite-foot span{font-size:9px;color:#b6cccb;line-height:1.5}
.worksite-foot button{white-space:nowrap;background:#ffffff0c;color:#f8dab4;border:1px solid #deb8846c;border-radius:6px;padding:7px 10px;font-size:9px;letter-spacing:.035em;font-weight:850}
body[data-worksite="true"] .mission-card{border-left-color:#78e7ca}
body[data-worksite="true"] .main-action{background:radial-gradient(circle at 35% 18%,#91f5da,#44cbb6);border-color:#e7fff8;color:#07323d;box-shadow:0 0 0 6px #7affdc2e,0 11px 28px #0007}
@media(max-width:880px){
  .worksite-launch{top:310px;left:16px}
  .worksite-panel{bottom:147px}
}
@media(max-width:600px){
  .worksite-launch{top:282px;left:12px;min-height:38px;padding:6px 10px;border-width:1px}
  .worksite-launch>span{font-size:18px}
  .worksite-launch b{font-size:9px}.worksite-launch small{font-size:8px}
  .worksite-panel{padding:10px 10px 8px;bottom:153px;width:calc(100vw - 16px);border-radius:10px}
  .worksite-stage strong{font-size:15px}.worksite-stage small{font-size:9px}
  .stage-eyebrow{font-size:8px}
  .worksite-total{font-size:12px}
  .worksite-steps{margin:7px 0;gap:4px}
  .worksite-step{padding:5px 3px}.worksite-step b{font-size:7px;letter-spacing:0}.worksite-step span{font-size:8px;margin-top:2px}
  .worksite-tools{gap:4px}
  .worksite-tool{flex-direction:column;gap:2px;min-height:48px;font-size:8px;padding:4px 2px}
  .worksite-tool>span{font-size:16px}
  .worksite-foot{margin-top:6px}.worksite-foot span{font-size:8px;max-width:74%}
  .worksite-foot button{font-size:8px;padding:6px}
  .worksite-tools-head{margin-bottom:5px;font-size:8px}
  .worksite-tools-head small{font-size:8px}
  body[data-worksite="true"] .hint{display:none}
}
@media(max-height:680px) and (orientation:landscape){
  .worksite-panel{left:auto;right:12px;transform:none;top:92px;bottom:auto;width:390px}
  .worksite-launch{top:200px}
}
@media(prefers-reduced-motion:reduce){.worksite-step{transition:none!important}}


/* Alpha 05 · lightweight cinematic feedback. Respect UI tap areas. */
.craft-feedback{
  position:absolute;z-index:8;pointer-events:none;top:42%;left:50%;
  transform:translate(-50%,-20%);display:flex;flex-direction:column;
  align-items:center;gap:4px;padding:12px 21px;background:rgba(7,31,43,.81);
  border:1px solid #f6bf79b5;border-radius:13px;
  box-shadow:0 15px 40px #02111fc2,0 0 40px #f5c07720;
  backdrop-filter:blur(8px);animation:craft-glow .7s ease-out;
}
.craft-feedback>span{font-size:23px;color:#fcd38d}
.craft-feedback strong{font-size:12px;letter-spacing:.08em;color:#f7f6e4;white-space:nowrap;font-weight:950}
.craft-feedback small{font-size:9px;letter-spacing:.16em;color:#8ef0d2;font-weight:900}
@keyframes craft-glow{0%{opacity:0;transform:translate(-50%,4px) scale(.84)}20%{opacity:1;transform:translate(-50%,-20%) scale(1.05)}100%{opacity:1;transform:translate(-50%,-20%) scale(1)}}
.storm-movie{
  position:absolute;z-index:10;bottom:clamp(24px,8vh,80px);left:50%;
  transform:translateX(-50%);pointer-events:none;width:min(620px,calc(100vw - 30px));
  border:1px solid rgba(154,216,229,.36);background:rgba(4,20,32,.85);
  backdrop-filter:blur(21px);border-radius:13px;padding:17px 21px;
  box-shadow:0 15px 50px #00121fc0;
}
.storm-movie-top,.storm-movie-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px}
.storm-movie-top b{font-size:11px;color:#f5cd93;letter-spacing:.18em}
.storm-movie-top small{font-size:9px;color:#8ee3d4;font-weight:850;letter-spacing:.1em}
.storm-movie-progress{height:7px;border-radius:8px;overflow:hidden;background:#6e87905b;margin:13px 0}
.storm-movie-line{width:0;height:100%;background:linear-gradient(90deg,#e7a66b,#79e7d3);border-radius:8px;transition:width .18s}
.storm-movie-bottom>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.storm-movie-bottom>div:last-child{text-align:right}
.storm-movie-bottom span{font-size:9px;letter-spacing:.16em;color:#adc7cb;font-weight:900}
.storm-movie-bottom strong{font-size:25px;color:#eefff7;line-height:1;font-weight:950}
body[data-mode="storm"] .controls,body[data-mode="storm"] .hint{opacity:0!important;pointer-events:none!important}
body[data-mode="storm"] .mission-card{border-left-color:#91e9d9}
body[data-mode="storm"] #vignette{background:linear-gradient(180deg,rgba(2,13,27,.52),transparent 28%,rgba(2,13,27,.12) 72%,rgba(2,13,27,.62))}
@media(max-width:600px){
  .craft-feedback{top:43%;padding:10px 15px;gap:3px}
  .craft-feedback strong{font-size:10px}.craft-feedback small{font-size:8px}
  .storm-movie{bottom:max(35px,env(safe-area-inset-bottom));padding:14px}
  .storm-movie-top{flex-wrap:wrap;gap:6px}
  .storm-movie-top b{font-size:9px}.storm-movie-top small{font-size:8px}
  .storm-movie-bottom strong{font-size:22px}
}
@media(prefers-reduced-motion:reduce){.craft-feedback{animation:none}.storm-movie-line{transition:none}}


/* RG Stormfront 3D Alpha 06 — optional skill-based precision challenge. */
.precision-config{display:flex;gap:7px;align-items:center;flex-wrap:wrap;
  margin-top:9px;padding-top:9px;border-top:1px solid rgba(194,231,232,.15)}
.precision-config-button,.precision-assist{border:1px solid #8dbeba71;border-radius:7px;
  min-height:33px;background:#113949;color:#d4f2ee;font-size:9px;letter-spacing:.045em;
  font-weight:850;display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;gap:6px}
.precision-config-button>span{font-size:16px}
.precision-config-button.on{border-color:#f5c681;color:#173543;background:linear-gradient(135deg,#ffdea2,#f5b96d)}
.precision-assist.on{border-color:#79f2cb;color:#a8ffe2;background:#245d5a}
.precision-summary{margin-left:auto;color:#b4d9d8;font-size:8px;letter-spacing:.06em;font-weight:900}
.precision-overlay{position:absolute;z-index:25;inset:0;background:rgba(1,14,23,.72);
  display:flex;align-items:center;justify-content:center;padding:17px;
  backdrop-filter:blur(10px);touch-action:manipulation}
.precision-card{width:min(570px,100%);background:linear-gradient(150deg,#164456,#082837);
  border:1px solid #f8c77d8c;border-radius:18px;padding:clamp(20px,4vw,32px);
  box-shadow:0 24px 65px #00101ddd,0 0 80px #46dac522}
.precision-topline{display:flex;align-items:center;justify-content:space-between;gap:11px;
  font-size:10px;letter-spacing:.12em;color:#f5c889;font-weight:930}
.precision-topline span:last-child{color:#a5f6da;white-space:nowrap}
.precision-card h2{font-size:clamp(24px,5vw,38px);font-weight:1000;
  letter-spacing:-.055em;line-height:1.05;margin:21px 0 9px}
.precision-card p{font-size:13px;color:#b4d0d1;line-height:1.6;margin:0 0 18px}
.precision-target-info{display:flex;align-items:center;justify-content:space-between;
  gap:10px;color:#e8d2a3;letter-spacing:.075em;font-size:10px;font-weight:850;margin-bottom:14px}
.precision-target-info strong{color:#8af0d4;font-size:11px}
.precision-rail{position:relative;width:100%;height:46px;border:1px solid #abc9c887;border-radius:9px;
  overflow:visible;background:repeating-linear-gradient(90deg,#164454 0,#164454 10px,#1c4d5d 10px,#1c4d5d 11px);
  box-shadow:inset 0 0 18px #001d2bc9}
.precision-good-band{position:absolute;top:0;height:100%;
  background:linear-gradient(180deg,rgba(233,188,91,.9),rgba(185,116,46,.8));
  border-left:2px solid #fff3d3;border-right:2px solid #fff3d3;border-radius:5px;
  box-shadow:0 0 16px #e4b75a7c;display:flex;align-items:center;justify-content:center}
.precision-perfect-band{height:100%;background:linear-gradient(180deg,#a8ffe2,#36d5b3);
  border-left:1px solid #fff;border-right:1px solid #fff;box-shadow:0 0 14px #80f9da8a}
.precision-needle{position:absolute;top:-12px;bottom:-11px;width:4px;background:white;
  box-shadow:0 0 0 1px #0f4054,0 0 19px #fff;pointer-events:none;border-radius:3px}
.precision-needle span{position:absolute;left:-8px;top:-17px;color:#fff3d4;
  font-size:18px;text-shadow:0 2px 8px #001f34}
.precision-scale{display:flex;justify-content:space-between;color:#aec8ca;font-size:8px;
  font-weight:850;letter-spacing:.08em;margin:14px 0}
.precision-scale span:nth-child(2){color:#a8f7da}
.precision-feedback{min-height:37px;border:1px solid rgba(151,218,215,.23);
  display:flex;align-items:center;justify-content:center;letter-spacing:.065em;font-size:11px;
  font-weight:900;background:#102e3dc9;color:#e7f0ef;border-radius:8px;text-align:center;padding:7px 12px}
.precision-feedback.miss{color:#ffca91;border-color:#d38c65}
.precision-feedback.perfect{color:#91ffe2;border-color:#74f5cf}
.precision-actions{display:flex;gap:9px;margin-top:16px}
.precision-lock{flex:1;min-height:65px;background:linear-gradient(130deg,#ffdd9f,#f5a961);
  border:1px solid #ffe9bc;border-radius:9px;color:#123745;font-size:15px;font-weight:1000;letter-spacing:.12em;
  box-shadow:0 12px 25px #0015208c}
.precision-lock:active{transform:scale(.985)}
.precision-cancel{min-width:95px;padding:0 11px;border:1px solid #b1d9d75c;
  border-radius:9px;color:#e5f5f2;font-size:11px;letter-spacing:.08em;
  background:#153f4e;font-weight:850}
.precision-card .precision-accessible{font-size:10px;color:#9ec0c1;margin:14px 0 0;line-height:1.55}
body[data-precision="true"] .controls{pointer-events:none!important;opacity:.18}
@media(max-width:600px){
  .precision-config{margin-top:7px;padding-top:7px;gap:4px}
  .precision-config-button,.precision-assist{min-height:31px;font-size:8px;padding:4px 5px}
  .precision-config-button>span{font-size:14px}
  .precision-summary{width:100%;font-size:7px;margin-left:0;text-align:center}
  .precision-overlay{padding:13px}
  .precision-card{border-radius:12px;padding:19px 16px}
  .precision-card h2{font-size:27px;margin:14px 0 6px}
  .precision-card p{font-size:11px;margin-bottom:12px}
  .precision-topline{font-size:8px;letter-spacing:.04em}
  .precision-target-info{font-size:9px;margin-bottom:12px}
  .precision-rail{height:45px}
  .precision-scale{margin:12px 0}
  .precision-actions{margin-top:12px}
  .precision-lock{min-height:58px;font-size:12px}
  .precision-cancel{min-width:77px}
}
@media(max-height:660px){
  .precision-card{padding:12px 16px;max-height:97dvh;overflow:auto}
  .precision-card h2{margin:8px 0}
  .precision-rail{height:38px}
}
@media(prefers-reduced-motion:reduce){.precision-needle{transition:none}}

.job-skill{display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding-top:7px;border-top:1px solid rgba(179,226,223,.19);
  color:#9fe9d9;font-size:9px;letter-spacing:.045em;font-weight:850}
.job-skill b{color:#ffcf93;font-size:9px}
