:root{color-scheme:dark;--yellow:#eaff34;--muted:#a1a69b;--panel:#191c18}*{box-sizing:border-box}body{margin:0;background:#10120f;color:#f6f7ee;font:15px system-ui,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;background:var(--yellow);color:#171b0c;border:0;border-radius:8px;padding:12px 18px;font-weight:700}button:hover{filter:brightness(.9)}button:disabled{opacity:.5;cursor:wait}input,select,textarea{background:#20241e;color:white;border:1px solid #42483c;padding:12px;border-radius:8px;width:100%}textarea{min-height:120px}label{display:block;margin:15px 0 8px}aside{position:fixed;width:240px;inset:0 auto 0 0;border-right:1px solid #30362b;padding:32px 20px;background:#141711;display:flex;flex-direction:column;gap:12px}.brand{font-size:28px;font-weight:950;letter-spacing:-1px}.brand span{color:var(--yellow)}.sub{font-size:10px;letter-spacing:3px;color:var(--muted)}nav{margin-top:45px;display:grid;gap:8px}nav button{text-align:left;background:transparent;color:#aeb5a6;font-weight:500}nav button.active{background:#2c3420;color:var(--yellow)}aside footer{margin-top:auto;font-size:12px;color:var(--muted)}main{margin-left:240px;max-width:1600px;padding:30px 44px}header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #30362b;padding-bottom:24px;margin-bottom:30px}.eyebrow{color:var(--yellow);font-size:11px;letter-spacing:2px;text-transform:uppercase}h1{font-size:34px;letter-spacing:-1px;margin:12px 0}h2{font-size:21px}p{line-height:1.8;color:#c1c7b9}.muted{color:var(--muted)}.hero{background:linear-gradient(110deg,#29351a,#1a2015);padding:34px;border:1px solid #3c492c;border-radius:16px;position:relative}.hero h1{max-width:600px}.hero p{max-width:590px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:24px 0}.stats{grid-template-columns:repeat(4,1fr)}.card{background:var(--panel);border:1px solid #30372a;border-radius:12px;padding:24px}.number{font-size:36px;font-weight:750;margin:12px 0}.pill{background:#303a20;color:var(--yellow);font-size:11px;border-radius:30px;padding:6px 10px;display:inline-block}.card h2{min-height:50px}.card button{margin-top:12px}.bar{height:7px;background:#343a2d;border-radius:8px;margin-top:20px}.bar span{height:100%;display:block;background:var(--yellow);border-radius:8px}.two{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}.lesson{white-space:pre-line;font-size:17px;line-height:1.9}.chat{max-height:420px;min-height:240px;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:15px 0}.bubble{background:#2c3225;border-radius:12px;padding:14px;max-width:85%;white-space:pre-wrap}.bubble.user{align-self:flex-end;background:#ddea70;color:#19200e}.row{display:flex;gap:12px;align-items:center}.row input{flex:1}.login{max-width:460px;margin:9vh auto}.error{color:#ffb2a4}.notice{font-size:12px;border-left:3px solid var(--yellow);padding:8px 14px;margin:20px 0;color:#bdc5b3}table{border-collapse:collapse;width:100%}td,th{text-align:left;padding:14px;border-bottom:1px solid #30372a}.radio{display:flex;gap:10px;padding:12px;background:#24291f;border-radius:8px;cursor:pointer}.radio input{width:auto}.small{font-size:12px}.secondary{background:#303729;color:white}.certificate{text-align:center;border:3px double var(--yellow);padding:40px}a{color:var(--yellow)}@media(max-width:1000px){aside{width:190px}main{margin-left:190px;padding:24px}.grid,.stats{grid-template-columns:repeat(2,1fr)}.two{grid-template-columns:1fr}}@media(max-width:650px){aside{position:static;width:auto;padding:20px}aside footer{display:none}nav{margin-top:15px;display:flex;overflow:auto}nav button{white-space:nowrap}main{margin:0;padding:20px}.grid,.stats{grid-template-columns:1fr}header{gap:12px;align-items:flex-start}h1{font-size:29px}.hero{padding:24px}.row{flex-wrap:wrap}table{font-size:12px}td,th{padding:8px}}@media print{aside,header,button,.notice{display:none}main{margin:0}body{background:white;color:black}.certificate{color:black}}
.course-card{overflow:hidden}.course-cover{width:calc(100% + 48px);margin:-24px -24px 22px;height:170px;object-fit:cover}.lesson-intro{font-size:19px;max-width:800px}.lesson-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:24px;margin:24px 0}.lesson-layout section.card{margin-bottom:20px}.lesson-side{position:static;inset:auto;width:auto;border:0;padding:0;background:none;display:block}.lesson-side .card{position:sticky;top:20px}.lesson-side .card+.card{position:static}video{width:100%;border-radius:10px;background:#000;margin-top:12px}.comic-scene{position:relative;border:3px solid #eaff34;border-radius:14px;overflow:hidden;margin-bottom:20px}.comic-scene img{display:block;width:100%;max-height:420px;object-fit:cover}.comic-tag{position:absolute;bottom:0;left:0;padding:10px 18px;background:#eaff34;color:#161b0c;font-weight:900;letter-spacing:1px;font-size:12px}.comic-dialogue{display:grid;gap:16px;padding:6px}.speech{background:#eaff34;color:#161b0c;border-radius:16px 16px 16px 2px;padding:16px 20px;max-width:92%;box-shadow:3px 4px 0 #080b06}.speech p{color:inherit;margin:6px 0;line-height:1.6}.speech.customer{background:#f3efe2;justify-self:end;border-radius:16px 16px 2px 16px}.speech b{font-size:12px;text-transform:uppercase;letter-spacing:1px}.lesson-step{display:flex;gap:16px;padding:14px 0;border-bottom:1px solid #30372a}.lesson-step>span{background:#303a20;color:var(--yellow);border-radius:50%;width:32px;height:32px;display:grid;place-items:center;flex-shrink:0;font-weight:800}.lesson-step h3{margin:3px 0}.lesson-step p{margin-top:6px}.check-item{display:flex;align-items:flex-start;gap:10px;line-height:1.6}.check-item input{width:auto;margin-top:6px;accent-color:#eaff34}.watchout{border-left:4px solid #f1bb65}details{margin:20px 0}summary{cursor:pointer;color:var(--yellow);line-height:1.6}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid white;outline-offset:4px}#result{margin-top:20px}@media(max-width:1000px){.lesson-layout{grid-template-columns:1fr}.lesson-side .card{position:static}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}@media print{.lesson-side{display:none}}

.scene-stage{position:relative;overflow:hidden;border-radius:16px;min-height:390px;background:#111}.scene-backdrop{position:absolute;width:110%;height:110%;object-fit:cover;opacity:.4;animation:sceneDrift 18s ease-in-out infinite alternate}.scene-stage .chat{position:relative;margin:30px;max-height:none;min-height:300px;background:#10140acc}.scene-stage .bubble{animation:speechEnter .4s ease-out}.scene-stage:fullscreen{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center}.scene-stage:fullscreen .chat{width:min(850px,90vw);font-size:clamp(18px,2vw,28px);max-height:85vh;overflow:auto}video:fullscreen{width:100vw;height:100vh;object-fit:contain;background:black}.expanded-player{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:10000!important;background:black;object-fit:contain}.close-expanded{position:fixed;right:15px;top:15px;z-index:10001}@keyframes sceneDrift{from{transform:translate(-2%,-2%) scale(1)}to{transform:translate(-5%,-4%) scale(1.04)}}@keyframes speechEnter{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.scene-backdrop,.scene-stage .bubble{animation:none}}
/* Accessibility: explicit focus, touch targets, narrow-screen containment. */
:focus-visible{outline:3px solid #fff;outline-offset:4px}button,input,select,summary{min-height:44px}input[type=radio],input[type=checkbox]{min-height:24px;min-width:24px;accent-color:#eaff34}fieldset{border:1px solid #59634f;border-radius:10px;margin:24px 0;padding:16px;min-width:0}legend{font-weight:700;padding:6px;line-height:1.6}.unanswered{border-left:4px solid #ffb2a4;padding:12px;background:#301d1b}main,.card,.grid>*{min-width:0}.card,.notice,p,td,legend{overflow-wrap:anywhere}input,select,textarea{max-width:100%}button{white-space:normal}.course-cover{object-position:center}.notice h2{font-size:20px}.radio{min-height:44px;align-items:center}nav button{flex-shrink:0}@media(max-width:400px){main{padding:16px}.card{padding:18px}.hero{padding:18px}header{flex-wrap:wrap}.course-cover{width:calc(100% + 36px);margin:-18px -18px 18px}.lesson-layout{grid-template-columns:minmax(0,1fr)}.scene-stage .chat{margin:12px}.bubble{max-width:100%}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
video::cue{color:#fff;background:#000;font-size:1em}
/* Keep every navigation item reachable on shorter desktop windows. */
#app>aside{height:100dvh;overflow:hidden}
#app>aside>.brand,#app>aside>.sub{flex-shrink:0}
#app>aside>nav{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;flex:1;align-content:start}
#app>aside>footer{flex-shrink:0;padding-top:12px}
@media(max-width:650px){#app>aside{height:auto;overflow:visible}#app>aside>nav{flex:auto;overflow-x:auto;overflow-y:hidden;scrollbar-gutter:auto}}
