.field-animation {
  padding: 0;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.field-animation:focus-visible {
  outline: 2px dashed #e7a85a;
  outline-offset: 3px;
}

.field-sprite {
  position: absolute;
  display: block;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.lake-art .lake-pixel { background: transparent; }
.lake-art .lake-pixel:active, .field-animation:active { translate: none; }

.fish-scene {
  position: absolute;
  z-index: 3;
  right: 13%;
  bottom: 34%;
  width: 58px;
  height: 50px;
  pointer-events: none;
}

.fish-game {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

.fish-float {
  bottom: 6px;
  left: 22px;
  width: 14px;
  filter: drop-shadow(1px 1px 0 #182a29a6);
  transform-origin: center bottom;
}

.fish-jump { bottom: 8px; left: 12px; width: 38px; opacity: 0; }
.fish-splash { bottom: 3px; left: 12px; width: 34px; opacity: 0; }

.fish-feedback {
  position: absolute;
  right: 0;
  bottom: -19px;
  color: #fff6e5;
  white-space: nowrap;
  font-size: .77rem;
  line-height: 1.2;
  text-align: right;
}

.fish-feedback:not(:empty) {
  padding: 4px 7px;
  border-radius: 4px;
  background: #172c29ef;
}

.fish-game[data-state="nibbles"] .fish-float { animation: float-cast 1.42s both; }
.fish-game[data-state="bite"] .fish-float { transform: translateY(8px); opacity: .67; }
.fish-game[data-state="bite"] .fish-splash { animation: fish-ripple .49s ease-out both; }
.fish-game[data-state="miss"] .fish-float { animation: float-release .36s ease-out both; }
.fish-game[data-state="caught"] .fish-float { animation: float-return .93s both; }
.fish-game[data-state="caught"] .fish-jump { animation: fish-leap .89s both; }
.fish-game[data-state="caught"] .fish-splash { animation: fish-splash .9s both; }

@keyframes float-cast {
  0% { transform: translate(-17px, -18px) rotate(-18deg); }
  14% { transform: translateY(4px) rotate(9deg); }
  29%, 43%, 67%, 88% { transform: none; }
  49%, 57% { transform: translateY(3px) rotate(7deg); }
  74%, 80% { transform: translateY(5px) rotate(-10deg); }
  100% { transform: translateY(8px); opacity: .67; }
}

@keyframes float-release {
  0% { transform: translateY(8px); opacity: .67; }
  55% { transform: translateY(-3px) rotate(-8deg); }
  100% { transform: none; opacity: 1; }
}

@keyframes float-return {
  0%, 79% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fish-leap {
  0% { opacity: 0; transform: translate(-8px, 7px) rotate(-45deg); }
  16% { opacity: 1; transform: translate(-12px, -12px) rotate(-31deg); }
  43% { transform: translate(-24px, -35px) rotate(-14deg); }
  56% { transform: translate(-34px, -37px) rotate(9deg); }
  77% { opacity: 1; transform: translate(-51px, -14px) rotate(52deg); }
  100% { opacity: 0; transform: translate(-56px, 10px) rotate(62deg); }
}

@keyframes fish-splash {
  0% { opacity: .92; transform: scale(.5); }
  25% { opacity: .7; transform: translateY(-6px) scale(1); }
  55%, 73% { opacity: 0; transform: translate(-48px, 2px); }
  84% { opacity: .95; transform: translate(-50px, -3px) scale(.8); }
  100% { opacity: 0; transform: translate(-50px, -6px) scale(1.4, .78); }
}

@keyframes fish-ripple {
  from { opacity: .8; transform: scale(.6, .37); }
  to { opacity: 0; transform: scale(1.6, .66); }
}

.shelter-door {
  position: absolute;
  z-index: 3;
  top: 30%;
  right: 9%;
  width: clamp(106px, 15vw, 166px);
  aspect-ratio: 146 / 79;
  isolation: isolate;
}
.shelter-icon { inset: 0; width: 100%; }
.shelter-glow {
  position: absolute;
  inset: -18% 18% -17% -12%;
  background: radial-gradient(ellipse, #ffd38868, #eeac6439 30%, transparent 68%);
  pointer-events: none;
}
.shelter-door:not([hidden]) .shelter-glow { animation: lantern-bloom 2.2s ease-out both; }

.campfire {
  position: absolute;
  bottom: 17%;
  left: 82%;
  width: 16%;
  aspect-ratio: 33 / 46;
  transform: translateX(-50%);
  pointer-events: none;
}
.campfire::before {
  position: absolute;
  content: "";
  inset: 10% -105% -27%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 70%, #ffbb6659, #eb824130 40%, transparent 68%);
}
.campfire::after {
  position: absolute;
  content: "";
  bottom: 4%;
  left: 25%;
  width: 50%;
  height: 7%;
  border-radius: 50%;
  background: #ff8c51;
  box-shadow: 0 0 8px #fa7a3eaa;
}
.campfire-flame {
  z-index: 1;
  width: 100%;
  bottom: 0;
  transform-origin: 50% 94%;
  filter: drop-shadow(0 1px 4px #fa8958b3);
}
.shelter-door:not([hidden]) .campfire-flame, .shelter-scene[open] .campfire-flame {
  animation: fire-catch 5.4s ease-in-out both;
}
.shelter-door:not([hidden]) .campfire::before, .shelter-scene[open] .campfire::before {
  animation: lantern-bloom 5.4s ease-in-out both;
}

.campfire-sparks {
  position: absolute;
  z-index: 1;
  left: 48%;
  bottom: 24%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #ffda87;
  box-shadow: 7px -8px #fca963bb, -4px -12px #ffd78e77;
  opacity: 0;
}
.shelter-door:not([hidden]) .campfire-sparks, .shelter-scene[open] .campfire-sparks {
  animation: embers-rise 2.1s 2.2s ease-out both;
}

@keyframes lantern-bloom {
  0% { opacity: 0; transform: scale(.55); }
  37% { opacity: .38; }
  78% { opacity: .95; transform: scale(1.05); }
  100% { opacity: .91; transform: scale(1); }
}

@keyframes fire-catch {
  0%, 12% { opacity: .34; transform: scale(.41, .08); }
  26% { opacity: .75; transform: skewX(-7deg) scale(.53, .30); }
  34% { transform: skewX(6deg) scale(.58, .21); }
  47% { opacity: .88; transform: skewX(-4deg) scale(.69, .48); }
  60% { transform: skewX(6deg) scale(.74, .57); }
  74% { opacity: .95; transform: skewX(-7deg) scale(.91, .80); }
  87% { transform: skewX(5deg) scale(.97, .91); }
  95% { transform: skewX(-3deg) scale(.94, 1.04); }
  100% { opacity: 1; transform: none; }
}

@keyframes embers-rise {
  0% { opacity: 0; transform: none; }
  29% { opacity: .95; }
  100% { opacity: 0; transform: translate(7px,-27px); }
}

dialog.shelter-scene {
  overflow: hidden;
  width: min(92vw, 568px);
  max-height: min(90dvh, 500px);
  max-width: none;
  margin: auto;
  padding: 0;
  border: 2px solid #9a9f94;
  border-radius: 11px;
  background: #263a55;
}
.shelter-scene[open] { animation: shelter-open .39s cubic-bezier(.2,.75,.2,1) both; }
.shelter-scene::backdrop { background: #0b1d25cc; }
.shelter-frame { position: relative; isolation: isolate; }
.shelter-frame canvas { display: block; width: 100%; height: auto; }
.shelter-frame .campfire { left: 70.4%; bottom: 22.8%; width: 12%; }

.shelter-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border-radius: 5px;
  color: #fff7e5;
  background: #243950ed;
  font: 1.6rem/1 system-ui, sans-serif;
}
.shelter-close:hover { background: #344f63; }

@keyframes shelter-open {
  from { opacity: 0; transform: translateY(7px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.clam-scene { margin: .2rem 0 .5rem; }
.clam-game {
  position: relative;
  display: block;
  width: 92px;
  height: 58px;
  background: transparent;
  border-radius: 6px;
}
.clam-sand { bottom: 0; left: 2px; width: 88px; }
.clam-shell { left: 28px; bottom: 14px; width: 34px; opacity: 0; }
.clam-squirt { left: 28px; bottom: 36px; width: 34px; opacity: 0; }
.clam-bubble {
  position: absolute;
  left: 43px;
  bottom: 23px;
  width: 4px;
  height: 4px;
  background: #52969b;
  box-shadow: -2px 2px #a5d2cc, 2px -2px #fdf6e4, 0 -7px #83b6b8;
}
.clam-game[data-state="squirt"] .clam-bubble { opacity: 0; }
.clam-game[data-state="squirt"] .clam-sand { animation: clam-rustle .26s steps(3, end) both; }
.clam-game[data-state="squirt"] .clam-shell { animation: clam-peek 1.48s both; }
.clam-game[data-state="squirt"] .clam-squirt { animation: clam-squirt .53s .21s both; }

@keyframes clam-rustle {
  0%, 100% { translate: 0; }
  24% { translate: -2px; }
  58% { translate: 2px; }
}
@keyframes clam-peek {
  0%, 12% { opacity: 0; transform: translateY(8px) scaleY(.68); }
  23% { opacity: 1; transform: translateY(-6px) scaleY(1.11); }
  35%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(8px) scaleY(.68); }
}
@keyframes clam-squirt {
  0% { opacity: .9; transform: translateY(10px) scale(.29, .63); }
  24% { transform: translateY(-8px) scale(.62, 1.2); }
  47% { opacity: 1; transform: translateY(-14px) scale(.91, 1); }
  100% { opacity: 0; transform: translateY(6px) scale(1.35, .56); }
}

.tea-note { display: grid; grid-template-columns: minmax(0, 1fr) 56px; align-items: center; gap: .75rem; }
.tea-scene { display: block; }
.tea-game {
  position: relative;
  display: block;
  width: 56px;
  height: 62px;
  background: transparent;
  border-radius: 6px;
}
.tea-mug { left: 4px; bottom: 5px; width: 48px; }
.tea-fill { left: 4px; bottom: 27px; width: 48px; opacity: 0; }
.tea-flask {
  left: 2px;
  bottom: 39px;
  width: 24px;
  opacity: 0;
  transform-origin: 45% 27%;
}
.tea-stream {
  position: absolute;
  left: 22px;
  bottom: 36px;
  width: 5px;
  height: 16px;
  border-radius: 45%;
  opacity: 0;
  background: #ac3954;
  box-shadow: inset 2px 0 #e06c6b;
  transform-origin: center top;
}
.tea-steam {
  position: absolute;
  left: 19px;
  bottom: 37px;
  width: 4px;
  height: 4px;
  opacity: 0;
  background: #8ea8a4;
  border-radius: 50%;
  filter: blur(.6px);
  box-shadow: 3px -4px #83a6a3, 3px -8px #afc3ba, 10px 1px #9dc0b1, 13px -3px #a0bcb1;
}
.tea-game[data-state="pouring"] .tea-mug { animation: tea-settle .34s both; }
.tea-game[data-state="pouring"] .tea-fill { animation: tea-fill .75s .35s both; }
.tea-game[data-state="pouring"] .tea-flask {
  left: 2px;
  bottom: 39px;
  width: 24px;
  opacity: 0;
  transform-origin: 45% 27%;
}
.tea-stream { animation: tea-pour .78s .13s both; }
.tea-game[data-state="pouring"] .tea-steam { animation: tea-steam .68s .87s steps(7, end) both; }
.tea-game[data-state="served"] .tea-fill { opacity: 1; }

@keyframes tea-settle {
  0%, 100% { translate: 0; }
  45% { translate: 0 2px; }
}
@keyframes tea-tip {
  0% { opacity: 0; transform: translate(-7px,-8px) rotate(14deg); }
  13% { opacity: 1; transform: translate(11px, 0) rotate(98deg); }
  26%, 78% { opacity: 1; transform: translate(12px, 1px) rotate(116deg); }
  100% { opacity: 0; transform: translate(-6px,-9px) rotate(22deg); }
}
@keyframes tea-pour {
  0% { opacity: 1; transform: scaleY(0); }
  21%, 72% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: translateY(16px) scaleY(.2); }
}
@keyframes tea-fill {
  0% { opacity: 1; clip-path: inset(0 38% 0 44%); }
  85%, 100% { opacity: 1; clip-path: inset(0); }
}
@keyframes tea-steam {
  0% { opacity: 0; transform: translateY(4px); }
  30% { opacity: .8; }
  100% { opacity: 0; transform: translate(5px, -12px); }
}

@media (max-width: 700px) {
  .shelter-door { right: 4%; top: 17%; }
  .fish-scene { right: 8%; bottom: 35%; }
  .fish-feedback { bottom: auto; top: -16px; }
  .tea-note { gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .field-animation *, .field-animation, .shelter-scene, .shelter-scene *,
  .shelter-scene *::before, .shelter-scene *::after,
  .field-animation .campfire::before { animation: none !important; }
  .fish-game[data-state="caught"] .fish-jump,
  .clam-game[data-state="squirt"] .clam-shell { opacity: 1; }
  .fish-game[data-state="caught"] .fish-float { opacity: 0; }
}

.ptarmigan-catch {
  z-index: 7;
  width: 80px;
  height: 64px;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  border-radius: 45%;
  background: transparent;
  cursor: grab;
  touch-action: none;
}
.ptarmigan-catch:active { translate: none; }
.ptarmigan-catch.dragging { cursor: grabbing; }
.ptarmigan-catch canvas {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(1px 3px 1px #26352a78);
  transform: rotate(calc(62deg * var(--flop-direction, 1))) scale(1.04, .83);
}
.ptarmigan-catch[data-state="flop"] canvas { animation: caught-flop .88s both; }
.ptarmigan-catch.dragging canvas { transform: rotate(26deg) scale(.99); }
.ptarmigan-catch[data-state="ready"]:not(.dragging)::after {
  content: "Drag to skillet";
  position: absolute;
  z-index: 1;
  top: 91%;
  left: 50%;
  transform: translateX(-50%);
  padding: .27rem .39rem;
  border-radius: 4px;
  color: #fff7e5;
  background: #22382cf2;
  font-size: .73rem;
  line-height: 1.1;
  white-space: nowrap;
  pointer-events: none;
}
.ptarmigan-catch[data-state="land-in-pan"] { pointer-events: none; }
.ptarmigan-catch[data-state="land-in-pan"] canvas { animation: bird-in-pan .52s both; }
@keyframes caught-flop {
  0% { transform: translateY(-25px) rotate(0) scale(1.03, .90); }
  15% { transform: translateY(calc(-1 * var(--flop-height))) rotate(calc(19deg * var(--flop-direction))) scale(.96, 1.09); }
  31% { transform: translateY(calc(-1.08 * var(--flop-height))) rotate(calc(38deg * var(--flop-direction))); }
  59% { transform: translateY(2px) rotate(calc(77deg * var(--flop-direction))) scale(1.16, .68); }
  71% { transform: translateY(-10px) rotate(calc(53deg * var(--flop-direction))) scale(.99, .94); }
  84% { transform: translateY(1px) rotate(calc(66deg * var(--flop-direction))) scale(1.08, .78); }
  100% { transform: rotate(calc(62deg * var(--flop-direction))) scale(1.04, .83); }
}
@keyframes bird-in-pan {
  0% { opacity: 1; transform: translateY(-12px) rotate(44deg) scale(.88); }
  35% { opacity: 1; transform: translateY(3px) rotate(65deg) scale(.65, .50); }
  100% { opacity: 0; transform: translateY(6px) rotate(62deg) scale(.42, .36); }
}
.about-hearth { width: min(100%, 362px); margin: .85rem auto 0; }
.about-skillet {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 362 / 266;
  padding: 0;
  border: 0;
  border-radius: 48% 44% 47% 48%;
  background: transparent;
  cursor: pointer;
}
.about-skillet:active { translate: none; }
.skillet-quip {
  margin: .2rem 0 0;
  color: var(--green);
  font-size: .95rem;
  text-align: center;
}
.skillet-quip:empty { margin: 0; }
.skillet-logs { left: 5%; bottom: 2%; width: 64%; }
.skillet-flame {
  bottom: 14%;
  width: 19%;
  transform-origin: 50% 91%;
  opacity: .91;
  filter: drop-shadow(0 1px 6px #f18c4e8c);
}
.skillet-flame-left { left: 10%; transform: rotate(-9deg); }
.skillet-flame-right { left: 36%; width: 17%; transform: rotate(11deg); }
.about-skillet[data-fire] .skillet-flame {
  animation: skillet-flicker 1.5s ease-in-out 3;
}
.about-skillet[data-fire] .skillet-flame-right {
  animation-direction: alternate-reverse;
}
@keyframes skillet-flicker {
  0%, 100% { scale: 1; }
  27% { scale: .86 1.12; }
  58% { scale: 1.1 .89; }
  75% { scale: .96 1.06; }
}
.about-skillet:focus-visible {
  outline: 2px solid #a57947;
  outline-offset: 3px;
}
.about-skillet.drop-ready {
  background: radial-gradient(ellipse, #e8bc793d, transparent 70%);
}
.skillet-iron { width: 95%; bottom: 21%; left: 2%; }
.skillet-roast { width: 36%; bottom: 44%; left: 16%; opacity: 0; }
.about-skillet[data-state="cooking"] .skillet-roast { animation: skillet-serve .55s .25s both; }
.about-skillet[data-state="cooked"] .skillet-roast { opacity: 1; }
.skillet-steam {
  position: absolute;
  width: 13px;
  height: 18px;
  bottom: 51%;
  left: 25%;
  border-radius: 50%;
  background: #f8f1dd;
  box-shadow: 13px 4px #fcf3db, -9px 7px #f5e7d2;
  filter: blur(3px);
  opacity: 0;
  pointer-events: none;
}
.about-skillet[data-state="cooking"] .skillet-steam { animation: skillet-steam .8s ease-out both; }
@keyframes skillet-serve {
  0% { opacity: 0; transform: translateY(4px) scale(.81); }
  67% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: none; }
}
@keyframes skillet-steam {
  0% { opacity: 0; transform: translateY(4px) scale(.72); }
  45% { opacity: .95; }
  100% { opacity: 0; transform: translate(7px,-19px) scale(1.43); }
}
@media (prefers-reduced-motion: reduce) {
  .ptarmigan-catch canvas, .about-skillet * { animation: none !important; }
  .ptarmigan-catch[data-state="land-in-pan"] canvas { opacity: 0; }
}
