:root{--ink:#183b33;--leaf:#196d4d;--line:#dbe4d6;--paper:#fffdf8;--safe:env(safe-area-inset-bottom,0px);font:16px/1.45 ui-rounded,"Avenir Next",system-ui,sans-serif;color:var(--ink)}
*{box-sizing:border-box}body{margin:0;background-color:#dce8da;background-image:radial-gradient(#b8cdbb 1px,transparent 1px);background-size:16px 16px}
button,select{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:focus-visible,select:focus-visible{outline:3px solid #9e4ed1;outline-offset:3px}
button:active:not(:disabled){transform:translateY(2px)}
.layout{max-width:520px;min-height:100svh;margin:0 auto;background:var(--paper);box-shadow:0 0 50px #345c3d20}
.top,.section-title,.session-head,.chapter,.brand{display:flex;align-items:center}
.top{padding:calc(12px + env(safe-area-inset-top,0px)) 20px 12px;justify-content:space-between;border-bottom:2px solid var(--line);background:var(--paper)}
.brand{font-size:25px;font-weight:900;letter-spacing:-1.6px;gap:8px}.shell{border-radius:12px;background:#b8ec8d;color:#22603f;padding:1px 7px;font-size:24px;transform:rotate(-8deg);border:2px solid #7bb763}
.lang,.secondary{border-radius:13px;background:white;border:2px solid var(--line);padding:8px;font-weight:700;font-size:14px;min-height:44px}
.main{padding:20px 19px calc(102px + var(--safe))}
h1,h2,p{margin:0}h1,h2{line-height:1.12;letter-spacing:-.045em}h1{font-size:clamp(27px,7vw,35px);margin:3px 0 17px}h2{font-size:24px}
.hero{isolation:isolate;position:relative;overflow:hidden;border:2px solid #8bc9a7;border-radius:25px;background:#c7edcb;padding:24px 18px 18px;box-shadow:0 4px #9accaa}
.land,.land:before,.land:after{position:absolute;inset:0;z-index:-1;pointer-events:none}.land{background:radial-gradient(circle at 80% 27%,#fff3aa 0 46px,transparent 47px)}.land:before,.land:after{content:'';top:25%;background:#a0d8b0;clip-path:polygon(0 70%,20% 84%,43% 53%,63% 77%,83% 25%,100% 59%,100% 100%,0 100%)}.land:after{top:52%;background:#81c497;transform:scaleX(-1)}
.hero canvas{position:absolute;right:3%;top:6%;height:66%;width:37%;object-fit:contain;filter:drop-shadow(0 3px 0 #47784930)}
.hero-content{position:relative;z-index:1;pointer-events:none}.hero-content button{pointer-events:auto}
.hero h2{font-size:clamp(31px,8vw,42px);max-width:63%;margin:8px 0}.hero p{max-width:60%;font-weight:600}.meta{display:inline-block;padding:3px 10px;border-radius:9px;background:#f3ffe0;font-size:13px;font-weight:800}
.primary{width:100%;background:var(--leaf);color:white;border:0;border-radius:15px;min-height:47px;padding:11px 14px;font-weight:800;box-shadow:0 4px #104a34}.hero .primary{margin-top:20px}
.section-title{justify-content:space-between;margin:29px 0 13px;gap:8px}.muted{color:#51675b;font-size:14px}.chapters{display:grid;gap:10px}
.chapter,.choice,.panel{background:white;border:2px solid var(--line);border-radius:18px}.chapter,.choice{box-shadow:0 3px var(--line)}.chapter{width:100%;text-align:left;padding:12px;gap:13px}.chapter strong{font-size:17px}.end{margin-left:auto;padding:4px 8px;font-size:21px;font-weight:800;color:#567361}
.badge{flex:none;width:48px;height:48px;border-radius:17px;display:grid;place-items:center;background:var(--pale);border-bottom:3px solid color-mix(in srgb,var(--belt) 32%,white)}
.belt{width:27px;height:8px;border:1.5px solid #233342;border-radius:3px;background:var(--belt);position:relative;transform:rotate(-8deg)}.belt:before,.belt:after{content:'';background:var(--belt);border:1.5px solid #233342;width:5px;height:11px;position:absolute;left:9px;top:1px;transform:rotate(32deg)}.belt:after{left:15px;transform:rotate(-34deg)}
.nav{position:fixed;z-index:3;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,520px);display:flex;background:#fffdf8;border-top:2px solid var(--line);padding:7px 12px calc(7px + var(--safe));gap:7px}
.nav button{flex:1;border:0;background:transparent;border-radius:14px;min-height:51px;display:grid;place-items:center;align-content:center;gap:2px;font-size:13px;font-weight:750;color:#586b60}.nav button[aria-current=page]{background:#e0f3d6;color:#25623e}
.nav svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.3}
.panel{padding:18px}.panel p{margin:14px 0}.session-head{justify-content:space-between;gap:14px}.session-head canvas{height:104px;width:112px;object-fit:contain}.session-head strong{color:var(--leaf)}progress{width:100%;height:12px;accent-color:#55aa65;border:0;border-radius:20px;overflow:hidden}progress::-webkit-progress-bar{background:#e6edde}progress::-webkit-progress-value{background:#63b272;border-radius:20px}
.choices{display:grid;gap:10px;margin:22px 0 6px}.choice{min-height:49px;padding:12px 16px;text-align:left;font-weight:650}.choice:disabled{color:#58695f;cursor:default}.choice.correct{color:#1d5a36;background:#e1f5d5;border-color:#8fc977;box-shadow:0 3px #8fc977}.choice.wrong{background:#ffede4;color:#883e2c;border-color:#e7ae99;box-shadow:0 3px #e7ae99}
.feedback{font-weight:750}.actions{display:grid;gap:10px}.vocab{padding:12px 0;border-bottom:1px solid var(--line)}.vocab:last-child{border:0}.vocab strong{display:block}.session-title{margin:25px 0 12px}
@media(max-height:700px){.lesson .session-head canvas{height:70px}.lesson .panel{padding:14px}.choices{margin-top:14px}}
@media(prefers-reduced-motion:no-preference){.session-head canvas{animation:pop .22s ease-out}@keyframes pop{from{transform:scale(.94) rotate(-2deg)}to{transform:none}}}
.answer-feedback{position:sticky;bottom:calc(70px + var(--safe));background:#f8fbf4;border:2px solid var(--line);border-radius:16px;margin-top:15px;padding:11px 13px 15px;box-shadow:0 -4px 14px #264d3110}.panel .answer-feedback p{margin:0 0 8px}
.course-picker{display:flex;gap:4px;padding:4px;background:#eaf0e5;border:1px solid var(--line);border-radius:16px;margin:0 0 17px}.course-picker button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-height:44px;background:transparent;border:0;border-radius:12px;font-weight:750}.course-picker button[aria-pressed=true]{background:white;color:var(--leaf);box-shadow:0 2px 4px #294f3524}.course-belt{width:22px;height:9px;border-radius:3px;border:1px solid #67766c;transform:rotate(-9deg)}.course-belt.white{background:#fffef6}.course-belt.third{background:linear-gradient(90deg,#2867ae 70%,#ce5046 70%)}
