:root{--bg:#f6f7f2;--paper:#fff;--ink:#253b35;--muted:#8b948c;--mint:#d8eedb;--green:#3d775c;--line:#e9ece5;--coral:#eaa18b;--ochre:#e6bc65;--lavender:#a8a1ca;--shadow:0 8px 32px #263d3510;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:14px;-webkit-font-smoothing:antialiased}button,a,input,select{-webkit-tap-highlight-color:transparent}button,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}button{border:0}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #5b9f7c;outline-offset:5px}button,select{touch-action:manipulation}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button svg{pointer-events:none}.svg-library{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}
.sidebar{position:fixed;inset:0 auto 0 0;width:88px;border-right:1px solid #e4e8df;display:flex;align-items:center;flex-direction:column;background:#f8f9f5;z-index:20}.brand-mark{margin-top:31px;width:43px;height:43px;border-radius:15px;background:#dbe9d5;color:#426d50;display:grid;place-items:center;transform:rotate(-7deg)}.brand-mark svg{width:30px;height:30px;stroke:none;transform:rotate(7deg)}.side-nav{display:grid;gap:17px;margin-top:64px}.nav-button{width:45px;height:45px;position:relative;border-radius:14px;background:transparent;color:#90998e;display:grid;place-items:center;transition:.2s}.nav-button.active{background:#e2eddf;color:#426d50}.nav-button.active:before{content:"";position:absolute;left:-22px;width:3px;height:22px;border-radius:2px;background:#5a805b}.nav-button:hover{background:#e7eee2;color:#426d50}.nav-tooltip{position:absolute;left:57px;white-space:nowrap;padding:8px 12px;border-radius:8px;font-size:12px;color:white;background:var(--ink);opacity:0;pointer-events:none;transform:translateX(-5px);transition:.2s}.nav-button:hover .nav-tooltip,.nav-button:focus-visible .nav-tooltip{opacity:1;transform:none}.side-bottom{margin-top:auto;margin-bottom:30px;display:flex;align-items:center;gap:22px;flex-direction:column}.vertical-label{writing-mode:vertical-rl;font-size:9px;letter-spacing:2.5px;color:#a3aa9d}.sidebar-dot{width:6px;height:6px;border-radius:50%;background:#a9bea0}.workspace{max-width:1512px;margin-left:88px;padding:0 49px}.topbar{height:98px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e8e0}.brand-name{display:flex;align-items:center;gap:17px;font-size:19px;font-weight:650;letter-spacing:2px}.brand-name>span{font-size:10px;font-weight:500;letter-spacing:2px;color:#9a9f91;border-left:1px solid #dce0d6;padding-left:17px}.topbar-right{display:flex;gap:22px;align-items:center}.today-badge{color:#808a7d;font-size:12px;display:flex;align-items:center;gap:8px}.today-badge>span{width:6px;height:6px;border-radius:50%;background:#a3bb88}.sound-button{background:#fff9;width:37px;height:37px;display:grid;place-items:center;border:1px solid #e2e7dc;border-radius:50%;color:#7e897b}.sound-button svg{width:17px;height:17px}.sound-button:hover{background:#e4eddf}.intro{display:flex;justify-content:space-between;align-items:center;padding:39px 0 32px}.eyebrow{display:flex;align-items:center;gap:7px;font-size:9px;letter-spacing:2.4px;color:#85947a;font-weight:600}.eyebrow>span{width:5px;height:5px;border-radius:50%;background:#819d70}.intro h1{font-size:34px;letter-spacing:1px;line-height:1.5;font-weight:650;margin:12px 0 8px}.heading-dot{color:#81a575}.intro p{font-size:13px;letter-spacing:.6px;color:#8c9487;margin:0}.intro-sticker{position:relative;display:flex;align-items:center;gap:13px;transform:rotate(-8deg);margin-right:19px;color:#9ba88b}.intro-sticker>svg{width:57px;height:57px;color:#bdcdaa;stroke:none}.intro-sticker>span:not(.sticker-spark){font-size:12px;letter-spacing:1px;writing-mode:vertical-rl}.sticker-spark{position:absolute;font-size:32px;left:-27px;bottom:-8px;font-weight:300;color:#a2af8f}
.training-layout{display:grid;grid-template-columns:minmax(0,1fr) 314px;gap:23px;align-items:stretch}.game-panel,.session-panel{background:#fff;border:1px solid #e5e9df;border-radius:23px;box-shadow:0 4px 20px #2b452904}.game-panel{padding:25px 27px 0;min-width:0;overflow:hidden}.game-topline{display:flex;justify-content:space-between;align-items:center}.section-label{display:flex;align-items:center;gap:7px;font-size:11px;letter-spacing:1px;color:#81977b}.tiny-dot{width:6px;height:6px;border-radius:50%;background:#93b185}.difficulty-control{display:flex;align-items:center;gap:6px;font-size:11px;color:#989d92}.difficulty-control select{border:0;background:#f4f6f0;color:#66725e;border-radius:7px;padding:5px 7px;cursor:pointer;min-width:64px;font-size:11px}.difficulty-control select:disabled{cursor:not-allowed;opacity:.6}.rule-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:22px}.rule-heading{display:flex;align-items:center;gap:10px;min-width:0}.rule-symbol{height:32px;width:32px;border-radius:10px;background:#f0f5eb;display:grid;place-items:center;flex-shrink:0}.rule-symbol>svg{width:20px;height:20px;color:#7c9470}.rule-heading h2{font-size:22px;letter-spacing:.4px;font-weight:600;margin:0;line-height:1.6}.rule-highlight{color:#507c58;margin-left:3px}.rule-badge{font-size:10px;color:#8e9786;padding:6px 9px;border:1px solid #e9ecdf;border-radius:6px;white-space:nowrap}.rule-description{font-size:11px;letter-spacing:.3px;color:#989e93;margin:10px 0 23px}.board-wrap{position:relative;background:#f6f7f2;border:1px solid #ecefe6;border-radius:15px;padding:16px;isolation:isolate}.game-board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px}.tile{position:relative;aspect-ratio:1.14;background:white;border:1px solid #e7eade;border-radius:12px;display:grid;place-items:center;box-shadow:0 3px 0 #e6e9df55;transition:transform .16s,box-shadow .16s,background .16s,border-color .16s;min-width:0;padding:0;overflow:visible;user-select:none}.tile:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 6px 12px #35442b0d;border-color:#bed2b5;background:#fefefb}.tile:active:not(:disabled){transform:scale(.94)}.tile:disabled{cursor:default}.shape{display:block;width:31px;height:31px;pointer-events:none;opacity:.94}.shape.circle,.mini-shape.circle{border-radius:50%}.shape.square,.mini-shape.square{border-radius:6px;width:29px;height:29px}.shape.triangle,.mini-shape.triangle{width:33px;height:31px;clip-path:polygon(50% 0,100% 100%,0 100%);border-radius:3px}.shape.diamond,.mini-shape.diamond{width:24px;height:24px;border-radius:4px;transform:rotate(45deg)}.green{background:#90bba7}.coral{background:#e5a08a}.yellow{background:#e5bf6c}.purple{background:#afa3c9}.mini-shape{width:16px;height:16px;display:block}.mini-shape.square{width:15px;height:15px;border-radius:3px}.mini-shape.triangle{width:18px;height:16px}.mini-shape.diamond{width:12px;height:12px;border-radius:2px}.tile.clearing{animation:tile-pop .25s ease forwards;pointer-events:none}.tile.clearing:after{content:"";position:absolute;inset:-6px;border:2px solid #94bf9d;border-radius:17px;animation:tile-ring .36s ease-out forwards}.tile.entering .shape{animation:shape-in .3s cubic-bezier(.2,.8,.2,1.3)}.tile.wrong{animation:tile-shake .32s ease;background:#fff0eb;border-color:#e9ad9b}.tile.memory-lit{border-color:#83b395;background:#ddeddf;box-shadow:0 0 0 2px #92b99a33,0 3px 0 #cddfca}.tile.memory-lit .shape{background:#83ad91;transform:scale(1.12)}.tile.memory-hidden .shape{width:7px;height:7px;border-radius:50%;transform:none;background:#d4dbcc;clip-path:none}.tile.memory-found{background:#eaf3e7;border-color:#c4dabd;box-shadow:none}.tile.memory-found svg{width:25px;height:25px;color:#80a772}.board-overlay{position:absolute;inset:0;z-index:5;background:#f5f7f0e8;backdrop-filter:blur(7px);border-radius:15px;display:flex;align-items:center;justify-content:center;flex-direction:column}.overlay-icon{display:grid;place-items:center;width:55px;height:55px;background:#e0ead9;border-radius:18px;color:#66845b;margin-bottom:8px}.board-overlay h3{font-size:21px;margin:9px 0}.board-overlay p{font-size:12px;color:#89967e;margin:0 0 20px}.small-primary{background:#d1e6cd;border-radius:10px;padding:10px 17px;display:flex;align-items:center;gap:13px;font-size:12px;color:#446b45}.small-primary svg{width:16px;height:16px}.board-toast{position:absolute;bottom:18px;left:50%;transform:translate(-50%,8px);padding:10px 17px;background:#294c3de8;color:white;font-size:12px;box-shadow:var(--shadow);border-radius:30px;pointer-events:none;opacity:0;transition:opacity .2s,transform .2s;white-space:nowrap;z-index:6}.board-toast.visible{opacity:1;transform:translate(-50%,0)}.board-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:54px;font-size:10px;color:#9a9f93}.board-footer>span{display:flex;align-items:center;gap:6px}.board-tip svg{width:13px;height:13px;color:#9ba78e}.status-dot{width:5px;height:5px;background:#afbea2;border-radius:50%;display:inline-block}.board-footer .error-status{color:#bd8373}
.session-panel{padding:25px 25px 0;display:flex;align-items:stretch;flex-direction:column;background:linear-gradient(150deg,#fff 55%,#fcfdf9)}.session-heading{display:flex;align-items:center;justify-content:space-between}.session-heading h2{font-size:13px;font-weight:600;margin:0;letter-spacing:.4px}.session-heading>svg{width:18px;height:18px;color:#a2b68e}.timer{width:190px;height:190px;position:relative;margin:21px auto 13px}.timer-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}.timer-ring circle{fill:none;stroke-width:6}.timer-track{stroke:#edf1e7}.timer-progress{stroke:#a9c194;stroke-dasharray:546.637;stroke-dashoffset:0;stroke-linecap:round;transition:stroke .3s}.timer-inner{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.timer-caption{color:#9ca38f;font-size:10px;letter-spacing:.5px}.timer-number{margin:4px 0 5px;font-family:"Avenir Next",Inter,system-ui,sans-serif;font-size:61px;line-height:1.15;font-weight:500;letter-spacing:-3px;font-variant-numeric:tabular-nums;color:#40563a}.timer-unit{font-size:18px;letter-spacing:0;font-weight:400;margin-left:5px;color:#95a088}.timer-state{font-size:10px;color:#9ca591;display:flex;align-items:center;gap:5px}.timer-state>span{width:4px;height:4px;border-radius:50%;background:#a6b990}.timer-leaf{position:absolute;bottom:3px;right:21px;border:5px solid #fff;border-radius:50%;width:34px;height:34px;background:#e8f0df;color:#8da475;display:grid;place-items:center;transform:rotate(-13deg)}.timer-leaf svg{width:17px;height:17px}.timer.urgent .timer-progress{stroke:#df9f7b}.timer.urgent .timer-number{color:#b7795d}.duration-selector{display:flex;gap:4px;justify-content:center;background:#f4f6ee;border-radius:9px;padding:4px;width:190px;align-self:center}.duration-selector button{background:transparent;color:#a0a592;padding:5px 8px;flex:1;font-size:10px;border-radius:6px;white-space:nowrap;transition:.2s}.duration-selector button.selected{background:#fff;color:#5f7851;box-shadow:0 1px 4px #283b2510}.duration-selector button:disabled{opacity:.6}.session-metrics{display:grid;grid-template-columns:repeat(3,1fr);margin:23px 0 21px}.session-metrics>div{text-align:center;display:flex;flex-direction:column;gap:8px;position:relative}.session-metrics>div+div:before{content:"";position:absolute;width:1px;height:26px;background:#e9ecdf;left:0;top:10px}.metric-label{font-size:10px;color:#959e89}.session-metrics strong{font-size:25px;font-weight:550;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-.5px}.session-metrics small{font-size:11px;color:#9ca68f;margin-left:3px;font-weight:400}.session-metrics #combo.on-fire{color:#cb8c58}.session-actions{margin-top:auto}.primary-button{width:100%;min-height:47px;padding:12px 19px;background:#d7e8c8;border:1px solid #d0e2bf;color:#405e37;display:flex;align-items:center;justify-content:space-between;border-radius:11px;font-size:13px;font-weight:550;letter-spacing:1px;transition:.2s}.primary-button:hover{background:#c8dfb4;box-shadow:0 4px 13px #8fa87522;transform:translateY(-1px)}.primary-button svg{width:18px;height:18px}.secondary-button{width:100%;min-height:47px;border:1px solid #e0e6d7;background:#f5f8f0;display:flex;align-items:center;justify-content:center;gap:9px;border-radius:11px;color:#6b805d;font-size:12px}.secondary-button:hover{background:#eaf1e0}.secondary-button svg{width:16px;height:16px}.keyboard-hint{font-size:9px;color:#a1a795;display:flex;align-items:center;justify-content:center;gap:7px;margin:12px 0 18px}kbd{font-family:inherit;border:1px solid #e0e5d7;border-bottom-width:2px;border-radius:4px;padding:2px 5px;letter-spacing:.3px;color:#99a28e;background:#fff}.personal-best{border-top:1px dashed #e5e8db;min-height:49px;display:flex;align-items:center;justify-content:space-between;font-size:9px;gap:5px;color:#9ba38f}.personal-best>span{display:flex;align-items:center;gap:5px}.personal-best svg{width:12px;height:12px;color:#b2bd9a}.personal-best strong{font-weight:400;font-size:9px;color:#8f9b80}.personal-best strong.has-best{font-weight:600;color:#5e7b50;font-size:12px}
.mode-section{margin-top:28px}.mode-section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.mode-section-header h2{font-size:12px;font-weight:500;letter-spacing:.5px;margin:0;color:#697762}.mode-section-header>span{font-size:10px;color:#a3ab99}.mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.mode-card{position:relative;display:flex;align-items:center;text-align:left;gap:13px;padding:20px 19px;background:#fff9;border:1px solid #e3e8dc;border-radius:14px;min-width:0;transition:background .2s,border-color .2s,transform .2s}.mode-card:hover{transform:translateY(-3px);background:#fff;border-color:#b5c7a8}.mode-card.selected{background:#eef3e7;border-color:#b5c99e}.mode-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;flex-shrink:0}.mode-icon svg{width:22px;height:22px}.mint{background:#dcebd3;color:#6d8c5b}.peach{background:#f8e9df;color:#c99777}.lavender{background:#eee9f4;color:#a494b9}.mode-copy{display:flex;flex-direction:column;gap:7px;min-width:0;position:relative;z-index:1}.mode-name{font-size:13px;display:flex;gap:8px;align-items:center;white-space:nowrap;font-weight:550}.mode-description{font-size:10px;color:#97a08c;white-space:nowrap}.mode-tag{font-size:8px;color:#789561;background:#dfeacb;padding:3px 5px;border-radius:4px;font-weight:400}.mode-number{margin-left:auto;font-size:24px;font-weight:400;letter-spacing:-1px;color:#e3e7dc;align-self:flex-start;line-height:1}.mode-card.selected .mode-number{color:#d3dfc4}.page-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:28px 1px 23px;font-size:9px;color:#a6ad9e}.page-footer>span{display:flex;align-items:center;gap:7px}.page-footer svg{width:14px;height:14px;color:#9bac89}.footer-divider{margin:0 3px;color:#d1d8c9}
#particle-canvas,#floating-points{position:fixed;inset:0;pointer-events:none;z-index:100;width:100%;height:100%}.points-pop{position:absolute;white-space:nowrap;color:#3b926d;font-family:system-ui,sans-serif;font-size:22px;font-weight:750;text-shadow:0 2px 0 #fff;animation:points-rise .85s ease-out forwards;transform:translate(-50%,-50%)}.points-pop.wrong-points{color:#d5826d;font-size:19px}.combo-burst{font-size:12px;font-weight:600;letter-spacing:.5px;padding:5px 9px;background:#fff8df;border:1px solid #efdeb2;border-radius:7px;color:#ba894d;margin-top:21px}.dialog{width:min(475px,calc(100% - 36px));max-height:85dvh;overflow:auto;border:1px solid #e2e8d9;border-radius:24px;padding:36px;background:#fcfdf9;color:var(--ink);box-shadow:0 24px 90px #26392d30}.dialog::backdrop{background:#2d3d3250;backdrop-filter:blur(5px)}.dialog-close{position:absolute;right:16px;top:16px;width:30px;height:30px;display:grid;place-items:center;background:#eef2e9;border-radius:50%;color:#829375}.dialog-close svg{width:15px;height:15px}.dialog h2{font-size:25px;font-weight:600;margin:10px 0 10px;letter-spacing:.3px}.dialog p{font-size:12px;line-height:1.9;color:#8a9680}.dialog .dialog-eyebrow{font-size:10px;letter-spacing:2px;color:#8aa273}.result-flower{width:65px;height:65px;background:#e5efd9;color:#8fa76f;border-radius:22px;display:grid;place-items:center;margin:0 auto 19px;transform:rotate(-8deg)}.result-flower svg{width:42px;height:42px;stroke:none}.result-body{text-align:center}.result-summary{margin:22px 0;display:grid;grid-template-columns:repeat(3,1fr);background:#f0f4e9;border-radius:13px;padding:20px 10px}.result-summary>div{display:grid;gap:7px;font-size:10px;color:#8c9b7d}.result-summary strong{font-size:25px;font-weight:600;color:#547143}.result-best{display:inline-block;border-radius:20px;font-size:10px;color:#a37c3c;background:#f5ecd7;padding:6px 11px}.dialog .primary-button{margin-top:20px}.text-button{background:transparent;color:#8a987d;padding:13px 0 0;font-size:11px}.help-list{display:grid;gap:16px;margin:23px 0}.help-row{display:flex;align-items:flex-start;gap:12px}.help-row .mode-icon{width:35px;height:35px;border-radius:10px}.help-row strong{display:block;font-size:13px;font-weight:550;margin:1px 0 4px}.help-row p{margin:0;font-size:11px;line-height:1.8}.notice{background:#eef3e6;padding:11px 14px;border-radius:10px;font-size:10px!important}.history-summary{display:flex;gap:20px;padding:18px 0;border-bottom:1px solid #e7ebdf}.history-summary>span{display:flex;flex-direction:column;gap:6px;color:#99a48b;font-size:10px;flex:1}.history-summary strong{font-size:23px;color:#5f7951;font-weight:600}.history-list{padding:0;list-style:none;margin:9px 0 0}.history-list li{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ebeee4;padding:13px 0;gap:15px}.history-list li>div{display:grid;gap:5px}.history-list strong{font-size:12px;font-weight:500}.history-list span{font-size:10px;color:#9ba58e}.history-list .history-score{font-size:18px;color:#648057}.empty-history{padding:25px 0;text-align:center}.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.confirm-actions .primary-button{margin:0;justify-content:center}.confirm-actions .secondary-button{height:47px}
@keyframes tile-pop{0%{transform:scale(1)}35%{transform:scale(1.13);background:#e7f3e5}100%{transform:scale(.5);opacity:0}}@keyframes tile-ring{to{transform:scale(1.35);opacity:0}}@keyframes shape-in{from{scale:.3;opacity:0}to{scale:1;opacity:1}}@keyframes tile-shake{0%,100%{translate:0}20%,60%{translate:-4px}40%,80%{translate:4px}}@keyframes points-rise{0%{opacity:0;translate:0 5px;scale:.75}18%{opacity:1;scale:1.06}70%{opacity:1}100%{opacity:0;translate:0 -65px;scale:.94}}@keyframes rule-flash{0%,100%{opacity:1;transform:none}40%{opacity:.3;transform:translateY(-4px)}}.rule-changing{animation:rule-flash .4s ease}.score-bump{animation:shape-in .25s ease}
@media(min-width:1550px){.workspace{margin-left:max(88px,calc((100vw - 1424px)/2));padding:0 52px;max-width:1424px}.intro{padding-top:46px;padding-bottom:37px}.game-board{gap:13px}.board-wrap{padding:20px}.tile{aspect-ratio:1.2}.shape{width:34px;height:34px}.shape.square{width:32px;height:32px}.shape.triangle{width:35px;height:33px}.shape.diamond{width:26px;height:26px}.rule-description{margin-bottom:26px}}
@media(max-width:1180px){.workspace{padding:0 30px}.training-layout{grid-template-columns:minmax(0,1fr) 280px;gap:18px}.game-panel{padding:22px 20px 0}.session-panel{padding:22px 21px 0}.game-board{gap:8px}.board-wrap{padding:12px}.rule-heading h2{font-size:19px}.rule-badge{font-size:9px}.mode-card{padding:18px 14px;gap:10px}.mode-number{display:none}.mode-description{font-size:9px}.mode-icon{width:36px;height:36px}.mode-name{font-size:12px}.mode-tag{font-size:7px}.timer{width:168px;height:168px;margin:17px auto 12px}.session-metrics{margin:20px 0}.board-tip{font-size:9px}.board-footer{font-size:9px}.shape{width:27px;height:27px}.shape.square{width:25px;height:25px}.shape.triangle{width:29px;height:27px}.shape.diamond{width:22px;height:22px}.page-footer{font-size:8px}.intro h1{font-size:31px}}
@media(max-width:960px){.sidebar{width:72px}.workspace{margin-left:72px;padding:0 24px}.brand-mark{width:39px;height:39px}.nav-button.active:before{left:-14px}.brand-name>span{display:none}.intro-sticker{display:none}.training-layout{grid-template-columns:minmax(0,1fr) 245px;gap:15px}.session-panel{padding:20px 16px 0}.game-panel{padding:20px 16px 0}.game-board{gap:7px}.tile{border-radius:8px;aspect-ratio:.95}.board-wrap{padding:10px}.rule-heading h2{font-size:17px}.rule-symbol{width:28px;height:28px}.rule-heading{gap:7px}.rule-badge{display:none}.rule-description{font-size:10px;line-height:1.7;margin-bottom:18px}.board-tip{display:none!important}.timer{width:155px;height:155px;margin:22px auto 14px}.timer-number{font-size:49px}.timer-caption{font-size:9px}.timer-leaf{right:14px}.session-metrics{margin:19px 0}.session-metrics strong{font-size:23px}.mode-grid{gap:10px}.mode-card{padding:16px 11px;gap:9px}.mode-icon{width:32px;height:32px;border-radius:9px}.mode-icon svg{width:19px;height:19px}.mode-name{font-size:11px;gap:5px}.mode-tag{display:none}.mode-description{font-size:8px;letter-spacing:-.2px}.page-footer{align-items:flex-start}.page-footer>span:last-child{max-width:205px;flex-wrap:wrap;justify-content:flex-end;line-height:1.8}.intro{padding:30px 0 27px}.intro h1{font-size:29px}}
@media(max-width:760px){.sidebar{display:none}.workspace{margin:0;padding:0 22px}.topbar{height:76px}.brand-name{font-size:17px}.today-badge{font-size:10px}.topbar-right{gap:13px}.intro{padding:30px 0 25px}.intro h1{font-size:29px;letter-spacing:0;margin-top:10px}.intro p{font-size:11px;letter-spacing:.2px}.eyebrow{font-size:8px;letter-spacing:2px}.training-layout{grid-template-columns:1fr;gap:17px}.game-panel{padding:21px 21px 0;border-radius:20px}.rule-heading h2{font-size:21px}.rule-badge{display:block}.rule-description{font-size:11px}.board-wrap{padding:13px}.game-board{gap:10px}.tile{aspect-ratio:1.1;border-radius:10px}.shape{width:31px;height:31px}.shape.square{width:28px;height:28px}.shape.triangle{width:32px;height:30px}.shape.diamond{width:25px;height:25px}.board-tip{display:flex!important;font-size:9px}.board-footer{min-height:49px}.session-panel{display:grid;grid-template-columns:105px 1fr;column-gap:17px;padding:19px 21px 0;border-radius:20px;position:relative}.session-heading{grid-column:1/-1}.session-heading h2{font-size:12px}.timer{grid-column:1;grid-row:2/5;width:105px;height:105px;margin:17px 0 15px}.timer-caption{font-size:7px}.timer-number{font-size:37px;margin:2px 0;line-height:1.2}.timer-unit{font-size:12px;margin-left:3px}.timer-state{font-size:7px;gap:3px}.timer-ring circle{stroke-width:7}.timer-leaf{display:none}.duration-selector{grid-column:2;grid-row:2;width:100%;padding:2px;margin:13px 0 9px}.duration-selector button{padding:4px;font-size:9px}.session-metrics{grid-column:2;grid-row:3;margin:0 0 14px}.session-metrics>div{gap:5px}.metric-label{font-size:9px}.session-metrics strong{font-size:23px}.session-actions{grid-column:1/-1;grid-row:5;display:flex;align-items:center;gap:15px}.primary-button,.secondary-button{min-height:43px;font-size:12px}.session-actions>.primary-button,.session-actions>.secondary-button{flex:1}.keyboard-hint{margin:0;flex:1;font-size:9px;gap:5px}.personal-best{grid-column:1/-1;min-height:42px;margin-top:14px}.mode-section{margin-top:25px}.mode-grid{gap:9px}.mode-card{flex-direction:column;align-items:flex-start;padding:14px 12px;gap:11px;min-height:125px}.mode-copy{gap:6px}.mode-name{font-size:12px}.mode-description{font-size:9px;white-space:normal;line-height:1.7}.mode-icon{width:33px;height:33px}.mode-number{display:block;position:absolute;right:11px;top:16px;font-size:21px}.mode-section-header h2{font-size:11px}.mode-section-header>span{font-size:9px}.page-footer{padding:22px 0;display:grid;gap:10px;font-size:9px}.page-footer>span:last-child{max-width:none;justify-content:flex-start;font-size:8px;gap:5px}.dialog{padding:32px 24px}.board-toast{font-size:11px;padding:9px 14px;max-width:95%;text-align:center}}
@media(max-width:390px){.workspace{padding:0 14px}.today-badge{font-size:9px}.topbar-right{gap:8px}.intro h1{font-size:26px}.game-panel{padding:17px 14px 0}.rule-heading h2{font-size:18px}.board-wrap{padding:9px}.game-board{gap:7px}.shape{width:25px;height:25px}.shape.square{width:24px;height:24px}.shape.triangle{width:27px;height:25px}.shape.diamond{width:21px;height:21px}.rule-description{font-size:10px}.board-footer{font-size:8px}.board-tip{font-size:8px}.session-panel{padding:17px 16px 0;column-gap:13px}.mode-name{font-size:11px}.mode-card{padding:12px 10px}.mode-description{font-size:8px}}
@media(min-width:1181px){.tile{aspect-ratio:1.95}.workspace{padding-left:42px;padding-right:42px}.intro{padding-top:30px;padding-bottom:27px}.topbar{height:88px}.board-wrap{padding:16px}}
.mode-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.sky{background:#e5eef3;color:#7998ac}
.number-options{display:flex;align-items:center;gap:14px;margin:-4px 0 18px}
.number-options-label{font-size:11px;color:#8d9a89;white-space:nowrap}
.number-count-selector{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;flex:1}
.number-count-selector button{display:flex;align-items:center;justify-content:center;gap:8px;background:#f6f8f2;border:1px solid #e8ecdf;border-radius:8px;color:#87967b;padding:8px 5px;font-size:11px;transition:background .2s,border-color .2s}
.number-count-selector button small{font-size:9px;color:#a3ad98;white-space:nowrap}
.number-count-selector button.selected{background:#eaf2e2;border-color:#b5c99e;color:#527345}
.number-count-selector button:hover:not(:disabled){background:#e8f0df;border-color:#b5c99e}
.number-count-selector button:disabled{opacity:.6}
.game-board.number-board{grid-template-columns:repeat(var(--number-columns,4),minmax(0,1fr));grid-template-rows:repeat(var(--number-columns,4),minmax(0,1fr));height:358px;gap:11px}
.number-board .tile{aspect-ratio:auto;min-height:0;min-width:0}
.tile-number{font-family:"Avenir Next",Inter,system-ui,sans-serif;font-size:30px;font-weight:550;letter-spacing:-.5px;font-variant-numeric:tabular-nums;color:#58766b;pointer-events:none}
.number-board .tile.number-cleared{background:#eff3e9;border:1px dashed #dae3d1;box-shadow:none;opacity:.6}
.number-cleared-mark{width:5px;height:5px;background:#c8d6bd;border-radius:50%;pointer-events:none}
@media(min-width:761px) and (max-width:1050px){.mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:960px){.number-options{gap:9px}.number-count-selector{gap:5px}.number-count-selector button{flex-direction:column;gap:3px;padding:6px 3px;font-size:10px}.number-count-selector button small{font-size:8px}.number-options-label{font-size:10px}.game-board.number-board{height:330px;gap:8px}.tile-number{font-size:25px}}
@media(max-width:760px){.mode-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mode-card{flex-direction:row;align-items:center;min-height:93px}.mode-description{font-size:9px}.mode-number{font-size:18px;top:10px;right:10px}.number-options{align-items:flex-start;flex-direction:column;gap:8px;margin-top:0}.number-count-selector{width:100%;gap:6px}.number-count-selector button{flex-direction:row;gap:5px;padding:8px 3px}.number-count-selector button small{font-size:8px}.game-board.number-board{height:325px;gap:7px}.tile-number{font-size:24px}.number-board[style*="6"] .tile-number{font-size:21px}}
@media(max-width:390px){.mode-card{gap:9px}.mode-description{font-size:8px}.number-count-selector button{font-size:10px;gap:4px}}
.timer.stopwatch .timer-number{font-size:36px;letter-spacing:-1.5px;margin:12px 0 10px}
.timer.stopwatch.long-time .timer-number{font-size:29px;letter-spacing:-1px}
.untimed-note{display:flex;align-items:center;justify-content:center;gap:7px;background:#f1f5eb;color:#869976;font-size:10px;border-radius:9px;padding:10px 6px}
.untimed-note svg{width:13px;height:13px}
.result-time{display:flex;align-items:center;flex-direction:column;gap:8px;margin:22px 0 16px}
.result-time>span{font-size:11px;color:#8c9b7d}
.result-time>strong{font-size:34px;letter-spacing:-1px;line-height:1.4;font-weight:550;color:#547143;font-variant-numeric:tabular-nums}
.dialog .storage-note{font-size:10px;color:#879a76}.dialog .save-warning{font-size:11px;color:#b87564;background:#fff0e9;border-radius:9px;padding:9px}
.history-time{display:flex;flex-direction:column;align-items:flex-end;gap:5px;font-size:16px!important;color:#648057;white-space:nowrap;font-variant-numeric:tabular-nums;flex-shrink:0}
.history-time small{font-size:9px;font-weight:400;color:#99ac85;background:#edf3e5;border-radius:5px;padding:3px 6px}
@media(max-width:960px){.timer.stopwatch .timer-number{font-size:30px}.timer.stopwatch.long-time .timer-number{font-size:25px}.untimed-note{font-size:9px;gap:4px}}
@media(max-width:760px){.timer.stopwatch .timer-number{font-size:22px;letter-spacing:-1px;margin:5px 0}.timer.stopwatch.long-time .timer-number{font-size:18px}.untimed-note{grid-column:2;grid-row:2;margin:13px 0 9px;padding:7px 3px;font-size:9px}.result-time>strong{font-size:30px}.history-list li{gap:9px}.history-time{font-size:14px!important}}
.sound-button{width:auto;min-width:89px;padding:0 12px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:20px;font-size:10px;white-space:nowrap}
.sound-button[aria-pressed="true"]{background:#edf4e6;border-color:#d5e3c7;color:#6c8758}
.sound-button[aria-pressed="false"]{background:#fff9;color:#969f8d}
.session-actions{display:block}
.session-button-row{display:flex;align-items:stretch;gap:9px;width:100%}
.session-button-row>.primary-button,.session-button-row>.secondary-button{flex:1;min-width:0;width:auto}
.session-button-row>.primary-button{padding-inline:13px;letter-spacing:.3px}
.restart-button{display:flex;align-items:center;justify-content:center;gap:6px;flex:0 0 104px;min-height:47px;border:1px solid #dfe7d7;background:#f7f9f3;border-radius:11px;color:#7b906b;font-size:11px;padding:10px 7px;transition:background .2s,border-color .2s}
.restart-button svg{width:15px;height:15px}.restart-button:hover:not(:disabled){background:#eaf1e2;border-color:#b8cca5}.restart-button:disabled{opacity:.45}
.session-actions .keyboard-hint{margin:12px 0 18px;justify-content:center}
@media(max-width:760px){.sound-button{min-width:82px;padding:0 10px;font-size:9px}.topbar-right{gap:10px}.session-actions{display:block}.restart-button{min-height:43px;flex-basis:106px}.session-actions .keyboard-hint{margin:11px 0 0}.today-badge{font-size:9px}.brand-name{letter-spacing:1px}}
@media(max-width:390px){.topbar-right{gap:7px}.sound-button{min-width:77px;padding:0 8px}.today-badge{font-size:8px}.today-badge>span{width:4px;height:4px}.brand-name{font-size:16px}.restart-button{flex-basis:103px}}
.mobile-links{display:none}.mobile-links button{background:transparent;font-size:9px;color:#87977a;padding:3px 0}.mobile-links button:hover{color:#4f784c}.mobile-links>span{color:#b5c0a9}
.butter{background:#f7efd9;color:#ae914e}
.rose{background:#f4e6e9;color:#ae7e8e}
.odd-figure{display:grid;place-items:center;pointer-events:none}
.stroop-stimulus{min-height:216px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;background:#fffdf9;border:1px solid #e8ecdf;border-radius:12px;margin-bottom:14px}
.stimulus-label,.stimulus-hint{font-size:11px;color:#8c9982;letter-spacing:.5px}
.stimulus-hint{font-size:10px;color:#a2ab99}
.stroop-word{font-size:58px;line-height:1.4;font-weight:650;letter-spacing:8px;padding-left:8px}
.game-board.stroop-board{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.stroop-board .color-answer{aspect-ratio:auto;min-height:58px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:13px;color:#586952}
.answer-swatch{width:19px;height:19px;border-radius:6px;pointer-events:none}
.game-board.path-board{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));height:358px;gap:11px}
.path-board .path-tile{aspect-ratio:auto;min-height:0}
.path-dot{width:7px;height:7px;background:#d2dcc9;border-radius:50%;pointer-events:none}
.path-step{font-size:24px;font-weight:550;color:#547e5b;pointer-events:none;font-variant-numeric:tabular-nums}
.path-tile.memory-lit{background:#cee6d2;border-color:#79a987;box-shadow:0 0 0 3px #91b89a2b}
.path-tile.memory-found .path-step{font-size:21px;color:#88a57b}
@media(max-width:960px){.game-board.path-board{height:330px;gap:8px}.stroop-stimulus{min-height:192px}.stroop-word{font-size:49px}.stroop-board .color-answer{min-height:55px}}
@media(max-width:760px){.game-board.path-board{height:325px;gap:8px}.stroop-stimulus{min-height:198px}.stroop-word{font-size:51px}.stroop-board .color-answer{min-height:55px;font-size:12px}.stimulus-label{font-size:10px}.path-step{font-size:22px}}
@media(max-width:760px){.mode-section-header>.mobile-links{display:flex;align-items:center;gap:8px}.mode-section-header>span:not(.mobile-links){display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.points-pop{animation-duration:.5s!important}.tile:hover:not(:disabled){transform:none}}
