.adoption, .vineyard { --plum: #673858; --leaf-ink: #3f5b45; }
.adoption { padding: 0; overflow: hidden; background: #fffcf4; }
.adoption-scene { height: clamp(100px, 23vw, 170px); background: url("./garden/farm-0.webp") center 21% / cover; }
.adoption form { padding: 18px clamp(14px, 4vw, 28px); }
.adoption h1, .yard-header h1 { color: var(--plum); font-size: clamp(1.35rem, 5.5vw, 1.9rem); margin: 0; letter-spacing: -.04em; }
.adoption p, .yard-header p { margin: 6px 0 14px; color: #655d60; font-size: .88rem; }
.pet-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; border: 0; padding: 0; margin: 12px 0; }
.pet-choices legend { position: absolute; clip-path: inset(50%); }
.pet-choices label { position: relative; }
.pet-choices input { position: absolute; opacity: 0; }
.pet-choices span { display: grid; justify-items: center; padding: 8px 0; border-radius: 14px; border: 2px solid #e8ded1; cursor: pointer; background: #fcf7ea; font-weight: 750; }
.pet-choices img { width: 84%; max-width: 110px; aspect-ratio: 1; object-fit: contain; }
.pet-choices input:checked + span { background: #f3e8f3; border-color: var(--plum); color: var(--plum); }
.pet-choices input:focus-visible + span { outline: 3px solid var(--plum); }
.pet-name { display: grid; gap: 6px; font-weight: 700; font-size:.87rem; }
.pet-name input { width: 100%; padding: 12px; border: 1px solid #c5b8bb; border-radius: 12px; }
.adoption form > button { display: block; margin: 12px auto 0; }
.app-shell:has(.adoption) .bottom-nav { display: none; }
#app:has(.adoption) { padding-bottom: 14px; }
.yard-header, .yard-links { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.yard-header { padding: 4px 2px 11px; }
.yard-header p { margin: 4px 0 0; overflow-wrap: anywhere; }
.yard-header > span { font-size: .76rem; border-radius: 20px; background: #ede3ee; color: var(--plum); padding: 6px 10px; font-weight: 750; white-space: nowrap; }
.yard-stage { position: relative; isolation: isolate; width: 100%; height: clamp(245px, 47svh, 500px); overflow: hidden; background: #c6c88a; border: 1px solid #e2d8c5; border-radius: 22px; touch-action: pan-y; }
.yard-stage.luring { touch-action: none; }
.yard-land { position: absolute; inset: 0; background-position: center 38%; background-size: cover; }
.yard-pet { position: absolute; left: 50%; top: 73%; width: var(--pet-size); max-width: 160px; min-width: 65px; aspect-ratio: 1; z-index: 2; transform: translate(-50%,-100%); transition: left var(--travel,0ms) ease-in-out, top var(--travel,0ms) ease-in-out; border: 0; padding: 0; background: transparent; cursor: pointer; touch-action: manipulation; }
.yard-pet::before { position: absolute; content: ""; bottom: 4%; left: 12%; width: 72%; height: 10%; border-radius: 50%; background: #453d2f38; filter: blur(2px); }
.yard-pet { -webkit-tap-highlight-color: transparent; user-select: none; border-radius: 50%; }
.yard-pet:focus:not(:focus-visible) { outline: none; }
.pet-direction { position: relative; display: block; transform: scaleX(var(--flip,1)); }
.pet-direction > img { display: block; width: 100%; pointer-events: none; }
.yard-pet.walking .pet-direction { animation: yard-trot .32s ease-in-out infinite alternate; }
.yard-pet.delighted .pet-direction > img { animation: yard-wiggle .38s ease-in-out infinite alternate; }
.pet-hearts { opacity: 0; position: absolute; top: 0; left: 16%; color: #c32d69; text-shadow: 0 1px white; white-space: nowrap; }
.delighted .pet-hearts { animation: pet-love .95s ease-out infinite; }
.carried-toy { position: absolute; left: 87%; top: 46%; transform: translate(-50%,-50%); pointer-events: none; }
.yard-bubble { position: absolute; z-index: 5; pointer-events: none; }
.yard-bubble:not(:empty) { width: max-content; max-width: calc(100% - 12px); padding: 7px 12px; border-radius: 14px; background: #fffdf2; color: #493247; font-size: .85rem; font-weight: 650; box-shadow: 0 2px 8px #58443224; }
.yard-bubble:not(:empty)::after { content: ""; position: absolute; left: var(--tail-x,50%); top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top: 7px solid #fffdf2; border-bottom: 0; }
.yard-water { opacity: 0; position: absolute; z-index: 4; top: 11%; left: 9%; width: clamp(92px,32%,155px); height: auto; pointer-events: none; }
.watering .yard-water { opacity: 1; animation: water-pour 1.5s ease both; }
.can-spray { stroke-dasharray: 3 4; }
.watering .can-spray { animation: pet-rain .48s linear infinite; }
.tool-art { display: block; object-fit: contain; width: 37px; height: 27px; }
.yard-prop img { display: block; width: 31px; height: auto; }
.yard-prop img[src$="food-bowl.webp"] { width: clamp(45px,13vw,67px); }
.fetch-toy { display: block; width: 31px; height: 31px; }
.yard-prop { position: absolute; z-index: 3; transform: translate(-50%, -70%); pointer-events: none; font-size: 1.6rem; }
.yard-prop.food-dish { z-index: 1; }
.yard-tools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 10px 0 0; }
.yard-tools button { display: grid; align-content: center; justify-items: center; gap: 2px; padding: 6px 2px; min-height: 60px; border-radius: 13px; border: 1px solid #d8c9da; background: #f8f0fa; color: var(--plum); font-size: .86rem; font-weight: 700; cursor: pointer; }
.yard-tools b { font-size: 1.05rem; line-height: 1; }
.yard-tools small { font-size: .7rem; }
.yard-tools button:disabled { background: #f2efeb; color: #71686f; border-color: #dfdad7; cursor: default; }
.yard-note { font-size: .79rem; color: #655e65; margin: 8px 2px; line-height: 1.55; }
.yard-links { margin: 10px 0; }
.yard-links .text-button, .yard-calendar button { min-height:44px; }
.yard-calendar { padding: 12px 16px; }
.yard-calendar summary { cursor: pointer; font-weight: 700; padding-block: 5px; }
.calendar-body header { display: flex; justify-content: space-between; align-items: center; }
.calendar-body button { border: 0; background: transparent; font-size: 1.5rem; min-width: 44px; }
.stamp-grid { display: grid; grid-template-columns: repeat(7,1fr); justify-items: center; gap: 4px; }
.stamp-grid small { color: #686168; }
.stamp-grid .day { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: .8rem; }
.day[aria-current] { outline: 1px solid var(--plum); }
.day.complete { background: var(--plum); color: white; }
.day.attended { background: #ecd9ef; color: #542e57; }
.calendar-body p { font-size:.78rem; color:#655e65; margin:10px 0 0; }
@keyframes pet-love { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(-20px); } }
@keyframes yard-trot { to { translate:0 -4px; } }
@keyframes yard-wiggle { from { transform:rotate(-5deg); } to { transform:rotate(5deg); } }
@keyframes pet-rain { to { stroke-dashoffset:-21; } }
@keyframes water-pour { 0%,100% { opacity:0; transform:translateY(-4px) rotate(6deg); } 20%,80% { opacity:1; transform:rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) {
  .vineyard *, .vineyard *::before { animation:none !important; transition:none !important; }
  .delighted .pet-hearts { opacity:1; }
}
