@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:Manrope,system-ui,sans-serif;color:#20322d;background:#f7f5ef;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #2a806e;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.5}::selection{background:#cbe9df;color:#173e34}.hidden{display:none!important}.app-shell{min-height:100vh}.topbar{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(22px,4vw,64px);border-bottom:1px solid #e7e6dd;background:#fffefa}.brand{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:-.03em;font-size:20px}.brand-mark{width:30px;height:30px;display:grid;grid-template-columns:repeat(2,1fr);gap:3px}.brand-mark i{border-radius:4px;background:#438c78}.brand-mark i:nth-child(2){background:#efa769}.brand-mark i:nth-child(3){background:#e4c866}.brand-mark i:nth-child(4){background:#7ab4a4}.topbar-note{color:#718078;font-size:13px}.layout{display:grid;grid-template-columns:254px minmax(0,1fr);max-width:1440px;margin:auto;min-height:calc(100vh - 74px)}.sidebar{padding:34px 20px;border-right:1px solid #e7e6dd;display:flex;flex-direction:column;gap:18px}.sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:0 10px}.sidebar h2{font-size:14px;text-transform:uppercase;letter-spacing:.1em;color:#718078;margin:0}.icon-button{width:32px;height:32px;border:0;border-radius:10px;background:#e6efe9;color:#267663;font-size:24px;line-height:1;display:grid;place-items:center}.icon-button:hover{background:#d5e7dc}.profile-list{display:grid;gap:5px}.profile-item{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:0;background:transparent;border-radius:12px;padding:10px;color:#3d534a}.profile-item:hover{background:#eeefe8}.profile-item.active{background:#e1ede5;color:#175743;font-weight:700}.avatar{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#e8bd91;color:#553617;font-weight:800;flex:none}.profile-item:nth-child(3n+2) .avatar{background:#bfdcd2;color:#285d4e}.profile-item:nth-child(3n+3) .avatar{background:#e8dbad;color:#5f501c}.local-note{margin-top:auto;display:flex;align-items:flex-start;gap:9px;padding:12px;color:#65736a;font-size:11px;line-height:1.55}.local-note p{margin:0}.local-dot{width:7px;height:7px;background:#4e9877;border-radius:50%;margin-top:5px;flex:none}.content{padding:clamp(26px,4vw,56px) clamp(22px,5vw,70px);min-width:0}.page-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:52px}.page-intro h1{font-size:clamp(29px,3.1vw,43px);line-height:1.15;letter-spacing:-.035em;margin:0 0 10px;font-weight:800}.page-intro p{margin:0;color:#6e7b70;font-size:15px}.text-button{border:0;background:transparent;color:#277560;font-weight:700;padding:8px 0;text-align:left}.text-button:hover{text-decoration:underline;text-underline-offset:4px}.section-heading,.history-heading{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin-bottom:19px}.section-heading h2,.history-heading h3{font-size:18px;margin:0;letter-spacing:-.025em}.section-heading span{font-size:13px;color:#7b887e}.games-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.game-card{display:flex;flex-direction:column;min-height:320px;padding:18px;border:1px solid #e4e6dc;border-radius:16px;background:#fffefa;text-align:left;color:inherit;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.game-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(31,69,54,.08);border-color:#b9d2c2}.game-preview{height:112px;display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);align-content:center;justify-content:center;gap:8px;border-radius:11px;background:#eef3ea;margin-bottom:21px}.game-preview b{display:grid;place-items:center;font-size:24px}.shapes-preview .circle{width:29px;height:29px;border-radius:50%;background:#e4a16f;place-self:center}.shapes-preview .square{width:28px;height:28px;border-radius:6px;background:#76a797;place-self:center}.shapes-preview .triangle{width:0;height:0;border-left:15px solid transparent;border-right:15px solid transparent;border-bottom:27px solid #d3bc68;place-self:center}.letters-preview{background:#f7eee2}.letters-preview b{color:#446e5a}.letters-preview b:nth-child(2),.letters-preview b:nth-child(5){color:#bd8e52}.double-preview{background:#edf0f6}.double-preview b{color:#617691}.double-preview b:nth-child(2),.double-preview b:nth-child(6){color:#ad735f}.game-type{color:#638173;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;margin-bottom:6px}.game-card strong{font-size:20px;letter-spacing:-.03em}.game-description{font-size:13px;color:#6a786c;line-height:1.55;margin-top:9px}.game-link{font-size:13px;color:#287562;font-weight:800;margin-top:auto;padding-top:21px}.guide{display:flex;align-items:flex-start;gap:16px;margin-top:30px;padding:20px 22px;background:#edf0e6;border-radius:14px;max-width:760px}.guide-icon{font-size:26px;color:#558f77;line-height:1}.guide strong{font-size:14px}.guide p{font-size:13px;line-height:1.55;color:#637265;margin:4px 0 0}.game-toolbar,.play-top,.play-footer,.stats-heading,.history-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.game-toolbar{margin-bottom:20px}.game-actions{display:flex;align-items:center;gap:12px}.size-label{font-size:12px;color:#718076}select{background:#fffefa;border:1px solid #d8dfd4;border-radius:9px;padding:9px 12px;color:#284238}.secondary-button,.primary-button{border-radius:9px;padding:10px 16px;font-size:13px;font-weight:800}.secondary-button{border:1px solid #d6dfd4;background:#fffefa;color:#336957}.secondary-button:hover{background:#eff5ed}.primary-button{border:1px solid #257760;background:#287c63;color:#fff}.primary-button:hover{background:#1d6953}.play-panel,.result-panel{background:#fffefa;border:1px solid #e2e6db;border-radius:18px;padding:clamp(22px,4vw,42px)}.play-caption{font-size:12px;text-transform:uppercase;letter-spacing:.09em;color:#75867b;font-weight:800}.play-top h2{font-size:clamp(25px,3vw,34px);margin:3px 0 0;letter-spacing:-.03em}.play-progress{min-width:150px;text-align:right;font-size:13px;font-weight:700;color:#3f6e5c}.progress-track{height:7px;border-radius:20px;background:#e4eee6;margin-top:9px;overflow:hidden}.progress-track div{height:100%;width:0;background:#448e70;transition:width .2s}.game-help{font-size:14px;color:#6d7a6e;margin:14px 0 30px}.game-grid{display:grid;gap:9px;margin:auto;max-width:580px}.cell{aspect-ratio:1;min-width:0;display:grid;place-items:center;border:1px solid #dce5db;border-radius:11px;background:#f9faf5;color:#285a49;font-family:'DM Sans',sans-serif;font-weight:700;font-size:clamp(19px,3vw,32px);transition:background .15s,border-color .15s,transform .15s}.cell:hover:not(:disabled){background:#edf4e9;border-color:#a9c8b4}.cell.correct{background:#d4eade;border-color:#8fc3a4;color:#1e684c}.cell.correct:after{content:'✓';position:absolute;font-size:13px;transform:translate(20px,-18px)}.cell{position:relative}.cell.wrong{background:#f8e2d7;border-color:#e5a58f;color:#9e503e}.cell.shape-cell span{display:block}.cell.shape-cell .circle{width:55%;aspect-ratio:1;background:#e09a65;border-radius:50%}.cell.shape-cell .square{width:55%;aspect-ratio:1;background:#6caa98;border-radius:7px}.cell.shape-cell .triangle{width:0;height:0;border-left:15px solid transparent;border-right:15px solid transparent;border-bottom:27px solid #d1b75e}.cell.shape-cell .diamond{width:48%;aspect-ratio:1;background:#988ac1;transform:rotate(45deg);border-radius:4px}.play-footer{border-top:1px solid #edf0e9;margin-top:32px;padding-top:20px;font-size:13px;color:#6a7c6f}.result-panel{text-align:center;max-width:640px;margin:0 auto}.result-symbol{display:grid;place-items:center;width:60px;height:60px;border-radius:20px;background:#e0f0e5;color:#287b5d;font-size:32px;margin:0 auto 18px}.result-panel h2{font-size:28px;letter-spacing:-.03em;margin:0 0 8px}.result-panel>p{color:#68786e;margin:0}.result-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:30px 0}.metric{background:#f0f3ea;border-radius:12px;padding:18px 8px}.metric strong{display:block;font-size:23px}.metric span{font-size:12px;color:#68786d}.result-actions{display:flex;justify-content:center;gap:10px}.stats-heading{align-items:flex-start;margin-bottom:24px}.stats-heading h2{font-size:25px;letter-spacing:-.03em;margin:0 0 5px}.stats-heading p{color:#6f7d72;margin:0;font-size:13px}.stats-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:38px}.stats-summary .metric{background:#e9efe7;padding:20px}.history-list{display:grid;gap:8px}.history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:16px 18px;border-radius:12px;background:#fffefa;border:1px solid #e4e8dd}.history-item strong{font-size:14px}.history-item small{display:block;color:#7d897f;margin-top:4px}.history-item span{font-size:13px;color:#466756;text-align:right}.empty-history{border:1px dashed #ced9cc;border-radius:12px;padding:35px;text-align:center;color:#6a7b6c}.stats-disclaimer{font-size:12px;color:#78857b;line-height:1.55;margin-top:22px}dialog{border:0;border-radius:16px;padding:0;box-shadow:0 18px 60px rgba(17,45,31,.18);width:min(420px,calc(100vw - 32px));color:#20322d}dialog::backdrop{background:rgba(24,45,34,.35)}dialog form{padding:26px}.dialog-top{display:flex;justify-content:space-between;align-items:center}.dialog-top h2{margin:0;font-size:22px}.dialog-top .icon-button{background:transparent;color:#6d7f70}.dialog-top+p{font-size:13px;color:#6e7d70;margin:12px 0 24px}dialog label{font-size:12px;font-weight:800;display:block;margin-bottom:7px}dialog input{width:100%;border:1px solid #cbd9cc;border-radius:9px;padding:12px;font-size:15px}dialog input::placeholder{color:#9ba89c}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}@media(max-width:1050px){.games-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-card{min-height:295px}}@media(max-width:700px){.topbar{height:62px;padding:0 18px}.topbar-note{font-size:11px}.brand{font-size:17px}.layout{display:block}.sidebar{border-right:0;border-bottom:1px solid #e4e6dd;padding:14px 18px;gap:8px}.sidebar-head{padding:0}.profile-list{display:flex;overflow-x:auto;gap:5px;padding:1px 0}.profile-item{width:auto;white-space:nowrap;padding:7px 10px}.local-note{display:none}.content{padding:28px 18px 55px}.page-intro{margin-bottom:34px;align-items:flex-start}.page-intro h1{font-size:30px}.page-intro p{font-size:13px}.page-intro .text-button{font-size:12px;white-space:nowrap}.games-grid{grid-template-columns:1fr}.game-card{min-height:225px}.game-preview{height:80px;grid-template-columns:repeat(3,34px);grid-template-rows:repeat(2,32px);gap:3px;margin-bottom:14px}.game-preview b{font-size:20px}.guide{margin-top:20px}.game-toolbar{align-items:flex-start;flex-direction:column}.game-actions{width:100%;flex-wrap:wrap}.size-label{margin-right:auto}.play-top{align-items:flex-start;flex-direction:column}.play-progress{width:100%;text-align:left}.game-grid{gap:5px}.cell{border-radius:7px;font-size:20px}.cell.correct:after{font-size:10px;transform:translate(12px,-12px)}.cell.shape-cell .triangle{border-left-width:10px;border-right-width:10px;border-bottom-width:18px}.result-metrics,.stats-summary{gap:6px}.metric{padding:14px 4px}.metric strong{font-size:18px}.metric span{font-size:10px}.result-actions{flex-direction:column}.history-item{padding:13px}.stats-heading{align-items:flex-start}.stats-heading .text-button{font-size:12px}}

.games-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.game-card{min-height:305px}
.second-heading{margin-top:48px;align-items:flex-end}
.second-heading p{font-size:13px;color:#708072;margin:6px 0 0;line-height:1.5}
.animals-preview{background:#f2efe8}
.animals-preview b{font-size:27px}
.logic-preview{background:#edf4ef;align-items:center}
.logic-preview .sample-dot{display:block;width:24px;height:24px;border-radius:50%;place-self:center}
.logic-preview .sample-dot.small{width:14px;height:14px}
.logic-preview .sample-dot.medium{width:23px;height:23px}
.logic-preview .sample-dot.large{width:31px;height:31px}
.sample-dot.mint,.logic-token.mint,.color-box.mint{background:#66a790}
.sample-dot.coral,.logic-token.coral,.color-box.coral{background:#df9a6d}
.sample-dot.gold,.logic-token.gold,.color-box.gold{background:#d5bb64}
.animal-cell{font-family:system-ui,sans-serif;font-size:clamp(25px,3.2vw,36px)}
.logic-prompt{min-height:140px;border-radius:14px;background:#f0f5ed;display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;padding:22px;margin:0 auto 22px;text-align:center}
.logic-prompt p{font-size:17px;font-weight:700;color:#435d4d;max-width:100%;margin:0}
.prompt-label{font-size:14px;font-weight:700;color:#65796b;margin-right:6px}
.logic-token{display:block;width:45px;height:45px;flex:none;border-radius:50%;box-shadow:inset 0 -4px 0 rgba(0,0,0,.07)}
.logic-token.small{width:28px;height:28px}.logic-token.large{width:64px;height:64px}
.missing-token{width:45px;height:45px;display:grid;place-items:center;background:#fffefa;border:2px dashed #a9c7af;border-radius:50%;font-size:25px;color:#6a9277;font-weight:700}
.logic-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:550px;margin:auto}
.logic-options.four-choices{grid-template-columns:repeat(4,minmax(0,1fr))}
.logic-choice{min-height:100px;display:grid;place-items:center;border:2px solid #dbe5d9;border-radius:14px;background:#fffefa;transition:background .16s,border-color .16s,transform .16s}
.logic-choice:hover{background:#f0f5ed;border-color:#95bfa8;transform:translateY(-2px)}
.logic-choice.chosen{background:#dcefe3;border-color:#67a984}
.color-box{display:block;width:62px;height:45px;border-radius:6px 6px 12px 12px;box-shadow:inset 0 -6px 0 rgba(0,0,0,.08)}
.logic-feedback{min-height:24px;text-align:center;font-size:14px;font-weight:700;color:#336d53;margin:16px 0 0}
@media(max-width:1250px){.games-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.games-grid{grid-template-columns:1fr}.second-heading{margin-top:38px}.second-heading h2{font-size:17px}.second-heading span{white-space:nowrap}.logic-prompt{gap:9px;min-height:120px;padding:16px}.logic-token{width:35px;height:35px}.logic-token.small{width:23px;height:23px}.logic-token.large{width:50px;height:50px}.missing-token{width:35px;height:35px}.logic-options{gap:8px}.logic-choice{min-height:82px}.color-box{width:45px;height:35px}}

.game-grid[data-size="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}
.game-grid[data-size="6"]{grid-template-columns:repeat(6,minmax(0,1fr))}
.game-grid[data-size="8"]{grid-template-columns:repeat(8,minmax(0,1fr))}
@media(max-width:900px){.layout{display:block}.sidebar{border-right:0;border-bottom:1px solid #e4e6dd;padding:14px 18px;gap:8px}.profile-list{display:flex;overflow-x:auto}.profile-item{width:auto;white-space:nowrap}.local-note{display:none}}
@media(min-width:481px) and (max-width:700px){.game-grid[data-size="8"]{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:480px){.game-grid[data-size="6"],.game-grid[data-size="8"]{grid-template-columns:repeat(4,minmax(0,1fr))}.game-actions .secondary-button{min-height:44px}.game-actions select{min-height:44px}}
