:root{font-family:ui-rounded,Avenir Next,Avenir,Segoe UI,sans-serif;color:#354537;background:#f7f6ef;font-synthesis:none;font-weight:400;--ink: #354537;--muted: #747d70;--green: #496c4b;--paper: #fffefa}*{box-sizing:border-box}html{overscroll-behavior:none}body{margin:0}button,a,select{-webkit-tap-highlight-color:transparent}button,select{font:inherit;color:inherit}button,a,select,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #466d8a;outline-offset:4px}button{border:0}a{color:inherit}svg{display:block;width:22px;height:22px;flex-shrink:0}button svg{width:20px;height:20px}h1,h2,p{margin:0}h1,h2{text-wrap:balance}.app-shell{max-width:1060px;margin:auto;padding:0 36px}.site-header{height:104px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e4e6dc}.wordmark{display:flex;gap:10px;align-items:center;text-decoration:none;font-size:29px;font-weight:800;letter-spacing:-1.3px}.wordmark .dog-art{width:39px;height:39px;background:#e9e8d9}.wordmark-dot{color:#b17d57;margin-left:-10px}.site-header nav{display:flex;align-items:center;gap:22px}.quiet-button{background:none;font-size:13px;font-weight:600;padding:12px 6px}.home-link{display:flex;align-items:center;gap:6px;text-decoration:none}.home-link svg{width:16px;height:16px;transform:rotate(180deg)}.intro{text-align:center;position:relative;padding:49px 0 39px}.eyebrow{text-transform:uppercase;font-size:9px;letter-spacing:1.8px;font-weight:750;line-height:1.6;color:#738069}.intro .eyebrow{font-size:10px;letter-spacing:2.4px;display:inline-flex;align-items:center;gap:9px}.intro .eyebrow>span{width:6px;height:6px;background:#859a66;border-radius:100%}h1{font-family:Georgia,Times New Roman,serif;font-size:49px;font-weight:400;letter-spacing:-2.2px;margin:13px 0}h1 em{font-weight:400;color:#638354}.intro p{color:#68735f;font-size:14px;letter-spacing:.15px}.home-hero{min-height:calc(100svh - 120px);display:flex;flex-direction:column;align-items:center;justify-content:center}.mini-board{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;width:152px;margin-bottom:30px;padding:8px;border-radius:18px;background:#fff;box-shadow:0 14px 34px #2b3a2426;transform:rotate(-5deg);animation:bob 5s ease-in-out infinite}.mini-board>span{display:grid;place-items:center;aspect-ratio:1;border-radius:6px}.mini-board .dog-art{width:88%;background:none}.mini-board .dog-art img{width:100%;height:100%}.mini-board svg{width:60%;fill:none;stroke:#fff;stroke-width:12;stroke-linecap:round}@keyframes bob{50%{transform:rotate(-3deg) translateY(-6px)}}.landing-progress{margin-top:14px}.landing-how{max-width:560px;margin:0 auto 56px;text-align:center}.landing-how h2{margin-bottom:16px;font-family:Georgia,Times New Roman,serif;font-size:26px;font-weight:400;letter-spacing:-.6px}.landing-how .puzzle-rules ul{grid-template-columns:minmax(0,1fr);gap:10px;max-width:300px;margin-inline:auto}.landing-how .puzzle-rules li{gap:16px;padding:12px 16px;border-radius:14px;font-size:15px;text-align:left}.landing-how .rule-example{width:56px;height:56px;gap:3px}.landing-how .rule-example svg{stroke-width:2}.app-shell.playing .site-header{height:72px;border-bottom-color:transparent}.app-shell.playing{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.start-button{display:inline-flex;border:0;align-items:center;gap:12px;margin-top:32px;min-height:52px;padding:14px 36px;border-radius:14px;background:#365637;color:#fff;font-size:17px;font-weight:700;text-decoration:none}.start-button svg{width:20px;height:20px}.intro-leaf{position:absolute;color:#a4b493;top:90px}.intro-leaf svg{width:35px;height:35px}.intro-leaf.left{left:70px;transform:rotate(-32deg)}.intro-leaf.right{right:70px;transform:rotate(65deg)}.play-card{border:1px solid #dedfd3;border-radius:24px;background:var(--paper);box-shadow:0 8px 25px #3c493305}.play-card>:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.game-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:44px;padding:20px 28px}.board-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:8px}.board-heading .eyebrow{font-size:8px;letter-spacing:1.4px}.board-heading h2{font-family:Georgia,serif;font-size:26px;letter-spacing:-.7px;font-weight:400;margin-top:4px}.level-name{display:flex;align-items:center;gap:12px;font-size:13px}.level-name>:first-child{font:inherit;font-weight:700;letter-spacing:normal;margin:0}.home-hero .level-name{margin-top:24px}.home-hero .level-name+.start-button{margin-top:14px}.difficulty{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}.difficulty-dots{display:flex;gap:4px}.difficulty-dots span{width:8px;height:8px;border-radius:50%;background:#dde2d4}.difficulty-dots .filled{background:var(--green)}.bones{display:flex;gap:4px;align-items:center;flex-shrink:0}.bone{width:32px;height:auto;transform:rotate(-15deg)}.bone.spent{opacity:.55;filter:saturate(.5)}.board{display:grid;grid-template-columns:repeat(var(--size),minmax(0,1fr));width:100%;aspect-ratio:1;border:0;border-radius:0;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;background:#fff;isolation:isolate}.cell{min-width:0;min-height:0;position:relative;display:grid;place-items:center;padding:3px;border:1px solid #fff;border-radius:6px;aspect-ratio:1;touch-action:none;transition:filter .12s,opacity .2s}@media(hover:hover){.cell:hover{filter:brightness(1.025)}}.cell:focus-visible{z-index:2;outline:3px solid transparent;outline-offset:-3px;box-shadow:inset 0 0 0 3px #1d2b1f,inset 0 0 0 6px #fff}.dog-art{display:inline-grid;place-items:center;aspect-ratio:1;border-radius:50%;background:#fff9ed;flex-shrink:0}.dog-art img{display:block;width:86%;height:86%;object-fit:contain;pointer-events:none}.cell .dog-art{width:85%;height:auto;background:none}.cell .dog-art img{width:100%;height:100%;filter:drop-shadow(0 1px 2px #2a1f1059)}.cell .dog-art{position:relative}.landing{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.glow{position:absolute;top:-70%;right:-70%;bottom:-70%;left:-70%;border-radius:50%;background:radial-gradient(circle,#fffbe8 0%,#fff4c8b0 35%,transparent 68%);opacity:0}.sparkle{position:absolute;left:50%;top:50%;width:28%;aspect-ratio:1;clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);opacity:0}.cell .cross{position:absolute;top:20%;left:20%;width:60%;height:60%;color:#fff;fill:none;stroke:currentColor;stroke-width:14;stroke-linecap:round;pointer-events:none}.locked .cross{color:#a9393c}.fixed-dot{position:absolute;right:2px;bottom:2px;background:#3e6240;border:1px solid #fff9ed;width:6px;height:6px;border-radius:100%}.preview{animation:preview 1.6s ease-in-out infinite}@keyframes preview{50%{opacity:.4}}.game-controls{display:flex;align-items:center;gap:8px;margin-top:14px}.board-progress{display:flex;align-items:center;gap:8px;margin-right:auto;padding:5px 16px 5px 5px;border:1px solid #dde0d3;border-radius:999px;background:#fcfcf7;font-size:20px;font-weight:700;font-variant-numeric:tabular-nums;color:#68735f}.board-progress .dog-art{width:36px}.board-progress b{color:var(--green)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.game-controls button{position:relative;width:47px;height:47px;border:1px solid #dde0d3;border-radius:10px;display:grid;place-items:center;background:#fcfcf7}.game-controls button:after{content:attr(aria-label);position:absolute;bottom:calc(100% + 8px);left:50%;translate:-50%;padding:5px 9px;border-radius:7px;background:var(--ink);color:#fff;font-size:11px;font-weight:600;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .15s}.game-controls button:focus-visible:after{opacity:1}.game-controls .hint-button{background:#edf1e3;border-color:#dce4ce;color:#4b6940}.companion-panel{padding-top:21px;display:flex;flex-direction:column;align-items:center;text-align:center}.companion-illustration{position:relative;width:138px;height:114px;display:grid;place-items:center;margin-bottom:20px}.companion-illustration:before{content:"";position:absolute;width:120px;height:94px;border-radius:50% 45% 40%;background:#f1efdf;transform:rotate(-10deg)}.companion-illustration>.dog-art{width:85px;height:85px;background:transparent;position:relative;transform:rotate(-7deg)}.sunburst{position:absolute;right:1px;top:0;color:#c4ab6b;font-size:28px}.sprout{position:absolute;left:-5px;bottom:9px;transform:rotate(-25deg);color:#91a276}.sprout svg{width:30px;height:30px}.companion-panel .eyebrow{font-size:8px;letter-spacing:1.45px}.companion-panel h2{font-family:Georgia,serif;font-size:30px;font-weight:400;line-height:1.15;letter-spacing:-.8px;margin:12px 0}.companion-panel>p{font-size:12px;line-height:1.8;color:#68735f;max-width:225px}.interaction-guide{width:100%;border-top:1px solid #e8e9df;margin-top:24px;padding-top:22px;display:grid;gap:18px;text-align:left}.interaction-guide>div{display:flex;gap:13px;align-items:center}.interaction-guide strong{font-size:11px;font-weight:650;display:block}.interaction-guide small{display:block;font-size:10px;color:#68735f;margin-top:5px}.mini-cell,.mini-drag{width:32px;height:32px;border-radius:7px;background:#f0f1e8;display:grid;place-items:center;color:#8c9b7e;flex-shrink:0}.mini-cell svg,.mini-drag svg{width:55%;height:55%;fill:none;stroke:currentColor;stroke-width:12;stroke-linecap:round}.mini-cell .dog-art{width:26px;height:26px}.mini-drag{display:flex;justify-content:center;align-items:center}.mini-drag svg{width:40%;height:40%}.companion-panel>.keyboard-help{font-size:9px;margin-top:20px;line-height:1.7;color:#92988b}.message-box{display:flex;align-items:center;justify-content:center;gap:9px;padding:18px 28px;background:#f6f7ef;border-top:1px solid #e6e9da;font-size:12px;color:#68735f;min-height:59px;flex-wrap:wrap;line-height:1.65}.message-box svg{width:17px;height:17px}.message-box strong{color:#4f6545}.message-box strong+span{flex-basis:100%;text-align:center}.message-box small{flex-basis:100%;text-align:center}.message-box button{background:#e7eddc;border-radius:7px;padding:9px 14px;font-size:12px;display:flex;gap:6px;align-items:center;min-height:40px}.error-message{background:#fbf0ec;color:#9b5d53}.notice{position:relative;margin-top:12px;padding:12px 16px;min-height:0;border:1px solid #e6e9da;border-radius:14px;font-size:13px;line-height:1.5}.notice.popover{position:absolute;top:calc(100% + 12px);left:0;right:0;z-index:4;margin:0;padding:14px 40px;box-shadow:0 12px 32px #2b3a2433;animation:pop-in .25s ease-out both}.popover:before{content:"";position:absolute;top:-7px;left:calc(50% - 6px);width:12px;height:12px;background:inherit;border:inherit;border-right:0;border-bottom:0;transform:rotate(45deg)}@keyframes pop-in{0%{opacity:0;transform:translateY(-6px)}}.message-box .notice-close,.game-over .notice-close{position:absolute;top:6px;right:6px;min-height:0;padding:4px 9px;background:none;font-size:18px;line-height:1;color:inherit}.board-stage.focused .cell:not(.hint-affected):not(.hint-support):not(.conflict){opacity:.4}.notice.error-message{border-color:#efc6bb}.hint-message{background:#eef3e6;border-color:#d3dec2;color:#56694c}.hint-message strong{color:#365637}.notice button:not(.notice-close){background:#365637;color:#fff;padding-inline:22px}.error-message strong{color:#964c43}.board-stage{position:relative}.board-stage.won .cell:not([data-state*=dog]){opacity:.55;transition:opacity .35s 1.6s}.celebration,.game-over{position:absolute;top:50%;left:50%;z-index:3;width:min(92%,440px);transform:translate(-50%,-50%);display:grid;gap:16px;padding:24px;border:1px solid #cad8b4;border-radius:20px;background:radial-gradient(circle at top right,#fff1c5,transparent 70%),#eaf1df;color:#354c32;box-shadow:0 12px 40px #2b3a2440;text-align:center;animation:celebrate .35s cubic-bezier(.2,.9,.3,1.3) 1.6s both}@keyframes celebrate{0%{opacity:0;transform:translate(-50%,-50%) scale(.92)}}.game-over{padding-top:28px;border-color:#efc6bb;background:radial-gradient(circle at top right,#ffe9d6,transparent 70%),#fbf0ec;color:#9b5d53;animation:celebrate .25s ease-out both}.game-over h2{color:#964c43}.game-over h2 em{font-weight:400}.celebration-copy h2 em{font-weight:400;color:#638354}.celebration-copy h2,.game-over h2{margin:0;font:700 clamp(22px,3vw,30px)/1.15 Georgia,serif;letter-spacing:-.6px}.celebration-copy p,.game-over p{margin:8px 0 0;font-size:13px;line-height:1.5}.celebration-copy .best{margin-top:4px;font-weight:700}.next-puzzle-button,.try-again-button{justify-self:center;display:flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:12px 20px;border-radius:12px;background:#365637;color:#fff;font-size:16px;font-weight:700}.next-puzzle-button:disabled{opacity:1}.next-puzzle-button svg,.try-again-button svg{width:20px;height:20px}@media(max-width:400px){.celebration{padding:18px 14px;gap:14px}}.storage-warning{padding:12px 24px;color:#995042;font-size:12px}.puzzle-rules{margin-bottom:16px;scroll-margin-top:16px}.puzzle-rules ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;list-style:none;padding:0;margin:0}.puzzle-rules li{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:9px;background:#f2f4e9;color:#41563d;font-size:11px;font-weight:600;line-height:1.3}.rule-example{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,minmax(0,1fr));gap:2px;width:36px;height:36px;flex-shrink:0}.rule-example>span{display:grid;place-items:center;border-radius:3px;background:#e5e7de;min-width:0;min-height:0}.rule-example>.rule-colour{background:#8da887}.rule-example .dog-art{width:100%;height:100%;background:none}.rule-example .dog-art img{width:100%;height:100%}.rule-example svg{width:100%;height:100%;fill:none;stroke:#fff;stroke-width:2.5;stroke-linecap:round}footer{font-size:10px;color:#68735f;display:flex;justify-content:space-between;align-items:flex-start;padding:24px 0 30px;gap:20px}footer>span{display:flex;align-items:center;gap:7px;white-space:nowrap}footer svg{width:14px;height:14px}footer summary{cursor:pointer;min-height:28px}footer p{line-height:1.7}dialog{border:1px solid #d8decc;border-radius:20px;padding:0;max-width:520px;width:calc(100% - 32px);background:var(--paper);color:var(--ink);box-shadow:0 25px 100px #27372230}dialog::backdrop{background:#29372666;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.modal-body{padding:30px;position:relative}.modal-body h2{font-family:Georgia,serif;font-size:28px;font-weight:400;margin-right:24px}.modal-body>p{font-size:13px;line-height:1.7;color:#7c8574;margin-top:14px}.modal-close{position:absolute;right:12px;top:10px;width:40px;height:40px;background:none;font-size:26px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.modal-actions button{padding:12px 16px;border-radius:9px;background:#edf0e5;font-size:13px}.modal-actions .primary-button{background:#496c4b;color:#fff}.history-list{position:relative;display:grid;gap:5px;margin-top:18px;max-height:55vh;overflow-y:auto;overscroll-behavior:contain;font-variant-numeric:tabular-nums}.history-list>button{display:flex;text-align:left;justify-content:space-between;align-items:center;padding:10px 11px;gap:10px;background:#f2f4e9;border-radius:9px;min-height:52px;content-visibility:auto;contain-intrinsic-size:auto 52px}.history-list>button>span:first-child{display:flex;align-items:center;gap:10px}.history-list .difficulty-dots span{width:6px;height:6px}.sharing{display:flex;gap:10px;align-items:flex-start;margin-top:16px;font-size:12px;font-weight:600;cursor:pointer}.sharing input{margin:2px 0 0;accent-color:var(--green)}.sharing small{display:block;margin-top:3px;font-size:10px;font-weight:400;color:var(--muted)}.pair-button{display:block;margin-top:6px;padding:12px 0;background:none;color:var(--ink);font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px}.pairing{display:grid;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid #dedfd3}.pairing h3{margin:0;font-size:14px}.pairing p{margin:0;font-size:12px;line-height:1.6;color:#68735f}.pairing button,.device-list button{justify-self:start;min-height:44px;padding:12px 16px;border-radius:12px;background:#f2f4e9;font-size:13px;font-weight:700}.pairing-choices,.pairing-actions{display:flex;flex-wrap:wrap;gap:10px}.pairing .pairing-back{background:none;padding-inline:4px;text-decoration:underline;text-underline-offset:3px}.pairing .primary-button{background:#365637;color:#fff}.pairing .pairing-code{font-size:30px;font-weight:700;letter-spacing:3px;padding-left:3px;text-align:center;color:var(--ink);font-variant-numeric:tabular-nums}.pairing .pairing-link{color:var(--ink);overflow-wrap:anywhere;-webkit-user-select:all;user-select:all}.pairing label{display:grid;gap:6px;font-size:12px;font-weight:600}.pairing input{min-height:44px;padding:10px 12px;border:1px solid #dedfd3;border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:18px;letter-spacing:2px;text-transform:uppercase}.pairing input::placeholder{color:#9aa290;letter-spacing:2px}.pairing input:focus-visible{outline:3px solid #466d8a;outline-offset:2px}.pairing-message{margin:14px 0 0;font-size:12px;font-weight:600}.device-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}.device-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:12px;background:#f2f4e9}.device-list strong{display:block;font-size:13px}.device-list small{display:block;margin-top:3px;font-size:11px;color:#68735f}.device-list button{background:#fff}.history-list>button.locked{opacity:.5}.history-list strong{font-size:12px;display:block}.history-list small{display:block;font-size:10px;margin-top:5px;color:#7d8773}.history-list>button>span:last-child{font-size:10px;display:flex;align-items:center;gap:8px}.history-list svg{width:15px}@media(min-width:900px){.cell .dog-art{max-width:51px}.board-column>*{max-width:min(490px,calc(100dvh - 330px));margin-inline:auto}}@media(max-width:760px){.app-shell{padding:0 20px;max-width:540px}.site-header{height:78px}.app-shell.playing{padding:0 12px}.app-shell.playing .site-header{height:52px;padding-inline:4px}.app-shell.playing .wordmark{font-size:22px}.app-shell.playing .wordmark .dog-art{width:28px;height:28px}.board-column{max-width:max(280px,calc(100dvh - 322px));margin-inline:auto}.puzzle-rules li{gap:6px;padding:6px;font-size:10px}.rule-example{width:28px;height:28px}.wordmark{font-size:26px}.wordmark .dog-art{width:34px;height:34px}.site-header nav{gap:14px}.intro{padding:32px 0 27px}.intro .eyebrow{font-size:8px;letter-spacing:1.7px}h1{font-size:37px;letter-spacing:-1.6px;margin:12px 0}.intro p{font-size:12px}.intro-leaf{display:none}.play-card{border-radius:18px}.game-layout{display:block;padding:12px}.board-heading h2{font-size:25px}.board-heading .eyebrow{font-size:7px;letter-spacing:1px}.bone{width:24px}.bones{gap:3px}.cell{padding:2px}.game-controls{margin-top:10px}.game-controls button{width:44px;height:44px}.companion-panel{padding:0}.companion-panel>.companion-illustration,.companion-panel>.eyebrow,.companion-panel>h2,.companion-panel>p:not(.keyboard-help){display:none}.interaction-guide{display:grid;grid-template-columns:repeat(3,auto);justify-content:center;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid #ecede4}.interaction-guide>div{gap:6px;align-items:center;justify-content:center}.interaction-guide strong{font-size:9px;font-weight:550}.interaction-guide small{display:none}.mini-cell,.mini-drag{width:23px;height:23px}.mini-cell .dog-art{width:22px;height:22px}.companion-panel>.keyboard-help{display:none}.message-box{padding:14px 16px;font-size:10px;min-height:52px}.play-card>.message-box{display:none}footer{font-size:9px;gap:10px;padding-top:20px}.modal-body{padding:25px 20px}}@media(max-width:360px){.app-shell{padding:0 12px}h1{font-size:32px}.game-layout{padding:18px 10px 14px}.bone{width:25px}.wordmark{font-size:24px}.quiet-button{font-size:11px}}@media(hover:hover){.quiet-button:hover,.modal-close:hover,.message-box .notice-close:hover,.game-over .notice-close:hover{color:var(--green)}.game-controls button:hover:after{opacity:1}.game-controls button:not(:disabled):hover,.modal-actions button:hover{background:#e6eadb}.game-controls .hint-button:not(:disabled):hover{background:#e2e9d3}.start-button:hover,.notice button:not(.notice-close):hover,.next-puzzle-button:hover,.try-again-button:hover{background:#29432a}.modal-actions .primary-button:hover{background:#365637}.history-list>button:not(:disabled):hover{background:#e8ecdc}}:active-view-transition-type(next-level) main{view-transition-name:level}:active-view-transition-type(next-level)::view-transition-old(level){animation:.3s ease-in both slide-out-left}:active-view-transition-type(next-level)::view-transition-new(level){animation:.3s ease-out both slide-in-right}@keyframes slide-out-left{to{opacity:0;transform:translate(-40px)}}@keyframes slide-in-right{0%{opacity:0;transform:translate(40px)}}@media(prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}.board[data-dense=true] .cell{padding:1px}.board[data-dense=true] .dog-art{width:90%}
