/* Three stable teaching steps. The native scenes and hand controls stay live. */
#guidePanel.immersive-guide{--guide-width:min(860px,calc(100vw - 40px));--guide-height:min(760px,calc(100dvh - 48px));width:var(--guide-width);height:var(--guide-height);max-height:var(--guide-height);border:1px solid #ae8ac157;border-radius:22px;background:#20172e;color:#f7edde;box-shadow:0 6px 0 #100b1c,0 25px 65px #130b2670;isolation:isolate}
#guidePanel.immersive-guide[data-input][data-phase]{width:var(--guide-width);height:var(--guide-height);max-height:var(--guide-height);max-width:none;min-width:0;box-sizing:border-box;grid-template-columns:minmax(0,1fr);border-width:1px;border-radius:var(--guide-radius,22px)}
#guidePanel.immersive-guide[open]{grid-template-rows:auto minmax(0,1fr) auto}
#guidePanel.immersive-guide::after{content:none}
#guidePanel .lesson-header{padding:20px 28px 21px;background:#251b34;border:0}
#guidePanel .lesson-topline{min-height:24px;gap:16px;padding-right:38px}
#guidePanel.immersive-guide .lesson-heading{font:400 11px/1.4 Poppins,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#d0badb;text-shadow:none}
#guidePanel #guideStepCount{width:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#d0badb;font:400 12px/1.4 Poppins,sans-serif;white-space:nowrap;letter-spacing:0;text-shadow:none}
#guidePanel #guideBack{position:absolute;right:18px;top:15px;width:32px;height:32px;min-height:32px;margin:0;padding:0;border:0;background:transparent;color:#cbb5d5;font:400 23px/1 Poppins,sans-serif}
#guidePanel #guideBack:hover{color:#fff0d5;background:#d8b8f00d}
#guidePanel .lesson-stepper{display:flex;width:240px;max-width:100%;margin:18px auto 0;gap:0}
#guidePanel .lesson-stepper li{flex:1;display:flex;align-items:center;justify-content:flex-start;min-height:32px;min-width:0;margin:0;padding:0;gap:0;border:0;border-radius:0;background:none;box-shadow:none}
#guidePanel .lesson-stepper li:last-child{flex:0}
#guidePanel .lesson-stepper li:not(:last-child)::after{position:static;content:'';flex:1;width:auto;height:2px;margin:0 12px;background:#604b742f;box-shadow:none}
#guidePanel .step-node{position:static;display:grid;place-items:center;flex:none;width:34px;height:34px;border:1px solid #b89ac54d;border-radius:11px;color:#c7acd7;background:linear-gradient(145deg,#51395e,#30223e);box-shadow:0 3px 0 #140e22,inset 0 1px 0 #e5c4f02b;transform:rotate(-4deg);font:400 22px/1 Creepster,sans-serif;text-shadow:0 1px 0 #24142e}
#guidePanel .lesson-stepper [data-state='current'],#guidePanel .lesson-stepper [data-state='complete']{border:0;background:none;box-shadow:none}
#guidePanel .lesson-stepper [data-state='current'] .step-node{color:#4d243b;background:linear-gradient(145deg,#ffe8b9,#f2bd73);box-shadow:0 3px 0 #8e593b,inset 0 2px 0 #fff4d8,0 0 16px #ffcd7a1c;transform:rotate(-4deg);border:1px solid #ffe4b0;text-shadow:0 1px 0 #ffedc6}
#guidePanel .lesson-stepper [data-state='complete'] .step-node{color:#f7e9ff;background:linear-gradient(145deg,#ad88c9,#705084);box-shadow:0 3px 0 #422944,inset 0 1px 0 #e0bfef66;border:1px solid #c99fe16b;text-shadow:0 1px 0 #51305e}
#guidePanel .lesson-stepper [data-state='complete']::after{background:#bd92e2;box-shadow:none}
#guidePanel[data-quick='true'] .lesson-stepper{width:32px}
#guidePanel .lesson-stage{background:#151125}
#guidePanel .lesson-shade{z-index:1;background:linear-gradient(180deg,#12102016 30%,transparent 48%,#17112500 56%,#20172ee8 84%,#20172e 100%)}
#guidePanel .lesson-copy{z-index:3;top:auto;left:28px;right:28px;bottom:23px;width:auto;max-width:none}
#guidePanel .lesson-copy h2{max-width:none;margin:0;font:400 37px/1.12 Creepster,Georgia,serif;letter-spacing:.01em;color:#fff0d5;text-shadow:0 2px 0 #714365;text-wrap:balance}
#guidePanel .lesson-copy #guideDescription{max-width:600px;margin:10px 0 0;font:400 13px/1.65 Poppins,sans-serif;color:#e5d6ed;text-shadow:none}
#guidePanel :is(#guideControlChecks,#guideStepHelp,#guideGestureHint,#guideCameraInstruction,#guideKeyboardInstruction){position:absolute;left:0;top:0;width:1px;height:1px;max-width:1px;min-height:0;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}
#guidePanel.immersive-guide .lesson-steer-cue{left:50%;top:28px;transform:translateX(-50%);width:154px;max-width:none;padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none}
#guidePanel .lesson-steer-cue::after{content:none}
#guidePanel .cue-hand-demo{width:148px;height:62px;stroke:#f4dbaa;stroke-width:1.6}
#guidePanel .lesson-steer-cue .cue-key-demo{display:none}
#guidePanel.immersive-guide #guideCameraSlot{right:18px;top:auto;bottom:var(--lesson-copy-space,145px);left:auto;width:138px;max-width:none;border:1px solid #a5c9b880;border-radius:12px;background:#2b2237;box-shadow:0 8px 30px #100a2926;transform:none}
#guidePanel[data-phase='calibrate'].immersive-guide #guideCameraSlot{left:auto;right:18px;top:auto;bottom:var(--lesson-copy-space,145px);width:180px;transform:none;border-color:#c7a2de80;border-radius:14px}
#guidePanel.immersive-guide #guideCameraSlot::before{content:none}
#guidePanel #guideCameraSlot .guide-camera-top{top:auto;bottom:7px;left:5px;right:5px}
#guidePanel #guideCameraSlot #guideLiveStatus{font:400 10px/1.4 Poppins,sans-serif;padding:4px 6px;color:#e2eadb;background:#241b32dd;border-radius:5px;white-space:nowrap}
#guidePanel[data-phase='calibrate'] #guideCameraSlot::after{content:'';position:absolute;inset:12px;border:1px dashed #dbb9e657;border-radius:8px;pointer-events:none}
#guidePanel .lesson-keyboard{left:50%;top:auto;bottom:var(--lesson-copy-space,145px);width:min(340px,calc(100% - 64px));transform:translateX(-50%)}
#guidePanel .lesson-practice-keys{display:flex;align-items:center;justify-content:space-between;gap:12px}
#guidePanel .lesson-practice-keys button{width:46px;height:44px;min-height:44px;border:1px solid #ddc4ef85;border-radius:9px;background:#342441dc;color:#f6e5ff;box-shadow:0 3px 0 #1e142a;font:400 23px/1 Poppins,sans-serif}
#guidePanel .lesson-practice-keys button:has(.done){background:#c4a4df;color:#36203f;border-color:#e5c9f5}
#guidePanel .lesson-practice-keys .done{color:inherit}
#guidePanel .lesson-lives{left:auto;top:23px;right:24px;bottom:auto;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none}
#guidePanel .lesson-life-icons{gap:7px}
#guidePanel .lesson-life-icons>svg{width:31px;height:36px}
#guidePanel .lesson-life-loss{left:auto;right:7px;top:4px}
#guidePanel #guideLifeCaption{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#guidePanel .lesson-pin span{border:1px solid #d8acf12e;border-radius:6px;color:#ffdeb0;background:#392246e8;box-shadow:none;font:400 11px/1.5 Poppins,sans-serif;padding:5px 9px}
#guidePanel .lesson-pin b{font-weight:500}
#guidePanel .lesson-pin i{height:14px;background:#e8c6968a}
#guidePanel .lesson-recovery{left:50%;top:24px;right:auto;bottom:auto;transform:translateX(-50%);width:min(370px,calc(100% - 36px));max-height:calc(100% - 145px);overflow:auto;padding:14px 16px;background:#2b213cf5;border:1px solid #bfa0d566}
#guidePanel .lesson-footer{display:grid;grid-template-columns:auto auto minmax(0,1fr);grid-template-areas:none;align-items:center;gap:18px;min-height:0;padding:1px 28px 25px;border:0;background:#20172e;box-shadow:none}
#guidePanel.immersive-guide #guidePrevious{grid-area:auto;grid-column:1;min-width:0;min-height:44px;margin:0;padding:8px 0;border:0;background:none;color:#d0b8dc;font:400 12px/1.4 Poppins,sans-serif;box-shadow:none;text-shadow:none}
#guidePanel .lesson-footer .lesson-replay{position:static;grid-column:2;min-height:44px;margin:0;padding:8px 0;border:0;border-radius:0;background:none;box-shadow:none;color:#d0b8dc;font:400 12px/1.4 Poppins,sans-serif;transform:none;backdrop-filter:none;white-space:nowrap}
#guidePanel.immersive-guide .lesson-actions{grid-area:auto;grid-column:3;justify-self:end;display:block;min-height:0;margin:0}
#guidePanel.immersive-guide #guideNext{display:flex;align-items:center;justify-content:center;width:auto;min-width:0;max-width:none;min-height:47px;margin:0;padding:11px 29px;border:1px solid #ead2ff;border-radius:10px;background:linear-gradient(180deg,#dabcf2,#b28bd2);color:#352140;box-shadow:0 4px 0 #69457f,0 1px 0 #fff0ff99 inset;font:400 22px/1.1 Creepster,Georgia,serif;letter-spacing:.02em;text-shadow:none;white-space:nowrap;transform:none}
#guidePanel.immersive-guide #guideNext::before,#guidePanel.immersive-guide #guideNext::after{content:none}
#guidePanel.immersive-guide #guideNext:hover:enabled{background:linear-gradient(180deg,#dabcf2,#b28bd2);color:#352140;box-shadow:0 4px 0 #69457f,0 1px 0 #fff0ff99 inset;text-shadow:none;filter:brightness(1.09);transform:none}
#guidePanel.immersive-guide #guideNext:active:enabled{color:#352140;box-shadow:0 2px 0 #69457f,0 1px 0 #fff0ff99 inset;transform:translateY(2px)}
#guidePanel.immersive-guide #guideNext:disabled{opacity:.36;filter:none;background:linear-gradient(180deg,#dabcf2,#b28bd2);color:#352140;border-color:#ead2ff;box-shadow:0 3px 0 #483254;text-shadow:none}
#guidePanel :is(button,select):focus-visible{outline:2px solid #f1d1ff;outline-offset:4px}
#inputChoicePanel{border:1px solid #ae8ac157;border-radius:22px;background:#251b34;box-shadow:0 6px 0 #100b1c,0 25px 65px #130b2670}
#inputChoicePanel h2{color:#ffe4b5;text-shadow:0 2px 0 #714365}
#inputChoicePanel .lesson-control-choices button{border-color:#b89bce80;background:linear-gradient(145deg,#58406b,#30213f);box-shadow:0 4px 0 #140e22,0 1px 0 #e6c6fa2b inset}
#inputChoicePanel .lesson-control-choices button:hover{background:linear-gradient(145deg,#76558b,#4b345e);border-color:#f3cf9a}
@media(max-width:700px){
 #guidePanel.immersive-guide{--guide-width:calc(100vw - 24px);--guide-height:min(800px,calc(100dvh - 24px));--guide-radius:18px;border-radius:18px}
 #guidePanel .lesson-header{padding:17px 20px 18px}
 #guidePanel .lesson-topline{gap:9px;padding-right:28px;min-height:24px}
 #guidePanel.immersive-guide .lesson-heading{font-size:10px}
 #guidePanel #guideStepCount{font-size:11px}
 #guidePanel #guideBack{right:10px;top:12px}
 #guidePanel .lesson-stepper{width:210px;margin-top:16px;gap:0}
 #guidePanel .lesson-stepper li{min-height:32px;margin:0;padding:0;border-radius:0;gap:0}
 #guidePanel .step-node{width:34px;height:34px;font-size:22px;border-radius:11px}
 #guidePanel .lesson-stepper li:not(:last-child)::after{width:auto;margin:0 12px}
 #guidePanel .lesson-copy{left:20px;right:20px;top:auto;bottom:23px;width:auto}
 #guidePanel .lesson-copy h2{font-size:31px;line-height:1.12;margin:0}
 #guidePanel .lesson-copy #guideDescription{font-size:12px;line-height:1.65;margin-top:10px}
 #guidePanel.immersive-guide #guideCameraSlot{width:100px;top:auto;right:12px;bottom:var(--lesson-copy-space,145px)}
 #guidePanel[data-phase='calibrate'].immersive-guide #guideCameraSlot{width:132px;top:auto;left:auto;right:12px;bottom:var(--lesson-copy-space,145px)}
 #guidePanel #guideCameraSlot #guideLiveStatus{font-size:9px;padding:4px}
 #guidePanel.immersive-guide .lesson-steer-cue{display:block;left:42%;top:25px;width:132px}
 #guidePanel .cue-hand-demo{width:132px;height:56px}
 #guidePanel .lesson-lives{top:19px;right:18px;bottom:auto;left:auto;padding:0}
 #guidePanel .lesson-life-icons{gap:5px}
 #guidePanel .lesson-life-icons>svg{width:28px;height:32px}
 #guidePanel .lesson-footer{display:grid;grid-template-columns:auto auto minmax(0,1fr);grid-template-areas:none;min-height:0;gap:8px;padding:1px 20px 24px}
 #guidePanel.immersive-guide #guidePrevious,#guidePanel .lesson-footer .lesson-replay{font-size:11px;white-space:nowrap;min-height:44px;grid-area:auto}
 #guidePanel.immersive-guide #guidePrevious{grid-column:1}
 #guidePanel .lesson-footer .lesson-replay{grid-column:2}
 #guidePanel.immersive-guide .lesson-actions{grid-area:auto;grid-column:3;min-height:0}
 #guidePanel.immersive-guide #guideNext{font-size:20px;min-height:46px;padding:11px 16px}
 #guidePanel .lesson-recovery{top:14px;bottom:auto}
}
@media(max-width:350px){
 #guidePanel .lesson-header{padding-left:15px;padding-right:15px}
 #guidePanel .lesson-copy{left:16px;right:16px;width:auto}
 #guidePanel .lesson-copy h2{font-size:29px}
 #guidePanel .lesson-footer{padding-left:16px;padding-right:16px;gap:8px}
}
@media(max-height:600px){
 #guidePanel.immersive-guide{--guide-height:calc(100dvh - 20px)}
 #guidePanel .lesson-header{padding-top:10px;padding-bottom:12px}
 #guidePanel .lesson-stepper{margin-top:8px}
 #guidePanel .step-node{width:30px;height:30px;font-size:21px}
 #guidePanel .lesson-stepper li{min-height:28px}
 #guidePanel .lesson-copy{bottom:14px}
 #guidePanel .lesson-copy h2{font-size:28px}
 #guidePanel .lesson-copy #guideDescription{font-size:11px;line-height:1.6;margin-top:8px}
 #guidePanel .lesson-footer{padding-top:0;padding-bottom:16px}
 #guidePanel.immersive-guide #guideNext{min-height:43px;font-size:20px}
 #guidePanel[data-phase='calibrate'].immersive-guide #guideCameraSlot{width:110px;top:auto;bottom:var(--lesson-copy-space,115px)}
 #guidePanel.immersive-guide #guideCameraSlot{width:90px;top:auto;bottom:var(--lesson-copy-space,115px)}
 #guidePanel.immersive-guide .lesson-steer-cue{top:12px}
}
@media(prefers-reduced-motion:reduce){#guidePanel *,#inputChoicePanel *{transition:none!important;animation:none!important}}
/* Optional trick previews stay inside step three and never gate the start. */
#guidePanel .lesson-trick-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:470px;margin-top:14px;pointer-events:auto}
#guidePanel .lesson-trick-options button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:64px;margin:0;padding:7px 6px;border:1px solid #bda0d04a;border-radius:10px;background:#342441e8;color:#e4d0ed;box-shadow:0 3px 0 #171022;font:400 11px/1.3 Poppins,sans-serif;letter-spacing:0;text-shadow:none;transform:none}
#guidePanel .lesson-trick-options button[aria-pressed='true']{border-color:#e6c7fa;background:linear-gradient(145deg,#d6b4ed,#ac83c9);color:#38213f;box-shadow:0 3px 0 #654074,inset 0 1px 0 #f7e5ff77}
#guidePanel .lesson-trick-options button::before,#guidePanel .lesson-trick-options button::after{content:none}
#guidePanel .lesson-trick-options svg{width:29px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#guidePanel #guideTrickGrab svg{width:43px}
#guidePanel .lesson-trick-options kbd,#guidePanel .lesson-trick-options .key-label{display:none}
#guidePanel[data-input='keyboard'][data-touch='false'] .lesson-trick-options :is(.gesture-symbol,.gesture-label){display:none}
#guidePanel[data-input='keyboard'][data-touch='false'] .lesson-trick-options kbd{display:grid;place-items:center;width:27px;height:26px;margin:0;padding:0;border:1px solid currentColor;border-radius:5px;background:transparent;box-shadow:none;font:500 12px/1 Poppins,sans-serif;color:inherit}
#guidePanel[data-input='keyboard'][data-touch='false'] .lesson-trick-options .key-label{display:block}
#guidePanel[data-phase='ramp'] #guideDescription{min-height:3.3em}
@media(max-width:700px){#guidePanel .lesson-trick-options{gap:6px;margin-top:12px}#guidePanel .lesson-trick-options button{min-height:61px;padding:6px 3px;font-size:11px}#guidePanel .lesson-trick-options svg{width:25px;height:25px}#guidePanel #guideTrickGrab svg{width:39px}#guidePanel[data-phase='ramp'] #guideDescription{min-height:4.95em}}
@media(max-height:600px){#guidePanel .lesson-trick-options{margin-top:9px;gap:6px}#guidePanel .lesson-trick-options button{min-height:47px;gap:3px;padding:4px;font-size:10px}#guidePanel .lesson-trick-options svg{height:20px}#guidePanel .lesson-trick-options kbd{height:21px!important}#guidePanel[data-phase='ramp'] #guideDescription{min-height:3.2em}}
