:root{--ink:#2e3d46;--muted:#718591;--line:#dbe7eb;--blue:#4f8fe1;--blue-dark:#2d72cc;--green:#52b77e;--gold:#ffc84d;--red:#df6363;--mist:#f2f8fb;--white:#fff}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--mist)}button{font:inherit;cursor:pointer}button:focus-visible,input:focus-visible,.typing-surface:focus-visible{outline:3px solid #73b4f0;outline-offset:3px}[hidden]{display:none!important}
.site-header{height:58px;background:#fff;border-bottom:1px solid #d9e3e8;display:flex;align-items:center;padding:0 max(26px,calc((100vw - 1440px)/2));gap:34px;position:sticky;top:0;z-index:5}.logo-button{display:flex;align-items:center;gap:10px;border:0;background:transparent;color:#32424a;font-size:23px;font-weight:800;letter-spacing:-.06em}.brand-icon{display:grid;place-items:center;width:31px;height:31px;background:#5c9be5;color:#fff;border-radius:7px;font-size:24px;line-height:1}.header-nav{display:flex;align-items:stretch;height:100%;gap:25px}.header-nav button{border:0;border-bottom:3px solid transparent;background:transparent;font-size:13px;font-weight:600;color:#7b8d94;padding:3px 1px 0}.header-nav button.nav-active{color:#317bce;border-bottom-color:#4f8fe1}.header-right{margin-left:auto;display:flex;align-items:center;gap:16px}.layout-badge{color:#8aa0a7;font-size:11px;font-weight:600}.header-right button{height:35px;width:35px;border:0;background:transparent;color:#758991;font-size:21px}.primary-button{border:0;border-radius:8px;background:#4f91e1;color:#fff;padding:12px 19px;font-size:13px;font-weight:700;box-shadow:0 3px 9px #448bd93d}.primary-button:hover{background:#397dcd}
.page-view{min-height:calc(100vh - 58px)}.map-hero{padding:42px max(28px,calc((100vw - 1380px)/2)) 34px;background:linear-gradient(105deg,#e9f6fa,#eef7fd 60%,#e7f4ec);display:flex;justify-content:space-between;align-items:center;gap:30px}.overline{display:block;color:#5696c7;font-size:10px;font-weight:800;letter-spacing:.18em}.map-hero h1{font-size:clamp(26px,3vw,38px);letter-spacing:-.035em;margin:9px 0 8px}.map-hero p{font-size:14px;color:#708992;margin:0}.summary-strip{display:flex;gap:32px;padding:16px max(28px,calc((100vw - 1380px)/2));background:#fff;border-bottom:1px solid var(--line)}.summary-strip div{display:flex;align-items:baseline;gap:6px}.summary-strip strong{font-size:17px;color:#384c57}.summary-strip span{font-size:12px;color:#82969f}.course-layout{max-width:1380px;margin:0 auto;display:grid;grid-template-columns:240px minmax(0,1fr);gap:34px;padding:32px 26px 70px}.section-rail{background:#fff;border:1px solid var(--line);border-radius:10px;padding:15px 10px;align-self:start;max-height:calc(100vh - 116px);overflow-y:auto;position:sticky;top:80px;scrollbar-width:thin}.rail-title{font-size:10px;font-weight:800;letter-spacing:.15em;color:#98abb1;padding:7px 12px 13px}.section-link{border:0;background:transparent;border-radius:7px;text-align:left;width:100%;display:flex;gap:10px;align-items:center;color:#718993;font-size:12px;font-weight:600;padding:10px 11px}.section-link:hover{background:#edf6fb}.section-link.active{background:#e4f1fc;color:#2f75c1}.section-link .chapter-num{width:19px;text-align:center;color:#aac1c8;font-size:10px}.section-link.active .chapter-num{color:#2f75c1}.section-link .mini-count{margin-left:auto;color:#adbdc2;font-size:10px}.course-content{min-width:0}.section-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:4px 0 24px}.section-toolbar h2{font-size:27px;letter-spacing:-.035em;margin:5px 0}.section-toolbar p{margin:0;color:#8499a2;font-size:12px}.section-arrows{display:flex;gap:7px}.section-arrows button{width:35px;height:35px;border:1px solid var(--line);background:#fff;border-radius:7px;color:#5794c7;font-size:23px;line-height:1}.section-arrows button:disabled{opacity:.35}.lesson-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.lesson-card{height:151px;display:flex;flex-direction:column;border:1px solid #d3e0e6;background:#fff;border-radius:5px;box-shadow:0 3px 6px #334b561a;overflow:hidden;text-align:left;padding:0;color:#344750;position:relative;transition:transform .15s,box-shadow .15s}.lesson-card:hover{transform:translateY(-3px);box-shadow:0 8px 18px #334b5628}.lesson-card.locked{opacity:.54}.lesson-card .card-main{flex:1;display:flex;align-items:center;justify-content:center;position:relative;padding-top:16px;background:linear-gradient(#fff,#f9fcfd)}.lesson-card .card-index{position:absolute;left:9px;top:6px;font-size:23px;color:#4b606b;font-weight:800}.card-icon{font-size:35px;color:#83949d;line-height:1}.card-icon.blue{color:#5d97db}.card-icon.green{color:#66b889}.card-icon.orange{color:#e2ae4c}.card-stars{position:absolute;bottom:5px;left:0;right:0;text-align:center;color:#e8ad3f;font-size:20px;letter-spacing:-3px;text-shadow:0 1px 1px #a9782b}.card-stars .empty{color:#dbe3e6;text-shadow:none}.card-label{height:38px;border-top:1px solid #e3e9eb;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 5px;font-size:11px;line-height:1.2;color:#7a8b91}.card-lock{position:absolute;right:9px;top:8px;color:#aab9bd;font-size:15px}
.practice-toolbar{height:48px;background:#fff;border-bottom:1px solid #e0e8ec;display:flex;align-items:center;padding:0 21px;gap:18px}.practice-toolbar>button{border:0;background:transparent;color:#6b7e87;font-size:12px;font-weight:600}.practice-toolbar>button:first-letter{font-size:18px}.practice-toolbar>div:nth-child(2){font-size:13px;color:#667a83}.tool-actions{margin-left:auto;display:flex;gap:12px}.tool-actions button{border:0;background:transparent;width:32px;height:32px;color:#819098;font-size:21px}.tool-actions button:hover,.tool-actions button.off{color:#4f8fe1}.practice-wrap{max-width:1050px;margin:0 auto;padding:25px 30px 40px}.lesson-meta{display:flex;justify-content:space-between;font-size:11px;font-weight:700;letter-spacing:.08em;color:#7da3bd}.lesson-intro{text-align:center;padding:14px 0 13px}.lesson-intro>span{font-size:10px;font-weight:800;letter-spacing:.17em;color:#5a95c8}.lesson-intro h1{font-size:24px;margin:7px 0 6px;color:#3b4c55;letter-spacing:-.025em}.lesson-intro p{font-size:12px;color:#84979f;margin:0}.lesson-progress{height:5px;background:#dfebf1;border-radius:8px;margin:18px 0 12px}.lesson-progress div{height:100%;width:0;background:#70bb90;border-radius:8px;transition:width .15s}.typing-surface{background:#fff;border:1px solid #e5edf0;border-radius:10px;min-height:190px;padding:23px 28px 16px;outline:0;cursor:text}.typing-text{font-family:Consolas,"Cascadia Mono",monospace;font-size:clamp(25px,2.4vw,32px);line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;letter-spacing:.012em;color:#9aa6ad}.typing-text .typed{color:#4cbd7d}.typing-text .mistake{color:#d95f63;background:#ffedf0}.typing-text .active{color:#465c67;border-bottom:3px solid #4f8fe1;background:#e8f3fd;border-radius:3px 3px 0 0}.typing-text .active.wrong-now{color:#d94e55;border-bottom-color:#d94e55;background:#ffedf0}.typing-status{min-height:20px;margin-top:9px;color:#88a1ad;font-size:12px}.typing-status.warning{color:#c9584f}.live-stats{display:flex;justify-content:center;gap:55px;padding:14px 0 10px}.live-stats>div{display:flex;align-items:baseline;gap:7px}.live-stats span{font-size:10px;font-weight:700;letter-spacing:.11em;color:#9aaab1}.live-stats strong{font-size:15px;color:#59737f}.live-stats b{font-size:20px}.finger-hint{background:#eaf4fa;border:1px solid #d7eaf7;border-radius:8px;padding:10px 15px;display:flex;align-items:center;gap:13px;margin:0 auto 14px;max-width:700px}.finger-dot{color:#4f8fe1;font-size:19px}.finger-hint>div:nth-child(2){flex:1}.finger-hint span{display:block;font-size:9px;letter-spacing:.12em;font-weight:800;color:#86a6ba}.finger-hint strong{display:block;color:#4c7184;font-size:13px;font-weight:600;margin-top:3px}.hint-key{min-width:35px;height:35px;background:#5c9ce4;color:white;border-radius:5px;display:grid;place-items:center;font-size:21px;font-weight:700;padding:0 7px}.keyboard-stage{width:min(100%,780px);margin:0 auto;border-radius:8px}.keyboard-topline{display:flex;justify-content:space-between;align-items:baseline;margin:0 3px 8px}.keyboard-topline strong{color:#7b8f98;font-size:11px}.keyboard-topline span{color:#a5b6bd;font-size:10px}.keyboard-body{display:flex;gap:8px;align-items:stretch}.keyboard{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.key-row{display:flex;gap:4px;width:100%;height:38px}.key{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-width:0;border:1px solid #aebfc7;border-bottom:3px solid #aebfc7;border-radius:4px;background:#fff;color:#657681;font-family:Arial,sans-serif;font-size:14px}.key.special{font-size:9px}.key .sub{position:absolute;right:2px;top:1px;color:#90a8b6;font-size:7px}.key.home{background:#f3f8fa}.key.target{background:#5b95e0;border-color:#3f79c7;color:white;box-shadow:0 0 0 2px #bdd7f5}.key.target .sub{color:#e4f2ff}.key.shift-target{background:#8cb9eb;border-color:#6799d6;color:white}.key.pressed{transform:translateY(2px);border-bottom-width:1px}.key.wide{flex:1.6}.key.xwide{flex:2.1}.key.space{flex:5.5}.nav-cluster{display:grid;grid-template-rows:repeat(3,38px) 1fr;gap:4px;width:42px;flex:none}.nav-cluster>div:not(.arrow-pad){display:grid;place-items:center;border:1px solid #b4c3ca;border-bottom:3px solid #b4c3ca;border-radius:4px;background:#fff;color:#748a94;font-size:9px}.arrow-pad{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,19px);gap:2px;align-self:end}.arrow-pad span{display:grid;place-items:center;border:1px solid #b4c3ca;background:#fff;border-radius:2px;color:#7f929a;font-size:11px}.arrow-pad span:empty{border:0;background:none}.hands-wrap{width:100%;height:190px;position:relative;margin-top:-8px}.hands-wrap svg{width:100%;height:100%;overflow:visible}.hand-outline path{stroke:#aab7bf;stroke-width:3;fill:#eff4f6;stroke-linecap:round;stroke-linejoin:round}.finger-lines path{stroke:#b5c2c9;stroke-width:13;stroke-linecap:round;stroke-linejoin:round;fill:none;opacity:.8;transition:stroke .12s,stroke-width .12s}.finger-lines path.active{stroke:#4f8fe1;stroke-width:16;opacity:.95}.thumb-line{stroke:#b5c2c9;stroke-width:2;fill:none}.hand-label{position:absolute;bottom:1px;font-size:9px;font-weight:700;letter-spacing:.15em;color:#a4b4bb}.left-label{left:21%}.right-label{right:21%}.practice-footer{display:flex;justify-content:space-between;margin-top:4px}.practice-footer button{border:0;background:transparent;color:#6e9ece;font-size:12px;font-weight:600;padding:8px}.practice-footer button:disabled{opacity:.3}
.stats-page{max-width:1040px;margin:0 auto;padding:55px 25px}.stats-page h1{font-size:36px;letter-spacing:-.04em;margin:8px 0}.stats-page>p{color:#869ba3;font-size:13px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:33px 0}.stats-grid>div,.weak-panel{background:#fff;border:1px solid var(--line);border-radius:9px;padding:23px}.stats-grid span{display:block;font-size:10px;color:#95a8b0;font-weight:800;letter-spacing:.1em}.stats-grid strong{display:block;margin-top:9px;color:#4f86bd;font-size:27px}.weak-panel{margin-bottom:22px}.weak-panel h2{font-size:20px;margin:0 0 4px}.weak-panel p{font-size:12px;color:#8aa0a8}.weak-key{display:flex;gap:12px;align-items:center;margin-top:12px}.weak-key b{width:33px;height:33px;display:grid;place-items:center;background:#ebf4fb;border:1px solid #cbdeec;border-radius:5px;color:#427ab4}.weak-key span{font-size:12px;color:#728995}.weak-bar{flex:1;height:6px;background:#edf2f3;border-radius:5px}.weak-bar i{display:block;height:100%;background:#e7a958;border-radius:5px}
.overlay{position:fixed;inset:0;background:#263c49a6;z-index:20;display:grid;place-items:center;padding:20px}.dialog{background:#fff;box-shadow:0 20px 70px #1b374955;border-radius:10px;position:relative}.dialog-close{position:absolute;right:14px;top:10px;border:0;background:none;color:#99a8b0;font-size:25px}.settings-dialog{width:min(100%,480px);padding:31px}.settings-dialog h2{margin:0 0 21px;font-size:22px}.settings-dialog label{display:block;padding:12px 0;border-top:1px solid #edf1f3;color:#506975;font-size:14px}.settings-dialog input{accent-color:#4d94dc;margin-right:9px}.settings-dialog p{color:#8ca0a8;font-size:12px;line-height:1.5}.result-dialog{width:min(100%,580px);padding:31px 35px;text-align:center}.result-stars{font-size:37px;color:#eeb73e;letter-spacing:3px}.result-stars .empty{color:#d9e0e3}.result-dialog h2{font-size:25px;margin:10px 0 5px}.result-points{display:block;font-size:32px;color:#4f8fe1}.result-dialog>p{font-size:13px;color:#8298a0}.result-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px;text-align:left;border-top:1px solid #e4ecee;border-bottom:1px solid #e4ecee;padding:19px 0;margin:22px 0}.result-columns>div+div{border-left:1px solid #e4ecee;padding-left:22px}.result-columns span{font-size:10px;color:#8da3ac;font-weight:800;letter-spacing:.12em}.result-columns p{font-size:13px;color:#6f8590}.result-columns strong{color:#36586b}.result-buttons{display:flex;gap:10px}.result-buttons button{flex:1;padding:11px;border-radius:7px;font-size:12px;font-weight:700}.result-buttons>button:first-child{background:#fff;color:#548fc7;border:1px solid #cde1ef}.text-button{border:0;background:none;color:#88a2b0;padding:13px;margin-top:10px;font-size:12px}
@media(max-width:1120px){.lesson-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.course-layout{grid-template-columns:210px 1fr;gap:20px}.layout-badge{display:none}}@media(max-width:800px){.course-layout{display:block}.section-rail{position:static;max-height:135px;overflow:auto;margin-bottom:25px}.section-rail #section-list{display:flex;overflow-x:auto}.section-link{flex:none;width:auto;white-space:nowrap}.lesson-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.map-hero{padding:30px 20px}.summary-strip{padding:14px 20px;gap:15px;flex-wrap:wrap}.practice-wrap{padding:20px 12px}.keyboard-stage{overflow-x:auto}.keyboard-body{min-width:680px}.hands-wrap{min-width:680px}.keyboard-topline{min-width:680px}}@media(max-width:560px){.site-header{padding:0 10px;gap:16px}.logo-button{font-size:19px}.header-nav{gap:9px}.header-nav button{font-size:11px}.map-hero{display:block}.map-hero button{margin-top:20px}.lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lesson-card{height:140px}.course-layout{padding:20px 11px}.typing-surface{padding:16px 14px;min-height:170px}.typing-text{font-size:24px}.practice-toolbar>button span{display:none}.practice-toolbar{gap:7px;padding:0 9px}.practice-toolbar>div:nth-child(2){font-size:11px}.tool-actions{gap:2px}.live-stats{gap:12px;flex-wrap:wrap}.live-stats span{font-size:8px}.live-stats strong{font-size:12px}.stats-grid{grid-template-columns:repeat(2,1fr)}.result-dialog{padding:25px 18px}.result-columns{gap:10px}.result-columns>div+div{padding-left:10px}}
.typing-text{overflow-wrap:normal;word-break:normal}.typing-word{display:inline-block;white-space:nowrap}
.transfer-panel{background:#fff;border:1px solid var(--line);border-radius:9px;padding:23px;margin:0 0 22px}.transfer-panel h2{font-size:20px;margin:0 0 5px}.transfer-panel p{font-size:12px;color:#78909c;line-height:1.5}.transfer-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.transfer-actions button{border:1px solid #bfd8e8;background:#edf6fc;color:#3a7eb3;border-radius:7px;padding:10px 15px;font-size:12px;font-weight:700}.transfer-actions button:hover{background:#dceef9}.transfer-panel #transfer-status{min-height:18px;margin-bottom:0}
.daily-panel{max-width:1380px;margin:18px auto 0;padding:18px 24px;background:#fff;border:1px solid var(--line);border-radius:10px;display:grid;grid-template-columns:auto minmax(160px,1fr) auto;align-items:center;gap:26px}.daily-panel>div:first-child{display:flex;flex-direction:column;gap:4px}.daily-panel strong{font-size:20px;color:#426a86}.daily-panel span:not(.overline){font-size:11px;color:#8299a5}.daily-progress-track{height:12px;border-radius:20px;background:#e3eff5;overflow:hidden}.daily-progress-track div{height:100%;width:0;background:linear-gradient(90deg,#63a8e9,#70c29b);border-radius:20px;transition:width .2s}.daily-streak-box{display:flex;flex-direction:column;gap:4px;text-align:right}.daily-streak-box strong{color:#d88b49}.daily-history-panel{background:#fff;border:1px solid var(--line);border-radius:9px;padding:23px;margin:0 0 22px}.daily-history-panel h2{font-size:20px;margin:0 0 4px}.daily-history-panel p{font-size:12px;color:#8aa0a8}.daily-history{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-top:15px}.daily-history>div{background:#f3f7fa;border-radius:7px;padding:10px 5px;text-align:center;min-width:0}.daily-history>div.streak-day{background:#e8f6ee}.daily-history>div.goal-day{background:#d9ecfa}.daily-history b,.daily-history span{display:block;font-size:11px;color:#567286}.daily-history strong{display:block;font-size:14px;margin:5px 0;color:#3f6882}@media(max-width:800px){.daily-panel{margin:12px 12px 0;grid-template-columns:1fr auto;gap:12px}.daily-progress-track{grid-column:1/-1;grid-row:2}.daily-history{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:560px){.daily-panel{padding:15px}.daily-panel strong{font-size:16px}.daily-panel span:not(.overline){font-size:9px}.daily-history{grid-template-columns:repeat(4,minmax(0,1fr))}.live-stats{gap:10px}}
.game-panel{border-radius:13px;overflow:hidden;background:#1e3b64;color:#fff;box-shadow:0 12px 32px #244d7455;font-family:"Segoe UI",Arial,sans-serif}.game-hud{display:flex;justify-content:space-between;gap:15px;padding:14px 19px;background:#152c4b}.game-hud>div{display:flex;flex-direction:column;gap:3px}.game-hud span{font-size:10px;letter-spacing:.13em;color:#9ac9ec;font-weight:800}.game-hud strong{font-size:15px}.game-hud-right{text-align:right}.game-hud #game-hearts{color:#ff8a91;font-size:18px;letter-spacing:3px;line-height:1}.game-scene{height:278px;position:relative;overflow:hidden;background:radial-gradient(circle at 15% 60%,#4d83b0 0,#315d92 45%,#203f70 100%)}.game-stars{position:absolute;top:8px;left:0;width:100%;text-align:center;letter-spacing:2.5em;color:#c5eaff80;font-size:15px;pointer-events:none}.game-target{position:absolute;z-index:3;top:32px;left:15px;right:15px;display:flex;justify-content:center;gap:5px;white-space:nowrap}.game-target span{min-width:34px;height:48px;display:grid;place-items:center;border-radius:8px;background:#cbe6fa7a;color:#ddecf7;font:700 clamp(22px,3.2vw,32px) Consolas,"Cascadia Mono",monospace;box-shadow:0 3px 0 #12375970}.game-target .game-letter-active{background:#fff;color:#234a75;transform:translateY(-4px);box-shadow:0 6px 0 #12375970}.game-target .game-letter-done{background:#90efb8;color:#175541;opacity:.7}.game-target .game-letter-wrong{background:#ff8b92;color:#651d2b}.game-timer{position:absolute;z-index:2;top:94px;left:22%;right:22%;height:7px;background:#142c50;border-radius:9px;overflow:hidden}.game-timer div{height:100%;width:100%;background:#7ce2ba;border-radius:9px;transition:width .2s linear}.game-danger .game-timer div{background:#ff9c83}.game-ground{position:absolute;left:0;right:0;bottom:0;height:135px;border-bottom:16px solid #163c5e;background:linear-gradient(transparent 40%,#2d7da060)}.game-ground:after{content:"";position:absolute;left:-5%;right:-5%;bottom:0;height:21px;background:#5da0b0;border-radius:50% 50% 0 0}.game-lighthouse{position:absolute;z-index:2;bottom:12px;left:11%;width:56px;height:113px}.game-tower{position:absolute;bottom:0;left:11px;width:34px;height:92px;background:linear-gradient(90deg,#d7e5e9,#fff,#bed4df);clip-path:polygon(29% 0,71% 0,100% 100%,0 100%);box-shadow:0 0 13px #f4ffff}.game-light{position:absolute;z-index:3;top:0;left:9px;width:39px;height:25px;background:#ffe087;border:6px solid #f7f4e7;border-radius:5px;box-shadow:0 0 24px #fff2a0}.game-beam{position:absolute;z-index:1;bottom:74px;left:16%;height:28px;width:0;background:linear-gradient(90deg,#ffe9a9b0,#ffe9a900);filter:blur(6px);transform:skewY(-9deg);transition:width .45s}.game-cloud{position:absolute;z-index:2;bottom:12px;right:8%;font-size:115px;line-height:1;color:#334a75;text-shadow:0 0 18px #14294d;transition:right .45s}.game-bottom{display:flex;justify-content:space-between;gap:12px;padding:12px 18px;background:#23486f;font-size:12px;font-weight:700;color:#d0e9f8}.game-bottom #game-combo{color:#ffdf8d}.game-panel+.typing-text[hidden]+.typing-status{margin-top:14px}.typing-surface:has(.game-panel:not([hidden])){padding:15px;min-height:0;cursor:default}@media(max-width:560px){.game-hud{padding:11px}.game-scene{height:235px}.game-target{gap:2px}.game-target span{min-width:26px;height:39px;font-size:21px}.game-timer{top:82px;left:13%;right:13%}.game-cloud{font-size:86px}.game-lighthouse{left:5%}.game-bottom{font-size:10px}}
.game-hud #game-hearts{letter-spacing:.03em;font-size:19px}
.goal-note{font-size:12px;line-height:1.5;color:#7591a2;margin:8px 0 0;text-align:right}.goal-note:empty{display:none}.result-columns .goal-note{font-size:11px;color:#7591a2;text-align:left}.game-story-panel{position:relative;z-index:4;max-width:600px;text-align:center;padding:6px 22px 18px;background:#203f70ed;border:1px solid #93bcdc66;border-radius:12px;box-shadow:0 8px 25px #142b5055}.game-story-panel>span{display:block;font-size:32px;color:#ffdf8d}.game-story-panel h2{font-size:19px;line-height:1.4;margin:8px 0;color:#fff}.game-story-panel p{font-size:16px;line-height:1.65;margin:10px 0 18px;color:#e0eef8}.game-story-panel+.game-context{margin-top:10px;font-size:12px;color:#b9d2e5}.game-scene:has(.game-story-panel:not([hidden])){height:auto;min-height:365px;padding-bottom:80px}.game-story-panel .primary-button{background:#f6d781;color:#294766;box-shadow:none}.game-story-panel .primary-button:hover{background:#ffe69e}@media(max-width:560px){.game-story-panel{padding:10px 14px 18px}.game-story-panel h2{font-size:17px}.game-story-panel p{font-size:15px}.goal-note{text-align:left}}
.game-scene{height:350px;display:flex;flex-direction:column;align-items:center;padding:25px 14px 0}.game-target{position:relative;top:auto;left:auto;right:auto;width:100%;flex-wrap:wrap;gap:9px 5px}.game-target>.game-word{display:inline-flex;gap:3px;min-width:0;height:auto;border-radius:0;background:transparent;box-shadow:none;font:inherit;color:inherit;white-space:nowrap}.game-word>span{min-width:clamp(18px,2.8vw,26px);height:39px;font-size:clamp(19px,2.5vw,25px)}.game-target .game-space{min-width:14px;width:14px;font-size:14px}.game-target .game-space:not(.game-letter-active){background:transparent;box-shadow:none;color:#aac7df}.game-timer{position:relative;top:auto;left:auto;right:auto;width:65%;margin-top:20px;flex:none}.game-bottom{flex-wrap:wrap;align-items:baseline}.game-bottom #game-next{max-width:100%;overflow-wrap:normal}@media(max-width:560px){.game-scene{height:340px;padding:20px 8px 0}.game-target{gap:8px 4px}.game-word>span{min-width:18px;height:34px;font-size:20px}.game-target>.game-word{gap:2px}.game-timer{top:auto;left:auto;right:auto;width:80%;margin-top:18px}.game-bottom{font-size:11px}}
.game-context{position:relative;z-index:3;max-width:100%;min-height:25px;text-align:center;font-size:17px;line-height:1.7;color:#d3e6f7}.game-context span{white-space:nowrap}.game-context-active{color:#fff;background:#4c7ca8;border-bottom:2px solid #ffe087;border-radius:3px;padding:2px 5px}.game-context-done{color:#95bbd5}.game-target{margin-top:19px;min-height:48px;flex-wrap:nowrap;gap:5px}.game-countdown{position:relative;z-index:3;color:#b7d6e9;font:12px Consolas,monospace;margin-top:7px}.game-scene{height:350px}@media(max-width:560px){.game-context{font-size:15px}.game-target{gap:3px}.game-target>span{min-width:24px;height:40px;font-size:24px}.game-scene{height:340px}}

.primary-button:disabled{background:#bcc9d0;color:#f7f9fa;box-shadow:none;cursor:not-allowed}.primary-button:disabled:hover{background:#bcc9d0}.practice-next{text-align:right;max-width:270px}.practice-next small{display:block;max-width:270px;color:#b26d55;font-size:11px;line-height:1.4}.lesson-card.needs-practice{border-color:#e8caad}.card-needs-practice{position:absolute;right:7px;top:7px;max-width:65%;color:#ae7651;font-size:9px;font-weight:700;text-align:right}.result-buttons>.result-next-wrap{flex:1;min-width:0}.result-next-wrap>button{width:100%}.result-next-wrap>p{margin:7px 2px 0;color:#b35e53;font-size:12px;line-height:1.4;text-align:left}.lesson-warning-dialog{width:min(100%,470px);padding:30px 32px}.lesson-warning-dialog h2{margin:0 0 12px;color:#3b4c55;font-size:23px}.lesson-warning-dialog p{color:#617984;font-size:14px;line-height:1.55}.lesson-warning-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px}.lesson-warning-actions button:first-child{border:1px solid #cde1ef;border-radius:8px;background:#fff;color:#548fc7;padding:11px 15px;font-size:13px;font-weight:700}@media(max-width:560px){.result-buttons{align-items:flex-start}.lesson-warning-dialog{padding:25px 20px}.practice-next small{max-width:170px}}

.live-stats .typing-pause-status{display:block;margin-top:5px;color:#997133;font-size:10px;line-height:1.4;max-width:190px}.live-stats .typing-pause-status[hidden]{display:none}

.stats-explanation,.attempts-panel p{color:#617984;font-size:13px;line-height:1.5}.attempts-panel{margin:24px 0;padding:24px;background:#fff;border:1px solid #dce9ed;border-radius:14px}.attempts-panel h2{margin-top:0}.attempts-panel #attempt-history{overflow-x:auto}.attempts-panel table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}.attempts-panel td,.attempts-panel th{padding:10px;border-bottom:1px solid #e8eff2;white-space:nowrap}.result-improvement{font-size:12px;color:#557788;line-height:1.5}.weak-key>span{font-size:11px}.game-route{position:relative;width:min(90%,580px);margin-top:38px;z-index:2}.route-rail{position:relative;height:7px;background:#90adbe;border-radius:6px}.route-rail i{display:block;height:100%;background:#f6d781;border-radius:6px;transition:width .2s}.route-rail>span{position:absolute;top:-30px;font-size:29px;transform:translateX(-50%);transition:left .2s}.route-stops{display:flex;justify-content:space-between;color:#dfeef7;font-size:12px;margin-top:14px}.route-mode .game-ground{display:none}.route-mode{background:linear-gradient(145deg,#285260,#347e77)}.live-stats [title]{cursor:help}

.summary-strip.skill-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding-top:20px;padding-bottom:20px}.summary-strip.skill-summary>div{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}.skill-summary span{font-weight:600;color:#6b818b}.summary-strip.skill-summary strong{font-size:25px;color:#3c6f9b;line-height:1.25}.skill-summary small,.stats-grid small{display:block;color:#728793;font-size:11px;line-height:1.5}.stats-grid{margin-bottom:18px}.stats-grid strong{font-size:25px;white-space:nowrap}.stats-grid small{margin-top:7px}.rewards-panel,.focus-panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:24px;margin:22px 0}.rewards-panel h2,.focus-panel h2{font-size:20px;margin:0 0 12px}.rewards-panel p,.focus-panel>p{font-size:12px;color:#69818b;line-height:1.6}.rewards-values{display:flex;gap:40px;flex-wrap:wrap}.rewards-values>div{display:flex;flex-direction:column;gap:5px}.rewards-values strong{font-size:23px;color:#a47823}.rewards-values span{font-size:12px;color:#728793}.focus-lessons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:18px 0}.focus-card{display:flex;flex-direction:column;border:1px solid #dce8ee;border-radius:8px;padding:16px;background:#f8fbfd;min-width:0}.focus-card h3{font-size:14px;margin:0 0 8px;line-height:1.5}.focus-card p{font-size:12px;line-height:1.6;margin:0 0 12px;color:#5d7885}.focus-card .focus-targets{color:#467daf;font-weight:600}.focus-excerpt{flex:1}.focus-card small{font-size:11px;line-height:1.6;color:#728b98}.focus-card button{border:1px solid #c5ddec;background:#fff;color:#3d7bb6;border-radius:6px;padding:10px 8px;margin-top:14px;font-size:12px;font-weight:600}.focus-card button:hover{background:#e9f3fb}.focus-note{margin-bottom:0}.focus-session-banner{padding:12px 16px;border:1px solid #cae2f3;border-radius:8px;background:#eaf5fc;color:#467a9d;font-size:13px;line-height:1.5;text-align:center}.focus-panel .focus-completion{background:#edf8f1;border:1px solid #cde8d7;border-radius:7px;padding:12px;color:#397750}.weak-key b{width:auto;min-width:33px;padding:0 5px;flex-shrink:0}.weak-bar{min-width:25px}
@media(max-width:800px){.summary-strip.skill-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.focus-lessons{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.focus-card .focus-excerpt{max-width:640px}}
@media(max-width:560px){.stats-page{padding:32px 16px}.stats-grid{gap:10px}.stats-grid>div{padding:16px}.stats-grid strong{font-size:21px}.rewards-panel,.focus-panel{padding:18px}.summary-strip.skill-summary strong{font-size:22px}.rewards-values{gap:22px}}

.guest-note{margin:0;padding:11px max(28px,calc((100vw - 1380px)/2));background:#e9f3fc;color:#385b72;font-size:13px;line-height:1.5;border-bottom:1px solid #d0e0ed}
.site-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:20px max(28px,calc((100vw - 1380px)/2));background:#fff;border-top:1px solid #d9e3e8;color:#526b79;font-size:12px}.site-footer nav{display:flex;gap:18px;flex-wrap:wrap}.site-footer a{color:#236cbb;text-decoration:none;font-weight:600}.site-footer a:hover{text-decoration:underline}.site-footer a:focus-visible,.profile-label select:focus-visible{outline:3px solid #73b4f0;outline-offset:3px}.settings-dialog .profile-label{font-weight:700}.profile-label select{display:block;width:100%;margin-top:9px;padding:9px 11px;border:1px solid #9bb4c2;border-radius:6px;background:#fff;color:#31444e;font:inherit}
.typing-text{color:#61737c}
.typing-text .typed{color:#187a50}
.skill-summary small,.stats-grid small,.card-label{color:#536a75}
@media(max-width:800px){.guest-note{padding:11px 20px}}
.save-warning{margin:0;padding:12px max(28px,calc((100vw - 1380px)/2));background:#fff1db;color:#70420d;border-bottom:1px solid #e5c79a;font-size:14px;line-height:1.5}
.save-warning button{margin-left:9px;padding:5px 9px;border:1px solid #a77730;border-radius:5px;background:#fff;color:#70420d;font-weight:700}.save-warning button:hover{background:#fff9ed}
.save-warning[hidden]{display:none}
@media(max-width:800px){.save-warning{padding:12px 20px}}
