.cat-shell .game-shell-icon{background:#ece9fb;color:#62558f}.game-shell-icon svg{width:27px;height:27px;fill:#e5ddfa;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.cat-shell .game-shell-stage{background:#eeedf5;padding:20px}.cat-game{--cat-ink:#34314b;--cat-muted:#837d95;max-width:880px;margin:auto;color:var(--cat-ink);position:relative;min-height:620px}.cat-game button{font:600 12px Inter,Arial,sans-serif}.cat-game svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.cat-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 17px}.cat-wordmark{font:800 30px/1 'Inter Tight',Arial,sans-serif;letter-spacing:-1px}.cat-wordmark>span{display:block;font:11px Inter,Arial,sans-serif;letter-spacing:0;color:var(--cat-muted);margin-top:7px}.cat-utilities{display:flex;gap:7px}.cat-game .icon{display:grid;place-items:center;background:#f9f8ff;border:1px solid #d7d2e4;width:34px;height:34px;border-radius:11px;color:#655a84}.top-controls{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.tabs,.sizes{display:flex;gap:3px;padding:4px;background:#e0dcec;border-radius:12px}.tabs button,.sizes button{border:0;background:none;border-radius:9px;color:#81788f;padding:9px 17px}.tabs button[aria-pressed=true],.sizes button[aria-pressed=true]{background:#fffdfd;color:#504168;box-shadow:0 2px 5px #4d375813}.sizes{background:none}.sizes button{padding:7px 10px;font-size:10px}.sizes button[aria-pressed=true]{background:#62558f;color:white}.puzzle-bar{display:flex;align-items:center;justify-content:space-between;padding:0 0 12px;border-bottom:1px solid #d9d5e4;margin-bottom:16px;font-size:10px;color:#8a809a}.puzzle-metrics{display:flex;align-items:center;gap:17px}.puzzle-metrics #cat-count{font-weight:600;color:#62558f}.puzzle-metrics button{display:flex;gap:6px;align-items:center;background:none;border:0;color:#62558f;padding:0;font-variant-numeric:tabular-nums}.puzzle-metrics svg{width:12px;height:12px}.play-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(240px,.85fr);gap:25px}.board-column{min-width:0}.board-wrap{position:relative;margin:auto;padding:9px;background:#fffdfa;border-radius:17px;box-shadow:0 5px 0 #ccc4d647,0 8px 20px #46345408;border:1px solid #d6cfe0;max-width:440px}#board{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));aspect-ratio:1;overflow:hidden;border-radius:9px;border:2px solid #6b627c;touch-action:none;user-select:none;-webkit-user-select:none}.cell{position:relative;padding:0!important;display:grid;place-items:center;border:0;background:var(--region);border-right:1px solid #ffffff55;border-bottom:1px solid #ffffff55;cursor:pointer;min-width:0;aspect-ratio:1;font-size:clamp(14px,2.4vw,29px)!important;line-height:1;color:#61576c!important;transition:filter .12s}.cell.edge-right{border-right:2px solid #6b627ca6}.cell.edge-bottom{border-bottom:2px solid #6b627ca6}.cell:hover{filter:brightness(1.04)}.cell:focus-visible{outline:3px solid #514268;outline-offset:-4px;z-index:2}.cell .cat{font:inherit;font-size:1.13em;filter:drop-shadow(0 2px 0 #50404818);animation:cat-sit .22s ease-out}.cell .manual-mark{font-weight:400;font-size:1.05em;opacity:.8}.cell.conflict{box-shadow:inset 0 0 0 3px #c84e61;background:#f2b3bf!important}.cell.hint-group{filter:brightness(1.05);box-shadow:inset 0 0 0 2px #fffdf7b0}.cell.hint-target{box-shadow:inset 0 0 0 3px #6951a6;z-index:1}.cell.hint-target::before{content:'';position:absolute;inset:5px;border:2px dashed #fff;border-radius:50%;animation:hint-breathe 1.4s ease-in-out infinite}.patterned .cell{background-image:var(--pattern);background-size:9px 9px}.board-tools{display:flex;justify-content:space-between;align-items:center;margin:15px auto 0;max-width:440px;gap:8px}.placement-mode{display:flex;gap:2px;background:#ded9e9;padding:4px;border-radius:11px}.placement-mode button{border:0;background:none;padding:7px 14px;border-radius:8px;color:#786b8e;display:flex;align-items:center;gap:6px}.placement-mode button>span{font-size:18px;line-height:1}.placement-mode button[aria-pressed=true]{background:#fff;color:#51416e;box-shadow:0 2px 4px #47334e10}.undo{display:flex;align-items:center;gap:6px;background:none;border:0;color:#796b8d;padding:8px}.gesture-note{font-size:9px;text-align:center;color:#8f859e;margin-top:10px;line-height:1.5}.rules-card{padding:18px 18px 15px;background:#faf8ff;border:1px solid #dcd5e9;border-radius:15px}.eyebrow{font-size:8px;font-weight:600;letter-spacing:.12em;color:#a08ea5;margin-bottom:9px}.rules-card h2{font-size:27px;line-height:1.08;letter-spacing:-.7px;color:#57476f}.mini-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}.rule-demo{display:flex;align-items:center;justify-content:center;border:1px solid #ded6e9;border-radius:7px;height:34px;background:#ece6f7;font-size:18px;white-space:nowrap;color:#9a8ba7}.color-demo{background:#f7dbca;border-color:#ecc6af}.touch-demo{background:#e0eadc;font-size:17px;gap:4px}.touch-demo i{font-style:normal;font-size:12px;color:#a197a5}.mini-rules p{font-size:9px;line-height:1.5;margin-top:7px;color:#95889f}.hint-card{border:1px dashed #c5b4db;border-radius:14px;padding:15px 17px;margin-top:13px;background:#e9e2f3}.hint-heading{display:flex;align-items:center;gap:7px}.hint-heading>span{font-size:23px;color:#a58ab7;line-height:1}.hint-heading h2{font-size:16px;color:#6b547e}.hint-card p{font-size:11px;line-height:1.65;color:#927c9f;margin:8px 0 13px;min-height:36px}.hint-button{border:0;background:none;color:#78558b;padding:0;display:flex;align-items:center;justify-content:space-between;width:100%;font-size:10px!important;text-align:left;gap:5px}.hint-button svg{width:15px;height:15px;flex-shrink:0}.options{display:flex;flex-wrap:wrap;gap:10px 17px;margin:15px 0;font-size:10px;color:#93839d}.options label{display:flex;align-items:center;gap:4px;cursor:pointer}.options input{accent-color:#7e659c;width:13px;height:13px;margin:0}.text-button{border:0;background:none;color:#a08da4;text-decoration:underline;text-underline-offset:3px;font-size:10px!important;padding:0}#notice{font-size:11px;line-height:1.5;color:#a05468;min-height:18px;margin-top:15px;text-align:center}.cat-game .primary{display:inline-flex;align-items:center;justify-content:center;gap:15px;border:1px solid #b75643;border-bottom-width:3px;border-radius:11px;background:#d9745b;color:#fff9f3;padding:11px 20px;min-height:43px;box-shadow:0 3px 8px #95443312}.cat-game .primary:hover{background:#cb664e}#pause-cover{position:absolute;inset:0;background:#f7f4fcee;backdrop-filter:blur(9px);border-radius:17px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;z-index:5}#pause-cover>span{font-size:55px}#pause-cover h2{font-size:25px;color:#675579}#party{position:absolute;inset:0;overflow:hidden;pointer-events:none;border-radius:16px}#party i{position:absolute;left:var(--x);top:-20px;font-size:21px;font-style:normal;animation:paw-rain 1.3s var(--delay) ease-in both}#result{text-align:center;background:#fff9f1;border:1px solid #e8d6c8;border-radius:17px;padding:22px 16px;align-self:start}.result-cat{font-size:55px;line-height:1.2;animation:cat-sit .5s both}#result .eyebrow{font-size:7px;margin-top:15px;color:#b68973}#result h2{font-size:30px;line-height:1.05;color:#b05d47}#result-time{font:800 33px/1 'Inter Tight',Arial,sans-serif;color:#5e4b6d;letter-spacing:-1px}.result-stats{margin:18px 0 10px;display:flex;align-items:center;flex-direction:column;gap:7px}.result-stats>span{font-size:10px;color:#a78a78}#personal-best{font-size:10px;color:#9a8376;min-height:17px;margin-bottom:19px}#result .primary{width:100%}.share-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.share-actions button{border:1px solid #deccbc;border-radius:9px;color:#937560;background:none;padding:9px 4px;font-size:9px}#share-status{min-height:15px;margin-top:9px;font-size:10px;color:#9d826b}.game-breadcrumbs{font-size:12px;color:#7f798c;margin:25px 0 40px}.cat-shell dialog{width:min(420px,calc(100% - 30px));max-height:calc(100dvh - 30px);overflow:auto;background:#faf7ff;border:1px solid #c3b5d4;border-radius:19px;padding:27px;color:#5d4b70;box-shadow:0 20px 90px #40304640}.cat-shell dialog::backdrop{background:#34304a80;backdrop-filter:blur(4px)}.cat-shell dialog h2{font-size:25px;margin-bottom:20px}.cat-shell dialog p{font-size:12px;line-height:1.7;color:#96869f}.cat-shell dialog .primary{background:#d9745b;color:white;border:0;border-radius:10px;padding:12px 18px;margin-top:20px;font-size:12px;width:100%}.close{position:absolute;right:13px;top:9px;font-size:25px;color:#9b8da6;border:0;background:none}.help-rule{display:flex;gap:16px;align-items:center;margin:17px 0}.help-rule b{min-width:40px;text-align:center;font-size:26px;color:#bca8d0}.dialog-actions{display:flex;gap:10px;align-items:stretch;margin-top:20px}.dialog-actions button{border:1px solid #cdbddc;border-radius:10px;padding:10px;background:none;flex:1;font-size:12px}.cat-shell dialog .dialog-actions .primary{margin:0;width:auto}#copy-text{width:100%;height:150px;padding:10px;border:1px solid #c9b8d9;border-radius:9px;color:#61516f;background:white;font-size:12px}
@keyframes cat-sit{from{transform:translateY(-8px) scale(.75);opacity:0}to{transform:none;opacity:1}}@keyframes hint-breathe{50%{opacity:.25}}@keyframes paw-rain{to{transform:translateY(450px) rotate(80deg);opacity:0}}
@media(max-width:760px){.cat-shell .game-shell-stage{padding:17px 12px}.cat-game{min-height:0}.cat-header{margin-bottom:16px}.cat-wordmark{font-size:26px}.cat-wordmark>span{font-size:10px}.cat-utilities .icon{width:30px;height:30px}.top-controls{margin-bottom:10px}.tabs button{padding:8px 14px;font-size:11px}.sizes button{padding:7px 8px}.play-layout{grid-template-columns:1fr;gap:18px}.board-wrap{padding:7px;border-radius:15px}.cell{font-size:clamp(18px,5vw,31px)!important}.board-wrap:has([style*="--n: 8"]) .cell{font-size:clamp(16px,4vw,25px)!important}.rules-card{padding:13px 14px}.rules-card .eyebrow,.rules-card h2{display:none}.mini-rules{margin:0;gap:12px}.mini-rules>div{display:flex;align-items:center;gap:8px}.rule-demo{min-width:34px;height:32px;font-size:13px}.line-demo{letter-spacing:-2px;font-size:12px}.mini-rules p{font-size:8px;margin:0}.touch-demo{gap:0;font-size:12px}.touch-demo i{font-size:9px}.hint-card{margin-top:10px;padding:13px 15px}.hint-card p{min-height:0;margin:6px 0 11px;font-size:11px}.options{margin:12px 0}.puzzle-bar{font-size:9px;margin-bottom:13px}.puzzle-metrics{gap:10px}.puzzle-metrics button{font-size:11px}.gesture-note{font-size:8px}.side-panel{min-width:0}#result{padding:18px}.result-cat{font-size:40px}#result h2{font-size:27px}.result-stats{margin:12px 0}.cat-game #result .primary{min-height:43px}.result-cat{float:left;margin:5px 10px}#result .eyebrow{text-align:left;margin-top:6px}#result h2{text-align:left}#personal-best{margin-bottom:12px}.result-stats{clear:both;flex-direction:row;justify-content:center;gap:15px}.cat-shell .game-shell-name{font-size:14px}}
@media(prefers-reduced-motion:reduce){.cell,.cell .cat,.cell.hint-target::before,.result-cat,#party i{animation:none;transition:none}}
.cell .cat{animation:none}.cell.just-placed .cat{animation:cat-sit .22s ease-out}@media(prefers-reduced-motion:reduce){.cell.just-placed .cat{animation:none}}

/* Keep the quiet palette readable at actual game size. */
.hint-card p{color:#725f7e;font-size:12px}.mini-rules p{color:#71657d;font-size:10px}.hint-button{color:#694779;font-size:11px!important}.options{color:#73617f;font-size:11px}.gesture-note{color:#776b83;font-size:10px}.puzzle-bar{color:#756981}.text-button{color:#7b6588}.eyebrow{color:#8b7495}.cat-wordmark>span{color:#776b84}#result #replay{margin-top:8px}.cat-shell dialog p{color:#776782}@media(max-width:760px){.mini-rules p{font-size:9px}.gesture-note{font-size:9px}.hint-card p{font-size:12px}}
/* Tactile board and one consistent illustrated kitten. */
.cat-shell .game-shell-stage{background:#f5f0e9}.cat-game{--cat-ink:#493d49;--cat-muted:#887786}.cat-wordmark{color:#594256}.cat-game .icon{background:#fffaf4;border-color:#decfc6;color:#896678}.cat-shell .game-shell-icon{background:#f7e6d5;color:#9a694c}.cat-header{margin-bottom:18px}.tabs{background:#e9ddd8}.tabs button[aria-pressed=true]{color:#845b67;background:#fffdf8}.levels{display:flex;gap:3px;align-items:center}.levels button{border:0;border-radius:9px;background:none;color:#8f7b88;padding:8px 11px;font-size:10px}.levels button[aria-pressed=true]{background:#8b667d;color:#fffaf7;box-shadow:0 2px 0 #654454}.puzzle-bar{border-color:#e1d5cf}.puzzle-metrics #cat-count,.puzzle-metrics button{color:#806475}.play-layout{grid-template-columns:minmax(0,1.3fr) minmax(235px,.85fr);gap:24px}.board-wrap{max-width:490px;border:1px solid #d4c4b9;background:#fffdf8;padding:9px;box-shadow:0 5px 0 #c8b9ae66,0 12px 24px #7055430a}.cell{box-shadow:inset 0 1px 0 #fff7;border-bottom-color:#fff8;border-right-color:#fff8}.cell.edge-right{border-right:2px solid #756778b5}.cell.edge-bottom{border-bottom:2px solid #756778b5}#board{border-color:#756778}.cell .cat,.cell .manual-mark{position:absolute;inset:0;display:grid;place-items:center;line-height:1;font-size:inherit;opacity:1}.cell .cat{filter:none}.cell .cat>img{display:block;width:79%;height:79%;object-fit:contain;filter:drop-shadow(0 2px 1px #78583322);pointer-events:none}.cell .manual-mark svg{width:36%;height:36%;max-width:20px;max-height:20px;stroke:#6f6273;stroke-width:2.1;stroke-linecap:round}.cell.just-placed .cat{animation:cat-sit .24s ease-out}.cell.conflict{box-shadow:inset 0 0 0 3px #c84e61}.tool-cat img{display:block;width:22px;height:22px;object-fit:contain}.placement-mode{background:#e7dbd7}.placement-mode button[aria-pressed=true]{color:#865d6d;background:#fffdf8}.gesture-note{color:#8a7481}.rules-card{background:#fffcf7;border-color:#e1d3cb;box-shadow:0 3px 0 #d8c6bd22}.rules-card h2{color:#79576d}.rule-demo img{width:26px;height:26px;object-fit:contain}.rule-demo{border-color:#e0cbbd;background:#f2e1d8}.color-demo{background:#efdcad}.touch-demo{background:#dbe7d1}.rule-demo i{font-size:17px}.line-demo{gap:3px}.hint-card{background:#efe4e6;border-color:#ceb6c2}.hint-heading h2{color:#886478}.hint-heading>span{color:#b48b9f}.hint-card p{color:#826a7c}.hint-button{color:#87536f}.mark-legend{display:flex;align-items:center;gap:5px;font-size:9px;color:#8b7685;margin:0 0 13px}.legend-cross{color:#6f6273;font:20px/1 Arial,sans-serif;margin-right:0}.result-cat img{width:80px;height:80px;object-fit:contain}.result-cat{font-size:initial}.result-cat{float:none}.options input{accent-color:#9c7087}.puzzle-bar{gap:10px}.puzzle-metrics{white-space:nowrap}
/* First visit: a separate, hands-on board, not an instruction sheet. */
#tutorial-dialog{width:min(420px,calc(100% - 24px));padding:20px 28px 24px;background:#fffbf3;border-color:#dfcbbc;color:#795567;text-align:center;overflow:visible;max-height:calc(100dvh - 28px);overflow-y:auto}#tutorial-dialog::backdrop{background:#4b394a80}.tutorial-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font:600 8px Inter,Arial,sans-serif;letter-spacing:.12em;color:#b299a4}.tutorial-top button{background:none;border:0;font-size:11px;color:#987b8a;padding:5px;letter-spacing:0}.tutorial-cat{height:54px;margin-top:6px}.tutorial-cat img{width:60px;height:54px;object-fit:contain}#tutorial-title{font-size:25px;margin:12px 0 5px;letter-spacing:-.6px}#tutorial-copy{font-size:12px;line-height:1.5;color:#a08590;margin-bottom:18px;min-height:18px}#tutorial-board{display:grid;grid-template-columns:repeat(4,1fr);width:min(100%,272px);aspect-ratio:1;margin:0 auto;border:3px solid #8c7283;border-radius:12px;padding:4px;gap:3px;background:#fffcf6;box-shadow:0 5px 0 #d9c4bd}#tutorial-board button{aspect-ratio:1;border:0;border-radius:5px;position:relative;display:grid;place-items:center;padding:0;opacity:1!important;cursor:default}#tutorial-board button:not(:disabled){cursor:pointer;z-index:1}#tutorial-board img{width:78%;height:78%;object-fit:contain;animation:cat-sit .25s both}#tutorial-board svg{width:32%;height:32%;stroke:#837083;stroke-width:2.2;fill:none;stroke-linecap:round}#tutorial-board .tutorial-target{box-shadow:inset 0 0 0 3px #fff7ee,0 0 0 3px #bd7b91;animation:tutorial-pulse 1.3s ease-in-out infinite}.tap-arrow{position:absolute;right:-11px;bottom:-13px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#bd6d85;color:#fff8ed;font:700 24px/1 Arial,sans-serif;box-shadow:0 2px 0 #8d5069;pointer-events:none;animation:tap-bob .9s ease-in-out infinite}.tutorial-dots{display:flex;align-items:center;justify-content:center;gap:7px;margin:21px 0 12px}.tutorial-dots i{width:6px;height:6px;border-radius:50%;background:#e5d5d4}.tutorial-dots .current{width:19px;border-radius:8px;background:#b17c92}#tutorial-legend{font-size:9px;line-height:1.5;color:#b49ca6;margin:0}#tutorial-dialog .primary{margin-top:15px;background:#bd6d85;box-shadow:0 3px 0 #8d5069;padding:11px;min-height:40px}#tutorial-dialog .primary:focus-visible{outline-offset:4px}@keyframes tutorial-pulse{50%{box-shadow:inset 0 0 0 3px #fff7ee,0 0 0 5px #bd7b9140}}@keyframes tap-bob{50%{transform:translate(-3px,-4px)}}
@media(max-width:760px){.play-layout{grid-template-columns:1fr;gap:18px}.cat-shell .game-shell-stage{padding:16px 10px}.levels button{font-size:10px;padding:7px 8px}.tabs button{padding:8px 12px}.puzzle-bar #puzzle-label{max-width:65%;font-size:8px;line-height:1.5}.puzzle-metrics{gap:8px}.board-wrap{padding:7px}.mini-rules>div{gap:7px}.rule-demo img{width:23px;height:23px}.rule-demo{min-width:33px}.line-demo{font-size:0;gap:0}.mini-rules p{color:#857181}.result-cat{float:left}.result-cat img{width:54px;height:54px}.result-stats{margin-top:19px}.mark-legend{font-size:9px}#tutorial-dialog{padding:17px 20px 20px}#tutorial-title{font-size:23px}}
@media(prefers-reduced-motion:reduce){#tutorial-board .tutorial-target,.tap-arrow,#tutorial-board img{animation:none}}

.cat-shell .game-shell-icon>img{width:92%;height:92%;object-fit:contain}
@media(prefers-reduced-motion:reduce){.cell.just-placed .cat{animation:none}}
/* A completed board celebrates its cats before handing over to the result. */
.board-wrap.is-solved .manual-mark{opacity:.22}.board-wrap.is-celebrating{box-shadow:0 5px 0 #c8b9ae66,0 0 0 4px #edcea355,0 10px 42px #d8a06038;transition:box-shadow .25s}#board{position:relative}.board-wrap.is-celebrating #board{animation:board-bloom 1.25s ease-out both}.board-wrap.is-celebrating #board::after{content:'';position:absolute;inset:-30% -75%;z-index:3;pointer-events:none;background:linear-gradient(110deg,transparent 40%,#fff9d866 49%,#fffdf1a8 50%,transparent 59%);animation:board-gleam .9s .15s ease-out both}.board-wrap.is-celebrating .cell .cat{animation:cat-cheer .58s var(--cat-delay) cubic-bezier(.2,.7,.3,1) both}.board-wrap.is-celebrating .cell .cat::after{content:'♥';position:absolute;right:9%;top:4%;font:700 clamp(10px,2vw,19px)/1 Arial,sans-serif;color:#be778b;text-shadow:0 1px #fff8e9;animation:cat-love .8s var(--cat-delay) ease-out both;pointer-events:none}
#party{z-index:4;overflow:hidden;pointer-events:none;border-radius:inherit;background:radial-gradient(ellipse at center,#fff8e800 10%,#fff8e824 70%)}#party .victory-spark{position:absolute;top:50%;left:50%;width:10px;height:17px;z-index:5;margin:-5px;color:var(--spark-color);background:var(--spark-color);border-radius:3px;opacity:0;animation:cat-confetti 1.15s var(--delay) cubic-bezier(.12,.6,.32,1) both;will-change:transform,opacity}#party .paw-spark{width:22px;height:22px;background:transparent;border-radius:0}#party .paw-spark svg{display:block;width:100%;height:100%;fill:currentColor;stroke:none}#party .paper-spark:nth-child(even){width:9px;height:9px;border-radius:50%}.victory-scene{position:absolute;left:50%;top:50%;width:min(77%,260px);min-height:190px;padding:17px 12px 16px;z-index:4;display:flex;flex-direction:column;align-items:center;text-align:center;border:2px solid #f8e0ba;border-radius:25px;background:#fffbf1f5;box-shadow:0 5px 0 #c4a17d66,0 14px 35px #67453725;animation:victory-pop .55s .72s cubic-bezier(.16,1,.3,1.25) both}.victory-halo{position:absolute;inset:-17px;border-radius:50%;background:repeating-conic-gradient(from 0deg,#e7bc6730 0 6deg,transparent 6deg 25deg);mask-image:radial-gradient(ellipse,transparent 40%,#000 57%,transparent 72%);z-index:-1;animation:halo-turn 8s linear infinite;pointer-events:none}.victory-medallion{position:relative;width:104px;height:91px;display:grid;place-items:center;margin-top:-8px}.victory-medallion>img{width:104px;height:91px;object-fit:contain;filter:drop-shadow(0 5px 0 #c18b4933);animation:medal-nod .55s 1.18s ease-in-out both}.victory-star{position:absolute;right:-3px;bottom:-2px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e8bc62;border:3px solid #fff8e9;color:#fffdf4;font-size:24px;box-shadow:0 3px 0 #c7954c}.victory-scene>strong{font:800 clamp(23px,4vw,36px)/1 'Inter Tight',Arial,sans-serif;letter-spacing:-1px;color:#b85d48;margin:12px 0 7px;text-shadow:0 2px #f7ddbb}.victory-caption{font:600 10px/1.4 Inter,Arial,sans-serif;color:#aa8972}.victory-skip{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);z-index:8;border:1px solid #d9c4b5;border-radius:20px;background:#fffaf0e8;color:#987663;padding:7px 13px;font:600 10px Inter,Arial,sans-serif!important;pointer-events:auto;white-space:nowrap;box-shadow:0 2px 0 #b9936a20;animation:skip-appear .25s .9s both}.win-announcement{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}#result.is-fresh{animation:result-unfold .35s ease-out both}#result.is-fresh .result-cat img{animation:result-kitty .45s .05s cubic-bezier(.2,1,.3,1) both}
@keyframes cat-cheer{0%,100%{transform:translateY(0) scale(1)}25%{transform:translateY(2px) scale(1.08,.9)}55%{transform:translateY(-10px) scale(.95,1.1) rotate(-5deg)}78%{transform:translateY(-3px) rotate(3deg)}}@keyframes cat-love{0%,15%{opacity:0;transform:translateY(5px) scale(.4)}40%{opacity:1;transform:translateY(-5px) scale(1.2)}100%{opacity:0;transform:translateY(-19px) scale(.75)}}@keyframes board-bloom{0%{filter:brightness(1);transform:scale(1)}24%{filter:brightness(1.12);transform:scale(.988)}52%{filter:brightness(1.04);transform:scale(1)}100%{filter:brightness(1);transform:scale(1)}}@keyframes board-gleam{from{transform:translateX(-50%);opacity:0}20%{opacity:1}to{transform:translateX(55%);opacity:0}}@keyframes cat-confetti{0%{opacity:0;transform:translate3d(0,0,0) rotate(0deg) scale(.3)}10%{opacity:1}75%{opacity:1}100%{opacity:0;transform:translate3d(var(--dx),calc(var(--dy) + 70px),0) rotate(var(--turn)) scale(.7)}}@keyframes victory-pop{0%{opacity:0;transform:translate(-50%,-45%) scale(.35) rotate(-8deg)}68%{opacity:1;transform:translate(-50%,-50%) scale(1.07) rotate(2deg)}100%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(-2deg)}}@keyframes medal-nod{0%,100%{transform:rotate(0)}35%{transform:rotate(-9deg) translateY(-3px)}70%{transform:rotate(7deg)}}@keyframes halo-turn{to{transform:rotate(360deg)}}@keyframes skip-appear{from{opacity:0}to{opacity:1}}@keyframes result-unfold{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@keyframes result-kitty{from{opacity:0;transform:scale(.7) rotate(-10deg)}to{opacity:1;transform:none}}
@media(max-width:760px){.victory-scene{width:min(77%,230px);padding:12px 9px 13px;min-height:164px;border-radius:21px}.victory-medallion,.victory-medallion>img{width:83px;height:73px}.victory-star{width:27px;height:27px;font-size:19px}.victory-scene>strong{font-size:28px;margin:10px 0 5px}.victory-caption{font-size:9px}.victory-skip{bottom:12px;padding:6px 11px}.board-wrap.is-celebrating .cell .cat::after{font-size:12px}#party .paw-spark{width:18px;height:18px}}
@media(prefers-reduced-motion:reduce){.board-wrap.is-celebrating #board,.board-wrap.is-celebrating #board::after,.board-wrap.is-celebrating .cell .cat,.board-wrap.is-celebrating .cell .cat::after,#party .victory-spark,.victory-scene,.victory-halo,.victory-medallion>img,.victory-skip,#result.is-fresh,#result.is-fresh .result-cat img{animation:none;transition:none}}

@media(max-width:760px){.large-board .cell .manual-mark svg{width:43%;height:43%;padding:0}}
/* Keep the game masthead to one compact control row on desktop. */
.cat-topbar{display:grid;grid-template-columns:minmax(130px,1fr) auto auto auto;grid-template-areas:"brand mode levels utility";align-items:center;gap:14px;margin-bottom:9px}.cat-topbar .cat-header,.cat-topbar .top-controls{display:contents}.cat-topbar .cat-wordmark{grid-area:brand;font-size:25px;letter-spacing:-.8px;white-space:nowrap}.cat-topbar .cat-wordmark>span{display:none}.cat-topbar .tabs{grid-area:mode;justify-self:start;padding:3px;border-radius:10px}.cat-topbar .tabs button{padding:8px 13px;font-size:11px;border-radius:8px}.cat-topbar .levels{grid-area:levels;justify-self:end}.cat-topbar .levels button{padding:7px 10px}.cat-topbar .cat-utilities{grid-area:utility;justify-self:end}.cat-topbar .icon{width:31px;height:31px;border-radius:10px}.puzzle-bar{padding-bottom:8px;margin-bottom:11px;min-height:23px}.cat-game{min-height:0}
@media(max-width:760px){.cat-topbar{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand utility" "mode levels";column-gap:8px;row-gap:9px;margin-bottom:8px}.cat-topbar .cat-wordmark{font-size:23px}.cat-topbar .cat-utilities{gap:6px}.cat-topbar .icon{width:30px;height:30px}.cat-topbar .tabs button{padding:8px 12px;font-size:10px}.cat-topbar .levels button{padding:7px 7px;font-size:10px}.puzzle-bar{margin-bottom:10px;padding-bottom:7px}.cat-shell .game-shell-stage{padding-top:12px}}
@media(max-width:360px){.cat-topbar .tabs button{padding:8px 9px}.cat-topbar .levels{gap:1px}.cat-topbar .levels button{font-size:9px;padding:7px 5px}.cat-topbar .cat-wordmark{font-size:22px}}
/* Currency lives beside the hint, not in another tall header row. */
.hint-heading{gap:6px}.hint-heading h2{font-size:15px;flex:1}.wallet-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:4px 7px;border:1px solid #dfc397;border-radius:15px;background:#fff0c7;color:#94703d;white-space:nowrap;min-height:27px;flex-shrink:0}.wallet-button svg{width:16px;height:16px;stroke:#a47a39;stroke-width:1.7}.wallet-button b{font-size:11px}.hint-inventory{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px;font-size:10px;color:#92778a}.hint-inventory>span{display:flex;align-items:center;gap:6px}.hint-inventory b{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 4px;background:#fffbf6;border:1px solid #dac5cf;border-radius:6px;font-size:10px;color:#8b657a}.hint-inventory button{padding:1px 0;border:0;background:none;text-decoration:underline;text-underline-offset:3px;font-size:9px;color:#95677e}.hint-card #hint{font-size:11px!important;min-height:26px}.result-reward{color:#a47b36!important;font:700 13px/1.5 Inter,Arial,sans-serif!important;min-height:0;margin:-7px 0 15px}.result-reward:empty{display:none}#shop-dialog{background:#fff9ef;width:min(420px,calc(100% - 26px));border-color:#dcc7b2}#shop-dialog .eyebrow{font-size:8px;color:#b39479;margin-top:3px}#shop-title{color:#8c625f;margin:0 0 17px}.shop-totals{display:flex;gap:12px;align-items:center;padding:11px 13px;background:#f4e9d8;border-radius:11px;color:#a07a4e;font-size:11px}.shop-totals span{display:flex;align-items:center;gap:5px;flex:1}.shop-totals svg{width:22px;height:22px;fill:none;stroke:#a47a39;stroke-width:1.7}.shop-totals b{font-size:20px;font-family:'Inter Tight',Arial,sans-serif;color:#8d653b}.shop-item{margin-top:17px;padding:15px;background:#fffdf7;border:1px solid #e5d4be;border-radius:13px}.shop-item strong{font-size:15px;color:#846272}.cat-shell #shop-dialog .shop-item p{font-size:11px;line-height:1.65;margin:6px 0 0;color:#a18b82}.cat-shell #shop-dialog .primary{margin-top:13px;background:#b67c89;color:#fffaf3;border:0;border-bottom:3px solid #905b6b;font-size:12px;border-radius:9px;min-height:42px}.cat-shell #shop-dialog .primary:disabled{background:#dbcecc;border-color:#c3b4b7;opacity:1;color:#fffaf6}.cat-shell #shop-dialog #shop-status{font-size:11px;line-height:1.5;color:#a27861;min-height:17px;margin:9px 0}.earning-rules{padding-top:12px;border-top:1px dashed #dccbb8}.earning-rules h3{font-size:13px;color:#947660}.cat-shell #shop-dialog .earning-rules p{font-size:10px;color:#9f8a79;line-height:1.65;margin-top:6px}.cat-shell #shop-dialog .shop-welcome{font-size:10px;color:#aa8a69;margin-top:15px}.cat-shell #shop-dialog #shop-storage{font-size:9px;margin-top:3px;color:#b29c8c}.shop-back{width:100%;border:0;background:none;text-decoration:underline;text-underline-offset:3px;color:#ab8d82;font-size:11px;margin-top:15px;padding:5px}
@media(max-width:360px){.hint-heading h2{font-size:14px}.hint-heading>span{font-size:20px}.wallet-button{padding:4px 6px}.cat-topbar .tabs button{padding-inline:8px}}

.deduction-list section{margin-top:24px}.deduction-list h3{font-size:19px;margin-bottom:8px}.cat-logic-example{display:flex;align-items:center;gap:25px;width:100%!important;max-width:800px!important;margin:22px 0!important;padding:18px;border:1px solid #e1d5cf;border-radius:13px;background:#fffaf2}.cat-logic-example img{width:220px!important;height:220px!important;flex-shrink:0;border:0!important;border-radius:10px!important}.cat-logic-example figcaption{font-size:13px;line-height:1.75;margin:0;color:#8d756f}@media(max-width:600px){.cat-logic-example{flex-direction:column;gap:14px;padding:15px}.cat-logic-example img{width:200px!important;height:200px!important}.cat-logic-example figcaption{font-size:12px}}

.rules-card h2{font-size:22px;line-height:1.2;letter-spacing:-.5px;white-space:nowrap}
/* One breathing contour identifies the area; targets use a different shape. */
.cell.hint-group{filter:none;box-shadow:inset 0 1px 0 #fff7}.hint-outline{position:absolute;inset:2px;width:calc(100% - 4px)!important;height:calc(100% - 4px)!important;z-index:4;overflow:visible;pointer-events:none;fill:none;stroke:none}.hint-outline path{fill:none;stroke:#8e527c;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;paint-order:stroke;filter:drop-shadow(0 0 2px #fff8ed);animation:cat-hint-zone 1.8s ease-in-out infinite}.hint-outline.explained path{stroke-width:2;opacity:.45;animation:none}.cell.hint-target{box-shadow:inset 0 0 0 3px #894d78;z-index:2}.cell.hint-target::before{content:'';position:absolute;inset:17%;border:2px solid #894d78;border-radius:50%;background:#fff9ee88;pointer-events:none;animation:cat-hint-spot 1.6s ease-in-out infinite;box-shadow:0 0 0 2px #fff8edb3;z-index:0}.cell.hint-target.hint-exclude{box-shadow:inset 0 0 0 3px #b06a4b}.cell.hint-target.hint-exclude::before{inset:12%;border-color:#b06a4b;border-style:dashed;border-radius:5px;background:#fff9ee33}.cell.hint-target>.cat,.cell.hint-target>.manual-mark{z-index:1}.cell.hint-target:focus-visible{outline-color:#4f3148;outline-width:3px}.board-wrap:has(#pause-cover:not([hidden])) .hint-outline path{animation-play-state:paused}@keyframes cat-hint-zone{0%,100%{opacity:.55;stroke-width:2.5}50%{opacity:1;stroke-width:4;filter:drop-shadow(0 0 4px #b77b9b80)}}@keyframes cat-hint-spot{0%,100%{opacity:.6;transform:scale(.9)}50%{opacity:1;transform:scale(1.06)}}@media(prefers-reduced-motion:reduce){.hint-outline path,.cell.hint-target::before{animation:none;opacity:1;transform:none}}
