@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Nunito:wght@600;700;800;900&display=swap');

:root {
  --ink:#eef4ff;
  --muted:#98a9cd;
  --night:#07112d;
  --panel:#0f1d43;
  --panel-2:#142653;
  --line:rgba(157,190,255,.14);
  --cyan:#49d8ef;
  --violet:#8e75ff;
  --mint:#5de9ac;
  --sun:#ffd45c;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; min-width:320px; color:var(--ink); background:var(--night); font-family:"DM Sans",system-ui,sans-serif; }
button,select { font:inherit; }
button,a,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
.class-app { min-height:100dvh; background:radial-gradient(circle at 80% 8%,rgba(80,75,190,.18),transparent 28%),linear-gradient(180deg,#07112d,#091638 72%,#07112d); }
.class-header { height:78px; padding:0 clamp(18px,4vw,64px); display:grid; grid-template-columns:1fr auto 1fr; align-items:center; border-bottom:1px solid var(--line); background:rgba(5,13,36,.86); backdrop-filter:blur(18px); position:sticky; top:0; z-index:20; }
.class-brand { display:flex; align-items:center; gap:11px; color:white; text-decoration:none; }
.version-chip { margin-left:2px; padding:4px 7px; border:1px solid rgba(140,174,255,.25); border-radius:999px; color:#91a7dc; background:rgba(255,255,255,.04); font-size:7px; font-style:normal; font-weight:950; letter-spacing:.7px; text-transform:uppercase; }
.class-brand>span,.class-footer a span { width:42px; height:42px; display:grid; place-items:center; border-radius:14px; color:#203167; background:linear-gradient(145deg,#ffe176,#ff9e58); font:900 14px "Nunito"; box-shadow:0 7px 20px rgba(255,180,79,.22); }
.class-brand strong { font:900 18px "Nunito"; line-height:1; }.class-brand small { display:block; margin-top:4px; color:#8da4d4; font:800 8px "DM Sans"; letter-spacing:1.5px; text-transform:uppercase; }
.privacy-note { display:flex; align-items:center; gap:9px; color:#b9c9e9; font-size:10px; font-weight:800; letter-spacing:.7px; text-transform:uppercase; }
.privacy-note i,.live-badge i { width:8px; height:8px; border-radius:50%; background:var(--mint); box-shadow:0 0 0 5px rgba(93,233,172,.1),0 0 14px rgba(93,233,172,.9); }
.class-header nav { justify-self:end; display:flex; align-items:center; gap:12px; }
.class-header nav a,.class-header nav button { border:1px solid var(--line); border-radius:999px; padding:10px 13px; color:#c4d1ec; background:rgba(255,255,255,.04); text-decoration:none; font-size:10px; font-weight:850; }
.class-shell { width:100%; min-height:calc(100dvh - 78px); display:grid; grid-template-columns:310px minmax(0,1fr); }
.teacher-drawer { min-width:0; padding:28px 21px 28px clamp(21px,3vw,42px); border-right:1px solid var(--line); background:rgba(8,20,50,.7); }
.drawer-heading p { margin:0 0 5px; color:var(--cyan); font-size:9px; font-weight:900; letter-spacing:1.5px; text-transform:uppercase; }
.drawer-heading h1 { margin:0 0 20px; font:900 25px/1.08 "Nunito"; letter-spacing:-.6px; }
.teacher-list { display:grid; gap:8px; }
.teacher-choice { width:100%; padding:8px; border:1px solid transparent; border-radius:18px; display:grid; grid-template-columns:48px 1fr 24px; align-items:center; gap:10px; color:#c3d0eb; background:transparent; text-align:left; transition:.22s ease; }
.teacher-choice:hover { background:rgba(255,255,255,.05); transform:translateX(3px); }
.teacher-choice.selected { color:white; border-color:rgba(85,213,239,.34); background:linear-gradient(135deg,rgba(54,187,222,.15),rgba(120,91,236,.12)); box-shadow:inset 3px 0 var(--cyan); }
.teacher-choice img { width:48px; height:48px; object-fit:cover; border-radius:14px; }
.teacher-choice strong,.teacher-choice small { display:block; }.teacher-choice strong { font:900 13px "Nunito"; }.teacher-choice small { margin-top:3px; color:#8497bd; font-size:9px; }
.teacher-choice i { width:22px; height:22px; display:none; place-items:center; border-radius:50%; color:#0b1b3d; background:var(--mint); font-size:10px; font-style:normal; font-weight:1000; }
.teacher-choice.selected i { display:grid; }
.class-options { margin-top:22px; padding-top:20px; border-top:1px solid var(--line); display:grid; gap:12px; }
.class-options label { min-width:0; display:grid; gap:6px; }.class-options label>span { color:#7f92ba; font-size:8px; font-weight:900; letter-spacing:1.2px; text-transform:uppercase; }
.class-options select { min-width:0; max-width:100%; width:100%; padding:11px 12px; border:1px solid var(--line); border-radius:13px; color:#e8efff; background:#102047; outline:none; font-size:11px; font-weight:750; }
.class-stage { min-width:0; display:grid; grid-template-rows:auto minmax(380px,1fr) auto; }
.stage-topbar { min-height:74px; padding:14px clamp(18px,3vw,42px); display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); }
.stage-topbar>div:first-child { display:flex; align-items:center; gap:14px; }.stage-topbar p { margin:0; color:#96a8ce; font-size:11px; }.stage-topbar p strong { color:white; }
.live-badge { display:flex; align-items:center; gap:8px; padding:8px 11px; border:1px solid rgba(93,233,172,.2); border-radius:999px; color:#aef5d4; background:rgba(93,233,172,.07); font-size:8px; font-weight:950; letter-spacing:1px; text-transform:uppercase; }
.live-badge i { width:6px; height:6px; }
.curriculum-badge { padding:7px 10px; border:1px solid rgba(85,213,239,.2); border-radius:999px; color:#a9eefa; background:rgba(85,213,239,.07); font-size:8px; font-weight:900; letter-spacing:.6px; white-space:nowrap; }
.session-status { display:flex; align-items:center; gap:8px; }.session-status>span { margin-right:5px; color:#8498c0; font-size:11px; font-variant-numeric:tabular-nums; }
.session-status button { width:36px; height:36px; border:1px solid var(--line); border-radius:12px; color:white; background:rgba(255,255,255,.04); font-size:13px; }
.session-status #endClass { width:auto; padding:0 13px; color:#ffb8b8; font-size:9px; font-weight:850; }
.teacher-viewport { min-height:440px; position:relative; display:grid; place-items:center; overflow:hidden; background:radial-gradient(circle at 50% 49%,rgba(47,166,232,.19),transparent 28%),radial-gradient(circle at 50% 49%,rgba(126,84,255,.15),transparent 48%); }
.teacher-viewport::before { content:""; position:absolute; inset:0; opacity:.25; background-image:linear-gradient(rgba(124,161,226,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(124,161,226,.12) 1px,transparent 1px); background-size:46px 46px; mask-image:linear-gradient(to bottom,transparent,black 22%,black 76%,transparent); }
.ambient-ring { position:absolute; width:min(58vw,630px); aspect-ratio:1; border:1px solid rgba(86,208,239,.17); border-radius:50%; animation:slowOrbit 18s linear infinite; }
.ambient-ring::before,.ambient-ring::after { content:""; position:absolute; width:8px; height:8px; border-radius:2px; background:var(--cyan); transform:rotate(45deg); box-shadow:0 0 17px var(--cyan); }
.ambient-ring::before { top:14%; left:15%; }.ambient-ring::after { bottom:17%; right:12%; background:var(--violet); box-shadow:0 0 17px var(--violet); }
.ring-two { width:min(72vw,780px); animation-duration:27s; animation-direction:reverse; opacity:.55; }
.teacher-portrait {
  --look-x:0px;
  --look-y:0px;
  --mouth-x:50%;
  --mouth-y:62%;
  --mouth-width:14%;
  --mouth-height:4%;
  --eye-y:40%;
  --eye-left-x:33%;
  --eye-right-x:67%;
  --eye-width:17%;
  --eye-height:11%;
  --jaw-width:15%;
  --jaw-height:11%;
  --jaw-drop:0px;
  --jaw-stretch:1;
  --talk-energy:.7;
  --speech-tilt:0deg;
  --speech-shift:0px;
  width:min(45vw,440px);
  aspect-ratio:1;
  position:relative;
  z-index:2;
  border-radius:50% 50% 45% 45%;
  filter:drop-shadow(0 30px 40px rgba(0,4,20,.4));
  transform:translate3d(var(--look-x),var(--look-y),0);
  transition:opacity .2s,transform .28s cubic-bezier(.2,.8,.2,1);
  will-change:transform;
}
.teacher-portrait::after { content:""; position:absolute; inset:-2%; border-radius:50%; border:1px solid rgba(134,222,255,.24); box-shadow:inset 0 0 40px rgba(23,113,210,.13),0 0 60px rgba(57,193,239,.15); pointer-events:none; }
.face-rig { position:absolute; inset:0; overflow:hidden; border-radius:50%; animation:teacherIdle 6.4s cubic-bezier(.45,.05,.55,.95) infinite; transform-origin:50% 72%; will-change:transform,filter; }
.teacher-portrait img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; user-select:none; pointer-events:none; }
.face-base { position:absolute; inset:0; z-index:1; }
.teacher-video {
  position:absolute;
  z-index:2;
  inset:0;
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
  opacity:0;
  pointer-events:none;
  user-select:none;
  transform:scale(1.015);
  filter:saturate(1.06) contrast(1.025);
  transition:opacity .2s ease;
  will-change:opacity;
}
.jaw-layer {
  position:absolute;
  z-index:4;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transform:translate3d(var(--speech-shift),var(--jaw-drop),0) scaleY(var(--jaw-stretch));
  transform-origin:var(--mouth-x) var(--mouth-y);
  clip-path:ellipse(var(--jaw-width) var(--jaw-height) at var(--mouth-x) var(--mouth-y));
  -webkit-mask-image:radial-gradient(ellipse var(--jaw-width) var(--jaw-height) at var(--mouth-x) var(--mouth-y),#000 58%,rgba(0,0,0,.86) 76%,transparent 100%);
  mask-image:radial-gradient(ellipse var(--jaw-width) var(--jaw-height) at var(--mouth-x) var(--mouth-y),#000 58%,rgba(0,0,0,.86) 76%,transparent 100%);
  pointer-events:none;
  will-change:transform,opacity;
  transition:transform .07s cubic-bezier(.2,.75,.25,1),opacity .1s ease;
}
.talk-mouth {
  position:absolute;
  z-index:3;
  left:var(--mouth-x);
  top:var(--mouth-y);
  width:var(--mouth-width);
  height:var(--mouth-height);
  border-radius:45% 45% 55% 55%;
  opacity:0;
  transform:translate(-50%,-50%) scaleY(.18);
  transform-origin:50% 25%;
  background:radial-gradient(ellipse at 50% 30%,rgba(43,24,30,.38),rgba(4,8,20,.92) 68%);
  border-bottom:1px solid rgba(255,194,178,.32);
  box-shadow:inset 0 -2px 5px rgba(235,120,119,.24),0 2px 4px rgba(0,0,0,.25);
  mix-blend-mode:multiply;
  pointer-events:none;
  transition:width .075s ease,height .075s ease,border-radius .075s ease,transform .075s ease,opacity .08s ease;
}
.eye-lid {
  position:absolute;
  z-index:5;
  top:var(--eye-y);
  width:var(--eye-width);
  height:var(--eye-height);
  border-radius:48% 48% 52% 52%;
  opacity:0;
  transform:translate(-50%,-50%) scaleY(.05);
  transform-origin:50% 0;
  background:linear-gradient(180deg,rgba(9,17,38,.75),rgba(35,45,69,.3));
  mix-blend-mode:multiply;
  pointer-events:none;
  transition:opacity .045s ease,transform .065s ease;
}
.eye-left { left:var(--eye-left-x); }
.eye-right { left:var(--eye-right-x); transition-delay:.018s; }
.face-shine { position:absolute; z-index:6; inset:0; border-radius:50%; pointer-events:none; background:linear-gradient(108deg,transparent 22%,rgba(255,255,255,.065) 45%,transparent 62%); transform:translateX(-80%); animation:faceShimmer 9s ease-in-out infinite; }
.teacher-portrait.blinking .eye-lid { opacity:.94; transform:translate(-50%,-50%) scaleY(1.12); }
.teacher-portrait.speaking .face-rig { animation:teacherSpeak 1.55s cubic-bezier(.45,.05,.55,.95) infinite; transform:rotate(var(--speech-tilt)); }
.teacher-portrait.speaking .face-base { filter:saturate(1.08) brightness(1.045); }
.teacher-portrait.speaking .jaw-layer { opacity:1; filter:saturate(1.08) brightness(1.045); }
.teacher-portrait.speaking .talk-mouth { opacity:var(--talk-energy); }
.teacher-portrait.video-speaking .teacher-video { opacity:1; }
.teacher-portrait.video-speaking .face-base { opacity:0; }
.teacher-portrait.video-speaking .jaw-layer,
.teacher-portrait.video-speaking .talk-mouth,
.teacher-portrait.video-speaking .eye-lid { opacity:0!important; }
.teacher-portrait.has-speaking-video .eye-lid,
.teacher-portrait.has-speaking-video .jaw-layer,
.teacher-portrait.has-speaking-video .talk-mouth { display:none!important; }
.teacher-portrait.has-speaking-video .animation-badge::after { content:" · video"; }
.teacher-portrait[data-viseme="wide"] .talk-mouth { width:calc(var(--mouth-width) * 1.12); height:calc(var(--mouth-height) * .88); border-radius:45% 45% 58% 58%; transform:translate(-50%,-50%) scaleX(1.08) scaleY(calc(.75 + var(--talk-energy))); }
.teacher-portrait[data-viseme="round"] .talk-mouth { width:calc(var(--mouth-width) * .62); height:calc(var(--mouth-height) * 1.46); border-radius:50%; transform:translate(-50%,-50%) scaleY(calc(.5 + var(--talk-energy))); }
.teacher-portrait[data-viseme="closed"] .talk-mouth { width:calc(var(--mouth-width) * .92); height:2px; border-radius:50%; opacity:.5; transform:translate(-50%,-50%) scaleY(.35); }
.teacher-portrait[data-viseme="narrow"] .talk-mouth { width:calc(var(--mouth-width) * .78); height:calc(var(--mouth-height) * .56); transform:translate(-50%,-50%) scaleY(calc(.2 + var(--talk-energy))); }
.teacher-portrait[data-viseme="open"] .talk-mouth { transform:translate(-50%,-50%) scaleX(.92) scaleY(calc(.8 + var(--talk-energy))); }
.teacher-portrait[data-viseme="rest"] .talk-mouth { opacity:.12; transform:translate(-50%,-50%) scaleY(.12); }
.teacher-portrait.word-beat .talk-mouth { opacity:1; transform:translate(-50%,-50%) scaleX(1.08) scaleY(1.65); }
.teacher-portrait.listening .face-rig { animation:teacherListen 2.8s ease-in-out infinite; filter:saturate(1.07) brightness(1.04); }
.teacher-portrait.thinking .face-rig { animation:teacherThink 1.7s ease-in-out infinite; filter:saturate(.94) brightness(1.035); }
.teacher-portrait.celebrating .face-rig { animation:teacherCelebrate .72s cubic-bezier(.2,.8,.2,1) 2; filter:saturate(1.2) brightness(1.08); }
.teacher-portrait.listening::after { border-color:rgba(93,233,172,.58); box-shadow:inset 0 0 40px rgba(93,233,172,.11),0 0 78px rgba(93,233,172,.26); }
.teacher-portrait.thinking::after { border-color:rgba(142,117,255,.5); box-shadow:inset 0 0 40px rgba(142,117,255,.11),0 0 72px rgba(142,117,255,.22); }
.teacher-portrait.celebrating::after { border-color:rgba(255,212,92,.7); box-shadow:inset 0 0 45px rgba(255,212,92,.14),0 0 90px rgba(255,212,92,.34); }
.teacher-portrait.switching { opacity:0; transform:translate3d(var(--look-x),calc(var(--look-y) + 8px),0) scale(.965); }
.mouth-pulse { position:absolute; z-index:3; left:50%; bottom:9%; height:24px; display:flex; align-items:center; gap:3px; padding:6px 9px; border-radius:999px; background:rgba(4,12,35,.68); backdrop-filter:blur(8px); transform:translateX(-50%); opacity:0; transition:opacity .2s; }
.teacher-portrait.speaking .mouth-pulse { opacity:1; }.mouth-pulse span { width:3px; height:6px; border-radius:3px; background:var(--cyan); animation:voiceBar .6s ease-in-out infinite alternate; }.mouth-pulse span:nth-child(2),.mouth-pulse span:nth-child(4){animation-delay:.2s}.mouth-pulse span:nth-child(3){animation-delay:.35s}
.animation-badge { position:absolute; z-index:6; top:5%; right:2%; padding:7px 9px 7px 19px; border:1px solid rgba(255,255,255,.16); border-radius:999px; color:#b7c9ed; background:rgba(6,15,40,.58); backdrop-filter:blur(9px); font-size:7px; font-weight:900; letter-spacing:.9px; text-transform:uppercase; }
.animation-badge::before { content:""; position:absolute; left:8px; top:50%; width:5px; height:5px; margin-top:-2.5px; border-radius:50%; background:var(--mint); box-shadow:0 0 9px var(--mint); }
.caption-card { position:absolute; z-index:5; left:50%; bottom:22px; width:min(640px,calc(100% - 44px)); padding:14px 18px; border:1px solid rgba(160,197,255,.22); border-radius:17px; background:rgba(6,15,41,.82); backdrop-filter:blur(16px); text-align:center; transform:translateX(-50%); box-shadow:0 16px 40px rgba(0,5,28,.3); }
.caption-card p { margin:0; font:800 14px/1.45 "Nunito"; }.caption-card small { display:block; margin-top:5px; color:#91a5cb; font-size:9px; }
.caption-card .caption-phonetic { margin-top:4px; color:var(--cyan); font:700 12px/1.4 "Nunito"; letter-spacing:.01em; opacity:.92; }
.practice-result { position:absolute; left:50%; bottom:132px; z-index:5; width:min(600px,calc(100% - 44px)); transform:translateX(-50%); text-align:center; pointer-events:none; animation:resultIn .28s ease; }
.practice-result b { display:block; color:#8fe6b8; font:900 16px/1.3 "Nunito"; text-shadow:0 2px 14px rgba(93,233,172,.35); }
.practice-result span { display:block; margin-top:5px; color:#dbe6fc; font-size:13px; font-style:italic; }
@keyframes resultIn { from { opacity:0; transform:translate(-50%,6px); } to { opacity:1; transform:translate(-50%,0); } }
@media (max-width:900px){ .practice-result { bottom:116px; } .practice-result b { font-size:14px; } }
.fav-toggle { position:absolute; top:-14px; right:-6px; width:34px; height:34px; display:grid; place-items:center; border:0; border-radius:0; background:none; box-shadow:none; color:#8593b3; font-size:24px; line-height:1; cursor:pointer; z-index:9; transition:color .2s ease,transform .15s ease; }
.fav-toggle:hover { color:#aab6d4; transform:scale(1.12); }
.fav-toggle.on { color:#e0607a; }
.fav-toggle.on:hover { color:#e87389; transform:scale(1.12); }
.fav-section { margin-top:14px; padding-top:14px; border-top:1px solid rgba(255,255,255,.08); }
.fav-section-title { display:block; margin-bottom:7px; color:#8593b3; font-size:9px; font-weight:900; letter-spacing:.16em; text-transform:uppercase; }
.fav-practice { display:flex; align-items:center; gap:9px; width:100%; padding:12px 13px; border:1px solid rgba(224,96,122,.35); border-radius:13px; background:rgba(224,96,122,.08); color:#e7edfb; font:inherit; font-size:12px; font-weight:800; text-align:left; cursor:pointer; transition:background .2s ease,border-color .2s ease,transform .1s ease; }
.fav-practice:hover { background:rgba(224,96,122,.16); border-color:rgba(224,96,122,.6); }
.fav-practice:active { transform:scale(.99); }
.fav-practice .fp-heart { color:#e0607a; font-size:16px; line-height:1; }
.fav-practice .fp-label { flex:1; }
.fav-practice .fp-count { min-width:22px; padding:2px 7px; border-radius:999px; background:rgba(224,96,122,.22); color:#ffc2ce; font-size:11px; font-weight:900; text-align:center; }
.fav-practice.active { background:linear-gradient(120deg,rgba(224,96,122,.9),rgba(232,115,137,.9)); border-color:#ffd0dc; color:#fff; box-shadow:0 8px 22px rgba(224,96,122,.28); }
.fav-practice.active .fp-heart { color:#fff; }
.fav-practice.active .fp-count { background:rgba(255,255,255,.28); color:#fff; }
/* Membership gate */
.member-gate { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:20px; background:radial-gradient(circle at 30% 10%, rgba(85,215,223,.14), transparent 40%), rgba(4,9,26,.92); backdrop-filter:blur(10px); }
.member-card { width:min(440px,94vw); padding:30px 28px; border:1px solid rgba(160,197,255,.2); border-radius:22px; background:linear-gradient(160deg,#0b1836,#0a1430); box-shadow:0 30px 80px rgba(0,3,20,.6); text-align:center; }
.member-brand { display:inline-flex; align-items:center; gap:9px; margin-bottom:14px; }
.member-brand span { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:linear-gradient(135deg,#ffd86a,#ffa95e); color:#071431; font-weight:1000; }
.member-brand strong { font-size:16px; color:#eaf1ff; }
.member-card h1 { margin:0 0 8px; font-size:20px; line-height:1.25; color:#fff; }
.member-sub { margin:0 0 20px; color:#aab8dc; font-size:12.5px; line-height:1.55; }
.member-form { display:grid; gap:12px; text-align:left; }
.member-form label { display:grid; gap:5px; color:#c5d1ec; font-size:11px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.member-form input { padding:12px 13px; border:1px solid rgba(160,197,255,.24); border-radius:12px; background:rgba(255,255,255,.05); color:#fff; font-size:14px; }
.member-form input:focus { outline:none; border-color:var(--cyan); box-shadow:0 0 0 3px rgba(85,215,223,.18); }
.member-start { margin-top:4px; padding:14px; border:0; border-radius:13px; background:linear-gradient(110deg,var(--cyan),var(--gold)); color:#071431; font-size:14px; font-weight:1000; cursor:pointer; }
.member-start:hover { filter:brightness(1.05); }
.member-cta { display:grid; gap:10px; }
a.member-start { display:block; text-align:center; text-decoration:none; }
.member-guest { padding:11px; border:1px solid rgba(160,197,255,.2); border-radius:12px; background:transparent; color:#aab8dc; font-size:12px; font-weight:800; cursor:pointer; }
.member-guest:hover { background:rgba(255,255,255,.05); color:#eaf1ff; }
.member-error { margin:2px 0 0; color:#ff9bb0; font-size:12px; font-weight:800; }
.member-trust { margin:16px 0 0; color:#8392b8; font-size:10.5px; line-height:1.5; }
.member-chip { display:inline-flex; align-items:center; gap:8px; padding:6px 8px 6px 12px; border:1px solid rgba(160,197,255,.22); border-radius:999px; background:rgba(255,255,255,.05); }
.member-chip b { color:#eaf1ff; font-size:12px; font-weight:900; }
.member-chip-stars { color:var(--gold); font-size:11px; font-weight:900; }
.member-chip button { padding:5px 10px; border:1px solid rgba(255,255,255,.16); border-radius:999px; background:rgba(255,255,255,.04); color:#c9d5f2; font-size:10px; font-weight:800; cursor:pointer; }
.member-chip button:hover { background:rgba(255,255,255,.1); }
.level-badge { display:inline-flex; align-items:center; padding:6px 12px; border:1px solid rgba(120,220,170,.4); border-radius:999px; background:rgba(120,220,170,.12); color:#8fe6b8; font-size:10px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.level-badge.beginner { border-color:rgba(120,220,170,.45); background:rgba(120,220,170,.14); color:#8fe6b8; }
.level-badge.intermediate { border-color:rgba(120,200,255,.45); background:rgba(120,200,255,.14); color:#9cc9ff; }
.level-badge.advanced { border-color:rgba(200,160,255,.45); background:rgba(200,160,255,.14); color:#c7abff; }
.listen-state { position:absolute; z-index:6; top:20px; left:50%; padding:10px 14px; display:flex; align-items:center; gap:10px; border-radius:999px; color:#c7ffe6; background:rgba(23,111,82,.5); backdrop-filter:blur(12px); transform:translateX(-50%); font-size:9px; letter-spacing:.7px; text-transform:uppercase; }
.listen-state span { width:10px; height:10px; border-radius:50%; background:var(--mint); box-shadow:0 0 0 0 rgba(93,233,172,.6); animation:listening 1.2s infinite; }
[hidden] { display:none!important; }
.lesson-console { padding:20px clamp(18px,3vw,42px) 25px; border-top:1px solid var(--line); background:rgba(8,20,50,.83); }
.lesson-progress { margin-bottom:14px; display:grid; grid-template-columns:160px 1fr auto; align-items:center; gap:15px; }
.lesson-progress span,.lesson-progress strong { display:block; }.lesson-progress span { color:#778bb5; font-size:8px; font-weight:900; letter-spacing:1px; text-transform:uppercase; }.lesson-progress strong { margin-top:3px; font-size:11px; }
.progress-track { height:7px; overflow:hidden; border-radius:99px; background:rgba(255,255,255,.08); }.progress-track i { display:block; width:0; height:100%; border-radius:99px; background:linear-gradient(90deg,var(--cyan),var(--mint)); transition:width .45s ease; }
.lesson-progress>b { color:var(--sun); font-size:15px; letter-spacing:4px; }
.class-controls { display:grid; grid-template-columns:1.2fr .7fr 1fr 1fr .7fr; gap:9px; }
.class-controls button { min-height:58px; padding:10px 14px; border:1px solid var(--line); border-radius:17px; display:flex; align-items:center; justify-content:center; gap:9px; color:#dbe6fc; background:rgba(255,255,255,.04); font-size:10px; font-weight:850; }
.class-controls button>span { font-size:16px; }.class-controls button strong,.class-controls button small { display:block; }.class-controls button small { margin-top:2px; opacity:.63; font-size:8px; }
.class-controls .begin-button { color:#172553; border:0; background:linear-gradient(135deg,#ffd45c,#ff9f59); box-shadow:0 8px 24px rgba(255,178,78,.22); }.class-controls .begin-button>span { width:32px; height:32px; display:grid; place-items:center; border-radius:50%; background:rgba(255,255,255,.5); font-size:10px; }
.class-controls .speak-button:not(:disabled) { border-color:rgba(93,233,172,.3); background:rgba(93,233,172,.09); }.class-controls button:disabled { opacity:.38; cursor:not-allowed; }
.class-controls .back-button:not(:disabled) { border-color:rgba(160,197,255,.28); background:rgba(160,197,255,.06); }
.class-controls .speak-button.flash:not(:disabled), .class-controls .next-button.flash:not(:disabled) { color:#eafff5; border-color:rgba(93,233,172,.85); animation:speakFlash 1.05s ease-in-out infinite; }
@keyframes speakFlash { 0%,100% { background:rgba(93,233,172,.12); box-shadow:0 0 0 0 rgba(93,233,172,0); } 50% { background:rgba(93,233,172,.34); box-shadow:0 0 18px 3px rgba(93,233,172,.5); } }
@media (prefers-reduced-motion:reduce) { .class-controls .speak-button.flash:not(:disabled), .class-controls .next-button.flash:not(:disabled) { animation:none; background:rgba(93,233,172,.3); } }
.class-feedback { min-height:18px; margin:12px 0 0; color:#899dc6; font-size:10px; text-align:center; }
.mic-check { margin:8px 0 0; text-align:center; }
.said-it-btn { display:inline-block; margin:0 0 8px; padding:11px 20px; border:0; border-radius:14px; background:linear-gradient(110deg,var(--cyan),#6fe0a6); color:#08243a; font:inherit; font-size:12px; font-weight:900; letter-spacing:.02em; cursor:pointer; box-shadow:0 10px 24px rgba(85,215,223,.22); animation:saidItIn .25s ease; }
.said-it-btn:hover { filter:brightness(1.05); }
@keyframes saidItIn { from{ opacity:0; transform:translateY(4px); } to{ opacity:1; transform:none; } }
.mic-test-link { appearance:none; border:0; background:none; padding:4px 8px; color:#6f83ab; font:inherit; font-size:9px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; opacity:.72; cursor:pointer; border-radius:999px; transition:opacity .2s ease,color .2s ease; }
.mic-test-link:hover { opacity:1; color:var(--cyan); }
.mic-test-link.attention { opacity:1; color:var(--cyan); animation:micPulse 1.6s ease-in-out infinite; }
@keyframes micPulse { 0%,100%{ box-shadow:0 0 0 0 rgba(85,215,223,0); } 50%{ box-shadow:0 0 0 4px rgba(85,215,223,.14); } }
.mic-test-result { min-height:14px; margin:6px 0 0; color:#9fb0d4; font-size:10px; line-height:1.5; text-align:center; }
.mic-test-result.ok { color:#6fe0a6; }
.mic-test-result.warn { color:#ffd86a; }
.mic-test-result b { color:#eaf1ff; }
.mic-meter { display:inline-block; width:130px; height:8px; margin-top:6px; border-radius:999px; background:rgba(255,255,255,.08); overflow:hidden; vertical-align:middle; }
.mic-meter i { display:block; height:100%; width:0%; border-radius:999px; background:linear-gradient(90deg,var(--cyan),#6fe0a6); transition:width .08s linear; }
.future-note { margin:75px auto; max-width:1160px; padding:40px; display:grid; grid-template-columns:auto 1.4fr 1fr; gap:28px; align-items:center; }
.future-note>span { width:82px; height:82px; display:grid; place-items:center; border:1px solid rgba(90,220,240,.24); border-radius:26px; color:var(--cyan); background:rgba(73,216,239,.08); font-size:31px; box-shadow:inset 0 0 25px rgba(73,216,239,.08); }
.future-note>div>p:first-child { margin:0 0 8px; color:var(--cyan); font-size:8px; font-weight:950; letter-spacing:1.5px; text-transform:uppercase; }.future-note h2 { margin:0 0 10px; font:900 clamp(26px,3vw,38px)/1.05 "Nunito"; letter-spacing:-1px; }.future-note p:last-child { margin:0; color:#8fa1c5; font-size:11px; line-height:1.7; }
.future-features { display:grid; grid-template-columns:1fr 1fr; gap:8px; }.future-features span { padding:12px; border:1px solid var(--line); border-radius:13px; color:#afbfdd; background:rgba(255,255,255,.03); font-size:9px; font-weight:750; }
.class-footer { padding:30px clamp(22px,5vw,70px); display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:20px; border-top:1px solid var(--line); color:#788aae; }
.class-footer a { display:flex; align-items:center; gap:9px; color:white; text-decoration:none; font:900 15px "Nunito"; }.class-footer a span { width:34px;height:34px;border-radius:11px;font-size:11px}.class-footer p { font-size:10px; }.class-footer small { justify-self:end; font-size:8px; text-transform:uppercase; letter-spacing:1px; }
.help-overlay { position:fixed; z-index:100; inset:0; padding:20px; display:grid; place-items:center; background:rgba(2,8,24,.78); backdrop-filter:blur(14px); }.help-overlay>section { width:min(600px,100%); max-height:calc(100dvh - 30px); overflow:auto; position:relative; padding:38px; border:1px solid rgba(164,199,255,.2); border-radius:28px; background:linear-gradient(145deg,#12224c,#0b1736); box-shadow:0 35px 90px rgba(0,0,0,.45); }
.help-overlay>section>button { position:absolute; top:16px; right:16px; width:36px; height:36px; border:1px solid var(--line); border-radius:50%; color:white; background:rgba(255,255,255,.05); font-size:23px; }.help-overlay>section>p:first-of-type { margin:0;color:var(--cyan);font-size:8px;font-weight:950;letter-spacing:1.5px;text-transform:uppercase}.help-overlay h2{margin:8px 40px 22px 0;font:900 31px/1.05 "Nunito"}.help-overlay ol{list-style:none;padding:0;margin:0;display:grid;gap:9px}.help-overlay li{padding:13px;border:1px solid var(--line);border-radius:15px;display:grid;grid-template-columns:31px 1fr;gap:12px;align-items:center;background:rgba(255,255,255,.03)}.help-overlay li>span{width:31px;height:31px;display:grid;place-items:center;border-radius:10px;color:#17234c;background:var(--sun);font-weight:950}.help-overlay strong,.help-overlay small{display:block}.help-overlay strong{font-size:11px}.help-overlay small{margin-top:3px;color:#8799bd;font-size:9px;line-height:1.45}.help-privacy{margin:20px 0 0!important;padding-top:17px;border-top:1px solid var(--line);color:#8799bd!important;font-size:9px!important;line-height:1.6}
@keyframes slowOrbit { to { transform:rotate(360deg); } }
@keyframes teacherIdle {
  0%,100% { transform:translate3d(-1px,4px,0) rotate(-.6deg) scale(1); }
  28% { transform:translate3d(2px,-4px,0) rotate(.18deg) scale(1.009); }
  57% { transform:translate3d(0,-9px,0) rotate(.72deg) scale(1.018); }
  78% { transform:translate3d(-2px,-2px,0) rotate(-.12deg) scale(1.01); }
}
@keyframes teacherSpeak {
  0%,100% { transform:translate3d(calc(-1px + var(--speech-shift)),2px,0) rotate(calc(var(--speech-tilt) - .35deg)) scale(1.01); }
  34% { transform:translate3d(calc(2px + var(--speech-shift)),-6px,0) rotate(calc(var(--speech-tilt) + .45deg)) scale(1.024); }
  68% { transform:translate3d(calc(-1px + var(--speech-shift)),-2px,0) rotate(calc(var(--speech-tilt) - .16deg)) scale(1.016); }
}
@keyframes teacherListen { 0%,100%{transform:translateY(2px) rotate(-.25deg) scale(1.018)}50%{transform:translateY(-3px) rotate(.25deg) scale(1.028)} }
@keyframes teacherThink { 0%,100%{transform:translate3d(-3px,1px,0) rotate(-1deg) scale(1.01)}50%{transform:translate3d(3px,-4px,0) rotate(1deg) scale(1.018)} }
@keyframes teacherCelebrate { 0%{transform:translateY(2px) scale(1)}45%{transform:translateY(-15px) rotate(1.2deg) scale(1.045)}100%{transform:translateY(0) rotate(-.5deg) scale(1.012)} }
@keyframes faceShimmer {
  0%,72% { transform:translateX(-85%); opacity:0; }
  82% { opacity:1; }
  92%,100% { transform:translateX(85%); opacity:0; }
}
@keyframes voiceBar { to { height:17px; background:var(--violet); } }
@keyframes listening { 70% { box-shadow:0 0 0 13px rgba(93,233,172,0); } }

@media(max-width:900px){
  .class-shell{grid-template-columns:minmax(0,1fr)}.teacher-drawer{border-right:0;border-bottom:1px solid var(--line);padding:18px}.drawer-heading{display:none}.teacher-list{max-width:100%;display:flex;overflow:auto;padding-bottom:3px;scrollbar-width:none}.teacher-choice{min-width:68px;width:68px;display:flex;flex-direction:column;gap:5px;padding:6px}.teacher-choice img{width:54px;height:54px;border-radius:16px}.teacher-choice span small,.teacher-choice i{display:none!important}.teacher-choice span strong{font-size:9px;text-align:center}.teacher-choice.selected{box-shadow:inset 0 -3px var(--cyan)}.class-options{margin-top:13px;padding-top:13px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.class-stage{min-height:800px}.teacher-viewport{min-height:470px}.teacher-portrait{width:min(58vw,420px)}.future-note{grid-template-columns:auto 1fr;padding:25px}.future-features{grid-column:1/-1}
}
@media(max-width:620px){
  .class-header{height:66px;padding:0 13px;grid-template-columns:1fr auto}.privacy-note{display:none}.class-header nav button{display:none}.class-header nav a{padding:8px 10px}.class-brand>span{width:36px;height:36px;border-radius:12px}.class-brand strong{font-size:15px}.curriculum-badge{display:none}
  .teacher-drawer{padding:12px}.class-options select{padding:10px 8px;font-size:10px}.class-stage{grid-template-rows:auto minmax(410px,1fr) auto}.stage-topbar{min-height:58px;padding:9px 13px}.stage-topbar>div:first-child{gap:7px}.stage-topbar p{font-size:9px}.live-badge{padding:6px 8px;font-size:7px}.session-status>span,#endClass{display:none}.teacher-viewport{min-height:430px}.teacher-portrait{width:min(83vw,390px)}.ambient-ring{width:115vw}.ring-two{width:140vw}.caption-card{bottom:15px;width:calc(100% - 24px);padding:12px}.caption-card p{font-size:12px}.lesson-console{padding:13px 12px 18px}.lesson-progress{grid-template-columns:105px 1fr auto;gap:9px}.lesson-progress span{font-size:6px}.lesson-progress strong{font-size:9px}.lesson-progress>b{font-size:11px;letter-spacing:2px}.class-controls{grid-template-columns:1fr 1fr}.class-controls button{min-height:54px;padding:8px 6px;flex-direction:column;gap:3px}.class-controls .begin-button{grid-column:1/-1;flex-direction:row}.next-button{grid-column:auto}.class-controls button strong{font-size:9px}.class-controls button small{display:none}.class-feedback{font-size:9px}.future-note{margin:45px 0;padding:24px 18px;grid-template-columns:1fr;text-align:center}.future-note>span{margin:auto}.future-features{grid-column:auto}.class-footer{grid-template-columns:1fr;text-align:center;justify-items:center}.class-footer small{justify-self:center}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}.teacher-video{transition:none}}

/* Emoji-avatar teachers (placeholders until portrait photos are added) — v1.49cz */
.teacher-choice .avatar-emoji { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; font-size:26px; background:linear-gradient(135deg,rgba(54,187,222,.22),rgba(120,91,236,.18)); border:1px solid rgba(255,255,255,.08); }
.portrait-emoji { position:absolute; inset:0; display:none; place-items:center; font-size:clamp(90px,22vw,168px); z-index:3; filter:drop-shadow(0 12px 26px rgba(0,0,0,.55)); pointer-events:none; }
.teacher-portrait.emoji-teacher .portrait-emoji { display:grid; }
.teacher-portrait.emoji-teacher .face-rig { opacity:0; }

/* Coming-soon teachers: still passport image + tag (video/animation pending) — v1.49cz */
.teacher-choice { position:relative; }
.teacher-choice .avatar-photo { width:48px; height:48px; object-fit:cover; object-position:center; border-radius:14px; }
.teacher-choice .soon-dot { position:absolute; left:40px; top:6px; font-size:7px; font-weight:1000; letter-spacing:.06em; text-transform:uppercase; color:#241a00; background:linear-gradient(135deg,#ffd45c,#ffb03a); padding:1px 4px; border-radius:6px; }
.teacher-portrait.coming-soon .mouth-pulse { display:none; }
.teacher-portrait.coming-soon .animation-badge { background:linear-gradient(135deg,#ffd45c,#ffb03a); color:#241a00; }
