/* The mascot itself is the only interactive hit target; the page remains scrollable. */
.holiday-turkey {
  position: fixed;
  left: 0;
  top: 0;
  --turkey-size: 96px;
  width: var(--turkey-size);
  height: calc(var(--turkey-size) * 1.2);
  z-index: 45;
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 24%;
  background: transparent;
  box-shadow: none;
  color: inherit;
  line-height: 1;
  appearance: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  contain: layout style;
  will-change: transform;
}
.holiday-turkey[hidden] { display: none !important; }
.holiday-turkey.is-expanded { --turkey-size: var(--turkey-greeting-size, 70vw); }
.holiday-turkey.is-dragging { cursor: grabbing; }
.holiday-turkey:focus-visible { outline: 3px solid #ffd166; outline-offset: 4px; }
.holiday-turkey__facing { display: block; width: 100%; height: 100%; transform: scaleX(var(--turkey-direction, 1)); }
.holiday-turkey svg { display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 3px 2px rgb(33 16 8 / 18%)); }
.holiday-turkey .holiday-turkey__front { display: none; }
.holiday-turkey.is-expanded .holiday-turkey__facing { display: none; }
.holiday-turkey.is-expanded .holiday-turkey__front { display: block; }
/* Keep the brand readable when the side pose turns to walk left. */
.holiday-turkey__side-logo { transform-box: fill-box; transform-origin: center; transform: scaleX(var(--turkey-direction, 1)); }
.holiday-turkey__body { transform-origin: 63px 96px; }
.holiday-turkey__leg { transform-box: view-box; transform-origin: 64px 97px; }
.holiday-turkey__leg--back { transform-origin: 51px 97px; }
.holiday-turkey.is-walking .holiday-turkey__body { animation: turkey-bob .48s ease-in-out infinite; }
.holiday-turkey.is-walking .holiday-turkey__leg { animation: turkey-step .48s ease-in-out infinite alternate; }
.holiday-turkey.is-walking .holiday-turkey__leg--back { animation-delay: -.48s; }
.holiday-turkey__eye { transform-box: fill-box; transform-origin: center; }
.holiday-turkey.is-walking .holiday-turkey__eye { animation: turkey-blink 6.2s linear infinite; }
.holiday-turkey__legs--seated { display: none; }
.holiday-turkey.is-seated .holiday-turkey__legs--standing { display: none; }
.holiday-turkey.is-seated .holiday-turkey__legs--seated { display: block; }
.holiday-turkey.is-seated .holiday-turkey__body { transform: translateY(26px); }
.holiday-turkey.is-paused * { animation-play-state: paused !important; }
.turkey-settings { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: .875rem; }
.turkey-settings span { color: #b9b0a6; }
.turkey-toggle { border: 1px solid #655c52; border-radius: 999px; padding: 9px 16px; min-height: 44px; font: 600 .875rem/1.35 var(--body, sans-serif); background: transparent; color: #fff; cursor: pointer; }
.turkey-toggle:hover { background: #2e2925; border-color: #c5a072; }
.turkey-toggle:focus-visible { outline: 3px solid #ffd166; outline-offset: 4px; }
@keyframes turkey-bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-3px) rotate(1deg); } }
@keyframes turkey-step { from { transform: rotate(-15deg); } to { transform: rotate(17deg); } }
@keyframes turkey-blink { 0%,45%,48%,100% { transform: scaleY(1); } 46%,47% { transform: scaleY(.08); } }
@media (max-width: 1023px) {
  .holiday-turkey { --turkey-size: 74px; }
}
@media (max-width: 359px) { .holiday-turkey { --turkey-size: 66px; } }
@media (prefers-reduced-motion: reduce) { .holiday-turkey * { animation: none !important; } }
@media print { .holiday-turkey, .turkey-settings { display: none !important; } }
/* A small, noninteractive prediction of the selected landing surface. */
.turkey-landing-guide {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 44;
  height: 0;
  border-top: 2px dashed #d92727;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px #fff);
}
.turkey-landing-guide::after {
  content: '';
  position: absolute;
  left: var(--turkey-seat-x, 50%);
  top: -7px;
  width: 30px;
  height: 12px;
  border: 1px solid #d92727;
  border-radius: 50%;
  background: rgb(217 39 39 / 16%);
  transform: translateX(-50%);
}
.turkey-landing-guide[hidden] { display: none !important; }
@media print { .turkey-landing-guide { display: none !important; } }

/* Steam-tool performance is independent of the seated/walking pose. */
.turkey-wand__spin { transform-box: view-box; transform-origin: 92px 78px; animation: turkey-wand-twirl 7.2s ease-in-out infinite; animation-play-state: paused; }
.turkey-steam { opacity: 0; transform-box: view-box; transform-origin: 111px 60px; animation: turkey-steam-puff 7.2s ease-out infinite; animation-play-state: paused; }
.holiday-turkey.is-effects-active .turkey-wand__spin,
.holiday-turkey.is-effects-active .turkey-steam { animation-play-state: running !important; }
.holiday-turkey:not(.is-effects-active) .turkey-steam { opacity: 0 !important; }
@keyframes turkey-wand-twirl {
  0%,12% { transform: rotate(0deg); }
  34%,100% { transform: rotate(360deg); }
}
@keyframes turkey-steam-puff {
  0%,34% { opacity: 0; transform: translate(0,2px) scale(.65); }
  35%,56%,77%,100% { opacity: .35; transform: translate(0,-5px) scale(1); }
  38%,59%,80% { opacity: 1; transform: translate(0,0) scale(.85); }
  49%,70%,91% { opacity: .9; transform: translate(0,-3px) scale(.96); }
}
@media (prefers-reduced-motion: reduce) {
  .holiday-turkey .turkey-wand__spin, .holiday-turkey .turkey-steam { animation: none !important; }
  .holiday-turkey .turkey-steam { opacity: 0 !important; }
}
