.puzzle-score{text-align:center;font-variant-numeric:tabular-nums;color:#fff6df;margin:0 0 16px;font-size:1.05rem;font-weight:750}.puzzle-grid{grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:4px;margin:auto;display:grid}.puzzle-cell{appearance:none;aspect-ratio:1;cursor:pointer;color:#fff8e8;background:#ffffff14;border:0;border-radius:9px;place-items:center;min-width:0;min-height:0;padding:0;font-size:clamp(14px,2.6vw,25px);display:grid;position:relative;box-shadow:inset 0 1px #ffffff35,0 2px 3px #05291e30}.puzzle-cell:focus-visible,.jigsaw-piece:focus-visible,.block-piece:focus-visible{outline-offset:2px;z-index:3;outline:3px solid #ffe2a0}.puzzle-cell.hinted{outline-offset:-3px;background:#f5df843d;outline:3px solid #f8d376}.puzzle-cell.selected,.jigsaw-piece.selected,.block-piece.selected{outline-offset:-3px;outline:3px solid #f8d376}.jewel-grid,.block-grid{width:min(100%,440px)}.jewel-grid{touch-action:none;gap:5px}.jewel-grid .puzzle-cell{background:#153e35;overflow:hidden}.gem{text-shadow:0 2px 1px #173e4350;filter:drop-shadow(0 2px 2px #0004);place-items:center;width:85%;height:85%;font-size:clamp(20px,4vw,36px);display:grid}.gem-0{color:#ff899d}.gem-1{color:#85d6ff}.gem-2{color:#ffd777}.gem-3{color:#9de9ba}.gem-4{color:#cbb4ff}.gem-5{color:#ffc6a1}.puzzle-subtools{color:#fff6df;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin-bottom:14px;display:flex}.puzzle-subtools button,.puzzle-subtools select{min-height:44px;font:inherit;color:#194f41;background:#fff8eb;border:1px solid #e2e8df;border-radius:10px;max-width:100%;padding:8px 12px}.puzzle-subtools button[aria-pressed=true]{color:#173e32;background:#eed19c}.puzzle-subtools label{align-items:center;gap:8px;display:flex}.mine-grid{grid-template-columns:repeat(var(--cols),34px);gap:3px;width:max-content;padding:4px}.mine-grid .puzzle-cell{color:#1e4c3b;touch-action:pan-x pan-y;background:linear-gradient(145deg,#f5eddb,#bdd1ba);border-radius:5px;width:34px;height:34px;font-size:19px;font-weight:800}.mine-grid .opened{background:#d8e5d7;box-shadow:inset 0 0 0 1px #47775b45}.mine-grid .number-1{color:#234f91}.mine-grid .number-2{color:#22613c}.mine-grid .number-3{color:#98313a}.mine-grid .number-4{color:#503280}.mine-grid .bomb{background:#fac3b8}.jigsaw-field{aspect-ratio:3/2;background:#102f2870;border:2px solid #eed9ad70;border-radius:8px;width:min(100%,620px);margin:auto;position:relative}.jigsaw-grid{gap:0;width:100%;height:100%;position:relative}.jigsaw-grid .puzzle-cell{aspect-ratio:auto;background:0 0;border-radius:0;box-shadow:inset 0 0 0 1px #b7d6ba20}.jigsaw-grid .puzzle-cell svg{pointer-events:none;width:140%;max-width:none;height:140%;position:absolute}.jigsaw-grid .placed{z-index:1}.jigsaw-preview{opacity:.35;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.piece-tray{overscroll-behavior:contain;background:#143f34aa;border-radius:12px;flex-wrap:wrap;justify-content:center;gap:7px;max-width:640px;max-height:220px;margin:14px auto 0;padding:14px 6px;display:flex;overflow:auto}.jigsaw-piece{touch-action:none;background:0 0;border:0;border-radius:6px;flex:none;width:70px;height:60px;padding:0}.jigsaw-piece svg{pointer-events:none;width:100%;height:100%}.block-hand{justify-content:center;gap:12px;margin-top:18px;display:flex}.block-piece{touch-action:none;background:#143e32;border:1px solid #bce0bd50;border-radius:12px;width:100px;min-width:0;height:100px;padding:5px}.block-piece svg{fill:#f0c782;filter:drop-shadow(0 2px 1px #0003);pointer-events:none;width:100%;height:100%}.block-grid .filled{color:#795721;background:linear-gradient(145deg,#f4d394,#c69753)}.block-grid .legal-target{outline-offset:-2px;background:#94c8ab;outline:2px solid #c6ecc6}.used-block{color:#b5d8bd;place-items:center;width:100px;font-size:2rem;display:grid}.puzzle-drag-ghost{z-index:2400;opacity:.85;filter:drop-shadow(0 6px 10px #0006);margin:0;pointer-events:none!important;position:fixed!important}.jewel-match #board,.minesweeper #board,.jigsaw-puzzles #board,.block-puzzle #board{min-width:0;min-height:480px;padding:16px 8px 24px;display:block}.minesweeper #board{width:100%;min-width:0}.jigsaw-puzzles .zoomed #board{min-width:760px}.jewel-match .zoomed #board,.block-puzzle .zoomed #board{min-width:580px}.minesweeper .zoomed .mine-grid{grid-template-columns:repeat(var(--cols),46px)}.minesweeper .zoomed .puzzle-cell{width:46px;height:46px}.jigsaw-puzzles .game-stage,.minesweeper .game-stage{overscroll-behavior:contain}.game-art .art-puzzle-grid{grid-template-columns:repeat(4,1fr);gap:8px;width:65%;margin:auto;display:grid;transform:rotate(-8deg)}.art-puzzle-grid span{aspect-ratio:1;color:#215a46;background:#f5e8c8;border-radius:10px;place-items:center;font-size:30px;display:grid;box-shadow:0 5px #becdb8,0 10px 18px #17402a25}@media (width<=480px){.puzzle-subtools{font-size:14px}.jewel-match #board,.block-puzzle #board{padding:12px 2px 22px}.jewel-grid,.block-grid{gap:3px}.block-piece{height:88px}.jigsaw-piece{width:62px;height:56px}.mine-grid{grid-template-columns:repeat(var(--cols),29px);gap:2px}.mine-grid .puzzle-cell{width:29px;height:29px;font-size:16px}.puzzle-score{font-size:.95rem}.jigsaw-puzzles #board{padding:12px 2px}.jigsaw-field{min-width:284px}.puzzle-cell{border-radius:6px}}.game-shell .puzzle-cell{border-radius:6px;min-height:0;padding:0;font-size:20px}.game-shell .jigsaw-piece{min-height:56px;padding:0}.game-shell .block-piece{padding:5px}.jewel-match .game-stage,.jigsaw-puzzles .game-stage,.minesweeper .game-stage,.block-puzzle .game-stage{background:radial-gradient(at 50% 15%,#316751,#174737)}.game-shell .puzzle-cell:focus-visible{outline-color:#ffe2a0}.game-shell .puzzle-cell.number-1{color:#234f91}.game-shell .jigsaw-grid .puzzle-cell{border-radius:0}.art-jewel-match .art-cards,.art-jigsaw-puzzles .art-cards,.art-minesweeper .art-cards,.art-block-puzzle .art-cards{display:none}:is(.jewel-match,.jigsaw-puzzles,.minesweeper,.block-puzzle) .game-toolbar-actions button,:is(.jewel-match,.jigsaw-puzzles,.minesweeper,.block-puzzle) .board-tools button{min-width:44px;min-height:44px!important}.jewel-match .game-stage,.block-puzzle .game-stage{padding:20px 12px}.jewel-grid .gem{width:100%;height:100%;font-size:clamp(24px,5vw,38px);line-height:1}.game-shell .jewel-grid .puzzle-cell{background:linear-gradient(145deg,#396c59,#204e3e);border:1px solid #96b89245}.game-shell .jigsaw-piece{background:0 0;border:0}.game-shell .block-piece{background:#143e32;border:1px solid #bce0bd50}.game-shell .mine-grid .puzzle-cell{font-size:18px}.game-shell .block-grid .puzzle-cell{font-size:20px}.game-shell .jewel-grid .puzzle-cell,.game-shell .block-grid .puzzle-cell{aspect-ratio:1}@media (width<=480px){.jewel-match .game-stage,.block-puzzle .game-stage{padding:16px 7px}.jewel-match #board,.block-puzzle #board{min-height:370px}.game-shell .mine-grid .puzzle-cell{font-size:16px}}.game-shell .puzzle-subtools button,.game-shell .puzzle-subtools select{min-width:44px;min-height:44px}
