:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#edf5ff;background:#081326;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
button,a{font:inherit}
button{cursor:pointer}
a{color:inherit}
.background-grid{position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 75% 3%,rgba(46,181,216,.19),transparent 30%),radial-gradient(circle at 6% 47%,rgba(42,91,170,.15),transparent 38%),linear-gradient(rgba(125,182,223,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(125,182,223,.035) 1px,transparent 1px);background-size:auto,auto,38px 38px,38px 38px}
.page{position:relative;max-width:1150px;margin:auto;padding:0 28px}
.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(210,233,255,.12)}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none}
.brand-mark{display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(103,222,236,.48);border-radius:13px;background:rgba(44,194,216,.13);font-size:22px}
.brand-name{font-size:14px;letter-spacing:.11em;font-weight:650;line-height:1.1}
.brand-name strong{color:#6fe6e9}
.brand-name small{display:block;color:#7999b6;font-size:10px;letter-spacing:.11em;margin-top:5px}
.top-actions{display:flex;align-items:center;gap:20px}
.user-name{color:#b7cade;font-size:13px}
.text-button{background:none;border:0;color:#79dfe8;font-weight:700;padding:8px}
.text-button:hover{text-decoration:underline}
main{min-height:calc(100vh - 150px)}
.loading{min-height:60vh;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#a9c2d8}
.spinner{width:28px;height:28px;border-radius:50%;border:3px solid rgba(121,223,232,.2);border-top-color:#79dfe8;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:26px;margin:40px 0 27px}
.hero-main,.hero-side,.panel,.quiz-card,.result-card,.auth-card{border:1px solid rgba(181,223,252,.15);background:linear-gradient(145deg,rgba(18,42,71,.95),rgba(11,30,56,.96));box-shadow:0 16px 60px rgba(0,0,0,.13);border-radius:22px}
.hero-main{padding:42px 44px;min-height:380px;position:relative;overflow:hidden}
.hero-main:after{content:"";position:absolute;width:300px;height:300px;border:1px solid rgba(99,230,233,.17);border-radius:50%;right:-85px;top:-107px;box-shadow:0 0 0 38px rgba(64,189,205,.035),0 0 0 78px rgba(64,189,205,.025)}
.eyebrow{color:#74dde5;letter-spacing:.18em;font-size:11px;font-weight:800;text-transform:uppercase}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(40px,5vw,64px);letter-spacing:-.045em;line-height:1.04;margin:19px 0}
h1 span{color:#78e5e7}
.lead{color:#b8cde0;max-width:540px;line-height:1.7;font-size:16px}
.hero-meta{display:flex;gap:10px;flex-wrap:wrap;margin:28px 0}
.pill{display:inline-flex;align-items:center;gap:7px;background:rgba(119,180,220,.1);border:1px solid rgba(144,195,224,.13);border-radius:100px;padding:8px 12px;color:#c7d9e9;font-size:12px;font-weight:700}
.primary-button{background:#83e5d9;border:0;color:#09253a;padding:15px 22px;border-radius:12px;font-weight:850;box-shadow:0 9px 29px rgba(72,228,209,.2);transition:transform .15s,background .15s}
.primary-button:hover{background:#a6f5e8;transform:translateY(-2px)}
.primary-button:disabled{opacity:.45;cursor:not-allowed;transform:none}
.secondary-button{border:1px solid rgba(143,211,237,.35);background:rgba(96,179,216,.08);color:#d7edfa;padding:13px 18px;border-radius:12px;font-weight:750}
.secondary-button:hover{background:rgba(96,179,216,.16)}
.hero-side{padding:30px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(160deg,#173356,#10233e)}
.side-icon{font-size:34px;margin-bottom:20px}
.side-title{font-size:21px;font-weight:800;letter-spacing:-.02em}
.side-copy{color:#a9c4d9;line-height:1.6}
.divider{height:1px;background:rgba(200,229,246,.13);margin:20px 0}
.side-bottom{display:flex;justify-content:space-between;align-items:center;color:#8de2e7;font-size:13px;font-weight:700}
.dashboard{display:grid;grid-template-columns:1.45fr .85fr;gap:26px;margin-bottom:45px}
.panel{padding:29px}
.panel h2{font-size:20px;letter-spacing:-.03em;margin-bottom:19px}
.panel-sub{font-size:13px;color:#91aac2;margin-top:-9px;margin-bottom:23px}
.week-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.week-day{min-height:91px;border:1px solid rgba(160,209,238,.1);background:rgba(115,174,210,.055);border-radius:12px;padding:12px 8px;display:flex;flex-direction:column;justify-content:space-between}
.week-day.today{border-color:#6bdcd9;background:rgba(93,221,210,.1)}
.week-day .day-label{font-size:11px;color:#83a4be;text-transform:uppercase;font-weight:800}
.week-day.today .day-label{color:#78e5df}
.week-day .day-topic{font-size:11px;font-weight:750;line-height:1.3}
.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}
.stat{padding:13px 0;border-top:1px solid rgba(181,223,252,.13)}
.stat strong{font-size:23px;display:block;letter-spacing:-.03em}
.stat span{font-size:11px;color:#9fb7cc}
.badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:19px}
.badge{font-size:11px;padding:8px 10px;border:1px solid rgba(246,185,99,.29);background:rgba(248,177,77,.08);color:#ffd398;border-radius:100px;font-weight:700}
.quiz-layout{max-width:760px;margin:44px auto 66px}
.quiz-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.quiz-head span{font-size:13px;color:#9dc7dd;font-weight:750}
.progress-track{height:7px;background:#1b3551;border-radius:100px;overflow:hidden;margin-bottom:24px}
.progress-track span{height:100%;display:block;background:linear-gradient(90deg,#45c7e4,#84e9d6);border-radius:100px;transition:width .3s}
.quiz-card{padding:38px}
.quiz-card h1{font-size:clamp(27px,4vw,39px);line-height:1.22;margin:20px 0 27px}
.options{display:grid;gap:11px}
.option{width:100%;text-align:left;color:#e4f1fa;border:1px solid rgba(168,217,242,.2);background:rgba(120,185,220,.055);border-radius:13px;display:flex;align-items:center;gap:16px;padding:15px 17px;transition:border .15s,background .15s}
.option:hover:not(:disabled),.option.selected{border-color:#78dfe0;background:rgba(101,216,211,.1)}
.option:disabled{cursor:default}
.option.correct{border-color:#62d7a9;background:rgba(57,173,126,.14)}
.option.incorrect{border-color:#ff927e;background:rgba(220,98,86,.13)}
.option-letter{width:28px;height:28px;flex:none;display:grid;place-items:center;border-radius:8px;background:rgba(181,223,252,.1);font-size:12px;font-weight:800;color:#a7cbe2}
.quiz-actions{margin-top:27px;display:flex;justify-content:flex-end}
.feedback{margin-top:24px;padding:18px 20px;border-radius:13px;border:1px solid rgba(103,216,179,.3);background:rgba(78,184,144,.1)}
.feedback.wrong{border-color:rgba(255,165,125,.3);background:rgba(201,117,90,.1)}
.feedback strong{display:block;margin-bottom:5px}
.feedback p{color:#bdd1dc;line-height:1.55;font-size:14px;margin:0}
.result-layout{max-width:790px;margin:42px auto 70px}
.result-card{padding:42px;text-align:center}
.result-icon{font-size:46px;margin-bottom:14px}
.result-card h1{font-size:39px;margin:12px 0}
.score{font-size:clamp(42px,7vw,66px);font-weight:900;letter-spacing:-.06em;margin:25px 0 4px}
.score small{font-size:22px;color:#8fb4c8;letter-spacing:0}
.reward-row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:20px 0 33px}
.reward{border:1px solid rgba(160,209,238,.18);border-radius:12px;padding:13px 19px;background:rgba(116,185,210,.07);font-weight:800}
.result-notes{display:grid;grid-template-columns:1fr 1fr;gap:12px;text-align:left}
.result-note{border-top:1px solid rgba(180,223,250,.16);padding:17px 0;color:#a7c1d2;font-size:13px}
.result-note strong{display:block;color:#e2f4fa;font-size:16px;margin-top:5px}
.tomorrow-card{margin-top:16px;border:1px solid rgba(118,217,220,.27);border-radius:16px;padding:24px;background:rgba(65,191,209,.075);text-align:left}
.tomorrow-card p{color:#b7cedd;line-height:1.55;margin:9px 0 0}
.result-actions{display:flex;gap:11px;justify-content:center;margin-top:25px;flex-wrap:wrap}
.lab-card{margin-top:17px;padding:21px 24px;border:1px solid rgba(252,189,98,.23);border-radius:14px;background:rgba(240,170,79,.07);text-align:left;color:#f5d9ab}
.lab-card p{margin:5px 0 0;font-size:13px;line-height:1.5}
.learning-panel{margin-bottom:22px;overflow:hidden}
.result-layout .learning-panel{margin:18px 0 0;text-align:left}
.learning-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.learning-heading h2{margin:8px 0 12px}
.learning-heading .panel-sub{margin:0 0 23px}
.level-emblem{flex:none;display:grid;place-items:center;width:72px;height:72px;border-radius:20px;background:linear-gradient(145deg,#75e5dd,#3caebf);color:#0a3145;box-shadow:0 10px 32px rgba(94,220,211,.2)}
.level-emblem span{font-size:10px;font-weight:900;letter-spacing:.13em;align-self:end}
.level-emblem strong{font-size:31px;line-height:1;align-self:start}
.learning-progress-head{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin:4px 0 11px}
.learning-progress-head strong{color:#d9f4f5}
.learning-progress-head span{color:#9abace}
.learning-track{height:9px;border-radius:100px;overflow:hidden;background:#203e5e}
.learning-track span{display:block;height:100%;border-radius:100px;background:linear-gradient(90deg,#44c5e2,#8af0c9);transition:width .3s}
.stage-path{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:25px}
.stage-node{min-width:0;border:1px solid rgba(149,207,235,.16);border-radius:14px;padding:16px 12px;background:rgba(115,174,210,.055);display:flex;flex-direction:column;gap:7px}
.stage-node.current{border-color:#73ded9;background:rgba(104,219,211,.11)}
.stage-node.complete{border-color:rgba(114,211,164,.3)}
.stage-node.locked{opacity:.58}
.stage-icon{font-size:23px}
.stage-node strong{font-size:12px;color:#ebf8fb;line-height:1.2}
.stage-node small{font-size:10px;color:#a2bdcd;line-height:1.2}
.stage-node.current small{color:#88e9df;font-weight:800}
.level-up{margin-top:12px;padding:14px 17px;border-radius:12px;color:#09283c;background:linear-gradient(100deg,#ffe39e,#8eeacb);font-weight:850;animation:pop .3s ease-out}
@keyframes pop{from{transform:scale(.97);opacity:.5}to{transform:scale(1);opacity:1}}
.leaderboard-panel{margin:0 0 45px}
.result-layout .leaderboard-panel{margin:18px 0 0;text-align:left}
.leaderboard-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}
.leaderboard-head h2{margin:7px 0 11px}
.leaderboard-head .panel-sub{margin:0 0 22px}
.leaderboard-tabs{display:flex;gap:4px;flex:none;padding:4px;border:1px solid rgba(143,211,237,.18);border-radius:11px;background:rgba(5,21,39,.42)}
.leaderboard-tab{border:0;border-radius:8px;background:transparent;color:#9bbbd0;font-size:12px;font-weight:800;padding:9px 13px}
.leaderboard-tab.active{background:#6edbdc;color:#0d2b40}
.leaderboard-body{color:#9eb9cd;font-size:13px}
.leaderboard-list{border:1px solid rgba(143,211,237,.13);border-radius:14px;overflow:hidden}
.leaderboard-row{display:grid;grid-template-columns:48px 37px minmax(0,1fr) auto auto;align-items:center;gap:13px;min-height:61px;padding:9px 16px;border-top:1px solid rgba(143,211,237,.12)}
.leaderboard-row:first-child{border-top:0}
.leaderboard-row.mine{background:rgba(110,219,220,.085)}
.leaderboard-rank{font-size:15px;font-weight:850;color:#b5d5e6;text-align:center}
.leaderboard-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:rgba(110,219,220,.14);color:#85e4e3;font-weight:850}
.leaderboard-person{min-width:0;display:flex;align-items:center;gap:9px}
.leaderboard-person strong{color:#eaf7ff;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.leaderboard-person small{font-size:10px;color:#85e4e3;font-weight:800}
.leaderboard-days{font-size:11px;color:#8eadc1}
.leaderboard-points{font-size:16px;color:#eaf7ff;font-weight:850;white-space:nowrap}
.leaderboard-points small{font-size:11px;color:#81a9c1;font-weight:700}
.leaderboard-own{margin-top:12px;padding-top:12px;border-top:1px dashed rgba(143,211,237,.21)}
.leaderboard-own>span{display:block;margin-bottom:8px;color:#80dbe1;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}
.leaderboard-own .leaderboard-row{border:1px solid rgba(110,219,220,.3);border-radius:12px}
.leaderboard-hint{margin:15px 2px 0;color:#93b2c4}
.leaderboard-empty{border:1px dashed rgba(143,211,237,.21);border-radius:12px;padding:25px;text-align:center}
.auth-wrap{display:grid;place-items:center;min-height:65vh}
.auth-card{padding:42px;max-width:510px;text-align:center}
.auth-icon{font-size:42px}
.auth-card h1{font-size:32px}
.auth-card p{color:#b5ccdd;line-height:1.7}
.error-message{color:#ffb39f!important}
.footer{border-top:1px solid rgba(210,233,255,.12);display:flex;justify-content:space-between;gap:16px;padding:20px 0 30px;color:#6f8da7;font-size:12px}
@media(max-width:800px){.hero,.dashboard{grid-template-columns:1fr}.hero-main{min-height:auto}.hero-side{min-height:205px}.week-grid{grid-template-columns:repeat(4,1fr)}.stage-path{gap:6px}.stage-node{padding:12px 8px}}
@media(max-width:540px){.page{padding:0 17px}.topbar{height:75px}.brand-name{font-size:11px}.user-name{display:none}.hero{margin-top:22px}.hero-main,.hero-side,.panel,.quiz-card,.result-card,.auth-card{padding:24px}.hero-main h1{font-size:43px}.week-grid{grid-template-columns:repeat(2,1fr)}.week-day{min-height:68px}.quiz-layout,.result-layout{margin-top:27px}.result-notes{grid-template-columns:1fr}.footer span:last-child{display:none}.leaderboard-head{flex-direction:column}.leaderboard-tabs{margin-bottom:16px}.leaderboard-row{grid-template-columns:31px 31px minmax(0,1fr) auto;gap:7px;padding:9px}.leaderboard-days{display:none}.leaderboard-person{display:block}.leaderboard-person small{display:block;margin-top:3px}.learning-heading h2{font-size:18px}.level-emblem{width:58px;height:58px;border-radius:15px}.level-emblem strong{font-size:25px}.stage-path{display:flex;overflow-x:auto;margin-right:-24px;padding:0 24px 8px 0;scroll-snap-type:x mandatory}.stage-node{min-width:116px;scroll-snap-align:start}}
