/* The bird is anchored in page coordinates. Only its small tap target receives input. */
body { position: relative; }
#ptarmigan-stage {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: clip;
  pointer-events: none;
}
#ptarmigan {
  --bird-width: clamp(80px, 8vw, 108px);
  position: absolute;
  top: 0;
  left: 0;
  width: var(--bird-width);
  height: calc(var(--bird-width) * .72);
  padding: 0;
  border: 0;
  border-radius: 46%;
  color: inherit;
  background: transparent;
  pointer-events: auto;
  touch-action: manipulation;
  transform-origin: 0 0;
}
#ptarmigan:active { translate: none; }
#ptarmigan[data-pose="reward"] { pointer-events: none; }
#ptarmigan:focus-visible {
  outline: 2px dashed #d69f4c;
  outline-offset: 0;
  background: #20382824;
}
#ptarmigan canvas {
  position: absolute;
  bottom: -16.2%;
  left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 6/5;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px #13251fc0);
}
#ptarmigan[data-facing="left"] canvas { transform: scaleX(-1); }
#bird-toggle {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: 0 .65rem;
  border: 0;
  color: #fff8e5;
  background: transparent;
  font-size: .72rem;
  font-weight: 650;
  isolation: isolate;
}
#bird-toggle::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 7px 0;
  border-radius: 18px;
  background: #182d26eb;
  border: 1px solid #e4dccd70;
}
#bird-toggle:hover::before { background: #254332; }
#bird-toggle svg { width: 1rem; height: 1rem; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#bird-toggle[aria-pressed="true"] svg { fill: #f5e3bc3b; }
.lake-art .lake-place {
  position: relative;
  isolation: isolate;
  padding-inline: .55rem;
  min-width: 0;
  text-decoration: none;
}
.lake-art .lake-place::before {
  position: absolute;
  content: '';
  inset: 6px 0;
  z-index: -1;
  border: 1px solid #e5ddc574;
  border-radius: 4px;
  background: #1c3028df;
}
.lake-art .lake-place:hover { text-decoration: underline; }
.ptarmigan-feather {
  position: absolute;
  width: 13px;
  height: 15px;
  fill: #f7f0dc;
  stroke: #596150;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
#ptarmigan[data-pose="reward"] canvas { animation: ptarmigan-caught .78s both; }
@keyframes ptarmigan-caught {
  0%, 48% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #ptarmigan[data-pose="reward"] canvas { animation: none; }
}

@media (max-width: 700px) {
  .lake-art .lake-place { letter-spacing: -.015em; white-space: nowrap; padding-inline: .35rem; gap: .15rem; font-size: .76rem; }
}
@media (max-width: 365px) {
  .lake-art .lake-place svg { display: none; }
}
