#tutorial-layer{position:fixed;inset:0;pointer-events:none;z-index:6;color:#214943}#tutorial-layer[hidden]{display:none}.tut-rail{position:absolute;top:144px;left:12px;right:12px;display:flex;gap:8px;align-items:start}.tut-objective{display:flex;align-items:center;gap:10px;padding:9px 12px;background:#fff7e6f5;border:2px solid #375c51;border-radius:16px;box-shadow:0 4px 0 #173e3330;max-width:470px;min-height:64px}.tut-objective b{font-size:17px}.tut-objective small{display:block;max-width:300px;font-size:12px;line-height:1.4;margin-top:4px}.tut-step{font-size:14px;font-weight:800;white-space:nowrap}.tut-icon{width:42px;height:42px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.tut-options{margin-left:auto;display:flex;gap:8px;pointer-events:auto}.tut-options button{min-width:48px;min-height:48px;background:#fff7e6;color:#214943;border:2px solid #375c51;border-radius:14px;font:700 20px system-ui}.tutorial-entry{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;margin-top:12px}.tutorial-entry svg{width:28px;height:28px}#tut-demo{position:absolute;display:flex;gap:10px;align-items:center;max-width:290px;pointer-events:none}#tut-demo[hidden]{display:none}#tut-demo>.tut-text{background:#fff7e6f2;border:1px solid #375c51;border-radius:10px;padding:8px;font-size:13px;font-weight:700;max-width:160px}.tut-key{min-width:49px;height:49px;border:3px solid #214943;background:#fff7e6;box-shadow:0 6px 0 #9caa91;border-radius:12px;display:grid;place-items:center;font:900 23px system-ui;animation:tut-key-press 2.4s ease-in-out infinite}.tut-space{font-size:13px;min-width:70px}.tut-ghost{width:140px;height:112px;overflow:visible;flex-shrink:0}.tut-ghost circle{fill:#fff7e6aa;stroke:#264d45;stroke-width:3}.tut-drag-line{fill:none;stroke:#264d45;stroke-width:3;stroke-dasharray:4 5}.tut-hand{fill:#fff3dc;stroke:#264d45;stroke-width:3;stroke-linejoin:round;animation:tut-hand-drag 2.4s ease-in-out infinite}#tut-demo[data-tap=true] .tut-hand{transform:translate(var(--tap-x),var(--tap-y));animation:none}.tut-result-mark{width:70px;height:70px;margin:0 auto 16px;display:grid;place-items:center;background:#d5e8d6;border:3px solid #375c51;border-radius:50%;font:900 40px system-ui}body[data-tutorial=on] #orbital,body[data-tutorial=on] #hint,body[data-tutorial=on] #evolution-status,body[data-tutorial=on] #arsenal{visibility:hidden}body[data-tutorial=on] #dash{visibility:hidden}body[data-tutorial=on][data-tut-step='2'] #dash,body[data-tutorial=on][data-tut-step='6'] #dash{visibility:visible}body[data-tut-text=off] .tut-text,body[data-tut-text=off][data-tutorial=on] #panel h2,body[data-tut-text=off][data-tutorial=on] #panel p,body[data-tut-text=off][data-tutorial=on] .card strong,body[data-tut-text=off][data-tutorial=on] .card small{display:none}body[data-tut-reduced=true] .tut-hand{animation:none;transform:translate(var(--drag-x),var(--drag-y))}body[data-tut-reduced=true] .tut-key{animation:none}body[data-tut-reduced=true] #tut-demo[data-tap=true] .tut-hand{transform:translate(var(--drag-x),var(--drag-y))}body[data-tutorial=on][data-screen=upgrade] #tut-demo{z-index:20}body[data-tutorial=on][data-screen=upgrade] #tutorial-layer{z-index:20}.tut-options button:focus-visible,.tutorial-entry:focus-visible{outline:3px solid #1b5148;outline-offset:3px}@keyframes tut-key-press{0%,100%{transform:translateY(0)}50%{transform:translateY(4px)}}@keyframes tut-hand-drag{0%,100%{transform:translate(0,0)}50%{transform:translate(var(--drag-x),var(--drag-y))}}@media(max-width:600px){.tut-rail{top:139px}.tut-objective{gap:7px;padding:7px 9px;flex:1;min-width:0}.tut-objective b{font-size:14px}.tut-objective small{font-size:11px}.tut-icon{width:32px;height:32px}.tut-step{font-size:12px}.tut-options{flex-direction:column}#tut-demo>.tut-text{font-size:11px;max-width:100px}}@media(max-height:500px){.tut-rail{top:98px;right:110px}.tut-objective{min-height:48px}.tut-options{flex-direction:row}#tut-demo{bottom:16px!important}.tut-ghost{width:90px;height:72px}.tut-objective small{max-width:360px}}
#tut-result{position:absolute;top:230px;left:16px;display:flex;align-items:center;gap:6px;background:#fff7e6;border:2px solid #375c51;border-radius:12px;padding:4px 8px;font-weight:800}#tut-result[hidden]{display:none}#tut-result svg{width:28px;height:28px}.tut-options svg{width:28px;height:28px}body[data-screen=upgrade] .tut-objective{display:none}body[data-screen=upgrade] .tut-rail{top:auto;bottom:12px}#tut-demo[data-gesture=tap] circle,#tut-demo[data-gesture=tap] .tut-drag-line{display:none}#tut-demo[data-gesture=tap] .tut-hand{animation:tut-key-press 2.4s ease-in-out infinite}body[data-tut-reduced=true] #tut-demo[data-gesture=tap] .tut-hand{animation:none;transform:none}body[data-sdk-paused=true] *{animation-play-state:paused!important}body[data-tut-text=off][data-tutorial=on] #hud label span,body[data-tut-text=off][data-tutorial=on] #phase{visibility:hidden}@media(max-height:500px){#tut-result{top:165px}body[data-screen=upgrade] #tut-demo{bottom:auto!important}}
@media(max-height:520px) and (orientation:landscape){body[data-screen=menu] #panel{grid-template-columns:145px minmax(0,1fr);column-gap:12px;padding:12px;min-width:0}body[data-screen=menu] .loadouts{min-width:0;gap:6px}body[data-screen=menu] .loadout{min-width:0;padding:4px}body[data-screen=menu] .loadout strong{font-size:11px}body[data-screen=menu] .loadout p{font-size:9px}body[data-screen=menu] #learn{grid-column:1/-1;margin-top:4px}body[data-screen=menu] #showcase{grid-column:1/-1;grid-row:auto}body[data-screen=menu] #start{min-height:48px}.language-control select{min-height:40px}}
.tut-upgrade-comparison{display:grid;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);align-items:center;gap:8px;grid-column:1/-1}.tut-upgrade-comparison img{width:100%;height:125px;object-fit:contain}.tut-upgrade-arrow{display:grid;justify-items:center;color:#2c6457}.tut-upgrade-arrow svg{width:34px;height:34px}.tut-upgrade-arrow b{font-size:14px}.cards:has(.tut-upgrade-comparison){grid-template-columns:minmax(0,1fr);max-width:480px;margin:12px auto}.card:has(.tut-upgrade-comparison){display:block!important}.tut-upgrade-comparison+.card strong{font-size:16px}@media(max-width:600px){.tut-upgrade-comparison img{height:104px}.tut-upgrade-comparison{gap:4px;grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr)}}@media(max-height:500px){.tut-rail{top:auto;bottom:12px;right:112px}.tut-objective{max-width:330px;min-height:48px}.tut-objective small{display:none}#tut-demo{bottom:82px!important}#tut-result{top:auto;bottom:80px;left:auto;right:120px}.tut-upgrade-comparison img{height:80px}}
.tut-earned{display:flex;align-items:center;justify-content:center;gap:12px;color:#986c31;margin:10px 0}.tut-earned svg{width:30px;height:30px}.tut-earned i{display:block;width:88px;height:9px;border:2px solid #335d50;border-radius:8px;background:#f0bc63}.tut-xp-flight{position:fixed;z-index:25;width:30px;height:30px;color:#f4c16b;filter:drop-shadow(0 1px 1px #214943);pointer-events:none;animation:tut-crystal-flight .7s ease-out forwards}.tut-xp-flight svg{width:30px;height:30px}@keyframes tut-crystal-flight{0%{transform:translate(-50%,-50%);opacity:1}85%{opacity:1}100%{transform:translate(calc(var(--flight-x) - 50%),calc(var(--flight-y) - 50%)) scale(.65);opacity:0}}@media(max-height:520px) and (orientation:landscape){body[data-screen=menu] #overlay{padding-top:56px}.loadout .weapon-photo{height:48px}.tut-earned{margin:4px 0}.tut-earned svg{width:24px;height:24px}}

/* V28: a reserved column for persistent controls and a visible teaching footer.
   Applies only to tutorial upgrade screens in short landscape. */
@media(max-height:520px) and (orientation:landscape){
 body[data-tutorial=on][data-screen=upgrade] #overlay{padding:56px 84px 4px 12px;align-items:start;justify-items:center}
 body[data-tutorial=on][data-screen=upgrade] #panel{width:100%;max-width:650px;padding:10px 12px;border-radius:18px}
 body[data-tutorial=on][data-screen=upgrade] #panel>.eyebrow{font-size:8px;letter-spacing:1px}
 body[data-tutorial=on][data-screen=upgrade] #panel>h2{font-size:18px;line-height:1.15;margin:4px 0}
 body[data-tutorial=on][data-screen=upgrade] #panel>p{font-size:10px;line-height:1.25;margin:3px 0}
 body[data-tutorial=on][data-screen=upgrade] .cards{margin:4px 0;gap:7px}
 body[data-tutorial=on][data-screen=upgrade] .card{display:block;min-height:48px!important;padding:6px;min-width:0}
 body[data-tutorial=on][data-screen=upgrade] .card small{font-size:9px;line-height:1.25}
 body[data-tutorial=on][data-screen=upgrade] .card strong{font-size:13px;line-height:1.15;margin:3px 0}
 body[data-tutorial=on][data-screen=upgrade] .card p{font-size:11px;line-height:1.25;margin:3px 0 0}
 body[data-tutorial=on][data-screen=upgrade] .card .weapon-photo{width:100%;height:42px;margin:0;float:none}
 body[data-tutorial=on][data-screen=upgrade] .tut-upgrade-comparison img{height:44px;width:100%}
 body[data-tutorial=on][data-screen=upgrade] .tut-upgrade-arrow svg{width:24px;height:24px}
 body[data-tutorial=on][data-screen=upgrade] .tut-upgrade-arrow b{font-size:12px}
 body[data-tutorial=on][data-screen=upgrade] .tut-earned{margin:2px 0;gap:8px}
 body[data-tutorial=on][data-screen=upgrade] .tut-earned svg{width:16px;height:16px}
 body[data-tutorial=on][data-screen=upgrade] .build-strip{display:none}
 body[data-tutorial=on][data-screen=upgrade] #panel>.foot{font-size:10px;margin:4px 0 0}
 body[data-tutorial=on][data-screen=upgrade][data-tut-step='3'] #panel{padding-bottom:62px}
 body[data-tutorial=on][data-screen=upgrade][data-tut-step='3'] #panel>.foot{display:none}
 body[data-tutorial=on][data-screen=upgrade] .tut-rail{top:auto;bottom:12px;left:auto;right:12px}
 body[data-tutorial=on][data-screen=upgrade] .tut-options{flex-direction:column;gap:8px}
 body[data-tutorial=on][data-screen=upgrade] .tut-options button{width:48px;height:48px;min-width:48px;min-height:48px;padding:0}
 body[data-tutorial=on][data-screen=upgrade] #tut-demo{max-width:calc(100vw - 112px);gap:8px}
 body[data-tutorial=on][data-screen=upgrade] .tut-ghost{width:60px;height:48px}
 body[data-tutorial=on][data-screen=upgrade] #tut-demo>.tut-text{font-size:11px;line-height:1.3;max-width:240px;padding:5px 7px}
 body[data-tutorial=on][data-screen=upgrade] .tut-key{height:48px;min-width:48px;font-size:20px;box-shadow:0 3px 0 #9caa91}
}
