
:root{
  --bg:#f8f7ff; --card:#fff; --ink:#1f2340; --muted:#66708e;
  --purple:#6b5cf6; --purple2:#8d72ff; --blue:#4fb3ff; --pink:#ff7cc1;
  --green:#1dbb7a; --yellow:#ffd166; --red:#ff6b6b;
  --line:#e9e7f6; --shadow:0 14px 36px rgba(56,52,96,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-rounded,"SF Pro Rounded","Nunito",system-ui,-apple-system,sans-serif;
background:radial-gradient(circle at 10% 0%,#eee8ff 0,transparent 30%),radial-gradient(circle at 90% 8%,#e1f6ff 0,transparent 29%),var(--bg);color:var(--ink)}
button,select{font:inherit}button{cursor:pointer}
a{color:inherit}
.wrap{max-width:1180px;margin:auto;padding:18px}
.topbar{display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);padding:12px 16px;border-radius:24px;box-shadow:var(--shadow);position:sticky;top:12px;z-index:20}
.brand{display:flex;align-items:center;gap:10px;font-weight:950;font-size:20px;text-decoration:none;white-space:nowrap}
.brand img{width:48px;height:48px;border-radius:16px;object-fit:cover}
.nav{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex:1;flex-wrap:wrap}
.nav a{padding:9px 11px;border-radius:13px;text-decoration:none;font-weight:850;color:var(--muted)}
.nav a.active{background:#eeeaff;color:var(--purple)}
.hero{margin-top:22px;border-radius:34px;padding:34px;background:linear-gradient(135deg,#7158f5 0%,#8d72ff 45%,#52b8ff 100%);color:white;box-shadow:var(--shadow);overflow:hidden;position:relative}
.hero:after{content:"🌍";position:absolute;font-size:210px;right:18px;top:-55px;opacity:.10}
.hero-inner{position:relative;z-index:2;display:flex;gap:30px;align-items:center}
.hero-copy{flex:1}.eyebrow{font-weight:950;letter-spacing:.04em;opacity:.95}
.hero h1{font-size:clamp(34px,5.4vw,58px);line-height:1.02;margin:8px 0 14px;max-width:760px}
.hero p{font-size:18px;line-height:1.6;max-width:790px;margin:0;opacity:.96}
.hero-mascot{width:min(260px,31vw);filter:drop-shadow(0 17px 28px rgba(0,0,0,.18))}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.btn{border:0;border-radius:16px;padding:12px 16px;font-weight:950;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn.white{background:#fff;color:var(--purple)}
.btn.glass{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.36);color:#fff}
.btn.purple{background:var(--purple);color:#fff}
.btn.soft{background:#f0edff;color:var(--purple)}
.btn.green{background:#e7fff4;color:#0b8455}
.section{margin-top:28px}
.section h2{font-size:28px;margin:0 0 8px}
.lead{color:var(--muted);line-height:1.6;margin:0 0 16px}
.card{background:var(--card);border:1px solid rgba(110,100,170,.09);border-radius:24px;padding:20px;box-shadow:var(--shadow)}
.method-grid,.lang-grid,.grade-grid,.lesson-grid{display:grid;gap:15px}
.method-grid{grid-template-columns:repeat(5,1fr)}
.method-card{text-align:center;min-height:144px}
.method-card .ico{font-size:34px}.method-card b{display:block;margin-top:8px}.method-card span{display:block;color:var(--muted);font-size:13px;line-height:1.45;margin-top:5px}
.lang-grid{grid-template-columns:repeat(3,1fr)}
.lang-card{position:relative;overflow:hidden;min-height:200px}
.lang-card:after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;right:-38px;bottom:-45px;background:var(--wash,#f0edff)}
.flag{font-size:44px}.lang-card h3{font-size:24px;margin:8px 0 5px}.lang-card p{color:var(--muted);line-height:1.5}
.lang-card.active{outline:3px solid #d9d1ff}
.pills{display:flex;gap:8px;flex-wrap:wrap}
.pillbtn{border:1px solid #e6e3f5;background:#fff;color:#566083;padding:10px 14px;border-radius:999px;font-weight:900}
.pillbtn.active{background:var(--purple);border-color:var(--purple);color:#fff}
.pillbtn.locked{opacity:.66}
.status-row{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}
.progress-shell{flex:1;min-width:220px}
.progress-label{display:flex;justify-content:space-between;font-weight:850;font-size:14px;color:var(--muted);margin-bottom:7px}
.progress{height:11px;background:#ecebf6;border-radius:999px;overflow:hidden}.progress i{height:100%;display:block;width:0;background:linear-gradient(90deg,var(--purple),var(--blue));border-radius:inherit}
.lesson-grid{grid-template-columns:repeat(5,1fr)}
.day-card{border:0;text-align:left;padding:16px;background:#fff;border-radius:20px;box-shadow:0 9px 22px rgba(56,52,96,.08);border:1px solid var(--line);min-height:140px;transition:.18s}
.day-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.day-card.done{background:#effff7;border-color:#a8ebcb}.day-card.selected{outline:3px solid #cfc6ff}
.day-card .dtop{display:flex;justify-content:space-between;align-items:center}.daynum{font-weight:950;color:var(--purple);font-size:13px}.dayicon{font-size:30px}
.day-card h3{font-size:16px;margin:8px 0 0;line-height:1.25}.donecheck{font-size:13px;color:#0b8455;font-weight:950;margin-top:10px}
.lesson-player{display:none;margin-top:22px}.lesson-player.show{display:block}
.player-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.player-title-wrap{display:flex;gap:14px;align-items:center}.player-icon{font-size:50px}.player-head h2{margin:0;font-size:30px}.player-head p{margin:4px 0 0;color:var(--muted)}
.scene{margin:18px 0;background:linear-gradient(135deg,#faf6ff,#effaff);border:1px solid #e8e5fa;border-radius:24px;padding:22px;display:flex;justify-content:center;align-items:center;gap:17px;font-size:46px;min-height:120px;position:relative;overflow:hidden}
.scene span{filter:drop-shadow(0 7px 8px rgba(50,45,90,.1))}
.scene .arrow{font-size:21px;color:#a69dd9}
.listenbar{display:flex;gap:9px;flex-wrap:wrap;margin:15px 0}
.listenbar button{border:0;padding:10px 13px;border-radius:13px;font-weight:900;background:#f0edff;color:var(--purple)}
.listenbar button.slow{background:#eef9ff;color:#2d77a0}
.lines{display:grid;gap:9px}
.line{border:1px solid var(--line);border-radius:16px;padding:13px 14px;background:#fff;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center}
.line .n{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#eeeaff;color:var(--purple);font-weight:950}
.target{font-size:18px;font-weight:850;line-height:1.4}.translation{font-size:14px;color:var(--muted);margin-top:4px;display:none}.translations-on .translation{display:block}
.speak{border:0;background:#f5f4fb;width:36px;height:36px;border-radius:11px}
.twocol{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:15px}
.info{background:#fffdf2;border:1px solid #f1df9f}.mission{background:#f0faff;border:1px solid #bfe7fa}
.info h3,.mission h3,.vocab h3,.talk h3,.recall h3{margin-top:0}
.info p,.mission p{line-height:1.55;color:#4f5874;margin-bottom:0}
.vocab{margin-top:15px}.vocabrow{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.word{padding:13px;background:#f7f6ff;border-radius:14px}.word b{display:block}.word span{font-size:13px;color:var(--muted)}
.talk{margin-top:15px;background:linear-gradient(135deg,#fff,#f9f6ff)}
.chatline{display:flex;gap:10px;margin:10px 0;align-items:flex-start}.avatar{width:38px;height:38px;border-radius:13px;background:#eeeaff;display:grid;place-items:center;font-size:20px;flex:none}.bubble{background:#f5f4fb;border-radius:15px;padding:11px 13px;font-weight:800;line-height:1.45}
.recall{margin-top:15px}.quiz-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.qopt{border:2px solid var(--line);background:#fff;border-radius:14px;padding:12px;font-weight:850}.qopt:hover{border-color:#bbb0ff}.qopt.correct{background:#eafff2;border-color:#61d797;color:#0b7047}.qopt.wrong{background:#fff0f0;border-color:#ff9d9d;color:#9f3030}
.quiz-feedback{display:none;margin-top:10px;padding:11px 13px;border-radius:13px;background:#f5f4fb;font-weight:800}.quiz-feedback.show{display:block}
.finish-row{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-top:16px}
.complete-btn{border:0;border-radius:15px;background:var(--green);color:#fff;padding:12px 16px;font-weight:950}
.complete-btn.done{background:#e7fff4;color:#0b8455}
.notice{display:none}.notice.show{display:block}.coming{background:#fff9e8;border:1px solid #f3dc91}
.sources{font-size:14px;line-height:1.65;color:var(--muted)}
.sources a{color:var(--purple);font-weight:800}
footer{text-align:center;color:#858ba1;padding:38px 10px 20px;font-size:13px;line-height:1.6}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:950px){.method-grid{grid-template-columns:repeat(3,1fr)}.lesson-grid{grid-template-columns:repeat(4,1fr)}.hero-inner{flex-direction:column;align-items:flex-start}.hero-mascot{width:210px;align-self:center}}
@media(max-width:760px){.topbar{flex-wrap:wrap}.nav{order:3;width:100%;justify-content:flex-start;overflow:auto;flex-wrap:nowrap}.lang-grid,.twocol{grid-template-columns:1fr}.method-grid{grid-template-columns:repeat(2,1fr)}.lesson-grid{grid-template-columns:repeat(3,1fr)}.vocabrow,.quiz-options{grid-template-columns:1fr}.hero{padding:25px}.line{grid-template-columns:auto 1fr}.speak{grid-column:2}}
@media(max-width:520px){.wrap{padding:10px}.brand span{display:none}.lesson-grid{grid-template-columns:repeat(2,1fr)}.method-grid{grid-template-columns:1fr}.hero h1{font-size:36px}.scene{font-size:38px;gap:10px}.player-head h2{font-size:25px}}
