:root{color-scheme:light;--paper: #fcfbf8;--surface: #fff;--ink: #263047;--muted: #677084;--line: #d7dce5;--rule: #e5e8ef;--soft: #f0f2f6;--accent: #4664d7;--tint: #e9eeff;--blue: #4664d7;--red: #c54067;--green: #117e69;--gold: #996900;--violet: #7052c1;--device: #263047}:root[data-theme=dark]{color-scheme:dark;--paper: #191d27;--surface: #242b3a;--ink: #eef1f8;--muted: #b3bdcf;--line: #536078;--rule: #343e51;--soft: #2b3446;--accent: #9bb4ff;--tint: #2c3c61;--blue: #9bb4ff;--red: #ffa0bb;--green: #7ad9bd;--gold: #f4d079;--violet: #c9adff}*{box-sizing:border-box;scrollbar-color:var(--line) var(--paper);scrollbar-width:thin}::selection{background:var(--accent);color:var(--surface)}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 Manrope,system-ui,sans-serif}button,select,input{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button,select,.button{min-height:44px}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:10px;padding:9px 14px;background:var(--soft);color:var(--ink);font-weight:600;cursor:pointer;text-decoration:none;touch-action:manipulation;transition:background-color .16s ease-out,color .16s ease-out,border-color .16s ease-out}button:disabled{cursor:default;color:var(--muted)}button:not(:disabled):hover,.button:hover{border-color:var(--accent)}button:not(:disabled):active,.button:active{transform:translateY(1px)}button[aria-pressed=true]{background:var(--tint);border-color:var(--accent);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}a{color:inherit;text-underline-offset:4px}a:hover{color:var(--accent)}button:focus-visible,a:focus-visible,select:focus-visible,[tabindex]:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}select{max-width:100%;border:1px solid transparent;border-radius:10px;padding:9px 12px;background:var(--soft);color:var(--ink);font-weight:600}h1,h2,p{margin:0}h1,h2{font-weight:700;line-height:1.15}h1{font-size:38px;letter-spacing:-.03em}h2{font-size:22px;letter-spacing:-.4px}svg{display:block}button>svg{flex:none}button.primary,.button.primary{background:var(--accent);border-color:var(--accent);color:var(--surface)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:fixed;top:-100px;left:16px;z-index:100;background:var(--surface);padding:12px}.skip:focus{top:10px}.wrap{max-width:1120px;margin-inline:auto;padding-inline:28px}body[data-category=memory]{--accent: var(--red);--tint: #fbe9e4}body[data-category=attention]{--accent: var(--gold);--tint: #f8edcf}body[data-category=space]{--accent: var(--violet);--tint: #eee5f8}body[data-category=planning]{--accent: var(--green);--tint: #dff1ed}body[data-category=numbers]{--accent: #a94c22;--tint: #fae9db}[data-theme=dark] body[data-category=memory]{--tint: #4a2c31}[data-theme=dark] body[data-category=attention]{--tint: #443c26}[data-theme=dark] body[data-category=space]{--tint: #3d2f54}[data-theme=dark] body[data-category=planning]{--tint: #203f3d}[data-theme=dark] body[data-category=numbers]{--accent: #f4ad78;--tint: #473528}.site-header{display:flex;align-items:center;gap:36px;min-height:64px;border-bottom:1px solid var(--rule)}.site-header a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}.site-brand{font-size:18px;font-weight:700;letter-spacing:-.5px}.site-header nav{display:flex;gap:24px;font-size:13px;color:var(--muted)}.site-header nav a[aria-current]{text-decoration:underline;text-decoration-thickness:2px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:16px}.theme-toggle{padding:10px;border-color:transparent;background:none}.theme-toggle svg,.back-link svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.site-footer{display:flex;gap:24px;align-items:center;padding-top:30px;padding-bottom:30px;margin-top:64px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}.site-footer span{margin-left:auto}.site-footer a{display:flex;align-items:center;min-height:44px}.catalog-heading{padding:38px 0 24px}.catalog-heading h1{display:flex;align-items:center;gap:14px}.catalog-heading h1>span{font-size:16px;letter-spacing:0;font-weight:550;color:var(--muted);align-self:start;line-height:1.8}.catalog-heading p{margin-top:10px;color:var(--muted)}.filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:30px}.filters button{border-color:transparent;background:none;padding-inline:15px}.filters button[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink);box-shadow:none}.game-library{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 24px}.game-cover{min-width:0}.game-cover>a{display:block;text-decoration:none}.game-preview{position:relative;aspect-ratio:1.32;display:grid;place-items:center;background:transparent;color:#3f5fc7;overflow:hidden;border-radius:12px}.game-preview[data-color=memory]{color:#b23e5c}.game-preview[data-color=attention]{color:#8b6407}.game-preview[data-color=space]{color:#7153b5}.game-preview[data-color=planning]{color:#137d67}.game-preview[data-color=numbers]{color:#a65224}.game-preview>svg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:visible}.game-cover a:hover .game-preview>svg,.game-cover a:focus-visible .game-preview>svg{transform:scale(1.045)}.game-preview>svg{transition:transform .24s cubic-bezier(.16,1,.3,1)}.cover-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:13px}.cover-caption h2{font-size:17px;font-weight:600;letter-spacing:-.02em}.cover-caption>svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6}.game-cover p{margin-top:5px;color:var(--muted);font-size:13px}.catalog-notes{margin-top:48px;max-width:680px;color:var(--muted);font-size:14px}summary{cursor:pointer;min-height:44px;display:list-item;padding-block:11px;color:var(--ink)}details p{margin:8px 0 12px}.pv-cell{fill:#fff;stroke:#cbd2df;stroke-width:.9}.pv-strong{fill:currentColor}.pv-back{fill:currentColor;opacity:.16}.pv-grid-rule{fill:none;stroke:currentColor;stroke-width:1.6}.pv-symbol,.pv-ink{fill:currentColor}.pv-device{fill:var(--device)}.pv-paper{fill:#fff}.pv-wall{fill:currentColor;opacity:.22}.pv-crate{fill:#e6a446;stroke:currentColor;stroke-width:1}.pv-crate-mark{fill:none;stroke:currentColor;stroke-width:1.2}.pv-line,.pv-pipe{fill:none;stroke:currentColor;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.pv-code-0{fill:#3c66d1}.pv-code-1{fill:#c8493e}.pv-code-2{fill:#87620f}.pv-code-3{fill:#236d61}.game-preview text{fill:currentColor;font-family:Manrope,system-ui,sans-serif;font-weight:700;text-anchor:middle;dominant-baseline:central}.game-preview .pv-paper text,.game-preview text.pv-paper{fill:#fff}.game-preview text.pv-dark{fill:var(--device)}.pv-merge-2{fill:#efe5d9}.pv-merge-4{fill:#f2d7a4}.pv-merge-8{fill:#efb077}.pv-merge-16{fill:#f48b68}.pv-merge-32{fill:#ae473f}.pv-merge-128{fill:#825296}.pv-merge-256{fill:#5f52ad}.game-heading{max-width:400px;margin:24px auto 8px;display:flex;align-items:center;gap:8px}.game-heading h1{font-size:28px;letter-spacing:-.025em}.back-link{display:grid;place-items:center;width:44px;height:44px;flex:none}.puzzle{max-width:400px;margin:auto}.puzzle-toolbar{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:20px}.puzzle-toolbar button{font-size:14px;padding-inline:14px}.pause-control{width:44px;min-width:44px;padding:10px;border-color:transparent;background:none}.pause-control svg,.pause-symbol,.game-help summary svg,.link-arrow,.level-select svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.level-select{position:relative;display:inline-flex}.level-select select{-webkit-appearance:none;-moz-appearance:none;appearance:none;font-size:13px;min-width:112px;padding:10px 36px 10px 14px}.level-select svg{position:absolute;right:12px;top:12px;width:20px;height:20px;pointer-events:none}.level-note{color:var(--muted);font-size:12px;margin-left:auto;text-align:right;font-weight:500}.puzzle-hud{margin:0 0 16px;font-variant-numeric:tabular-nums}.game-stats{display:flex;flex-wrap:wrap;gap:8px 18px}.game-stats>div,.game-clock{display:flex;align-items:baseline;gap:5px}.game-stats span,.game-clock span{font-size:11px;color:var(--muted)}.game-stats strong,.game-clock strong{font-size:13px;line-height:1.4;font-weight:600}.game-stats>div:first-child strong{color:var(--ink)}.game-clock{align-items:center;gap:8px;font-variant-numeric:tabular-nums}.game-rule{font-size:13px;line-height:1.5;margin:0 0 18px;color:var(--muted)}.game-board{width:100%;margin-inline:auto}.game-tools{margin:14px 0 0;display:flex;flex-direction:column;gap:8px}.game-tools:empty{display:none}.puzzle-actions{display:flex;gap:12px;margin-top:18px}.puzzle-actions button{flex:1;background:transparent;color:var(--muted);font-size:13px}.puzzle-actions button[aria-pressed=true]{background:var(--tint);color:var(--accent);box-shadow:none;border-color:transparent}.puzzle:has([data-result]:not([hidden])) .puzzle-actions{display:none}.game-message{max-width:440px;margin:12px auto 0;font-size:13px;min-height:20px;color:var(--accent)}.game-message:empty{display:none}.personal-best{font-size:12px;margin:14px 0;color:var(--muted)}.personal-best:empty{display:none}.game-help{margin-top:16px;border-top:1px solid var(--rule);font-size:13px;color:var(--muted)}.game-help summary{display:flex;align-items:center;gap:12px;list-style:none}.game-help summary::-webkit-details-marker{display:none}.game-help summary>span:first-child{flex:none;font-weight:600}.game-help summary svg{width:16px;height:16px}.game-help[open] summary svg{transform:rotate(180deg)}.game-help ol{padding-left:22px}.game-help li{margin:10px 0}.game-help p{max-width:580px}.more-games{max-width:400px;margin:40px auto 0;padding-top:20px;border-top:1px solid var(--rule)}.more-games h2{font-size:16px}.more-games>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}.more-games a{min-height:44px;display:grid;grid-template-columns:1fr 16px;gap:8px;align-content:start;font-size:12px;font-weight:600;text-decoration:none}.more-games .game-preview{grid-column:1 / -1;aspect-ratio:1.7}.more-games .game-preview svg{height:100%;width:100%;max-width:100%}.more-games .link-arrow{width:18px;height:18px}.pause-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;background:var(--tint);color:var(--accent);max-width:440px;margin-inline:auto;border-radius:6px}.pause-symbol{width:48px;height:48px;stroke-width:2}.loading-board{padding:70px 0;text-align:center;color:var(--muted)}.game-result[data-pointer-focus]:focus-visible{outline:none}.game-result{border-top:1px solid var(--line);padding:24px 0;margin:20px 0;max-width:440px;margin-inline:auto}.result-heading{display:flex;gap:14px;align-items:center}.result-heading h2{font-size:22px}.result-heading p{margin-top:5px;font-size:14px}.result-mark{display:grid;place-items:center;width:44px;height:44px;flex:none;background:var(--tint);color:var(--accent);font-size:28px;border-radius:50%}.result-detail{display:flex;gap:20px;align-items:center;margin:20px 0;font-size:13px}.result-detail strong{font-size:26px}.result-actions{display:flex;gap:22px;align-items:center}.game-result [data-save-state]{margin-top:15px;font-size:12px;color:var(--muted)}.puzzle-grid{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));border:1px solid var(--ink);background:var(--line);gap:1px}.puzzle-grid .cell{min-width:0;min-height:0;aspect-ratio:1;padding:0;border:0;border-radius:0;position:relative;font-variant-numeric:tabular-nums}.puzzle-grid .cell:focus-visible{outline-offset:-3px;z-index:2}.puzzle-grid .cell[aria-pressed=true]{box-shadow:none}.tool-row{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.tool-row button{font-size:13px}.segmented{display:flex;justify-content:center;gap:6px}.segmented>button{flex:1;max-width:200px}.dpad{display:grid;grid-template-columns:repeat(3,54px);grid-template-rows:repeat(2,46px);justify-content:center;gap:5px}.dpad>button{padding:6px}.dpad>button:first-child{grid-column:2}.dpad>button:nth-child(2){grid-row:2;grid-column:1}.dpad>button:nth-child(3){grid-row:2;grid-column:2}.dpad>button:nth-child(4){grid-row:2;grid-column:3}.board-note{font-size:13px;color:var(--muted);padding-block:16px}.board-label{display:block;font-size:12px;color:var(--muted);margin:0 0 8px}.motif{width:75%;height:75%;fill:currentColor}.motif-hole{fill:var(--surface)}.ink-0{color:var(--blue)}.ink-1{color:var(--red)}.ink-2{color:var(--green)}.ink-3{color:var(--violet)}.sudoku-board{gap:0;border:2px solid var(--ink)}.sudoku-board .cell{border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-size:clamp(19px,4.5vw,26px);font-weight:550}.sudoku-board .cell:nth-child(9n){border-right:0}.sudoku-board .box-right{border-right:2px solid var(--ink)}.sudoku-board .box-bottom{border-bottom:2px solid var(--ink)}.sudoku-board .given{font-weight:800;color:var(--ink)}.sudoku-board .entered{color:var(--accent)}.sudoku-board .related-cell{background:var(--soft)}.sudoku-board .same-value{background:var(--tint)}.sudoku-board .selected-cell{background:var(--tint);box-shadow:inset 0 0 0 2px var(--accent);z-index:1}.pencil-notes{display:grid;grid-template-columns:repeat(3,1fr);width:90%;height:90%;font-size:10px;font-weight:500;line-height:1.15;color:var(--muted)}.pencil-notes i{font-style:normal}.number-pad{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.number-pad button{padding:5px;font-size:20px;font-weight:600;min-height:44px;border-color:transparent;background:var(--soft)}.puzzle[data-puzzle=sudoku] .tool-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.puzzle[data-puzzle=sudoku] .tool-row button{font-size:12px;padding:8px 4px;background:transparent}.puzzle[data-puzzle=sudoku] .tool-row button[aria-pressed=true]{background:var(--tint)}.number-pad .digit-complete{color:var(--muted);background:var(--soft)}.sliding-board{gap:6px;padding:6px;border:0;background:var(--tint);border-radius:6px}.sliding-board .cell{border-radius:4px;font-size:clamp(26px,6vw,40px);font-weight:700;border:1px solid var(--line);box-shadow:0 2px 3px #24283514}.sliding-board .empty-tile{background:transparent;border:1px dashed var(--line);box-shadow:none}.sliding-board .in-place{background:var(--accent);color:var(--surface);border-color:var(--accent)}.merge-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:8px;background:color-mix(in srgb,var(--accent) 30%,var(--tint));border-radius:6px}.merge-tile{display:grid;place-items:center;aspect-ratio:1;min-width:0;font-size:clamp(23px,6vw,37px);font-weight:800;background:var(--surface);border-radius:4px;color:#282432}.merge-tile.value-0{background:color-mix(in srgb,var(--surface) 36%,transparent)}.value-2{background:#efe5d9}.value-4{background:#f2d7a4}.value-8{background:#efb077}.value-16{background:#f48b68}.value-32{background:#ae473f;color:#fff}.value-64{background:#af3c53;color:#fff}.value-128{background:#825296;color:#fff}.value-256{background:#5f52ad;color:#fff}.value-512{background:#385ec4;color:#fff}.value-1024{background:#176c9d;color:#fff}.value-2048{background:#146653;color:#fff}.nonogram-board{display:grid;grid-template-columns:minmax(38px,.95fr) repeat(var(--n),minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line)}.nonogram-board>div,.nonogram-corner{background:var(--paper)}.column-clue{display:flex;flex-direction:column;justify-content:end;align-items:center;padding:5px 0;font-size:12px;line-height:1.25}.row-clue{display:flex;align-items:center;justify-content:end;padding-right:5px;font-size:12px;letter-spacing:2px;white-space:nowrap}.nonogram-cell{min-width:0;min-height:0;aspect-ratio:1;border:0;border-radius:0;padding:0}.nonogram-cell.filled-cell{background:var(--ink);color:var(--paper)}.clue-done{text-decoration:line-through;color:var(--muted)}.nonogram-cell svg{width:55%;height:55%}.mines-board .cell{font-size:clamp(17px,4vw,25px);font-weight:800;background:var(--soft);box-shadow:inset 0 -3px color-mix(in srgb,var(--ink) 15%,transparent)}.mines-board .opened{background:var(--surface);box-shadow:none}.mine-dot{width:45%;aspect-ratio:1;background:var(--ink);border-radius:50%;outline:2px solid var(--ink);outline-offset:3px}.mines-board .exploded{background:#f2aaa3}.mines-board .number-1{color:var(--blue)}.mines-board .number-2{color:var(--green)}.mines-board .number-3,.mines-board .number-5{color:var(--red)}.mines-board .number-4,.mines-board .number-6{color:var(--violet)}.sokoban-board,.maze-board{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));padding:3px;background:var(--line);gap:1px}.warehouse-cell{aspect-ratio:1;display:grid;place-items:center;background:var(--surface);position:relative}.warehouse-cell.wall{background:var(--ink);opacity:.88;box-shadow:inset 0 -5px #0002}.warehouse-cell.goal{background:var(--tint)}.crate{width:82%;height:82%;display:grid;place-items:center;background:#edb766;border:2px solid #88571f;position:relative;border-radius:2px}.crate>span:before,.crate>span:after{content:"";position:absolute;left:10%;top:45%;width:80%;height:2px;background:#88571f;transform:rotate(45deg)}.crate>span:after{transform:rotate(-45deg)}.crate.stored{background:var(--accent);color:var(--surface);border-color:var(--accent)}.crate>svg{width:70%;height:70%}.goal-dot{width:35%;height:35%;border:2px dashed var(--accent);border-radius:50%}.player-token{display:grid;place-items:center;background:var(--accent);width:64%;height:64%;border-radius:50%;border:3px solid var(--surface);outline:1px solid var(--accent)}.player-token>i{background:var(--surface);width:30%;height:30%;border-radius:50%}.maze-board{gap:0;padding:0;border:2px solid var(--ink)}.maze-cell{aspect-ratio:1;background:var(--surface);display:grid;place-items:center}.maze-cell.wall{background:var(--ink)}.maze-cell.visited{background:var(--tint)}.maze-player{width:70%;height:70%;border-radius:50%;background:var(--accent);border:2px solid var(--surface)}.maze-goal{width:72%;height:72%;border:3px solid var(--accent);position:relative}.maze-goal:after{content:"";width:35%;height:35%;background:var(--accent);position:absolute;top:30%;right:30%;bottom:30%;left:30%}.hanoi-board{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding-top:15px}.hanoi-tower{height:265px;position:relative;border:0;border-bottom:5px solid var(--ink);border-radius:0;background:none;padding:0 0 22px;align-items:end}.tower-rod{position:absolute;left:calc(50% - 3px);bottom:28px;top:10px;width:6px;background:var(--line);border-radius:3px}.tower-disks{display:flex;flex-direction:column-reverse;align-items:center;width:100%;z-index:1;gap:3px}.hanoi-disk{display:grid;place-items:center;height:25px;width:calc(26% + var(--size)/var(--max)*72%);background:#e0a44a;color:#23232a;font-size:12px;font-weight:800;border-radius:4px;box-shadow:inset 0 -2px #0002}.disk-1{background:#65b9ac}.disk-2{background:#7fa7e7}.disk-3{background:#b498dc}.disk-4{background:#ed9a89}.disk-5{background:#e0b46a}.disk-6{background:#9cbe76}.disk-7{background:#e6c254}.tower-label{position:absolute;bottom:-32px;font-size:12px;color:var(--muted)}.hanoi-board+.game-tools{margin-top:42px}.game-board:has(.hanoi-board){padding-bottom:30px}.lights-board{gap:6px;background:none;border:0}.lights-board .light-cell{border:1px solid var(--line);border-radius:5px;background:var(--soft)}.lights-board .lit{background:#f4ce62;border-color:#9b721c;color:#4b390a;box-shadow:inset 0 0 0 2px #9b721c}.light-bulb{width:50%;height:50%;display:grid;place-items:center}.light-bulb svg{width:90%;height:90%;stroke-width:1.5}.light-bulb i{width:15%;aspect-ratio:1;border:1px solid var(--muted);border-radius:50%}.pipes-board{gap:0}.pipes-board .pipe-cell{border:1px solid var(--line)}.pipe-cell>svg{width:100%;height:100%;fill:none;stroke:var(--muted);stroke-width:4;stroke-linecap:round}.pipe-cell.connected>svg{stroke:var(--accent);stroke-width:7}.pipe-cell.connected{background:var(--tint)}.pipe-cell circle{fill:var(--surface)}.pipe-cell .source-dot{stroke-width:2;stroke:var(--ink)}.chess-board{gap:0;border:2px solid var(--ink)}.chess-board .chess-cell{background:var(--surface);color:var(--ink)}.chess-board .chess-dark{background:var(--tint)}.chess-piece{width:75%;height:75%;fill:var(--accent);stroke:var(--accent);stroke-width:1.7;stroke-linecap:round}.conflict-mark{position:absolute;right:1px;top:0;color:var(--red);background:var(--surface);width:18px;border-radius:50%;font-size:14px}.chess-board .conflicting{box-shadow:inset 0 0 0 2px var(--red)}.knight-token{font-size:26px;background:var(--accent);color:var(--surface);width:70%;height:70%;border-radius:50%;display:grid;place-items:center}.knight-token svg{width:80%;height:80%}.legal-dot{width:24%;height:24%;border-radius:50%;border:2px solid var(--accent)}.chess-cell.path-cell small{font-size:12px;color:var(--muted)}.pairs-board{gap:7px;background:none;border:0}.pairs-board .memory-card{border-radius:6px;border:1px solid var(--line);aspect-ratio:.92}.pairs-board .memory-card:not(.face-up){background:var(--accent);border-color:var(--accent);color:var(--surface)}.memory-card .memory-back{width:40%;height:40%;display:grid;grid-template-columns:repeat(2,1fr);gap:4px;transform:rotate(45deg)}.memory-back i{background:currentColor}.memory-card.matched{background:var(--tint);border-color:transparent}.memory-card .memory-art{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;height:100%;position:relative}.memory-art .motif{width:60%;height:60%}.memory-dots{display:flex;position:absolute;bottom:7px;gap:4px}.memory-dots i{width:5px;height:5px;background:var(--ink);border-radius:50%}.memory-card .cell-mark{position:absolute;top:3px;right:3px;color:var(--accent)}.cell-mark svg{width:14px;height:14px}.find-number{display:flex;align-items:baseline;justify-content:center;gap:10px;font-size:14px;margin-bottom:14px}.find-number strong{font-size:32px;line-height:1.2;color:var(--accent)}.schulte-board .cell{font-size:clamp(18px,4.7vw,28px);font-weight:700}.schulte-board .found-number{background:var(--soft);color:var(--muted);text-decoration:line-through;text-decoration-thickness:1px}.sequence-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px;font-weight:600;margin-bottom:14px;min-height:24px}.sequence-count{font-variant-numeric:tabular-nums;font-size:13px}.sequence-count>span{color:var(--muted)}.simon-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.simon-pad{aspect-ratio:1;min-height:0;border:0;border-radius:16px;padding:20px;display:grid;place-items:center;font-size:48px;font-weight:600;background:var(--pad-color);color:var(--pad-ink);transition:background-color .08s linear,color .08s linear}.simon-0{--pad-color: #5475e8;--pad-ink: #fff}.simon-1{--pad-color: #f08e9d;--pad-ink: #69273a}.simon-2{--pad-color: #f6cd68;--pad-ink: #66500d}.simon-3{--pad-color: #78ccb2;--pad-ink: #165e4e}.simon-pad:disabled{color:var(--pad-ink)}.simon-pad:not(:disabled):hover{background:color-mix(in srgb,var(--pad-color) 94%,#fff)}.simon-pad:focus-visible{outline:2px solid var(--ink);outline-offset:4px}.simon-pad.signal-on,.simon-pad.signal-on:not(:disabled):hover{background:var(--pad-ink);color:var(--pad-color)}.simon-pad:not(:disabled):active{transform:none}.code-history{max-height:185px;min-height:90px;overflow-y:auto;overscroll-behavior:contain;border-bottom:1px solid var(--line);margin-bottom:18px}.code-row{display:flex;align-items:center;gap:8px;padding:10px 0;border-top:1px solid var(--line)}.code-row:first-child{border-top:0}.attempt-number{font-size:12px;color:var(--muted);min-width:16px}.code-guess{display:flex;gap:5px}.code-feedback{margin-left:auto;font-size:11px;line-height:1.5;white-space:nowrap}.code-chip{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--soft);font-size:15px;font-weight:800;color:#fff}.code-chip.hue-0{background:#355ccc}.code-chip.hue-1{background:#af3d35}.code-chip.hue-2{background:#836112}.code-chip.hue-3{background:#14776a}.code-chip.hue-4{background:#7543af}.code-chip.hue-5{background:#555a66}.code-entry,.code-palette{display:flex;gap:6px;justify-content:center}.code-entry button{width:58px;height:62px;padding:5px}.code-palette button{padding:6px;flex:1;max-width:64px}.code-entry button[aria-pressed=true]{border:2px solid var(--accent)}.code-chip.hue-empty{color:var(--muted);border:1px dashed var(--muted);background:none}.difference-fields{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.game-board:has(.difference-fields){max-width:680px}.difference-grid{gap:0;border:1px solid var(--line)}.pattern-cell{aspect-ratio:1;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line)!important;position:relative;min-width:0}.pattern-cell .motif{width:80%;height:80%}.difference-found{box-shadow:inset 0 0 0 2px var(--accent)}.difference-check{position:absolute;right:1px;bottom:1px;background:var(--accent);color:var(--surface);width:18px;height:18px;display:grid;place-items:center;border-radius:50%}.difference-check svg{width:14px;height:14px}.set-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.set-card{height:90px;padding:16px 7px 8px;position:relative;min-width:0}.set-color-label{position:absolute;top:3px;left:8px;font-size:10px;color:var(--muted)}.set-shapes{display:flex;align-items:center;justify-content:center;width:100%;height:100%;gap:1px}.set-shapes .motif{width:32%;height:85%;max-width:36px}.wordsearch-board{gap:0}.wordsearch-board .word-cell{font-size:clamp(12px,3.3vw,18px);border:0;background:var(--surface)}.wordsearch-board .word-found{color:var(--accent);text-decoration:underline;text-decoration-thickness:2px;background:var(--tint)}.wordsearch-board .selected-cell{box-shadow:inset 0 0 0 2px var(--accent)}.word-list{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 16px;font-size:13px}.word-list>span{display:flex;gap:4px;align-items:center}.word-list .complete-word{text-decoration:line-through;color:var(--muted)}.word-list svg{width:14px;height:14px}.target-number{font-size:78px;line-height:1.3;text-align:center;font-weight:800;color:var(--accent);letter-spacing:-4px;margin:10px 0 25px}.arithmetic-numbers{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.arithmetic-numbers button{flex:1;min-width:60px;min-height:90px;flex-direction:column;padding:8px;overflow-wrap:anywhere}.arithmetic-numbers strong{font-size:30px}.arithmetic-numbers small{font-size:10px}.arithmetic-ops{display:flex;justify-content:center;gap:8px}.arithmetic-ops button{width:62px;height:54px;font-size:27px}.arithmetic-ops button:disabled{opacity:.5}.storage-banner{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;max-width:760px;margin:4px auto 8px;font-size:12px;color:var(--muted)}.storage-banner a{min-height:44px;display:flex;align-items:center}.progress-stats{display:flex;flex-wrap:wrap;gap:8px 20px;margin:12px 0 0;font-size:13px;color:var(--muted)}.progress-stats>div{display:flex;align-items:baseline;gap:5px}.progress-stats strong{font-size:14px;font-weight:600;color:var(--ink)}.progress-stats span{font-size:13px}.progress-empty{padding:50px 0}.progress-empty h2{margin-bottom:24px}.history-filters{display:flex;gap:12px;margin:12px 0 8px}.history-filters label{min-width:0;flex:1;font-size:12px}.history-filters select{width:100%;min-width:0}.outcome{display:inline-flex;align-items:center;gap:6px;color:var(--muted)}.outcome.solved{color:var(--green)}.outcome svg{width:15px;height:15px}.duration-cell{font-variant-numeric:tabular-nums;font-weight:600}.diary-heading,.diary-content{max-width:760px;margin-inline:auto}.diary-heading{padding-bottom:0}.history-entry{padding:14px 0;border-bottom:1px solid var(--rule)}.history-main{display:flex;align-items:center;justify-content:space-between;gap:16px}.history-main h2{font-size:15px;font-weight:600;letter-spacing:0}.history-main a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}.history-main .duration-cell{font-size:14px;flex:none}.history-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--muted)}.history-detail{margin-top:5px;font-size:12px;color:var(--muted)}.history-no-results{padding-block:24px;color:var(--muted)}.history-count{font-size:12px;color:var(--muted);margin:15px 0}@media (min-width:900px){.game-heading{margin-top:24px}.game-board,.puzzle-hud,.game-result,.pause-panel,.game-tools{max-width:400px}.site-header{padding-top:0;padding-bottom:0}}@media (min-width:900px) and (max-height:800px){body[data-category=memory]:has([data-puzzle=simon]) :is(.game-heading,.puzzle,.more-games){max-width:350px}.puzzle[data-puzzle=schulte] .game-board{max-width:360px}}@media (max-width:800px){.game-library{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 18px}.wrap{padding-inline:20px}.site-header{gap:22px}.site-header nav{gap:18px}.header-actions{gap:8px}.game-heading,.puzzle,.more-games{max-width:400px}.number-pad button{min-height:44px}}@media (max-width:560px){body{font-size:14px}.wrap{padding-inline:14px}.site-header{min-height:56px;gap:18px}.site-brand{font-size:18px}.site-header nav{gap:16px;font-size:13px}.header-actions{gap:3px;font-size:12px}.theme-toggle{padding:8px;min-width:40px}.site-header .header-actions>a{display:none}h1{font-size:32px}.catalog-heading{padding:28px 0 20px}.catalog-heading p{font-size:13px}.filters{gap:2px;margin-bottom:22px}.filters button{font-size:12px;padding-inline:10px}.game-library{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}.game-preview{aspect-ratio:1.22}.game-preview>svg{width:100%;height:100%}.cover-caption{margin-top:10px;gap:5px}.cover-caption h2{font-size:16px}.game-cover p{font-size:12px;line-height:1.45}.cover-caption>svg{width:16px;height:16px;flex:none}.game-heading,.puzzle,.more-games{max-width:350px}.game-heading{margin:16px auto 6px;gap:6px}.game-heading h1{font-size:26px}.back-link{width:36px}.puzzle-toolbar{gap:12px;margin-bottom:16px}.puzzle-toolbar button{font-size:12px;padding:8px}.level-select select{font-size:13px;min-width:112px;padding:10px 36px 10px 14px}.level-note{font-size:11px}.game-stats{gap:6px 12px}.game-stats strong,.game-clock strong{font-size:13px}.game-stats span,.game-clock span{font-size:11px}.puzzle-hud{gap:10px;margin-bottom:10px}.game-rule{font-size:13px;margin:0 0 16px;line-height:1.45}.game-board,.puzzle-hud,.game-result,.pause-panel{max-width:350px}.game-tools{margin-top:12px;max-width:350px}.game-message{font-size:12px;margin-top:8px}.game-help{margin-top:12px}.site-footer{gap:18px;font-size:11px;margin-top:40px}.site-footer span{display:none}.game-result{padding:20px 0}.result-detail{gap:14px;flex-wrap:wrap}.result-actions{gap:18px}.tool-row{gap:6px}.tool-row button{padding:8px 10px}.difference-fields{grid-template-columns:1fr;gap:15px;max-width:270px;margin:auto}.difference-grid .cell{min-height:0}.board-label{font-size:11px;margin-bottom:5px}.game-board:has(.difference-fields){max-width:350px}.pairs-board{gap:6px}.pairs-board .memory-card{aspect-ratio:1.15}.set-board{gap:6px}.set-card{height:75px}.code-entry button{height:54px}.code-chip{width:29px;height:29px;font-size:13px}.code-row{gap:5px}.code-guess{gap:4px}.code-feedback{font-size:10px}.storage-banner{flex-direction:row;align-items:center;gap:4px 12px}.progress-stats{gap:8px 16px}.progress-stats strong{font-size:14px}.history-filters{gap:10px}.history-filters label:first-child{max-width:60%}.hanoi-tower{height:235px}.nonogram-board{grid-template-columns:minmax(36px,1fr) repeat(var(--n),minmax(0,1fr))}.row-clue{font-size:10px;letter-spacing:1px;padding-right:3px}.column-clue{font-size:10px}.simon-board{gap:10px}.simon-pad{padding:18px;font-size:44px}.knight-token{font-size:20px}.pencil-notes{font-size:8px}}@media (prefers-reduced-motion:reduce){button,.button,.game-preview>svg{transition:none}.game-cover a:hover .game-preview>svg,.game-cover a:focus-visible .game-preview>svg,button:not(:disabled):active,.button:active{transform:none}}.code-lock{display:flex;justify-content:center;gap:8px;padding:10px 0 16px}.ink-4{color:var(--gold)}.ink-5{color:var(--red)}@media (max-width:560px){.difference-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:none}.difference-fields .board-label{min-height:32px;line-height:1.3}.difference-check{width:14px;height:14px}.difference-check svg{width:12px;height:12px}.back-link{width:44px}.theme-toggle,.tool-row button{min-width:44px}}.merge-board,.sokoban-board,.maze-board{touch-action:pinch-zoom;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.code-history:empty{min-height:0;border:0;margin:0}.code-lock{margin-bottom:16px}.game-heading h1{min-width:0;overflow-wrap:anywhere}.pv-simon-0{fill:#5475e8}.pv-simon-1{fill:#f08e9d}.pv-simon-2{fill:#f6cd68}.pv-simon-3{fill:#78ccb2}.game-preview text.pv-simon-digit-0{fill:#fff}.game-preview text.pv-simon-digit-1{fill:#69273a}.game-preview text.pv-simon-digit-2{fill:#66500d}.game-preview text.pv-simon-digit-3{fill:#165e4e}
