:root{--purple:#7660ce;--purple-dark:#6249bc;--purple-pale:#f0ebfb;--ink:#292838;--muted:#8b8998;--line:#eeedf2;--bg:#f7f8fa;--green:#d5ed9a;--radius:22px;--shadow:0 8px 30px #30274706;--font:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:var(--font);background:var(--bg);font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default}button{border:0}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #9c84e7;outline-offset:4px}input:focus-visible{outline:2px solid var(--purple);outline-offset:2px}svg{flex-shrink:0;vertical-align:middle}button{color:inherit}h1,h2,h3,p{margin:0}button .icon{pointer-events:none}.icon{width:21px;height:21px;display:inline-block;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.skip-link{position:fixed;z-index:100;left:15px;top:-100px;padding:10px 20px;background:#fff}.skip-link:focus{top:10px}button,select,input{min-height:44px}.app-shell{min-height:100vh}.sidebar{width:220px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:33px 22px 20px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:11px;align-items:center;padding-left:4px}.brand-mark{height:43px;width:43px}.brand-name{font-size:20px;font-weight:850;letter-spacing:1px;line-height:1.3}.brand-sub{color:var(--muted);font-size:10px;letter-spacing:1.6px;margin-top:5px}.nav-caption{font-size:10px;letter-spacing:2px;color:#aaa8b4;font-weight:600;margin:44px 16px 13px}.nav-link{display:flex;align-items:center;gap:13px;min-height:49px;border-radius:13px;margin:5px 0;padding:0 17px;color:#858291;font-weight:550;transition:background .2s,color .2s}.nav-link:hover{background:#f6f4fb;color:var(--purple)}.nav-link.active{background:var(--purple-pale);color:var(--purple);font-weight:700}.nav-link.active:after{content:'';width:5px;height:5px;background:var(--purple);border-radius:50%;margin-left:auto}.nav-link .icon{width:20px;height:20px}.sidebar-space{flex:1;min-height:40px}.side-note{position:relative;padding:22px 14px 17px;text-align:center;background:#f7f8ee;border-radius:17px;margin:12px 4px 23px}.side-note .mini-spark{font-size:26px;margin-bottom:4px}.side-note strong{display:block;font-size:13px}.side-note p{font-size:11px;color:#999c82;margin-top:5px;line-height:1.8}.side-profile{padding:17px 4px 0;margin-top:14px;border-top:1px solid var(--line);display:flex;gap:11px;align-items:center}.avatar{width:39px;height:39px;border-radius:50%;background:#f1e9db;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#ad8c58}.avatar .icon{width:22px;height:22px}.side-profile strong{font-size:12px;font-weight:650;display:block;max-width:108px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-profile small{font-size:10px;color:var(--muted)}.main-wrap{margin-left:220px}.topbar{height:83px;border-bottom:1px solid var(--line);padding:0 40px;display:flex;align-items:center;justify-content:space-between;background:#fff}.breadcrumb{font-size:12px;color:#afacb9;display:flex;gap:12px;align-items:center}.breadcrumb span:last-child{color:#5a566b}.top-actions{display:flex;align-items:center;gap:13px}.top-actions .icon-btn{color:#92909e;background:transparent}.icon-btn{width:40px;height:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;background:#f7f7fa;border-radius:50%;flex-shrink:0}.icon-btn:hover{background:#eeeaf8;color:var(--purple)}.local-pill{color:#898590;background:#f6f6f9;font-size:11px;border:1px solid #ededf2;border-radius:30px;padding:5px 11px;display:flex;align-items:center;gap:6px}.local-pill i{width:5px;height:5px;display:inline-block;border-radius:50%;background:#9bbc7e}.top-actions .avatar{width:33px;height:33px;background:#eee8fa;color:var(--purple)}.main-content{max-width:1360px;margin:0 auto;padding:31px 40px 22px}.welcome-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;gap:20px}.welcome-row h1{font-size:26px;font-weight:800;letter-spacing:.4px;line-height:1.4}.wave{display:inline-block;font-size:25px;margin-left:7px;transform:rotate(-13deg)}.welcome-row p{color:var(--muted);font-size:12px;margin-top:7px;letter-spacing:.3px}.date-label{font-size:11px;color:#9b98a7;white-space:nowrap}.date-label .icon{width:15px;height:15px;margin-right:6px}.hero{background:#ece8f6;border:1px solid #e7e0f6;border-radius:24px;position:relative;min-height:257px;overflow:hidden;display:flex;align-items:center;padding:32px 36px}.hero-text{position:relative;z-index:2;width:60%}.eyebrow{display:inline-flex;gap:6px;align-items:center;font-size:10px;font-weight:650;letter-spacing:1px;color:#8066bb;margin-bottom:11px}.eyebrow .icon{width:13px;height:13px}.hero h2{font-size:32px;line-height:1.55;letter-spacing:1.5px;font-weight:850}.hero h2 em{font-style:normal;color:var(--purple)}.hero-description{font-size:12px;color:#8a7b9e;margin:12px 0 21px}.btn{min-height:43px;border-radius:10px;padding:10px 20px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:650;font-size:12px;transition:background .18s,transform .18s}.btn:hover:not(:disabled){transform:translateY(-2px)}.btn-primary{color:#fff;background:var(--purple);box-shadow:0 4px 8px #7660ce1a}.btn-primary:hover:not(:disabled){background:var(--purple-dark)}.btn-primary:disabled{background:#c4b9e2;box-shadow:none}.btn .icon{width:17px;height:17px}.btn-outline{border:1px solid #e8e4f1;background:white;color:#777081}.btn-soft{background:var(--purple-pale);color:var(--purple)}.btn-danger{background:#c74f5e;color:#fff}.hero-action{display:flex;align-items:center;gap:15px}.hero-action small{font-size:10px;color:#9b90ae}.hero-art{position:absolute;right:18px;top:-10px;width:365px;height:280px;pointer-events:none}.hero-art svg{width:100%;height:100%}.stats-strip{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px 5px;margin:19px 0 29px;box-shadow:var(--shadow)}.stat{padding:0 22px;display:flex;gap:13px;align-items:center;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat-symbol{width:39px;height:39px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.stat-symbol .icon{width:20px;height:20px}.stat small{font-size:10px;color:#9692a2;display:block;margin-bottom:1px}.stat strong{font-size:24px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1.3}.stat .unit{font-size:11px;font-weight:400;color:#9d98a9;margin-left:4px}.purple{--tone:#7b64c8;--tint:#f0ebfa;--panel:#f1edfb}.orange{--tone:#d59254;--tint:#fff1df;--panel:#fdf1e3}.green{--tone:#81a060;--tint:#eef5df;--panel:#eef5e3}.pink{--tone:#c87f99;--tint:#fbeaf1;--panel:#faedf3}.blue{--tone:#6b99bd;--tint:#e7f2fc;--panel:#edf4fc}.stat-symbol{background:var(--tint);color:var(--tone)}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.section-heading h2{font-size:19px;font-weight:800;letter-spacing:.4px}.section-heading h2 small{font-size:10px;font-weight:400;color:#a49ead;margin-left:11px;letter-spacing:0}.grade-select{border:1px solid #e8e6ed;border-radius:9px;color:#767080;background:#fff;min-height:34px;font-size:11px;padding:4px 26px 4px 11px;cursor:pointer}.lobby-layout{display:grid;grid-template-columns:minmax(0,1fr) 242px;gap:22px}.filter-tabs{display:flex;align-items:center;gap:5px;margin-bottom:19px}.filter-tab{border-radius:7px;min-height:32px;padding:5px 13px;font-size:11px;background:transparent;color:#97919e}.filter-tab.active{background:#eae6f6;color:var(--purple);font-weight:650}.filter-tab:hover{background:#efedf7}.game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.game-card{padding:23px 22px 18px;border:1px solid #eeebf2;border-radius:18px;background:#fff;position:relative;display:flex;flex-direction:column;min-height:213px;transition:transform .2s,box-shadow .2s}.game-card:hover{transform:translateY(-3px);box-shadow:0 10px 30px #33304409;border-color:#dcd3ef}.game-card.featured{background:var(--panel);border-color:#e6def6}.card-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:12px}.game-icon{display:flex;align-items:center;justify-content:center;border-radius:13px;background:var(--tint);color:var(--tone);width:48px;height:48px}.game-icon .icon{width:28px;height:28px}.featured .game-icon{background:#e5dcf6}.game-tag{font-size:9px;padding:3px 8px;border-radius:5px;color:var(--tone);background:var(--tint);white-space:nowrap}.featured .game-tag{background:#e8e0f5}.game-card h3{font-size:17px;letter-spacing:.4px;font-weight:750}.game-card p{font-size:10px;color:#9b95a5;margin-top:6px;line-height:1.8}.card-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:17px;gap:4px}.skill-label{font-size:9px;color:#a49bad;letter-spacing:.2px}.play-btn{font-size:10px;min-height:30px;border-radius:7px;padding:4px 10px;background:var(--tint);color:var(--tone);font-weight:650;display:inline-flex;align-items:center;gap:8px}.featured .play-btn{background:var(--purple);color:#fff}.play-btn .icon{width:13px;height:13px}.game-card:last-child:nth-child(odd){grid-column:1 / -1;min-height:157px;padding-left:95px;justify-content:center}.game-card:last-child:nth-child(odd) .card-top{position:absolute;left:22px;top:28px}.game-card:last-child:nth-child(odd) .game-tag{display:none}.game-card:last-child:nth-child(odd) .card-bottom{padding-top:9px;margin-top:0}.game-card:last-child:nth-child(odd) .game-icon{width:53px;height:53px}.empty-filter{grid-column:1 / -1;text-align:center;padding:45px 15px;color:var(--muted)}.lobby-aside{padding-top:51px;display:flex;flex-direction:column;gap:17px}.daily-card{border:1px solid #eeebf2;background:#fff;border-radius:18px;padding:22px 19px}.aside-title{display:flex;align-items:center;justify-content:space-between}.aside-title h3{font-size:13px;font-weight:750;display:flex;align-items:center;gap:6px}.aside-title .icon{width:16px;height:16px;color:#a392c7}.tiny-label{font-size:9px;color:#aaa4b4;background:#f6f4f9;border-radius:4px;padding:3px 6px}.goal-ring{width:110px;height:110px;margin:24px auto 18px;position:relative}.goal-ring svg{width:110px;height:110px;transform:rotate(-90deg)}.goal-ring circle{fill:none;stroke-width:7;stroke:#f0edf6}.goal-ring .progress{stroke:#a190d8;stroke-linecap:round;stroke-dasharray:276.46;stroke-dashoffset:calc(276.46 * (1 - var(--progress)))}.ring-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.ring-label strong{font-size:28px;font-weight:750;line-height:1.4}.ring-label small{font-size:9px;color:#a29ba9}.goal-message{text-align:center;font-size:11px;color:#92899d}.goal-reward{font-size:10px;color:#aa9269;background:#fcf8eb;border-radius:8px;text-align:center;padding:9px 3px;margin-top:17px}.goal-reward .icon{height:13px;width:13px;margin-right:4px}.tip-card{padding:20px 19px;background:#edf3e3;border:1px solid #e4edd7;border-radius:18px;position:relative;overflow:hidden}.tip-card h3{font-size:12px;color:#7b8d62;display:flex;gap:7px;align-items:center}.tip-card h3 .icon{width:16px;height:16px}.tip-card p{font-size:11px;color:#929c80;line-height:2;margin-top:12px;position:relative;z-index:1}.tip-card .tip-decoration{position:absolute;right:3px;bottom:0;opacity:.11;color:#81a060}.tip-decoration .icon{width:67px;height:67px}.aside-link{font-size:11px;color:#8c809c;display:flex;justify-content:center;align-items:center;gap:5px;padding:7px;background:transparent}.aside-link .icon{width:13px;height:13px}.footer{display:flex;align-items:center;justify-content:center;gap:7px;color:#b1aab9;font-size:9px;letter-spacing:.5px;padding:29px 0 3px}.footer .icon{width:11px;height:11px}.storage-warning{border:1px solid #ecd29f;background:#fff8e9;color:#9b733a;padding:12px 16px;border-radius:12px;margin-bottom:18px;font-size:12px}.subpage-header{margin:2px 0 27px}.subpage-header h1{font-size:27px;font-weight:800}.subpage-header p{font-size:12px;color:var(--muted);margin-top:7px}.panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px;box-shadow:var(--shadow)}.panel h2{font-size:16px;margin-bottom:20px}.progress-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px;margin-bottom:22px}.week-chart{display:flex;justify-content:space-around;align-items:flex-end;height:170px;padding:15px 0 0;gap:15px}.bar-group{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;flex:1;gap:8px}.bar-value{font-size:10px;color:var(--purple);height:16px}.bar-track{height:108px;background:#f4f1fa;border-radius:7px;width:28px;display:flex;align-items:flex-end;overflow:hidden}.bar{height:var(--height);width:100%;background:#a593dd;border-radius:7px}.bar-label{font-size:10px;color:#9990a5}.bar-group.today .bar{background:var(--purple)}.skill-row{display:flex;align-items:center;gap:12px;font-size:11px;margin:19px 0}.skill-row span{width:60px;flex-shrink:0;color:#8f879a}.skill-row strong{font-size:10px;color:#8f879a;min-width:33px;text-align:right;font-weight:500}.skill-track{flex:1;background:var(--tint);height:7px;border-radius:10px;overflow:hidden}.skill-track i{height:100%;display:block;background:var(--tone);border-radius:10px;max-width:100%}.empty-state{text-align:center;padding:40px 15px}.empty-state .game-icon{margin:0 auto 16px}.empty-state h3{font-size:15px;margin-bottom:8px}.empty-state p{font-size:12px;color:#9a90a3;line-height:1.9}.empty-state .btn{margin-top:21px}.records-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.records-table th{font-size:10px;font-weight:500;color:#a49bab;padding:0 12px 12px;border-bottom:1px solid var(--line)}.records-table td{padding:15px 12px;border-bottom:1px solid #f3f0f6}.records-table tr:last-child td{border-bottom:0}.score-tag{color:var(--purple);font-weight:650}.muted{color:var(--muted)}.table-scroll{overflow-x:auto}.record-game{display:flex;gap:9px;align-items:center;white-space:nowrap}.record-game .icon{width:17px;height:17px;color:var(--tone)}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;font-size:11px;color:var(--muted);margin-top:18px}.pagination button{min-height:33px}.badge-summary{display:flex;gap:12px;align-items:center;color:var(--purple);font-size:12px;background:var(--purple-pale);border-radius:12px;padding:13px 17px;margin-bottom:25px}.badge-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:19px}.badge-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px 16px 21px;text-align:center}.badge-medal{width:77px;height:77px;border-radius:24px;background:var(--tint);color:var(--tone);margin:0 auto 18px;display:flex;align-items:center;justify-content:center;transform:rotate(-6deg)}.badge-medal .icon{width:39px;height:39px;transform:rotate(6deg);stroke-width:1.4}.badge-card.locked .badge-medal{filter:grayscale(1);opacity:.5}.badge-card h3{font-size:14px}.badge-card p{font-size:10px;color:#a299a8;margin:7px 0 19px}.badge-progress{height:4px;border-radius:10px;background:#f0ecf6;overflow:hidden}.badge-progress i{display:block;height:100%;background:var(--tone);max-width:100%}.badge-status{font-size:9px;color:#ada3b6;margin-top:9px}.badge-card.unlocked{border-color:#e0d6f2}.badge-card.unlocked .badge-status{color:var(--tone)}.settings-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:22px;align-items:start}.field{margin-bottom:22px;display:flex;flex-direction:column;gap:8px}.field label{font-size:12px;font-weight:600}.field input,.field select{border:1px solid #e9e2f0;background:#fff;border-radius:9px;padding:10px 12px;width:100%;color:var(--ink);font-size:12px}.field small{font-size:10px;color:var(--muted)}.setting-toggle{display:flex;align-items:center;justify-content:space-between;margin:10px 0 23px;font-size:12px}.switch{width:42px;height:25px;min-height:25px;border-radius:30px;background:#ddd7e7;padding:3px;display:flex;align-items:center}.switch.on{background:var(--purple);justify-content:flex-end}.switch:before{content:'';width:19px;height:19px;display:block;border-radius:50%;background:#fff}.storage-info{font-size:12px;color:#92869e;line-height:2}.storage-info .storage-icon{width:48px;height:48px;background:#f1ecfa;color:var(--purple);border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:15px}.data-buttons{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}.data-buttons .btn{font-size:11px}.reset-btn{background:none;color:#b1909c;display:inline-flex;align-items:center;gap:6px;padding:9px 0;font-size:10px;margin-top:12px}.reset-btn .icon{width:13px;height:13px}.settings-note{font-size:10px;color:#a89fae;margin-top:18px;line-height:1.9}.mobile-nav{display:none}.page-enter{animation:appear .3s ease}@keyframes appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
/* Focused game view */
.game-page{max-width:870px;margin:0 auto}.game-topline{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.back-link{display:flex;gap:7px;align-items:center;color:#93869f;background:transparent;font-size:12px;padding:6px 0}.back-link .icon{width:16px;height:16px}.game-level-tag{font-size:10px;background:#eeebf6;color:#9786b4;padding:5px 10px;border-radius:7px}.game-title{display:flex;gap:14px;align-items:center;margin-bottom:24px}.game-title h1{font-size:25px}.game-title p{font-size:11px;color:#9e91a8;margin-top:3px}.game-title .game-icon{width:54px;height:54px}.game-rule-btn{margin-left:auto;background:white;border:1px solid #ebe5f2;color:#9a8ba8;border-radius:9px;min-height:35px;padding:4px 12px;font-size:11px}.game-rule-btn .icon{width:14px;height:14px;margin-right:5px}.game-board{background:white;border:1px solid #eae3f2;border-radius:23px;overflow:hidden}.board-meta{padding:19px 25px;border-bottom:1px solid #f2edf7;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#a295ae}.round-dots{display:flex;gap:6px;align-items:center}.round-dot{width:7px;height:7px;background:#ede7f5;border-radius:50%}.round-dot.done{background:#b7cf91}.round-dot.current{background:#a28ace;box-shadow:0 0 0 3px #f1ecf8}.board-body{padding:30px 40px 27px;text-align:center;min-height:375px}.challenge-label{font-size:11px;color:#a394af;margin-bottom:23px}.number-cards{display:flex;gap:14px;justify-content:center;margin-bottom:24px}.number-card{height:86px;width:68px;border:1px solid #e2d8f0;background:#f5f0fc;border-radius:13px;color:var(--purple);font-size:32px;font-weight:750;box-shadow:0 4px 0 #e6ddf2;position:relative}.number-card:hover:not(:disabled){transform:translateY(-3px)}.number-card:disabled{background:#f5f4f7;border-color:#efedf1;color:#c9c3d1;box-shadow:0 4px 0 #efedf1}.number-card:after{content:'✦';font-size:10px;position:absolute;bottom:5px;right:8px;color:#c7b5e3}.expression-field{width:100%;max-width:440px;background:#faf8fd;border:1px solid #e8dff2;border-radius:11px;padding:10px 16px;text-align:center;font-size:21px;letter-spacing:2px;height:56px;margin:0 auto 15px;display:block;color:#695387}.expression-field::placeholder{font-size:12px;letter-spacing:1px;color:#c1b5ce}.operator-pad{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.op-btn{min-width:40px;height:40px;min-height:40px;font-size:20px;border-radius:8px;background:#f3eff9;color:#9b83bc}.op-btn:hover{background:#e8dff5}.op-btn.small{font-size:13px}.game-controls{display:flex;justify-content:center;gap:12px;margin-top:23px}.game-controls .btn{min-width:125px}.hint-area{max-width:520px;margin:18px auto 0;color:#9d8b60;background:#faf6e9;border:1px solid #f2ead4;padding:11px 15px;border-radius:9px;font-size:12px;line-height:1.8}.game-message{font-size:12px;line-height:1.9;min-height:28px;margin-top:15px;color:#a090b0}.game-message.error{color:#c88277}.game-message.success{color:#6b9d73}.board-footer{padding:14px 24px;border-top:1px solid #f2edf7;background:#fdfcfe;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#ad9cba}.text-btn{background:transparent;min-height:32px;font-size:11px;color:#a18bb9;padding:5px;display:inline-flex;gap:5px;align-items:center}.text-btn .icon{width:14px;height:14px}.game-under-note{text-align:center;font-size:10px;color:#aea2b8;margin:18px 0}.question-expression{font-size:43px;font-weight:700;letter-spacing:3px;margin:20px 0 28px;color:#66537f;line-height:1.5;overflow-wrap:anywhere}.question-expression .question-box{display:inline-flex;align-items:center;justify-content:center;width:53px;height:58px;background:#f1eaf9;border:1px dashed #ccb8e0;border-radius:11px;color:#b8a1cc;margin:0 8px}.answers{display:grid;grid-template-columns:repeat(2,1fr);max-width:430px;margin:0 auto;gap:12px}.answer-btn{min-height:62px;border-radius:12px;background:#f8f5fc;border:1px solid #e8dff2;font-size:24px;color:#8f74ac;font-weight:650;transition:background .15s,border-color .15s}.answer-btn:hover:not(:disabled){background:#eee6f8;border-color:#cfbce6;transform:translateY(-2px)}.answer-btn.correct{background:#edf6e6;border-color:#c2d6b0;color:#75a05c}.answer-btn.incorrect{background:#fbefeb;border-color:#e8c7bd;color:#c68174}.answer-btn:disabled:not(.correct):not(.incorrect){opacity:.4}.next-row{margin-top:12px}.round-info{font-size:11px;color:#ad9dbb;margin-top:18px}.memory-digit-row{display:flex;justify-content:center;gap:9px;margin:28px 0}.memory-digit{width:50px;height:66px;background:#f0eafa;border:1px solid #ddd0ee;color:#9273b9;border-radius:10px;font-size:30px;display:flex;align-items:center;justify-content:center;font-weight:700}.memory-counter{font-size:12px;color:#a08aac}.memory-progress{height:4px;border-radius:5px;background:#f0eaf9;max-width:280px;margin:18px auto;overflow:hidden}.memory-progress i{height:100%;background:#b09acb;display:block;transition:width 1s linear}.memory-input{max-width:300px;font-size:25px;letter-spacing:8px}.memory-wait{min-height:52px}.timer{font-variant-numeric:tabular-nums;display:flex;align-items:center;gap:5px}.timer .icon{width:14px;height:14px}.result-screen{text-align:center;padding:35px 25px 33px}.result-screen .result-art{width:95px;height:95px;background:#f3ecfc;color:#9f7dca;border-radius:30px;display:flex;align-items:center;justify-content:center;transform:rotate(-8deg);margin:0 auto 23px}.result-art .icon{height:51px;width:51px;transform:rotate(8deg)}.result-screen h2{font-size:26px;margin-bottom:8px}.result-screen>p{font-size:12px;color:#9f8fae}.result-score{font-size:39px;font-weight:750;color:var(--purple);margin:22px 0}.result-score span{font-size:11px;display:block;font-weight:400;color:#aa9ab8;margin-top:2px}.result-stats{display:flex;gap:45px;justify-content:center;margin-bottom:23px}.result-stat strong{display:block;font-size:19px;color:#756285}.result-stat small{font-size:10px;color:#ad9cba}.new-badges{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:15px 0}.new-badge{padding:6px 12px;background:#f8f2dc;color:#af9961;border-radius:8px;font-size:11px}.result-actions{display:flex;justify-content:center;gap:12px}.toast{position:fixed;bottom:27px;left:50%;transform:translate(-50%,20px);background:#3b304beF;color:#fff;padding:13px 23px;border-radius:12px;font-size:12px;max-width:min(90vw,510px);z-index:80;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;box-shadow:0 6px 25px #33233b20}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #e7deef;border-radius:22px;padding:27px;color:var(--ink);width:min(470px,calc(100vw - 32px));max-height:85vh;overflow:auto;box-shadow:0 30px 100px #30233c25}dialog::backdrop{background:#29203366;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.modal-head h2{font-size:19px}.modal-head .icon-btn{width:32px;height:32px;min-height:32px}.modal-content{font-size:12px;color:#97869f;line-height:2}.modal-content strong{color:#6b537b}.modal-content p{margin-bottom:14px}.modal-content ol{padding-left:22px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:23px}.confetti{position:fixed;inset:0;z-index:65;pointer-events:none;overflow:hidden}.confetti i{position:absolute;top:-25px;left:var(--left);width:var(--size);height:calc(var(--size) * .6);background:var(--color);border-radius:2px;animation:fall 2.2s ease-in var(--delay) forwards;opacity:0}@keyframes fall{0%{transform:translateY(0) rotate(0);opacity:1}100%{transform:translateY(100vh) rotate(650deg);opacity:0}}.hidden{display:none!important}
@media(min-width:1500px){.main-content{padding-top:39px}.hero{min-height:280px}.hero-art{width:410px;height:305px;right:55px}.hero h2{font-size:36px}.lobby-layout{grid-template-columns:minmax(0,1fr) 275px;gap:25px}.game-card{min-height:225px;padding:25px}.game-card p{font-size:12px}.skill-label{font-size:10px}.play-btn{font-size:11px}.daily-card{padding:24px}.tip-card p{font-size:12px}}
@media(max-width:1200px){.sidebar{width:195px;padding:30px 18px 18px}.main-wrap{margin-left:195px}.main-content{padding:28px}.topbar{padding:0 28px}.lobby-layout{grid-template-columns:minmax(0,1fr) 218px;gap:17px}.hero-art{right:-10px;width:325px;opacity:.93}.hero h2{font-size:29px}.hero{padding:28px}.hero-description{font-size:11px}.stat{padding:0 14px;gap:8px}.stat-symbol{width:34px;height:34px}.stat strong{font-size:22px}.game-card{padding:20px 17px}.game-card p{font-size:10px}.card-bottom{gap:2px}.play-btn{gap:4px;padding:4px 8px}.skill-label{font-size:9px}.badge-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1020px){.sidebar{width:175px;padding:28px 14px 16px}.brand-name{font-size:18px}.brand-mark{width:37px;height:37px}.brand{gap:8px;padding-left:0}.brand-sub{font-size:9px;letter-spacing:1px}.nav-link{padding:0 12px;font-size:12px;gap:10px}.main-wrap{margin-left:175px}.main-content{padding:25px}.lobby-layout{grid-template-columns:minmax(0,1fr)}.lobby-aside{display:grid;grid-template-columns:1fr 1fr;padding-top:3px;gap:17px}.daily-card{position:relative;padding:20px;min-height:170px}.goal-ring{margin:15px 0 0;width:85px;height:85px}.goal-ring svg{width:85px;height:85px}.ring-label strong{font-size:23px}.goal-message{position:absolute;right:20px;top:72px;font-size:10px;max-width:140px}.goal-reward{position:absolute;right:17px;bottom:22px;font-size:9px;padding:7px}.aside-link{display:none}.tip-card{padding:21px}.tip-card p{font-size:11px}.game-card{min-height:215px}.hero-art{width:300px;right:-30px;opacity:.85}.hero-text{width:66%}.hero h2{font-size:28px}.hero-action small{display:none}.stat-symbol{display:none}.stat{padding:0 20px}.welcome-row h1{font-size:23px}.date-label{font-size:10px}.stats-strip{padding:17px 0}.badge-grid{grid-template-columns:repeat(3,1fr)}.game-card p{font-size:11px}.settings-grid{grid-template-columns:1fr}.progress-grid{grid-template-columns:1fr}}
@media(max-width:760px){body{font-size:13px}.sidebar{display:none}.main-wrap{margin-left:0}.topbar{height:64px;padding:0 23px}.breadcrumb{font-size:11px}.breadcrumb:before{content:'✦';color:var(--purple);font-size:21px}.breadcrumb>span:first-child,.breadcrumb>.crumb-divider{display:none}.top-actions{gap:8px}.top-actions .avatar{display:none}.top-actions .icon-btn{width:31px;height:34px;min-height:34px}.top-actions .icon{width:18px;height:18px}.local-pill{font-size:9px;padding:4px 8px}.main-content{padding:25px 22px 95px}.welcome-row{margin-bottom:22px;align-items:flex-start}.welcome-row h1{font-size:22px}.welcome-row p{font-size:11px}.wave{font-size:21px}.date-label{display:none}.hero{padding:25px;min-height:240px;border-radius:21px}.hero h2{font-size:27px;letter-spacing:1px}.hero-text{width:70%}.hero-description{max-width:240px;font-size:11px;line-height:1.9;margin-top:10px;margin-bottom:18px}.hero-art{width:265px;right:-40px;top:10px;opacity:.8}.hero .eyebrow{font-size:9px}.hero .btn{font-size:11px;padding:9px 15px;min-height:40px}.stats-strip{margin:16px 0 27px;border-radius:15px;padding:16px 0}.stat{padding:0 13px;justify-content:center}.stat small{font-size:9px}.stat strong{font-size:22px}.stat .unit{font-size:9px;margin-left:2px}.section-heading h2{font-size:18px}.section-heading h2 small{display:none}.grade-select{font-size:10px;max-width:132px;min-height:34px}.section-heading{gap:7px;margin-bottom:16px}.filter-tabs{gap:4px;margin-bottom:17px}.filter-tab{font-size:10px;padding:5px 11px;min-height:34px}.lobby-layout{gap:16px}.game-grid{gap:13px}.game-card{padding:20px 17px 17px;min-height:215px;border-radius:17px}.game-icon{height:42px;width:42px}.game-icon .icon{width:25px;height:25px}.game-card h3{font-size:16px}.game-tag{font-size:8px;padding:3px 6px}.game-card p{font-size:10px;margin-top:7px}.card-bottom{padding-top:18px;flex-wrap:wrap;gap:9px}.skill-label{font-size:9px}.play-btn{font-size:10px;padding:5px 10px;min-height:33px}.game-card:last-child:nth-child(odd){min-height:155px;padding-left:92px}.game-card:last-child:nth-child(odd) .card-top{top:32px;left:19px}.game-card:last-child:nth-child(odd) .card-bottom{flex-wrap:nowrap}.game-card:last-child:nth-child(odd) .play-btn{margin-left:auto}.lobby-aside{gap:13px}.tip-card{padding:19px 16px}.tip-card p{font-size:10px;margin-top:12px}.daily-card{padding:19px 16px;min-height:190px}.aside-title h3{font-size:12px}.goal-ring{margin:16px auto 0}.goal-message{position:static;font-size:9px;margin-top:10px;max-width:none}.goal-reward{position:static;font-size:9px;margin-top:10px;padding:6px 0}.tip-card h3{font-size:12px}.tiny-label{font-size:8px}.footer{font-size:9px;padding-top:25px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;background:#fffffff5;border-top:1px solid #ede8f4;padding:7px 12px calc(7px + env(safe-area-inset-bottom));justify-content:space-around;backdrop-filter:blur(12px)}.mobile-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:9px;color:#a89aae;min-width:55px;min-height:45px;justify-content:center}.mobile-nav a .icon{width:20px;height:20px}.mobile-nav a.active{color:var(--purple)}.toast{bottom:85px;font-size:11px}.badge-grid{grid-template-columns:repeat(2,1fr);gap:14px}.badge-card{padding:25px 12px 18px}.badge-card h3{font-size:13px}.badge-card p{font-size:9px}.badge-medal{width:64px;height:64px;border-radius:20px}.badge-medal .icon{height:32px;width:32px}.subpage-header h1{font-size:24px}.panel{padding:21px 18px;border-radius:18px}.records-table{font-size:10px}.records-table td,.records-table th{padding-left:7px;padding-right:7px}.record-grade{display:none}.progress-grid{gap:16px}.game-topline{margin-bottom:18px}.game-title{gap:12px;margin-bottom:21px}.game-title h1{font-size:22px}.game-title p{font-size:10px}.game-title .game-icon{width:45px;height:45px}.game-rule-btn{font-size:10px;min-height:33px;padding:4px 8px}.game-rule-btn .icon{display:none}.board-meta{padding:16px 18px;font-size:10px}.board-body{padding:26px 18px 22px;min-height:355px}.number-card{width:60px;height:78px;font-size:29px}.number-cards{gap:11px}.board-footer{padding:11px 17px;font-size:9px}.question-expression{font-size:33px;letter-spacing:2px;margin:28px 0}.question-expression .question-box{width:43px;height:48px;margin:0 3px}.answers{gap:11px}.answer-btn{min-height:59px;font-size:23px}.memory-digit{width:39px;height:58px;font-size:27px}.memory-digit-row{gap:7px}.result-screen{padding:32px 19px}.result-screen h2{font-size:23px}.result-actions{gap:9px}.result-actions .btn{font-size:11px;padding:10px 16px}.result-stats{gap:35px}.settings-grid{gap:17px}.data-buttons{gap:8px}}
@media(max-width:420px){.main-content{padding:22px 17px 90px}.topbar{padding:0 17px}.welcome-row h1{font-size:20px}.welcome-row p{font-size:10px}.hero{padding:23px 21px;min-height:245px}.hero-text{width:82%}.hero-art{width:230px;right:-60px;top:15px;opacity:.6}.hero h2{font-size:26px;letter-spacing:.4px}.hero-description{max-width:195px;font-size:10px;position:relative;z-index:1}.stats-strip{padding:15px 0}.stat{padding:0 9px}.stat strong{font-size:21px}.stat small{font-size:8px}.stat .unit{font-size:8px}.game-card{padding:17px 14px;min-height:218px}.game-card h3{font-size:15px}.card-top{gap:5px}.game-tag{font-size:7px;padding:2px 4px}.game-icon{height:38px;width:38px;border-radius:11px}.game-icon .icon{width:24px;height:24px}.game-card p{font-size:9px;line-height:1.9}.game-card:last-child:nth-child(odd){padding-left:85px;min-height:150px}.game-card:last-child:nth-child(odd) .card-top{left:16px;top:27px}.game-card:last-child:nth-child(odd) .game-icon{width:49px;height:49px}.game-card:last-child:nth-child(odd) .card-bottom{flex-wrap:wrap}.skill-label{font-size:8px}.play-btn{font-size:9px;min-height:33px}.lobby-aside{gap:12px}.aside-title h3{font-size:11px;gap:4px}.aside-title .icon{width:14px;height:14px}.tiny-label{display:none}.daily-card,.tip-card{padding:16px 13px}.tip-card p{font-size:10px}.filter-tab{padding:5px 10px}.number-card{width:54px;height:72px}.number-cards{gap:10px}.op-btn{min-width:34px;min-height:38px;height:38px}.operator-pad{gap:6px}.expression-field{font-size:19px}.memory-digit-row{gap:5px}.memory-digit{width:34px;height:50px;font-size:23px}.game-controls{gap:9px}.game-controls .btn{min-width:110px}.round-dots{gap:4px}.round-dot{height:6px;width:6px}.board-meta{padding:15px 14px}.game-title h1{font-size:20px}.game-title p{font-size:9px}.section-heading h2{font-size:17px}.question-expression{font-size:29px}}
.brand-sub{white-space:nowrap;font-size:8px;letter-spacing:1.15px}
.game-card p{font-size:12px;color:#82798c}.skill-label{font-size:10px;color:#91839f}.game-tag{font-size:10px}.play-btn{font-size:12px;min-height:36px;padding:6px 12px}.hero-description{color:#827090}.challenge-label{font-size:13px;color:#8e7c9c}.game-message{font-size:13px}.round-info{font-size:12px}.game-title p{font-size:12px;color:#9684a4}.game-title .game-rule-btn{flex-shrink:0}.answers .answer-btn:focus-visible{outline-offset:3px}.hidden{display:block!important;position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
@media(max-width:1200px){.game-card p{font-size:11px}.skill-label{font-size:9px}.play-btn{font-size:11px;padding:6px 9px}.game-tag{font-size:9px}}
@media(max-width:760px){.game-card p{font-size:11px;line-height:1.9}.game-card{min-height:237px}.game-tag{font-size:8px}.play-btn{min-height:40px;font-size:11px}.card-bottom{gap:6px}.filter-tab{min-height:40px}.op-btn{min-height:44px;height:44px;min-width:38px}.game-title p{font-size:10px}.challenge-label,.game-message{font-size:12px}.round-info{font-size:11px}.brand-sub{font-size:8px}.tip-card p{color:#7f8c6c}.goal-message{color:#8e7f9b}}
@media(max-width:420px){.game-card{padding:17px 13px;min-height:244px}.game-card p{font-size:10px}.game-card h3{font-size:15px}.game-tag{font-size:7px}.game-card:last-child:nth-child(odd){min-height:165px}.skill-label{font-size:9px}.play-btn{font-size:10px}.op-btn{min-width:35px}.operator-pad{gap:5px}.game-title p{font-size:9px}.filter-tab{padding:5px 9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.confetti{display:none}}
