.thanksgiving {
  display: none;
}

[data-turkey-run] .regular-home {
  display: none;
}

[data-turkey-run] .thanksgiving {
  position: relative;
  display: grid;
  min-height: clamp(32rem, 72svh, 46rem);
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff3dc;
  background: linear-gradient(180deg, #111d2d 0%, #172e43 55%, #513b38 100%);
}

.turkey-sky,
.turkey-flock {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.turkey-sky {
  background:
    radial-gradient(ellipse at 50% 110%, #ed934b55, transparent 60%),
    repeating-linear-gradient(0deg, #08192455 0 1px, transparent 1px 5px);
}

.turkey-sky::before {
  position: absolute;
  inset: auto 0 0;
  height: 3.25rem;
  border-top: .35rem solid #dfa461;
  background: repeating-linear-gradient(90deg, #263344 0 2.5rem, #253040 2.5rem 5rem);
  box-shadow: inset 0 .35rem #864f3b;
  content: "";
}

.thanksgiving-message {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1.65rem;
  padding-block: 8rem;
  text-align: center;
}

.thanksgiving-message h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .9;
  text-shadow: 0 .085em #ad4631, 0 .14em #0e1724;
}

.thanksgiving-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}

.thanksgiving-actions > * {
  padding: .65rem .85rem;
  border: 1px solid #a6b7c2;
  border-radius: .35rem;
  background: #152638;
  color: #fff3dc;
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.2;
}

.thanksgiving-actions a { text-decoration: none; }
.thanksgiving-actions button { cursor: pointer; }
.thanksgiving-actions > :hover { background: #273e53; }

.turkey-runner {
  position: absolute;
  top: var(--lane);
  left: -10rem;
  width: var(--size);
  aspect-ratio: 28 / 24;
  animation: turkey-cross var(--crossing) linear var(--head-start) infinite;
}

.turkey-runner[data-direction="left"] { animation-direction: reverse; }
.turkey-runner[data-direction="left"] canvas { scale: -1 1; }
.turkey-runner canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  filter: drop-shadow(3px 4px #0b1726a0);
  animation: turkey-stride .24s steps(1, end) infinite;
}

.turkey-runner canvas + canvas { animation-direction: reverse; }
.turkey-flock[data-paused] .turkey-runner,
.turkey-flock[data-paused] canvas { animation-play-state: paused; }

@keyframes turkey-cross {
  to { transform: translateX(calc(100vw + 10rem)); }
}

@keyframes turkey-stride {
  0% { opacity: 1; transform: translateY(-3px); }
  50%, 100% { opacity: 0; transform: none; }
}

@media (max-width: 34rem) {
  .thanksgiving-message { padding-block: 7rem; }
  .turkey-runner { width: min(var(--size), 22vw); }
}

@media (prefers-reduced-motion: reduce) {
  .turkey-runner { left: var(--rest); animation: none; }
  .turkey-runner canvas { animation: none; }
  .turkey-runner canvas + canvas,
  .turkey-pause { display: none; }
}
