/* V2A shared presentation primitives, activated only for the Practice pilot. */
body:is(.practice-pilot,.training-pilot){
 --game-navy:#030c1b;--game-text:#effaff;--game-muted:#b2c9db;
 --game-energy:#74e2ed;--game-gold:#ffe18a;--game-right:#8af0bf;--game-wrong:#ff9cb8;
 --game-material:linear-gradient(145deg,#163147ed,#071729f5);
 --game-space:clamp(14px,2.6vw,24px);--game-touch:44px;
 background:var(--game-navy);color:var(--game-text);overflow-x:hidden;
}
html:has(body:is(.practice-pilot,.training-pilot)){scroll-behavior:auto!important}
body.game-world:is(.practice-pilot,.training-pilot):before{background:linear-gradient(180deg,#030c1b9c,#030c1bd6 45%,#030c1b 97%),url('assets/hub-cosmos.webp') 62% 40%/cover no-repeat;opacity:1;animation:none}
body.game-world:is(.practice-pilot,.training-pilot):after{display:none}
body.game-world:is(.practice-pilot,.training-pilot) .app{max-width:1080px;padding:0 var(--game-space);margin:auto;min-height:100dvh}
body.game-world:is(.practice-pilot,.training-pilot) .app>header,
body.game-world:is(.practice-pilot,.training-pilot) .app>footer,
body.game-world:is(.practice-pilot,.training-pilot) .mission-header,
body.game-world:is(.practice-pilot,.training-pilot) :is(.home-deck,.home-controls,.topline,#launch,#journey,#leaderboard){display:none!important}
body.game-world:is(.practice-pilot,.training-pilot) main{margin:0;padding:0}
body.game-world:is(.practice-pilot,.training-pilot) #game-workspace{display:block;width:100%;max-width:none;margin:0;padding:0}
body.game-world:is(.practice-pilot,.training-pilot) .arena{border:0;border-radius:0;box-shadow:none;background:none;overflow:visible;padding:0}
body:is(.practice-pilot,.training-pilot) .gameplay-shell{display:grid;grid-template-rows:auto minmax(132px,.75fr) minmax(260px,1.25fr) auto auto;gap:var(--game-space);min-height:100dvh;padding:calc(14px + env(safe-area-inset-top)) 0 calc(10px + env(safe-area-inset-bottom));position:relative}
body.game-world:is(.practice-pilot,.training-pilot) .hud{padding:0;background:none;border:0;box-shadow:none;display:grid;grid-template-columns:1fr auto auto;gap:8px 20px;align-items:center;min-height:60px}
body.game-world:is(.practice-pilot,.training-pilot) .hud>.session-identity{display:flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:none}
body.game-world:is(.practice-pilot,.training-pilot) .session-mode{color:var(--game-text);font-size:18px;font-weight:800;letter-spacing:.01em}
body.game-world:is(.practice-pilot,.training-pilot) .session-hsk{background:none;border:0;padding:0;color:var(--game-energy);font-size:14px}
body.game-world:is(.practice-pilot,.training-pilot) .hud>div:not(.session-identity):not(.gameplay-hud-track){display:flex;flex-direction:column;align-items:flex-end;gap:0}
body.game-world:is(.practice-pilot,.training-pilot) .hud small{font-size:12px;color:var(--game-muted);letter-spacing:.02em}
body.game-world:is(.practice-pilot,.training-pilot) .hud strong{font:700 22px/1.3 Arial,Tahoma,sans-serif;color:var(--game-gold);letter-spacing:1px}
body.game-world:is(.practice-pilot,.training-pilot) .hud .round strong{color:var(--game-text);font-size:18px;letter-spacing:0}
body.game-world:is(.practice-pilot,.training-pilot) .hud>.health{display:none!important}
body:is(.practice-pilot,.training-pilot) .gameplay-hud-track{grid-column:1/-1;display:flex;align-items:center;gap:15px}
body:is(.practice-pilot,.training-pilot) .gameplay-progress{appearance:none;flex:1;width:100%;height:3px;border:0;background:#27445a;border-radius:0;accent-color:var(--game-gold)}
body:is(.practice-pilot,.training-pilot) .gameplay-progress::-webkit-progress-bar{background:#27445a}
body:is(.practice-pilot,.training-pilot) .gameplay-progress::-webkit-progress-value{background:var(--game-gold)}
body:is(.practice-pilot,.training-pilot) .gameplay-progress::-moz-progress-bar{background:var(--game-gold)}
body.game-world:is(.practice-pilot,.training-pilot) #combo{font:700 12px/1.3 Arial,sans-serif;letter-spacing:.03em;color:var(--game-muted);white-space:nowrap}
body.game-world:is(.practice-pilot,.training-pilot) .question{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;text-align:center;min-height:0;padding:12px 8px;background:none;border:0;box-shadow:none;isolation:isolate}
body:is(.practice-pilot,.training-pilot) .question:before{content:'';position:absolute;inset:8% 12%;z-index:-1;background:radial-gradient(ellipse,#21688a55,transparent 70%);pointer-events:none}
body.game-world:is(.practice-pilot,.training-pilot) .question :is(.signal-display,.target-caption){display:none}
body.game-world:is(.practice-pilot,.training-pilot) #question-label{font:500 16px/1.4 Tahoma,Arial,sans-serif;color:var(--game-muted);letter-spacing:0;max-width:100%;overflow-wrap:anywhere}
body.game-world:is(.practice-pilot,.training-pilot) .question #prompt{font-size:clamp(36px,7vw,58px);font-family:'PingFang SC','Microsoft YaHei',Tahoma,sans-serif;line-height:1.18;font-weight:750;letter-spacing:.02em;color:var(--game-text);margin:13px 0 8px;max-width:100%;overflow-wrap:anywhere;text-shadow:0 2px 18px #071221}
body.game-world:is(.practice-pilot,.training-pilot) .question .prompt-pinyin{font:400 21px/1.35 Arial,Tahoma,sans-serif;color:var(--game-energy);margin:0}
body.game-world:is(.practice-pilot,.training-pilot) .question.gameplay-long-prompt #prompt{font-size:28px;line-height:1.28;letter-spacing:0}
body.game-world:is(.practice-pilot,.training-pilot) .timer{display:none}
body.game-world:is(.practice-pilot,.training-pilot) #field{min-height:0;overflow:visible;border:0;background:none;box-shadow:none;display:flex;align-items:center}
body.game-world:is(.practice-pilot,.training-pilot) .arena:not(.bubble-mode) #targets{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(126px,1fr);gap:14px;padding:0;align-content:center}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target:not(.word-bubble){position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;max-width:none;min-height:126px;min-width:0;padding:24px 14px 18px;border:0;border-radius:2px 18px 2px 18px;background:var(--game-material);color:var(--game-text);box-shadow:inset 0 1px 0 #729bb544,0 14px 28px #01061070;animation:none;cursor:pointer;transition:transform .1s ease,background .12s ease,box-shadow .12s ease;font-size:23px;line-height:1.4;text-align:center;overflow-wrap:anywhere;touch-action:manipulation}
body:is(.practice-pilot,.training-pilot) #targets .target:before{content:'';position:absolute;left:0;top:25%;bottom:25%;width:2px;background:var(--game-energy);opacity:.65}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target>span{max-width:100%;font-weight:500}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target .hanzi{font-size:32px;line-height:1.25}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target .pinyin{font:400 16px/1.3 Arial,Tahoma,sans-serif;color:#b9dbe8;margin:0}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target .key{font-size:12px;left:12px;top:8px;background:none;color:#a4c1d0;width:auto;height:auto}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target:hover:not(:disabled){background:linear-gradient(145deg,#204b62,#0c2036);box-shadow:inset 0 1px 0 #93dcec77,0 14px 28px #01061070}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target:active:not(:disabled){transform:scale(.975)}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target:disabled{opacity:.48}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target.correct{opacity:1;background:linear-gradient(145deg,#1d5345,#0a2827);box-shadow:inset 0 2px 0 var(--game-right),0 10px 24px #01061060}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target.wrong{opacity:1;background:linear-gradient(145deg,#63334b,#29162d);box-shadow:inset 0 2px 0 var(--game-wrong),0 10px 24px #01061060}
body:is(.practice-pilot,.training-pilot) #targets .target.correct:before{background:var(--game-right)}
body:is(.practice-pilot,.training-pilot) #targets .target.wrong:before{background:var(--game-wrong)}
body.game-world:is(.practice-pilot,.training-pilot) .bottom{border:0;background:none;min-height:52px;padding:0 4px;display:flex;align-items:center;gap:8px;box-shadow:none}
body.game-world:is(.practice-pilot,.training-pilot) #feedback{font-size:14px;line-height:1.5;color:var(--game-muted);overflow-wrap:anywhere;min-width:0}
body.game-world:is(.practice-pilot,.training-pilot) #next{min-height:44px;flex-shrink:0;background:#203950;border:0;border-radius:8px;font-size:14px}
body:is(.practice-pilot,.training-pilot) .gameplay-dock{display:flex;flex-direction:column;gap:14px}
body.game-world:is(.practice-pilot,.training-pilot) #mini-event{padding:6px 4px;background:none;border:0;font-size:14px;line-height:1.4;color:var(--game-gold)}
body.game-world:is(.practice-pilot,.training-pilot) #overdrive-panel{padding:0 4px;background:none;border:0;box-shadow:none}
body.game-world:is(.practice-pilot,.training-pilot) #overdrive-panel>div{display:flex;flex-wrap:nowrap;align-items:center;gap:12px}
body.game-world:is(.practice-pilot,.training-pilot) #overdrive-label{font:800 12px/1.3 Arial,sans-serif;color:var(--game-gold);letter-spacing:.07em;white-space:nowrap}
body.game-world:is(.practice-pilot,.training-pilot) #overdrive-help{font-size:12px;line-height:1.4;color:var(--game-muted);text-align:right;flex:1}
body.game-world:is(.practice-pilot,.training-pilot) #overdrive-meter{height:5px;display:block;width:100%;margin:7px 0 0;accent-color:var(--game-gold)}
body.game-world:is(.practice-pilot,.training-pilot) #overdrive-meter::-webkit-progress-bar{background:#213649;border-radius:0}
body.game-world:is(.practice-pilot,.training-pilot) #overdrive-meter::-webkit-progress-value{background:var(--game-gold)}
body.game-world:is(.practice-pilot,.training-pilot) .arena.overdrive #overdrive-meter::-webkit-progress-value{background:var(--game-energy)}
body.game-world:is(.practice-pilot,.training-pilot) .arena-foot{border:0;padding:0;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;background:none;box-shadow:none}
body:is(.practice-pilot,.training-pilot) .gameplay-controls,body:is(.practice-pilot,.training-pilot) .gameplay-utilities{display:flex;align-items:center;gap:4px}
body:is(.practice-pilot,.training-pilot) .gameplay-options{position:relative;margin-left:auto}
body:is(.practice-pilot,.training-pilot) .gameplay-options>summary{list-style:none;cursor:pointer;color:var(--game-muted);width:44px;height:44px;display:grid;place-items:center;font-size:21px}
body:is(.practice-pilot,.training-pilot) .gameplay-options>summary::-webkit-details-marker{display:none}
body:is(.practice-pilot,.training-pilot) .gameplay-options>summary:focus-visible{outline:3px solid var(--game-energy);outline-offset:2px}
body:is(.practice-pilot,.training-pilot) .gameplay-options:not([open])>.gameplay-utilities{display:none}
body:is(.practice-pilot,.training-pilot) .gameplay-options[open]>.gameplay-utilities{position:absolute;right:0;bottom:50px;padding:12px;background:#10253a;box-shadow:0 8px 32px #000a;border-radius:12px;z-index:8}
body.game-world:is(.practice-pilot,.training-pilot) .arena-foot #mode-text{display:none}
body.game-world:is(.practice-pilot,.training-pilot) .arena-foot button,body.game-world:is(.practice-pilot,.training-pilot) #ui-language{color:var(--game-muted);font:400 14px/1.3 Tahoma,Arial,sans-serif;border:0;background:none;border-radius:8px;min-height:44px;padding:8px}
body.game-world:is(.practice-pilot,.training-pilot) .arena-foot #exit:not([hidden]){margin:0;padding:8px;min-height:44px;position:static;font-size:14px;border:0;background:none;box-shadow:none;color:var(--game-muted)}
body:is(.practice-pilot,.training-pilot) #ui-language{max-width:100px}
body:is(.practice-pilot,.training-pilot) #sound{max-width:92px}
body:is(.practice-pilot,.training-pilot) .listen{min-height:44px}
body:is(.practice-pilot,.training-pilot) #points-pop{color:var(--game-gold)}
@media(min-width:700px) and (min-height:600px){
 body:is(.practice-pilot,.training-pilot) .gameplay-shell{gap:24px;max-width:860px;margin:auto;grid-template-rows:auto minmax(200px,.85fr) minmax(330px,1.15fr) auto auto;padding-top:28px;padding-bottom:24px}
 body.game-world:is(.practice-pilot,.training-pilot) #targets .target:not(.word-bubble){min-height:154px;font-size:28px}
 body.game-world:is(.practice-pilot,.training-pilot) .question #prompt{font-size:64px}
 body.game-world:is(.practice-pilot,.training-pilot) .question.gameplay-long-prompt #prompt{font-size:40px}
 body.game-world:is(.practice-pilot,.training-pilot) #targets .target .hanzi{font-size:38px}
 body.game-world:is(.practice-pilot,.training-pilot) .session-mode{font-size:22px}
 body.game-world:is(.practice-pilot,.training-pilot) #overdrive-help{font-size:14px}
}
@media(max-height:700px) and (orientation:portrait){
 body:is(.practice-pilot,.training-pilot) .gameplay-shell{gap:10px;grid-template-rows:auto minmax(100px,.6fr) minmax(216px,1fr) auto auto}
 body.game-world:is(.practice-pilot,.training-pilot) #targets .target:not(.word-bubble){min-height:100px;padding:18px 10px}
 body.game-world:is(.practice-pilot,.training-pilot) .arena:not(.bubble-mode) #targets{grid-auto-rows:minmax(100px,1fr);gap:12px}
 body:is(.practice-pilot,.training-pilot) .gameplay-dock{gap:7px}
}
@media(max-height:500px) and (min-width:700px) and (orientation:landscape){
 body:is(.practice-pilot,.training-pilot) .gameplay-shell{height:auto;min-height:100dvh;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);grid-template-rows:auto 1fr auto;gap:10px 26px;padding:calc(8px + env(safe-area-inset-top)) 0 calc(8px + env(safe-area-inset-bottom))}
 body.game-world:is(.practice-pilot,.training-pilot) .hud{grid-column:1/-1;min-height:42px;grid-template-columns:1fr auto auto minmax(200px,1fr);gap:10px 20px}
 body:is(.practice-pilot,.training-pilot) .gameplay-hud-track{grid-column:4}
 body.game-world:is(.practice-pilot,.training-pilot) .question{grid-column:1;grid-row:2;padding:8px;justify-content:center}
 body.game-world:is(.practice-pilot,.training-pilot) .question #prompt{font-size:40px;margin:9px 0}
 body.game-world:is(.practice-pilot,.training-pilot) .question.gameplay-long-prompt #prompt{font-size:26px}
 body.game-world:is(.practice-pilot,.training-pilot) .question .prompt-pinyin{font-size:18px}
 body.game-world:is(.practice-pilot,.training-pilot) #field{grid-column:2;grid-row:2}
 body.game-world:is(.practice-pilot,.training-pilot) .arena:not(.bubble-mode) #targets{gap:12px;grid-auto-rows:minmax(84px,1fr)}
 body.game-world:is(.practice-pilot,.training-pilot) #targets .target:not(.word-bubble){min-height:84px;padding:16px 12px;font-size:20px}
 body.game-world:is(.practice-pilot,.training-pilot) #targets .target .hanzi{font-size:28px}
 body.game-world:is(.practice-pilot,.training-pilot) .bottom{grid-column:1;grid-row:3;min-height:0;align-self:start}
 body:is(.practice-pilot,.training-pilot) .gameplay-dock{grid-column:2;grid-row:3;gap:5px}
 body.game-world:is(.practice-pilot,.training-pilot) .arena-foot{flex-wrap:nowrap}
 body.game-world:is(.practice-pilot,.training-pilot) .arena-foot button,body.game-world:is(.practice-pilot,.training-pilot) #ui-language{font-size:12px;padding:6px}
 body.game-world:is(.practice-pilot,.training-pilot) .arena-foot #exit:not([hidden]){font-size:12px;padding:6px}
 body.game-world:is(.practice-pilot,.training-pilot) .session-mode{font-size:17px}
}
@media(prefers-reduced-motion:reduce){
 body:is(.practice-pilot,.training-pilot) *,body:is(.practice-pilot,.training-pilot) *:before,body:is(.practice-pilot,.training-pilot) *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 body.game-world:is(.practice-pilot,.training-pilot) #targets .target:active:not(:disabled){transform:none}
}

/* V2A cinematic correction: the learning target occupies a physical stage.
   All educational content, verdicts and controls are original live DOM nodes. */
body:is(.practice-pilot,.training-pilot){--game-energy:#75eaff;--game-gold:#ffe09a;--game-space:12px;--game-pad-cut:14px}
body.game-world:is(.practice-pilot,.training-pilot):before,body.game-world:is(.practice-pilot,.training-pilot):after{display:none;animation:none}
/* Existing cinematic art, now separated from the stationary live UI. */
body:is(.practice-pilot,.training-pilot) .gameplay-world{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0;contain:strict}
body:is(.practice-pilot,.training-pilot) .gameplay-world>div{position:absolute;inset:-12px;pointer-events:none}
body:is(.practice-pilot,.training-pilot) .gameplay-world-base{background:linear-gradient(180deg,#020a17a3 0%,#03102140 24%,#03102163 50%,#020916e8 92%),url('assets/hub-cosmos.webp') 60% 25%/cover no-repeat;animation:arena-world-drift 18s linear infinite alternate;will-change:transform}
body:is(.practice-pilot,.training-pilot) .gameplay-world-structures{background:url('assets/hub-cosmos.webp') 60% 25%/cover no-repeat;opacity:.16;-webkit-mask-image:linear-gradient(150deg,transparent 40%,#000 58%,transparent 76%);mask-image:linear-gradient(150deg,transparent 40%,#000 58%,transparent 76%);animation:arena-structures-drift 13s ease-in-out infinite alternate}
body:is(.practice-pilot,.training-pilot) .gameplay-world-haze{background:radial-gradient(ellipse at 15% 42%,#51cfff26,transparent 48%),radial-gradient(ellipse at 85% 68%,#6a79f921,transparent 45%);animation:arena-atmosphere 10s ease-in-out infinite alternate}
body:is(.practice-pilot,.training-pilot) .gameplay-world-particles{background:radial-gradient(circle at 13% 29%,#d7f7ffcc 0 1px,transparent 2px),radial-gradient(circle at 88% 32%,#b5eeffc4 0 1px,transparent 2px),radial-gradient(circle at 21% 63%,#f4d59aa3 0 1px,transparent 2px),radial-gradient(circle at 76% 72%,#a4eeffb3 0 1px,transparent 2px),radial-gradient(circle at 6% 79%,#a4eeff99 0 1px,transparent 2px),radial-gradient(circle at 94% 53%,#f4d59aaa 0 1px,transparent 2px);animation:arena-world-particles 8s ease-in-out infinite alternate;opacity:.65}
body.game-world:is(.practice-pilot,.training-pilot) .app{position:relative;z-index:1;max-width:1080px;padding:0 16px}
body:is(.practice-pilot,.training-pilot) .gameplay-shell{grid-template-rows:auto minmax(280px,1fr) auto auto auto;gap:12px;padding:calc(14px + env(safe-area-inset-top)) 0 calc(10px + env(safe-area-inset-bottom));min-height:100dvh;isolation:isolate}
body.game-world:is(.practice-pilot,.training-pilot) .hud{position:relative;min-height:64px;gap:5px 18px;padding:9px 12px 8px;background:linear-gradient(110deg,#061528d9,#0b213bd9);clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px);box-shadow:inset 0 1px #7bcaff55,inset 0 -1px #7bcaff35}
body.game-world:is(.practice-pilot,.training-pilot) .session-mode{font-size:17px;letter-spacing:.015em}
body.game-world:is(.practice-pilot,.training-pilot) .session-hsk{font-size:13px;letter-spacing:.04em}
body.game-world:is(.practice-pilot,.training-pilot) .hud strong{font-size:22px;text-shadow:0 0 18px #e8b55625}
body.game-world:is(.practice-pilot,.training-pilot) #combo{color:#c5e5f1;font-size:12px}
body:is(.practice-pilot,.training-pilot) .gameplay-progress{height:2px;background:#2d5775}
body.game-world:is(.practice-pilot,.training-pilot) .question{padding:48px 22px 92px;min-height:300px;justify-content:center;overflow:visible}
body:is(.practice-pilot,.training-pilot) .question:before{display:none}
body:is(.practice-pilot,.training-pilot) .gameplay-scene{position:absolute;inset:0 -16px;pointer-events:none;z-index:-1;overflow:hidden}
body:is(.practice-pilot,.training-pilot) .gameplay-stage{position:absolute;inset:10px -12px -4px;background:url('assets/practice-arena-stage.webp') center/contain no-repeat}
body:is(.practice-pilot,.training-pilot) .gameplay-orbit{position:absolute;width:72%;aspect-ratio:1;left:14%;top:49%;transform:translateY(-50%) rotate(-12deg) scaleY(.3);pointer-events:none}
body:is(.practice-pilot,.training-pilot) .gameplay-orbit-track{position:absolute;inset:0;border:1px solid #e3c06d66;border-radius:50%;background:radial-gradient(circle at 50% 0%,#fff0bb 0 3px,transparent 6px),radial-gradient(circle at 100% 50%,#8defff 0 2px,transparent 5px),radial-gradient(circle at 50% 100%,#fff0bb 0 3px,transparent 6px),radial-gradient(circle at 0% 50%,#8defff 0 2px,transparent 5px);animation:arena-orbit 24s linear infinite;will-change:transform}
body:is(.practice-pilot,.training-pilot) .gameplay-orbit-track:before{content:'';position:absolute;inset:-1px;border:2px solid transparent;border-left-color:#ffe6a9bb;border-right-color:#8defff99;border-radius:50%;pointer-events:none}
body:is(.practice-pilot,.training-pilot) .gameplay-dust{position:absolute;inset:18% 4% 15%;background:radial-gradient(circle at 16% 32%,#bff8ff 0 1px,transparent 2px),radial-gradient(circle at 87% 45%,#7bdcff 0 1px,transparent 2px),radial-gradient(circle at 65% 8%,#f9df99 0 1px,transparent 2px),radial-gradient(circle at 31% 73%,#88e7ff 0 1px,transparent 2px);opacity:.65;animation:arena-dust 7s ease-in-out infinite alternate}
body:is(.practice-pilot,.training-pilot) .gameplay-halo{position:absolute;inset:22% 15% 30%;border-radius:50%;background:radial-gradient(ellipse,transparent 49%,#75ddff21 63%,transparent 74%);animation:arena-orb-breathe 4.8s ease-in-out infinite}
body:is(.practice-pilot,.training-pilot) .gameplay-platform-energy{position:absolute;left:22%;width:56%;top:77%;height:9%;border-radius:50%;background:radial-gradient(ellipse,#adf5ff4a, #33c5ff28 40%,transparent 72%);animation:arena-platform-pulse 3.6s ease-in-out infinite}
body.game-world:is(.practice-pilot,.training-pilot) #question-label{position:absolute;top:7px;left:0;right:0;font-size:16px;font-weight:600;color:#e7f6ff;text-shadow:0 2px 8px #00102f;line-height:1.4}
body.game-world:is(.practice-pilot,.training-pilot) .question #prompt{font-size:clamp(40px,11.5vw,64px);line-height:1.2;margin:0 0 8px;color:#f2fcff;text-shadow:0 0 12px #6bebff6b,0 2px 4px #001029,0 0 28px #0998ec50;max-width:100%}
body.game-world:is(.practice-pilot,.training-pilot) .question .prompt-pinyin{font-size:22px;color:#aeefff;line-height:1.35;text-shadow:0 2px 6px #001125}
body.game-world:is(.practice-pilot,.training-pilot) .question.gameplay-long-prompt #prompt{font-size:27px;line-height:1.27}
body.game-world:is(.practice-pilot,.training-pilot) .question #listen{position:relative;z-index:1}
body.game-world:is(.practice-pilot,.training-pilot) #field{align-items:stretch}
body.game-world:is(.practice-pilot,.training-pilot) .arena:not(.bubble-mode) #targets{gap:12px;grid-auto-rows:minmax(106px,1fr)}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target:not(.word-bubble){min-height:106px;padding:18px 14px 16px;border-radius:0;clip-path:polygon(var(--game-pad-cut) 0,calc(100% - var(--game-pad-cut)) 0,100% var(--game-pad-cut),100% calc(100% - var(--game-pad-cut)),calc(100% - var(--game-pad-cut)) 100%,var(--game-pad-cut) 100%,0 calc(100% - var(--game-pad-cut)),0 var(--game-pad-cut));background:linear-gradient(180deg,#082547e0 0%,#061a30ed 48%,#082b42d4 100%),url('assets/hub-cosmos.webp') 65% 80%/480px auto no-repeat;box-shadow:inset 0 0 0 1px #62daff85,inset 0 3px #80ecffae,inset 0 -3px #b4edff9c;font-size:22px;line-height:1.3;overflow-wrap:anywhere;animation:arena-terminal-entry .32s ease-out both;transition:transform .1s,filter .15s}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target:nth-child(2){background-position:0 0,85% 38%;animation-delay:.025s}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target:nth-child(3){background-position:0 0,15% 72%;animation-delay:.05s}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target:nth-child(4){background-position:0 0,75% 18%;animation-delay:.075s}
body:is(.practice-pilot,.training-pilot) #targets .target:before{inset:auto 12% 4px;width:auto;height:1px;background:linear-gradient(90deg,transparent,#ffe5a0,transparent);opacity:.7;animation:arena-pad-energy 7s ease-in-out infinite}
body:is(.practice-pilot,.training-pilot) #targets .target:after{content:'';position:absolute;inset:7px;pointer-events:none;border-left:1px solid #5addff30;border-right:1px solid #5addff30;clip-path:inherit}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target>span{position:relative;z-index:1;text-shadow:0 2px 5px #000;max-width:100%}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target .hanzi{font-size:32px}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target .pinyin{font-size:16px;color:#bfe8f2}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target:hover:not(:disabled){background:linear-gradient(180deg,#123959eb,#062138ed),url('assets/hub-cosmos.webp') center/480px auto no-repeat;box-shadow:inset 0 0 0 2px #80edff,inset 0 3px #bdefff,inset 0 -3px #ffe5a0;filter:brightness(1.08)}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target:focus-visible{outline:0;box-shadow:inset 0 0 0 3px #ffe5a0,inset 0 5px #fff0a8,inset 0 -5px #fff0a8}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target:active:not(:disabled){transform:translateY(2px) scale(.985)}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target:disabled{opacity:.65;filter:saturate(.65)}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target.correct{opacity:1;filter:none;background:linear-gradient(145deg,#12483fee,#061f2ced);box-shadow:inset 0 0 0 2px #8df7c4,inset 0 4px #b3ffdc,inset 0 -3px #9bffc5;animation:arena-confirm .5s ease-out}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target.wrong{opacity:1;filter:none;background:linear-gradient(145deg,#61263aeb,#261729ef);box-shadow:inset 0 0 0 2px #ff9bb5,inset 0 4px #ffd0da,inset 0 -3px #ff7ca2;animation:arena-reject .25s ease-out}
body:is(.practice-pilot,.training-pilot) .arena-correct .gameplay-stage{animation:arena-stage-reward .65s ease-out}
body:is(.practice-pilot,.training-pilot) .arena-wrong .gameplay-orbit{border-color:#ff93b5;box-shadow:0 0 18px #fc66842b}
body:is(.practice-pilot,.training-pilot) .arena-correct .hud #score{animation:arena-score .45s ease-out;color:#fff0b5}
body:is(.practice-pilot,.training-pilot) .arena-correct #combo{color:var(--game-gold)}
body.game-world:is(.practice-pilot,.training-pilot) .bottom{justify-content:center;text-align:center;min-height:36px;padding:0 2px}
body.game-world:is(.practice-pilot,.training-pilot) #feedback{font-size:14px;line-height:1.4;text-shadow:0 2px 4px #001027}
body.game-world:is(.practice-pilot,.training-pilot) #points-pop{font:800 24px/1.2 Arial,sans-serif;color:#ffe8a7;text-shadow:0 0 16px #e0b14166;z-index:3}
body:is(.practice-pilot,.training-pilot) .gameplay-dock{gap:8px}
body.game-world:is(.practice-pilot,.training-pilot) #overdrive-panel{padding:10px 12px;background:linear-gradient(105deg,#08182bdc,#071223df);clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px);box-shadow:inset 0 1px #d0ac5855,inset 0 -1px #d0ac5833}
body.game-world:is(.practice-pilot,.training-pilot) #overdrive-label{font-size:12px;color:#ffe09a}
body.game-world:is(.practice-pilot,.training-pilot) #overdrive-help{font-size:12px;color:#bdd5e4}
body.game-world:is(.practice-pilot,.training-pilot) #overdrive-meter{height:5px;margin-top:8px}
body.game-world:is(.practice-pilot,.training-pilot) .arena-foot button,body.game-world:is(.practice-pilot,.training-pilot) .arena-foot #exit:not([hidden]){padding:8px 12px;font-size:14px;color:#b8d4e5}
body:is(.practice-pilot,.training-pilot) .ambient-paused *,body:is(.practice-pilot,.training-pilot) .ambient-paused *:before,body:is(.practice-pilot,.training-pilot) .ambient-paused *:after{animation-play-state:paused!important}
body:is(.practice-pilot,.training-pilot).practice-ambient-paused .gameplay-world *{animation-play-state:paused!important}
@keyframes arena-world-drift{from{transform:translate3d(-6px,4px,0)}to{transform:translate3d(6px,-4px,0)}}
@keyframes arena-structures-drift{from{transform:translate3d(3px,3px,0)}to{transform:translate3d(-4px,-5px,0)}}
@keyframes arena-atmosphere{from{transform:translate3d(-8px,0,0);opacity:.35}to{transform:translate3d(8px,-6px,0);opacity:.8}}
@keyframes arena-world-particles{from{transform:translate3d(-5px,7px,0);opacity:.45}to{transform:translate3d(7px,-11px,0);opacity:.8}}
@keyframes arena-orbit{to{transform:rotate(360deg)}}
@keyframes arena-dust{from{transform:translate3d(-3px,4px,0);opacity:.35}to{transform:translate3d(5px,-10px,0);opacity:.7}}
@keyframes arena-orb-breathe{50%{transform:scale(1.025);opacity:.45}}
@keyframes arena-platform-pulse{50%{transform:scaleX(.95);opacity:.35}}
@keyframes arena-pad-energy{50%{opacity:.25;transform:scaleX(.78)}}
@keyframes arena-terminal-entry{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes arena-confirm{0%{filter:brightness(1.7)}100%{filter:brightness(1)}}
@keyframes arena-reject{40%{transform:translateX(-2px)}70%{transform:translateX(2px)}}
@keyframes arena-stage-reward{20%{filter:brightness(1.3)}100%{filter:brightness(1)}}
@keyframes arena-score{40%{transform:scale(1.13)}}
@media(min-width:700px) and (min-height:600px){
 body:is(.practice-pilot,.training-pilot) .gameplay-shell{max-width:900px;gap:16px;grid-template-rows:auto minmax(400px,1fr) auto auto auto;padding-top:24px;padding-bottom:18px}
 body.game-world:is(.practice-pilot,.training-pilot) .question{min-height:400px;padding:60px 100px 115px}
 body:is(.practice-pilot,.training-pilot) .gameplay-scene{inset:0 6%}
 body:is(.practice-pilot,.training-pilot) .gameplay-stage{inset:0}
 body:is(.practice-pilot,.training-pilot) .gameplay-orbit{width:62%;left:19%;top:48%}
 body.game-world:is(.practice-pilot,.training-pilot) .question #prompt{font-size:80px}
 body.game-world:is(.practice-pilot,.training-pilot) .question.gameplay-long-prompt #prompt{font-size:38px}
 body.game-world:is(.practice-pilot,.training-pilot) .question .prompt-pinyin{font-size:26px}
 body.game-world:is(.practice-pilot,.training-pilot) #question-label{font-size:21px}
 body.game-world:is(.practice-pilot,.training-pilot) #targets .target:not(.word-bubble){min-height:130px;font-size:27px;padding:22px}
 body.game-world:is(.practice-pilot,.training-pilot) .arena:not(.bubble-mode) #targets{grid-auto-rows:minmax(130px,1fr);gap:16px}
 body.game-world:is(.practice-pilot,.training-pilot) #overdrive-help{font-size:14px}
}
@media(max-height:700px) and (orientation:portrait){
 body:is(.practice-pilot,.training-pilot) .gameplay-shell{gap:8px;grid-template-rows:auto minmax(215px,1fr) auto auto auto}
 body.game-world:is(.practice-pilot,.training-pilot) .question{min-height:215px;padding:35px 22px 64px}
 body.game-world:is(.practice-pilot,.training-pilot) .question #prompt{font-size:36px}
 body.game-world:is(.practice-pilot,.training-pilot) .question.gameplay-long-prompt #prompt{font-size:23px}
 body.game-world:is(.practice-pilot,.training-pilot) .arena:not(.bubble-mode) #targets{grid-auto-rows:minmax(88px,1fr);gap:10px}
 body.game-world:is(.practice-pilot,.training-pilot) #targets .target:not(.word-bubble){min-height:88px;font-size:20px;padding:15px 10px}
}
@media(max-height:500px) and (min-width:700px) and (orientation:landscape){
 body:is(.practice-pilot,.training-pilot) .gameplay-shell{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-rows:auto 1fr auto;gap:8px 22px;padding-top:8px;padding-bottom:8px}
 body.game-world:is(.practice-pilot,.training-pilot) .hud{min-height:48px;padding:6px 12px;grid-template-columns:1fr auto auto minmax(140px,.8fr)}
 body.game-world:is(.practice-pilot,.training-pilot) .question{min-height:232px;padding:40px 35px 60px}
 body.game-world:is(.practice-pilot,.training-pilot) .question #prompt{font-size:44px}
 body.game-world:is(.practice-pilot,.training-pilot) .question.gameplay-long-prompt #prompt{font-size:24px}
 body.game-world:is(.practice-pilot,.training-pilot) #question-label{font-size:14px;top:6px}
 body.game-world:is(.practice-pilot,.training-pilot) .question .prompt-pinyin{font-size:19px}
 body:is(.practice-pilot,.training-pilot) .gameplay-scene{inset:0 -12px}
 body.game-world:is(.practice-pilot,.training-pilot) .arena:not(.bubble-mode) #targets{grid-auto-rows:minmax(90px,1fr);gap:10px}
 body.game-world:is(.practice-pilot,.training-pilot) #targets .target:not(.word-bubble){min-height:90px;font-size:20px;padding:14px 10px}
 body.game-world:is(.practice-pilot,.training-pilot) #overdrive-panel{padding:6px 10px}
 body.game-world:is(.practice-pilot,.training-pilot) .bottom{align-self:center;min-height:34px}
}
@media(prefers-reduced-motion:reduce){
 body:is(.practice-pilot,.training-pilot):after,body:is(.practice-pilot,.training-pilot) *,body:is(.practice-pilot,.training-pilot) *:before,body:is(.practice-pilot,.training-pilot) *:after{animation:none!important;transition:none!important}
 body.game-world:is(.practice-pilot,.training-pilot) #targets .target:active:not(:disabled){transform:none}
}
/* Text adaptation reads rendered content only, never choice correctness. */
body.game-world:is(.practice-pilot,.training-pilot) .question{min-height:260px}
body.game-world:is(.practice-pilot,.training-pilot) .question.gameplay-meaning-prompt #prompt{font-size:34px;letter-spacing:0}
body.game-world:is(.practice-pilot,.training-pilot) .question.gameplay-long-prompt #prompt{font-size:26px}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target.gameplay-long-answer{font-size:17px;line-height:1.35;padding:16px 12px}
@media(min-width:700px) and (min-height:600px){
 body.game-world:is(.practice-pilot,.training-pilot) .question{min-height:400px}
 body.game-world:is(.practice-pilot,.training-pilot) .question.gameplay-meaning-prompt #prompt{font-size:50px}
 body.game-world:is(.practice-pilot,.training-pilot) .question.gameplay-long-prompt #prompt{font-size:36px}
 body.game-world:is(.practice-pilot,.training-pilot) #targets .target.gameplay-long-answer{font-size:22px}
}
@media(max-height:700px) and (orientation:portrait){body.game-world:is(.practice-pilot,.training-pilot) .question{min-height:215px}body.game-world:is(.practice-pilot,.training-pilot) .question.gameplay-meaning-prompt #prompt{font-size:28px}}
@media(max-height:500px) and (min-width:700px) and (orientation:landscape){
 body.game-world:is(.practice-pilot,.training-pilot) .question{min-height:232px}
 body.game-world:is(.practice-pilot,.training-pilot) .question.gameplay-meaning-prompt #prompt{font-size:28px}
 body.game-world:is(.practice-pilot,.training-pilot) .question.gameplay-long-prompt #prompt{font-size:23px}
 body.game-world:is(.practice-pilot,.training-pilot) #targets .target.gameplay-long-answer{font-size:16px}
}
body.game-world:is(.practice-pilot,.training-pilot) .question #listen{font-size:14px;font-weight:500;color:#cfedff;min-height:44px;padding:8px 14px;border:1px solid #77d7fb55;border-radius:24px;background:#071e3ce8;box-shadow:none;margin:5px 0 0}
@media(min-width:1100px) and (min-height:600px){
 body:is(.practice-pilot,.training-pilot) .gameplay-shell{grid-template-rows:auto minmax(380px,1fr) auto auto auto}
 body.game-world:is(.practice-pilot,.training-pilot) .question{min-height:380px}
}
/* Keep the original non-color verdict cue above terminal decoration. */
body:is(.practice-pilot,.training-pilot) #targets .target.correct:after,
body:is(.practice-pilot,.training-pilot) #targets .target.wrong:after{inset:4px 12px auto auto;border:0;clip-path:none;font-size:19px;font-weight:800;line-height:1;z-index:2}
body:is(.practice-pilot,.training-pilot) #targets .target.correct:after{content:'✓';color:#c7ffe4}
body:is(.practice-pilot,.training-pilot) #targets .target.wrong:after{content:'×';color:#ffd0d8}
/* Chamfered terminal perimeter, a functional UI frame rather than a card. */
body.game-world:is(.practice-pilot,.training-pilot) #targets .target:before{inset:0;width:auto;height:auto;opacity:.8;transform:none;background:linear-gradient(145deg,#a6f3ff,#51c6ef99 45%,#93d6ed 76%,#ecd598);clip-path:polygon(evenodd,14px 0,calc(100% - 14px) 0,100% 14px,100% calc(100% - 14px),calc(100% - 14px) 100%,14px 100%,0 calc(100% - 14px),0 14px,14px 0,14px 2px,2px 14px,2px calc(100% - 14px),14px calc(100% - 2px),calc(100% - 14px) calc(100% - 2px),calc(100% - 2px) calc(100% - 14px),calc(100% - 2px) 14px,calc(100% - 14px) 2px,14px 2px);animation:arena-terminal-light 7s ease-in-out infinite}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target.correct:before{background:#a0ffd0}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target.wrong:before{background:#ffabc0}
@keyframes arena-terminal-light{50%{opacity:.38}}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target:before{animation-duration:4.2s}
/* Specificity includes the world and terminal rules above; never force motion
   with JS. The OS preference is authoritative even after pause/resume. */
@media(prefers-reduced-motion:reduce){
 body.game-world:is(.practice-pilot,.training-pilot) .gameplay-world *,body.game-world:is(.practice-pilot,.training-pilot) .gameplay-scene *,body.game-world:is(.practice-pilot,.training-pilot) #targets .target:before{animation:none!important;will-change:auto}
 body:is(.practice-pilot,.training-pilot) .gameplay-orbit-track{transform:rotate(18deg)}
}

/* V2B Batch 1: original objects/handlers, compositions fitted to mechanics.
   Scope is shell data only. Practice has no data-training-mode and is unchanged. */
body.training-pilot .gameplay-shell{grid-template-rows:auto minmax(240px,1fr) auto auto auto;gap:10px}
body.game-world.training-pilot .hud{grid-template-columns:1fr auto auto auto;gap:6px 12px}
body.game-world.training-pilot .hud>.health{display:flex!important}
body.game-world.training-pilot .hud .health strong{font-size:16px;color:#aeeaff;letter-spacing:0}
body.game-world.training-pilot .hud .health small{font-size:11px}
body.training-pilot .gameplay-hud-track{gap:12px}
body.game-world.training-pilot .gameplay-hud-track .timer{display:block;flex:1;height:5px;margin:0;border:0;background:#294458;overflow:hidden;box-shadow:none}
body.training-pilot .timer #timebar{height:100%;background:linear-gradient(90deg,#57d8ec,#ffdf93);box-shadow:none;transition:none}
body.training-pilot .gameplay-hud-track:has(.timer) .gameplay-progress{display:none}
body.game-world.training-pilot .question{min-height:240px;padding:45px 20px 65px}
body.game-world.training-pilot #weapon{display:none} /* Original shot effects remain owned by the game. */
body.game-world.training-pilot .question #prompt{font-size:44px}
body.game-world.training-pilot .question.gameplay-meaning-prompt #prompt{font-size:31px}
body.game-world.training-pilot .question.gameplay-long-prompt #prompt{font-size:25px}
body.training-pilot .gameplay-stage{opacity:.9}
body.training-pilot .gameplay-shell[data-training-mode="daily"] .gameplay-orbit-track{border-color:#e8ca8577}
body.training-pilot .gameplay-shell[data-training-mode="daily"] .gameplay-progress::-webkit-progress-value{background:#eacb88}
body.game-world.training-pilot .gameplay-shell[data-training-mode="daily"] .hud>.health,
body.game-world.training-pilot .gameplay-shell[data-training-mode="listening"] .hud>.health{display:none!important}
body.training-pilot .gameplay-shell[data-training-mode="daily"] .hud,
body.training-pilot .gameplay-shell[data-training-mode="listening"] .hud{grid-template-columns:1fr auto auto}
/* Pressure bar is the original owner-updated DOM, not a second clock. */
body.training-pilot .gameplay-shell[data-training-mode="timed"] .hud,
body.training-pilot .gameplay-shell[data-training-mode="arcade"] .hud{box-shadow:inset 0 1px #d2bc7466,inset 0 -1px #d2bc7433}
body.training-pilot .gameplay-shell[data-training-mode="arcade"] .gameplay-progress{display:block!important;flex:.6}
body.training-pilot .gameplay-shell[data-training-mode="arcade"] .timer{flex:1}
body.training-pilot .gameplay-shell[data-training-mode="endless"] .gameplay-hud-track:before{content:'∞';font:700 26px/1 Arial;color:#95dce7}
body.training-pilot #endless-coverage{margin:0;padding:0 6px;font-size:12px;color:#a7c3d6;line-height:1.4;text-align:center}
/* Matching: two banks of 4 energy terminals and the ORIGINAL connection SVG. */
body.training-pilot .gameplay-shell[data-training-mode="match"]{grid-template-rows:auto auto minmax(370px,1fr) auto auto}
body.game-world.training-pilot .gameplay-shell[data-training-mode="match"] .question{min-height:100px;padding:34px 10px 12px}
body.game-world.training-pilot .gameplay-shell[data-training-mode="match"] .question #prompt{font-size:26px;line-height:1.3;margin:0}
body.training-pilot .gameplay-shell[data-training-mode="match"] .gameplay-stage,
body.training-pilot .gameplay-shell[data-training-mode="match"] .gameplay-orbit{display:none}
body.training-pilot .gameplay-shell[data-training-mode="match"] .gameplay-halo{inset:0;background:radial-gradient(ellipse,#2e95c426,transparent 70%)}
body.game-world.training-pilot #matching{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;position:relative;padding:0;min-height:0}
body.game-world.training-pilot #matching[hidden]{display:none}
body.training-pilot #match-left,body.training-pilot #match-right{display:grid;grid-template-rows:repeat(4,minmax(78px,1fr));gap:12px;min-width:0}
body.game-world.training-pilot .match-card{position:relative;min-width:0;min-height:78px;padding:14px 9px 10px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;font:500 18px/1.3 Tahoma,Arial,sans-serif;text-align:center;overflow-wrap:anywhere;color:#edfaff;background:linear-gradient(145deg,#0a304be8,#08182dea);border:0;border-radius:3px 14px 3px 14px;box-shadow:inset 0 1px #97d7e766,inset 0 -2px #57a6c455;touch-action:manipulation;transition:background .12s,transform .1s}
body.training-pilot .match-card .hanzi{font-size:27px;line-height:1.2}
body.training-pilot .match-card .pinyin{font:400 14px/1.25 Arial,sans-serif;color:#b5e0ec}
body.training-pilot .match-card .key{position:absolute;left:8px;top:6px;font-size:11px;color:#b5cbd6;background:none}
body.training-pilot .match-card:before{content:'';position:absolute;inset:auto 15% 1px;height:1px;background:#b0eafa;opacity:.7;animation:arena-terminal-light 4.2s ease-in-out infinite;pointer-events:none}
body.training-pilot .match-card.selected{background:linear-gradient(145deg,#3a4350,#132941);box-shadow:inset 0 0 0 2px #ffdf98}
body.training-pilot .match-card.matched{background:linear-gradient(145deg,#153f38,#0c2633);color:#c3ffe4;opacity:.72;box-shadow:inset 0 0 0 1px #8ee7bd}
body.training-pilot .match-card.wrong{background:#512238;box-shadow:inset 0 0 0 2px #ff9cb8;animation:arena-reject .25s ease-out}
body.training-pilot .match-card.matched:after{content:'✓';position:absolute;right:7px;top:4px;color:#baffda;font-size:14px}
body.training-pilot .match-card.wrong:after{content:'×';position:absolute;right:7px;top:4px;color:#ffc2d6;font-size:17px}
body.training-pilot .match-card:focus-visible{outline:2px solid #ffdf98;outline-offset:3px}
body.training-pilot .match-card:active:not(:disabled){transform:translateY(1px)}
body.training-pilot #connections{pointer-events:none;z-index:2}
/* Listening: the existing replay button becomes the focus; no new speech owner. */
body.game-world.training-pilot .gameplay-shell[data-training-mode="listening"] .question{padding:40px 26px 28px;gap:12px}
body.training-pilot .gameplay-shell[data-training-mode="listening"] .gameplay-stage{display:none}
body.training-pilot .gameplay-shell[data-training-mode="listening"] .gameplay-orbit{top:55%;width:76%;left:12%;transform:translateY(-50%) scaleY(.55)}
body.game-world.training-pilot .gameplay-shell[data-training-mode="listening"] .question #prompt{font-size:23px;line-height:1.4;text-shadow:none;margin:0}
body.game-world.training-pilot .gameplay-shell[data-training-mode="listening"] #listen{min-height:92px;min-width:210px;max-width:100%;padding:18px 22px;border-radius:50%;border:1px solid #8cd4ed77;background:radial-gradient(ellipse at 50% 25%,#164969,#081d35 75%);box-shadow:inset 0 0 0 5px #102e45,inset 0 0 0 6px #86c8e52b,0 10px 28px #01101f70;font-size:19px;font-weight:600;color:#e5faff}
body.training-pilot .gameplay-shell[data-training-mode="listening"] .question[data-audio="listening"] .gameplay-halo{opacity:.8}
body.game-world.training-pilot #targets .target .meaning{font-size:22px;line-height:1.3}
/* Real content may be long; allow wrapping without compressing touch targets. */
body.game-world.training-pilot #targets .target.gameplay-long-answer{font-size:17px}
body.game-world.training-pilot #targets .target.gameplay-long-answer .meaning{font-size:17px}
@media(min-width:700px) and (min-height:600px){
 body.training-pilot .gameplay-shell{max-width:900px;grid-template-rows:auto minmax(350px,1fr) auto auto auto;gap:16px}
 body.game-world.training-pilot .question{min-height:350px;padding:55px 70px 100px}
 body.game-world.training-pilot .question #prompt{font-size:70px}
 body.game-world.training-pilot .question.gameplay-meaning-prompt #prompt{font-size:44px}
 body.game-world.training-pilot .question.gameplay-long-prompt #prompt{font-size:34px}
 body.training-pilot .gameplay-shell[data-training-mode="match"]{grid-template-rows:auto auto minmax(480px,1fr) auto auto}
 body.training-pilot #match-left,body.training-pilot #match-right{grid-template-rows:repeat(4,minmax(104px,1fr));gap:16px}
 body.training-pilot .match-card .hanzi{font-size:34px}
 body.training-pilot .match-card{font-size:23px}
 body.game-world.training-pilot .gameplay-shell[data-training-mode="listening"] .question{padding:50px 50px 45px}
 body.game-world.training-pilot .gameplay-shell[data-training-mode="listening"] #listen{min-width:270px;min-height:120px;font-size:24px}
}
@media(max-height:500px) and (min-width:700px) and (orientation:landscape){
 body.training-pilot .gameplay-shell{grid-template-rows:auto 1fr auto;gap:8px 20px}
 body.game-world.training-pilot .question{min-height:200px;padding:30px 28px 46px}
 body.game-world.training-pilot .question #prompt{font-size:40px}
 body.game-world.training-pilot .question.gameplay-meaning-prompt #prompt{font-size:26px}
 body.game-world.training-pilot .question.gameplay-long-prompt #prompt{font-size:22px}
 body.game-world.training-pilot .hud{grid-template-columns:1fr auto auto auto minmax(180px,.8fr)}
 body.training-pilot .gameplay-hud-track{grid-column:auto}
 body.training-pilot .gameplay-shell[data-training-mode="match"]{grid-template-rows:auto 1fr auto;grid-template-columns:minmax(0,.55fr) minmax(0,1.45fr)}
 body.training-pilot .gameplay-shell[data-training-mode="match"] #field{grid-column:2;grid-row:2/4}
 body.training-pilot #match-left,body.training-pilot #match-right{grid-template-rows:repeat(4,minmax(54px,1fr));gap:6px}
 body.game-world.training-pilot .match-card{min-height:54px;padding:8px;font-size:15px}
 body.training-pilot .match-card .hanzi{font-size:23px}
 body.training-pilot .match-card .pinyin{font-size:12px}
 body.game-world.training-pilot .gameplay-shell[data-training-mode="match"] .question{min-height:65px;padding:26px 4px 0;align-self:start}
 body.game-world.training-pilot .gameplay-shell[data-training-mode="match"] .question #prompt{font-size:19px}
 body.training-pilot .gameplay-shell[data-training-mode="match"] .bottom{grid-column:1;grid-row:2;align-self:end}
 body.training-pilot .gameplay-shell[data-training-mode="match"] .gameplay-dock{grid-column:1;grid-row:3}
 body.training-pilot .gameplay-shell[data-training-mode="match"] .arena-foot{display:grid;grid-template-columns:1fr 1fr;gap:0 4px}
 body.training-pilot .gameplay-shell[data-training-mode="match"] .gameplay-controls{display:contents}
 body.game-world.training-pilot .gameplay-shell[data-training-mode="match"] .arena-foot button,body.game-world.training-pilot .gameplay-shell[data-training-mode="match"] .arena-foot #exit:not([hidden]){font-size:12px;padding:4px;min-width:0}
 body.training-pilot .gameplay-shell[data-training-mode="match"] .gameplay-options{margin-left:0;justify-self:center}
 body.game-world.training-pilot .gameplay-shell[data-training-mode="listening"] .question{min-height:210px;padding:32px 18px 18px;gap:8px}
 body.game-world.training-pilot .gameplay-shell[data-training-mode="listening"] #listen{min-height:70px;min-width:180px;font-size:16px}
 body.game-world.training-pilot .gameplay-shell[data-training-mode="listening"] .question #prompt{font-size:20px}
}
@media(prefers-reduced-motion:reduce){body.training-pilot .match-card,body.training-pilot .match-card:before{animation:none!important;transition:none!important}body.training-pilot .match-card:active:not(:disabled){transform:none}}
body.training-pilot .gameplay-daily-title{font:800 17px/1.3 Tahoma,Arial,sans-serif;color:#ffdf98}
body.training-pilot .gameplay-shell[data-training-mode="daily"] .session-mode{display:none}
/* Listening's legacy mode backdrop must not become an opaque rectangular panel. */
body.game-world.training-pilot .gameplay-shell[data-training-mode="listening"] .question{background:none!important;border:0;box-shadow:none}
body.game-world.training-pilot #targets .target .key{position:absolute;left:12px;top:10px;min-width:0;width:auto;height:auto;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:400 12px/1 Arial,sans-serif;color:#a5ccde}

/* Short desktop keeps the full mission/control stack in the first viewport. */
@media(min-width:1100px) and (min-height:600px) and (max-height:950px){
 body.training-pilot .gameplay-shell{grid-template-rows:auto minmax(275px,1fr) auto auto auto;gap:12px;padding-top:16px;padding-bottom:12px}
 body.game-world.training-pilot .question{min-height:275px;padding:32px 50px 72px}
 body.training-pilot .gameplay-shell[data-training-mode="match"]{grid-template-rows:auto auto minmax(420px,1fr) auto auto}
 body.training-pilot #match-left,body.training-pilot #match-right{grid-template-rows:repeat(4,minmax(96px,1fr));gap:12px}
 body.game-world.training-pilot .gameplay-shell[data-training-mode="listening"] .question{padding:30px 30px 28px}
 body.game-world.training-pilot .gameplay-shell[data-training-mode="listening"] #listen{min-height:100px}
}

/* V4.2B.1: response starts at the committed answer, never at a moved hit box.
   One contained edge/light impact replaces the old brightness/shake. Revealed
   correct answers on a wrong verdict remain static; only the mistake reacts. */
body.game-world:is(.practice-pilot,.training-pilot) #targets .target:is(.correct,.wrong){animation:none;animation-delay:0s;transform:none;transition:none}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target.correct{background:linear-gradient(145deg,#1b6960ee,#0b353fed);box-shadow:inset 0 0 0 3px #8df7c4,inset 0 4px #b3ffdc,inset 0 -3px #9bffc5}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target.wrong{background:linear-gradient(145deg,#74304beb,#331d31ef);box-shadow:inset 0 0 0 3px #ff9bb5,inset 0 4px #ffd0da,inset 0 -3px #ff7ca2}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target:is(.correct,.wrong):before{inset:0;clip-path:inherit;opacity:0;transform:none;animation:training-answer-impact 340ms ease-out;animation-delay:0s;background:radial-gradient(ellipse at 50% 0%,#75eaff80,transparent 75%);box-shadow:inset 0 0 0 5px #c7fff0,inset 0 0 28px #75eaffb3}
body.game-world:is(.practice-pilot,.training-pilot) #targets .target.wrong:before{animation-duration:280ms;background:radial-gradient(ellipse at 50% 0%,#ff9cb866,transparent 75%);box-shadow:inset 0 0 0 5px #ffd0da,inset 0 0 24px #ff7ca299}
body.game-world:is(.practice-pilot,.training-pilot) .arena-wrong #targets .target.correct:before{animation:none;opacity:0}
body.game-world:is(.practice-pilot,.training-pilot) .arena-wrong #targets .target.correct{background:linear-gradient(145deg,#12483fee,#061f2ced);box-shadow:inset 0 0 0 2px #8df7c4,inset 0 4px #b3ffdc,inset 0 -3px #9bffc5}
/* Resolved pairs only. The active drag/selection geometry stays untouched. */
body.training-pilot .match-card:is(.matched,.wrong){transform:none;animation:none;transition:none}
body.training-pilot .match-card.matched{box-shadow:inset 0 0 0 2px #8ee7bd}
body.training-pilot .match-card:is(.matched,.wrong):before{content:'';position:absolute;inset:0;width:auto;height:auto;border-radius:inherit;pointer-events:none;opacity:0;animation:training-answer-impact 340ms ease-out;background:radial-gradient(ellipse at 50% 0%,#75eaff66,transparent 75%);box-shadow:inset 0 0 0 4px #c7fff0,inset 0 0 24px #75eaffa3}
body.training-pilot .match-card.wrong:before{animation-duration:280ms;background:radial-gradient(ellipse at 50% 0%,#ff9cb855,transparent 75%);box-shadow:inset 0 0 0 4px #ffd0da,inset 0 0 22px #ff7ca288}
body.training-pilot .match-card:is(.matched,.wrong)>span{position:relative;z-index:1}
@keyframes training-answer-impact{0%,18%{opacity:1}100%{opacity:0}}
/* Answer is primary; HUD acknowledges real changes without extra verdict pulses.
   No persistent Matching state, reflow, timer or callback drives these accents. */
body:is(.practice-pilot,.training-pilot) .arena-correct .gameplay-stage{animation:none}
body:is(.practice-pilot,.training-pilot) .arena-correct .hud #score{animation:none}
body:is(.practice-pilot,.training-pilot) .hud #score[data-training-score="a"]{animation:training-score-a 340ms ease-out}
body:is(.practice-pilot,.training-pilot) .hud #score[data-training-score="b"]{animation:training-score-b 340ms ease-out}
body:is(.practice-pilot,.training-pilot) .hud #round[data-training-progress="a"]{animation:training-progress-a 280ms ease-out}
body:is(.practice-pilot,.training-pilot) .hud #round[data-training-progress="b"]{animation:training-progress-b 280ms ease-out}
body:is(.practice-pilot,.training-pilot) .gameplay-progress[data-training-progress="a"]{animation:training-fill-a 280ms ease-out}
body:is(.practice-pilot,.training-pilot) .gameplay-progress[data-training-progress="b"]{animation:training-fill-b 280ms ease-out}
#result-title[data-training-result]{position:relative;animation:training-result 400ms ease-out}
#result-title[data-training-result]:before{content:'';position:absolute;left:0;bottom:-5px;width:72%;height:2px;pointer-events:none;opacity:0;background:linear-gradient(90deg,#ffe09a,#75eaff,transparent);transform-origin:left;animation:training-result-edge 400ms ease-out}
@keyframes training-score-a{22%{transform:scale(1.14);color:#fff1b4;text-shadow:0 0 10px #ffe09acc,0 0 20px #ffe09a80}}
@keyframes training-score-b{22%{transform:scale(1.14);color:#fff1b4;text-shadow:0 0 10px #ffe09acc,0 0 20px #ffe09a80}}
@keyframes training-progress-a{22%{transform:scale(1.1);color:#baf7ff;text-shadow:0 0 9px #75eaffb3}}
@keyframes training-progress-b{22%{transform:scale(1.1);color:#baf7ff;text-shadow:0 0 9px #75eaffb3}}
@keyframes training-fill-a{22%{box-shadow:0 0 0 1px #ffe09a99,0 0 9px #75eaffb3}}
@keyframes training-fill-b{22%{box-shadow:0 0 0 1px #ffe09a99,0 0 9px #75eaffb3}}
@keyframes training-result{0%,24%{color:#fff1b4;text-shadow:0 0 14px #ffe09a99}100%{text-shadow:0 0 0 transparent}}
@keyframes training-result-edge{0%{opacity:1;transform:scaleX(.6)}24%{opacity:1;transform:scaleX(1)}100%{opacity:0;transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){
 body:is(.practice-pilot,.training-pilot) .hud #score[data-training-score],
 body:is(.practice-pilot,.training-pilot) .hud #round[data-training-progress],
 body:is(.practice-pilot,.training-pilot) .gameplay-progress[data-training-progress],
 body:is(.practice-pilot,.training-pilot) #targets .target:is(.correct,.wrong):before,
 body.training-pilot .match-card:is(.matched,.wrong):before,
 #result-title[data-training-result],#result-title[data-training-result]:before{animation:none!important}
}

/* Training completion owns only the existing report after live nodes restore.
   Dedicated Adventure/Bubbles/modal results never receive this state. */
body.game-world.training-results{
 --game-navy:#030c1b;--game-text:#effaff;--game-muted:#b2c9db;
 --game-energy:#75eaff;--game-gold:#ffe09a;
 background:var(--game-navy);color:var(--game-text);overflow-x:hidden;
}
body.game-world.training-results:before,body.game-world.training-results:after{display:none}
body.training-results .gameplay-world{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0;contain:strict}
body.training-results .gameplay-world>div{position:absolute;inset:0;pointer-events:none}
body.training-results .gameplay-world-base{background:linear-gradient(180deg,#020a17b3,#031021b8 50%,#020916f2),url('assets/hub-cosmos.webp') 60% 25%/cover no-repeat}
body.training-results .gameplay-world-haze{background:radial-gradient(ellipse at 15% 20%,#51cfff26,transparent 55%),radial-gradient(ellipse at 85% 50%,#6a79f921,transparent 50%)}
body.game-world.training-results .app{position:relative;z-index:1;max-width:960px;min-height:100dvh;margin:auto;padding:0 max(16px,env(safe-area-inset-left)) 0 max(16px,env(safe-area-inset-right))}
body.game-world.training-results .app>header,
body.game-world.training-results .app>footer,
body.game-world.training-results :is(.mission-header,.home-deck,.home-controls,.topline,#launch,#journey,#game-workspace,#leaderboard,.mission-nav){display:none!important}
body.game-world.training-results main{margin:0;padding:0}
body.game-world.training-results #results:not([hidden]){display:flex;flex-direction:column;gap:12px;max-width:840px;min-height:100dvh;box-sizing:border-box;margin:0 auto;padding:calc(24px + env(safe-area-inset-top)) 0 calc(24px + env(safe-area-inset-bottom));background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
body.training-results #results>.training-result-identity{order:0;margin:0;color:var(--game-energy);font-size:.875rem;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
body.training-results #results[data-training-result-mode="daily"]{--game-energy:#eacb88}
body.training-results #results[data-training-result-mode="listening"]{--game-energy:#b5b3ff}
body.training-results #results>.eyebrow{order:1;color:var(--game-muted);font-size:.8125rem}
body.game-world.training-results #results #result-title{order:2;margin:0;color:var(--game-gold);font-size:clamp(1.5rem,4vw,2rem);line-height:1.35;overflow-wrap:anywhere}
body.game-world.training-results #results .result-stats{order:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:4px 0}
body.game-world.training-results #results .result-stats>div{min-width:0;padding:14px 8px;background:linear-gradient(145deg,#163147e0,#071729e8);border:0;border-radius:2px 16px 2px 16px;box-shadow:inset 0 1px #729bb544;text-align:center}
body.training-results #results .result-stats strong{display:block;color:var(--game-gold);font-size:1.75rem;line-height:1.3;overflow-wrap:anywhere}
body.training-results #results .result-stats span{display:block;color:var(--game-muted);font-size:.8125rem;line-height:1.5;overflow-wrap:anywhere}
body.training-results #results :is(#learning-summary,#saved-score){order:4;margin:0;color:var(--game-muted);font-size:.875rem;line-height:1.6;overflow-wrap:anywhere}
/* Primary actions precede the expandable history and extended learning report.
   All original handlers and the report's original parent/sibling order survive. */
body.game-world.training-results #results .result-actions{order:5;display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 0}
body.game-world.training-results #results .result-actions button,
body.game-world.training-results #results #results-home{min-width:0;min-height:48px;padding:12px 16px;border:1px solid #729bb566;border-radius:2px 14px 2px 14px;background:#10293e;color:var(--game-text);box-shadow:none;font-size:1rem;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
body.training-results #results .result-actions button{flex:1 1 180px}
body.game-world.training-results #results #again{background:linear-gradient(145deg,#ffe4a3,#ddba68);color:#102338;border-color:#ffe9ae;font-weight:800}
body.game-world.training-results #results #results-home{order:6;align-self:stretch;margin:0}
body.training-results #results :is(.answer-history,#learning-report){order:7;min-width:0;margin:8px 0 0;padding:16px 0;border:0;border-top:1px solid #729bb544;border-radius:0;background:none;color:var(--game-text);overflow-wrap:anywhere}
body.training-results #results :is(button,summary):focus-visible{outline:2px solid var(--game-energy);outline-offset:4px}
@media(max-width:650px){
 body.game-world.training-results #results .result-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.game-world.training-results #results .result-stats>div{padding:10px 8px}
}
@media(max-height:500px) and (orientation:landscape){
 body.game-world.training-results #results:not([hidden]){padding-top:calc(12px + env(safe-area-inset-top));gap:8px}
 body.game-world.training-results #results .result-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
}
/* The completion world is static for every motion preference; the existing
   reduced-motion title accent remains governed above. No input/focus delay. */
