/* Dorothy's v14.3: Lenis + real chomp occlusion + mascot depth */
html.has-lenis,
html.has-lenis body { height: auto; }
html.has-lenis { scroll-behavior: auto !important; }
html.has-lenis body { overscroll-behavior-y: none; }

.bite-actor {
  z-index: 4 !important;
  transform-style: preserve-3d;
  filter: drop-shadow(0 12px 16px rgba(9,19,26,.24)) drop-shadow(0 4px 5px rgba(0,0,0,.12));
}
.bite-shadow {
  z-index: 0 !important;
  height: clamp(18px,1.8vw,30px) !important;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,rgba(9,19,26,.52) 0%,rgba(9,19,26,.28) 42%,rgba(9,19,26,0) 74%) !important;
  filter: blur(12px) !important;
  transform-origin: center center;
  mix-blend-mode: multiply;
  will-change: transform,opacity;
}
.bite-fragments { z-index: 5 !important; }
.bite-bottom { z-index: 6 !important; }

/* Start the bite cut before the teeth fully close. This is what stops the Y
   from visibly sitting behind Frisbo during the chew. The period is separate. */
.frisbo-bite.bite-force-mask .bite-letter,
.bite-word.is-bitten .bite-letter {
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cmask id='b'%3E%3Crect width='100' height='100' fill='white'/%3E%3Cpath d='M38 0 H100 V63 C88 66 77 59 74 51 C63 59 49 53 51 42 C37 45 28 34 39 25 C28 20 30 8 42 0 Z' fill='black'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='100' height='100' mask='url(%23b)'/%3E%3C/svg%3E") !important;
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cmask id='b'%3E%3Crect width='100' height='100' fill='white'/%3E%3Cpath d='M38 0 H100 V63 C88 66 77 59 74 51 C63 59 49 53 51 42 C37 45 28 34 39 25 C28 20 30 8 42 0 Z' fill='black'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='100' height='100' mask='url(%23b)'/%3E%3C/svg%3E") !important;
  -webkit-mask-size:100% 100% !important;
  mask-size:100% 100% !important;
  -webkit-mask-repeat:no-repeat !important;
  mask-repeat:no-repeat !important;
}

@media (prefers-reduced-motion: reduce) {
  .bite-actor { filter: drop-shadow(0 10px 14px rgba(9,19,26,.2)); }
}
