/* landscape: the living hills at the bottom of the hero (built by landscape.js) */
.hero {
  --land-pad: clamp(150px, 14vw, 250px);              /* room under the chips for the dunes */
  --land-rise: clamp(28px, 4.6vw, 96px);               /* the side crests rise this far above it */
  --land-head: 90px;                                    /* headroom for antlers, flowers, gusts */
  padding-bottom: var(--land-pad);
}
@media (max-width: 760px) {
  .hero { --land-pad: 150px; --land-rise: 24px; --land-head: 70px; }
}

.landscape {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1;
  height: calc(var(--land-pad) + var(--land-rise) + var(--land-head));
  pointer-events: none; overflow: hidden; contain: strict;
  -webkit-user-select: none; user-select: none;
}
.landscape .ld {
  position: absolute; left: -24px; top: 0; width: calc(100% + 48px); height: 100%;
  overflow: visible; display: block;
}
.landscape .ld.mv { will-change: transform; }

/* the deer can be startled: show a hand over them (hit-tested in landscape.js) */
html.deer-hover, html.deer-hover body, html.deer-hover .hero { cursor: pointer; }

/* sound toggle (audio.js): a small round button, bottom right */
.sound-toggle {
  position: fixed; z-index: 30;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(33, 66, 55, .92); color: var(--pink, #f4cbcf);
  border: 1px solid rgba(244, 203, 207, .38);
  box-shadow: 0 4px 14px rgba(10, 24, 18, .28);
  transition: background .25s, border-color .25s, transform .2s;
}
.sound-toggle:hover { background: rgba(33, 66, 55, .95); border-color: rgba(244, 203, 207, .7); }
.sound-toggle:active { transform: scale(.94); }
.sound-toggle:focus-visible { outline: 2px solid var(--pink, #f4cbcf); outline-offset: 3px; }
.sound-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle .spk { fill: currentColor; stroke: none; }
.sound-toggle .slash { opacity: 0; transition: opacity .2s; }
.sound-toggle .waves { transition: opacity .2s; }
.sound-toggle.off .waves { opacity: 0; }
.sound-toggle.off .slash { opacity: 1; }
.sound-toggle.off { color: rgba(244, 203, 207, .75); }
@media (prefers-reduced-motion: reduce) { .sound-toggle { transition: none; } }
