.demo-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#202820;color:#e9e9dc;font:10px/1.5 'Golos Text',Arial,sans-serif;flex:none;letter-spacing:.5px}.demo-notice a{color:inherit;white-space:nowrap}.demo-notice select{font:12px 'Golos Text',Arial,sans-serif;border:1px solid #5e6b56;border-radius:7px;background:#303d2d;color:#f2f0e5;padding:6px;min-width:100px}.demo-guide{background:var(--accent-soft);border-bottom:1px solid var(--line);color:var(--accent-ink);padding:10px 16px;display:flex;gap:12px;font-size:12px;line-height:1.6;flex:none}.demo-guide b{white-space:nowrap}.stage .ai-person{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 38%;animation:breathing 13s ease-in-out infinite alternate}.ai-local{object-fit:cover!important;background:#2a3727}.person-name{position:absolute;left:13px;bottom:16px;padding:6px 10px;background:#101a13bb;color:#fff;border-radius:7px;font-size:11px;max-width:60%}.ai-tag{position:absolute;left:13px;top:13px;background:#142116ae;color:#e0e6d5;padding:5px 8px;border-radius:5px;font-size:8px;letter-spacing:.6px}.local-label{position:absolute;right:15px;bottom:12px;color:white;font-size:8px;background:#0c170f99;border-radius:4px;padding:3px 5px}.room{min-height:580px}.stage{min-height:390px}.board{min-height:540px}.pane{min-height:390px}.stage.camera-off #local{visibility:hidden}.stage.mic-off:after{content:'Микрофон выключен · демо';position:absolute;left:15px;top:48px;color:white;font-size:11px;background:#753829c9;padding:6px 9px;border-radius:7px}.fx.me{z-index:6}.demo-now{margin-top:10px;color:var(--muted);font-size:12px}.demo-meter{height:9px;background:#edf0e8;border-radius:8px;margin:15px 0;overflow:hidden}.demo-meter i{display:block;height:100%;width:35%;background:var(--ok);animation:meter 1.5s infinite alternate}.beat-dots{display:flex;gap:13px;justify-content:center;margin:30px 0}.beat-dots i{width:34px;height:34px;border-radius:50%;background:var(--bg);border:1px solid var(--line)}.beat-dots i.on{background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 6px var(--accent-soft)}.rhythm-target{display:block;border:1px solid var(--line);border-radius:50%;width:130px;height:130px;margin:24px auto;background:var(--accent-soft);font-size:22px;color:var(--accent-ink)}.rhythm-target.hit{background:var(--accent);color:white}.score-actions{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.score-actions button[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent)}.demo-wave{height:55px;display:flex;align-items:center;gap:4px;margin:20px 0}.demo-wave i{flex:1;background:var(--accent);border-radius:3px;opacity:.5;transform:scaleY(.6)}.demo-wave.playing i{animation:wave 1.2s ease-in-out infinite alternate;animation-delay:calc(var(--i) * -.1s)}.kbd button{font:inherit;cursor:pointer}.kbd .w{padding:0 0 4px;min-width:0}.kbd .b{border:0;cursor:pointer}.prompt{font-size:21px}.demo-card-title{font:600 17px 'Unbounded',sans-serif;line-height:1.4;margin:5px 0 12px}.demo-time{font-size:12px;color:var(--muted)}.demo-result{border-radius:10px;background:var(--ok-soft);padding:10px 14px;font-size:13px;color:var(--ok);margin-top:14px}.demo-teacher{display:flex;gap:12px;align-items:center}.demo-teacher img{height:60px;width:60px;object-fit:cover;border-radius:50%}.demo-teacher b{display:block}.demo-teacher small{color:var(--muted)}.cab-chat{display:grid;gap:12px}.cab-bubble{border-radius:12px;padding:13px;background:var(--surface-2);font-size:14px;line-height:1.6}.cab-bubble.from-me{background:var(--accent-soft);margin-left:25px}.cab-write{display:flex;gap:7px;margin-top:12px}.cab-write input{flex:1;min-width:0}.demo-empty-pay{font-size:13px;line-height:1.8;color:var(--muted)}.demo-nav-title{font:600 21px/1.4 'Unbounded',sans-serif;margin:5px 0}.demo-notice+header.top{position:relative}.kbd button:focus-visible,.btn:focus-visible,.tab:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.board .tabs .tab{font-size:12px;padding:7px 9px}.demo-tour{display:flex;justify-content:space-between;gap:8px;background:var(--surface);padding:10px 16px;border-top:1px solid var(--line);font-size:12px;flex:none;align-items:center}.demo-tour p{margin:0;color:var(--muted)}@keyframes breathing{to{transform:scale(1.025)}}@keyframes wave{to{transform:scaleY(1);opacity:1}}@keyframes meter{to{width:72%}}
@media(min-width:1100px){.room{min-height:620px}.stage{min-height:520px}.pane{min-height:480px}}
@media(max-width:820px){body{height:auto;min-height:100vh}.room{grid-template-columns:1fr;grid-template-rows:auto auto;min-height:0}.stage{height:360px;aspect-ratio:16/10;min-height:0}.stage .ai-person{object-position:50% 35%}.board{min-height:590px}.pane{min-height:490px}.bar{gap:6px;padding:8px 12px}.bar h1{width:auto;flex:1}.bar .sp{display:none}.bar .lbl{display:none}.demo-guide{font-size:11px}.demo-notice{font-size:8px}.demo-notice>span{max-width:210px}.fx{top:42px}.demo-tour{flex-wrap:wrap;font-size:10px}.demo-tour .btn{font-size:11px}.person-name{font-size:9px}.demo-notice select{font-size:10px;min-width:90px}}
@media(max-width:480px){.demo-notice{padding:8px 10px;gap:7px;letter-spacing:0}.demo-notice span{font-size:7px;max-width:135px}.demo-guide{display:block;padding:10px 12px}.demo-guide b{display:block;margin-bottom:3px}.bar h1{font-size:11px;min-width:100%;margin-bottom:3px}.bar .pill{font-size:10px}.bar .btn.sm{font-size:11px;padding:5px 9px}.bar #bLeave{margin-left:auto}.room{padding:10px;gap:10px}.stage{height:260px;aspect-ratio:auto}.stage .ai-person{object-position:50% 30%}.local-label{font-size:6px;right:13px;bottom:11px}.person-name{left:8px;bottom:10px;max-width:66%;font-size:8px}.ai-tag{left:8px;top:8px;font-size:6px}.board .tabs{gap:2px}.board .tabs .tab{font-size:10px;padding:7px 6px}.pane{padding:10px;min-height:410px}.board{min-height:510px}.song-ctl{gap:6px}.song-ctl .btn{font-size:12px}.cds.big .cd svg{width:78px;height:96px}.cds.big .cd b{font-size:16px}.cds.big{gap:6px}.cds.big .cd{padding:5px}.warm-hint{font-size:16px}.warm-now b{font-size:18px}.demo-tour p{max-width:100%}.demo-tour .btn{padding:5px 8px}.top .who b{font-size:12px}.nav button{font-size:9px}.demo-notice select{max-width:100px}.score-actions .btn{padding:4px 7px;font-size:11px}.prompt{font-size:18px}}
@media(prefers-reduced-motion:reduce){.stage .ai-person,.demo-wave.playing i,.demo-meter i{animation:none}}
.chord-audition{background:none;border:0;padding:0;border-radius:11px}.chord-audition[aria-pressed="true"] .cd{background:var(--accent-soft);border-color:var(--accent)}
@media(max-width:820px){.stage{width:100%}}
.vocal-story{background:#fffdf5;border-bottom:1px solid var(--line);padding:14px 16px;flex:none}.vocal-story-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.vocal-story-top b{display:block;font-size:14px}.vocal-story-top small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.vocal-story-line{margin-top:12px;border-left:3px solid var(--accent);padding:0 12px;min-height:62px}.vocal-story-line>span{font-size:10px;font-weight:600;color:var(--accent-ink)}.vocal-story-line p{margin:5px 0 10px;font-size:13px;line-height:1.6}.vocal-story-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.vocal-story-controls label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;margin-left:8px}.vocal-story-controls select{font:11px 'Golos Text',sans-serif;background:white;color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:7px;max-width:230px}.vocal-story-controls>a{margin-left:auto;text-decoration:none;color:inherit;font-size:11px}#storyStep{font-size:11px;color:var(--muted);min-width:45px;text-align:center}.storyProgress{height:3px;background:var(--line);border-radius:4px;margin-top:13px;overflow:hidden}.storyProgress i{display:block;height:100%;background:var(--accent);width:0}.story-homework{padding:18px;background:var(--ok-soft);color:var(--ok);font-size:13px;line-height:1.7;border-top:1px solid var(--line);flex:none}.story-homework p{margin:7px 0 12px}.story-video.teacher{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}.story-video.student{position:absolute;right:10px;bottom:10px;width:26%;max-width:220px;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:10px;border:2px solid #ffffff80;z-index:4}.stage .person-name,.stage .ai-tag{z-index:3}#local{z-index:3}.local-label{z-index:5}.stage .fx.me{z-index:8}.vocal-story[data-speaker="student"] .vocal-story-line{border-color:var(--ok)}@media(max-width:480px){.vocal-story{padding:12px 10px}.vocal-story-top b{font-size:12px}.vocal-story-top small{font-size:8px}.vocal-story-top .btn{font-size:10px;padding:8px;min-height:35px}.vocal-story-line p{font-size:12px}.vocal-story-controls{gap:5px}.vocal-story-controls label{margin-left:3px;font-size:10px}.vocal-story-controls select{font-size:10px;max-width:173px}.vocal-story-controls>a{width:100%;justify-content:center;margin-top:4px}.vocal-story-controls .btn{min-height:30px;padding:4px 8px}.story-homework{font-size:12px}}
.backing-meta{display:grid;gap:5px;padding:12px 10px;border:1px solid var(--line);border-radius:10px;font-size:14px}.backing-meta>b{font-size:18px}.backing-meta>span{font-size:13px;color:var(--muted)}.backing-meta>small{font-size:10px;line-height:1.6;color:var(--muted)}.backing-seek{display:flex;gap:10px;align-items:center;margin-bottom:18px}.backing-seek input{flex:1;min-width:70px;accent-color:var(--accent)}.backing-seek output{font-size:11px;color:var(--muted);white-space:nowrap}.real-wave i{animation:none!important;transform:none;opacity:.55}.real-wave.is-playing i{opacity:.85}#realLyrics p{cursor:pointer}#realLyrics p:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.stage .story-video.teacher{object-fit:contain;background:var(--stage)}.stage .story-video.student{object-fit:contain;background:var(--stage)}.stage:has(.story-video) .ai-person{object-fit:contain;animation:none;background:var(--stage)}.stage[data-speaker="student"] .story-video.student{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.school-teacher-photo{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#324238,#111a15)}.school-photo-window{width:80%;max-width:390px;aspect-ratio:1;border-radius:50%;overflow:hidden;position:relative}.school-photo-window.card img{width:209%;height:209%;max-width:none;left:-50.4%;top:-24.4%;object-fit:fill;position:absolute}.school-photo-window.photo{border-radius:18px;max-width:390px;aspect-ratio:1}.school-photo-window.photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 35%}.school-ai-link{font-size:10px;color:#6c7e60;text-decoration:none;margin-left:auto}.cabinet-teacher-photo{display:block;width:64px;height:64px;border-radius:50%;position:relative;overflow:hidden;flex-shrink:0}.demo-teacher .cabinet-teacher-photo img{position:absolute;width:209%;height:209%;max-width:none;left:-50.4%;top:-24.4%;object-fit:fill;border-radius:0}.demo-teacher .cabinet-teacher-photo.photo img{width:100%;height:100%;left:0;top:0;object-fit:cover;object-position:50% 35%}@media(max-width:820px){.school-photo-window{max-width:260px;width:65%}.school-photo-window.photo{max-width:230px;aspect-ratio:1}.school-ai-link{margin-left:0}}
.school-teacher-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain!important;background:#101a15;z-index:1}.school-teacher-video[hidden],.school-teacher-photo[hidden]{display:none!important}.school-teacher-photo.has-video .school-photo-window{width:100%;height:100%;max-width:none;aspect-ratio:auto;border-radius:0}.school-photo-window.video-poster img{display:block;width:100%;height:100%;object-fit:contain}.stage .person-name,.stage .ai-tag{z-index:4}.stage .ai-local,.stage .local-label{z-index:5}
/* Keep source framing intact; enlarge the active speaker during the student's answer. */
.school-student-video{position:absolute;right:10px;bottom:10px;width:26%;max-width:220px;height:auto;aspect-ratio:16/9;object-fit:contain;background:#101a15;border-radius:10px;border:2px solid #ffffff80;z-index:5}
.stage #local[hidden]{display:none!important}
.stage.student-speaking .school-student-video{inset:0;width:100%;height:100%;max-width:none;border:0;border-radius:0;z-index:1}
.stage.student-speaking .school-teacher-video{inset:auto 10px 10px auto;width:26%;max-width:220px;height:auto;aspect-ratio:16/9;border:2px solid #ffffff80;border-radius:10px;z-index:5}
.stage.student-speaking .local-label{left:13px;right:auto;bottom:16px;font-size:11px;padding:6px 10px}
.stage.student-speaking .person-name{left:auto;right:15px;bottom:12px;max-width:24%;font-size:8px;padding:3px 5px}
.stage.camera-off .school-student-video{visibility:hidden}
@media(max-width:480px){.stage.student-speaking .local-label{left:8px;bottom:10px;font-size:8px}.stage.student-speaking .person-name{font-size:6px;right:13px;bottom:11px}}

.school-student-video[hidden]{display:none!important}
.stage.student-speaking .person-name{z-index:6}
