/* Build the right dog (/right-dog, Luke's note #70): his puzzle dog on its own cream paper, the
   pieces as buttons laid over the drawing, the one in focus orange and lifted out of the dog. */
.build-dog{background:#f7f3e8;color:#2b2b2b;text-align:center}
.build-dog h2,.build-dog .lede{color:#2b2b2b}
.build-dog .lede{margin:0 auto 8px;max-width:30em}
.bd-stage{position:relative;width:min(100%,520px);margin:0 auto;aspect-ratio:1}
.bd-base{display:block;width:100%;height:100%}
.bd-piece{position:absolute;padding:0;margin:0;border:0;background:none;cursor:pointer;opacity:.55;
  transition:opacity .25s ease,transform .35s cubic-bezier(.3,1.6,.5,1),filter .35s ease;-webkit-tap-highlight-color:transparent}
.bd-piece img{display:block;width:100%;height:100%;pointer-events:none}
.bd-piece.on{opacity:1;transform:translate(var(--dx),var(--dy)) scale(1.08);filter:drop-shadow(0 8px 8px rgba(43,43,43,.35));z-index:2}
.bd-piece:focus-visible{outline:2px dashed #d47a3a;outline-offset:2px;opacity:.6}
.bd-row{display:flex;align-items:center;justify-content:center;gap:20px;width:min(100%,520px);margin:12px auto 0}
.bd-arrow{flex:none;width:52px;height:52px;border-radius:50%;border:2px solid #2b2b2b;background:#fff;color:#2b2b2b;display:grid;place-items:center;cursor:pointer}
.bd-arrow:active{background:#d47a3a}
.bd-cards{display:grid;width:min(100%,640px);margin:14px auto 0;text-align:left}
.bd-card{grid-area:1/1}
.bd-card.off{visibility:hidden}
.bd-card h3{margin:2px 0 4px;color:#c4601f;font-size:1.35rem;text-transform:uppercase}
.bd-card p{margin:0;color:#2b2b2b;font-size:1rem;line-height:1.45}
.bd-n{min-width:3.5em;font-size:.75rem;letter-spacing:.18em;color:#6b6b6b;text-align:center}
/* Ara's note #72: the 3D dog (dog3d.js) takes the stage; sideways drags turn it, the page still scrolls. */
.bd-3d{display:block;width:100%;height:100%;touch-action:pan-y;cursor:grab;-webkit-tap-highlight-color:transparent}
.bd-3d:active{cursor:grabbing}
.build-dog.is-3d .bd-base,.build-dog.is-3d .bd-piece{display:none}
@media (prefers-reduced-motion:reduce){.bd-piece{transition:none}}
/* Luke's note #71: the puzzle dog opens /right-dog in place of the header; the page name rides above it. */
.build-dog .bd-eyebrow{line-height:1.3;margin:0 0 6px;font-size:.8rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:#c4601f}
/* 2026-12-01 (Ara): the stage is a film now, the heirloom wooden puzzle dog, one clip per arrow (/media/rd-N.mp4). */
.bd-stage.bd-film{width:min(100%,760px);aspect-ratio:16/9}
.bd-video{display:block;width:100%;height:100%;object-fit:cover;border-radius:10px;background:#e9e6df}
/* 2026-12-04 (Ara): his flat dog in six parts (functions/_flatdog.js) replaces the film; each arrow flies one part in.
   No numbers on the parts (Luke's note #193). A waiting part sits small and tilted at the side of the stage. */
.bd-stage.bd-flat{width:min(100%,760px);aspect-ratio:16/9}
.bd-dog{display:block;width:100%;height:100%;overflow:visible}
.bd-part{transform-box:fill-box;transform-origin:center;transition:transform .85s cubic-bezier(.3,1.25,.45,1)}
.bd-part.loose{transform:translate(var(--lx),var(--ly)) rotate(var(--lr)) scale(var(--ls))}
.bd-dog.still .bd-part{transition:none}
/* the whole dog wags its tail once the last part is on */
.bd-dog.whole .bd-part[data-i="4"]{transform-origin:85% 95%;animation:bd-wag .32s ease-in-out 4 alternate}
@keyframes bd-wag{from{transform:rotate(0)}to{transform:rotate(-9deg)}}
@media (prefers-reduced-motion:reduce){.bd-part{transition:none}.bd-dog.whole .bd-part[data-i="4"]{animation:none}}
