.game-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:20px 0}.game-tools label{font-size:15px;font-weight:bold}.game-tools select{font:inherit;color:var(--ink);background:white;border:1px solid #afc3a8;border-radius:12px;padding:10px;min-height:48px;max-width:100%}.game-tools .restart{margin-left:auto;padding:10px 18px}.game-tools select:focus-visible{outline:3px solid #b95b39;outline-offset:4px}.game-help{border-top:1px solid var(--line);margin-top:22px;padding-top:15px}.game-help p{color:var(--muted)}.game-help a{display:inline-flex;align-items:center;min-height:44px;font-weight:bold}.game-icon{display:block;width:58px;height:58px;flex-shrink:0}.picture-answer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:19px}.puzzle-visual .pattern{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px}.pattern .game-icon{width:42px;height:42px}.pattern .missing{display:grid;place-items:center;width:48px;height:48px;border:2px dashed #7e9773;border-radius:12px;font-size:28px;background:#fffdf5}.berry-groups{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px}.berry-group{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;max-width:145px;padding:12px;border:2px solid #a9bb99;border-radius:18px;background:#fffdf5}.berry-groups .join{font-size:28px}.game-quiet-note{font-size:15px!important;color:var(--muted)}.memory-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%;margin-top:12px}.memory-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:100px;padding:8px 3px;border:2px solid #a8bc9b;border-radius:16px;background:#fffdf5;color:var(--ink);font-weight:bold;font-size:15px}.memory-card .card-back{font:40px Georgia,serif}.memory-card img{height:65px;width:65px;object-fit:contain}.memory-card .game-icon{height:55px;width:55px}.memory-card:hover{background:#f7efd9}.memory-card.revealed{background:#f7efd9;border-color:#8d6d35}.memory-card.matched{background:#dcebd3;border-color:var(--forest)}.memory-card[aria-disabled=true]{cursor:default}.memory-card:focus-visible{outline:3px solid #b95b39;outline-offset:3px}.memory-board+.btn{margin-top:15px}.game-dialog-memory .puzzle{display:block}.game-dialog-memory .guide-image{display:none}.game-dialog-memory .puzzle-visual{display:block}.game-dialog-memory .answers{display:none}.feedback{scroll-margin-top:20px}.answer[aria-disabled=true]{cursor:default}.dialog .again:focus-visible{outline-offset:3px}@media(max-width:420px){.dialog{padding:26px 16px}.memory-board{gap:7px}.memory-card{min-height:83px;font-size:12px}.memory-card img{width:48px;height:48px}.memory-card .game-icon{width:43px;height:43px}.game-tools{gap:8px}.game-tools .restart{margin-left:0}.picture-answer{font-size:17px;padding:10px 5px}.pattern .game-icon{width:33px;height:33px}.berry-group{max-width:115px;padding:8px}.game-icon{width:48px;height:48px}}
.take-away{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.shared-berry{opacity:.4;position:relative}.shared-berry:after{content:'';position:absolute;left:5px;right:5px;top:50%;height:4px;background:#704954;transform:rotate(-40deg)}.compare-groups{display:flex;gap:20px;justify-content:center;align-items:flex-start}.compare-groups>div{text-align:center;font-size:16px}.compare-groups .berry-group{min-height:90px;align-content:center;margin-top:8px}.stepping-stones{display:flex;gap:12px}.stepping-stones span{display:grid;place-items:center;background:#fffdf5;border:2px solid #a9bb99;border-radius:45%;width:65px;height:65px;font-size:32px}.shape-outline svg>*{fill:none;stroke:#315d48;stroke-width:3}.shadow-picture .game-icon{filter:brightness(0);opacity:.8;width:85px;height:85px}.size-picture{display:flex;align-items:flex-end;justify-content:center;width:75px;height:85px}.size-picture .game-icon{width:calc(75px * var(--picture-size));height:calc(85px * var(--picture-size))}.word-target,.word-progress{font-size:27px;letter-spacing:.15em;font-weight:bold}.word-progress{flex-basis:100%;text-align:center}.missing-object{font-size:45px}.recall-hide{flex-basis:100%}.maze-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;width:100%;max-width:310px;margin:auto;background:#cedac0;padding:6px;border-radius:14px}.maze-cell{display:grid;place-items:center;min-width:0;min-height:48px;aspect-ratio:1;background:#fffdf5;border:1px solid #a9bb99;border-radius:7px;font-size:25px;color:var(--ink);padding:2px}.maze-cell.wall{background:#6a8656;border-color:#6a8656}.maze-cell img{width:42px;height:42px}.maze-cell.here{border:3px solid #8d6d35;background:#f9e8b7}.maze-board:focus-visible{outline:3px solid #b95b39;outline-offset:4px}.maze-controls{display:flex;gap:8px;max-width:310px;margin:12px auto 0}.maze-controls .answer{min-width:44px;min-height:48px;padding:4px}.symbol-grid{display:grid;gap:4px;margin:12px auto;width:100%;max-width:310px}.sudoku-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.crossword-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:240px}.symbol-cell{display:grid;place-items:center;min-width:0;min-height:52px;aspect-ratio:1;background:white;border:2px solid #9caf8d;border-radius:8px;font-size:29px;font-weight:bold;color:var(--ink);padding:4px}.symbol-cell.given{background:#e2ead7;border-color:#b2c1a4}.symbol-cell.blocked{visibility:hidden}.symbol-cell .game-icon{width:100%;height:100%;max-width:52px;max-height:52px}.symbol-cell.selected,.jigsaw-piece.selected{outline:3px solid #b95b39;outline-offset:1px;border-color:#b95b39;background:#fff0cb}.symbol-cell.filled:not(.given){background:#edf3e5}.crossword-clues{display:flex;justify-content:center;gap:20px;width:100%}.crossword-clues>div{display:flex;flex-direction:column;align-items:center;font-size:17px}.jigsaw-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:210px;max-width:100%;gap:2px;border:2px solid #a9bb99}.jigsaw-slot{padding:0;border:1px dashed #91a17f;min-width:0;aspect-ratio:1;background:#fffdf5;color:var(--muted);font-size:32px;display:grid;place-items:center}.jigsaw-slot.filled{border:0}.jigsaw-slot svg{display:block;width:100%;height:100%}.jigsaw-piece{padding:4px;min-width:58px;flex-basis:20%;max-width:100px}.jigsaw-piece svg{display:block;width:100%;height:auto;aspect-ratio:1}.jigsaw-piece.used{opacity:.35}.puzzle-reference{display:flex;flex-direction:column;align-items:center;font-size:14px;margin-bottom:12px}.puzzle-reference>svg{width:100px;height:100px;border-radius:5px}.puzzle-visual:has(.maze-board),.puzzle-visual:has(.symbol-grid),.puzzle-visual:has(.jigsaw-board){display:flex;flex-direction:column;align-items:center;flex-basis:100%}.game-count{font-size:17px;color:var(--muted);margin-top:14px}.new-game-label{display:inline-block;font:700 11px var(--body);letter-spacing:.04em;text-transform:uppercase;background:#f7d67d;color:#284e42;padding:4px 8px;border-radius:20px;margin-bottom:8px}.game-search{display:flex;flex-direction:column;gap:6px;max-width:450px;margin-top:20px;font-weight:bold}.game-search input{font:inherit;padding:12px 16px;border:1px solid #a9bb99;border-radius:12px;color:var(--ink);background:#fffefa;width:100%}.no-games{padding:24px;border:1px dashed var(--line);border-radius:14px}.library-link{font-weight:bold;text-underline-offset:4px}@media(max-width:420px){.compare-groups{gap:10px}.stepping-stones span{width:52px;height:55px}.symbol-cell{min-height:44px;font-size:24px}.maze-cell{min-height:39px}.maze-cell img{width:32px;height:32px}.maze-board{gap:3px}.size-picture{width:57px;height:75px}.size-picture .game-icon{width:calc(57px * var(--picture-size));height:calc(75px * var(--picture-size))}.game-art small{max-width:105px;font-size:11px}.game-copy h3{font-size:23px}.word-target,.word-progress{font-size:24px}}
.game-dialog-board .guide-image{display:none}.game-dialog-board .puzzle{margin:16px 0;padding:14px}.game-dialog-board .symbol-grid{max-width:220px}.game-dialog-board .maze-board{max-width:270px}.game-dialog-board .game-tools{margin:12px 0}.game-dialog-board .crossword-clues .game-icon{width:44px;height:44px}

.little-game-card { display: flex; flex-direction: column; padding: 0 0 16px; }
.little-game-card img { height: 118px; width: 100%; object-fit: contain; padding: 8px; background: var(--mint); }
.little-game-card:nth-child(3n+2) img { background: #f6e4d1; }
.little-game-card:nth-child(3n) img { background: #e7e4f2; }
.little-game-card h2 { font-size: 24px; margin: 16px 18px 0; }
.little-game-card p { margin: 9px 18px; }
.little-game-date { font-weight: bold; }
.little-game-card button { align-self: flex-start; margin: auto 18px 0; }
.little-game-dialog { --muted: #53695d; width: min(590px, calc(100% - 24px)); max-height: 90vh; max-height: 90dvh; padding: 24px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--paper); }
.little-game-dialog::backdrop { background: #142c26b8; }
.little-game-dialog h2 { margin: 0 42px 12px 0; font-size: clamp(24px, 5vw, 34px); }
.little-game-dialog p { margin: 8px 0; }
.little-game-dialog .close { position: absolute; top: 12px; right: 12px; width: 44px; padding: 0; font-size: 26px; }
.little-game-dialog .puzzle { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 14px 0; padding: 12px; border-radius: 14px; background: var(--mint); }
.little-game-dialog .guide-image { width: 56px; height: 56px; object-fit: contain; }
.little-game-dialog .puzzle-visual { display: flex; flex-wrap: wrap; min-width: 0; align-items: center; justify-content: center; gap: 6px; }
.little-game-dialog .puzzle-visual:empty { display: none; }
.little-game-dialog .puzzle-visual > .game-icon { width: clamp(32px, 8vw, 47px); height: auto; }
.little-game-dialog .answers { display: flex; gap: 8px; }
.little-game-dialog .answer { flex: 1; min-width: 0; padding: 8px 5px; }
.little-game-dialog button, .little-game-card button { min-height: 44px; border: 1px solid var(--forest); cursor: pointer; font-family: inherit; }
.little-game-dialog .close, .little-game-dialog .answer, .little-game-dialog .restart { color: var(--ink); background: var(--paper); border-radius: 12px; }
.little-game-dialog .answer.correct { background: #d9eaca; }
.little-game-dialog button:focus-visible, .little-game-card button:focus-visible { outline: 3px solid #b95b39; outline-offset: 3px; }
.little-game-dialog .again, .little-game-dialog .recall-hide { color: var(--paper); background: var(--forest); border-radius: 30px; padding: 8px 16px; }
.little-game-dialog .feedback { font-weight: bold; }
.little-game-card [hidden], .little-game-launch [hidden], .little-game-dialog [hidden] { display: none; }
.little-pictures { display: inline-flex; justify-content: center; gap: 2px; flex-wrap: wrap; }
.little-pictures .game-icon { width: clamp(18px, 4.4vw, 32px); height: auto; }
.answers .little-pictures .game-icon { width: clamp(16px, 3.3vw, 25px); }
.berry-pink .game-icon circle:first-child { fill: #c94b79; }
.berry-blue .game-icon circle:first-child { fill: #3978ac; }
.berry-gold .game-icon circle:first-child { fill: #d9a21d; }
