@import"https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Barlow:wght@400;500;600;700;800&display=swap";:root{color-scheme:dark;--bg: #040c11;--panel: #06131b;--panel2: #081b23;--border: #153844;--accent: #39f28a;--accent2: #00dba1;--text: #f4f7f5;--muted: #9bb1bf;--radius: 14px;--sidebar: 244px;font-family:Barlow,Arial,sans-serif;font-size:16px;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 42% 0%,var(--theme-panel-128, #06212a80),transparent 45%),var(--bg);min-height:100vh}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit;border:0;background:none}a{color:inherit;text-decoration:none}button{transition:background .18s,transform .18s,border-color .18s,box-shadow .18s}button:active{transform:translateY(1px)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button:disabled{opacity:.45;cursor:not-allowed}h1,h2,h3,p{margin:0}h2{font-size:20px;font-weight:600}h3{font-size:16px;font-weight:600}p{line-height:1.5}small,.muted{color:var(--muted)}small{font-size:13px}svg.icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.skip-link{position:fixed;top:-60px;left:16px;background:var(--accent);color:var(--ui-on-accent, #00130b);z-index:100;padding:12px}.skip-link:focus{top:10px}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:var(--theme-bg-232, #020b10e8);border-right:1px solid var(--ui-border, #10252c);z-index:30;overflow:hidden}.brand{display:block;width:208px;height:92px;margin:17px auto 19px;background:url(assets/images/reference.png) -26px -14px / 1536px 1024px no-repeat}.sidebar nav{display:grid;gap:4px;padding:0 22px;position:relative;z-index:2}.nav-item{display:flex;align-items:center;gap:21px;min-height:50px;padding:12px 15px;color:var(--ui-muted, #adbdcd);border-left:2px solid transparent;border-radius:10px;font-size:15px;text-align:left}.nav-item .icon{color:var(--ui-muted, #90a3ba)}.nav-item:hover{background:var(--ui-panel, #0b242c);color:var(--ui-text, white)}.nav-item.active{color:var(--ui-text, #fff);background:linear-gradient(90deg,var(--ui-panel, #0b392d),var(--ui-panel, #063039));border-color:var(--ui-accent, #76ff9e)}.nav-item.active .icon{color:var(--ui-accent, #80fba9)}.sidebar-art{position:absolute;bottom:-23px;left:0;width:235px;height:260px;background:url(assets/images/reference.png) 0 -746px/1536px 1024px;opacity:.65;mask-image:linear-gradient(transparent,#000 25%)}.sidebar-caption{position:absolute;bottom:120px;left:73px;text-align:center;font-family:Barlow Condensed,sans-serif;font-weight:500;letter-spacing:1.3px;font-size:15px;color:var(--ui-accent, #36ffc0);background:var(--ui-bg, #031015);padding:5px 4px;transform:rotate(-5deg)}.sidebar-caption span{display:block;font-size:29px;margin-bottom:6px}.workspace{margin-left:var(--sidebar);padding:0 24px 24px}.topbar{height:65px;display:flex;align-items:center;justify-content:space-between;position:relative}.breadcrumb{font-size:11px;color:var(--ui-muted, #547580);letter-spacing:2px}.top-actions{display:flex;align-items:center;gap:24px}.icon-button{display:grid;place-items:center;width:35px;height:35px;border-radius:8px;font-size:28px}.icon-button:hover{background:var(--ui-panel, #133039)}.currency{color:var(--ui-warn, #ffe768);font-size:16px;font-weight:600;white-space:nowrap}.profile-toggle{display:flex;align-items:center;gap:12px}.avatar{display:inline-block;width:64px;height:64px;border-radius:50%;border:2px solid var(--accent2);background:url(assets/images/reference.png) -1004px -61px / 1290px 860px no-repeat;flex:none}.avatar.small{width:36px;height:36px;background-size:737px 491px;background-position:-574px -35px}.profile-menu{position:absolute;right:0;top:56px;z-index:50;background:var(--ui-panel, #0c2028);border:1px solid var(--border);padding:7px;border-radius:10px;box-shadow:0 16px 50px var(--theme-shadow-136, #0008);width:190px}.profile-menu button{display:block;width:100%;text-align:left;padding:12px;border-radius:5px}.profile-menu button:hover{background:var(--ui-raised, #17383b)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 338px;gap:16px;align-items:start}#main,#right-column{display:grid;gap:18px;min-width:0}#main{outline:none}#right-column{gap:14px}.panel{border:1px solid var(--border);border-radius:var(--radius);background:linear-gradient(120deg,var(--theme-panel-181, #071720b5),var(--theme-bg-223, #020d15df));box-shadow:0 4px 20px var(--theme-shadow-16, #00000010);min-width:0}.panel-padding{padding:19px 20px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.text-button{font-size:13px;color:var(--ui-accent, #25ebcd);display:inline-flex;align-items:center;gap:12px;white-space:nowrap;padding:3px 0}.text-button:hover{color:var(--ui-accent, #8affce)}.text-button .icon{width:16px;height:16px}.art{position:relative;overflow:hidden;isolation:isolate}.art img{position:absolute;max-width:none;pointer-events:none;user-select:none}.hero{height:255px;position:relative;overflow:hidden;display:flex;align-items:center}.hero:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 57% 110%,var(--theme-raised-89, #00674b59),transparent 65%)}.hero-art{position:absolute;right:0;bottom:0;width:58%;height:100%;mask-image:linear-gradient(90deg,transparent,#000 14%)}.hero-art img{width:301.18%;left:-125.88%;top:0}.hero-copy{position:relative;z-index:2;padding:30px 32px;width:70%}.hero-copy>p:first-child{font-size:16px;margin-bottom:1px}.hero h1{font-size:clamp(27px,2.5vw,42px);font-weight:700;letter-spacing:-.8px;margin-bottom:14px;white-space:nowrap}.crown{color:var(--ui-warn, #ffe453);display:inline-block;vertical-align:middle;margin-left:8px}.crown .icon{width:33px;height:33px}.hero-subtitle{font-size:15px;color:var(--ui-text, #d7edf1)}.hero-buttons{display:flex;align-items:center;gap:14px;margin-top:28px}.button{display:inline-flex;justify-content:center;align-items:center;gap:12px;min-height:43px;padding:10px 22px;border-radius:24px;background:linear-gradient(100deg,var(--ui-accent, #70fa94),var(--ui-accent, #2ff2b0));color:var(--ui-on-accent, #022014);font-weight:700;font-size:14px;border:1px solid transparent}.button:hover{box-shadow:0 0 22px var(--theme-shadow-38, #23e58b26);filter:brightness(1.06);transform:translateY(-2px)}.button .icon{width:18px;height:18px}.button.secondary{background:var(--theme-panel-53, #00312735);border-color:var(--ui-border, #097266);color:var(--ui-accent, #98fadb);font-weight:500}.button.outline{background:linear-gradient(0deg,var(--theme-panel-80, #00473b50),transparent);color:var(--ui-text, #d8fffa);border-color:var(--ui-accent, #00cda0)}.button.compact{min-height:30px;padding:5px 18px;font-size:12px}.button.full{width:100%}.subjects{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.subject-card{border:1px solid var(--ui-border, #204354);border-radius:10px;background:linear-gradient(125deg,var(--theme-panel-112, #09202b70),var(--ui-bg, #031019));padding:15px;display:flex;flex-direction:column;align-items:stretch;text-align:left;height:127px;position:relative;transition:.2s}.subject-card:hover,.game-card:hover{border-color:var(--ui-accent, #41bb91);transform:translateY(-3px);box-shadow:0 6px 22px var(--theme-shadow-21, #00b07515)}.subject-card:first-child{border-left:2px solid var(--ui-accent, #7cff9d)}.subject-icon{color:var(--color);font-size:35px;font-family:Georgia,serif;height:40px;line-height:35px}.subject-icon .icon{width:32px;height:32px;stroke-width:1.6}.subject-card strong{font-size:15px;font-weight:500;margin:1px 0 9px}.progress-label{text-align:right;font-size:12px;color:var(--ui-text, #c4dfeb);margin-bottom:5px}.progress{height:9px;background:var(--ui-panel, #112b39);border-radius:99px;overflow:hidden}.progress>i{display:block;height:100%;border-radius:99px;background:var(--color, linear-gradient(90deg, #3df29c, #00dca8));width:var(--progress, 0%);transition:width .6s ease}.games-panel .section-heading{margin-bottom:3px}.section-description{font-size:13px;color:var(--muted);margin-bottom:15px}.game-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.game-card{min-width:0;border:1px solid var(--ui-border, #266272);border-radius:10px;overflow:hidden;background:var(--ui-bg, #020d14);transition:.2s;display:flex;flex-direction:column}.game-art{width:100%;aspect-ratio:1.37;mask-image:linear-gradient(#000 84%,transparent)}.game-copy{padding:0 11px 11px;display:flex;flex-direction:column;flex:1}.game-copy h3{font-size:14px;font-weight:500;white-space:nowrap;letter-spacing:-.25px}.game-copy p{font-size:12px;color:var(--ui-muted, #bdccdb);line-height:1.4;margin:5px 0 7px;min-height:34px}.game-best{font-family:Barlow Condensed,sans-serif;font-size:11px;letter-spacing:.7px;color:var(--ui-muted, #6a909e);margin-bottom:8px}.game-copy .button{margin-top:auto}.bottom-widgets{display:grid;grid-template-columns:1.7fr 1fr;gap:16px}.quote{height:107px;position:relative;overflow:hidden;display:flex;align-items:flex-start;padding:22px 25px}.quote .quote-landscape{position:absolute;inset:auto 0 0;height:60px;background:url(assets/images/reference.png) center -944px/1536px 1024px;opacity:.6}.quote p{position:relative;z-index:1;font-size:13px;line-height:1.5;max-width:220px;padding-left:32px}.quote p:before{content:"“";position:absolute;left:0;top:-8px;color:var(--accent);font-size:47px;font-family:Georgia}.quote-sign{position:relative;margin-left:auto;align-self:center;white-space:nowrap;font-size:11px;color:var(--ui-accent, #41ffc2)}.quick{padding:14px 18px}.quick h3{font-size:15px;margin-bottom:9px}.quick-links{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.quick-links button{display:flex;flex-direction:column;align-items:center;gap:4px;border:1px solid var(--border);border-radius:10px;background:var(--theme-panel-101, #06202c65);padding:7px 2px;color:var(--ui-accent, #14d2ca);font-size:10px}.quick-links button:nth-child(2){color:var(--ui-accent, #ba85eb)}.quick-links button:nth-child(3){color:var(--ui-accent, #3ce9b3)}.quick-links button:nth-child(4){color:var(--ui-accent, #87b9df)}.quick-links button:hover{background:var(--ui-panel, #103d37)}.quick-links span{color:var(--ui-text, #d3e8ed)}.profile-card{padding:16px 18px;display:flex;gap:18px;align-items:center;min-height:121px}.profile-info{flex:1;min-width:0}.profile-info h3{font-size:15px;margin-bottom:8px}.profile-info .crown{margin-left:7px}.profile-info .crown .icon{width:20px;height:20px}.profile-info p{font-size:12px;margin:0 0 7px}.profile-info small{display:block;margin-top:6px;font-size:12px}.right-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.right-heading h2{font-size:16px}.right-heading .text-button{font-size:11px;gap:7px}.stats-panel{padding:14px 17px}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stat{border:1px solid var(--ui-border, #164052);border-radius:9px;background:var(--theme-panel-80, #09233050);display:flex;align-items:center;gap:13px;min-height:64px;padding:12px}.stat>.icon{width:29px;height:29px;color:var(--ui-accent, #20eea4)}.stat:nth-child(2)>.icon{color:var(--ui-bad, #f67640)}.stat:nth-child(3)>.icon{color:var(--ui-accent, #00c6eb)}.stat small{font-size:11px;display:block;white-space:nowrap;margin-bottom:4px}.stat strong{font-size:17px;font-weight:500}.current-panel{padding:16px 19px}.current-panel h2,.daily h2{font-size:16px;margin-bottom:17px}.current-subject{display:flex;gap:17px;align-items:center;margin-bottom:13px}.subject-square{display:grid;place-items:center;color:var(--ui-accent, #0fe4c4);width:47px;height:47px;border:1px solid var(--ui-border, #008d83);border-radius:9px;flex:none}.subject-square .icon{width:29px;height:29px}.current-detail{flex:1}.current-detail h3{font-size:15px;margin-bottom:8px}.current-detail h3 span{color:var(--ui-accent, #80efc4);font-weight:400}.inline-progress{display:flex;align-items:center;gap:10px}.inline-progress .progress{flex:1}.inline-progress small{color:var(--ui-accent, #32ffc0);font-size:12px}.current-panel .button{min-height:37px;font-size:12px}.daily{padding:16px 20px}.daily h2{display:flex;align-items:center;gap:17px}.daily h2 .icon{color:var(--ui-accent, #00e6c4)}.daily-content{margin-left:42px}.daily-content p{font-size:14px;margin-bottom:10px}.daily-content .inline-progress small{color:var(--ui-text, #fff);font-size:14px}.ranking-panel{padding:15px 18px 18px}.ranking-list{display:grid;gap:2px}.ranking-row{display:flex;align-items:center;gap:10px;font-size:13px;min-height:39px;padding:4px 10px;border-bottom:1px solid var(--ui-border, #10343f);background:var(--theme-panel-64, #061a2340);border-radius:8px}.ranking-number{width:15px;text-align:center}.ranking-avatar{width:27px;height:27px;border-radius:50%;background:var(--ui-raised, #164b4e);display:grid;place-items:center;font-size:11px;color:var(--ui-muted, #acf0de);border:1px solid var(--ui-accent, #378d86);flex:none}.ranking-row:nth-child(2) .ranking-avatar{background:var(--ui-raised, #153a53)}.ranking-row:nth-child(3) .ranking-avatar{background:var(--ui-raised, #583931)}.ranking-row:nth-child(4) .ranking-avatar{background:var(--ui-raised, #4b3256)}.ranking-row:nth-child(5) .ranking-avatar{background:var(--ui-raised, #664931)}.ranking-score{margin-left:auto;white-space:nowrap;color:var(--ui-text, #d0e9eb);font-variant-numeric:tabular-nums}.ranking-row:first-child{color:var(--ui-accent, #b4ffed)}.view-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 0}.eyebrow{font-size:12px;color:var(--ui-accent, #25d8af);letter-spacing:2px;margin-bottom:6px;font-weight:600}.view-header h1{font-size:32px;letter-spacing:-.6px}.view-header p{color:var(--muted);font-size:15px;margin-top:6px}.view-enter{animation:enter .25s ease-out}@keyframes enter{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}dialog{width:min(530px,calc(100% - 30px));padding:25px;border:1px solid var(--ui-border, #286757);border-radius:18px;background:var(--ui-panel, #091c22);color:var(--text);box-shadow:0 24px 100px var(--theme-shadow-170, #000a)}dialog::backdrop{background:var(--theme-bg-170, #000a);backdrop-filter:blur(5px)}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.modal-heading h2{font-size:23px}#modal-content p{color:var(--ui-muted, #bbd1d6);margin-bottom:16px}#toasts{position:fixed;bottom:22px;right:25px;z-index:100;display:grid;gap:10px;max-width:calc(100vw - 40px)}.toast{background:var(--ui-panel, #0d3029);border:1px solid var(--ui-border, #268e68);color:var(--ui-text, #d9fff0);padding:14px 22px;border-radius:12px;box-shadow:0 10px 40px var(--theme-shadow-119, #0007);animation:enter .2s;font-size:14px}.level-celebration{text-align:center;padding:20px}.level-celebration strong{display:block;font-size:70px;font-weight:800;color:var(--accent);text-shadow:0 0 40px var(--theme-shadow-64, #39f28a40)}.level-celebration span{font-size:22px;color:var(--ui-warn, #ffe276)}@media(min-width:1700px){:root{--sidebar: 260px}.workspace{max-width:1700px;margin-left:max(var(--sidebar),calc((100vw - 1440px)/2));padding-right:32px}.hero{height:285px}.subject-card{height:140px}.game-copy h3{font-size:16px}.game-copy p{font-size:14px}.game-copy .button{min-height:36px}.game-best{font-size:12px}}@media(max-width:1350px){:root{--sidebar: 210px}.sidebar nav{padding:0 14px}.brand{transform:scale(.88);transform-origin:center}.workspace{padding:0 18px 20px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 290px;gap:14px}.hero-copy{padding:24px}.hero h1{font-size:32px}.hero-buttons{gap:8px}.hero-buttons .button{padding:10px 16px;font-size:12px}.panel-padding{padding:17px 16px}.subjects{gap:9px}.subject-card{padding:12px}.game-grid{gap:8px}.game-copy{padding:0 8px 10px}.game-copy h3{font-size:12px}.game-copy p{font-size:11px}.stat{gap:9px;padding:9px}.stat small{font-size:10px}.stat>.icon{width:23px}.profile-card{gap:12px}.profile-card .avatar{width:57px;height:57px;background-size:1152px 768px;background-position:-897px -55px}.current-panel{padding:16px}.current-subject{gap:10px}.current-detail h3{font-size:13px}.bottom-widgets{grid-template-columns:1.3fr 1fr}.quote-sign{display:none}.quick{padding:14px}.quick-links{gap:6px}.sidebar-caption{left:54px}}@media(max-width:1120px){:root{--sidebar: 82px}.brand{width:66px;background-position:-29px -17px;transform:scale(.85);margin-left:7px}.nav-item{justify-content:center;padding:12px;gap:0}.nav-item span{display:none}.sidebar nav{padding:0 12px}.sidebar-caption,.sidebar-art{display:none}.dashboard-grid{grid-template-columns:minmax(0,1fr)}#right-column{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}.ranking-panel{grid-column:2/4;grid-row:2}.daily{grid-column:1;grid-row:2}.profile-card{min-height:165px}.stats-panel{grid-column:2}.current-panel{grid-column:3}.hero{height:270px}.hero h1{font-size:40px}.game-copy h3{font-size:15px}.game-copy p{font-size:13px}.stat{padding:8px;gap:5px}.stat>.icon{width:22px}.stat small{white-space:normal}.stats-panel{padding:14px 10px}.profile-card{padding:15px;gap:9px}.right-heading .text-button{font-size:10px}.ranking-list{grid-template-columns:1fr 1fr}.ranking-row{font-size:12px}.daily-content{margin-left:0}.bottom-widgets{grid-template-columns:1.6fr 1fr}.quote-sign{display:block}}@media(max-width:760px){.breadcrumb{font-size:9px;letter-spacing:1px}.hero-copy{padding:25px 20px}.hero h1{font-size:31px}.hero-art{width:60%;opacity:.8}.hero-copy{width:85%}.subjects{gap:8px}.subject-card{padding:10px}.subject-card strong{font-size:13px}.game-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.game-copy h3{font-size:14px}.game-art{aspect-ratio:1.45}.bottom-widgets{grid-template-columns:1fr}.quote-sign{display:block}#right-column{grid-template-columns:1fr 1fr}.current-panel{grid-column:1}.daily{grid-column:2;grid-row:2}.ranking-panel{grid-column:1/3;grid-row:3}.profile-card{min-height:140px}.hero-buttons .button{font-size:12px;padding:10px 12px}.game-copy p{min-height:36px}.view-header{align-items:flex-start}.view-header h1{font-size:28px}}@media(max-width:540px){:root{--sidebar: 0px}.workspace{padding:0 14px 92px}.sidebar{top:auto;bottom:0;width:100%;height:70px;border-top:1px solid var(--ui-border, #1b4044);border-right:0;background:var(--theme-bg-245, #06131af5);backdrop-filter:blur(16px);overflow:visible}.brand{display:none}.sidebar nav{display:flex;padding:5px 3px;gap:0;height:100%;overflow-x:auto}.nav-item{flex:0 0 61px;min-height:55px;display:flex;flex-direction:column;gap:4px;border-left:0;border-top:2px solid transparent;border-radius:8px;padding:7px 3px}.nav-item span{display:block;font-size:10px}.nav-item .icon{width:22px;height:22px}.nav-item.active{border-top-color:var(--accent)}.topbar{height:60px}.top-actions{gap:15px}.breadcrumb{max-width:135px;line-height:1.5}.hero{height:350px;align-items:flex-start}.hero-copy{padding:22px;width:100%}.hero h1{font-size:32px;margin-bottom:8px}.hero-subtitle{max-width:225px;font-size:14px}.hero-art{width:72%;height:210px;bottom:0;right:-15px;opacity:.85;mask-image:linear-gradient(90deg,transparent,#000 15%)}.hero-buttons{margin-top:116px;position:relative;gap:8px}.hero-buttons .button{font-size:12px;min-height:41px;padding:10px 14px}.panel-padding{padding:16px 14px}.section-heading h2{font-size:19px}.text-button{font-size:12px;gap:5px}.subjects{display:flex;overflow-x:auto;padding-bottom:5px;scroll-snap-type:x mandatory}.subject-card{flex:0 0 126px;scroll-snap-align:start;height:130px;padding:13px}.subject-card strong{font-size:14px}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.game-copy h3{font-size:14px}.game-copy p{font-size:12px}.game-copy .button{min-height:35px}.game-grid .game-card:last-child{grid-column:1/3;display:grid;grid-template-columns:1fr 1fr;align-items:center}.game-grid .game-card:last-child .game-copy{padding:10px}.game-grid .game-card:last-child .game-art{aspect-ratio:1.2}.bottom-widgets{gap:14px}.quote{padding:20px;height:108px}.quote-sign{font-size:10px}.quick-links button{font-size:12px}.quick-links{gap:12px}.quick{padding:16px}.quick h3{margin-bottom:12px}#right-column{grid-template-columns:1fr;gap:14px}#right-column>*{grid-column:auto;grid-row:auto}.profile-card{min-height:110px}.profile-info h3{font-size:17px}.stats-panel{padding:16px}.stat{padding:13px;gap:15px}.stat small{font-size:12px}.stat>.icon{width:29px}.right-heading .text-button{font-size:12px}.current-detail h3{font-size:16px}.daily-content{margin-left:42px}.ranking-list{grid-template-columns:1fr}.ranking-row{font-size:14px;min-height:43px}.view-header{flex-wrap:wrap}.view-header .button{min-height:37px}#toasts{bottom:84px;left:14px;right:14px}.toast{font-size:13px}.game-best{font-size:12px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.view-stack{display:grid;gap:18px;min-width:0}.daily-detail{font-size:11px;margin-top:8px}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 3px}.tab{padding:10px 17px;border:1px solid var(--border);border-radius:9px;color:var(--muted);background:var(--ui-panel, #081921);font-size:14px}.tab:hover{border-color:var(--ui-border, #278469);color:var(--ui-text, #e4ffed)}.tab.selected{border-color:var(--ui-accent, #35b78b);background:var(--ui-panel, #0e372b);color:var(--ui-accent, #75ffc1)}.field-label{font-size:12px;color:var(--muted);display:grid;gap:6px}input,select,textarea{width:100%;color:var(--text);background:var(--ui-bg, #05121a);border:1px solid var(--ui-border, #264750);border-radius:8px;padding:12px;outline:none;min-width:0}select{padding-right:30px;font-size:14px;max-width:100%}textarea{resize:vertical;line-height:1.5}.section-heading .field-label{max-width:55%;min-width:160px}.stage-summary{display:flex;align-items:center;gap:16px;margin:20px 0}.stage-summary>strong{margin-left:auto;font-size:34px;color:var(--accent)}.stage-summary h2{margin-bottom:7px}.notice{background:var(--ui-warn-surface, #0b222a);border-left:2px solid var(--ui-warn, #1b9c85);border-radius:7px;padding:13px 17px;color:var(--ui-warn, #a9c3cc);font-size:13px;line-height:1.6;margin:18px 0}.chapter-grid{display:grid;gap:10px}.chapter{border:1px solid var(--ui-border, #1b3c47);border-radius:10px;display:flex;align-items:center;gap:16px;text-align:left;padding:17px;background:var(--theme-panel-112, #081a2370)}.chapter:hover{border-color:var(--accent);background:var(--ui-panel, #0a2828)}.chapter-index{width:39px;height:39px;display:grid;place-items:center;border:1px solid var(--ui-border, #23634e);border-radius:10px;color:var(--ui-accent, #47eaa5);flex:none;font-size:18px}.chapter h3{font-size:16px;margin-bottom:5px}.chapter-state{display:flex;gap:10px;align-items:center;margin-left:auto;color:var(--ui-accent, #78eac0);font-size:13px}.chapter-state .icon{width:17px}.stage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.stage-card{text-align:left;background:var(--ui-panel, #091d26);border:1px solid var(--ui-border, #1e414a);border-radius:10px;padding:17px;display:grid;gap:10px}.stage-card h3{min-height:36px}.stage-card small{font-size:12px}.stage-card>span{font-size:12px;color:var(--ui-muted, #9dc8b6)}.stage-card.selected,.stage-card:hover{border-color:var(--ui-accent, #42d59c);background:var(--ui-panel, #0c2826)}.lesson-panel{padding:28px}.question{font-size:28px;line-height:1.4;margin:35px 0}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.answer{min-height:69px;padding:16px;display:flex;align-items:center;gap:15px;text-align:left;background:var(--ui-panel, #0a222d);border:1px solid var(--ui-border, #24525f);border-radius:11px;font-size:16px}.answer:hover:not(:disabled){border-color:var(--ui-accent, #39f28a);background:var(--ui-panel, #10382e)}.answer>.answer-label{width:28px;height:28px;display:grid;place-items:center;background:var(--ui-raised, #183944);border-radius:6px;color:var(--ui-muted, #98c3cf);font-size:13px;flex:none}.answer.correct,.memory-cell.correct{border-color:var(--ui-good, #37eb99);background:var(--ui-good-surface, #0b4830);opacity:1!important}.answer.incorrect{border-color:var(--ui-bad, #e26865);background:var(--ui-bad-surface, #422626);opacity:1}.feedback{padding:20px;border-radius:11px;margin-top:22px;display:grid;gap:12px}.feedback p{font-size:15px}.feedback .button{justify-self:start}.feedback.success{background:var(--ui-good-surface, #0c3529);border:1px solid var(--ui-good, #237852)}.feedback.error{background:var(--ui-bad-surface, #3b2627);border:1px solid var(--ui-bad, #7d4847)}.save-question{margin-top:24px;white-space:normal}.notes-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.note-card{border:1px solid var(--border);border-radius:13px;background:var(--ui-panel, #091c24);padding:22px;overflow-wrap:anywhere}.note-card h3{font-size:19px;margin-bottom:15px}.note-card .section-heading{margin-bottom:5px}.note-body{white-space:pre-wrap;color:var(--ui-muted, #b4cbd0);font-size:15px;margin-bottom:15px}.formula{font-size:30px;color:var(--accent);margin:20px 0}.empty-state{grid-column:1/-1;border:1px dashed var(--ui-border, #28554f);border-radius:15px;padding:60px 25px;text-align:center;display:grid;justify-items:center;gap:16px}.empty-state>.icon{width:43px;height:43px;color:var(--ui-accent, #32e4a0)}.empty-state p{color:var(--muted);max-width:400px}.form{display:grid;gap:20px}.form label{display:grid;gap:8px;font-size:14px;color:var(--ui-muted, #bad0d5)}.form .button{justify-self:start}.profile-banner{padding:26px;display:flex;align-items:center;gap:20px}.profile-banner>div{min-width:0;flex:1}.profile-banner h2{font-size:24px;margin-bottom:5px;overflow-wrap:anywhere}.profile-banner p{margin-bottom:10px;font-size:14px;color:var(--ui-muted, #bed1d7)}.profile-banner small{display:block;margin-top:8px;overflow-wrap:anywhere}.profile-form,.profile-form label,.form label{min-width:0}.profile-form input,.form input,.form select{min-width:0;max-width:100%;width:100%;box-sizing:border-box}.profile-banner .avatar-picker-button{flex:0 0 auto}.metric{min-width:0;overflow-wrap:anywhere}[data-cloud-status]{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0;max-width:100%;overflow-wrap:anywhere;font-size:12px;line-height:1.5;color:var(--muted)}.cloud-sync-status-bar{width:100%;padding:0 0 6px}[data-cloud-status][data-undurable=true],[data-cloud-status][data-status=error]{color:var(--ui-bad,#f69a61)}[data-cloud-status] .text-button{min-height:32px;padding:4px 6px;font:inherit;white-space:nowrap;border-radius:6px}[data-cloud-status] .text-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.cloud-sync-details{display:block;flex-basis:100%;min-width:0;max-width:75ch;padding-top:2px;white-space:normal}.cloud-sync-details[hidden]{display:none}@media(pointer:coarse),(max-width:760px){[data-cloud-status] .text-button{min-height:44px}}@media(max-width:650px){.profile-form{grid-template-columns:minmax(0,1fr)}.region-public-heading{gap:12px}.region-public-heading .region-avatar{width:56px;height:56px}}.streak-badge{display:flex;align-items:center;gap:8px;color:var(--ui-bad, #f69a61);font-size:14px;margin-left:auto;white-space:nowrap}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.metric{padding:22px 17px}.metric small{display:block;margin-bottom:11px;font-size:13px}.metric strong{display:block;font-size:29px;font-weight:600}.chart-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:16px}.bar-chart{height:213px;display:flex;align-items:flex-end;gap:10px;padding-top:20px}.bar-column{flex:1;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;min-width:0;height:100%}.bar-column i{width:100%;max-width:34px;display:block;background:linear-gradient(var(--ui-accent, #39f29b),var(--ui-raised, #087d6b));border-radius:5px 5px 0 0;min-height:3px}.bar-column span{font-size:12px;color:var(--ui-muted, #bae7d7)}.bar-column small{font-size:11px;line-height:1.2;min-height:26px}.donut{width:177px;height:177px;margin:22px auto 12px;border-radius:50%;background:conic-gradient(var(--accent) var(--value),var(--ui-panel, #12323b) 0);display:grid;place-items:center}.donut>div{width:145px;height:145px;background:var(--ui-panel, #071720);border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}.donut strong{font-size:39px}.donut small{font-size:11px;margin-top:5px}.centered{text-align:center;font-size:13px}.topic-progress{margin:21px 0}.topic-progress>span{display:flex;justify-content:space-between;font-size:14px;margin-bottom:9px}.topic-progress strong{font-weight:500;color:var(--ui-accent, #aaf4d4)}.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.product-card{overflow:hidden}.product-art{aspect-ratio:1.3!important;width:100%;mask-image:linear-gradient(#000 80%,transparent)}.product-copy{padding:18px;display:grid;gap:13px}.product-copy h2{font-size:21px}.product-copy p{color:var(--ui-warn, #ffe28d);font-size:17px}.product-copy small{font-size:12px}.ice .product-art{filter:hue-rotate(85deg)}.cyber .product-art{filter:hue-rotate(170deg)}.ocean .product-art{filter:hue-rotate(25deg)}.amethyst .product-art{filter:hue-rotate(85deg)}.wallet{font-size:24px;color:var(--ui-warn, #ffe177)}.storage-note{color:var(--ui-muted, #7699a4);font-size:12px}.rank-title{display:block;margin-top:4px}.full-ranking .ranking-row{padding:17px;min-height:75px;font-size:16px}.full-ranking .ranking-avatar{width:42px;height:42px;font-size:14px;margin:0 12px}.full-ranking .ranking-score{font-size:20px}.full-ranking .your-rank{margin-top:20px;border:1px solid var(--ui-border, #27976c);background:var(--ui-panel, #0c332a)}.demo-badge{font-size:11px;letter-spacing:.3px;padding:5px 9px;background:var(--ui-panel, #183139);color:var(--ui-muted, #a4c9d1);border-radius:5px;text-align:center}.friends-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.friend-card{padding:23px}.friend-top{display:flex;align-items:center;gap:16px}.friend-top .ranking-avatar{width:51px;height:51px;font-size:18px}.friend-top small{display:block;margin-top:6px}.online{color:var(--ui-accent, #43e6a3)}.friend-stat{display:flex;justify-content:space-between;gap:10px;margin:24px 0;padding-bottom:17px;border-bottom:1px solid var(--border);font-size:14px;color:var(--ui-muted, #a7c3cc)}.friend-actions{display:grid;gap:12px}.friend-actions>.text-button{justify-content:center}.settings-form{max-width:500px;margin-top:25px}.settings-description{color:var(--ui-muted, #9fbcc6);margin:19px 0;font-size:15px}.daily-tasks{display:grid;gap:11px;margin:25px 0}.daily-tasks button{display:flex;align-items:center;gap:16px;border:1px solid var(--ui-border, #236352);border-radius:9px;padding:15px;font-size:14px;text-align:left}.daily-tasks button:hover{background:var(--ui-panel, #12372e)}.daily-tasks .icon{color:var(--accent)}.daily-tasks strong{margin-left:auto;font-weight:500}.reward-strip{display:flex;justify-content:space-between;font-size:15px;color:var(--ui-muted, #b7ced4);margin:25px 0}.reward-strip strong{color:var(--ui-warn, #ffe078)}.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;text-align:center;padding:20px 0}.compare-grid strong{display:block;font-size:32px;color:var(--accent);margin:17px 0 7px}.games-page .game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.games-page .game-copy h3{font-size:17px}.games-page .game-copy p{font-size:14px}.games-page .game-best{font-size:12px}.games-page .game-copy{padding:10px 18px 18px}.games-page .button{min-height:39px}.game-lobby{padding:30px;display:grid;grid-template-columns:1fr 1.2fr;gap:28px;align-items:center}.lobby-art{width:100%;border-radius:14px;mask-image:linear-gradient(#000 80%,transparent)}.game-lobby h2{font-size:29px;margin:10px 0 15px}.game-lobby p{font-size:15px;color:var(--ui-muted, #afc9d2);line-height:1.6}.lobby-best{font-size:14px;color:var(--ui-muted, #acccc9);margin:22px 0}.lobby-best strong{margin-left:20px;color:var(--accent);font-size:28px}.game-shell{padding:24px;overflow:hidden}.game-hud{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:20px;border-bottom:1px solid var(--ui-border, #1c3e46)}.game-hud small{display:block;font-size:11px;letter-spacing:1px;color:var(--ui-muted, #85a9b6);margin-bottom:6px}.game-hud strong{font-size:27px;font-weight:600}.game-hud>div:nth-child(3) strong{font-size:21px;color:var(--accent)}#game-content{position:relative;padding:24px 0 0;min-height:300px}#game-content.paused>*:not(#pause-overlay){visibility:hidden}#pause-overlay{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:24px;background:var(--ui-bg, #041219)}#pause-overlay h2{font-size:36px}.snake-question{text-align:center;margin:0 0 20px}.snake-question small{font-size:11px;color:var(--ui-muted, #88b6bb);letter-spacing:2px}.snake-question h2{font-size:36px;margin:8px 0}.snake-question>span{color:var(--accent);font-size:12px;letter-spacing:2px}#snake-board{display:block;width:min(100%,540px);height:auto;margin:0 auto;border:1px solid var(--ui-border, #276755);border-radius:11px;touch-action:none}.snake-footer{display:flex;justify-content:space-between;max-width:540px;margin:12px auto;color:var(--ui-muted, #82a9b4);font-size:12px}.touch-pad{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:18px}.touch-pad>div{display:flex;gap:6px}.touch-pad button{height:45px;width:57px;background:var(--ui-panel, #0e3336);border:1px solid var(--ui-border, #276853);border-radius:9px;font-size:23px;color:var(--ui-accent, #8bfac0);touch-action:none;user-select:none}.touch-pad button:hover{background:var(--ui-raised, #15583e)}.timer-label{display:flex;justify-content:space-between;font-size:12px;letter-spacing:1px;color:var(--ui-muted, #adcbc8);margin:0 0 11px}.timer-label strong{color:var(--ui-warn, #ffe17a);font-size:18px}.time-track{height:8px;background:var(--ui-panel, #17303a);border-radius:5px;overflow:hidden}.time-track i{display:block;height:100%;width:100%;background:linear-gradient(90deg,var(--ui-raised, #00ba9e),var(--ui-accent, #7af88e));border-radius:5px}.game-question{text-align:center;font-size:clamp(30px,4vw,53px);margin:48px 0 35px;letter-spacing:1px}.number-answer{font-size:28px;min-height:95px;justify-content:center;position:relative}.number-answer>.answer-label{position:absolute;left:15px;top:15px}.game-hint{margin:24px 0 6px;text-align:center;color:var(--ui-muted, #74a3ad);font-size:12px;line-height:1.5}.game-result{padding:30px 10px 10px;text-align:center;border-top:1px solid var(--ui-border, #1f5648);margin-top:25px;animation:enter .3s}.game-result h2{font-size:30px;margin:12px 0}.game-result p{font-size:15px;color:var(--ui-muted, #b2cbd2)}.result-score{font-size:59px;font-weight:700;color:var(--accent);margin:22px 0}.result-score small{display:block;font-size:12px;font-weight:400;color:var(--ui-muted, #a1c5cb)}.result-actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}.game-ended{opacity:.5;pointer-events:none;max-height:300px;overflow:hidden}.memory-heading{text-align:center;margin-bottom:23px}.memory-heading h2{font-size:25px;line-height:1.4;margin:12px 0}.memory-heading p{font-size:14px;min-height:22px}.memory-grid{max-width:480px;margin:0 auto;display:grid;grid-template-columns:repeat(var(--columns),1fr);gap:12px}.memory-cell{aspect-ratio:1.2;border:1px solid var(--ui-border, #2c5b6d);border-radius:12px;color:var(--ui-accent, #84cadb);background:var(--ui-panel, #0d2c3a);font-size:33px;font-weight:600;transition:background .15s}.memory-cell.revealed{color:var(--ui-accent, #68f9b5);background:var(--ui-panel, #0e382f);border-color:var(--ui-border, #30866b);opacity:1}.memory-cell:hover:not(:disabled){border-color:var(--ui-accent, #52efb1);box-shadow:0 0 20px var(--theme-shadow-32, #32e69b20)}.target-heading{text-align:center}.target-heading h2{font-size:33px;margin:9px 0}.target-heading h2 strong{font-size:49px;color:var(--accent)}.target-heading p{font-size:14px;color:var(--ui-muted, #adc3d0)}.target-sum{text-align:center;padding:20px;background:var(--ui-panel, #08232a);border:1px solid var(--ui-border, #20434a);border-radius:11px;margin:25px 0}.target-sum>span{font-size:11px;color:var(--ui-muted, #a3c7c7);letter-spacing:1px}.target-sum>strong{display:block;font-size:35px;margin:7px 0;color:var(--ui-text, #e0ffee)}.target-sum p{font-size:13px;color:var(--ui-muted, #83ada8);min-height:20px}.number-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.number-cell{background:var(--ui-panel, #0c2a36);border:1px solid var(--ui-border, #285766);border-radius:10px;min-height:73px;font-size:27px;font-weight:600}.number-cell:hover:not(:disabled){background:var(--ui-raised, #154a3b);border-color:var(--ui-accent, #3bd995)}.number-cell.chosen{background:var(--ui-panel, #123c2d);color:var(--ui-accent, #54d997);border-color:var(--ui-border, #28895d);opacity:.5}.duel-score{display:grid;grid-template-columns:1fr 80px 1fr;gap:14px;align-items:center;text-align:center;margin:8px 0 28px}.duel-score>div{display:flex;align-items:center;flex-direction:column;gap:12px}.duel-score h3{font-size:15px;overflow-wrap:anywhere;max-width:100%}.duel-score .ranking-avatar{width:38px;height:38px}.duel-score strong{font-size:36px;color:var(--accent)}.duel-score>div:last-child strong{color:var(--ui-accent, #a993f1)}.vs-label{font-family:Barlow Condensed,sans-serif;font-size:33px;color:var(--ui-muted, #77a3ae)}.vs-label small{font-family:Barlow,sans-serif;display:block;font-size:16px;margin-top:15px;color:var(--ui-warn, #ffe19a)}html[data-theme=Ocean]{--accent: #5dceff;--accent2: #1bc8e3;--border: #244654}html[data-theme=Ocean] .button:not(.secondary):not(.outline){background:linear-gradient(100deg,var(--ui-accent, #8adeff),var(--ui-accent, #22bbdc))}html[data-theme=Ocean] .progress>i{background:var(--ui-accent, #39bfe8)}html[data-theme=Amethyst]{--accent: #bd91ff;--accent2: #b78bed;--border: #3b3553}html[data-theme=Amethyst] .button:not(.secondary):not(.outline){background:linear-gradient(100deg,var(--ui-accent, #d6b9ff),var(--ui-accent, #a58cef))}html[data-theme=Amethyst] .progress>i{background:var(--ui-accent, #af8bef)}html[data-skin="Ice Viper"] .avatar{filter:hue-rotate(85deg)}html[data-skin="Cyber Viper"] .avatar{filter:hue-rotate(170deg)}@media(max-width:1350px){.shop-grid,.stage-grid,.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-grid{grid-template-columns:1fr 1fr}.chapter{padding:14px}.chapter-state{font-size:12px}.game-lobby{padding:22px;gap:20px}.streak-badge{display:none}}@media(max-width:760px){.notes-grid,.chart-grid{grid-template-columns:1fr}.chapter-state{font-size:0;gap:0}.chapter-state .icon{width:20px}.stage-summary h2{font-size:19px}.stage-summary>strong{font-size:27px}.game-lobby{grid-template-columns:1fr}.lobby-art{max-width:260px;margin:auto;aspect-ratio:1.5!important}.game-lobby h2{font-size:25px}.game-lobby>div:last-child{text-align:center}.games-page .game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.full-ranking .ranking-row{padding:13px 8px}.full-ranking .ranking-score{font-size:17px}.full-ranking .ranking-avatar{margin:0 4px}.friends-grid{gap:13px}.friend-card{padding:17px}.friend-top{gap:11px}.friend-top h2{font-size:17px}}@media(max-width:540px){.tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px}.tab{white-space:nowrap;flex:none;padding:10px 13px;font-size:13px}.stage-grid{gap:10px}.stage-card{padding:12px;gap:9px}.stage-card h3{font-size:14px}.stage-card small{font-size:11px}.stage-summary{gap:10px}.stage-summary h2{font-size:16px}.stage-summary small{font-size:11px}.stage-summary>strong{font-size:25px}.section-heading .field-label{min-width:120px}.chapter{gap:11px;padding:13px 10px}.chapter h3{font-size:15px}.chapter small{font-size:11px}.lesson-panel{padding:20px 16px}.question{font-size:23px;margin:25px 0}.answer-grid{gap:10px}.answer{font-size:14px;padding:13px 10px;gap:9px;min-height:72px}.answer>.answer-label{width:24px;height:24px;font-size:12px}.profile-banner{padding:20px;gap:13px}.profile-banner h2{font-size:21px}.profile-banner .avatar{width:48px;height:48px;background-size:960px 640px;background-position:-748px -46px}.metric{padding:18px}.metric strong{font-size:26px}.shop-grid{gap:12px}.product-copy{padding:13px;gap:12px}.product-copy h2{font-size:17px}.product-copy .button{font-size:12px;padding:10px;min-height:40px}.product-copy .eyebrow{font-size:10px}.friends-grid{grid-template-columns:1fr}.game-shell{padding:18px 13px}.game-hud{gap:9px}.game-hud small{font-size:10px;letter-spacing:.4px}.game-hud strong{font-size:24px}.game-hud>div:nth-child(3) strong{font-size:17px}.game-hud .icon-button{width:28px}.game-question{font-size:39px;margin:36px 0 28px}.number-answer{font-size:25px;min-height:88px}.number-answer>.answer-label{position:static}.number-grid{gap:9px}.number-cell{font-size:23px;min-height:66px}.memory-grid{gap:9px}.memory-cell{font-size:26px;border-radius:9px}.memory-heading h2{font-size:22px}.snake-question h2{font-size:30px}.snake-footer{font-size:10px}.touch-pad button{width:65px;height:48px}.game-lobby{padding:22px}.games-page .game-copy{padding:10px 12px 13px}.games-page .game-copy h3{font-size:14px}.games-page .game-copy p{font-size:12px}.games-page .game-card:last-child{grid-column:1/3}.duel-score{grid-template-columns:1fr 45px 1fr;gap:6px}.duel-score h3{font-size:13px}.full-ranking .ranking-row{font-size:13px;gap:7px}.full-ranking .ranking-score{font-size:16px}.full-ranking .ranking-avatar{width:31px;height:31px;font-size:11px}.rank-title{font-size:11px}.reward-strip{font-size:13px}.daily-tasks button{padding:13px;gap:10px;font-size:13px}.demo-badge{font-size:10px}.hero h1{white-space:normal;overflow-wrap:anywhere;line-height:1.12}.bar-column small{font-size:11px}}.sidebar-caption{display:none}.quote .quote-landscape{background-size:2304px 1536px;background-position:-450px -1437px;background-repeat:no-repeat}.hero h1{max-width:100%;text-overflow:ellipsis;overflow:hidden}.hero h1 .crown{vertical-align:baseline}html[data-avatar=Reactor] .avatar{background-size:768px 512px;background-position:-246px -327px}html[data-avatar=Reactor] .avatar.small{background-size:384px 256px;background-position:-123px -164px}.hero{--hero-art-h: 255px}.hero-art{height:var(--hero-art-h);width:calc(var(--hero-art-h) * 510 / 317)}.hero-art img{height:calc(var(--hero-art-h) * 1024 / 317);width:calc(var(--hero-art-h) * 1536 / 317);left:calc(var(--hero-art-h) * -642 / 317);top:0}.subjects,.sidebar nav,.tabs{scrollbar-width:none}.subjects::-webkit-scrollbar,.sidebar nav::-webkit-scrollbar,.tabs::-webkit-scrollbar{display:none}html{scrollbar-color:var(--ui-raised, #22413e) var(--ui-bg, #061219);scrollbar-width:thin}@media(min-width:1700px){.hero{--hero-art-h: 285px}}@media(max-width:1120px){.hero{--hero-art-h: 270px}}@media(max-width:540px){.hero{--hero-art-h: 210px}.hero-art{right:-8px}.hero-buttons{margin-top:116px}.hero h1{font-size:30px}.hero-copy{padding:22px 18px}.hero-buttons .button{padding:10px 12px}}@media(max-width:360px){.hero h1{font-size:26px}.hero-copy{padding:22px 15px}.hero-buttons{gap:6px}.hero-buttons .button{font-size:11px;padding:10px 9px;gap:6px}.hero-buttons .icon{width:15px}.game-copy h3{font-size:12px}.game-copy p{font-size:11px}.section-heading{gap:7px}.section-heading h2{font-size:17px}.text-button{font-size:11px}.stage-summary .subject-square{width:35px;height:35px}.game-hud small{font-size:9px}.full-ranking .ranking-avatar{margin:0}.full-ranking .ranking-score{font-size:14px}.product-copy .button{font-size:11px}}.avatar.player-avatar{position:relative;display:inline-block;overflow:hidden;background:var(--ui-bg, #030b08);filter:none;flex-shrink:0;vertical-align:middle}.player-avatar img{position:absolute;height:auto;pointer-events:none}.avatar-picker-button{padding:0;border:0;background:none;border-radius:50%;flex-shrink:0}.avatar-picker-button:hover{box-shadow:0 0 0 2px var(--accent)}dialog.avatars-modal{width:min(860px,calc(100% - 28px));max-height:90dvh}.avatar-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.avatar-option{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;padding:14px 8px;border:1px solid var(--border);border-radius:13px;background:var(--ui-bg, #07171e);color:var(--text)}.avatar-option.selected{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--theme-shadow-43, #26e5a52b)}.avatar-option:not(:disabled):hover{background:var(--ui-panel, #0a272b)}.avatar-preview{position:relative}.avatar-option .player-avatar{width:clamp(76px,8vw,108px);height:clamp(76px,8vw,108px)}.avatar-option.locked{cursor:not-allowed;opacity:1}.avatar-option.locked .player-avatar{filter:brightness(.48) saturate(.65)}.avatar-option small,.avatar-status{font-size:11px;color:var(--muted)}.avatar-option strong{font-size:14px}.avatar-option .progress{width:100%;height:4px;margin-top:4px}.avatar-lock{display:grid;place-items:center;position:absolute;right:1px;bottom:0;width:26px;height:26px;border-radius:50%;background:var(--ui-panel, #0b2229);border:1px solid var(--border)}.avatar-lock .icon{width:14px;height:14px}.hero .hero-art{width:48%;right:11%;opacity:1;mask-image:linear-gradient(90deg,transparent,#000 22%,#000 74%,transparent)}.hero .hero-art img{inset:0;width:100%;height:100%;object-fit:cover;object-position:46% center}.hero-slogan{position:absolute;right:12px;top:50%;transform:translateY(-50%) rotate(-7deg);z-index:1;width:132px;color:var(--ui-accent, #48ffb2);font-family:Impact,Arial Narrow,sans-serif;font-style:italic;font-stretch:condensed;font-size:20px;line-height:1.35;overflow-wrap:anywhere;text-shadow:0 2px 7px var(--ui-shadow, #00120c)}dialog.notebook-modal{width:min(900px,calc(100% - 28px));max-height:94dvh}.notebook-modal textarea{min-height:340px;height:42dvh;max-height:65dvh;resize:vertical;line-height:1.7;padding:16px;overflow:auto}.note-card [data-delete-note]{width:28px;height:28px;padding:5px;color:var(--muted)}.note-card [data-delete-note]:hover{color:var(--ui-bad, #ff8995);background:var(--theme-wash-20, #ff899514)}.note-card [data-delete-note] .icon{width:15px;height:15px}.note-body{max-height:380px;overflow:auto}.note-confirm-actions{display:flex;flex-wrap:wrap;gap:12px}.math-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.math-category{height:auto;min-height:155px;min-width:0;text-align:left}.math-category small{color:var(--muted);font-size:12px;line-height:1.5;margin-top:8px}.math-category.selected{border-color:var(--accent);background:var(--ui-panel, #092624)}#math-topic .chapter{width:100%;text-align:left}#math-topic .tabs{margin:16px 0}.lesson-panel .question{white-space:pre-line;overflow-wrap:anywhere}@media(max-width:760px){.avatar-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.avatar-option .player-avatar{width:80px;height:80px}.math-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-slogan{width:115px;font-size:17px;right:8px}}@media(max-width:540px){.hero .hero-art{width:69%;right:17%;height:195px;bottom:0}.hero-slogan{width:112px;top:174px;transform:rotate(-6deg);font-size:16px;right:10px}dialog.avatars-modal,dialog.notebook-modal{padding:16px}.avatar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.avatar-option .player-avatar{width:100px;height:100px}.notebook-modal textarea{min-height:250px;height:40dvh}.math-category{padding:14px 12px;min-height:165px}.math-category strong{font-size:14px;overflow-wrap:anywhere}#math-topic .chapter{flex-wrap:wrap}#math-topic .chapter-state{margin-left:auto}}.hero-slogan{width:145px;font-size:18px;overflow-wrap:normal}.hero-slogan span{display:block;white-space:nowrap}.hero-slogan span:last-child{font-size:16px;letter-spacing:-.3px}@media(max-width:760px){.hero-slogan{width:128px;font-size:16px}.hero-slogan span:last-child{font-size:14px}}@media(max-width:540px){.hero-slogan{width:115px;font-size:15px}.hero-slogan span:last-child{font-size:12.5px}}.game-lobby>.game-illustration{min-width:0;border-radius:16px}.game-lobby.snake-lobby{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:clamp(18px,3vw,32px)}.snake-lobby-art{width:min(100%,340px)}.game-lobby.snake-lobby h1{margin:0;font-size:clamp(30px,4vw,46px)}.snake-entry-nav{margin-bottom:18px}.snake-lobby .snake-info{border:1px solid var(--border);border-radius:50%;min-width:44px;min-height:44px;font-family:Georgia,serif;font-size:20px}.snake-lobby #snake-instructions{max-width:650px;line-height:1.6;color:var(--muted);margin:0}.snake-lobby .lobby-best{margin:6px 0 14px}.snake-lobby-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;width:100%;text-align:left}.snake-modes{border:0;padding:0;margin:0;min-width:0}.snake-modes legend{font-size:22px;font-weight:700}.snake-modes p{margin:4px 0 12px;color:var(--muted)}.snake-modes>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.snake-modes label{position:relative;min-width:0;cursor:pointer}.snake-modes input{position:absolute;opacity:0;width:1px;height:1px}.snake-modes label>span{display:block;border:2px solid var(--border);border-radius:10px;padding:10px;text-align:center;color:var(--text);background:var(--panel)}.snake-modes small{display:block;margin-top:4px;color:var(--muted)}.snake-modes input:checked+span{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 16%,var(--panel));box-shadow:inset 0 -3px 0 var(--accent)}.snake-modes input:focus-visible+span{outline:3px solid var(--text);outline-offset:3px}.snake-mode-status,.snake-save-status{text-align:center;color:var(--muted);margin:8px 0}.snake-save-status:empty{display:none}#snake-start-error:empty{display:none}body[data-game=snake][data-game-phase] .dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:start}body[data-game=snake][data-game-phase] #right-column{display:block;grid-template-columns:none;min-width:0}body[data-game=snake] .snake-ranking-panel{display:flex;flex-direction:column;max-height:calc(100dvh - 110px);min-height:180px;padding:16px 12px 12px}body[data-game=snake] .snake-ranking-panel h2{font-size:18px;line-height:1.35;margin:0 4px 14px}body[data-game=snake] .snake-ranking-scroll{overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;padding:4px}body[data-game=snake] .snake-ranking-list{list-style:none;padding:0;margin:0}body[data-game=snake] .snake-ranking-row{display:grid;grid-template-columns:28px 56px minmax(0,1fr);gap:10px;align-items:center;min-height:76px;padding:9px 0;border-bottom:1px solid var(--border)}body[data-game=snake] .snake-ranking-position{font-size:14px;font-variant-numeric:tabular-nums;color:var(--muted);text-align:center}body[data-game=snake] .snake-ranking-avatar{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:8px;text-decoration:none}body[data-game=snake] .snake-ranking-avatar .avatar-with-frame{--avatar-size:56px}body[data-game=snake] .snake-ranking-length{min-width:0;font-size:13px;color:var(--muted);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}body[data-game=snake] .snake-ranking-length strong{color:var(--text);font-size:18px}body[data-game=snake] .snake-ranking-neutral{display:grid;place-items:center;height:100%;color:var(--muted);background:var(--panel)}body[data-game=snake] .snake-ranking-status{color:var(--muted);font-size:13px;line-height:1.5;margin:8px 0}body[data-game=snake] .snake-ranking-status:empty{display:none}body[data-game=snake] .snake-ranking-retry{min-height:44px}body[data-game=snake] :is(.snake-ranking-scroll,.snake-ranking-avatar,.snake-ranking-retry):focus-visible{outline:2px solid var(--accent);outline-offset:2px}body[data-game=snake][data-game-phase=active] #main{gap:8px}body[data-game=snake] .snake-game-header{display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0;padding:0}body[data-game=snake] .snake-game-header h1{font-size:clamp(22px,2.1vw,30px);line-height:1.2;margin:0}body[data-game=snake] .snake-game-header .button{min-height:44px;padding:10px 16px;flex:0 0 auto}body[data-game=snake][data-game-phase=active] .snake-game-shell{padding:12px;overflow:visible}body[data-game=snake][data-game-phase=active] .game-hud{padding:0 0 8px;gap:10px}body[data-game=snake][data-game-phase=active] .game-hud small{font-size:10px;letter-spacing:.4px;margin-bottom:3px}body[data-game=snake][data-game-phase=active] .game-hud strong{font-size:21px;overflow-wrap:anywhere}body[data-game=snake][data-game-phase=active] .game-hud .icon-button{flex-shrink:0;min-width:44px;min-height:44px}body[data-game=snake][data-game-phase=active] .snake-mode-status{font-size:12px;line-height:1.3;margin:5px 0}body[data-game=snake][data-game-phase=active] #game-content{padding:0;min-height:0}body[data-game=snake][data-game-phase=active] .snake-question{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center;margin:0 0 6px;min-height:36px}body[data-game=snake][data-game-phase=active] .snake-question small{font-size:9px;line-height:1.3;letter-spacing:.5px;text-align:left}body[data-game=snake][data-game-phase=active] .snake-question h2{font-size:clamp(23px,2.2vw,30px);line-height:1.2;margin:0}body[data-game=snake][data-game-phase=active] .snake-question>span{font-size:10px;letter-spacing:.5px;text-align:right}body[data-game=snake][data-game-phase=active] #snake-board{width:min(100%,var(--snake-board-size,540px));aspect-ratio:1;height:auto}body[data-game=snake][data-game-phase=active] .snake-footer{max-width:var(--snake-board-size,540px);margin:6px auto 0;gap:8px;line-height:1.3}body[data-game=snake][data-game-phase=active] .touch-pad{flex-direction:row;justify-content:center;gap:6px;margin-top:10px}body[data-game=snake][data-game-phase=active] .touch-pad button{width:48px;height:44px}@media(hover:hover)and (pointer:fine)and (min-width:761px){body[data-game=snake][data-game-phase=active] .touch-pad{display:none}}@media(max-width:1100px){body[data-game=snake][data-game-phase] .dashboard-grid{grid-template-columns:minmax(0,1fr)}body[data-game=snake] .snake-ranking-panel{max-height:380px}}@media(max-width:760px){body[data-game=snake][data-game-phase] .dashboard-grid{gap:14px}body[data-game=snake] .snake-game-header h1{font-size:22px}body[data-game=snake] .snake-game-header .button{padding:10px 12px;font-size:12px}body[data-game=snake][data-game-phase=active] .game-hud{gap:7px}body[data-game=snake][data-game-phase=active] .game-hud small{font-size:9px;letter-spacing:0}body[data-game=snake][data-game-phase=active] .game-hud strong{font-size:18px}body[data-game=snake][data-game-phase=active] .snake-question{grid-template-columns:minmax(0,1fr) auto;gap:2px 8px}body[data-game=snake][data-game-phase=active] .snake-question small{grid-column:1/-1;text-align:center}body[data-game=snake][data-game-phase=active] .snake-question h2{text-align:center;font-size:25px}body[data-game=snake][data-game-phase=active] .snake-ranking-panel{max-height:320px}}@media(max-width:800px){.snake-lobby-bottom{grid-template-columns:minmax(0,1fr);text-align:center;gap:18px}.snake-lobby-bottom .button{width:100%}.snake-modes label>span{padding:9px 5px}}.games-page,.game-lobby{--game-art-main: color-mix(in srgb, var(--accent) 82%, var(--muted));--game-art-secondary: color-mix(in srgb, var(--accent2) 72%, var(--panel));--game-art-line: color-mix(in srgb, var(--accent) 76%, var(--text));--game-art-highlight: color-mix(in srgb, var(--accent) 65%, var(--text));--game-art-shade: color-mix(in srgb, var(--accent) 12%, var(--panel));--game-art-grid: color-mix(in srgb, var(--text) 10%, transparent);--game-art-eye: var(--on-accent, var(--bg));--game-art-surface: color-mix(in srgb, var(--accent) 4%, var(--panel))}.games-page{background:none;border:0;padding:0}.games-page .game-grid{gap:18px;align-items:stretch}.games-page .game-card,.games-page .game-card:last-child{display:flex;grid-column:auto;align-items:stretch;flex-direction:column;background:var(--panel);border:1px solid color-mix(in srgb,var(--accent) 30%,var(--border));border-radius:16px;box-shadow:none;transform:none;transition:border-color .15s}.games-page .game-card:hover{border-color:var(--game-art-main);box-shadow:none}.games-page .game-illustration,.game-lobby .game-illustration{display:block;width:100%;height:auto;aspect-ratio:10 / 7;flex:none;background:var(--game-art-surface)}.games-page .game-copy,.games-page .game-card:last-child .game-copy{padding:18px;gap:8px}.games-page .game-copy h3{font-size:clamp(19px,1.6vw,24px);line-height:1.2;white-space:normal;font-weight:700;color:var(--text)}.games-page .game-copy p{font-size:16px;line-height:1.45;color:var(--muted);min-height:46px;margin:0 0 12px}.games-page .game-best{font-size:15px;color:var(--text);margin:auto 0 0}.games-page .game-copy .button{min-height:44px;margin:4px 0 0;border-radius:999px;box-shadow:none}.games-page .game-copy .button:focus-visible{outline:3px solid var(--text);outline-offset:-6px}@media(max-width:1120px){.games-page .game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}@media(min-width:761px)and (max-width:1000px){body:has(.games-page,.game-lobby,.game-shell) .topbar{flex-wrap:wrap;height:auto;min-height:116px;padding:12px 0}body:has(.games-page,.game-lobby,.game-shell) .top-actions{margin-left:auto}}@media(max-width:540px){.games-page .game-grid{grid-template-columns:minmax(0,1fr)}.games-page .game-copy h3{font-size:23px}.games-page .game-copy p{min-height:0}}.nav-item,.catalog-card,.topic-link{position:relative}.nav-item:before,.catalog-card:before,.topic-link:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:4px;border-radius:8px;background:var(--accent);opacity:0;pointer-events:none;transition:opacity .14s ease}.nav-item.active:before,.nav-item:focus-visible:before,.catalog-card:focus-visible:before,.topic-link:focus-visible:before{opacity:1}@media(hover:hover)and (pointer:fine){.nav-item:hover:before,.catalog-card:hover:before,.topic-link:hover:before{opacity:1}}@media(prefers-reduced-motion:reduce){.nav-item:before,.catalog-card:before,.topic-link:before{transition:none}}body[data-route=games] #right-column{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0}.game-record-panel{padding:16px 12px;min-width:0}.game-record-panel h2{font-size:17px;line-height:1.4;margin:0 0 10px}.game-record-scroll{max-height:260px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;min-width:0}body[data-route=games]:not([data-game]) .game-record-scroll{max-height:180px}.game-record-scroll ol{list-style:none;margin:0;padding:0}.game-record-scroll [role=status]{font-size:13px;color:var(--muted);line-height:1.5}.game-record-scroll [role=status]:empty{display:none}.game-record-row{display:grid;grid-template-columns:22px 60px minmax(0,1fr);align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--border);min-height:76px}.game-record-row>span{text-align:center;font-variant-numeric:tabular-nums;color:var(--muted)}.game-record-avatar{display:grid;place-items:center;width:60px;height:60px;overflow:visible}.game-record-info{min-width:0;display:grid;gap:5px;text-decoration:none;font-size:13px}.game-record-info b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-record-info span{overflow-wrap:anywhere;color:var(--muted)}.game-record-info strong{color:var(--text);font-size:17px}.game-record-scroll:focus-visible,.game-record-row a:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:5px}#snake-board{touch-action:none}@media(max-width:760px){body[data-route=games] #right-column{display:grid;grid-column:1}.game-record-scroll{max-height:230px}.game-record-panel{width:100%}body[data-route=games] .dashboard-grid{grid-template-columns:minmax(0,1fr)}}
