.dialog-surface:has(.home-location,.yard-pool) { width: min(650px,calc(100% - 20px)); }
.home-location,.yard-pool { display: grid; gap: 10px; min-width: 0; }
.yard-landscape {
  min-height: clamp(155px,39vw,290px); border-radius: 15px; border: 1px solid #92a87877;
  background: linear-gradient(0deg,#17281e46,transparent 60%), url("./art/yard.webp") center / cover;
  background-size: cover, 135% auto;
}
.home-landscape { background-position: left center; }
.garden-landscape { background-position: right center; }
.yard-destination {
  display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px;
  text-align: start; padding: 12px; color: #fff2cf; background: linear-gradient(125deg,#35533b,#213a2d);
  border: 1px solid #a7c68075; border-radius: 13px; font-size: 18px;
}
.yard-destination span:first-child { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #192d237d; font-size: 25px; }
.yard-destination span:last-child { color: #cfe7a5; padding-inline: 4px; }
.yard-destination:hover,.yard-destination:focus-visible { border-color: #e2dc91; }
.yard-back { justify-self: start; }
.pool-build { display: grid; gap: 9px; }
.pool-build > strong { text-align: center; }
.pool-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.pool-stats > div { display: grid; gap: 4px; padding: 7px; text-align: center; border: 1px solid #829e8866; border-radius: 10px; background: #263b34; }
.pool-stats small,.pool-controls small,.pool-food-choice small { color: #c9e0d4; font-size: 11px; }
.yard-pool progress { appearance: none; display: block; width: 100%; height: 5px; border: 0; border-radius: 8px; background: #1b2c27; accent-color: #9dd5ae; }
.yard-pool progress::-webkit-progress-bar { border-radius: 8px; background: #1b2c27; }
.yard-pool progress::-webkit-progress-value { border-radius: 8px; background: #9dd5ae; }
.yard-pool progress::-moz-progress-bar { border-radius: 8px; background: #9dd5ae; }
.yard-pool progress.danger::-webkit-progress-value { background: #ff8b83; }
.yard-pool progress.danger::-moz-progress-bar { background: #ff8b83; }
.pool-water {
  position: relative; isolation: isolate; overflow: hidden; height: clamp(220px,60vw,315px);
  border: clamp(5px,1.4vw,8px) solid #829677; border-radius: 26px 30px 24px 28px;
  box-shadow: inset 0 0 24px #152f37, 0 3px 0 #293d34, 0 0 0 1px #bdc79470;
  background: radial-gradient(ellipse at 28% 12%,#8bd5c3aa,transparent 61%),
    radial-gradient(ellipse at 85% 80%,#167c83,#0d4c65);
}
.pool-water::before { content: ""; position: absolute; z-index: -1; inset: 0; background: #655127; opacity: var(--murk,0); transition: opacity .6s; }
.pool-ripples {
  position: absolute; z-index: -1; inset: -20%;
  background: repeating-radial-gradient(ellipse at 28% 45%,transparent 0 21px,#daf7d849 23px,transparent 27px 43px);
  opacity: .38; animation: pool-ripples 10s ease-in-out infinite alternate;
}
.pool-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 12px 30px 38px; color: #f1ffeb; text-shadow: 0 2px 5px #07323b; }
.pool-fish-layer { position: absolute; inset: 0; pointer-events: none; }
.pool-fish {
  position: absolute; z-index: 1; translate: -50% -50%;
  left: clamp(22px,var(--swim-x),calc(100% - 22px));
  top: clamp(22px,var(--swim-y),calc(100% - 22px));
  width: 43px; height: 43px; border: 0; border-radius: 50%; padding: 0;
  display: grid; place-items: center; background: transparent; color: #fff;
  font-size: 26px; line-height: 1; cursor: grab; pointer-events: auto; touch-action: none;
  -webkit-touch-callout: none; user-select: none;
  animation: pool-swim var(--swim-time) var(--swim-delay) ease-in-out infinite;
}
.pool-fish > span { filter: drop-shadow(0 2px 3px #142727ad); }
.pool-fish:hover { z-index: 2; background: #eaffd62b; }
.pool-fish.fish-held { animation-play-state: paused; z-index: 3; cursor: grabbing; }
.pool-fish.fish-dragged { opacity: 0; }
.pool-bucket {
  position: absolute; z-index: 4; bottom: 7px; right: 7px; width: 56px; min-height: 53px;
  display: grid; place-items: center; padding: 4px; color: #efffec;
  background: #173843ea; border: 1px solid #b6d9cb81; border-radius: 12px;
}
.pool-bucket > span { display: inline-block; font-size: 27px; line-height: 1; transform-origin: 25% 40%; }
.pool-bucket small { font-size: 10px; }
.pool-bucket.drop-active { border-color: #f09586; box-shadow: 0 0 0 3px #ed857862; }
.pool-bucket.bucket-ready.drop-active { border-color: #d5eea9; box-shadow: 0 0 0 4px #c9eb9266; }
.pool-drag-fish,.pool-release-fish { position: absolute; z-index: 5; pointer-events: none; font-size: 28px; }
.pool-drag-fish { translate: -50% -50%; filter: drop-shadow(0 0 7px #d2ffbf); }
.pool-release-fish { right: 21px; bottom: 25px; }
.pool-detail { border: 1px solid #9ec39966; border-radius: 12px; padding: 10px; background: linear-gradient(130deg,#2d5043,#24382f); color: #eff8e5; }
.pool-detail { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; }
.pool-detail > small { grid-column: 1 / -1; color: #c3dcca; }
.pool-detail-emoji { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #173d37; font-size: 29px; }
.pool-detail-name { display: grid; gap: 5px; text-transform: capitalize; }
.pool-fish-metrics { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; text-transform: none; }
.bucket-view { display: grid; justify-items: center; gap: 13px; }
.bucket-status,.bucket-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.bucket-status > span { padding: 5px 11px; border: 1px solid #84a99868; border-radius: 20px; background: #22443f; color: #eff9f0; }
.bucket-rim {
  position: relative; width: min(100%,270px); aspect-ratio: 1; padding: clamp(14px,5vw,24px);
  display: grid; place-items: center; border-radius: 50%; border: 4px solid #e2b685;
  background: repeating-conic-gradient(from 8deg,#976240 0deg 17deg,#593e2c 18deg 19deg,#b48051 20deg 35deg,#593e2c 36deg 37deg);
  box-shadow: inset 0 0 0 2px #422d26, inset 0 0 17px #301d16, 0 5px 0 #402d25, 0 13px 24px #0006;
}
.bucket-surface {
  isolation: isolate; position: relative; overflow: hidden; width: 100%; aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%; color: #edfcf7;
  background: radial-gradient(ellipse at 27% 20%,#83d0bb,#258f95 49%,#164d65 100%);
  box-shadow: inset 0 0 19px #112a40, 0 0 0 3px #462f24;
}
.bucket-surface::before,.bucket-surface::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.bucket-surface::before { z-index: -1; background: #735335; opacity: calc((1 - var(--bucket-water,1)) * .68); }
.bucket-surface::after { z-index: -1; inset: -25%; background: repeating-radial-gradient(ellipse at 28% 37%,transparent 0 16px,#e4ffe555 18px,transparent 21px 35px); opacity: .42; animation: pool-ripples 8s ease-in-out infinite alternate; }
.bucket-surface > p { margin: 0; text-shadow: 0 2px 5px #153640; }
.bucket-swimmer {
  position: absolute; left: 28%; top: calc(28% + var(--swim-index) * 34%); translate: -50% -50%; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 50%;
  background: transparent; color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
  animation: bucket-swim 5.5s ease-in-out infinite; animation-delay: calc(var(--swim-index) * -1.45s);
}
.bucket-swimmer > span { filter: drop-shadow(0 2px 3px #112a40); }
.bucket-swimmer[aria-pressed="true"],.bucket-swimmer:focus-visible { z-index: 1; }
.bucket-swimmer[aria-pressed="true"]:not(.low-hp),.bucket-swimmer:focus-visible:not(.low-hp) { border-color: #dafff1af; background: #d5f6ff2c; }
.pool-fish.low-hp,.bucket-swimmer.low-hp { background: transparent; }
.pool-fish.low-hp > span,.bucket-swimmer.low-hp > span {
  filter: drop-shadow(1px 0 #ff554d) drop-shadow(-1px 0 #ff554d)
    drop-shadow(0 1px #ff554d) drop-shadow(0 -1px #ff554d);
}
.pool-fish.fish-dead,.bucket-swimmer.fish-dead { animation-play-state: paused; cursor: pointer; }
.fish-dead > span { filter: saturate(.2); opacity: .7; }
.fish-dead::after {
  content: "💀"; position: absolute; right: 0; bottom: 0; font-size: 16px; line-height: 1;
  filter: drop-shadow(0 1px 2px #111);
}
.bucket-card {
  width: 100%; display: grid; justify-items: center; text-align: center; gap: 8px; padding: 11px;
  border: 1px solid #9ec39966; border-radius: 12px; background: linear-gradient(130deg,#2d5043,#24382f); color: #eff8e5;
}
.pond-bucket-button { white-space: nowrap; }
.pool-controls { display: grid; gap: 7px; }
.pool-food-actions,.pool-care-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.pool-control { display: grid; align-content: center; gap: 3px; text-align: start; min-height: 56px; padding: 8px; color: #ecf4de; background: #293d33; border: 1px solid #819d7d70; border-radius: 10px; }
.pool-control:not(:disabled):hover { border-color: #c4e297; }
.pool-control > strong { overflow-wrap: anywhere; }
.pool-food-choice { aspect-ratio: 1; justify-items: center; text-align: center; gap: 6px; background: radial-gradient(ellipse at 50% 30%,#4d6846,#293d33 77%); }
.pool-food-choice > span { font-size: clamp(27px,8vw,40px); line-height: 1; }
.buyer-secret-offer { display: grid; gap: 12px; }
.buyer-secret-card {
  display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 12px;
  padding: 12px; border: 1px solid var(--line); border-radius: 14px;
  background: radial-gradient(ellipse at top left,var(--theme-glow),var(--panel) 75%);
}
.buyer-secret-silhouette {
  display: grid; place-items: center; width: clamp(44px,17vw,64px); aspect-ratio: 1;
  border-radius: 12px; background: var(--rail); font-size: clamp(26px,9vw,38px);
}
.buyer-secret-silhouette { text-shadow: 0 0 8px #aaa6; }
.buyer-secret-silhouette > span { filter: brightness(0) drop-shadow(0 0 2px #a8a8aa); }
@keyframes pool-ripples { to { transform: translate(6%,4%) rotate(4deg); } }
@keyframes bucket-swim {
  0%,100% { left: 28%; transform: scaleX(-1); }
  47% { left: 72%; transform: translateY(9px) scaleX(-1); }
  53% { left: 72%; transform: translateY(9px) scaleX(1); }
  97% { transform: scaleX(1); }
}
@keyframes pool-swim {
  20% { left: clamp(22px,var(--swim-x1),calc(100% - 22px)); top: clamp(22px,var(--swim-y1),calc(100% - 22px)); }
  40% { left: clamp(22px,var(--swim-x2),calc(100% - 22px)); top: clamp(22px,var(--swim-y2),calc(100% - 22px)); }
  60% { left: clamp(22px,var(--swim-x3),calc(100% - 22px)); top: clamp(22px,var(--swim-y3),calc(100% - 22px)); }
  80% { left: clamp(22px,var(--swim-x4),calc(100% - 22px)); top: clamp(22px,var(--swim-y4),calc(100% - 22px)); }
}
@media (prefers-reduced-motion: reduce) { .pool-fish,.pool-ripples,.bucket-surface::after,.bucket-swimmer { animation: none; } }
