/* PC keeps a spacious park dashboard; touch devices use a compact HUD and thumb controls. */
.menu-links{margin-top:14px}.menu-links .text-button{padding:4px 0;color:#858d75;font-size:10px}
.dog-status-toggle{display:none}.edition-note{font-size:10px;line-height:1.9;color:var(--muted)}
.startup-error{pointer-events:auto;padding:40px;max-width:450px;margin:15vh auto;background:var(--paper);border-radius:20px}.startup-error h1{font-size:24px}.startup-error p{font-size:13px;line-height:1.9}
.about-intro{font:italic 24px/1.5 Georgia,serif;color:var(--green-dark);margin:8px 0 24px}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.about-grid>div{padding:18px;border:1px solid var(--line);border-radius:14px}.about-grid h3{font-size:13px;margin:0 0 8px}.about-grid p{font-size:12px;line-height:1.8;margin:0;color:#7e886f}
.archive-open .paper,.archive-open #world{visibility:hidden}
.archive-shell{max-width:1120px;min-height:100%;margin:auto;padding:30px 52px;display:flex;flex-direction:column}
.archive-header{flex:none}.archive-content{flex:1;width:100%;padding:26px 0 20px}.recording-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.recording-heading .eyebrow{margin:0 0 5px;font-size:8px}.recording-heading h2{font:28px/1.3 Georgia,"Microsoft YaHei",serif;margin:0}.recording-badge{font-size:10px;padding:8px 12px;border:1px solid var(--line);border-radius:20px;color:#88917c;white-space:nowrap}
.video-player{width:100%;border:0;border-radius:18px;background:#1c2420;box-shadow:0 18px 60px #31433220;overflow:hidden}.video-screen{position:relative;aspect-ratio:16/9;background:#0e1511;width:100%;overflow:hidden}.video-player video{display:block;width:100%;height:100%;min-height:0;max-height:none;object-fit:contain}.video-center-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid #ffffff54;border-radius:50%;width:66px;height:66px;min-height:0;background:#152019b0;color:#fff9eb;font-size:23px;box-shadow:none}.video-center-play:hover{background:#405848}.video-controls{background:#f3eedf;padding:13px 17px;gap:14px;color:#4f624e;display:flex;align-items:center;flex-wrap:nowrap}.video-controls .btn{color:#4d614c;width:38px;min-height:38px;height:38px;flex:none;padding:5px;background:#e7e4d5;border:0}.video-controls>span{min-width:92px;font-size:10px;white-space:nowrap;color:#6a7b61}.video-timeline{position:relative;flex:1;height:24px;display:flex;align-items:center;min-width:0}.video-timeline>span{position:absolute;left:0;top:10px;height:4px;border-radius:4px;background:#c0c9ac;pointer-events:none}.video-timeline input{position:relative;width:100%;height:24px;margin:0;accent-color:#536f52;background:transparent;cursor:pointer}.video-volume{color:#6f8065}.video-volume input{accent-color:#667e61;width:72px}.video-loading{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);font-size:11px;border-radius:20px;background:#0c170fc2;color:#f4eddc;padding:9px 15px}.playback-status{margin:14px 0 6px;font-size:11px;min-height:18px;color:#77836b;text-align:center}.recording-note{text-align:center;font-size:10px;color:#a1a48d;margin:0}.archive-footer{margin-top:auto;padding-top:19px}
.archive-encounter{width:min(800px,100%);margin:25px auto 30px;flex:1}.encounter-heading h2{font:30px/1.5 Georgia,"Microsoft YaHei",serif;font-weight:500;margin:0 0 20px}.encounter-heading .eyebrow{font-size:8px}.archive-encounter canvas{display:block;width:100%;height:auto;max-height:350px;object-fit:contain;border-radius:17px;background:#e4e6da;border:1px solid #d9ddca}.encounter-copy{font-size:13px;line-height:1.9;color:#7b866e;margin:23px 0 19px;min-height:48px}.encounter-actions{display:flex;gap:12px;flex-wrap:wrap}.encounter-actions>.btn{flex:1;justify-content:space-between;min-width:190px}.encounter-actions>.hold-button{width:100%;flex-basis:100%;touch-action:none;user-select:none;-webkit-user-select:none}.hold-button:active{background:#6d825a;transform:scale(.99)}.retreat-track{width:100%;height:7px;background:#e0e2cf;border-radius:10px;overflow:hidden}.retreat-track>span{display:block;width:0;height:100%;background:#7b976b;border-radius:10px}.hold-hint{display:block;width:100%;text-align:center;color:#929981;font-size:10px}
.bite-scene{position:absolute;inset:0;background:#080a09;color:#f4efdf;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px;overflow:auto;animation:fade-in .4s ease}.bite-scene .eyebrow{color:#7c8578;letter-spacing:3px;font-size:9px}.bite-scene h2{font:32px/1.5 Georgia,"Microsoft YaHei",serif;font-weight:400;margin:20px 0}.bite-copy{font-size:14px;color:#aeb5a8;line-height:2.2;margin:13px 0 20px}.bite-copy strong{display:block;color:#e5deca;font-size:19px;font-weight:400;margin-top:15px}.bite-note{font-size:11px;color:#747e71;margin:0 0 30px}.bite-scene .btn{background:transparent;color:#ebe5d4;border-color:#69715f;padding:13px 22px}.bite-scene .text-button{color:#818b79;display:block;margin:8px auto 0}.archive-shell:focus{outline:0}
[data-device=mobile] .paper,[data-device=mobile] .modal-scrim{backdrop-filter:none}
[data-device=mobile] .paper{background:#fbf6e9f5;box-shadow:0 5px 18px #425d3f10}
[data-device=mobile] .modal-scrim{background:#354a366b}
[data-device=mobile] .joystick{display:block}
[data-device=mobile] .game-ui kbd{display:none}
[data-device=mobile] .video-volume{display:none}
@media(pointer:coarse) and (min-width:761px) and (max-height:520px){#toasts{left:128px;right:auto;bottom:20px;width:200px}.toast{font-size:10px;padding:12px}.context-hint{bottom:20px;left:50%;max-width:190px}}
@media(pointer:coarse) and (min-width:761px){.hud-top{top:12px;left:14px;right:14px}.dog-card{top:78px;right:14px;width:200px;padding:10px 12px}.dog-card-head{border:0;padding:0}.dog-card h2{font-size:13px}.dog-card-head canvas{width:47px;height:42px}.dog-card-caption,.bond-heart{display:none}.dog-status-toggle{display:flex;margin-left:auto;min-height:38px;padding:7px;font-size:9px}.dog-card:not(.stats-expanded) .stat-list{display:none}.stat-list{gap:7px;padding-top:10px}.action-dock{left:auto;right:14px;transform:none;bottom:15px;display:grid;grid-template-columns:repeat(3,58px);width:200px;gap:5px}.action-dock>.btn{min-height:44px;padding:8px;font-size:11px}.action-dock>.primary,.action-dock>.finish-button{grid-column:span 3}.action-dock>.finish-button{min-height:30px}.action-dock>.dock-divider,.mini-map,.movement-help,.walk-plan{display:none}.joystick{left:22px;bottom:30px}.bone-banner{width:min(470px,calc(100% - 260px));top:78px;left:14px;transform:none}}
@media(max-width:760px){
 .menu-screen{background:linear-gradient(180deg,#f6f1e4 0%,#f6f1e4e8 56%,#f6f1e458 82%,#f6f1e438)}.menu-header{left:24px;right:24px;top:max(24px,env(safe-area-inset-top))}.menu-content{top:105px;left:28px;width:calc(100% - 56px);max-width:450px}.menu-content h1{font-size:clamp(76px,23vw,107px);margin:23px 0 20px}.menu-content h1 i{left:calc(100% + 7px);top:18px}.menu-content h1 svg{width:30px;height:30px}.tagline{font-size:20px}.menu-chinese{margin:13px 0 25px;letter-spacing:.5px}.menu-buttons,.menu-best{width:100%;max-width:330px}.menu-best{margin-top:20px}.menu-links{margin-top:8px}.menu-content>.eyebrow{font-size:8px;letter-spacing:1.3px}.menu-secondary .btn{min-height:44px}.menu-footer{font-size:6px;left:24px;right:24px;letter-spacing:1px;bottom:calc(17px + env(safe-area-inset-bottom))}.menu-footer>span:first-child{max-width:110px}
 .hud-top{top:calc(12px + env(safe-area-inset-top));left:12px;right:12px}.hud-top-actions .btn{width:36px;min-height:38px}.walk-brand{padding:10px}.walk-clock{padding:11px 13px;min-height:42px}.dog-card{top:calc(76px + env(safe-area-inset-top));left:12px;right:12px;width:auto;padding:9px 13px}.dog-card-head{padding-bottom:0;border:0;min-height:38px}.dog-card-head canvas{width:46px;height:38px;margin:0 7px 0 -4px}.dog-card h2{font-size:13px;margin-bottom:4px}.dog-card-head p{font-size:9px}.bond-heart{display:none}.dog-status-toggle{display:inline-flex;margin-left:auto;min-height:38px;padding:8px 11px;gap:7px;font-size:10px;border-radius:10px;pointer-events:auto}.stat-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding-top:10px;padding-bottom:4px}.stat>div:first-child{font-size:8px;gap:3px}.stat b{font-size:8px}.dog-card:not(.stats-expanded) .stat-list{display:none}.dog-card-caption{display:none}.walk-plan{top:calc(142px + env(safe-area-inset-top));left:12px;right:12px;width:auto;padding:8px 13px;display:flex;align-items:center;gap:13px}.walk-plan>.eyebrow,.walk-plan>h2{display:none}.walk-distance{margin:0;gap:5px}.walk-distance b{font:22px Georgia,serif}.walk-distance>span{font-size:8px}.quest{font-size:8px;margin:0;gap:4px}.quest>span{font-size:10px}.quest>b{font-size:8px;white-space:nowrap}.quest[data-quest=games]{display:none}.hud-screen:has(.stats-expanded) .walk-plan{top:calc(175px + env(safe-area-inset-top))}.context-hint{max-width:calc(100% - 28px);bottom:calc(196px + env(safe-area-inset-bottom));font-size:10px}.action-dock{right:12px;bottom:calc(22px + env(safe-area-inset-bottom));grid-template-columns:repeat(3,49px);width:169px;gap:4px}.action-dock>.btn{min-height:44px}.action-dock>.primary{min-height:45px}.action-dock>.finish-button{min-height:32px}.joystick{left:18px;bottom:calc(48px + env(safe-area-inset-bottom));width:108px;height:108px}.joystick>span{left:31px;top:31px}.game-ui kbd{display:none}.bone-banner{top:calc(80px + env(safe-area-inset-top))}.panel-actions{position:sticky;bottom:-22px;background:var(--paper);padding-bottom:8px;z-index:2}.about-grid{grid-template-columns:1fr}.about-intro{font-size:21px}.command-buttons .btn{min-height:54px}.throw-controls input{height:35px;accent-color:#738c65}.achievement-entry p{line-height:1.7}
 .archive-shell{padding:calc(17px + env(safe-area-inset-top)) 17px calc(20px + env(safe-area-inset-bottom));min-height:100dvh}.archive-header{padding-bottom:17px}.archive-header>.btn{min-height:42px;font-size:9px;padding:8px 10px}.archive-brand>span{font-size:11px}.archive-brand svg{width:23px;height:23px}.archive-brand small{font-size:6px;letter-spacing:.4px}.archive-content{padding:28px 0 23px;display:flex;flex-direction:column;justify-content:center}.recording-heading{margin-bottom:19px}.recording-heading h2{font-size:23px}.recording-heading .eyebrow{font-size:6px;letter-spacing:1px}.recording-badge{font-size:8px;padding:6px 8px}.video-player{border:0;border-radius:12px;width:calc(100% + 18px);margin-left:-9px}.video-player video{height:100%;min-height:0;max-height:none}.video-controls{padding:12px 10px;gap:8px}.video-controls .btn{width:34px;min-height:40px;height:40px}.video-controls>span{font-size:8px;min-width:73px}.video-timeline{min-width:20px}.video-volume{display:none}.video-center-play{width:57px;height:57px;font-size:20px}.recording-note{font-size:9px}.archive-footer{font-size:6px;gap:10px}.archive-encounter{margin:27px 0 24px}.encounter-heading h2{font-size:23px;line-height:1.5;margin-bottom:19px}.encounter-heading .eyebrow{font-size:7px;letter-spacing:1.8px}.archive-encounter canvas{border-radius:13px;max-height:none}.encounter-copy{font-size:12px;line-height:1.9;margin:23px 0 20px;min-height:68px}.encounter-actions{gap:10px;flex-direction:column}.encounter-actions>.btn{min-width:0;min-height:52px;font-size:12px}.encounter-actions>.hold-button{flex-basis:auto;min-height:57px}.hold-hint{font-size:9px}.bite-scene{padding:28px 22px}.bite-scene h2{font-size:24px}.bite-copy{font-size:12px}.bite-copy strong{font-size:18px}.bite-note{font-size:10px}.bite-scene .btn{font-size:12px}.archive-complete{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:28px 20px}.hidden-award{width:100%;max-width:350px}.archive-complete h2{font-size:35px}
}
@media(max-width:360px){.menu-content{left:24px;width:calc(100% - 48px)}.menu-content h1{font-size:76px}.tagline{font-size:18px}.hud-top{left:10px;right:10px;gap:4px}.walk-brand{padding:9px 7px}.walk-brand>span{font-size:13px}.hud-top-actions .btn{width:33px}.walk-clock{padding:10px}.walk-plan{gap:8px;padding:8px 10px}.quest{font-size:7px}.action-dock{right:10px;width:166px;grid-template-columns:repeat(3,48px)}.joystick{left:12px;width:98px;height:98px}.joystick>span{left:26px;top:26px}.recording-badge{display:none}.video-controls{gap:6px}.video-controls>span{font-size:7px;min-width:68px}}
@media(max-height:690px) and (max-width:760px){.menu-content{top:88px}.menu-content h1{font-size:74px;margin:18px 0}.menu-chinese{margin-bottom:16px}.menu-best{display:none}.menu-links{margin-top:3px}}
@media(max-height:520px){.archive-shell{padding:14px 24px}.archive-header{padding-bottom:10px}.archive-encounter{display:grid;grid-template-columns:1fr 1fr;gap:9px 24px;margin:15px 0}.encounter-heading{grid-column:2}.encounter-heading h2{font-size:18px;margin:0}.archive-encounter canvas{grid-column:1;grid-row:1 / 4;align-self:center}.encounter-copy{grid-column:2;font-size:10px;margin:3px 0;min-height:0}.encounter-actions{grid-column:2}.encounter-actions>.btn{min-height:37px;padding:8px 13px;font-size:10px;min-width:0}.archive-footer{display:none}.archive-content{padding:12px 0;max-width:700px;align-self:center}.recording-heading{display:none}.video-player{width:min(550px,100%);margin:auto}.video-screen{max-height:calc(100dvh - 150px)}.video-controls{padding:5px 10px}.recording-note{display:none}.bite-scene{padding:17px}.bite-scene h2{font-size:22px;margin:9px 0}.bite-copy{font-size:11px;line-height:1.7;margin:8px 0}.bite-copy strong{font-size:16px;margin-top:7px}.bite-note{margin:10px 0}.bite-scene .eyebrow{margin:0}.bite-scene .btn{padding:9px 18px}.bite-scene .text-button{margin:0;padding:8px}.archive-complete{min-height:100dvh}.menu-content{top:64px;left:6%;width:250px}.menu-content h1{font-size:56px;margin:11px 0}.tagline{font-size:14px}.menu-chinese{font-size:9px;margin:7px 0 12px}.menu-buttons{width:240px}.menu-links{display:none}.menu-header{top:17px}.menu-content>.eyebrow{font-size:6px}.menu-secondary .btn{min-height:33px}}
@media(prefers-reduced-motion:reduce){.bite-scene{animation:none}.btn{transition:none}}
