/* James’s room poses, greeting gestures and accessible activity labels. */
.world:not([data-dad-ready]){visibility:hidden}
.james-art{position:absolute;inset:0;pointer-events:none}.dad-room-patch,.dad-seasonal-kitchen{position:absolute;inset:0;width:100%;height:100%;display:block}.james-art [hidden]{display:none!important}
.recliner-patch{clip-path:polygon(18% 49%,28% 49%,33% 55%,32% 65%,24% 69%,18% 60%)}
.workshop-patch{clip-path:polygon(58% 41%,64% 41%,67% 47%,67% 55%,64% 61%,58% 61%,57% 51%)}
.stereo-patch{clip-path:polygon(37.8% 17.4%,41.7% 17.4%,41.7% 21.1%,37.8% 21.1%)}
/* Winter's native painting owns both its birdhouse and relocated stereo. */
.james-art[data-season=snow] .stereo-patch{display:none}
.dining-patch{clip-path:polygon(35% 18%,40% 18%,42% 24%,42% 34%,36% 34%,34% 28%)}
/* Keep the original table patch intact and let Dad's cap occlude the radio. */
.james-art[data-room=kitchen] .stereo-patch{clip-path:polygon(37.8% 17.4%,41.7% 17.4%,41.7% 21.1%,39.7% 21.1%,39.7% 19.3%,37.8% 19.3%)}
/* This crop is an 8x view of source pixels x=560..615, y=188..236.
   Only the muzzle is overlaid, preserving the seated pose and head proportions. */
.dad-dining-face{position:absolute;left:36.458333%;top:18.359375%;width:3.580729%;height:4.6875%;image-rendering:pixelated;clip-path:polygon(34.5% 61%,51% 61%,58% 67%,58% 78%,34.5% 78%)}
/* Both greetings are 25% larger than their original approved scales,
   keeping their ground anchors fixed. */
.james-art,.james-hit-layer{--dad-overview-left:49.5%;--dad-overview-top:86.5%;--dad-overview-width:8.875%;--dad-porch-left:51.7%;--dad-porch-top:83.8%;--dad-porch-width:10.875%}
.dad-standing,.dad-porch{position:absolute;transform:translate(-50%,-100%);pointer-events:none}.dad-standing{left:var(--dad-overview-left);top:var(--dad-overview-top);width:var(--dad-overview-width);aspect-ratio:2/3}.dad-standing img,.dad-porch img{position:absolute;inset:0;width:100%;height:100%;display:block}
.dad-ground-shadow{position:absolute;left:34%;bottom:4.5%;width:39%;height:3.5%;border-radius:50%;background:#24190665;filter:blur(1.5px)}
.dad-standing.is-greeting .dad-wave-arm{animation:dad-hello-wave 680ms ease-in-out 3}
.dad-porch{left:var(--dad-porch-left);top:var(--dad-porch-top);width:var(--dad-porch-width);aspect-ratio:1139/1381}.dad-porch .dad-ground-shadow{left:29%;width:36%;bottom:4%}
@keyframes dad-hello-wave{0%,100%{transform:rotate(0)}25%{transform:rotate(-7deg)}75%{transform:rotate(6deg)}}
@media(prefers-reduced-motion:reduce){.dad-standing img,.dad-porch img{animation:none!important}}
.dad-cutout-filter{position:absolute;pointer-events:none}
.james-art .dad-standing img,.james-art .dad-porch img{image-rendering:pixelated;filter:url(#dad-alpha-edge)}
.james-art .dad-wave-body{clip-path:polygon(0 100%,100% 100%,100% 0,36% 0,36% 19%,34% 24%,34% 36%,0 36%)}
.james-art .dad-standing .dad-ground-shadow{bottom:1.2%}
.james-art .dad-wave-arm{clip-path:polygon(0 0,36% 0,36% 36%,0 36%);transform-origin:24% 28.3%}
/* The art layer stays below the dog layer; Dad stands between the mat and dogs. */
.james-art .dad-porch{left:var(--dad-porch-left);top:var(--dad-porch-top)}
.dad-escort-body{clip-path:polygon(32% 0,100% 0,100% 100%,0 100%,0 39%,32% 39%)}
.dad-escort-arm{clip-path:polygon(0 0,32.2% 0,32.2% 39.2%,0 39.2%);transform-origin:32% 33%}
.dad-porch.is-greeting .dad-escort-arm{animation:dad-escort-in 1.25s ease-in-out 2}
@keyframes dad-escort-in{0%,100%{transform:rotate(0)}45%{transform:rotate(6deg)}}
.james-hit-layer{position:absolute;inset:0;pointer-events:none;z-index:2}
.james-hit{position:absolute;display:block;padding:0;margin:0;border:0;background:transparent;color:inherit;pointer-events:auto;cursor:pointer;touch-action:manipulation;min-width:44px;min-height:44px;border-radius:6px}
.james-hit[hidden]{display:none!important}
.james-hit:focus-visible{outline:2px solid #ffe0a6;outline-offset:3px}
.james-hit:is(:hover,:focus-visible) .object-tooltip{opacity:1}
.james-hit .object-tooltip{display:grid;gap:3px;width:220px;max-width:calc(100vw - 32px);white-space:normal;text-align:left;line-height:1.45}
.james-hit .object-tooltip strong{font-weight:600}
.james-hit .dad-activity{font-size:.8125rem;color:#ddd5c6}
.dad-hit-porch{transform:translate(-50%,-100%)}
.dad-hit-porch{left:var(--dad-porch-left);top:var(--dad-porch-top);width:var(--dad-porch-width);aspect-ratio:1139/1381}
.dad-hit-recliner{left:19.5%;top:49%;width:12%;height:16%}
.dad-hit-workshop{left:57.8%;top:41.3%;width:8.3%;height:19%}
.dad-hit-kitchen{left:35.7%;top:19.3%;width:5.5%;height:13.7%}
.world:has(.dad-hit-porch:is(:hover,:focus-visible)) #dad-porch img{filter:url(#dad-alpha-edge) drop-shadow(0 0 3px #ffe0a6)}
/* The painted radio is shallow at portrait scale; retain a 44px touch target. */
@media(pointer:coarse),(max-width:600px){.stage .embedded-stereo{min-width:44px;min-height:44px}}
