:root{color-scheme:light;--bg: #f5fbf7;--surface: #ffffff;--surface-2: #ecf7ff;--ink: #263238;--muted: #62727b;--green: #2fbf71;--green-dark: #17864d;--blue: #2f80ed;--coral: #ff6b6b;--yellow: #f7c948;--gold: #ffb84d;--line: #d9e6dc;--shadow: 0 18px 50px rgba(38, 50, 56, .12);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 25% 15%,rgba(255,184,77,.18),transparent 28%),linear-gradient(135deg,#f5fbf7,#edf8ff 55%,#fff6e2);color:var(--ink)}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.7}.boot-screen,.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-stage{width:min(980px,100%);display:grid;grid-template-columns:minmax(240px,390px) minmax(280px,430px);align-items:center;justify-content:center;gap:42px}.auth-card{width:100%;display:grid;gap:16px;padding:28px;background:#ffffffeb;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.auth-card h1,.section-header h1,.summary h2{margin:0;line-height:1.1}.auth-card h1{font-size:2rem}label{display:grid;gap:7px;color:var(--muted);font-weight:700}input{width:100%;border:2px solid transparent;border-radius:8px;background:#f6faf8;color:var(--ink);padding:13px 14px;outline:none;box-shadow:inset 0 0 0 1px var(--line)}input:focus{border-color:var(--blue);background:#fff;box-shadow:0 0 0 4px #2f80ed24}.check-row{display:flex;align-items:center;gap:10px;color:var(--ink)}.check-row input{width:19px;height:19px;accent-color:var(--green)}.primary-button,.secondary-button,.ghost-button,.text-button,.icon-button,.nav-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;border:0;border-radius:8px;font-weight:800;text-decoration:none;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}.primary-button{padding:0 18px;color:#fff;background:linear-gradient(135deg,var(--green),var(--green-dark));box-shadow:0 10px 24px #2fbf713d}.danger-button{background:linear-gradient(135deg,#e34f4f,#a82d2d);box-shadow:0 10px 24px #e34f4f38}.primary-button:hover,.secondary-button:hover,.ghost-button:hover,.icon-button:hover,.nav-button:hover{transform:translateY(-1px)}.primary-button.big{min-height:58px;padding:0 24px;font-size:1.05rem}.secondary-button{padding:0 16px;color:#154066;background:#dff0ff}.ghost-button{padding:0 14px;color:var(--ink);background:#edf4f0}.text-button{min-height:34px;padding:0;color:var(--blue);background:transparent}.icon-button{width:40px;height:40px;color:var(--ink);background:#eef6f1}.danger-icon{color:#ad3434;background:#ffe9e9}.message{border-radius:8px;padding:12px 14px;font-weight:800}.message.danger{color:#8a1f1f;background:#ffe6e6;border:1px solid #ffc9c9}.message.success{color:#0b6e3a;background:#ddf8e9;border:1px solid #bdeccc}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.app-shell{min-height:100vh;display:grid;grid-template-columns:280px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:22px;padding:20px;background:#fffc;border-right:1px solid var(--line);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:12px;min-height:64px}.brand strong{display:block;font-size:1.1rem}.brand span{display:block;color:var(--muted);font-weight:700}.nav{display:grid;gap:10px}.nav-button{justify-content:flex-start;width:100%;padding:0 14px;color:var(--ink);background:transparent}.nav-button.active{color:#fff;background:var(--blue);box-shadow:0 12px 24px #2f80ed38}.logout{margin-top:auto}.main-panel{min-width:0;padding:28px}.learn-layout,.page-section{width:min(1080px,100%);margin:0 auto}.learn-arena{min-height:calc(100vh - 56px);display:grid;grid-template-rows:auto minmax(220px,1fr) auto;gap:20px;align-items:center;padding:24px;background:#ffffffc2;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.score-strip{display:grid;grid-template-columns:170px 92px minmax(180px,1fr);align-items:center;gap:14px}.score-strip span{display:block;color:var(--muted);font-weight:800}.score-strip strong{display:block;font-size:2rem;line-height:1}.score-total{display:flex;align-items:baseline;gap:8px}.score-total small{color:var(--muted);font-size:.72rem;font-weight:800;white-space:nowrap}.multiplier{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:8px;color:#7a4b00;background:#fff0c2;font-weight:900;opacity:0;transform:scale(.92);transition:.18s ease}.multiplier.visible{opacity:1;transform:scale(1)}.progress-wrap{min-width:0}.progress-bar{height:22px;overflow:hidden;border-radius:8px;background:#dfece4;border:1px solid #cfe0d5}.progress-bar span{display:block;width:var(--progress);height:100%;background:linear-gradient(90deg,var(--green),#74d99e);transition:width .26s ease,background .16s ease}.progress-bar.yellow span{background:linear-gradient(90deg,var(--yellow),#ffe17b)}.dragon-stage{display:grid;place-items:center;min-height:250px}.center-actions{min-height:170px;display:grid;place-items:center;align-content:center;gap:14px;text-align:center}.answer-box{width:min(680px,100%);display:grid;gap:16px;justify-self:center;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:8px}.listen-row,.action-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.listen-meta{display:flex;align-items:center;gap:20px;margin-left:auto}.audio-regenerate-button{min-height:32px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;border:1px solid var(--line);border-radius:8px;color:var(--muted);background:#fff;font-size:.78rem;font-weight:800;transition:color .16s ease,border-color .16s ease,background .16s ease}.audio-regenerate-button:hover:not(:disabled){color:#154066;border-color:#a8cce9;background:#f2f9ff}.audio-notice{margin-top:-8px;color:var(--green-dark);font-size:.82rem;font-weight:800;text-align:right}.try-pill{min-height:34px;display:inline-flex;align-items:center;border-radius:8px;padding:0 12px;background:#fff0c2;color:#7a4b00;font-weight:900}.failed-attempt{overflow-wrap:anywhere}.answer-box input{min-height:58px;font-size:1.22rem;font-weight:800}.feedback{min-height:44px;display:flex;align-items:center;gap:10px;border-radius:8px;padding:10px 12px;font-weight:900}.feedback.success{color:#0b6e3a;background:#ddf8e9}.feedback.warning{color:#755200;background:#fff2bf}.feedback.reveal{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:14px;padding:16px;color:#154066;background:linear-gradient(135deg,#eef8ff,#fff5d9);border:1px solid #c7dff0}.reveal-icon{flex:0 0 auto;margin-top:4px;color:var(--gold)}.reveal-copy{min-width:0;display:grid;justify-items:center;gap:8px;text-align:center}.reveal-label{color:var(--muted);font-size:.82rem;font-weight:900}.reveal-word{max-width:100%;color:#154066;font-size:3.3rem;line-height:1.04;overflow-wrap:anywhere}.reveal-note{color:#415057;font-size:.95rem;font-weight:800}.reveal-box{text-align:left}.summary{width:min(650px,100%);display:grid;justify-items:center;gap:20px;justify-self:center;text-align:center;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:8px}.summary>svg{color:var(--gold)}.summary-grid{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.summary-grid div{display:grid;gap:7px;padding:14px;background:#f6faf8;border-radius:8px}.summary-grid span{color:var(--muted);font-weight:800}.summary-grid strong{font-size:1.55rem}.section-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.section-header h1{margin-top:8px;font-size:2rem}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--green-dark);font-weight:900}.count-badge{display:inline-flex;align-items:center;min-height:32px;margin-top:10px;padding:0 11px;color:#154066;background:#dff0ff;border-radius:8px;font-weight:900}.add-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.7fr) minmax(160px,max-content) auto;gap:12px;margin-bottom:16px}.easy-toggle{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 12px;color:#755200;background:#fff4cc;border:1px solid #efd583;border-radius:8px;font-weight:900;cursor:pointer}.easy-toggle input{width:18px;height:18px;flex:0 0 auto;padding:0;border:0;background:transparent;accent-color:var(--green);box-shadow:none}.easy-toggle span{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.easy-toggle.compact{width:fit-content;min-height:36px;padding:0 10px}.workshop-tools{display:flex;justify-content:flex-end;margin-bottom:16px}.confirm-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;margin-bottom:16px;padding:14px;background:#fff7d7;border:1px solid #f1d46f;border-radius:8px}.confirm-panel strong,.confirm-panel span{display:block}.confirm-panel span{margin-top:4px;color:var(--muted);font-weight:700}.confirm-actions{display:flex;justify-content:flex-end;gap:10px}.item-list{display:grid;gap:12px}.item-card{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(210px,.8fr) auto;align-items:center;gap:14px;padding:14px;background:#ffffffdb;border:1px solid var(--line);border-radius:8px}.item-card strong{min-width:0;overflow-wrap:anywhere;font-size:1.05rem}.item-main,.edit-fields{min-width:0;display:grid;gap:8px}.item-badges{min-width:0;display:flex;flex-wrap:wrap;gap:8px}.hint-chip,.easy-chip{width:fit-content;max-width:100%;min-height:28px;display:inline-flex;align-items:center;gap:6px;padding:0 9px;overflow-wrap:anywhere;color:#154066;background:#dff0ff;border-radius:8px;font-weight:800}.easy-chip{color:#755200;background:#fff0c2}.item-stats{display:flex;flex-wrap:wrap;gap:8px}.item-stats span{min-height:30px;display:inline-flex;align-items:center;border-radius:8px;padding:0 10px;color:var(--muted);background:#f0f6f2;font-weight:800}.item-actions{display:flex;justify-content:flex-end;gap:8px}.empty-state{min-height:160px;display:grid;place-items:center;align-content:center;gap:10px;color:var(--muted);background:#ffffff9e;border:1px dashed #b9d2bf;border-radius:8px}.score-table{display:grid;gap:10px}.score-row{display:grid;grid-template-columns:58px minmax(80px,1fr) 80px 140px 44px;align-items:center;gap:12px;min-height:58px;padding:0 16px;background:#ffffffdb;border:1px solid var(--line);border-radius:8px;font-weight:800}.score-row strong{font-size:1.35rem}.score-row time{color:var(--muted);text-align:right}.dragon{display:block;width:min(320px,78vw);height:auto;-webkit-user-select:none;user-select:none;filter:drop-shadow(0 16px 18px rgba(38,50,56,.16))}.dragon-compact{width:62px;min-width:62px;filter:drop-shadow(0 8px 10px rgba(38,50,56,.12))}@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;display:grid;grid-template-columns:1fr}.nav{grid-template-columns:repeat(3,minmax(0,1fr))}.nav-button{justify-content:center}.logout{margin-top:0}.main-panel{padding:18px}.auth-stage{grid-template-columns:1fr;gap:18px}.auth-stage>.dragon{width:220px;justify-self:center}.score-strip{grid-template-columns:1fr 86px}.progress-wrap{grid-column:1 / -1}.item-card{grid-template-columns:1fr}.item-actions{justify-content:flex-start}}@media(max-width:580px){.auth-page,.boot-screen{padding:14px}.auth-card,.learn-arena,.answer-box,.summary{padding:16px}.nav{grid-template-columns:1fr}.section-header{align-items:flex-start}.section-header .dragon-compact{width:52px;min-width:52px}.add-form{grid-template-columns:1fr}.workshop-tools,.confirm-actions{justify-content:stretch}.workshop-tools>*,.confirm-actions>*{width:100%}.confirm-panel,.summary-grid,.score-row{grid-template-columns:1fr}.score-row time{text-align:left}.listen-row,.action-row{align-items:stretch}.listen-row>*,.action-row>*{width:100%}.listen-meta{width:100%;justify-content:space-between;margin-left:0}.feedback.reveal{grid-template-columns:1fr;justify-items:center}.reveal-icon{margin-top:0}.reveal-word{font-size:2.45rem}}
