html {
  scroll-behavior: auto;
}

.reviews-signature {
  margin: 22px 0 2px;
  font: 500 2.375rem/1.18 var(--font-display);
  text-transform: uppercase;
}

.home-hero {
  min-height: calc(100svh - var(--header-height));
}

.home-hero__picture {
  display: contents;
}

.home-hero__picture .home-hero__art {
  object-position: 78% center;
}

@media (min-width: 761px) {
  .home-hero__picture .home-hero__art {
    inset-block: -6.5%;
    height: 113%;
  }
}

@media (max-width: 760px) {
  .home-hero__picture .home-hero__art {
    object-position: 70% center;
  }
}

.home-hero h1 {
  font-size: clamp(4rem, 8.75vw, 7.875rem);
  text-wrap: balance;
}

.home-hero__scroll {
  right: 30px;
  min-height: 44px;
}

.m-enter .home-hero__copy {
  animation: hero-entrance 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes hero-entrance {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.quest-card--home {
  transition: transform 180ms ease, border-color 180ms ease;
}

.quest-card--home:hover {
  transform: translateY(-2px);
}

.quest-card--home .quest-card__picture img {
  transition: transform 260ms ease;
}

.quest-card--home:hover .quest-card__picture img {
  transform: scale(1.025);
}

.home-fear-item {
  position: relative;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.home-fear-item:has(:checked) {
  background: #242b22;
  border-color: var(--accent);
}

.home-fear-item:has(:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.home-fear-item:hover {
  background: #242b22;
}

.fear-control {
  width: 17px;
  height: 17px;
  margin: 7px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.home-fear-item label {
  cursor: pointer;
}

.home-fear-item label::after {
  content: "";
  position: absolute;
  inset: 0;
}

.home-faq-help a,
.home-booking .inline-links a,
.quest-section-foot .text-link {
  min-height: 44px;
}

#safety:target {
  border-top-color: var(--accent);
}

.booking-panel {
  display: grid;
  align-content: center;
  min-height: 330px;
}

.booking-panel .field {
  margin-bottom: 20px;
}

.booking-panel .form-note {
  margin-bottom: 0;
}

.booking-panel .form-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  padding-top: 0;
}

.footer-grid {
  border-top: 1px solid var(--line);
}

.footer-column a {
  width: fit-content;
  line-height: 1.45;
}

.panic-widget {
  position: fixed;
  right: max(env(safe-area-inset-right), clamp(10px, 2vw, 28px));
  bottom: max(env(safe-area-inset-bottom), clamp(10px, 2vw, 28px));
  z-index: 65;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.panic-trigger {
  display: grid;
  place-content: center;
  width: 65px;
  height: 72px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.panic-trigger img {
  width: 65px;
  height: auto;
  filter: drop-shadow(0 3px 9px #090905);
  animation: handprint-float 3.4s ease-in-out infinite;
}

.panic-trigger:hover img,
.panic-trigger:focus-visible img {
  filter: drop-shadow(0 3px 12px #d4433b);
}

.panic-popup {
  width: min(22rem, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 15px 35px #0008;
}

.panic-popup p {
  margin: 0 0 10px;
  color: var(--muted);
}

.panic-popup .panic-title {
  font: 500 1.55rem/1.2 var(--font-display);
  color: var(--text);
}

.panic-popup-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.panic-popup-actions .button {
  flex: 1;
  padding-inline: 10px;
  justify-content: center;
  min-height: 44px;
}

body.is-screamer-active {
  overflow: hidden;
}

.screamer {
  position: fixed;
  inset: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  overflow: hidden;
  background: #080808;
  color: var(--text);
}

.screamer-shake {
  position: absolute;
  inset: 0;
  animation: screamer-shake 320ms steps(2, end) 3;
}

.screamer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.10);
  filter: contrast(1.1) brightness(0.72);
}

.screamer-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #fffa 0%, #fff0 45%);
  opacity: 0;
  animation: screamer-flash 680ms ease-out;
  pointer-events: none;
}

.screamer-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  background: #090a09e5;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.motion-paused .panic-trigger img {
  animation-play-state: paused;
}

.motion-paused .screamer-shake,
.motion-paused .screamer-flash {
  animation: none;
}

@keyframes handprint-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes screamer-shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-12px, 7px) scale(1.03); }
  50% { transform: translate(9px, -8px) scale(1.05); }
  75% { transform: translate(-8px, -4px) scale(1.02); }
}

@keyframes screamer-flash {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (max-width: 600px) {
  .home-hero {
    align-items: center;
    padding-block: 38px;
  }

  .home-hero__art {
    opacity: 0.8;
    object-position: 62% 50%;
  }

  .home-hero .eyebrow {
    margin-bottom: 27px;
  }

  .home-hero h1 {
    font-size: clamp(3.1rem, 15.8vw, 5rem);
  }

  .home-hero__actions {
    gap: 12px;
    margin-top: 24px;
  }

  .home-hero__actions .text-link {
    min-height: 44px;
  }

  .home-hero__address {
    margin-top: 24px;
  }

  .home-section {
    min-height: auto;
  }

  .footer-column a,
  .footer-legal a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-block: 0;
  }

  .footer-legal {
    gap: 2px;
  }

  .panic-trigger {
    width: 46px;
    height: 55px;
  }

  .panic-trigger img {
    width: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quest-card--home:hover,
  .quest-card--home:hover .quest-card__picture img {
    transform: none;
  }
}

.section--paper .eyebrow {
  color: var(--paper-muted);
}

.section--paper :focus-visible {
  outline-color: var(--ink);
}

.quest-card__picture:focus-visible {
  outline-offset: -4px;
}

.faq summary {
  min-height: 44px;
}

@media (min-width: 1200px) {
  .home-page #quests,
  .home-page #atmosphere,
  .home-page #faq {
    padding-block: 40px;
  }
}
