/* The fixed frame keeps preparation recognizable while the live scene changes. */
#guidePanel.immersive-guide{width:min(1100px,calc(100vw - 40px));height:min(780px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);padding:0;border:2px solid #292038;border-radius:22px;overflow:hidden;background:#171426;color:#fff0d7;box-shadow:0 0 0 1px #c3a6d4,0 6px 0 #493453,0 10px 0 #21182e,0 28px 100px #08091999}
#guidePanel.immersive-guide[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:0}
#guidePanel .lesson-header{position:relative;z-index:5;padding:20px 28px 18px;background:linear-gradient(115deg,#2d223c,#201c30);border-bottom:1px solid #c4a7d52b}
#guidePanel .lesson-topline{display:flex;align-items:center;gap:14px}
#guidePanel.immersive-guide .lesson-heading{position:static;transform:none;margin:0 auto 0 0;font:400 28px/1.15 Creepster,sans-serif;letter-spacing:.025em;color:#fff0d7;text-shadow:none}
#guidePanel #guideStepCount{font:500 11px/1.4 Poppins,sans-serif;color:#d4c1df;font-variant-numeric:tabular-nums;white-space:nowrap}
:is(#guidePanel #guideBack,#inputChoicePanel #inputChoiceClose){display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:0;border:1px solid #bfa3d138;border-radius:50%;background:#ffffff05;box-shadow:none;color:#e7d6ee;font:400 25px/1 Poppins,sans-serif;transform:none}
#guidePanel #guideBack{position:static;flex:none;margin-left:3px}
:is(#guidePanel #guideBack,#inputChoicePanel #inputChoiceClose)::before,:is(#guidePanel #guideBack,#inputChoicePanel #inputChoiceClose)::after{content:none}
#guidePanel #guideBack:hover{background:#b99ac51a;color:#fff5de}
#guidePanel .lesson-stepper{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;list-style:none;margin:17px 0 0;padding:0}
#guidePanel .lesson-stepper li{position:relative;display:flex;align-items:center;gap:11px;padding:9px 14px;min-width:0;border:1px solid #bda0cf21;border-radius:11px;color:#ae9dbb;background:#19162466;font:500 12px/1.3 Poppins,sans-serif;transition:background .2s,border-color .2s,color .2s}
#guidePanel .lesson-stepper li:not(:last-child)::after{content:'';position:absolute;left:calc(100% + 1px);top:50%;width:14px;height:1px;background:#a588b747}
#guidePanel .step-node{display:grid;place-items:center;width:28px;height:28px;flex:none;border:1px solid #baa0cb38;border-radius:9px;color:#baa9c8;background:#ffffff03;font:500 10px/1 Poppins,sans-serif;font-variant-numeric:tabular-nums}
#guidePanel .step-check{display:none;font-size:15px}
#guidePanel .lesson-stepper [data-state='current']{color:#fff0d7;border-color:#c5a1e2b3;background:linear-gradient(110deg,#71508e,#4c365f);box-shadow:inset 0 1px 0 #e4c4f033,0 2px 12px #110b1d26}
#guidePanel .lesson-stepper [data-state='current'] .step-node{color:#3f2a53;background:#ead4f2;border-color:#f2e1fb;box-shadow:0 0 12px #d5a7ee21}
#guidePanel .lesson-stepper [data-state='complete']{color:#d3dfc4;border-color:#adbe9d3d;background:#a6b4950b}
#guidePanel .lesson-stepper [data-state='complete'] .step-node{color:#dfedca;border-color:#c2d5af47;background:#9ba68715}
#guidePanel .lesson-stepper [data-state='complete'] .step-number{display:none}#guidePanel .lesson-stepper [data-state='complete'] .step-check{display:block}
#guidePanel .lesson-stepper [hidden]{display:none}#guidePanel[data-quick='true'] .lesson-stepper{grid-template-columns:1fr}
#guidePanel[data-quick='true'] .lesson-stepper li::after{content:none}
#guidePanel .lesson-stage{position:relative;min-width:0;min-height:0;overflow:hidden;background:#13182a}
#guidePanel.immersive-guide .lesson-world,#guidePanel.immersive-guide #guideLiveViewport{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;border-radius:0}
#guidePanel.immersive-guide #guideLiveViewport #game{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-width:none;margin:0}
#guidePanel .lesson-shade{position:absolute;inset:0;background:linear-gradient(180deg,#141426df,transparent 52%),linear-gradient(0deg,#1114258c,transparent 30%);pointer-events:none}
#guidePanel .lesson-copy{position:absolute;z-index:3;left:30px;top:23px;bottom:auto;width:min(650px,calc(100% - 60px));height:auto;margin:0;padding:0;overflow:visible;clip-path:none;white-space:normal;pointer-events:none;text-align:left}
#guidePanel .lesson-copy h2{margin:0 0 9px;color:#fff0d7;font:400 clamp(30px,3.2vw,40px)/1.12 Creepster,sans-serif;letter-spacing:.015em;text-shadow:0 2px 12px #10142855;text-wrap:balance;outline:none}
#guidePanel .lesson-copy p{margin:0;max-width:590px;color:#e5ddeb;font:400 12px/1.75 Poppins,sans-serif;text-wrap:pretty}
#guidePanel .lesson-control-checks{position:static;z-index:3;display:flex;gap:8px;margin:14px 0 0;padding:0;list-style:none;pointer-events:none}
#guidePanel .lesson-control-checks li{display:flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid #c5abd24a;border-radius:8px;background:#211b32b3;color:#dbcde4;font:500 10px/1.4 Poppins,sans-serif;backdrop-filter:blur(4px)}
#guidePanel .lesson-control-checks li.is-done{color:#e0edcb;border-color:#b4c99b77;background:#364433c9}
#guidePanel .direction-symbol{font-size:17px;line-height:1}#guidePanel .direction-check{display:none;font-size:13px}#guidePanel .is-done .direction-check{display:inline}#guidePanel .is-done .direction-symbol{display:none}
#guidePanel .lesson-control-checks[hidden]{display:none}#guidePanel[data-phase='calibrate'] .lesson-control-checks{opacity:.5}
#guidePanel.immersive-guide .lesson-steer-cue{position:absolute;z-index:3;left:50%;top:55%;transform:translate(-50%,-100%);width:144px;padding:3px 4px;border:1px solid #c8a9de55;border-radius:16px;background:#211c32a6;box-shadow:0 4px 20px #080b213b;pointer-events:none;backdrop-filter:blur(5px)}
#guidePanel.immersive-guide .lesson-steer-cue[hidden]{display:none}#guidePanel .lesson-steer-cue strong,#guidePanel .lesson-steer-cue>span{display:none}
#guidePanel .lesson-steer-cue::after{content:'';position:absolute;left:50%;top:100%;height:16px;width:1px;background:linear-gradient(#d5b5e88c,transparent)}
#guidePanel .cue-hand-demo{display:block;width:132px;height:56px;margin:0 auto;stroke:#ffe1ac;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
#guidePanel .cue-hand{animation:guide-hand-sway 2s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
#guidePanel[data-phase='calibrate'] .cue-hand,#guidePanel[data-practice='ready'] .cue-hand{animation:none}#guidePanel[data-phase='calibrate'] .cue-arrows{opacity:.18}
#guidePanel .cue-key-demo{display:none;justify-content:center;gap:11px;padding:10px 0}
#guidePanel .cue-key-demo kbd{display:grid;place-items:center;width:34px;height:30px;border:1px solid #c8a9de77;border-radius:7px;background:#554363;font:500 18px/1 Poppins,sans-serif;box-shadow:0 3px 0 #141426}
#guidePanel[data-input='keyboard'] .cue-key-demo{display:flex}#guidePanel[data-input='keyboard'] .cue-hand-demo{display:none}
@keyframes guide-hand-sway{0%,100%{transform:translate(43px,7px) rotate(-7deg)}50%{transform:translate(67px,7px) rotate(7deg)}}
#guidePanel.immersive-guide #guideCameraSlot{position:absolute;z-index:4;right:23px;bottom:19px;width:208px;max-width:calc(100% - 40px);margin:0;overflow:hidden;border:1px solid #c0a2d270;border-radius:13px;background:#211c31;box-shadow:0 4px 18px #080b2155}
#guidePanel.immersive-guide #guideCameraFeed{width:100%;height:auto;min-height:0;aspect-ratio:4/2.8}
#guidePanel.immersive-guide #guideCameraFeed #camwrap{position:static;inset:auto;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;background:#15182c;box-shadow:none}
#guidePanel.immersive-guide #camcanvas{display:block;width:100%;height:100%;object-fit:cover}
#guidePanel #guideCameraSlot .camera-help,#guidePanel #guideCameraSlot .camera-controls,#guidePanel #guideCameraSlot .motion-feedback{display:none}
#guidePanel #guideCameraSlot .guide-camera-top{position:absolute;top:8px;left:8px;right:8px;pointer-events:none;display:flex;justify-content:center}
#guidePanel #guideCameraSlot #guideLiveStatus{font:500 9px/1.5 Poppins,sans-serif;color:#e3efcc;background:#201b31c9;border-radius:6px;padding:4px 7px}
#guidePanel #guideCameraInstruction{font:400 10px/1.6 Poppins,sans-serif;text-align:center;padding:9px 11px;margin:0;color:#eee0f1;background:#30243f}
#guidePanel .lesson-keyboard{position:absolute;z-index:4;left:30px;bottom:22px;text-align:left;color:#fff0cf}
#guidePanel .lesson-keyboard p{font:400 10px/1.5 Poppins,sans-serif;margin:0 0 10px;text-shadow:0 2px 6px #111328}
#guidePanel .lesson-practice-keys{display:flex;gap:12px}
#guidePanel .lesson-practice-keys button{display:grid;place-items:center;width:54px;height:45px;min-height:45px;padding:0;border:1px solid #bd9ed1;border-radius:10px;background:linear-gradient(#5e4770,#34273f);box-shadow:inset 0 1px 0 #e1c4f033,0 3px 0 #21192e;color:#fff0cf;font:500 24px/1 Poppins,sans-serif;transform:none}
#guidePanel .lesson-practice-keys .done{color:#dcecc2}#guidePanel .lesson-practice-keys button:has(.done){border-color:#c4d8ad;background:#435044}
#guidePanel .lesson-lives{position:absolute;z-index:3;left:30px;bottom:23px;top:auto;padding:12px 15px;border:1px solid #c5abd24a;border-radius:13px;background:#211b32c9;color:#fff0cf;pointer-events:none;backdrop-filter:blur(5px)}
#guidePanel .lesson-life-icons{display:flex;gap:7px;justify-content:center}
#guidePanel .lesson-life-icons>svg{width:35px;height:38px;filter:drop-shadow(0 2px 3px #111328)}
#guidePanel .lesson-life-icons>svg.lesson-life-spent{opacity:.23;filter:grayscale(1);animation:lesson-life-out .65s ease-out both}
#guidePanel .lesson-life-loss{position:absolute;left:111px;top:6px;color:#ffe0a4;font:600 17px/1 Poppins,sans-serif;opacity:0;text-shadow:0 2px 5px #111328}
#guidePanel[data-story='hit'] .lesson-life-loss{animation:lesson-loss-number .7s ease-out both}
#guidePanel .lesson-lives p{font:500 10px/1.5 Poppins,sans-serif;margin:9px 0 0;text-align:center;text-shadow:none}
@keyframes lesson-life-out{0%{opacity:1;transform:scale(1)}25%{opacity:1;transform:translateY(-5px) rotate(12deg) scale(1.16)}55%{transform:rotate(-8deg)}100%{opacity:.23;transform:scale(.92)}}
@keyframes lesson-loss-number{0%{opacity:0;transform:translateY(0)}20%{opacity:1}75%{opacity:1}100%{opacity:0;transform:translateY(-26px)}}
#guidePanel .lesson-pin{position:absolute;z-index:3;transform:translate(-50%,-100%);pointer-events:none;text-align:center;white-space:nowrap;filter:drop-shadow(0 2px 4px #111328)}
#guidePanel .lesson-pin span{display:block;background:#241c35d9;border:1px solid #c3a4d577;border-radius:9px;padding:7px 11px;color:#fff0cf;font:500 11px/1.5 Poppins,sans-serif}
#guidePanel .lesson-pin b{font-weight:600;color:#ffd095;margin-left:4px}
#guidePanel .lesson-pin i{display:block;width:1px;height:24px;background:#ffe0a4;margin:0 auto;position:relative}
#guidePanel .lesson-pin i::after{content:'';position:absolute;bottom:0;left:-3px;width:6px;height:6px;border-bottom:1px solid #ffe0a4;border-right:1px solid #ffe0a4;transform:rotate(45deg)}
#guidePanel .lesson-ramp-pin{transform:translate(-50%,-100%)}#guidePanel .lesson-ramp-pin i{height:20px}
#guidePanel .lesson-pin.lesson-goal-reached span{border-color:#dbdda4;color:#f0f6cc;background:#344338e8}
#guidePanel .lesson-replay{position:absolute;right:23px;bottom:23px;z-index:4;margin:0;padding:8px 12px;min-height:34px;border:1px solid #bea4d03d;border-radius:9px;background:#201b30b8;box-shadow:none;color:#e0d0e9;font:400 10px/1.5 Poppins,sans-serif;transform:none;backdrop-filter:blur(4px)}
#guidePanel .lesson-replay:hover{border-color:#bea4d099;color:#fff0d7}
#guidePanel .lesson-recovery{position:absolute;z-index:6;left:30px;bottom:22px;width:min(360px,calc(100% - 310px));padding:14px 16px;border:1px solid #bfa0d566;border-radius:13px;background:#2b213cf2;backdrop-filter:blur(8px)}
#guidePanel .lesson-recovery p{font:400 11px/1.7 Poppins,sans-serif;color:#f0e3ef;margin:0 0 8px}
#guidePanel .lesson-recovery button{background:none;color:#ffe0b0;border:0;box-shadow:none;transform:none;min-height:34px;padding:5px 0;font:500 11px/1.5 Poppins,sans-serif;display:block}
#guidePanel .lesson-recovery select{max-width:100%}
#guidePanel .lesson-footer{position:relative;z-index:5;display:grid;grid-template-columns:auto minmax(0,1fr) 228px;align-items:center;gap:20px;min-height:94px;padding:12px 28px;background:linear-gradient(115deg,#271f34,#201b2e);border-top:1px solid #c4a7d52b;box-sizing:border-box}
#guidePanel.immersive-guide #guidePrevious{position:static;display:block;min-height:42px;min-width:70px;margin:0;padding:8px 12px;border:1px solid transparent;border-radius:9px;background:none;box-shadow:none;color:#cbb8d6;font:500 12px/1.5 Poppins,sans-serif;transform:none}
#guidePanel #guidePrevious span{font:inherit}#guidePanel #guidePrevious::before,#guidePanel #guidePrevious::after{content:none}
#guidePanel #guidePrevious:hover{border-color:#bea4d047;background:#bda3cf09;color:#fff0d7}
#guidePanel #guideStepHelp{margin:0;color:#cbbad6;font:400 11px/1.6 Poppins,sans-serif;text-align:center;text-wrap:balance}
#guidePanel[data-practice='ready'] #guideStepHelp{color:#d9e8c4}
#guidePanel .lesson-actions{position:static;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:7px;min-height:70px;margin:0}
#guidePanel.immersive-guide #guideNext{width:100%;min-width:0;max-width:none;min-height:53px;margin:0;padding:12px 17px;font-size:25px;line-height:1.1}
#guidePanel #guideNext:disabled{opacity:.42;filter:saturate(.55);cursor:default;pointer-events:none}
#guidePanel #guideGestureHint{min-height:12px;font:400 8px/1.5 Poppins,sans-serif;color:#ae9cbb;text-align:center;letter-spacing:.015em}
#guidePanel :is(button,select):focus-visible{outline:2px solid #f1d1ff;outline-offset:4px}
#inputChoicePanel{width:min(530px,calc(100vw - 32px));padding:43px 30px 34px;text-align:center}
#inputChoicePanel h2{font-size:38px;margin:0 25px 27px}
#inputChoicePanel #inputChoiceClose{position:absolute;top:17px;right:17px}
#inputChoicePanel .lesson-control-choices{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#inputChoicePanel .lesson-control-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:181px;padding:22px 10px;border:1px solid #bda0cf80;border-radius:14px;background:linear-gradient(#4a365d,#2e223e);color:#fff0cf;box-shadow:inset 0 1px 0 #ead0f333,0 5px 0 #211a31;transform:none}
#inputChoicePanel .lesson-control-choices button:hover{border-color:#ffe0ad;background:linear-gradient(#624971,#3b2b4b)}
#inputChoicePanel .lesson-control-choices svg{width:45px;height:43px;stroke:#eed1a9;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
#inputChoicePanel .choice-label{font:400 28px/1.15 Creepster,sans-serif;letter-spacing:.02em}#inputChoicePanel small{font:400 10px/1.6 Poppins,sans-serif;color:#d1bfdd;text-shadow:none}
@media(max-width:700px){
 #guidePanel.immersive-guide{width:calc(100vw - 24px);height:min(820px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);border-radius:18px}
 #guidePanel .lesson-header{padding:15px 17px 14px}#guidePanel .lesson-topline{gap:9px}#guidePanel.immersive-guide .lesson-heading{font-size:25px}#guidePanel #guideStepCount{font-size:9px}#guidePanel #guideBack{width:30px;height:30px;min-height:30px;font-size:23px}
 #guidePanel .lesson-stepper{margin-top:13px;gap:9px}#guidePanel .lesson-stepper li{gap:6px;padding:8px 7px;font-size:10px;border-radius:9px}#guidePanel .step-node{width:23px;height:23px;border-radius:7px;font-size:9px}#guidePanel .lesson-stepper li:not(:last-child)::after{width:7px}
 #guidePanel .lesson-copy{left:20px;top:19px;width:calc(100% - 40px)}#guidePanel .lesson-copy h2{font-size:29px;margin-bottom:8px}#guidePanel .lesson-copy p{font-size:11px;line-height:1.65}
 #guidePanel .lesson-control-checks{left:20px;top:110px;gap:6px}#guidePanel .lesson-control-checks li{font-size:9px;padding:5px 8px;gap:6px}
 #guidePanel.immersive-guide #guideCameraSlot{width:140px;right:16px;bottom:16px}#guidePanel #guideCameraInstruction{font-size:8px;padding:7px 8px}#guidePanel #guideCameraSlot #guideLiveStatus{font-size:8px;padding:3px 5px}
 #guidePanel .lesson-keyboard{left:20px;bottom:20px}#guidePanel .lesson-practice-keys button{width:48px;height:43px;min-height:43px;font-size:23px}
 #guidePanel .lesson-lives{left:20px;bottom:18px;padding:10px 12px}#guidePanel .lesson-life-icons>svg{width:29px;height:32px}#guidePanel .lesson-life-loss{left:91px;font-size:15px}#guidePanel .lesson-lives p{font-size:9px;margin-top:7px}
 #guidePanel .lesson-pin span{font-size:9px;padding:6px 8px}#guidePanel .lesson-pin i{height:20px}#guidePanel .lesson-replay{right:16px;bottom:18px;font-size:9px;padding:7px 9px}
 #guidePanel .lesson-recovery{left:16px;right:16px;bottom:150px;width:auto;padding:12px 14px}
 #guidePanel .lesson-footer{grid-template-columns:66px minmax(0,1fr);grid-template-areas:'help help' 'back actions';column-gap:10px;row-gap:8px;min-height:108px;padding:11px 18px 12px}#guidePanel.immersive-guide #guidePrevious{grid-area:back;min-width:0;padding:8px 0;text-align:left}#guidePanel #guideStepHelp{grid-area:help;font-size:10px;line-height:1.4}#guidePanel .lesson-actions{grid-area:actions;min-height:67px}#guidePanel.immersive-guide #guideNext{min-height:49px;font-size:23px}#guidePanel #guideGestureHint{font-size:8px}
 #inputChoicePanel{padding:44px 23px 30px}#inputChoicePanel h2{font-size:33px;margin:0 20px 23px}#inputChoicePanel .lesson-control-choices{gap:11px}#inputChoicePanel .lesson-control-choices button{min-height:157px;padding:19px 9px;gap:10px}#inputChoicePanel .choice-label{font-size:24px}#inputChoicePanel small{font-size:9px}
}
@media(max-height:600px){
 #guidePanel .lesson-header{padding:11px 20px 12px}#guidePanel .lesson-stepper{margin-top:9px}#guidePanel .lesson-stepper li{padding-top:6px;padding-bottom:6px}#guidePanel .lesson-heading{font-size:24px}#guidePanel .lesson-topline{min-height:28px}
 #guidePanel .lesson-footer{min-height:82px;padding-top:9px;padding-bottom:8px}#guidePanel .lesson-copy{top:17px}#guidePanel .lesson-copy h2{font-size:29px}#guidePanel .lesson-copy p{font-size:10px}#guidePanel .lesson-control-checks{top:90px}
 #guidePanel.immersive-guide .lesson-steer-cue{display:none}#guidePanel.immersive-guide #guideCameraSlot{width:155px;bottom:15px}#guidePanel #guideCameraInstruction{font-size:8px;padding:6px 8px}
 #guidePanel .lesson-life-icons>svg{width:28px;height:30px}#guidePanel .lesson-lives{bottom:16px;padding:9px 12px}#guidePanel .lesson-lives p{font-size:9px;margin-top:6px}
}
@media(prefers-reduced-motion:reduce){#guidePanel *,#inputChoicePanel *{transition:none!important;animation:none!important}}
@media(max-width:350px){
 #guidePanel .lesson-header{padding-left:13px;padding-right:13px}#guidePanel.immersive-guide .lesson-heading{font-size:22px}#guidePanel #guideStepCount{font-size:8px}#guidePanel #guideBack{width:28px;height:28px;min-height:28px}
 #guidePanel .lesson-stepper{gap:7px}#guidePanel .lesson-stepper li{padding:7px 5px;gap:5px;font-size:9px}#guidePanel .step-node{width:21px;height:21px;font-size:8px}#guidePanel .lesson-stepper li:not(:last-child)::after{width:5px}
 #guidePanel .lesson-copy{left:16px;width:calc(100% - 32px)}#guidePanel .lesson-copy h2{font-size:27px}#guidePanel .lesson-copy p{font-size:10px}#guidePanel .lesson-control-checks{left:16px;top:111px}
 #guidePanel .lesson-footer{padding-left:13px;padding-right:13px;grid-template-columns:56px minmax(0,1fr)}#guidePanel.immersive-guide #guideNext{font-size:22px;padding-left:12px;padding-right:12px}
}

@media(max-width:350px){#guidePanel.immersive-guide .lesson-steer-cue{display:none}}
