@charset "UTF-8";
:root{color-scheme:light;--ink:#453c35;--muted:#8a8177;--paper:#fffdf9;--background:#f8f4eb;--accent:#bd6a4d;--accent-dark:#9c513a;--line:#e9e2d5;--soft-green:#70866c;font-family:"PingFang TC","Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:radial-gradient(ellipse at 5% 28%,#f2e4d85c,transparent 45%),var(--background);-webkit-tap-highlight-color:transparent}button,input,a{touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.4}button,a,input{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #9e6c47}svg{fill:currentColor}img{display:block;max-width:100%}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.page-shell{max-width:1112px;margin:auto;padding:0 48px}.site-header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-weight:750;font-size:18px;letter-spacing:.04em}.brand small{display:block;font-size:9px;letter-spacing:.29em;margin-top:3px;color:#988a7e;font-weight:650}.brand-mark{width:40px;height:42px;background:#e8d8c7;border-radius:13px 13px 17px 17px;display:grid;place-items:center;color:#815d45;transform:rotate(-7deg)}.brand-mark svg{width:24px;height:24px}.quiet-button{display:flex;gap:8px;align-items:center;background:none;border:none;font-size:13px;font-weight:650;padding:12px 0 12px 12px}.help-icon{width:19px;height:19px;border:1.5px solid #8f8274;border-radius:50%;display:grid;place-items:center;font-size:12px}.intro{padding:38px 0 28px}.eyebrow{font-size:11px;color:#978574;letter-spacing:.13em;display:flex;align-items:center;gap:8px;margin:0 0 13px}.eyebrow>span{width:5px;height:5px;background:#b98c62;border-radius:50%}h1{font-size:36px;line-height:1.35;letter-spacing:.025em;font-weight:700;margin:0 0 12px}h1 span{color:var(--accent)}.subtitle{font-size:14px;color:#8a7f72;letter-spacing:.02em;margin:0}.game-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.9fr);gap:28px;align-items:start}.play-card{padding:25px 27px 19px;background:var(--paper);border:1px solid var(--line);border-radius:24px;box-shadow:0 12px 32px #65442706}.level-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.level-label{display:flex;align-items:center;gap:12px}.level-number{font-size:24px;font-weight:500;color:#b99978;line-height:1;background:#f5eee1;border-radius:12px;width:48px;height:48px;display:grid;place-items:center;font-family:Georgia,serif}.level-label h2{margin:0 0 5px;font-size:16px;font-weight:700;letter-spacing:.03em}.level-label>div>span{font-size:11px;color:#a09485}.timer-box{display:flex;gap:7px;align-items:center;font-variant-numeric:tabular-nums;font-size:13px;color:#918777}.timer-dot{width:5px;height:5px;border-radius:50%;background:#afa18d}.board-wrapper{position:relative;margin:auto;max-width:488px}.board{width:100%;aspect-ratio:1;display:grid;grid-template-columns:repeat(var(--board-size,5),1fr);grid-template-rows:repeat(var(--board-size,5),1fr);overflow:hidden;border:3px solid #68574b;border-radius:15px;background:#68574b;isolation:isolate;user-select:none;-webkit-user-select:none}.cell{position:relative;display:grid;place-items:center;padding:0;border:0;border-radius:0;background:var(--region);min-width:0;min-height:0;overflow:hidden;box-shadow:inset 1px 1px 0 #5e493520;transition:filter .15s}.cell:before{content:"";position:absolute;inset:0;background:url("assets/dig-trace.svg") center/64% no-repeat;opacity:.24;pointer-events:none;z-index:0}.cell.region-left{border-left:2.5px solid #68574b}.cell.region-top{border-top:2.5px solid #68574b}.cell:hover{filter:brightness(1.025)}.cell:focus-visible{outline:3px solid #473c31;outline-offset:-6px;z-index:2}.cell .dog-token{width:90%;height:90%;object-fit:contain;position:absolute;inset:5%;pointer-events:none;z-index:1;filter:drop-shadow(0 1px 0 #ffffff9c)}.cell.just-placed .dog-token{animation:pop .3s cubic-bezier(.18,.89,.35,1.4)}.cell .bone-token{width:36%;height:36%;color:#665442;opacity:.66;pointer-events:none;position:relative;z-index:1;transform:rotate(-8deg)}.cell .bone-token.automatic{width:29%;height:29%;opacity:.19}.cell.highlight:after{content:"";position:absolute;inset:5px;border:3px dashed #8e583d;border-radius:8px;pointer-events:none;animation:hintPulse 1.5s ease-in-out infinite}.cell.conflict:after{content:"";position:absolute;inset:3px;border:3px solid #c5504e;border-radius:7px;pointer-events:none;background:#c5504e14}.cell.won .dog-token{animation:happy .7s ease-in-out}.board-caption{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;color:#9f917f;padding:12px 0 18px}.tiny-paw{height:14px;width:14px;color:#a78b71;transform:rotate(-12deg)}.tiny-bone{height:15px;width:15px;color:#a78b71;transform:rotate(-12deg)}.mode-switch{display:grid;grid-template-columns:1fr 1fr;background:#f1ece3;padding:4px;border-radius:13px;gap:4px}.mode-button{height:47px;border:none;border-radius:10px;background:transparent;display:flex;align-items:center;justify-content:center;gap:9px;font-size:13px;color:#928576;font-weight:650;transition:background .15s,color .15s,box-shadow .15s}.mode-button img{width:31px;height:31px;object-fit:contain}.mode-button svg{width:22px;height:22px}.mode-button.active{background:#fffdfa;box-shadow:0 2px 6px #79604a0c;color:#8d553e}.mode-description{font-size:11px;text-align:center;color:#9c9080;min-height:17px;margin:9px 0 16px}.toolbar{display:grid;grid-template-columns:1fr 1fr;gap:9px}.toolbar button{height:44px;border:1px solid #e8dfd2;border-radius:11px;background:#fffdfa;font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:7px}.toolbar button svg{width:17px;height:17px}.toolbar .hint-button{background:#f5e9ce;border-color:#f0dfbb;color:#92703d}.toolbar button:hover:not(:disabled){border-color:#b89d7e}.auto-option{display:flex;align-items:center;position:relative;justify-content:space-between;gap:10px;margin-top:21px;padding-top:18px;border-top:1px dashed #e7ded1;cursor:pointer}.auto-title{display:block;font-size:12px;font-weight:650}.auto-detail{display:block;font-size:10px;color:#a29583;margin-top:4px}.auto-option input{position:absolute;right:0;width:38px;height:24px;opacity:0;cursor:pointer;margin:0}.switch-track{display:block;flex:0 0 36px;height:21px;border-radius:20px;background:#cfc6b8;pointer-events:none;transition:background .2s}.switch-track:after{content:"";display:block;width:15px;height:15px;margin:3px;background:white;border-radius:50%;box-shadow:0 1px 3px #0001;transition:transform .2s}.auto-option input:checked+.switch-track{background:#829578}.auto-option input:checked+.switch-track:after{transform:translateX(15px)}.auto-option input:focus-visible+.switch-track{outline:3px solid #9e6c47;outline-offset:3px}.status{font-size:11px;line-height:1.65;text-align:center;color:#8e806c;margin-top:16px;min-height:18px}.status.error{color:#b35446}.status.success{color:#66835d}.companion-column{display:flex;flex-direction:column;gap:18px}.companion-card{background:#f0e7d8;border:1px solid #e9ddc9;border-radius:24px;padding:24px 25px 22px;overflow:hidden;text-align:center}.speech-bubble{display:inline-block;position:relative;background:#fffaf0;color:#8a7154;font-size:12px;padding:10px 16px;border-radius:10px;box-shadow:0 2px 0 #e7d9c5;z-index:1}.speech-bubble:after{content:"";position:absolute;bottom:-7px;left:45%;border-top:8px solid #fffaf0;border-left:5px solid transparent;border-right:5px solid transparent}.mascot-stage{height:204px;position:relative;display:grid;place-items:center;margin-top:9px}.mascot{width:190px;height:190px;object-fit:contain;z-index:1;transform:rotate(-4deg);filter:drop-shadow(0 5px 3px #815b3810)}.mascot-halo{position:absolute;width:164px;height:164px;border-radius:50%;background:#e7d8bf88}.floating-paw{position:absolute;width:24px;height:24px;color:#ceb999;opacity:.65}.paw-one{left:3%;top:23%;transform:rotate(-23deg)}.paw-two{right:2%;bottom:23%;transform:rotate(20deg);width:20px}.progress-title{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#88745d;margin-top:6px}.progress-title strong{font-size:23px;font-weight:550;color:#8c674a;font-variant-numeric:tabular-nums}.progress-total{font-size:13px;color:#a58d72;font-weight:400}.progress-paws{display:flex;justify-content:space-between;gap:10px;margin:14px 0 17px}.progress-paw{height:31px;width:31px;color:#ddcdb5;transition:color .2s,transform .2s}.progress-paw.found{color:#a97951;transform:rotate(-6deg)}.companion-note{font-size:10px;color:#9a846a;line-height:1.9;margin:0}.companion-note span{color:#b09b83}.rules-card{padding:6px 8px}.rules-card h3{font-size:12px;letter-spacing:.05em;margin:7px 0 18px;color:#8e7c65}.mini-rules{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:16px}.mini-rules li{display:flex;gap:11px;align-items:flex-start}.rule-number{width:22px;height:22px;flex:0 0 22px;background:#eee7d9;border-radius:7px;display:grid;place-items:center;font-family:Georgia,serif;font-size:12px;color:#9a7d59}.mini-rules strong{font-size:12px;font-weight:650}.mini-rules p{font-size:10px;color:#a09280;line-height:1.65;margin:5px 0 0}.hint-card{background:#fcf2d9;border:1px solid #e9d8ab;border-radius:16px;padding:18px 20px}.hint-heading{display:flex;gap:8px;align-items:center}.hint-heading svg{width:19px;height:19px;color:#99763c}.hint-heading h3{font-size:13px;margin:0}.hint-card p{font-size:12px;line-height:1.9;color:#8b7049;margin:10px 0}.text-button{border:0;background:none;padding:8px 3px;color:#96764f;font-size:12px;font-weight:600}.hint-card .text-button{padding-bottom:0}footer{display:flex;justify-content:space-between;gap:12px;font-size:10px;letter-spacing:.025em;color:#a99a87;padding:35px 0 27px}.footer-meta{color:#b6aa99}.dialog{padding:30px;border:1px solid #e8dfd0;border-radius:22px;background:#fffdf8;color:var(--ink);width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;box-shadow:0 30px 100px #3b2a2630}.dialog::backdrop{background:#3e30265c;backdrop-filter:blur(5px)}.dialog h2{font-size:26px;letter-spacing:.02em;margin:10px 0 16px}.dialog h3{font-size:14px;margin-top:23px}.dialog p{font-size:13px;line-height:1.9;color:#8c7c68}.dialog-close{float:right;background:none;border:0;color:#ad9a83;padding:0;font-size:11px}.dialog-kicker{font-size:9px;letter-spacing:.2em;color:#ad8b69}.full-rules{font-size:13px;line-height:2.2;padding-left:20px}.rule-note{background:#f5ede0;color:#9b7b53;font-size:11px;line-height:1.8;padding:11px 14px;border-radius:10px}.primary-button,.secondary-button{min-height:46px;border-radius:12px;border:0;padding:12px 20px;font-weight:650;font-size:13px}.primary-button{background:var(--accent);color:#fffdf9;box-shadow:0 3px 0 #a8573c24}.primary-button:hover{background:var(--accent-dark)}.secondary-button{background:#f1ebdf;color:#8d7a60}.rules-dialog>.primary-button{width:100%;margin-top:12px}.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:24px}.win-dialog{padding:0;position:fixed;width:min(450px,calc(100vw - 28px));background:#fffcf5;overflow-x:hidden}.win-top{text-align:center;padding:28px 20px 16px;position:relative}.win-badge{font-size:10px;letter-spacing:.13em;display:inline-flex;align-items:center;gap:6px;color:#9a7952}.win-badge svg{width:16px;height:16px}.win-top h2{font-size:26px;margin:10px 0 6px}.win-top p{font-size:11px;margin:0}.victory-photo{margin:0 20px;position:relative;background:white;padding:8px 8px 0;border-radius:3px;box-shadow:0 3px 16px #6d4b2912;transform:rotate(-1.5deg)}.victory-photo img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;border-radius:1px}.victory-photo figcaption{font-size:11px;letter-spacing:.06em;color:#9b8264;text-align:center;padding:13px 0}.win-stats{display:grid;grid-template-columns:repeat(3,1fr);padding:23px 20px 17px;text-align:center}.win-stats>span+span{border-left:1px solid #eee3d1}.win-stats small{display:block;font-size:10px;color:#a5937b;margin-bottom:7px}.win-stats strong{font-size:18px;font-weight:550;color:#8d6b48;font-variant-numeric:tabular-nums}.win-actions{padding:0 25px 20px;display:flex;flex-direction:column;gap:8px}.win-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}.win-confetti i{position:absolute;top:22px;left:9%;width:6px;height:12px;background:#d2bc93;border-radius:2px;transform:rotate(-24deg)}.win-confetti i:nth-child(2){left:87%;top:40px;background:#d5a48c;transform:rotate(27deg)}.win-confetti i:nth-child(3){left:18%;top:85px;width:5px;height:5px;border-radius:50%;background:#b3c2a3}.win-confetti i:nth-child(4){left:75%;top:17px;background:#b3c2a3;transform:rotate(58deg)}.win-confetti i:nth-child(5){left:91%;top:103px;width:5px;height:5px;border-radius:50%;background:#c6b6cf}.win-confetti i:nth-child(6){left:34%;top:12px;width:4px;height:4px;border-radius:50%;background:#d2bc93}.toast{position:fixed;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%,20px);padding:12px 20px;border-radius:13px;background:#514336ed;color:#fff8ed;font-size:12px;line-height:1.7;box-shadow:0 8px 24px #0002;opacity:0;transition:.2s;pointer-events:none;z-index:10;width:max-content;max-width:calc(100vw - 40px);text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}[hidden]{display:none!important}@keyframes pop{from{transform:scale(.45)}to{transform:scale(1)}}@keyframes hintPulse{50%{opacity:.45}}@keyframes happy{0%,100%{transform:translateY(0)}35%{transform:translateY(-7%) rotate(-4deg)}70%{transform:rotate(3deg)}}
@media(min-width:1250px){.page-shell{max-width:1160px;padding:0 55px}.intro{padding-top:46px}.game-layout{grid-template-columns:minmax(0,1.5fr) minmax(280px,.9fr);gap:34px}.play-card{padding:27px 31px 20px}.mascot-stage{height:222px}.mascot{width:210px;height:210px}.companion-card{padding:28px}.companion-column{gap:21px}}
@media(max-width:760px){.page-shell{max-width:540px;padding:0 19px}.site-header{height:77px}.brand{font-size:16px;gap:10px}.brand-mark{width:34px;height:37px}.brand-mark svg{width:21px}.brand small{font-size:8px}.quiet-button{font-size:11px}.intro{padding:25px 0 21px}.eyebrow{font-size:9px;margin-bottom:11px}h1{font-size:29px;margin-bottom:9px}.subtitle{font-size:12px}.game-layout{display:flex;flex-direction:column;gap:18px}.play-card{padding:19px 17px 15px;border-radius:20px;width:100%}.level-bar{margin-bottom:18px}.level-number{height:39px;width:39px;font-size:21px;border-radius:10px}.level-label{gap:10px}.level-label h2{font-size:14px;margin-bottom:4px}.level-label>div>span{font-size:10px}.timer-box{font-size:12px}.board{border-width:2.5px;border-radius:12px}.cell.region-top{border-top-width:2px}.cell.region-left{border-left-width:2px}.board-caption{font-size:10px;padding:10px 0 14px}.mode-button{height:43px;font-size:12px}.mode-button img{width:29px;height:29px}.mode-description{font-size:10px;margin:8px 0 14px}.toolbar button{height:43px;font-size:11px}.toolbar{gap:7px}.auto-option{margin-top:18px;padding-top:15px}.status{font-size:10px;margin-top:13px}.companion-column{width:100%;gap:16px}.companion-card{display:grid;grid-template-columns:100px 1fr;grid-template-rows:30px auto auto;column-gap:20px;padding:18px 21px 16px;border-radius:18px;text-align:left}.speech-bubble{display:none}.mascot-stage{grid-column:1;grid-row:1/4;width:100px;height:107px;margin:0}.mascot{width:105px;height:105px;max-width:none}.mascot-halo{width:88px;height:88px}.floating-paw{display:none}.progress-title{grid-column:2;margin:0;font-size:11px;align-self:start}.progress-title strong{font-size:22px}.progress-paws{grid-column:2;margin:10px 0 8px;gap:5px}.progress-paw{width:23px;height:23px}.companion-note{grid-column:2;font-size:9px;line-height:1.75}.companion-note br,.companion-note span{display:none}.rules-card{padding:4px 3px}.rules-card h3{font-size:11px;margin-bottom:15px}.mini-rules{gap:13px}.mini-rules strong{font-size:11px}.mini-rules p{font-size:10px;margin-top:3px}.hint-card{order:-1}.hint-card p{font-size:12px}.hint-card{padding:16px 18px}footer{display:flex;flex-direction:column;align-items:center;padding:24px 0;gap:8px;font-size:9px}.dialog{padding:25px}.dialog h2{font-size:24px}.win-dialog{padding:0}.win-top{padding-top:24px}.win-top h2{font-size:24px}.win-top p{font-size:10px}.win-stats{padding-top:21px}.win-actions{padding-bottom:17px}}
@media(max-width:350px){.page-shell{padding:0 12px}.play-card{padding:16px 12px 13px}h1{font-size:26px}.subtitle{font-size:11px}.companion-card{grid-template-columns:82px 1fr;column-gap:15px;padding:17px}.mascot-stage{width:82px}.mascot{width:92px;height:92px}}
.play-card>.hint-card{margin-bottom:16px}
@media(min-width:761px){.site-header{height:80px}.intro{padding-top:28px;padding-bottom:24px}.board-wrapper{max-width:420px}.level-bar{margin-bottom:20px}.play-card{padding-top:22px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.level-picker{display:flex;justify-content:center;gap:7px;margin:-7px 0 16px;overflow-x:auto;padding:5px}.level-picker a{flex:1;min-width:42px;text-align:center;padding:8px 5px;border:1px solid #e9e2d5;border-radius:10px;background:#fffdf9;color:#766451;text-decoration:none;font-size:11px;font-weight:650}.level-picker a:hover,.level-picker a:focus{border-color:#bd6a4d;color:#9c513a}.bone-token{width:54%;height:54%;color:#171512;opacity:.92}.bone-token.automatic{opacity:.16;color:#4a4239}.cell.wrong-paw{background:#ffddd8!important}.cell.wrong-paw .bone-token{color:#c62828;opacity:1;width:64%;height:64%;filter:drop-shadow(0 1px 1px #fff)}.dog-wrong-wrap{position:absolute;inset:3%;border:3px solid #d32f2f;border-radius:50%;display:grid;place-items:center;background:#fff4}.dog-wrong-wrap .dog-token{inset:5%;width:90%;height:90%}.error-counter{margin:0;text-align:center;font-size:11px;color:#ab493e}.error-counter strong{font-size:16px;font-variant-numeric:tabular-nums}.cell{touch-action:none}

.level-picker a.selected{background:#f3e6d2;border-color:#bd6a4d;color:#9c513a}

.selection-modes{display:grid;gap:7px;margin:0 0 16px}.selection-modes-label{font-size:11px;font-weight:650;color:#978674;text-align:center}.selection-mode-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.selection-mode{height:43px;border:1px solid #e8dfd2;border-radius:11px;background:#fffdfa;color:#776956;font-size:12px;font-weight:650;display:flex;align-items:center;justify-content:center;gap:7px;transition:background .15s,border-color .15s,color .15s,box-shadow .15s}.selection-mode img{width:29px;height:29px;object-fit:contain}.selection-mode svg{width:23px;height:23px;color:#2a2621}.selection-mode:hover{border-color:#bd9d7c}.selection-mode.active{background:#f4e7d4;border-color:#b96d51;color:#8d4935;box-shadow:inset 0 0 0 1px #b96d5130}.selection-mode:focus-visible{outline:3px solid #9e6c47;outline-offset:2px}.selection-modes-help{font-size:10px;color:#9c9080;text-align:center;line-height:1.5}

@media(max-width:760px){.selection-modes{gap:6px;margin-bottom:14px}.selection-mode{height:42px;font-size:11px}.selection-mode img{width:27px;height:27px}.selection-modes-help{font-size:9px}}

.wrong-answer{position:absolute;inset:2px;border:3px solid #d12f2f;border-radius:10px;display:grid;place-items:center;background:#fff5;z-index:1}.wrong-answer .dog-token{width:84%;height:84%;inset:8%}.wrong-answer .bone-token{color:#c62828;opacity:1;width:70%;height:70%}.cell.locked-wrong{background:#fff1ed!important}.cell:disabled{cursor:default;opacity:1}.cell .dog-token{animation:none!important;transition:none!important}.cell .bone-token{transition:none!important}.cell.automatic .bone-token{opacity:.15}

.bone-token{width:72%!important;height:72%!important;color:#090807!important;opacity:1!important}.cell.automatic .bone-token{width:68%!important;height:68%!important;color:#11100e!important;opacity:.78!important}.wrong-answer .bone-token{color:#b52222!important;opacity:1!important}

/* Identical ground and hole marks keep the board decorative rather than a clue. */
.cell{background:linear-gradient(145deg,#ffffff30,transparent 52%),linear-gradient(0deg,#80552a0a,#ffffff08),var(--region)}
.cell:before{content:"";position:absolute;inset:0;background:url("assets/dig-trace.svg") center/78% no-repeat;opacity:.35;pointer-events:none;z-index:0}
.dig-result{position:absolute;inset:0;z-index:1;pointer-events:none}
.dig-result .dog-token{left:5%;top:-1%;width:90%;height:90%;inset:auto;z-index:1}
.dig-result.found-dog:after{content:"";position:absolute;left:17%;right:17%;bottom:18%;height:8%;border-radius:50%;border-top:2px solid #d0a16c;border-bottom:2px solid #94633d;background:#9b684128;z-index:2}
.dig-result.found-dog .dog-token{animation:dog-pop 180ms cubic-bezier(.2,.8,.3,1) both!important;will-change:transform,opacity}
.dig-result .bone-token{position:absolute;left:23%;top:25%;width:54%!important;height:54%!important;color:#f0d6a5!important;opacity:1!important;z-index:1;filter:drop-shadow(0 1px 1px #21170f)}
.cell.automatic .dig-result .bone-token{opacity:.78!important}
.wrong-answer .dig-result .bone-token{width:54%!important;height:54%!important;color:#d52c26!important;opacity:1!important}
.cell.locked-wrong{background:linear-gradient(#d12f2f0d,#d12f2f0d),linear-gradient(145deg,#ffffff30,transparent 52%),var(--region)!important}
@keyframes dog-pop{from{transform:translateY(17%) scale(.9);opacity:.2}to{transform:translateY(0) scale(1);opacity:1}}

.header-actions{display:flex;align-items:center;gap:16px}.level-home{padding:38px 0 24px}.level-home h1{margin-bottom:10px}.level-home .subtitle{margin-bottom:25px}.level-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.level-card{position:relative;min-height:76px;border:1px solid #e8dfd2;border-radius:15px;background:#fffdf9;color:#6f5b47;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-shadow:0 2px 7px #65442708;transition:transform .12s,border-color .12s,background .12s}.level-card:hover{transform:translateY(-2px);border-color:#bd9d7c}.level-card-number{font-family:Georgia,serif;font-size:22px;line-height:1;color:#8d6b48}.level-card-size{font-size:10px;color:#9c8c79}.level-card.completed{background:#f8edca;border-color:#dec486;box-shadow:inset 0 0 0 2px #eedba9}.level-card.completed .level-card-number{color:#825f2f}.level-star{position:absolute;top:5px;right:8px;color:#c28b31;font-size:15px;line-height:1}.level-pages{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:22px}.level-pages button{min-width:100px;height:40px;padding:0 12px;border:1px solid #e8dfd2;border-radius:11px;background:#fffdf9;color:#776956;font-size:12px;font-weight:650}.level-pages button:disabled{opacity:.38;cursor:default}.level-pages span{min-width:145px;text-align:center;color:#8e806c;font-size:12px;font-variant-numeric:tabular-nums}
@media(max-width:760px){.site-header{gap:8px}.header-actions{gap:10px}.header-actions .quiet-button{padding:10px 0;font-size:10px}.level-home{padding:26px 0 18px}.level-home h1{font-size:28px}.level-home .subtitle{font-size:11px;line-height:1.7;margin-bottom:18px}.level-grid{gap:7px}.level-card{min-height:60px;border-radius:11px;gap:3px}.level-card-number{font-size:19px}.level-card-size{font-size:9px}.level-star{top:4px;right:5px;font-size:13px}.level-pages{gap:9px;margin-top:18px}.level-pages button{min-width:85px;height:38px;font-size:10px}.level-pages span{min-width:116px;font-size:10px}}
.cell.revealed-dog:before{background:none;opacity:0}
.dig-result .bone-token{color:#fff0c9!important;filter:drop-shadow(0 1px 2px #2c1c10)}
.wrong-answer .dig-result .bone-token{color:#d52c26!important}

/* Four-by-four touch-first level pages with larger labels on phones. */
.level-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.level-card{min-height:96px}
.level-card-number{font-size:28px}
.level-card-size{font-size:12px}
.level-star{font-size:18px;top:6px;right:9px}
.display-title{font-family:"DFKai-SB","BiauKai","Noto Serif TC","Songti TC",serif;font-weight:850;letter-spacing:.1em;-webkit-text-stroke:.25px #81523d;text-shadow:0 2px 0 #fff9,2px 3px 0 #bd6a4d24}
.level-home .display-title{font-size:42px}
#game-screen .display-title{font-size:38px}
.game-callout{font-size:14px;color:#9c624b;font-weight:700;letter-spacing:.08em}
@media(max-width:760px){
  .level-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
  .level-card{min-height:76px;border-radius:12px}
  .level-card-number{font-size:25px}
  .level-card-size{font-size:11px}
  .level-star{top:5px;right:7px;font-size:16px}
  .level-home .display-title{font-size:34px}
  #game-screen .display-title{font-size:31px}
  .game-callout{font-size:13px}
}

/* Phone-first controls and uncropped portrait/landscape rewards. */
.attempt-status{display:flex;justify-content:space-between;gap:8px;margin:0 0 12px;padding:9px 12px;border-radius:10px;background:#f4eee2;color:#806b52;font-size:13px;font-variant-numeric:tabular-nums}
.attempt-status.danger{background:#fbe2db;color:#9c392c;font-weight:650}
.victory-photo img{width:100%;height:auto;max-height:42svh;aspect-ratio:auto;object-fit:contain;background:#f5efe5}
.failure-actions{display:grid;gap:12px;margin-top:24px}
.failure-actions button{min-height:48px}
@media(max-width:760px){
 .page-shell{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
 .site-header{height:66px}.intro{padding:16px 0 14px}.intro .eyebrow{margin-bottom:7px}
 .play-card{padding:15px 10px 14px}.level-bar{margin-bottom:12px}
 .selection-mode,.toolbar button{min-height:48px;font-size:13px}
 .selection-modes-help{font-size:11px;line-height:1.6}.selection-modes-label{font-size:12px}
 .board-caption{padding:8px 0 10px;font-size:11px}.status{font-size:12px}
 .level-pages{gap:6px}.level-pages button{min-width:0;min-height:44px;flex:1;font-size:12px}.level-pages span{min-width:0;font-size:11px}
 .dialog{max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
 .win-top{padding:16px 16px 10px}.win-top h2{font-size:22px;margin:8px 0}
 .victory-photo{margin:0 14px;transform:none}.victory-photo img{max-height:40svh}.victory-photo figcaption{padding:8px 0}
 .win-stats{padding:14px 16px}.win-actions{padding:0 16px max(14px,env(safe-area-inset-bottom));gap:9px}
 .win-actions button{min-height:44px}.win-actions .text-button{padding:10px}
 .companion-card .progress-title,.companion-card .progress-paws,.companion-card .companion-note{grid-column:2}
}
@media(prefers-reduced-motion:reduce){.dig-result.found-dog .dog-token{animation:none!important}}
