*{box-sizing:border-box}body{margin:0;background:#f7f6ee;color:#304333;font-family:system-ui,-apple-system,"PingFang TC",sans-serif}main{width:min(600px,100%);margin:auto;padding:30px 20px}header{font-size:22px;font-weight:800}section{margin-top:65px}h1{font-size:clamp(28px,7vw,40px);margin:0 0 10px}p{line-height:1.6;color:#586f58}.choices{display:grid;gap:14px;margin-top:30px}.choices a{display:block;text-decoration:none;color:#304333;background:#fffef9;border:1px solid #cbd9c1;border-radius:18px;padding:20px}.choices a.primary{background:#506b48;color:white}.choices strong,.choices span{display:block}.choices strong{font-size:20px}.choices span{font-size:14px;line-height:1.55;margin-top:8px}.choices a:focus-visible{outline:3px solid #335c37;outline-offset:3px}.note{font-size:13px;margin-top:22px}

.child-language-select{flex:0 0 auto;max-width:9em;min-height:40px;margin-left:auto;padding:6px 10px;border:1px solid #cbd9c1;border-radius:8px;background:#fffef9;color:#304333;font:inherit;font-size:14px}
header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;line-height:1.25}
.entry-brand{white-space:nowrap;font-size:clamp(20px,5.5vw,23px)}
section{margin-top:clamp(28px,5vh,44px)}

.child-language-select:focus-visible{outline:2px solid #506b48;outline-offset:3px}
[hidden]{display:none!important}#member-dashboard{margin-top:26px}.dashboard-card{background:#fffef9;border:1px solid #d6e0ce;border-radius:22px;padding:22px 22px 18px;box-shadow:0 10px 32px #405b3910}.dashboard-kicker{font-size:13px;letter-spacing:.08em;margin:0;color:#72886d}.dashboard-card h1{font-size:20px;margin:6px 0 0}.today-count{font-size:clamp(44px,12vw,64px);font-weight:800;line-height:1.15;color:#506e48;letter-spacing:-.04em;margin-top:4px;font-variant-numeric:tabular-nums}.dashboard-date{font-size:13px;margin:4px 0 12px}.steps-chart{height:144px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:end;border-bottom:1px solid #dfe8da;padding:0 0 3px}.step-day{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:0;gap:3px}.step-number{font-size:12px;font-weight:700;color:#526a50;font-variant-numeric:tabular-nums}.step-bar-wrap{height:80px;display:flex;align-items:end;width:min(46px,75%)}.step-bar{width:100%;height:var(--bar);min-height:3px;border-radius:7px 7px 3px 3px;background:#c7d9bd}.step-day.today .step-bar{background:#66845c}.step-label{font-size:12px;color:#6a7a67;white-space:nowrap}.dashboard-status{font-size:12px;min-height:1.5em;margin:9px 0 0}#dashboard-retry{border:1px solid #a7b99d;background:#f3f7ee;border-radius:10px;padding:8px;color:#344b35}.dashboard-links{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.dashboard-links a{display:flex;align-items:center;gap:8px;min-height:58px;padding:12px 14px;border:1px solid #d4e0cb;border-radius:16px;background:#fffef9;color:#354d37;text-decoration:none}.dashboard-links span{font-size:23px;color:#66845c}.dashboard-links strong{font-size:15px}.dashboard-links b{margin-left:auto;font-size:22px;font-weight:400}.dashboard-walk{height:190px;overflow:hidden;border-radius:20px;position:relative;background:linear-gradient(180deg,#b4d4d2 0%,#dceade 48%,#bad09c 49%,#9cba85 100%)}.dashboard-walk:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 15% 55%,#739b6f55 0 12%,transparent 13%),radial-gradient(ellipse at 78% 54%,#7b9f7055 0 17%,transparent 18%)}.dashboard-walk canvas{position:absolute;bottom:8px;left:0;width:100%;height:170px}.dashboard-walk p{position:absolute;bottom:4px;left:16px;margin:0;font-size:12px;font-weight:700;color:#345039;text-shadow:0 1px 4px #fff}.dashboard-go{display:block;text-align:center;text-decoration:none;background:#506b48;color:white;padding:15px;border-radius:15px;font-weight:700;margin-top:14px}.dashboard-links a:focus-visible,.dashboard-go:focus-visible{outline:3px solid #335c37;outline-offset:3px}@media(max-width:360px){.dashboard-card{padding:18px}.steps-chart{gap:5px}.dashboard-links a{padding:10px}.dashboard-links strong{font-size:14px}}
/* Keep the chart compact and preserve the natural proportions of both actors. */
.steps-chart{height:72px}.step-bar-wrap{height:38px}.dashboard-walk canvas{height:auto}
header a.entry-brand.paw-brand{width:190px;max-width:58%;min-height:44px}
/* Place the recent days beside today's total, keeping the walk scene in view. */
.dashboard-card{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-areas:'kicker kicker' 'title chart' 'count chart' 'date chart' 'status status' 'retry retry';column-gap:14px;align-items:center}
.dashboard-kicker{grid-area:kicker}.dashboard-card h1{grid-area:title}.today-count{grid-area:count;font-size:clamp(32px,8vw,56px)}.dashboard-date{grid-area:date;margin:3px 0}.steps-chart{grid-area:chart;align-self:end;min-width:0;width:100%;gap:3px}.dashboard-status{grid-area:status;margin-top:5px}#dashboard-retry{grid-area:retry;justify-self:start}.step-number{font-size:clamp(9px,2.4vw,12px)}.step-label{font-size:clamp(9px,2.4vw,12px)}
.dashboard-walk canvas{left:50%;bottom:0;width:auto;height:100%;max-width:100%;max-height:100%;transform:translateX(-50%)}
.dashboard-walk canvas{width:min(100%,438px);height:auto;max-height:none}
#entry-loading{margin-top:clamp(28px,5vh,44px)}#entry-loading h1{font-size:22px}#entry-loading p{font-size:14px}#entry-loading-retry,#entry-login-link{display:inline-block;padding:12px 18px;border:1px solid #a7b99d;border-radius:12px;background:#506b48;color:#fff;text-decoration:none;font:inherit}#entry-login-link{background:#fffef9;color:#344b35;margin-left:8px}

.dashboard-links svg{width:24px;height:24px;flex:none;color:#688563}.dashboard-walk:before{display:none}.dashboard-park{position:absolute;inset:0 auto 0 0;width:calc(max(100%, 570px) * 2);display:flex;animation:park-stroll 30s linear infinite}.dashboard-park-tile{width:50%;flex:none;background:var(--park-image,url("camera-assets/dashboard-birch-park-44861cc786b5.webp")) center / cover no-repeat}.dashboard-park-tile:nth-child(2){transform:scaleX(-1)}@keyframes park-stroll{to{transform:translateX(-50%)}}@media(prefers-reduced-motion:reduce){.dashboard-park{animation:none}}
/* A compact entry header leaves more room for the daily walk. */
main{padding-top:12px}
header a.entry-brand.paw-brand{width:95px;max-width:36%;min-height:40px}
#member-dashboard{margin-top:12px}
.step-day.today .step-bar{background:#df663f}
.step-day.today .step-number,.step-day.today .step-label{color:#b94c2d}
/* Keep loading/errors available, without reserving a footer row after success. */
#member-dashboard[aria-busy="false"]:has(#dashboard-retry[hidden]) .dashboard-status{position:absolute;width:1px;height:1px;padding:0;margin:0;min-height:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:620px){
 .dashboard-card{position:relative;padding:16px 18px 14px;column-gap:12px}
 .dashboard-kicker{font-size:12px;line-height:1.5}
 .dashboard-card h1{margin:4px 0 0;font-size:20px;line-height:1.35}
 .today-count{margin-top:0;font-size:36px;line-height:1.05}
 .dashboard-date{font-size:12px;line-height:1.45;margin:3px 0 0}
 .dashboard-walk{height:clamp(220px,32svh,280px)}
}

/* Homepage: animation, home/garden shortcuts, daily steps, walk action. */
#member-dashboard{display:flex;flex-direction:column}
#member-dashboard>.dashboard-walk{order:0}
#member-dashboard>.dashboard-links{order:1}
#member-dashboard>.dashboard-card{order:2}
#member-dashboard>.dashboard-go{order:3}
.dashboard-go{display:flex;align-items:center;justify-content:center;gap:9px}
.dashboard-go>svg{width:1.25em;height:1.25em;flex:none;fill:currentColor}

/* Anonymous landing: a small shared sprite demonstration, with no 3D startup. */
.landing-walk-demo{margin:18px 0 22px;overflow:hidden;border:1px solid #d0dbc7;border-radius:24px;background:#e1e8d6}
.landing-walk-window{position:relative;height:clamp(260px,40vw,390px);overflow:hidden}
.landing-walk-window canvas{display:block;width:100%;height:100%;pointer-events:none}
.landing-walk-label{position:absolute;top:14px;left:14px;padding:8px 13px;border-radius:99px;background:#fffdf2ed;color:#3d5438;font-size:14px;font-weight:700}
.landing-walk-demo figcaption{display:flex;justify-content:space-between;gap:12px;padding:8px 14px;background:#f5f7ee;color:#60735c;font-size:11px}
.landing-walk-demo figcaption a{color:inherit}
#entry-choices:has(.landing-walk-demo) h1{margin-bottom:10px}
#entry-choices:has(.landing-walk-demo)>.choices{gap:12px}
#entry-choices:has(.landing-walk-demo)>.choices>a{padding:18px 20px}
@media(max-width:620px){.landing-walk-window{height:280px}#entry-choices:has(.landing-walk-demo) h1{font-size:30px}#entry-choices:has(.landing-walk-demo)>.choices strong{font-size:21px}#entry-choices:has(.landing-walk-demo)>.choices span{font-size:14px}}
.landing-walk-demo figcaption{display:grid;gap:6px}
.landing-location-line{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.landing-location-status{min-width:0;line-height:1.5}
.landing-location-button{flex-shrink:0;min-height:34px;padding:6px 10px;border:1px solid #b6c7a9;border-radius:10px;background:#fffdf4;color:#35502f;font-family:inherit;font-size:12px;font-weight:600;line-height:1.4;cursor:pointer}
.landing-location-button:disabled{opacity:.65;cursor:wait}
.landing-walk-demo figcaption>a{justify-self:end;font-size:10px}

/* Keep source details in state/accessibility, without a duplicate visible row. */
#member-dashboard[aria-busy="false"]:has(#dashboard-retry[hidden]) .dashboard-status{position:absolute;width:1px;height:1px;padding:0;margin:0;min-height:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#member-dashboard .phone-steps-sync small{display:none}
#member-dashboard .phone-steps-sync:not(:has(button:not([hidden]))){display:none!important}
@media(max-width:620px){
 main{padding:10px 20px 12px}
 #member-dashboard{margin-top:10px}
 .dashboard-card{padding:12px 16px;column-gap:12px;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-areas:'title chart' 'count chart' 'date chart' 'status status' 'retry retry'}
 .dashboard-kicker{display:none}
 .dashboard-card h1{font-size:17px;line-height:1.3;margin:0;white-space:nowrap}
 .today-count{font-size:34px;line-height:1.12;white-space:nowrap;margin:2px 0 0}
 .dashboard-date{font-size:11px;line-height:1.4;margin:2px 0 0}
 .steps-chart{height:66px}
 .step-bar-wrap{height:34px}
 .dashboard-links{margin:12px 0;gap:12px}
 .dashboard-links a{min-height:52px;padding:9px 12px}
 .dashboard-go{min-height:46px;margin-top:12px;padding:12px 10px}
}
@media(max-width:620px) and (max-height:720px){.dashboard-walk{height:clamp(160px,32svh,220px)}}
/* Independent sound and music switches sit between the brand and language. */
header .entry-audio-controls{display:flex;align-items:center;gap:4px;margin-left:auto;flex:0 0 auto}
header .entry-audio-controls button{position:relative;display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;padding:10px;border:1px solid transparent;border-radius:50%;background:transparent;color:#526e47;cursor:pointer;touch-action:manipulation}
header .entry-audio-controls svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
header .entry-audio-controls button[aria-pressed=false]{color:#798672;background:#e9ecdf}
header .entry-audio-controls button[aria-pressed=false]::after{content:'';position:absolute;width:27px;height:2px;border-radius:2px;background:#aa5543;transform:rotate(-45deg)}
header .entry-audio-controls button:focus-visible{outline:3px solid #536e47;outline-offset:1px}
header:has(.entry-audio-controls){gap:6px}
header:has(.entry-audio-controls) .child-language-select{margin-left:0}
@media(max-width:360px){header:has(.entry-audio-controls) a.entry-brand.paw-brand{width:78px}header .entry-audio-controls{gap:0}header .entry-audio-controls button{width:40px;height:44px;padding:8px}header:has(.entry-audio-controls) .child-language-select{max-width:94px;font-size:12px;padding-inline:6px}}

/* Seven slim columns fit beside the daily total without increasing card height. */
#dashboard-chart{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
#dashboard-chart .step-bar-wrap{width:58%;max-width:18px}
#dashboard-chart .step-number{font-size:clamp(8px,2.1vw,11px);white-space:nowrap;line-height:1.3}
#dashboard-chart .step-label{font-size:clamp(8px,2.1vw,11px);line-height:1.3}
.today-count[data-long-count]{font-size:clamp(23px,6.3vw,34px)}
@media(max-width:620px){.dashboard-card{grid-template-columns:minmax(90px,.75fr) minmax(0,1.25fr);column-gap:10px}#dashboard-chart{gap:2px}#dashboard-chart .step-bar-wrap{max-width:14px}}
@media(max-width:360px){.dashboard-card{grid-template-columns:minmax(74px,.6fr) minmax(0,1.4fr);column-gap:8px}.today-count{font-size:30px}.today-count[data-long-count]{font-size:21px}#dashboard-chart{gap:1px}}

/* Three equal shortcuts directly below the walking scene. */
.dashboard-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dashboard-links a{min-width:0;justify-content:center;gap:7px;padding:12px 8px}
.dashboard-links a b{display:none}
.dashboard-links a strong,.dashboard-links .dashboard-go>[data-dash]{min-width:0;font-size:15px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.dashboard-links .dashboard-go{margin:0;border:1px solid #506b48;border-radius:16px;background:#506b48;color:#fff}
.dashboard-links .dashboard-go>[data-dash]{color:inherit}
.dashboard-links .dashboard-go>svg{width:24px;height:24px;color:inherit;fill:currentColor}
@media(max-width:620px){
 .dashboard-links{gap:8px}
 .dashboard-links a{min-height:52px;padding:9px 6px;gap:5px}
 .dashboard-links a strong,.dashboard-links .dashboard-go>[data-dash]{font-size:clamp(12px,3.2vw,14px)}
 .dashboard-links svg,.dashboard-links .dashboard-go>svg{width:19px;height:19px}
}
@media(max-width:360px){.dashboard-links{gap:6px}.dashboard-links a{padding-inline:5px;gap:4px}.dashboard-links svg,.dashboard-links .dashboard-go>svg{width:17px;height:17px}}

/* Five recent updates below the steps, without moving the walking scene or shortcuts. */
#member-dashboard>.homepage-news{order:3;min-width:0;width:100%;margin:14px 0 0;padding:16px;border:1px solid #d6e0ce;border-radius:22px;background:#fff;color:#000}
.homepage-news h2{margin:0 0 4px;font-size:18px;line-height:1.4;color:#000}
.homepage-news ol{list-style:none;margin:0;padding:0}
.homepage-news li{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:4px;padding:12px 0;min-width:0}
.homepage-news li+li{border-top:1px solid #e6e9e3}
.homepage-news li:last-child{padding-bottom:0}
.homepage-news h3{margin:0;font-size:14px;font-weight:650;line-height:1.5;overflow-wrap:anywhere;color:#000}
.homepage-news time{font-size:12px;line-height:1.75;white-space:nowrap;color:#000}
.homepage-news p{grid-column:1/-1;margin:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere;color:#000}

/* Four equal shortcuts; on narrow phones use an icon above the label. */
.dashboard-links{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:620px){.dashboard-links{gap:7px}.dashboard-links a{flex-direction:column;min-height:62px;padding:8px 3px;gap:5px;box-sizing:border-box}.dashboard-links a strong,.dashboard-links .dashboard-go>[data-dash]{font-size:clamp(11px,2.9vw,14px);white-space:nowrap}.dashboard-links svg,.dashboard-links .dashboard-go>svg{width:21px;height:21px}}

#entry-choices>.choices:has(.landing-photo-entry){grid-auto-rows:1fr}
#entry-choices>.choices:has(.landing-photo-entry)>:is(a,button){display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;padding:18px 20px;text-align:start;border-radius:18px}
#entry-choices>.choices>.landing-photo-entry{border:1px solid #bdcab2;background:#edf3e6;color:#395137;font:inherit;cursor:pointer}
#entry-choices>.choices>.landing-photo-entry:focus-visible{outline:3px solid #335c37;outline-offset:3px}
#entry-choices>.choices:has(.landing-photo-entry) strong{font-size:clamp(20px,4.8vw,21px);line-height:1.35;font-weight:700}
#entry-choices>.choices:has(.landing-photo-entry) span{font-size:14px;line-height:1.55;font-weight:400}
.landing-photo-picker label{display:grid;gap:.4rem}
.landing-photo-picker select{width:100%;min-width:0;font:inherit;font-size:max(16px,1em);padding:.65rem;border:1px solid #bdcab2;border-radius:10px;background:#fff;color:#222}
.landing-photo-picker .photo-preview{width:100%;height:min(34dvh,240px);object-fit:contain}
/* Five homepage shortcuts and a lightweight catalogue; scene colours are unchanged. */
.dashboard-links{grid-template-columns:repeat(5,minmax(0,1fr))}
.dashboard-links a{min-width:0}
@media(max-width:620px){.dashboard-links{gap:5px}.dashboard-links a{padding:8px 2px}.dashboard-links a strong,.dashboard-links .dashboard-go>[data-dash]{font-size:clamp(10px,2.65vw,14px)}}
.dog-world-dialog{box-sizing:border-box;width:min(1000px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:18px;border:1px solid #d0dbc7;border-radius:22px;background:#fff;color:#000;overflow:auto;overscroll-behavior:contain;color-scheme:light}
.dog-world-dialog::backdrop{background:#0006}
.dog-world-dialog header{position:sticky;top:-18px;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-18px -18px 12px;padding:12px 18px;background:#fff;border-bottom:1px solid #e6e9e1}
.dog-world-dialog h2{margin:0;font-size:24px;color:#000}
.dog-world-close{flex:0 0 40px;width:40px;height:40px;padding:0;border:1px solid #c3d0b8;border-radius:50%;background:#f5f7ee;color:#344c32;font-size:27px;line-height:1;cursor:pointer}
.dog-world-status{margin:8px 0 16px;font-size:14px;color:#000}
.dog-world-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(150px,calc(50% - 6px)),1fr));gap:12px}
.dog-world-grid article{min-width:0;border:1px solid #d9dfd2;border-radius:14px;overflow:hidden;background:#fff}
.dog-world-grid img{display:block;width:100%;height:auto;aspect-ratio:5/4;object-fit:contain;background:#fff}
.dog-world-grid h3{margin:0;padding:10px 8px 12px;font-size:14px;line-height:1.4;color:#000;text-align:center;overflow-wrap:anywhere}
.dog-world-image-error{min-height:70px;padding:12px;font-size:13px;text-align:center}
.dog-world-retry{padding:10px 18px;border:1px solid #bdccb2;border-radius:14px;background:#edf2e5;color:#344c32}
/* Below the map: real walking clips, on a clear white strip. */
.dog-marquee{position:relative;margin:-10px 0 14px;height:98px;overflow:hidden;background:#fff;border-radius:12px}
.dog-marquee canvas{display:block;width:100%;height:100%}
.dog-marquee-pause{position:absolute;right:4px;bottom:2px;width:28px;height:28px;padding:0;border:1px solid #d0dbc7;border-radius:50%;background:#ffffffea;color:#526e44;font-size:13px;cursor:pointer;line-height:1}
@media(max-width:620px){.dog-marquee{height:86px;margin-bottom:12px}}

/* Real street tiles stay below the transparent animated people/dogs canvas. */
.landing-walk-window{isolation:isolate;background:#f1f1f1}
.landing-real-tiles{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.landing-real-tiles img{position:absolute;max-width:none!important;max-height:none!important;display:block;border:0;border-radius:0}
.landing-walk-window canvas{position:relative;z-index:1;background:transparent}
.landing-walk-label{z-index:2;max-width:calc(100% - 28px);box-sizing:border-box}
.landing-map-message{position:absolute;left:12px;bottom:12px;max-width:calc(100% - 150px);z-index:3;padding:8px 12px;border-radius:10px;background:#fff;color:#111;font-size:12px;line-height:1.4}
.landing-map-retry{position:absolute;right:12px;bottom:12px;z-index:3;padding:8px 12px;border:1px solid #b6c7a9;border-radius:10px;background:#fffdf4;color:#35502f;font:inherit;font-size:12px;cursor:pointer}
.landing-map-message[hidden],.landing-map-retry[hidden]{display:none}

.dashboard-scenery-credit{position:absolute;right:10px;bottom:8px;z-index:2;font-size:10px;line-height:1.3;color:#344c37;background:#ffffffe0;padding:3px 5px;border-radius:5px;text-decoration:none}.dashboard-scenery-credit:focus-visible{outline:2px solid #526d46;outline-offset:2px}

/* Desktop homepage shortcuts match the five icon-over-label cards on phones. */
@media(min-width:621px){
 .dashboard-links{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;container-type:inline-size}
 .dashboard-links a,.dashboard-links .dashboard-go{flex-direction:column;justify-content:center;box-sizing:border-box;aspect-ratio:1;min-height:0;margin:0;padding:clamp(8px,1.5cqw,16px) 6px;gap:clamp(8px,1.6cqw,16px);border-radius:26px;text-align:center}
 .dashboard-links svg,.dashboard-links .dashboard-go>svg{width:clamp(28px,6cqw,48px);height:clamp(28px,6cqw,48px);flex:none}
 .dashboard-links a strong,.dashboard-links .dashboard-go>[data-dash]{font-size:clamp(14px,3cqw,22px);font-weight:700;line-height:1.3;white-space:nowrap}
}

.dog-world-customize{display:block;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent;color:#000;cursor:pointer;text-align:center;font:inherit}.dog-world-customize:focus-visible{outline:3px solid #526c46;outline-offset:-3px}.dog-world-customize:hover{background:#f5f7f2}
