:root {
  --bg: #0c1410;
  --bg-deep: #080f0b;
  --forest: #1a2e1f;
  --moss: #3d5c42;
  --bark: #2a1f14;
  --cream: #e4dfd0;
  --cream-dim: rgba(228, 223, 208, 0.55);
  --cream-faint: rgba(228, 223, 208, 0.3);
  --line: rgba(228, 223, 208, 0.18);
  --font-display: "Bebas Neue", Impact, Haettenschweiler, sans-serif;
  --font-body: "Oswald", "Arial Narrow", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  color: var(--cream);
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 80% 55% at 50% 20%, rgba(61, 92, 66, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 45% at 15% 85%, rgba(42, 31, 20, 0.3), transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 50%, #0a120d 100%);
  min-height: 100dvh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--cream);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.haze {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 35% 45%, rgba(61, 92, 66, 0.12), transparent 42%),
    radial-gradient(circle at 65% 60%, rgba(42, 31, 20, 0.1), transparent 45%);
  filter: blur(50px);
  animation: haze-breathe 12s ease-in-out infinite;
}

.haze--drift {
  background:
    radial-gradient(circle at 55% 35%, rgba(26, 46, 31, 0.15), transparent 40%),
    radial-gradient(circle at 30% 75%, rgba(42, 31, 20, 0.12), transparent 45%);
  animation: haze-drift 20s ease-in-out infinite alternate;
  opacity: 0.7;
}

.trees {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(8, 15, 11, 0.8) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 52px,
      rgba(12, 20, 16, 0.4) 52px,
      rgba(12, 20, 16, 0.6) 56px,
      transparent 56px,
      transparent 120px
    );
  mask-image: linear-gradient(180deg, transparent 0%, black 75%);
  opacity: 0.35;
}

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(8, 15, 11, 0.85);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  padding: 0.65rem 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

.marquee__track span:nth-child(5n + 4) {
  color: var(--cream);
}

.shrine {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 3.5rem);
  padding: clamp(1.25rem, 4vw, 2.5rem) 1.25rem 2rem;
  text-align: center;
}

.chant {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4.2vw, 2rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 16vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.mascot {
  position: relative;
  margin: clamp(0.5rem, 2vw, 1rem) 0;
  width: min(72vw, 340px);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.mascot__img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.real {
  margin: 0.15rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4.25rem);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--cream);
  animation: real-pulse 3s ease-in-out infinite;
}

.strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  width: min(100%, 520px);
}

.ca {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 15, 11, 0.7);
  color: var(--cream);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ca:hover,
.ca:focus-visible {
  border-color: var(--cream-dim);
  background: rgba(26, 46, 31, 0.6);
  outline: none;
}

.ca__tag {
  color: var(--cream);
  font-weight: 700;
}

.ca__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
  opacity: 0.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--cream);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: #f0ebe0;
  outline: none;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--cream);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(228, 223, 208, 0.08);
  border-color: var(--cream-dim);
}

.sightings {
  position: relative;
  z-index: 1;
  padding: 3rem 1.25rem 4rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(8, 15, 11, 0.5));
}

.sightings__label {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.sightings__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.sightings__card {
  width: min(42vw, 200px);
  margin: 0;
}

.sightings__card img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  object-fit: cover;
}

.sightings__card figcaption {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.sightings__card--tilt-left {
  transform: rotate(-4deg);
}

.sightings__card--tilt-right {
  transform: rotate(3deg);
}

.foot {
  position: relative;
  z-index: 1;
  padding: 0.75rem 1.25rem 1.5rem;
  text-align: center;
}

.foot p {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: var(--cream-faint);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 50;
  transform: translateX(-50%);
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 15, 11, 0.95);
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.toast[hidden] {
  display: none;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes real-pulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes haze-breathe {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.04);
  }
}

@keyframes haze-drift {
  from {
    transform: translate(-2%, 1%) scale(1);
  }
  to {
    transform: translate(3%, -2%) scale(1.05);
  }
}

@media (max-width: 480px) {
  .marquee__track {
    gap: 1.75rem;
    letter-spacing: 0.12em;
  }

  .real {
    letter-spacing: 0.16em;
    text-indent: 0.16em;
  }

  .ca__value {
    max-width: 10rem;
  }

  .sightings__card {
    width: min(44vw, 160px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .real,
  .haze,
  .haze--drift {
    animation: none;
  }

  .real {
    opacity: 1;
  }
}
