.hf3{--lime:#b6ff63;--cyan:#5fe7f5;--text:#edf9fa;--muted:#a9beca;font:16px/1.5 'Segoe UI',Arial,sans-serif;position:relative;height:min(850px,calc(100dvh - 108px));min-height:660px;max-height:1100px;background:#091420;color:var(--text);border:1px solid #345167;border-radius:16px;margin:25px 0 15px;overflow:hidden;isolation:isolate;touch-action:pan-y}.hf3:fullscreen{width:100vw;height:100dvh;min-height:0;max-height:none;margin:0;border:0;border-radius:0}.hf3 *{box-sizing:border-box}.hf3 [hidden]{display:none!important}.hf3 button,.hf3 input,.hf3 textarea{font:inherit}.hf3 button{cursor:pointer}.hf3 :is(button,a,input,summary):focus-visible{outline:3px solid var(--lime);outline-offset:4px}.hf3-world{position:absolute;inset:0}.hf3-world canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.hf3-world canvas:active{cursor:grabbing}.hf3-vignette{position:absolute;inset:0;background:linear-gradient(90deg,#061019d9,transparent 68%),linear-gradient(0deg,#061019cc,transparent 30%,transparent 80%,#06101999);pointer-events:none;z-index:1;transition:opacity .6s}.hf3.is-playing .hf3-vignette{opacity:.55;background:linear-gradient(0deg,#061019aa,transparent 28%,transparent 75%,#06101966)}.hf3-top{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:22px 28px;z-index:4;gap:20px;background:linear-gradient(#061019b0,transparent);pointer-events:none}.hf3-brand{display:flex;gap:12px;align-items:center;font-size:15px;font-weight:750;letter-spacing:.09em;color:white}.hf3-brand small{display:block;font-size:9px;font-weight:500;letter-spacing:.13em;color:#b4ccd3;margin-top:3px}.hf3-brand-icon{font-size:17px;letter-spacing:-.1em;border:1px solid #6de6e28c;padding:9px;color:var(--lime);background:#091925b0}.hf3-settings{display:flex;gap:8px;pointer-events:auto}.hf3-settings button,.hf3-pause{border:1px solid #7494a440;border-radius:6px;background:#09202baf;color:#dbe9ed;padding:9px 12px;font-size:12px;min-height:40px;backdrop-filter:blur(10px)}.hf3-settings button:hover{border-color:var(--cyan)}.hf3-intro{position:absolute;top:20%;left:5%;max-width:520px;z-index:3}.hf3 .hf3-kicker{font-size:11px;letter-spacing:.18em;color:var(--lime);font-weight:700;display:flex;align-items:center;gap:9px;margin:0 0 16px}.hf3-kicker>span{height:5px;width:20px;background:var(--lime)}.hf3 h1,.hf3 h2,.hf3 h3{color:var(--text);letter-spacing:-.04em;line-height:1.1;margin:0 0 20px}.hf3-intro h1{font-size:clamp(54px,5.9vw,83px);font-weight:680;line-height:.99;letter-spacing:-.065em;margin:24px 0}.hf3-intro h1 em{font-style:normal;color:var(--lime)}.hf3-intro>p{font-size:18px;color:#b4c7d1;line-height:1.65;margin:20px 0}.hf3 .hf3-button{display:inline-flex;align-items:center;justify-content:center;gap:25px;background:var(--lime);color:#15200a;border:1px solid var(--lime);border-radius:6px;padding:15px 23px;min-height:52px;font-size:14px;font-weight:750;letter-spacing:.025em;text-decoration:none;filter:none;transition:box-shadow .2s,background .2s}.hf3-button:hover{background:#d6ffaa!important;box-shadow:0 0 28px #b6ff6330}.hf3 .hf3-button.secondary{background:#122635;border-color:#466371;color:#e5f1f5;box-shadow:none}.hf3 .hf3-button:disabled{opacity:.4;cursor:default;box-shadow:none}.hf3-intro-actions{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin-top:32px}.hf3 .hf3-text-button{display:inline-flex;align-items:center;min-height:44px;background:transparent;color:var(--cyan);padding:8px 0;border:0;font-size:14px;font-weight:500;filter:none;text-align:left}.hf3 .hf3-caption{font-size:12px;color:#9caeb8;letter-spacing:.02em;margin:13px 0}.hf3-controls-preview{display:flex;flex-wrap:wrap;gap:17px;margin-top:30px;color:#9fb7c5;font-size:10px;letter-spacing:.04em}.hf3-controls-preview>span{display:flex;gap:4px;align-items:center}.hf3 kbd{display:inline-flex;justify-content:center;align-items:center;width:24px;height:25px;border:1px solid #7993a05c;background:#0d2435b8;color:#dce9ed;font:12px 'Segoe UI',sans-serif;border-radius:3px}.hf3-bottom{position:absolute;bottom:0;left:0;right:0;z-index:4;border:0;padding:18px 28px;display:flex;gap:24px;justify-content:space-between;align-items:center;background:linear-gradient(transparent,#06131cc9);pointer-events:none}.hf3-loc{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:.09em;color:#b8cdd3;line-height:1.5}.hf3-loc small{display:block;font-size:9px;color:#799daf;letter-spacing:.08em;margin-top:3px}.hf3-live-dot{width:6px;height:6px;box-shadow:0 0 12px #46ffca;background:var(--cyan);border-radius:50%}.hf3-progress{display:flex;gap:5px;pointer-events:auto}.hf3-progress>span{width:33px;height:30px;display:grid;place-items:center;border:1px solid #58728666;background:#09232a90;border-radius:3px;color:#8ab0bf;font-size:12px}.hf3-progress>.active{border-color:var(--lime);color:var(--lime);box-shadow:0 0 16px #b6ff6320}.hf3-progress>.done{background:#b6ff6322;color:var(--lime);border-color:#b6ff6366}.hf3-pause{pointer-events:auto}.hf3-objective{position:absolute;top:104px;right:25px;width:255px;padding:20px;background:#091c2dde;border:1px solid #5985a250;border-left:3px solid var(--lime);border-radius:4px;backdrop-filter:blur(14px);z-index:3}.hf3-objective .hf3-kicker{font-size:10px;margin-bottom:9px}.hf3-objective strong{display:block;color:#ebf7f8;font-size:18px;line-height:1.25}.hf3-objective p{font-size:12px;color:#a1bcca;margin:12px 0 4px}.hf3-objective .hf3-text-button{font-size:12px}.hf3-interact{position:absolute;bottom:95px;left:50%;transform:translateX(-50%);z-index:4;white-space:nowrap}.hf3-interact .hf3-button{background:#e8ffbd;color:#18230c;box-shadow:0 0 30px #b6ff6333}.hf3-interact kbd{color:#243518;background:#b9e978;border-color:#5484296e;font-weight:700}.hf3-station-status{position:absolute;top:90px;left:28px;max-width:340px;font-size:14px;line-height:1.5;padding:12px 18px;background:#0d2933d9;color:#e0faf3;border-left:2px solid var(--cyan);z-index:5;opacity:0;transform:translateY(-6px);transition:opacity .2s,transform .2s;pointer-events:none}.hf3-station-status.visible{opacity:1;transform:translateY(0)}.hf3-dialog{position:absolute;inset:85px auto 72px 22px;width:min(510px,calc(100% - 44px));background:#0a1b2bf2;border:1px solid #6186a576;border-radius:10px;backdrop-filter:blur(22px);box-shadow:0 20px 70px #0006;z-index:7;padding:25px;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#456274 #0d1f2c;scrollbar-width:thin}.hf3-dialog.results{inset:88px 25px 70px auto;width:min(590px,calc(100% - 50px))}.hf3-dialog.pause{inset:50% auto auto 50%;transform:translate(-50%,-50%);max-height:80%;width:min(460px,calc(100% - 40px));text-align:center}.hf3-terminal-top{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-bottom:14px;margin-bottom:20px;border-bottom:1px solid #45687c55}.hf3-terminal-top .hf3-kicker{font-size:10px;margin:0}.hf3-close{display:grid;place-items:center;width:32px;height:32px;background:#1f394b;color:#cfe7f0;border:1px solid #4c6b7c;border-radius:4px;font-size:18px;padding:0}.hf3-dialog h2{font-size:28px;line-height:1.17;margin:0 0 15px}.hf3-message{padding:17px;border:1px solid #3c58775c;background:#102738;border-left:2px solid var(--cyan);margin-bottom:18px;border-radius:3px}.hf3-message small{font-size:11px;color:#97bdd1;display:block;margin-bottom:10px}.hf3-message p{font-size:14px;color:#dde9ef;line-height:1.65;margin:0}.hf3-address{display:block;font-size:12px;color:#ffce85;overflow-wrap:anywhere;margin:12px 0;background:#261e17;padding:10px}.hf3-dialog .hf3-context{font-size:13px;color:#a6c0ce;line-height:1.65;margin:15px 0}.hf3-dialog fieldset{border:0;padding:0;margin:0 0 20px;min-width:0}.hf3-dialog legend{font-size:13px;color:#c3d9e5;margin-bottom:10px;font-weight:600}.hf3-option{display:flex!important;align-items:flex-start;gap:11px;padding:13px;margin:0 0 9px!important;border:1px solid #45657d77;background:#112c3e;color:#e0edf4!important;border-radius:5px;font-size:13px!important;font-weight:400!important;line-height:1.55;cursor:pointer}.hf3-option:has(input:checked){border-color:var(--lime);background:#244027}.hf3-option:has(input:focus-visible){outline:2px solid var(--lime)}.hf3-option input[type=radio]{appearance:auto;accent-color:var(--lime);width:17px;height:17px;flex-shrink:0;padding:0;margin:2px 0 0;background:transparent}.hf3-option.correct{border-color:var(--lime);background:#213d2a}.hf3-option.wrong{border-color:#ed826e;background:#462a2a}.hf3-data-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:15px 0}.hf3-data{display:flex;align-items:flex-start;flex-direction:column;gap:6px;min-height:110px;border:1px solid #3d657a;border-radius:5px;background:#123144;color:#e4f4f6;padding:12px!important;text-align:left;font-size:12px!important;font-weight:400!important}.hf3-data strong{font-size:13px;line-height:1.4}.hf3-data small{font-size:10px;color:#a4c6d6}.hf3-data>span{font-size:10px;color:var(--cyan);margin-top:auto}.hf3-data[aria-pressed=true]{border-color:#ffba76;background:#443625}.hf3-data[aria-pressed=true] strong{text-decoration:line-through}.hf3-feedback{padding:18px;border:1px solid #83c5678c;background:#1f3f2c;border-radius:5px;margin-top:20px}.hf3-feedback.learn{background:#493523;border-color:#c2936099}.hf3-feedback h3{font-size:21px;margin:5px 0 13px}.hf3-feedback p{font-size:13px;line-height:1.65;color:#d8e6dc;margin-bottom:15px}.hf3-feedback .hf3-button{width:100%}.hf3-validation{font-size:13px;color:#ffcb91;margin:10px 0}.hf3-prompt{font-size:13px;color:#b9d2e0;margin:18px 0;padding:15px;background:#122b3a;border-radius:5px}.hf3-prompt summary{cursor:pointer;color:var(--cyan)}.hf3-prompt p{font-size:13px;line-height:1.65;color:#d6e7ed;padding-top:15px}.hf3-copy-fallback{width:100%;font-size:13px;background:#0a1c28;color:#e3f3f9;border:1px solid #77949f;border-radius:5px;min-height:150px;padding:12px}.hf3-score{display:flex;align-items:center;gap:23px;margin:25px 0}.hf3-score>strong{font-size:65px;color:var(--lime);font-weight:700;line-height:1;letter-spacing:-.08em}.hf3-score>strong small{font-size:15px;color:#a1bac9;letter-spacing:0;margin-left:5px}.hf3-score p{font-size:14px;color:#bad0dc;margin:0}.hf3-scorebars{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:25px}.hf3-scorebars>div{padding:12px;background:#112c3d;border:1px solid #3a576854;border-radius:5px}.hf3-scorebars span{display:block;font-size:10px;color:#98bacc}.hf3-scorebars strong{display:block;font-size:23px;color:#dff5ee;margin-top:5px}.hf3-courses{display:grid;gap:14px}.hf3-course{border:1px solid #b6ff6354;border-radius:7px;padding:18px;background:linear-gradient(120deg,#273e26,#102839)}.hf3-course h3{font-size:20px;line-height:1.3;margin:8px 0 12px}.hf3-course p{font-size:22px;margin:0 0 14px;color:var(--lime)}.hf3-course p small{display:block;font-size:11px;color:#9fbbc3}.hf3-course .hf3-button{width:100%;font-size:12px}.hf3-course .hf3-kicker{font-size:9px;margin:0}.hf3-report-title{font-size:20px!important;margin:25px 0 15px!important}.hf3-report-list{list-style:none;padding:0;margin:0 0 20px}.hf3-report-list li{padding:11px 0;border-bottom:1px solid #44657744;display:flex;gap:12px;font-size:12px;line-height:1.65;color:#c5d8e3}.hf3-report-list li>span{color:var(--lime)}.hf3-report-list li>span.gap{color:#ffbd82}.hf3-result-buttons{display:flex;gap:15px;flex-wrap:wrap}.hf3-team{margin:24px 0;padding-top:20px;border-top:1px solid #53708266}.hf3-team p{font-size:13px;color:#a4bfce;margin-bottom:10px}.hf3-team a{font-size:13px;color:var(--cyan)}.hf3-error{position:absolute;inset:20% 10%;z-index:20;padding:35px;max-height:75%;overflow:auto;background:#122435;border:1px solid #8ebac8;border-radius:12px}.hf3-error p{color:#b4cfde;font-size:16px}.hf3-error a{display:block;margin-top:25px;color:var(--cyan)}.hf3-disclaimer{font-size:12px!important;line-height:1.7;color:#8ea8b4!important;margin:10px 0 35px}.hf3-touch{position:absolute;inset:auto 20px 100px;z-index:5;pointer-events:none;display:flex;justify-content:space-between;align-items:flex-end}.hf3-touch p{font-size:10px;color:#c6d8e1;width:130px;text-align:right;text-shadow:0 2px 4px #000;pointer-events:none}.hf3-joystick{width:110px;height:110px;border:1px solid #98cbd65e;border-radius:50%;background:#0b273252;pointer-events:auto;touch-action:none;display:grid;place-items:center;backdrop-filter:blur(5px)}.hf3-joystick>span{display:block;width:47px;height:47px;border-radius:50%;background:#ccefff40;border:1px solid #daf7ff8c;pointer-events:none}
@media(max-width:1000px){.hf3-top{padding:20px}.hf3-settings button{padding:8px;font-size:11px}.hf3-intro{left:5%;max-width:420px}.hf3-intro h1{font-size:65px}.hf3-objective{width:220px;right:20px}.hf3-dialog{width:440px}.hf3-bottom{padding:18px 20px}.hf3-loc{font-size:9px}}
@media(max-width:700px){.hf3{min-height:660px;height:calc(100dvh - 90px);margin:15px 0;border-radius:10px}.hf3-top{padding:15px;align-items:flex-start}.hf3-brand{font-size:11px;gap:8px;letter-spacing:.03em}.hf3-brand small{font-size:7px;max-width:130px}.hf3-brand-icon{padding:7px;font-size:14px}.hf3-settings{gap:4px}.hf3-settings button{font-size:10px;min-height:34px;padding:7px}.hf3-settings [data-hf3-quality]{display:none}.hf3-intro{top:23%;left:7%;right:7%;max-width:none}.hf3-intro h1{font-size:61px}.hf3-intro>p{font-size:16px}.hf3-controls-preview{display:none}.hf3 .hf3-caption{font-size:11px}.hf3-bottom{padding:14px;flex-wrap:wrap;gap:8px}.hf3-loc{font-size:8px;max-width:165px}.hf3-loc small{font-size:7px}.hf3-progress{gap:3px}.hf3-progress>span{width:22px;height:24px;font-size:10px}.hf3-pause{font-size:10px;padding:6px;min-height:32px}.hf3-objective{top:80px;right:15px;left:15px;width:auto;padding:13px 15px;max-width:350px;display:grid;grid-template-columns:1fr auto;gap:3px 12px}.hf3-objective .hf3-kicker{font-size:9px;margin:0;grid-column:1}.hf3-objective strong{font-size:14px;grid-column:1}.hf3-objective p{font-size:10px;margin:2px 0;grid-column:1}.hf3-objective .hf3-text-button{font-size:10px;grid-column:2;grid-row:1/4;max-width:80px}.hf3-interact{bottom:80px;left:auto;right:18px;transform:none;white-space:normal;max-width:65%}.hf3-interact .hf3-button{font-size:12px;padding:13px 15px;gap:8px}.hf3-interact kbd{display:none}.hf3-dialog,.hf3-dialog.results{inset:78px 10px 60px;width:auto;padding:19px;border-radius:8px;background:#0b1d2bf7}.hf3-dialog h2{font-size:25px}.hf3-message p{font-size:13px}.hf3-option{font-size:13px!important}.hf3-terminal-top{margin-bottom:17px}.hf3-score>strong{font-size:55px}.hf3-scorebars{gap:6px}.hf3-scorebars>div{padding:10px}.hf3-scorebars span{font-size:9px}.hf3-course h3{font-size:19px}.hf3-station-status{top:175px;left:15px;right:15px;font-size:12px;max-width:330px}.hf3-error{inset:90px 15px;padding:25px}.hf3-vignette{background:linear-gradient(90deg,#061019d9,transparent 100%),linear-gradient(0deg,#061019aa,transparent 70%)}.hf3.is-playing .hf3-vignette{opacity:.2}}
@media(prefers-reduced-motion:reduce){.hf3 *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Fit the complete play surface into short screens and retain touch controls. */
.hf3 textarea:focus-visible{outline:3px solid var(--lime);outline-offset:3px}
.hf3-close{width:44px;height:44px;flex-shrink:0}.hf3-prompt a{color:var(--cyan)}
.hf3-objective p,.hf3-context,.hf3-option,.hf3-message p{font-size:14px!important}
@media(max-width:700px){.hf3{min-height:0;height:max(510px,calc(100dvh - 100px))}.hf3-settings button{min-height:44px}.hf3-settings [data-hf3-quality]{display:block;font-size:0;width:44px}.hf3-settings [data-hf3-quality]:after{content:'⚙';font-size:18px}.hf3-brand small{display:none}.hf3-intro{top:21%}.hf3-intro h1{font-size:52px}.hf3-intro>p{line-height:1.5;margin:15px 0}.hf3-objective p{font-size:12px!important}.hf3-objective .hf3-text-button{font-size:12px}.hf3-dialog .hf3-option{font-size:14px!important}}
@media(max-height:650px){.hf3{min-height:0;height:calc(100dvh - 28px)}.hf3-intro{top:90px;left:5%}.hf3-intro h1{font-size:46px;margin:12px 0}.hf3-intro>p{font-size:14px;line-height:1.4;margin:12px 0}.hf3-intro-actions{margin-top:16px}.hf3-controls-preview{display:none}.hf3-intro .hf3-kicker{margin:0}.hf3-objective{top:80px}.hf3-touch{bottom:70px}.hf3-joystick{width:88px;height:88px}.hf3-bottom{padding:10px 18px}.hf3-interact{bottom:65px}.hf3-dialog,.hf3-dialog.results{top:70px;bottom:48px}}
@media(max-height:470px) and (min-width:600px){.hf3-intro{top:80px;max-width:570px;display:grid;grid-template-columns:260px 1fr;gap:4px 20px}.hf3-intro .hf3-kicker{grid-column:1/3}.hf3-intro h1{grid-column:1;grid-row:2/4;font-size:45px}.hf3-intro>p{grid-column:2;grid-row:2}.hf3-intro-actions{grid-column:2;grid-row:3;margin:0}.hf3-intro .hf3-caption{grid-column:1/3;grid-row:4;margin:8px 0}.hf3-objective{width:230px;padding:12px}.hf3-objective p{margin:5px 0}.hf3-objective strong{font-size:14px}.hf3-settings button{padding:7px 10px}}
/* PULSE OPS: action HUD stays separate from learning terminals. */
.hf3{background:#070c1d}.hf3.is-combat .hf3-objective{left:25px;right:auto;top:185px;width:228px;background:#08172bc9}.hf3.is-combat .hf3-objective strong{font-size:16px}.hfp-mode{margin-top:7px!important;font-size:12px!important;min-height:32px!important}.hfp-hud{position:absolute;inset:0;pointer-events:none;z-index:4;font-family:'Segoe UI',Arial,sans-serif}.hfp-wave{position:absolute;top:95px;left:25px;color:#ebf5ff;font-size:13px;font-weight:750;letter-spacing:.04em}.hfp-wave:before{content:'';display:inline-block;width:7px;height:7px;margin-right:9px;background:#ff6484;box-shadow:0 0 14px #ff557d}.hfp-wave small{display:block;font-size:11px;color:#a4b6d0;letter-spacing:.1em;margin:9px 0 0 16px}.hfp-stats{position:absolute;right:28px;top:98px;text-align:right;display:flex;flex-direction:column;gap:0}.hfp-stats span{font-size:12px;font-weight:700;color:#b6ff63;letter-spacing:.12em}.hfp-stats strong{font-variant-numeric:tabular-nums;font-size:38px;font-weight:650;letter-spacing:-.05em;line-height:1.2;color:#edfbff;text-shadow:0 2px 12px #000}.hfp-stats small{font-size:10px;letter-spacing:.2em;color:#90a6c4}.hfp-vitals{position:absolute;left:28px;bottom:109px;width:198px;display:grid;gap:12px}.hfp-vitals>div>span,.hfp-boss>span{font-size:11px;letter-spacing:.1em;display:flex;justify-content:space-between;line-height:1.5;color:#d3e4f1;text-shadow:0 2px 5px #000}.hfp-vitals b{font-variant-numeric:tabular-nums;color:#d9f9ff}.hfp-vitals i,.hfp-boss i{display:block;height:5px;background:#6d8ca738;border-radius:2px;margin-top:5px;overflow:hidden}.hfp-vitals em,.hfp-boss em{display:block;width:100%;height:100%;background:#76dfff;box-shadow:0 0 14px #76dfff;transition:width .12s}.hfp-vitals>div+div em{background:#b6ff63}.hfp-actions{position:absolute;bottom:105px;right:28px;z-index:5;display:flex;gap:12px;align-items:flex-end}.hfp-actions button{border:1px solid #7fcce07d;color:#e7fcff;background:#10283cdc;backdrop-filter:blur(12px);border-radius:10px;min-width:77px;min-height:85px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:10px;font-size:11px;font-weight:750;letter-spacing:.07em;gap:2px;touch-action:manipulation;box-shadow:0 8px 28px #0004}.hfp-actions button>span{font-size:28px;font-weight:400;line-height:1.2}.hfp-actions button>small{color:#9cafc8;font-size:10px;letter-spacing:.06em;font-weight:500}.hfp-actions .hfp-pulse{height:105px;min-width:103px;background:linear-gradient(150deg,#b7fcff,#7dd4f0);color:#062139;border-color:#d0ffff;box-shadow:0 0 30px #43b0df33}.hfp-pulse small{color:#194a65!important}.hfp-actions .hfp-pulse>span{font-size:38px;line-height:1}.hfp-actions button:disabled{opacity:.48;cursor:default}.hfp-actions .hfp-mega.ready{background:linear-gradient(145deg,#d0ff6b,#a1e943);color:#25340c;border-color:#e2ffc0;box-shadow:0 0 35px #aeff6455}.hfp-mega.ready small{color:#293b0c}.hfp-boss{position:absolute;left:35%;right:35%;top:91px}.hfp-boss>span{font-size:12px;color:#edd1ff}.hfp-boss i{height:7px;background:#301c4e}.hfp-boss em{background:#b77bff;box-shadow:0 0 14px #b47aff}.hfp-banner{position:absolute;left:50%;top:39%;transform:translate(-50%,-50%);text-align:center;width:min(700px,80%);padding:20px;background:linear-gradient(90deg,transparent,#071525e3,transparent);z-index:6;pointer-events:none}.hfp-banner>span{font-size:10px;letter-spacing:.25em;color:#a4c8d9}.hfp-banner strong{display:block;font-size:clamp(26px,3.4vw,46px);font-weight:750;font-style:italic;line-height:1.1;letter-spacing:-.045em;color:#ccff95;margin:12px 0;text-shadow:0 0 30px #adff5330}.hfp-banner p{font-size:14px;line-height:1.5;color:#d1e6f0;margin:10px auto 0;max-width:500px}.hfp-float{position:absolute;top:34%;z-index:5;color:#c8ff92;font-size:32px;font-weight:800;font-style:italic;text-shadow:0 2px 14px #0d2700;pointer-events:none;opacity:0;letter-spacing:-.05em}.hfp-damage{position:absolute;inset:0;z-index:2;box-shadow:inset 0 0 95px #ff326000;pointer-events:none;transition:box-shadow .16s}.hfp-damage.hit{box-shadow:inset 0 0 95px #ff326051}.hfp-result{padding:17px 20px;background:linear-gradient(115deg,#31264b,#112a3e);border:1px solid #9d7bcc6b;border-radius:7px;margin:16px 0}.hfp-result>span{font-size:10px;letter-spacing:.1em;color:#ccb1ff;display:block}.hfp-result>strong{font-size:16px;display:block;margin:7px 0;color:#eff9ff;line-height:1.5}.hfp-result>small{font-size:12px;color:#a9c0d1;line-height:1.5;display:block}
@media(max-width:1000px){.hf3.is-combat .hf3-objective{top:165px;width:195px;padding:14px}.hfp-wave{font-size:11px}.hfp-stats strong{font-size:33px}.hfp-actions{right:20px;bottom:91px}.hfp-vitals{left:20px;bottom:100px;width:160px}.hfp-boss{left:32%;right:32%;top:148px}}
@media(max-width:700px){.hf3.is-combat .hf3-objective{display:none}.hfp-wave{left:15px;top:77px;font-size:10px;max-width:230px}.hfp-wave small{font-size:9px;margin-left:0;letter-spacing:.04em}.hfp-stats{right:14px;top:116px}.hfp-stats strong{font-size:29px}.hfp-stats span{font-size:10px}.hfp-stats small{font-size:9px}.hfp-vitals{left:16px;bottom:219px;width:135px;gap:9px}.hfp-vitals>div>span{font-size:10px}.hfp-actions{bottom:101px;right:13px;gap:5px}.hfp-actions button{min-width:54px;min-height:72px;padding:7px;font-size:9px}.hfp-actions .hfp-pulse{min-width:76px;height:91px}.hfp-actions button>small{font-size:8px}.hfp-actions button>span{font-size:25px}.hfp-actions .hfp-pulse>span{font-size:34px}.hfp-boss{left:15px;right:120px;top:131px}.hfp-boss>span{font-size:9px}.hfp-banner{top:41%;width:94%;padding:18px 12px}.hfp-banner strong{font-size:29px}.hfp-banner p{font-size:12px;max-width:300px}.hfp-float{font-size:26px}.hf3-intro h1{font-size:49px}.hf3-intro-actions{margin-top:20px}.hf3-intro{top:20%}.hf3-intro .hfp-mode{margin:0!important;min-height:29px!important}.hf3-touch p{display:none}.hf3-joystick{width:96px;height:96px}}
@media(max-height:650px){.hfp-vitals{bottom:74px}.hfp-actions{bottom:64px}.hf3.is-combat .hf3-objective{display:none}.hfp-wave{top:75px}.hfp-stats{top:78px}.hfp-boss{top:105px}.hfp-banner{top:44%}.hf3-intro h1{font-size:42px}.hf3-intro>p{font-size:13px}.hf3-intro .hf3-caption{font-size:10px}.hf3-intro-actions{margin-top:10px}}
@media(max-height:470px) and (min-width:600px){.hfp-vitals{bottom:60px;width:140px}.hfp-actions{bottom:53px}.hfp-actions button{min-height:59px;height:auto}.hfp-actions .hfp-pulse{height:78px}.hfp-banner strong{font-size:30px}.hf3-intro .hfp-mode{grid-column:1;grid-row:4;margin:0!important}.hf3-intro .hf3-caption{grid-column:2;grid-row:4}.hfp-wave{font-size:10px}.hfp-boss{left:34%;right:34%;top:77px}}
@media(prefers-reduced-motion:reduce){.hfp-damage.hit{box-shadow:inset 0 0 35px #ff326030}.hfp-float{transform:none!important}}


/* The game owns its layout, including short embedded and landscape screens. */
#human-firewall{width:100%;max-width:100%;min-width:0;padding:0;min-height:0;height:clamp(360px,calc(100svh - 160px),780px);container:firewall / size}
#human-firewall :where(p,h1,h2,h3){overflow-wrap:anywhere}
#human-firewall .hf3-world,#human-firewall canvas{width:100%;height:100%;max-width:100%;display:block}
#human-firewall .hf3-top{padding:18px 24px;gap:12px;align-items:center;flex-wrap:nowrap}
#human-firewall .hf3-brand{min-width:0;gap:10px}
#human-firewall .hf3-brand-logo{display:block;flex:0 0 auto;width:56px;height:44px;object-fit:contain;background:#fff;padding:4px;border-radius:5px}
#human-firewall .hf3-brand small{display:block}
#human-firewall .hf3-settings{flex-shrink:0}
#human-firewall .hf3-settings button{min-height:44px;min-width:44px}
#human-firewall .hf3-intro{position:absolute;inset:84px 5% 66px;max-width:none;width:auto;padding:0;overflow:visible;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:18px}
#human-firewall .hf3-intro-heading,#human-firewall .hf3-intro-details{min-width:0;width:100%;max-width:540px}
#human-firewall .hf3-intro .hf3-kicker{font-size:11px;line-height:1.4;letter-spacing:.16em;color:var(--lime);margin:0 0 12px;gap:8px}
#human-firewall .hf3-intro .hf3-kicker>span{flex-shrink:0}
#human-firewall .hf3-intro h1{font-size:min(clamp(36px,6.5cqw,76px),11cqh);font-weight:700;line-height:1.02;letter-spacing:-.06em;margin:0;max-width:none}
#human-firewall .hf3-intro-description{font-size:17px;line-height:1.5;color:#b4c7d1;margin:0 0 16px;max-width:410px}
#human-firewall .hf3-intro-actions{display:flex;flex-wrap:nowrap;align-items:center;gap:16px;margin:0}
#human-firewall .hf3-button{max-width:100%;white-space:normal}
#human-firewall .hf3-intro .hf3-button{gap:18px;padding:13px 22px;min-height:50px;font-size:13px;flex-shrink:0}
#human-firewall .hf3-intro [data-hf3-resume]{font-size:13px;min-height:44px;line-height:1.3}
#human-firewall .hf3-intro .hfp-mode{margin:0!important;min-height:44px!important;padding:8px 0;font-size:12px!important}
#human-firewall .hf3-intro .hf3-caption{font-size:12px;line-height:1.5;margin:0;color:#a9beca}
#human-firewall .hf3-controls-preview{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
#human-firewall .hf3-dialog{max-width:calc(100% - 24px);overflow:auto;overscroll-behavior:contain}
#human-firewall .hf3-dialog.pause{inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(460px,calc(100% - 24px));height:auto;max-height:calc(100% - 100px)}
#human-firewall .hf3-bottom{padding:14px 24px;gap:12px}
.hf3-window-open{overflow:hidden!important}
#human-firewall.is-expanded{position:fixed;inset:0;z-index:10000;width:100%;max-width:none;height:100dvh;max-height:none;min-height:0;margin:0;border:0;border-radius:0}
#human-firewall:fullscreen{height:100dvh;max-height:none;min-height:0;margin:0;border:0;border-radius:0}
@media(max-width:700px){#human-firewall{height:clamp(480px,calc(100svh - 150px),780px);margin-block:12px}}
@media(max-height:500px) and (min-width:600px){#human-firewall{height:max(340px,calc(100svh - 100px))}}
@container firewall (max-height:620px){
 #human-firewall .hf3-controls-preview{display:none}
 #human-firewall .hf3-intro-description{font-size:16px;margin-bottom:12px}
}
@container firewall (max-width:700px){
 #human-firewall .hf3-top{padding:12px;gap:8px}
 #human-firewall .hf3-brand{font-size:11px;letter-spacing:.02em;gap:8px}
 #human-firewall .hf3-brand small{font-size:7px;letter-spacing:.06em}
 #human-firewall .hf3-brand-logo{width:42px;height:34px;padding:3px}
 #human-firewall .hf3-settings{gap:4px;margin-left:auto}
 #human-firewall .hf3-settings button{padding:6px;font-size:10px}
 #human-firewall .hf3-settings [data-hf3-quality]{display:none}
 #human-firewall .hf3-intro{inset:76px 18px 64px;gap:16px}
 #human-firewall .hf3-intro-heading,#human-firewall .hf3-intro-details{max-width:480px}
 #human-firewall .hf3-intro h1{font-size:clamp(34px,10.5cqw,58px)}
 #human-firewall .hf3-intro .hf3-kicker{font-size:9px;letter-spacing:.11em;margin-bottom:10px}
 #human-firewall .hf3-intro-description{font-size:15px;line-height:1.5;margin-bottom:12px;max-width:365px}
 #human-firewall .hf3-intro .hf3-button{padding:12px 16px;gap:12px;font-size:12px;min-height:48px}
 #human-firewall .hf3-intro-actions{gap:12px}
 #human-firewall .hf3-intro [data-hf3-resume]{font-size:12px}
 #human-firewall .hf3-controls-preview{display:none}
 #human-firewall .hf3-bottom{padding:12px;gap:8px;flex-wrap:nowrap}
 #human-firewall .hf3-loc{display:none}
 #human-firewall .hf3-progress{margin-right:auto;gap:4px}
 #human-firewall .hf3-progress>span{width:23px;height:26px}
 #human-firewall .hf3-pause{min-height:44px;font-size:12px;padding:8px 12px}
 #human-firewall .hf3-dialog{inset:70px 12px 64px;width:auto;padding:18px;max-width:none}
 #human-firewall .hf3-touch{inset:auto auto 76px 12px}
 #human-firewall .hf3-joystick{width:76px;height:76px}
 #human-firewall .hfp-actions{right:12px;bottom:76px;gap:4px}
 #human-firewall .hfp-actions button{min-width:47px;min-height:64px;padding:6px;font-size:9px}
 #human-firewall .hfp-actions .hfp-pulse{min-width:60px;height:82px}
 #human-firewall .hfp-vitals{left:14px;bottom:174px;width:120px}
 #human-firewall .hfp-stats{top:113px;right:14px}
 #human-firewall .hf3-scorebars{grid-template-columns:minmax(0,1fr)}
}
@container firewall (max-width:430px){
 #human-firewall .hf3-brand{font-size:10px}
 #human-firewall .hf3-brand-logo{width:38px;height:32px}
 #human-firewall .hf3-settings [data-hf3-sound]{font-size:0}
 #human-firewall .hf3-settings [data-hf3-sound]:after{content:'♫';font-size:20px}
 #human-firewall .hf3-settings [data-hf3-sound][aria-pressed=true]{border-color:var(--lime);color:var(--lime)}
 #human-firewall .hf3-intro .hf3-caption{font-size:11px}
}
/* Two columns keep the full introduction visible on phones held sideways. */
@container firewall (max-height:460px) and (min-width:560px){
 #human-firewall .hf3-top{padding:10px 18px}
 #human-firewall .hf3-intro{inset:72px 5% 56px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-content:center;align-items:center}
 #human-firewall .hf3-intro h1{font-size:clamp(32px,5.5cqw,50px)}
 #human-firewall .hf3-intro .hf3-kicker{font-size:9px;letter-spacing:.1em;margin-bottom:12px}
 #human-firewall .hf3-intro-description{font-size:14px;line-height:1.4;margin-bottom:10px}
 #human-firewall .hf3-intro .hf3-button{font-size:12px;min-height:44px;padding:10px 14px;gap:10px}
 #human-firewall .hf3-intro-actions{gap:10px}
 #human-firewall .hf3-intro [data-hf3-resume]{font-size:12px}
 #human-firewall .hf3-intro .hf3-caption{font-size:10px}
 #human-firewall .hf3-controls-preview{display:none}
 #human-firewall .hf3-bottom{padding:8px 18px}
 #human-firewall .hf3-touch{inset:auto auto 60px 16px}
 #human-firewall .hf3-touch p{display:none}
 #human-firewall .hf3-joystick{width:76px;height:76px}
 #human-firewall .hfp-vitals{left:110px;bottom:60px;width:120px;gap:6px}
 #human-firewall .hfp-actions{right:16px;bottom:58px;gap:6px}
 #human-firewall .hfp-actions button{min-width:54px;min-height:58px;height:auto;padding:6px;font-size:9px}
 #human-firewall .hfp-actions .hfp-pulse{height:76px;min-width:64px}
 #human-firewall .hfp-wave{top:72px;left:18px;font-size:10px}
 #human-firewall .hfp-stats{top:72px;right:18px}
 #human-firewall .hfp-stats strong{font-size:26px}
 #human-firewall.is-combat .hf3-objective{display:none}
}

/* Compact screens show either combat information or the terminal objective. */
@container firewall (max-width:700px){
 #human-firewall.is-combat .hf3-objective{display:none}
 #human-firewall:not(.is-combat) .hfp-hud,
 #human-firewall:not(.is-combat) .hfp-banner{display:none}
 #human-firewall:not(.is-combat) .hf3-objective{display:grid;inset:76px 12px auto;width:auto;max-width:none;padding:12px;grid-template-columns:minmax(0,1fr) 88px;gap:4px 12px;align-items:start}
 #human-firewall:not(.is-combat) .hf3-objective .hf3-kicker{grid-column:1;grid-row:1;font-size:9px;line-height:1.4;margin:0}
 #human-firewall:not(.is-combat) .hf3-objective strong{grid-column:1;grid-row:2;min-width:0;font-size:16px;line-height:1.25}
 #human-firewall:not(.is-combat) .hf3-objective p{grid-column:1;grid-row:3;font-size:12px!important;line-height:1.4;margin:3px 0 0}
 #human-firewall:not(.is-combat) .hf3-objective [data-hf3-guide]{grid-column:2;grid-row:1/4;align-self:center;min-height:44px;max-width:none;font-size:12px;line-height:1.4;padding:6px 0;color:var(--cyan)}
 #human-firewall:not(.is-combat) .hf3-station-status{inset:auto 12px 168px;max-width:none;font-size:12px;line-height:1.4;padding:10px 12px}
 #human-firewall .hf3-interact{left:auto;right:12px;bottom:80px;transform:none;max-width:calc(100% - 116px);white-space:normal}
 #human-firewall .hf3-interact .hf3-button{min-height:52px;padding:10px 12px;font-size:12px;line-height:1.4;gap:8px}
}
@container firewall (max-height:460px) and (min-width:560px){
 #human-firewall:not(.is-combat) .hfp-hud,
 #human-firewall:not(.is-combat) .hfp-banner{display:none}
 #human-firewall:not(.is-combat) .hf3-objective{display:grid;inset:72px 16px auto;width:auto;max-width:none;padding:10px 12px;grid-template-columns:minmax(0,1fr) 130px;gap:2px 16px;align-items:start}
 #human-firewall:not(.is-combat) .hf3-objective .hf3-kicker{grid-column:1;grid-row:1;font-size:9px;line-height:1.4;margin:0}
 #human-firewall:not(.is-combat) .hf3-objective strong{grid-column:1;grid-row:2;min-width:0;font-size:14px;line-height:1.25}
 #human-firewall:not(.is-combat) .hf3-objective p{grid-column:1;grid-row:3;font-size:12px!important;line-height:1.4;margin:2px 0 0}
 #human-firewall:not(.is-combat) .hf3-objective [data-hf3-guide]{grid-column:2;grid-row:1/4;align-self:center;min-height:44px;max-width:none;font-size:12px;line-height:1.4;padding:6px 0;color:var(--cyan)}
 /* The objective and highlighted route already provide the navigation hint. */
 #human-firewall:not(.is-combat) .hf3-station-status{display:none}
 #human-firewall .hf3-interact{left:auto;right:16px;bottom:60px;transform:none;max-width:calc(100% - 128px);white-space:normal}
 #human-firewall .hf3-interact .hf3-button{min-height:48px;padding:10px 14px;font-size:12px;gap:8px}
}
