/* FLYER Primary English — responsive; phone first, wider screens get more columns. */
:root{--ink:#2A1A55;--sub:#6E6390;--ac:#8B4FE0;--t1:#E6DCFF;--t2:#FBF8FF}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;background:#F6F2FF;color:var(--ink);font-family:'Open Sans',system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased}
body{min-height:100vh;background:radial-gradient(600px 200px at 10% 0%,#FFFFFF 0%,transparent 70%),linear-gradient(180deg,#EFE7FF 0%,#FBF8FF 420px)}
body.playing{overflow:hidden}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;padding:0}
img{display:block}
svg{display:block}
.wrap{max-width:1080px;margin:0 auto;padding:12px 16px 40px}
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;padding:10px 16px;background:rgba(255,255,255,.88);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 1px 0 rgba(42,26,85,.08)}
.top .brand{display:flex;align-items:center;gap:6px}.top .brand img{width:40px;height:40px;object-fit:contain}.top .brand b{font:800 20px 'Baloo 2',sans-serif;color:#7A3FC1}
.top .bk{width:42px;height:42px;border-radius:14px;background:#fff;box-shadow:0 3px 0 rgba(42,26,85,.12);display:flex;align-items:center;justify-content:center;color:var(--ac);flex:none}.top .bk svg{width:24px;height:24px}
.top .tt{flex:1;min-width:0}.top .tt b{display:block;font:800 19px/1.15 'Baloo 2',sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top .tt span{display:block;font-size:12.5px;font-weight:700;color:var(--sub)}
.coins{display:flex;align-items:center;gap:5px;background:#fff;border-radius:999px;padding:5px 12px 5px 6px;box-shadow:0 3px 0 rgba(42,26,85,.1);font-weight:800;flex:none}.coins svg{width:24px;height:24px}
.h2{font:800 20px 'Baloo 2',sans-serif;margin:22px 2px 10px}
.hero{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#7B4DFF,#B05BE8);color:#fff;border-radius:26px;padding:18px 18px 18px 22px;margin:6px 0 16px;overflow:hidden}
.hero h1{margin:0;font:800 28px/1.15 'Baloo 2',sans-serif}.hero p{margin:6px 0 0;font-weight:600;opacity:.92}
.hero img{width:130px;flex:none;margin:-10px -6px -26px 0}
.levels{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.lvl{position:relative;display:flex;flex-direction:column;gap:3px;background:linear-gradient(160deg,var(--t1),var(--t2));border-radius:24px;padding:18px;box-shadow:0 8px 24px rgba(42,26,85,.08);border:2px solid #fff}
.lvl .cefr{align-self:flex-start;font:800 12px 'Open Sans',sans-serif;color:#fff;background:var(--ac);border-radius:999px;padding:3px 10px}
.lvl b{font:800 30px/1.1 'Baloo 2',sans-serif;margin-top:4px}
.lvl .gr{font-weight:700;color:var(--sub)}
.lvl .em{font-size:30px;letter-spacing:4px;margin:6px 0}
.lvl .meta{font-size:13.5px;font-weight:700}
.pb{display:block;height:9px;border-radius:6px;background:rgba(42,26,85,.1);overflow:hidden;margin-top:6px}.pb i{display:block;height:100%;background:var(--ac);border-radius:6px}
.pg{display:flex;align-items:center;gap:4px;font-size:12.5px;font-weight:800;color:var(--sub)}.pg svg{width:15px;height:15px;color:#F5B915}
.lvl .go{position:absolute;right:16px;bottom:16px;background:var(--ac);color:#fff;font-weight:800;border-radius:14px;padding:9px 18px;box-shadow:0 3px 0 rgba(0,0,0,.18)}
.team{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.team figure{margin:0;background:#fff;border-radius:20px;padding:10px 6px;text-align:center;box-shadow:0 4px 14px rgba(42,26,85,.06)}
.team img{width:76px;height:76px;object-fit:contain;margin:0 auto}
.team figcaption{font-size:12.5px;font-weight:700;color:var(--sub)}.team figcaption b{display:block;color:var(--ink);font-size:15px}
.foot{margin:26px 0 0;text-align:center;color:var(--sub);font-size:13px;font-weight:600}.foot a{color:#7A3FC1;text-decoration:underline}
.units{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.ucard{display:flex;flex-direction:column;gap:4px;background:#fff;border-radius:22px;padding:14px;box-shadow:0 6px 18px rgba(42,26,85,.07);border:2px solid transparent}
.ucard.started{border-color:var(--t1)}
.ucard .un{font-size:12px;font-weight:800;color:var(--ac);text-transform:uppercase;letter-spacing:.5px}
.ucard .ue{font-size:46px;line-height:1.1}
.ucard b{font:800 19px/1.2 'Baloo 2',sans-serif}
.ucard .uw{font-size:20px;letter-spacing:2px;min-height:28px}
.dot{display:inline-block;width:18px;height:18px;border-radius:50%;vertical-align:-3px;box-shadow:inset 0 0 0 1.5px rgba(0,0,0,.1)}
.uhero{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,var(--t1),var(--t2));border-radius:24px;padding:14px 16px;border:2px solid #fff;box-shadow:0 6px 18px rgba(42,26,85,.07);overflow:hidden}
.uhero .bige{font-size:58px;line-height:1}
.uhero div{flex:1;min-width:0}.uhero b{font:800 26px/1.15 'Baloo 2',sans-serif}.uhero p{margin:2px 0 0;color:var(--sub);font-weight:700}
.uhero img{width:96px;flex:none;margin:-8px -6px -20px 0}
.words{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.wchip{display:flex;align-items:center;gap:7px;background:#fff;border-radius:999px;padding:5px 14px 5px 6px;box-shadow:0 3px 0 rgba(42,26,85,.08);font-weight:700}
.wchip .we{font-size:26px;line-height:1}.wchip img{width:30px;height:30px;object-fit:contain}.wchip .dot{width:26px;height:26px}
.wchip:active{transform:translateY(2px)}
.lessons{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(310px,1fr))}
.lcard{display:flex;align-items:center;gap:12px;background:#fff;border-radius:22px;padding:10px 14px 10px 10px;box-shadow:0 6px 18px rgba(42,26,85,.07)}
.lcard img{width:62px;height:62px;object-fit:contain;flex:none;background:var(--t2);border-radius:18px}
.lcard .lt{flex:1;min-width:0}.lcard .lt b{display:block;font:800 18px/1.2 'Open Sans',sans-serif}.lcard .lt small{display:block;color:var(--sub);font-weight:600;font-size:12.5px;margin:1px 0 3px}
.stars{display:inline-flex;gap:2px}.stars i{width:16px;height:16px;color:#E3DDF1}.stars i.on{color:#F5B915}.stars svg{width:100%;height:100%}
.stars.big i{width:52px;height:52px}
.go{display:inline-flex;align-items:center;justify-content:center;background:var(--ac);color:#fff;font-weight:800;font-size:16px;border-radius:14px;padding:10px 18px;box-shadow:0 4px 0 rgba(0,0,0,.18);flex:none}
.go:active{transform:translateY(3px);box-shadow:none}
.go.sec{background:#fff;color:var(--ink);box-shadow:0 4px 0 rgba(42,26,85,.12);border:2px solid #EEE8FA}
.lcard.done .go{background:#fff;color:var(--ac);border:2px solid var(--t1);box-shadow:none}
.next{display:block;margin:18px auto 0;width:max-content;max-width:100%;background:#fff;border-radius:16px;padding:12px 20px;font-weight:800;color:var(--ac);box-shadow:0 4px 0 rgba(42,26,85,.1)}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#241B3A;color:#fff;padding:10px 18px;border-radius:14px;opacity:0;pointer-events:none;transition:.25s;font-weight:700}

/* player */
.lx{position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;background:linear-gradient(180deg,var(--t2),#fff 70%);overflow:auto}
.ltop{display:flex;align-items:center;gap:12px;padding:12px 16px;max-width:1000px;width:100%;margin:0 auto;flex:none}
.lxx{width:42px;height:42px;border-radius:50%;background:#fff;box-shadow:0 3px 0 rgba(42,26,85,.12);display:flex;align-items:center;justify-content:center;color:var(--sub);flex:none}.lxx svg{width:22px;height:22px}
.lbar{flex:1;height:14px;border-radius:8px;background:rgba(42,26,85,.1);overflow:hidden}.lbar i{display:block;height:100%;background:var(--ac);border-radius:8px;transition:width .35s}
.lnum{font-weight:800;color:var(--sub)}
.lbody{flex:1;max-width:1000px;width:100%;margin:0 auto;padding:0 16px}
.lteach{display:flex;align-items:center;gap:10px;margin:2px 0 10px}
.lteach img{width:58px;height:58px;object-fit:contain}
.lteach b{font:800 16px 'Open Sans',sans-serif}.lteach small{display:block;color:var(--sub);font-weight:600;font-size:12.5px}
.lteach img.hop{animation:hop .6s}.lteach img.shk{animation:shk .45s}
@keyframes hop{35%{transform:translateY(-18px)}}
@keyframes shk{20%{transform:rotate(-8deg)}40%{transform:rotate(7deg)}60%{transform:rotate(-5deg)}80%{transform:rotate(3deg)}}
.card{background:#fff;border-radius:26px;padding:18px 16px;box-shadow:0 12px 34px rgba(42,26,85,.1)}
.qq{display:flex;align-items:center;gap:10px;font:800 21px/1.25 'Open Sans',sans-serif}
.spk{width:48px;height:48px;flex:none;border-radius:50%;background:var(--ac);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 0 rgba(0,0,0,.18)}.spk svg{width:26px;height:26px}
.vis{display:flex;justify-content:center;margin:12px 0 4px}
.vimg{height:120px;width:auto;filter:drop-shadow(0 6px 8px rgba(42,26,85,.15))}
.vbig{font-size:68px;line-height:1.1;letter-spacing:3px;text-align:center}
.vsw{width:110px;height:110px;border-radius:50%;box-shadow:inset 0 -10px 0 rgba(0,0,0,.12),0 0 0 2px rgba(0,0,0,.06)}
.rtext{text-align:center;font:800 24px/1.3 'Open Sans',sans-serif;margin:8px 0 2px}
.scene{position:relative;width:170px;height:160px}
.scene .base{position:absolute;left:50%;bottom:0;transform:translateX(-50%);font-size:110px;line-height:1;z-index:1}
.scene .obj{position:absolute;left:50%;transform:translateX(-50%);font-size:52px;line-height:1;z-index:2}
.sc-on .obj{bottom:104px}.sc-under .obj{bottom:0;font-size:40px;left:52%;z-index:0}.sc-in .obj{bottom:60px;z-index:0;font-size:48px}
.opts{display:grid;gap:10px;margin-top:14px;grid-template-columns:repeat(3,minmax(0,1fr))}
.opts.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.opt{border-radius:20px;border:3px solid #EEE7FF;background:#FBF9FF;padding:10px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-shadow:0 4px 0 #E6DEFA;min-height:64px}
.opt.pic{min-height:120px}
.opt img{height:78px;width:auto;object-fit:contain}
.opt .em{font-size:54px;line-height:1}
.opt .sw{width:66px;height:66px;border-radius:50%;box-shadow:inset 0 -6px 0 rgba(0,0,0,.12),0 0 0 2px rgba(0,0,0,.06)}
.opt .ol{font-weight:700;font-size:13.5px;color:var(--sub);visibility:hidden}
.opt.ok .ol,.opt.no .ol,.opt.show .ol{visibility:visible}
.opt .ot{font:800 20px 'Open Sans',sans-serif;text-align:center}
.opt.ok{border-color:#2FBF71;background:#EBFFF3;box-shadow:0 4px 0 #A9EBC6}
.opt.no{border-color:#FF6B6B;background:#FFF1F1;box-shadow:0 4px 0 #FFC2C2;animation:shk .4s}
.slots{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:14px 0 2px}
.slot{width:40px;height:52px;border-bottom:4px solid #DCD3F1;display:flex;align-items:flex-end;justify-content:center;font:800 32px/1 'Open Sans',sans-serif;color:var(--ac);padding-bottom:4px}.slot.on{border-color:var(--ac)}
.tiles{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin-top:16px}
.tile{min-width:50px;height:52px;padding:0 12px;border-radius:14px;background:#fff;border:3px solid var(--ac);font:800 24px 'Open Sans',sans-serif;box-shadow:0 4px 0 rgba(42,26,85,.12)}
.tile.wdt{font-size:18px}.tile.used{opacity:.2;pointer-events:none}
.sent{min-height:62px;margin-top:14px;border:3px dashed #E2D9F5;border-radius:18px;display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:9px 12px}
.sent .wd{background:var(--ac);color:#fff;border-radius:11px;padding:6px 11px;font:800 18px 'Open Sans',sans-serif}.sent .ph{color:#A79DC4;font-weight:700}
.undo{display:block;margin:10px auto 0;font-weight:700;color:var(--sub);text-decoration:underline}
.sayw{text-align:center;font:800 44px/1.1 'Open Sans',sans-serif;margin-top:4px}
.sbtns{display:flex;justify-content:center;gap:10px;margin-top:16px;flex-wrap:wrap}
.sb{display:flex;align-items:center;gap:7px;height:54px;padding:0 20px;border-radius:999px;font:800 17px 'Open Sans',sans-serif}.sb svg{width:24px;height:24px}
.sb.lis{background:#fff;border:3px solid #E6DEFA}
.sb.mic{background:linear-gradient(135deg,#FF7AA8,#E2386E);color:#fff;box-shadow:0 4px 0 #B8235A,0 0 0 calc(var(--lv,0) * 16px) rgba(255,92,142,.25)}.sb.mic.on{background:linear-gradient(135deg,#FF5C8E,#C41E5A)}
.heard{text-align:center;margin-top:10px;color:var(--sub);font-weight:700}
.lfoot{flex:none;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:14px 16px 22px;max-width:1000px;width:100%;margin:0 auto}
.lfoot .fb{flex:1;font:800 19px 'Open Sans',sans-serif}.lfoot .fb.ok{color:#21A862}.lfoot .fb.no{color:#E8364F}
.lfoot .go{padding:13px 28px;font-size:18px}
.lend{margin:auto;text-align:center;padding:24px 16px}
.lend img{width:150px;margin:0 auto}
.lend h3{margin:8px 0 2px;font:800 32px 'Baloo 2',sans-serif}.lend p{margin:0;color:var(--sub);font-weight:700}
.lend .rw{display:inline-flex;align-items:center;gap:6px;margin:14px 0 18px;background:#fff;border-radius:14px;padding:8px 14px;font-weight:800;box-shadow:0 4px 0 rgba(42,26,85,.1)}.lend .rw svg{width:22px;height:22px}
.lbt{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}

@media (min-width:760px){
  .hero h1{font-size:38px}.hero img{width:190px}
  .lbody{display:grid;grid-template-columns:200px 1fr;gap:26px;align-items:start}
  .lteach{flex-direction:column;text-align:center;margin-top:10px}.lteach img{width:180px;height:auto}
  .card{padding:26px 28px}
  .qq{font-size:26px}.spk{width:56px;height:56px}
  .vimg{height:170px}.vbig{font-size:88px}.vsw{width:140px;height:140px}
  .opts{gap:14px}.opt.pic{min-height:170px}.opt img{height:116px}.opt .em{font-size:76px}.opt .sw{width:92px;height:92px}.opt .ol{font-size:16px}.opt .ot{font-size:24px}.opt.txt{min-height:84px}
  .slot{width:54px;height:64px;font-size:40px}.tile{min-width:60px;height:60px;font-size:28px}.tile.wdt{font-size:21px}.sent .wd{font-size:21px}
  .sayw{font-size:56px}.sb{height:60px;font-size:19px}
  .lfoot{padding:16px 16px 28px}.lfoot .fb{font-size:22px}
}
