:root{font-family:ui-rounded,'Hiragino Maru Gothic ProN','Noto Sans JP',sans-serif;color:#243d50;background:#f6f8fc;font-synthesis:none}*{box-sizing:border-box}body{margin:0}main{max-width:1000px;margin:auto;padding:40px 28px 24px}header{text-align:center;margin-bottom:28px}.eyebrow{font-size:12px;letter-spacing:.23em;color:#647f92}h1{font-size:34px;letter-spacing:.12em;font-weight:650;margin:9px 0}h1 span{color:#cf7792}header p{font-size:14px;color:#718292;margin:8px 0}.scene{border-radius:24px;position:relative;background:linear-gradient(180deg,#dcecf8 0%,#edf5fb 69%,#e2eaf1 69%,#e9eff5 100%);overflow:hidden;border:1px solid #d5e2ed;box-shadow:0 14px 40px #264c6910}.scene-top,.scene-bottom{position:absolute;left:24px;right:24px;display:flex;justify-content:space-between;font-size:13px;pointer-events:none}.scene-top{top:20px;align-items:center}.scene-top span:first-child{padding:7px 12px;background:#ffffffb8;border-radius:30px}.scene-bottom{bottom:16px;color:#678195;font-variant-numeric:tabular-nums}canvas{display:block;width:100%;height:360px}.controls{padding:24px 0}.actions{display:flex;gap:10px;justify-content:center}button{font:inherit;font-size:15px;cursor:pointer;border:0;min-height:48px;border-radius:13px;padding:12px 23px;transition:transform .15s,background .2s}button:active{transform:scale(.97)}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #5484be;outline-offset:4px}.primary{background:#263f54;color:white;min-width:165px}.primary[aria-pressed=true]{background:#ab5574}.secondary,.icon{background:#e7edf4;color:#29465b}.icon{padding:10px 18px;font-size:24px}.modes{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;border:0;margin:18px 0 0;padding:0}.modes legend{text-align:center;font-size:12px;color:#728190;margin-bottom:10px}.modes label{cursor:pointer;position:relative}.modes input{position:absolute;opacity:0}.modes span{display:block;padding:9px 12px;font-size:13px;border-radius:30px;border:1px solid #d9e2ec}.modes input:checked+span{background:#e5eaf3;border-color:#8397b2;color:#234661}.modes input:focus-visible+span{outline:3px solid #5484be}
.modes input:disabled+span{opacity:.45;cursor:not-allowed}
.link-note{text-align:center;font-size:12px;color:#728190;margin:10px 0 0}.people{display:grid;grid-template-columns:1fr 1fr;gap:18px}.people[data-count="3"]{grid-template-columns:repeat(3,1fr)}.person{background:#fff;border:1px solid #e0e7ef;border-radius:18px;padding:22px}.person h2{font-size:15px;margin:0 0 16px;display:flex;align-items:center;gap:9px;font-weight:500}.dot{display:inline-block;width:12px;height:12px;border-radius:50%}.height-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.height-row label{font-size:14px;color:#637789}.height-input{border-bottom:1px solid #dce5ed}.height-input input{width:83px;font-size:30px;font-weight:550;color:#243d50;border:0;background:transparent;text-align:right;padding:0;appearance:textfield}.height-input span{font-size:13px;color:#728799;margin-left:4px}.palette{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.swatch{width:28px;height:28px;min-height:28px;padding:0;border-radius:50%;border:3px solid white;outline:1px solid transparent}.swatch.selected{outline-color:#607587}.custom-color{width:29px;height:29px;border:0;padding:0;background:transparent;cursor:pointer}.pace{font-size:13px;color:#6c8192;display:flex;gap:16px;padding-top:16px;margin-bottom:0}details{border-top:1px solid #ecf0f5;margin-top:17px;padding-top:12px}summary{cursor:pointer;font-size:13px;color:#627a8d}.detail-fields{display:grid;gap:12px;margin-top:14px}.detail-fields label{display:flex;align-items:center;justify-content:space-between;font-size:13px}.detail-fields input{width:84px;padding:7px;border:1px solid #d4dfe9;border-radius:6px;font:inherit}.restore{padding:6px 0;min-height:30px;font-size:12px;background:none;color:#536f89;text-decoration:underline}footer{text-align:center;font-size:12px;color:#7b8998;line-height:1.8;margin:23px 0 0}@media(max-width:600px){main{padding:23px 15px}header{margin-bottom:20px}h1{font-size:28px}canvas{height:315px}.scene{border-radius:18px}.scene-top,.scene-bottom{left:15px;right:15px;font-size:12px}.actions{gap:7px}button{padding:10px 12px;font-size:14px}.primary{min-width:140px}.icon{padding:7px 13px}.modes span{font-size:12px;padding:8px}.people{gap:10px}.person{padding:16px 12px}.height-input input{width:67px;font-size:27px}.height-row{gap:5px}.palette{gap:7px}.swatch{width:25px;height:25px;min-height:25px}.pace{flex-direction:column;gap:4px}.detail-fields label{flex-wrap:wrap;gap:6px}}@media(prefers-reduced-motion:reduce){button{transition:none}}

.views{display:flex;justify-content:center;gap:5px;margin:15px auto 0;flex-wrap:wrap}.views button,.look-controls button{min-height:40px;padding:9px 15px;background:transparent;color:#5f7587;font-size:13px;border:1px solid transparent}.views button[aria-pressed=true]{background:#263f54;color:#fff}.look-controls{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}.look-controls[hidden]{display:none}.look-controls button{border-color:#d9e2ec}.look-controls button[aria-pressed=true]{background:#e0e9f3;border-color:#8197ad}.look-controls span{font-size:12px;color:#6b8294}.scene{background:#e3eff8}canvas{height:390px}@media(max-width:600px){canvas{height:350px}.views button{font-size:12px;padding:9px 10px}.controls{padding-top:16px}}

.dog-controls{background:#fffaf2;border:1px solid #eadfcb;border-radius:18px;padding:20px 22px;margin:0 0 22px}.dog-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.dog-heading .eyebrow{font-size:10px;color:#997847}.dog-heading h2{font-size:19px;font-weight:550;margin:5px 0}.dog-toggle{font-size:14px;display:flex;align-items:center;gap:7px;cursor:pointer}.dog-toggle input{accent-color:#a56e34;width:18px;height:18px}.dog-note{font-size:12px;color:#837663;line-height:1.7;margin:10px 0}.dog-handler{display:flex;align-items:center;gap:12px;font-size:13px;margin:14px 0}.dog-handler select{font:inherit;color:#4f4637;background:#fff;border:1px solid #d8c8af;padding:9px 12px;border-radius:9px}.dog-actions{display:flex;gap:10px}.dog-actions button{background:#eee2ce;color:#665035;flex:1}.dog-actions button:disabled{opacity:.45;cursor:default}.dog-status{font-size:13px;color:#70593c;margin:12px 0 0}.dog-all,.dog-card .dog-actions{flex-wrap:wrap}.dog-all{margin:6px 0 4px}.dog-all button,.dog-card .dog-actions button{flex:1 1 auto;white-space:nowrap}.dog-all button{min-height:42px;font-size:14px;padding:9px 14px}.dog-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-top:14px}.dog-card{background:#fff;border:1px solid #eadfcb;border-radius:14px;padding:14px 16px}.dog-card-head{display:flex;align-items:center;gap:8px;font-size:14px}.dog-card-head strong{font-weight:550}.dog-card .dog-handler{margin:10px 0}.dog-card .dog-actions{gap:7px}.dog-card .dog-actions button{min-height:42px;padding:9px 6px;font-size:13px}.collar{width:12px;height:12px;border-radius:50%}.dog-remove{margin-left:auto;min-height:32px;padding:4px 10px;background:transparent;color:#9a8669;font-size:16px}#dogHint{min-height:1.7em;margin-bottom:0}.dog-controls [hidden],#lookDog[hidden]{display:none}@media(max-width:600px){.dog-controls{padding:17px}.dog-heading{gap:10px}}
@media(max-width:600px){.people[data-count="3"]{grid-template-columns:1fr 1fr}}

/* The walking scene stays in view while settings scroll: pinned to the top on narrow screens, beside the settings on wide ones. */
.stage{position:sticky;top:0;z-index:5;background:#f6f8fc;padding-bottom:6px}
@media(max-width:1023px){.stage{margin:0 -28px;padding:10px 28px 8px;box-shadow:0 12px 14px -14px #264c6955}canvas{height:clamp(200px,32vh,300px)}.views{margin-top:8px}}
@media(max-width:600px){.stage{margin:0 -15px;padding:8px 15px 6px}.views button{min-height:36px;padding:7px 9px}}
@media(min-width:1024px){main{max-width:1440px;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(400px,1fr);column-gap:32px;align-items:start}header{grid-column:1/-1}.stage{top:16px;padding:0}canvas{height:clamp(360px,60vh,600px)}.panel .controls{padding-top:0}.panel .people,.panel .people[data-count="3"]{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}}
/* Too short to pin anything: let the scene scroll away as before. */
@media(max-height:560px){.stage{position:static;box-shadow:none}}
