:root{--bg:#f6efe4;--ink:#3b2f2a;--ink-soft:#7a6a60;--card:#fffaf2;--accent:#e8805a;--accent-dark:#c9623e;--good:#5bb07a;--bad:#e25b5b;--region-border:#4a3b33;--cell-border:#4a3b332e;--shadow:0 4px 0 #5a3c2826, 0 8px 24px #5a3c281a;--radius:18px;color:var(--ink);background:var(--bg);-webkit-tap-highlight-color:transparent;font-family:Nunito,system-ui,sans-serif}*{box-sizing:border-box}html,body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}input,textarea,select,[contenteditable=true]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}body{background:var(--bg);background-image:radial-gradient(circle at 20px 20px,#c8a0781f 3px,#0000 4px);background-size:40px 40px;min-height:100vh;margin:0}h1,h2,h3,.level-title,.btn,.logo{font-family:Fredoka,Nunito,sans-serif}h2{margin:.3em 0}button{font:inherit;color:inherit}.screen{max-width:560px;min-height:100vh;margin:0 auto;padding:8px 14px 32px}.center{text-align:center}.muted{color:var(--ink-soft);font-size:.9rem}.row{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);margin:14px 0;padding:14px 18px}.card h3{margin:0 0 6px}.card ul{margin:6px 0;padding-left:1.2em;line-height:1.5}.loading{text-align:center;color:var(--ink-soft);padding:40px}.error{color:var(--bad)}.btn{cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;background:#fff;border:none;border-radius:14px;padding:10px 18px;font-size:1rem;font-weight:600;transition:transform 80ms,box-shadow 80ms,background .15s;box-shadow:0 3px #5a3c2833}.btn:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px #5a3c2833}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.primary{background:var(--accent);color:#fff;box-shadow:0 3px 0 var(--accent-dark)}.btn.ghost{box-shadow:none;background:0 0}.btn.danger{background:var(--bad);color:#fff}.btn.big{padding:14px 28px;font-size:1.25rem}.btn.small{padding:6px 12px;font-size:.9rem}.link{color:var(--accent-dark);cursor:pointer;background:0 0;border:none;padding:4px 8px;font-weight:700;text-decoration:underline}.chip{cursor:pointer;white-space:nowrap;background:#fff;border:none;border-radius:999px;padding:5px 12px;font-weight:700;box-shadow:0 2px #5a3c2826}.icon-btn{cursor:pointer;background:#fff;border:none;border-radius:12px;flex:none;width:40px;height:40px;font-size:1.2rem;box-shadow:0 2px #5a3c2826}.icon-btn.placeholder{visibility:hidden}.topbar{align-items:center;gap:10px;padding:6px 0 10px;display:flex}.topbar-title{text-align:center;flex:1;font-family:Fredoka,sans-serif;font-size:1.2rem;font-weight:600}.topbar-right{justify-content:flex-end;min-width:40px;display:flex}.map-screen>.topbar{z-index:20;background:var(--bg);margin:0 -14px;padding:8px 14px 10px;position:sticky;top:0;box-shadow:0 6px 12px -8px #5a3c2859}.map-screen .node{scroll-margin-top:80px}.level-title{font-size:1.2rem;font-weight:600}.level-sub{color:var(--ink-soft);font-family:Nunito,sans-serif;font-size:.8rem}.timer{font-variant-numeric:tabular-nums;color:var(--ink-soft);font-weight:700}.title-screen{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;display:flex}.title-dogs{gap:6px;margin-bottom:4px;display:flex}.title-dog{width:58px;height:58px;animation:2.4s ease-in-out infinite bob}.title-dog.d1{animation-delay:.2s}.title-dog.d2{width:72px;height:72px;animation-delay:.4s}.title-dog.d3{animation-delay:.6s}.title-dog.d4{animation-delay:.8s}.logo{color:var(--accent-dark);letter-spacing:-1px;text-shadow:0 3px #5a3c281f;margin:0;font-size:3.4rem}.logo span{color:var(--ink)}.tagline{color:var(--ink-soft);margin:0 0 18px}.title-buttons{flex-direction:column;gap:10px;width:min(320px,100%);display:flex}.world{box-shadow:var(--shadow);border-radius:24px;margin:14px 0;padding:14px 12px 20px}.world header{justify-content:space-between;align-items:center;padding:0 6px;display:flex}.world h2{font-size:1.3rem}.world-stars{font-weight:700}.world.locked{filter:grayscale(.6);opacity:.75}.extra-world{background:linear-gradient(160deg,#fff4cf 0%,#e3f6ff 100%)}.nodes{flex-direction:column;align-items:center;gap:6px;padding-top:8px;display:flex}.node{width:58px;height:58px;box-shadow:0 4px 0 color-mix(in srgb, var(--accent) 70%, black);transform:translateX(var(--offset));cursor:pointer;background:#fff;border:none;border-radius:50%;font-family:Fredoka,sans-serif;font-size:1.3rem;font-weight:600;transition:transform .15s;position:relative}.node.done{background:var(--accent);color:#fff}.node.bonus{color:var(--ink);background:#ffe3a3;border-radius:18px}.node.bonus.done{background:#f5b83c}.node.locked{cursor:not-allowed;background:#e8e1d8;font-size:1rem;box-shadow:0 4px #c9bfb3}.node.current{outline-offset:3px;outline:4px solid #fff;animation:1.4s ease-in-out infinite pulse}.node-stars{color:#f5b83c;text-shadow:0 1px #8a5a1f;white-space:nowrap;font-size:.8rem;position:absolute;bottom:-10px;left:50%;transform:translate(-50%)}.node-tag{font-size:1rem;position:absolute;top:-8px;right:-8px}.puzzle-screen{background:var(--world-bg);max-width:600px}.hud{justify-content:space-between;align-items:center;padding:0 4px 8px;font-weight:700;display:flex}.bones{align-items:center;gap:2px;font-size:1.4rem;display:flex}.bone.lost{filter:grayscale();opacity:.3}.dogs-count{font-size:1.1rem}.target-banner{background:#fff3c4;border-radius:12px;justify-content:space-between;align-items:center;margin-bottom:8px;padding:8px 12px;font-weight:700;display:flex}.board-wrap{justify-content:center;display:flex}.board{aspect-ratio:1;width:min(100%,520px,70vh);box-shadow:var(--shadow);border:3px solid var(--region-border);touch-action:none;-webkit-user-select:none;user-select:none;background:var(--region-border);border-radius:10px;outline:none;display:grid;overflow:hidden}.board.targeting .cell{cursor:crosshair}.board.targeting .cell:hover{filter:brightness(1.1)saturate(1.3)}.cell{cursor:pointer;font-size:calc(min(520px, 90vw, 70vh) / var(--n) * .42);justify-content:center;align-items:center;min-width:0;min-height:0;line-height:1;transition:filter .2s;display:flex;position:relative;overflow:hidden}.cell.done:after{content:"";pointer-events:none;background:#fff6;position:absolute;inset:0}.cell.focus:before{content:"";pointer-events:none;background:#ffe67873;animation:1.2s ease-in-out infinite glow;position:absolute;inset:0}.cell.hint:before{content:"";pointer-events:none;border:3px dashed #d9822b;border-radius:6px;animation:1s ease-in-out infinite glow;position:absolute;inset:3px}.cell.cursor{box-shadow:inset 0 0 0 3px #3d8fe0}.cell.wrong{animation:.45s shake;background-color:#f7b2b2!important}.cell.powered{animation:.8s sparkle}.cell.bark .dog{animation:.4s 2 bark}.dog{pointer-events:none;width:82%;height:82%}.dog.pop{animation:.35s cubic-bezier(.3,1.6,.5,1) pop}.dog.ghost{animation:.9s forwards fadeaway;position:absolute}.mark{pointer-events:none;color:#3b2f2abf;font-weight:700}.mark.auto{color:#3b2f2a66;font-size:1.2em}.mark.cat{background:#ffffffb3;border-radius:50%;place-items:center;width:78%;height:78%;font-size:1.15em;line-height:1;animation:3.2s ease-in-out infinite cat-snooze;display:grid;box-shadow:0 1px 2px #2d232040}@keyframes cat-snooze{0%,to{transform:scale(1)}50%{transform:scale(1.06)translateY(-1px)}}@media (prefers-reduced-motion:reduce){.mark.cat{animation:none}}.hint-box{box-shadow:var(--shadow);background:#fff;border-left:5px solid #f5b83c;border-radius:12px;align-items:center;gap:8px;margin:10px 0 0;padding:8px 10px 8px 14px;font-size:.95rem;display:flex}.hint-box span{flex:1}.hint-box.mistake{border-left-color:var(--bad)}.tools{grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px;display:grid}.tool{cursor:pointer;touch-action:manipulation;background:#fff;border:none;border-radius:14px;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;font-size:1.3rem;display:flex;box-shadow:0 3px #5a3c282e}.tool span{color:var(--ink-soft);font-size:.72rem;font-weight:700}.tool:disabled{opacity:.45}.tray{background:#ffffff8c;border-radius:16px;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:12px;padding:8px;display:grid}.powerup{cursor:pointer;border:none;border-bottom:3px solid var(--rarity);touch-action:manipulation;background:#fff;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:60px;padding:8px 0 6px;display:flex;position:relative;box-shadow:0 2px #5a3c282e}.powerup .icon{font-size:1.5rem;line-height:1.1}.powerup .label{color:var(--ink-soft);white-space:nowrap;text-overflow:ellipsis;max-width:100%;padding:0 2px;font-size:.64rem;font-weight:700;overflow:hidden}@media (width<=380px){.tray{gap:5px;padding:6px}.powerup .label{white-space:normal;text-align:center;font-size:.6rem;line-height:1.05}}.powerup .count{background:var(--ink);color:#fff;border-radius:999px;min-width:18px;padding:1px 5px;font-size:.7rem;font-weight:700;position:absolute;top:-6px;right:-4px}.powerup:disabled{opacity:.35;cursor:not-allowed}.powerup.active{outline:3px solid var(--accent);transform:translateY(-3px)}.rarity-common{--rarity:#9bb6a0}.rarity-uncommon{--rarity:#5aa0e0}.rarity-rare{--rarity:#b27ee8}.rarity-epic{--rarity:#f5a623}.powerup-note{text-align:center;color:var(--ink-soft);margin-top:6px;font-size:.75rem}.toast{background:var(--ink);color:#fff;z-index:50;text-align:center;border-radius:999px;max-width:90vw;padding:10px 18px;font-weight:700;animation:.25s toastIn;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.modal-backdrop{z-index:100;background:#3b2f2a73;justify-content:center;align-items:center;padding:16px;animation:.2s fadeIn;display:flex;position:fixed;inset:0}.modal{background:var(--card);text-align:center;border-radius:24px;width:100%;max-width:420px;max-height:90vh;padding:22px 22px 18px;animation:.3s cubic-bezier(.3,1.5,.5,1) pop;overflow-y:auto;box-shadow:0 10px 40px #00000040}.modal p{line-height:1.45}.modal-actions{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:14px;display:flex}.modal-actions.column{flex-direction:column}.modal-dog{width:84px;height:84px;margin:0 auto}.modal-dog svg{width:100%;height:100%}.celebrate{justify-content:center;gap:4px;display:flex}.celebrate svg{width:46px;height:46px}.jump{animation:.7s ease-in-out infinite alternate jump}.jump:nth-child(2){animation-delay:.1s}.jump:nth-child(3){animation-delay:.2s}.jump:nth-child(4){animation-delay:.3s}.jump:nth-child(5){animation-delay:.4s}.stars{gap:6px;font-size:2.4rem;display:inline-flex}.star{color:#e2d8cb}.star.on{color:#f5b83c;text-shadow:0 2px #b8801c}.stars.animate .star.on{animation:.5s cubic-bezier(.3,1.6,.5,1) both pop}.result-line{color:var(--ink-soft);font-weight:600}.reward{font-size:1.1rem;font-weight:700}.reward-items{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.reward-item{border-bottom:4px solid var(--rarity);background:#fff;border-radius:14px;flex-direction:column;align-items:center;padding:10px 12px;font-size:.85rem;font-weight:700;animation:.45s cubic-bezier(.3,1.6,.5,1) both pop;display:flex;box-shadow:0 2px 10px #00000014}.reward-item .icon{font-size:2rem}.save-text{border:1px solid #d8cbbb;border-radius:10px;width:100%;height:140px;padding:8px;font-family:monospace;font-size:.75rem}.kennel-list{flex-direction:column;gap:10px;display:flex}.kennel-item{background:var(--card);box-shadow:var(--shadow);border-left:6px solid var(--rarity);border-radius:16px;align-items:center;gap:12px;padding:10px 12px;display:flex}.kennel-item.flash{animation:.5s sparkle}.kennel-item .icon{font-size:2rem}.kennel-item .info{flex:1}.kennel-item .name{font-weight:700}.kennel-item .rarity{text-transform:uppercase;color:var(--rarity);margin-left:4px;font-size:.7rem}.kennel-item .desc,.toggle .desc{color:var(--ink-soft);font-size:.82rem}.kennel-item .owned{font-size:1.1rem;font-weight:700}.toggle{cursor:pointer;border-bottom:1px dashed #e4d8c8;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;display:flex}.toggle:last-child{border-bottom:none}.toggle .name{font-weight:700}.toggle input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}.toggle select{font:inherit;border-radius:8px;padding:4px 8px}kbd{background:#fff;border:1px solid #d8cbbb;border-radius:4px;padding:0 4px;font-size:.85em}.bonus-intro{text-align:center}.bonus-intro ul{text-align:left}.bonus-icon{font-size:3.6rem}.minigame{flex-direction:column;align-items:center;gap:12px;display:flex}.mg-stats{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.mg-stats span{background:#fff;border-radius:999px;padding:5px 12px;font-size:.9rem;font-weight:700;box-shadow:0 2px #5a3c281f}.mg-actions{gap:10px;display:flex}.leash-board{aspect-ratio:1;touch-action:none;-webkit-user-select:none;user-select:none;background:#3b2f2a;border-radius:12px;gap:2px;width:min(100%,480px,68vh);padding:2px;display:grid;position:relative}.leash-cell{background-color:#fbf5ea;border-radius:4px;justify-content:center;align-items:center;min-width:0;min-height:0;display:flex}.leash-dog{z-index:2;pointer-events:none;border-radius:50%;flex:none;width:78%;height:78%;padding:6%;transition:transform .2s;box-shadow:0 2px #0003}.leash-dog svg{width:100%;height:100%}.leash-dog.happy{transform:scale(1.08)}.leash-lines{pointer-events:none;z-index:1;width:calc(100% - 2px);height:calc(100% - 2px);position:absolute;inset:1px}.bd-layout{align-items:flex-start;gap:10px;display:flex}.bd-side{flex-direction:column;align-items:center;gap:6px;width:64px;display:flex}.bd-label{color:var(--ink-soft);font-size:.75rem;font-weight:700}.mini-piece{background:#fff;border-radius:8px;width:56px;height:36px}.bd-goal{background:#fff;border-radius:999px;align-items:flex-end;width:18px;height:180px;margin-top:10px;display:flex;overflow:hidden}.bd-goal-bar{background:linear-gradient(#8fd18a,#5bb07a);width:100%;transition:height .3s}.bd-well{position:relative}.bd-well canvas{aspect-ratio:10/18;touch-action:none;background:#fbf5ea;border:3px solid #3b2f2a;border-radius:10px;width:auto;height:min(62vh,432px);display:block}.bd-paused{cursor:pointer;background:#fffaf2d9;border-radius:10px;justify-content:center;align-items:center;font-weight:700;display:flex;position:absolute;inset:0}.bd-controls{grid-template-columns:repeat(7,auto);gap:6px;display:grid}.bd-controls .btn{touch-action:none;padding:10px 12px}.slide-row{flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:12px;display:flex}.slide-board{grid-template-columns:repeat(var(--n), 1fr);grid-template-rows:repeat(var(--n), 1fr);aspect-ratio:1;background:#3b2f2a;border-radius:12px;gap:3px;width:min(88vw,400px);padding:3px;display:grid}.slide-tile{cursor:pointer;background:#fbe3c4;border:none;border-radius:6px;padding:0;transition:filter .15s;position:relative;overflow:hidden}.slide-tile:hover{filter:brightness(1.05)}.slide-img{pointer-events:none;position:absolute}.slide-img svg{width:100%;height:100%}.slide-num{background:#fffc;border-radius:6px;padding:0 5px;font-size:.8rem;font-weight:700;position:absolute;top:3px;left:5px}.slide-tile.home .slide-num{background:#c8ecc9}.slide-gap{background:#5a4a40;border-radius:6px}.slide-preview{background:#fbe3c4;border-radius:10px;flex-direction:column;align-items:center;width:80px;padding:6px;display:flex}.slide-preview svg{width:100%}@keyframes pop{0%{opacity:0;transform:scale(.3)}to{opacity:1;transform:scale(1)}}@keyframes shake{0%,to{transform:translate(0)}20%{transform:translate(-5px)}40%{transform:translate(5px)}60%{transform:translate(-3px)}80%{transform:translate(3px)}}@keyframes glow{0%,to{opacity:.55}50%{opacity:1}}@keyframes sparkle{0%{filter:brightness(1.6)saturate(1.4)}to{filter:none}}@keyframes bark{50%{transform:scale(1.15)rotate(-6deg)}}@keyframes fadeaway{0%{opacity:.9;transform:scale(1)}to{opacity:0;transform:scale(.6)translateY(-20%)}}@keyframes bob{50%{transform:translateY(-6px)}}@keyframes jump{to{transform:translateY(-10px)}}@keyframes pulse{50%{transform:translateX(var(--offset,0)) scale(1.07)}}@keyframes fadeIn{0%{opacity:0}}@keyframes toastIn{0%{opacity:0;transform:translate(-50%,10px)}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.reduced-motion *,.reduced-motion :before,.reduced-motion :after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}@media (width<=420px){.bd-controls{grid-template-columns:repeat(4,auto)}.bd-side{width:58px}.bd-well canvas{height:min(55vh,400px)}}.cell.ripple:not(.powered){animation:.55s ease-out both ripple}@keyframes ripple{0%{filter:brightness();transform:scale(1)}40%{filter:brightness(1.22)saturate(1.2);transform:scale(.94)}to{filter:brightness();transform:scale(1)}}.cell.pat{background-blend-mode:normal}.cell.pat-0{background-image:radial-gradient(#0000002e 18%,#0000 20%);background-size:12px 12px}.cell.pat-1{background-image:repeating-linear-gradient(45deg,#00000024 0 3px,#0000 3px 9px)}.cell.pat-2{background-image:repeating-linear-gradient(0deg,#00000024 0 3px,#0000 3px 9px)}.cell.pat-3{background-image:repeating-linear-gradient(90deg,#00000024 0 3px,#0000 3px 9px)}.cell.pat-4{background-image:repeating-linear-gradient(-45deg,#00000024 0 3px,#0000 3px 9px)}.cell.pat-5{background-image:linear-gradient(45deg,#0000001f 25%,#0000 25% 75%,#0000001f 75%),linear-gradient(45deg,#0000001f 25%,#0000 25% 75%,#0000001f 75%);background-position:0 0,6px 6px;background-size:12px 12px}.cell.pat-6{background-image:radial-gradient(circle,#0000 35%,#00000024 37% 45%,#0000 47%);background-size:14px 14px}.cell.pat-7{background-image:repeating-linear-gradient(45deg,#0000001f 0 2px,#0000 2px 8px),repeating-linear-gradient(-45deg,#0000001f 0 2px,#0000 2px 8px)}.board.high-contrast{border-width:4px}.board.high-contrast .mark{color:#000}.confetti{pointer-events:none;z-index:60;position:fixed;inset:0;overflow:hidden}.confetti-bit{border-radius:2px;width:9px;height:14px;animation-name:confettiFall;animation-timing-function:cubic-bezier(.3,.6,.6,1);animation-fill-mode:forwards;position:absolute;top:-24px}.confetti-bit.emoji{width:auto;height:auto;font-size:1.3rem}@keyframes confettiFall{0%{opacity:1;transform:translate(0)rotate(0)}to{transform:translate(var(--drift), 105vh) rotate(var(--rot));opacity:.9}}.tabs{background:#fff9;border-radius:999px;gap:6px;margin:4px 0 12px;padding:4px;display:flex}.tab{cursor:pointer;color:var(--ink-soft);background:0 0;border:none;border-radius:999px;flex:1;padding:8px 6px;font-weight:800}.tab.on{color:var(--ink);background:#fff;box-shadow:0 2px #5a3c2826}.chip.on{background:var(--accent);color:#fff}.chip-row{flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:12px;display:flex}.theme-swatch{flex-shrink:0;grid-template-columns:repeat(3,14px);gap:2px;display:grid}.theme-swatch span{border:1px solid;border-radius:3px;width:14px;height:14px}.accessory-preview svg{width:44px;height:44px}.chest-row{justify-content:center;padding:6px 0 4px;display:flex}.chest{color:var(--ink-soft);background:#ffffffb3;border:none;border-radius:999px;align-items:center;gap:8px;padding:8px 16px;font-weight:800;display:flex}.chest .chest-icon{font-size:1.5rem}.chest.ready{color:var(--ink);cursor:pointer;background:#ffd24a;animation:1.4s ease-in-out infinite pulse;box-shadow:0 3px #c99a1a}.chest.closed .chest-icon{filter:grayscale(.7)}.chest-open{font-size:3.5rem;animation:.5s cubic-bezier(.3,1.6,.5,1) pop}.streak-row{justify-content:center;gap:6px;margin:12px 0;display:flex}.streak-day{width:36px;color:var(--ink-soft);background:#0000000d;border-radius:10px;flex-direction:column;align-items:center;padding:4px 0;font-size:.8rem;display:flex}.streak-day.done{color:var(--ink);background:#ffe2a8}.streak-day.today{outline:2px solid var(--accent)}.stats-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-bottom:14px;display:grid}.stat-tile{background:var(--card);box-shadow:var(--shadow);border-radius:14px;flex-direction:column;gap:2px;padding:12px;display:flex}.stat-tile b{font-size:1.4rem}.stat-tile span{color:var(--ink-soft);font-size:.8rem}.stats-table{border-collapse:collapse;width:100%;font-size:.9rem}.stats-table th,.stats-table td{text-align:center;border-bottom:1px solid #0000000f;padding:6px 4px}.loading{justify-content:center;align-items:center;font-size:1.2rem;font-weight:800;display:flex}.puzzle-body{grid-template-columns:100%;grid-template-areas:"hud""banner""board""hint""tools""tray";display:grid}.puzzle-body>.hud{grid-area:hud}.puzzle-body>.target-banner{grid-area:banner}.puzzle-body>.board-wrap{grid-area:board}.puzzle-body>.hint-box{grid-area:hint}.puzzle-body>.tools{grid-area:tools}.puzzle-body>.tray-wrap{grid-area:tray}@media (width>=900px) and (height>=560px){.puzzle-screen{max-width:1080px}.puzzle-body{grid-template:"board hud""board banner""board hint""board tools""board tray"1fr/minmax(0,1fr) 340px;align-items:start;column-gap:28px}.puzzle-body>.board-wrap{align-self:start}.puzzle-body .board{width:min(100%,640px,82vh)}.puzzle-body .cell{font-size:calc(min(640px, 82vh, 60vw) / var(--n) * .42)}.puzzle-body>.hud{background:var(--card);box-shadow:var(--shadow);border-radius:14px;margin-bottom:12px;padding:12px 14px}.puzzle-body .tools{margin-top:0}.screen:not(.puzzle-screen){max-width:720px}}.debug-screen .toggle .row{flex-wrap:nowrap;flex-shrink:0}.pup-avatar{line-height:0;display:inline-block;position:relative}.pup-avatar svg{width:100%;height:100%}.pup-tap{all:unset;cursor:pointer;border-radius:50%;width:100%;height:100%;display:block}.pup-tap:focus-visible{outline:3px solid var(--accent)}.pup-bubble{box-shadow:var(--shadow);background:#fff;border-radius:12px;padding:6px 7px;font-size:.75rem;line-height:1;animation:1.6s ease-in-out infinite bob;position:absolute;top:-6px;right:-14px}.pup-heart{pointer-events:none;font-size:1.1rem;line-height:1;animation:1.1s ease-out forwards heartFloat;position:absolute;top:-8px;left:50%}.trick-wag svg{animation:.35s ease-in-out 3 wag}.trick-spin svg{animation:.8s ease-in-out spin}.trick-jump svg{animation:.55s ease-in-out 2 jump}.trick-roll svg{animation:1s ease-in-out roll}.trick-heart svg{animation:.3s ease-in-out 3 bark}.trick-dance svg{animation:1s ease-in-out dance}.dog-sparkle{animation:1.6s ease-in-out infinite pulse}@keyframes heartFloat{0%{opacity:1;transform:translate(-50%)scale(.6)}to{opacity:0;transform:translate(-50%,-34px)scale(1.2)}}@keyframes wag{0%,to{transform:rotate(0)}25%{transform:rotate(-12deg)}75%{transform:rotate(12deg)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes roll{0%{transform:translate(0)rotate(0)}50%{transform:translate(14px)rotate(180deg)}to{transform:translate(0)rotate(360deg)}}@keyframes dance{0%,to{transform:translateY(0)rotate(0)}20%{transform:translateY(-10px)rotate(-14deg)}40%{transform:translateY(0)rotate(0)}60%{transform:translateY(-10px)rotate(14deg)}80%{transform:translateY(0)scale(1.1)}}.pup-widget{background:var(--card);border-radius:var(--radius);width:min(360px,100%);box-shadow:var(--shadow);text-align:left;grid-template-rows:auto auto;grid-template-columns:64px 1fr auto;align-items:center;column-gap:10px;margin-bottom:14px;padding:10px 12px;display:grid}.pup-widget-face{grid-row:span 2;width:64px;height:64px}.pup-widget-info{min-width:0}.pup-name{color:var(--ink);padding:0;font-family:Fredoka,Nunito,sans-serif;font-size:1.1rem;font-weight:700;text-decoration:none}.pup-mood{white-space:nowrap;text-overflow:ellipsis;margin:2px 0 5px;font-size:.85rem;overflow:hidden}.pup-feed{flex-direction:column;align-items:center;line-height:1.1;display:flex}.pup-kibble{opacity:.85;font-size:.7rem}.pup-widget-kibble{text-align:center;color:var(--ink-soft);grid-column:3;font-size:.85rem;font-weight:700}.fullness,.bond-bar{background:#5a3c281f;border-radius:6px;height:10px;overflow:hidden}.fullness>div,.bond-bar>div{border-radius:6px;height:100%;transition:width .5s}.fullness.good>div{background:var(--good)}.fullness.ok>div{background:#f1c46b}.fullness.low>div{background:var(--accent)}.fullness.empty>div{background:var(--bad)}.bond-bar>div{background:linear-gradient(90deg,#ff8fb8,#e8805a)}.hud-pup{width:40px;height:40px}.adopt-screen{flex-direction:column;align-items:center;gap:10px;display:flex}.adopt-screen .card{flex-direction:column;gap:12px;width:min(420px,100%);display:flex}.adopt-grid{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.adopt-option{font:inherit;color:var(--ink);cursor:pointer;background:#fff;border:3px solid #0000;border-radius:14px;flex-direction:column;align-items:center;gap:2px;padding:8px 4px 6px;font-weight:700;display:flex}.adopt-option svg{width:64px;height:64px}.adopt-option.on{border-color:var(--accent);background:#fff3ea}.adopt-name{flex-direction:column;gap:4px;font-weight:700;display:flex}.adopt-name input,.text-input{font:inherit;color:var(--ink);background:#fff;border:2px solid #5a3c2833;border-radius:12px;flex:1;width:100%;padding:8px 12px;font-size:1.05rem}.pup-screen .card{flex-direction:column;gap:10px;display:flex}.pup-hero{align-items:stretch}.pup-hero-face{align-self:center;width:150px;height:150px}.pup-stat-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.pup-stat-row h3{margin:0}.trick-grid{flex-wrap:wrap;gap:6px;display:flex}.chip.trick.locked{opacity:.55}.text-small{font-size:.85rem}.rarity-tag{color:#fff;vertical-align:middle;border-radius:8px;padding:2px 7px;font-size:.7rem}.r-common{background:#9a8f86}.r-uncommon{background:#5bb07a}.r-rare{background:#4b8fe0}.r-epic{background:#9b5de5}.r-legendary{background:linear-gradient(90deg,#f5b301,#ff7a59)}.yard-btn{justify-content:center;align-items:center;gap:8px;display:flex}.yard-badge{color:var(--ink);background:#fff3c4;border-radius:10px;padding:1px 8px;font-size:.85rem}.yard-btn.jar-full .yard-badge{background:var(--accent);color:#fff;animation:1.6s ease-in-out infinite pulse}.yard-screen{flex-direction:column;gap:12px;display:flex}.yard-scene{border-radius:var(--radius);height:190px;box-shadow:var(--shadow);background:linear-gradient(#8fd06b,#6cb64f) bottom/100% 45% no-repeat,linear-gradient(#bfe6ff,#e6f6ff);position:relative;overflow:hidden}.yard-scene:after{content:"";background:repeating-linear-gradient(90deg,#f3e2c6 0 8px,#0000 8px 22px);border-bottom:4px solid #e2cba5;height:22px;position:absolute;bottom:45%;left:0;right:0}.yard-deco{z-index:1;text-align:center;pointer-events:none;width:15%;font-size:2.3rem;line-height:1;position:absolute}.yard-deco.row-0{font-size:2.6rem}.yard-deco.row-2{font-size:2rem}.decor-slot{z-index:3;cursor:pointer;background:#ffffff1f;border:2px dashed #ffffffd9;border-radius:10px;width:15%;height:17%;padding:0;position:absolute}.decor-slot:hover,.decor-slot:focus-visible{background:#fff6}.yard-scene.editing .yard-dog{opacity:.45}.yard-tools{justify-content:flex-end;margin-top:-4px}.decor-palette{flex-direction:column;gap:8px;display:flex}.decor-choices{grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:6px;display:grid}.decor-choice{font:inherit;cursor:pointer;background:#ffffffb3;border:2px solid #0000;border-radius:12px;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;display:flex}.decor-choice span{font-size:1.6rem;line-height:1}.decor-choice small{color:var(--ink-soft);text-align:center;font-size:.68rem}.decor-choice.on{border-color:var(--accent,#f28b4b);background:#fff}.yard-photo{width:100%;box-shadow:var(--shadow);border-radius:12px;margin:8px 0 12px;display:block}.kennel-item .icon.decor-icon{font-size:2rem}.yard-dog{z-index:2;width:72px;height:72px;animation:9s ease-in-out infinite yardWander;position:absolute;bottom:8%;left:40%}.yard-dog svg{width:100%;height:100%;animation:.7s ease-in-out infinite bob}.yard-scene.mood-hungry .yard-dog,.yard-scene.mood-sad .yard-dog{animation:none;left:58%}.yard-scene.mood-hungry .yard-dog svg,.yard-scene.mood-sad .yard-dog svg{animation:none}.yard-bowl{z-index:2;font-size:1.6rem;position:absolute;bottom:9%;left:calc(58% + 70px)}@keyframes yardWander{0%,to{transform:translate(-90px)}45%,55%{transform:translate(70px)}}.yard-jar-card{flex-direction:row;align-items:center;gap:16px;display:flex}.treat-jar{background:#ffffffb3;border:4px solid #5a3c2859;border-top-width:10px;border-radius:14px 14px 22px 22px;flex:none;width:86px;height:110px;position:relative;overflow:visible}.treat-jar-fill{background:linear-gradient(#f6b98a,#d9824e);border-radius:0 0 17px 17px;transition:height .6s;position:absolute;bottom:0;left:0;right:0}.treat-jar.full{border-color:var(--accent)}.treat-jar-icon{place-items:center;font-size:2rem;display:grid;position:absolute;inset:0}.treat-burst{white-space:nowrap;color:var(--accent-dark);pointer-events:none;font-weight:800;animation:1.3s ease-out forwards treatBurst;position:absolute;top:0;left:50%}@keyframes treatBurst{0%{opacity:1;transform:translate(-50%)scale(.8)}to{opacity:0;transform:translate(-50%,-60px)scale(1.3)}}.yard-jar-info{flex-direction:column;flex:1;gap:4px;display:flex}.yard-jar-info h3,.yard-jar-info p{margin:0}.yard-jar-count{font-size:1.6rem}.good-text{color:var(--good)}.bad-text{color:var(--bad)}.yard-nav>.btn{flex:1}.yard-dog.extra{width:54px;height:54px;animation-duration:11s}.pack-screen,.fair-screen{flex-direction:column;gap:12px;display:flex}.pack-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px;display:grid}.pack-card{border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow);font:inherit;color:inherit;cursor:pointer;border:3px solid #0000;flex-direction:column;align-items:center;gap:2px;padding:10px 6px 8px;display:flex;position:relative}.pack-card.locked{cursor:default;opacity:.75}.pack-face{width:60px;height:60px}.pack-face.silhouette{filter:brightness(0)opacity(.25)}.pack-name{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:.85rem;font-weight:700;overflow:hidden}.pack-level{color:var(--ink-soft);font-size:.75rem}.pack-main{font-size:.9rem;position:absolute;top:4px;left:6px}.r-border-common{border-color:#d8d0c8}.r-border-uncommon{border-color:#9fd8b2}.r-border-rare{border-color:#9cc2f0}.r-border-epic{border-color:#c9a7f0}.r-border-legendary{border-color:#f5c542}.fair-stall{text-align:center;padding-top:38px;position:relative;overflow:hidden}.fair-awning{background:repeating-linear-gradient(90deg,#e25b5b 0 24px,#fff 24px 48px);border-bottom:3px solid #00000014;height:22px;position:absolute;top:0;left:0;right:0}.fair-crate{font-size:3.6rem;line-height:1.1}.fair-crate.shaking{animation:.35s ease-in-out infinite crateShake}@keyframes crateShake{0%,to{transform:rotate(0)}25%{transform:rotate(-9deg)translateY(-3px)}75%{transform:rotate(9deg)translateY(-3px)}}.fair-reveal{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:180px;display:flex}.fair-reveal.done .fair-dog{animation:.45s ease-out pop}.r-glow-rare .fair-dog{filter:drop-shadow(0 0 10px #4b8fe0)}.r-glow-epic .fair-dog{filter:drop-shadow(0 0 14px #9b5de5)}.r-glow-legendary .fair-dog{filter:drop-shadow(0 0 18px #f5b301)}.story-dog{text-align:left;background:#fff9;border-radius:12px;align-items:center;gap:10px;margin:8px 0 12px;padding:8px 10px;display:flex}.story-dog p{margin:2px 0 0}.story-dog-face{flex:none;width:56px;height:56px}.expeditions-screen,.album-screen{flex-direction:column;gap:12px;display:flex}.yard-nav>.btn{gap:4px;padding-left:8px;padding-right:8px}.trip-card{flex-direction:column;gap:8px;display:flex}.trip-card.ready{outline:3px solid var(--good)}.trip-head{align-items:center;gap:10px;display:flex}.trip-head h3,.trip-head p{margin:0}.trip-emoji{font-size:2rem}.trip-dogs{margin-left:auto;display:flex}.trip-dogs>*{width:40px;height:40px;margin-left:-10px}.trip-card.ready .trip-dogs>*{animation:1s ease-in-out infinite bob}.dest-grid{grid-template-columns:repeat(2,1fr);gap:8px;display:grid}.dest-btn,.team-dog{border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow);font:inherit;color:inherit;cursor:pointer;border:3px solid #0000;flex-direction:column;align-items:center;gap:2px;padding:8px 6px;font-weight:700;display:flex}.dest-btn>span{font-size:1.6rem}.dest-btn small{color:var(--ink-soft);font-weight:400}.dest-btn:disabled{opacity:.5;cursor:default}.dest-btn.selected{border-color:var(--accent)}.team-grid{grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px;display:grid}.team-dog>svg,.team-dog>:first-child{width:48px;height:48px}.team-dog>span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:.8rem;overflow:hidden}.team-dog.selected{outline:3px solid var(--accent);background:#fff3c4}.loot-list{flex-wrap:wrap;justify-content:center;gap:4px 14px;display:flex}.loot-list p{margin:4px 0}.postcard-grid{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.postcard{aspect-ratio:3/2;background:linear-gradient(160deg, hsl(var(--pc-hue) 70% 92%), hsl(calc(var(--pc-hue) + 40) 70% 84%));border:2px dashed hsl(var(--pc-hue) 40% 70%);text-align:center;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:4px;width:100%;max-width:220px;margin:0 auto;padding:6px;display:flex;position:relative}.loot-list+.postcard,.modal .postcard{max-width:200px;margin:8px auto;animation:.5s ease-out pop;transform:rotate(-3deg)}.postcard-art{font-size:1.8rem;line-height:1}.postcard-title{font-size:.7rem;font-weight:700}.postcard-stamp{opacity:.7;font-size:.75rem;position:absolute;top:3px;right:4px}.postcard.missing{color:var(--ink-soft);background:#eee7df;border-color:#d8d0c8}.arcade-head{gap:8px;display:grid}.arcade-head p{margin:0}.arcade-list{gap:12px;display:grid}.arcade-game{gap:10px;display:grid}.arcade-game.locked{opacity:.6}.arcade-game-head{align-items:center;gap:12px;display:flex}.arcade-game-head h3,.arcade-game-head p{margin:0}.arcade-icon{font-size:2rem;line-height:1}.arcade-tiers{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.arcade-tier{font:inherit;color:inherit;cursor:pointer;background:#fff9;border:2px solid #5a3c281f;border-radius:12px;justify-items:center;gap:2px;padding:8px 4px;display:grid}.arcade-tier:disabled{opacity:.5;cursor:default}.arcade-tier:not(:disabled):hover{border-color:var(--accent)}.arcade-tier-name{white-space:nowrap;font-size:.8rem;font-weight:700}.medal{min-height:1.5rem;font-size:1.5rem;line-height:1}.medal.empty{border:2px dashed #5a3c2840;border-radius:50%;place-items:center;width:1.5rem;font-size:.8rem;display:grid}.medal.m3{animation:.4s pop}.boss-week{margin:6px 0 10px}.cafe-hero{position:relative}.cafe-cat{font-size:2rem;position:absolute;bottom:0;right:-6px}.cafe-grid{grid-template-columns:repeat(5,1fr);gap:8px;margin-top:12px;display:grid}.cafe-tile{color:inherit;font:inherit;cursor:pointer;background:#fff8f0;border:2px solid #3b2f2a1f;border-radius:14px;flex-direction:column;align-items:center;gap:2px;padding:8px 2px;display:flex}.cafe-tile small{color:#c98a1b;min-height:1.1em;font-size:.7rem}.cafe-tile.done{background:#fdeede}.cafe-tile.current{border-color:#e98bb0;box-shadow:0 0 0 3px #e98bb040}.cafe-tile:disabled{opacity:.5;cursor:default}.badges-screen>p{margin:4px 0 10px}.badge-list{flex-direction:column;gap:8px;display:flex}.badge-card{background:var(--card);border-radius:14px;align-items:center;gap:10px;padding:10px 12px;display:flex;box-shadow:0 2px 6px #5a3c281a}.badge-card.tier-0 .badge-icon{filter:grayscale();opacity:.55}.badge-card.claimable{outline:2px solid #f1c46b}.badge-icon{text-align:center;flex-shrink:0;width:44px;font-size:1.9rem;position:relative}.badge-tier{font-size:1rem;position:absolute;bottom:-4px;right:-4px}.badge-info{flex:1;min-width:0}.badge-info .name{font-weight:700}.badge-info .desc{color:var(--ink-soft);font-size:.85rem}.badge-info .bar{background:#5a3c281f;border-radius:6px;height:8px;margin:5px 0 3px;overflow:hidden}.badge-info .bar>span{background:linear-gradient(90deg,#f1c46b,#e8805a);height:100%;transition:width .5s;display:block}.badge-foot{font-size:.75rem}.badge-showcase .badge-row{flex-wrap:wrap;gap:6px;margin-bottom:10px;display:flex}.badge-mini{text-align:center;width:36px;font-size:1.5rem;position:relative}.badge-mini small{font-size:.75rem;position:absolute;bottom:-4px;right:-4px}.badge-mini.dim{filter:grayscale();opacity:.4}.chip.locked{opacity:.7;white-space:nowrap;font-size:.75rem}.title-buttons .row{grid-template-columns:1fr 1fr;display:grid}.title-buttons .row.three{grid-template-columns:repeat(3,1fr)}.title-buttons .row:not(.three)>.btn:last-child:nth-child(odd){grid-column:1/-1}.title-buttons .row .btn{white-space:nowrap;padding-left:6px;padding-right:6px}
