:root {
  color-scheme: dark;
  background: #05090d;
  color: #f4efdf;
  font-family: Verdana, Arial, sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #05090d;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px dotted #fff4b8;
  outline-offset: 2px;
}

.game-window {
  display: grid;
  width: 100%;
  height: 100dvh;
  min-height: 390px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 3px solid;
  border-color: #ffffff #3c3c3c #3c3c3c #ffffff;
  background: #c0c0c0;
}

.game-title-bar {
  display: grid;
  min-height: 31px;
  grid-template-columns: minmax(0, 1fr) auto 31px 25px;
  align-items: center;
  gap: 12px;
  margin: 3px 3px 0;
  padding: 3px 4px 3px 7px;
  background: #123745;
  color: #ffffff;
}

.game-title-bar h1 {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1;
}

.game-title-bar h1 img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  image-rendering: pixelated;
}

.location-label {
  color: #d7e3df;
  font-family: "Courier New", monospace;
  font-size: 11px;
}

.window-close {
  display: grid;
  width: 25px;
  height: 23px;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  place-items: center;
  background: #c0c0c0;
  color: #000000;
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: bold;
  line-height: 1;
  text-decoration: none;
}

.window-close:visited {
  color: #000000;
}

.window-close:active {
  border-color: #404040 #ffffff #ffffff #404040;
}

.sound-toggle {
  display: grid;
  width: 31px;
  height: 23px;
  padding: 0;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  place-items: center;
  background: #c0c0c0;
  color: #172226;
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
}

.sound-toggle[aria-pressed="true"] {
  border-color: #404040 #ffffff #ffffff #404040;
  background: #9eb0aa;
  color: #082f35;
}

.sound-toggle:active {
  border-color: #404040 #ffffff #ffffff #404040;
}

.scene-well {
  display: grid;
  min-height: 0;
  margin: 4px;
  padding: 3px;
  border: 3px solid;
  border-color: #404040 #ffffff #ffffff #404040;
  place-items: center;
  overflow: hidden;
  background: #02070a;
}

.game-stage {
  position: relative;
  width: min(100%, calc((100dvh - 84px) * 1.5), 1536px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #071117;
  cursor: crosshair;
  image-rendering: pixelated;
  isolation: isolate;
  touch-action: manipulation;
}

.scene-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  user-select: none;
  -webkit-user-drag: none;
}

.game-stage[data-scene="pizzeria"] .scene-image {
  filter: saturate(0.95) brightness(0.99);
}

.game-stage[data-scene="dannysGarage"] .scene-image {
  filter: brightness(0.89) saturate(0.96);
}

.scene-patches {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene-patch {
  position: absolute;
  display: block;
  overflow: hidden;
}

.scene-patch img {
  position: absolute;
  display: block;
  max-width: none;
  image-rendering: pixelated;
  user-select: none;
  -webkit-user-drag: none;
}

.scene-patch--pry-restoration,
.scene-patch--fuse-restoration,
.scene-patch--lens-restoration {
  -webkit-mask-image: radial-gradient(ellipse at center, #000 58%, transparent 96%);
  mask-image: radial-gradient(ellipse at center, #000 58%, transparent 96%);
}

.scene-patch--fountain-stopped {
  -webkit-mask-image: radial-gradient(ellipse at 52% 53%, #000 48%, rgba(0, 0, 0, 0.92) 72%, transparent 100%);
  mask-image: radial-gradient(ellipse at 52% 53%, #000 48%, rgba(0, 0, 0, 0.92) 72%, transparent 100%);
}

.scene-patch--pry-restoration img,
.scene-patch--fuse-restoration img,
.scene-patch--lens-restoration img {
  filter: brightness(0.94) saturate(0.94);
}

.scene-patch--pry-restoration {
  -webkit-mask-image: radial-gradient(ellipse at 54% 53%, #000 68%, transparent 98%);
  mask-image: radial-gradient(ellipse at 54% 53%, #000 68%, transparent 98%);
}

.scene-decorations {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.falling-leaves {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.falling-leaf {
  position: absolute;
  display: block;
  width: var(--leaf-size, 5px);
  aspect-ratio: 7 / 5;
  background: #a84f25;
  clip-path: polygon(46% 0, 100% 34%, 78% 100%, 18% 84%, 0 38%);
  filter: drop-shadow(1px 1px 0 rgba(37, 20, 18, 0.68));
  opacity: 0;
  transform-origin: 46% 52%;
  animation: falling-leaf-drift var(--leaf-duration, 6000ms) linear var(--leaf-delay, 0ms) forwards;
  will-change: top, opacity, transform;
}

.falling-leaf::after {
  position: absolute;
  top: 48%;
  left: 38%;
  width: 55%;
  height: 1px;
  background: rgba(68, 29, 19, 0.74);
  content: "";
  transform: rotate(28deg);
  transform-origin: left center;
}

.falling-leaf--rust { background: #8d3824; }
.falling-leaf--gold { background: #c57a2c; }
.falling-leaf--brown { background: #70402b; }

.scene-decoration {
  position: absolute;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
  user-select: none;
  -webkit-user-drag: none;
}

.scene-decoration--warm {
  filter: drop-shadow(0 0 3px rgba(226, 112, 27, 0.48));
}

.scene-decoration--seaglass-distant-glow {
  background:
    radial-gradient(ellipse at 58% 55%, rgba(104, 247, 235, 0.34), transparent 32%),
    radial-gradient(ellipse at 69% 58%, rgba(255, 104, 195, 0.28), transparent 39%),
    radial-gradient(ellipse at 45% 48%, rgba(255, 199, 88, 0.2), transparent 66%);
  filter: blur(1.5px);
  mix-blend-mode: screen;
  transform-origin: 58% 55%;
  animation: seaglass-distant-breathe 4200ms ease-in-out infinite;
}

.scene-decoration--seaglass-water-shimmer {
  background: linear-gradient(
    90deg,
    transparent 0 8%,
    rgba(75, 242, 224, 0.34) 16%,
    transparent 27%,
    rgba(255, 91, 183, 0.3) 40%,
    transparent 53%,
    rgba(79, 139, 255, 0.32) 66%,
    transparent 78%,
    rgba(255, 191, 77, 0.28) 90%,
    transparent 100%
  );
  background-size: 180% 100%;
  clip-path: polygon(9% 0, 89% 0, 100% 100%, 0 100%);
  filter: blur(0.7px);
  mix-blend-mode: screen;
  opacity: 0.32;
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 2px, transparent 3px 8px);
  mask-image: repeating-linear-gradient(to bottom, #000 0 2px, transparent 3px 8px);
  animation: seaglass-water-glimmer 5200ms ease-in-out infinite;
}

.scene-decoration--seaglass-live-sheen {
  overflow: hidden;
  background: linear-gradient(
    108deg,
    transparent 15%,
    rgba(87, 235, 217, 0.08) 33%,
    rgba(255, 113, 197, 0.14) 47%,
    rgba(110, 164, 255, 0.12) 60%,
    transparent 78%
  );
  background-position: 140% 0;
  background-size: 230% 100%;
  clip-path: polygon(17% 0, 89% 8%, 100% 48%, 95% 100%, 2% 100%, 0 47%);
  mix-blend-mode: screen;
  animation: seaglass-live-sweep 7600ms ease-in-out infinite;
}

.scene-decoration--seaglass-live-sheen::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 23% 69%, rgba(255, 255, 220, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 41% 46%, rgba(142, 255, 239, 0.82) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 73%, rgba(255, 151, 218, 0.86) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 38%, rgba(151, 193, 255, 0.88) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 66%, rgba(255, 222, 145, 0.88) 0 1px, transparent 2px);
  content: "";
  opacity: 0.28;
  animation: seaglass-live-sparkle 3100ms steps(2, end) infinite;
}

.scene-decoration--sign {
  filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.7));
}

.scene-decoration--patch {
  object-fit: fill;
}

.scene-decoration--tony-window-opening {
  z-index: 1;
  background: #111018;
  box-shadow:
    inset 0 0 0 1px #3a2624,
    inset 0 -8px 0 rgba(77, 45, 35, 0.26);
}

.scene-decoration--tony-window-panel {
  z-index: 3;
  overflow: hidden;
  transform: scaleX(0.2) skewY(-4deg);
  transform-origin: 100% 50%;
  filter: drop-shadow(-1px 1px 0 rgba(5, 8, 14, 0.78));
  animation: tony-window-swing 540ms steps(5, end) both;
}

.scene-decoration--tony-window-panel::before {
  position: absolute;
  top: -354.7619%;
  left: -1308.82353%;
  width: 4517.64706%;
  height: 1219.04762%;
  background: url("assets/scene-pied-piper-exterior.png") 0 0 / 100% 100% no-repeat;
  content: "";
  image-rendering: pixelated;
}

.scene-decoration--tony-window-head {
  z-index: 2;
  overflow: hidden;
  opacity: 1;
  animation: tony-window-peek 320ms 360ms steps(4, end) both;
}

.scene-decoration--tony-window-head::before {
  position: absolute;
  top: -30%;
  left: -40%;
  width: 320%;
  height: 240%;
  background: url("assets/tony-walk.svg") 0 0 / 100% 100% no-repeat;
  content: "";
  image-rendering: pixelated;
}

.scene-decoration--band-window {
  image-rendering: pixelated;
  mix-blend-mode: screen;
  opacity: 0.68;
  filter: drop-shadow(0 0 3px rgba(106, 67, 143, 0.54));
  animation: band-window-color 7.2s steps(3, end) infinite;
}

.scene-decoration--tv-window {
  object-fit: fill;
  mix-blend-mode: screen;
  opacity: 0.18;
  filter: drop-shadow(0 0 2px rgba(91, 155, 190, 0.36));
  animation: television-window-flicker 8.7s steps(1, end) infinite;
}

.scene-decoration--tv-b {
  animation-delay: -3.1s;
  animation-duration: 10.4s;
}

.scene-decoration--tv-c {
  animation-delay: -6.4s;
  animation-duration: 12.1s;
}

.scene-decoration--shuttered-door {
  object-fit: fill;
  transform-origin: 44% 48%;
}

.scene-decoration--smoking-twin {
  object-fit: fill;
  clip-path: inset(48% 68% 21% 22%);
  opacity: 0;
  animation: smoking-twin-drag 5.4s steps(1, end) infinite;
}

.game-stage.is-shop-door-wiggling .scene-decoration--shuttered-door {
  animation: shuttered-door-wiggle 680ms steps(7, end) both;
}

.game-stage.is-shop-door-opening .scene-decoration--shuttered-door {
  animation: shuttered-door-open 920ms steps(9, end) both;
}

.scene-decoration--tow-rope {
  object-fit: contain;
  image-rendering: auto;
  opacity: 0.9;
  filter: brightness(0.82) drop-shadow(1px 3px 2px rgba(3, 5, 7, 0.68));
  transform: rotate(-5deg);
  transform-origin: 50% 68%;
}

.scene-decoration--loose-wheel {
  object-fit: contain;
  filter: drop-shadow(2px 4px 2px rgba(3, 6, 8, 0.68));
  image-rendering: auto;
  transform: rotate(-4deg);
  transform-origin: 50% 70%;
}

.scene-decoration--backroom-fuse-missing,
.scene-decoration--backroom-cabinet-latch,
.scene-decoration--backroom-cabinet-glow {
  object-fit: fill;
}

.scene-decoration--backroom-fuse-missing {
  z-index: 2;
  filter: drop-shadow(1px 1px 0 rgba(4, 6, 9, 0.72));
}

.scene-decoration--backroom-fuse-live {
  z-index: 3;
  border-radius: 45%;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(255, 218, 126, 0.68) 0 13%, rgba(222, 143, 44, 0.24) 31%, transparent 68%),
    radial-gradient(circle at 50% 84%, rgba(119, 221, 139, 0.48) 0 2%, transparent 8%);
  mix-blend-mode: screen;
  opacity: 0.68;
  filter: drop-shadow(0 0 2px rgba(239, 153, 56, 0.42));
}

.scene-decoration--backroom-cabinet-glow {
  z-index: 2;
  image-rendering: auto;
  mix-blend-mode: screen;
  opacity: 0.7;
  filter: drop-shadow(0 0 4px rgba(231, 141, 47, 0.32));
  animation: backroom-cabinet-idle 4.8s steps(2, end) infinite;
}

.scene-decoration--backroom-cabinet-latch {
  z-index: 4;
  filter: drop-shadow(1px 2px 1px rgba(7, 6, 8, 0.66));
}

.scene-decoration--backroom-cabinet-latch-live {
  filter:
    drop-shadow(0 0 2px rgba(113, 211, 128, 0.58))
    drop-shadow(1px 2px 1px rgba(7, 6, 8, 0.66));
}

.game-stage.is-backroom-powering .scene-decoration--backroom-fuse-live,
.game-stage.is-backroom-powering .scene-decoration--backroom-cabinet-glow,
.game-stage.is-backroom-powering .scene-decoration--backroom-cabinet-latch-live {
  animation: backroom-power-on 1.1s steps(6, end) both;
}

@keyframes backroom-power-on {
  0%, 13% { opacity: 0; }
  14%, 27% { opacity: 1; }
  28%, 42% { opacity: 0.2; }
  43%, 61% { opacity: 1; }
  62%, 72% { opacity: 0.48; }
  73%, 100% { opacity: 0.9; }
}

@keyframes backroom-cabinet-idle {
  0%, 48%, 100% { opacity: 0.7; }
  49%, 51% { opacity: 0.63; }
}

.scene-decoration--side-cutters {
  object-fit: contain;
  filter: drop-shadow(1px 2px 1px rgba(8, 9, 12, 0.76));
  transform: rotate(-7deg);
}

.scene-decoration--open-drain {
  object-fit: fill;
  filter: none;
}

.scene-decoration--drain-rope {
  object-fit: fill;
  filter: drop-shadow(1px 2px 0 rgba(7, 10, 15, 0.78));
}

.scene-decoration--inspection-shimmer {
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 5px rgba(245, 177, 74, 0.68));
  animation: inspection-shimmer 2.8s steps(4, end) infinite;
}

.scene-decoration--dream-door {
  object-fit: fill;
  opacity: 0.68;
}

.scene-decoration--island-beacon {
  border: 2px solid rgba(255, 222, 137, 0.72);
  background: rgba(255, 185, 70, 0.34);
  box-shadow:
    inset 0 0 0 2px rgba(255, 244, 194, 0.3),
    0 0 12px rgba(255, 174, 50, 0.78),
    0 0 28px rgba(255, 174, 50, 0.42);
  clip-path: polygon(31% 0, 69% 0, 100% 24%, 86% 100%, 14% 100%, 0 24%);
  animation: island-beacon-pulse 2.4s steps(4, end) infinite;
}

.scene-decoration--nook-sign {
  object-fit: fill;
  image-rendering: auto;
  filter: drop-shadow(1px 1px 0 rgba(19, 13, 10, 0.7));
  transform: rotate(-1deg);
}

.scene-decoration--empty-trash-can {
  filter: drop-shadow(2px 2px 0 rgba(4, 7, 10, 0.72));
  transform: rotate(-3deg);
  transform-origin: 50% 100%;
}

.scene-decoration--nook-violinist {
  filter: drop-shadow(2px 2px 0 rgba(8, 7, 8, 0.74));
  transform-origin: 50% 100%;
  animation: nook-violinist-sway 1.8s steps(2, end) infinite;
}

.scene-decoration--pry-bar {
  filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.72));
  transform-origin: 95% 43%;
}

.game-stage.is-three-person-pry .scene-decoration--pry-bar {
  animation: pry-bar-press 750ms steps(5, end) 2;
}

.game-stage.is-door-cracked .scene-decoration--pry-bar {
  transform: rotate(-8deg) translate(-1px, 2px);
}

.piper-cat {
  --cat-scale: 1;
  --cat-travel-ms: 1800ms;
  position: absolute;
  z-index: 6;
  top: 84%;
  left: 18%;
  display: block;
  width: 5.2%;
  min-width: 34px;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(2px 3px 1px rgba(2, 4, 8, 0.66));
  opacity: 1;
  transform: translate(-50%, -100%) scale(var(--cat-scale));
  transform-origin: 50% 100%;
  transition:
    left var(--cat-travel-ms) linear,
    top var(--cat-travel-ms) linear,
    opacity 90ms steps(1, end);
  will-change: left, top, opacity;
}

.piper-cat[hidden],
.piper-cat.is-absent {
  display: none;
}

.piper-cat.is-positioning {
  transition: none;
}

.piper-cat.is-avoiding-walkers {
  z-index: 2;
  pointer-events: none;
}

.piper-cat:focus-visible {
  outline: 1px dotted #f4c86a;
  outline-offset: 2px;
}

.piper-cat-sprite {
  position: absolute;
  inset: 0;
  display: block;
  background: url("assets/piper-cat-idle.svg?v=20261018b") left top / 400% 100% no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
  transform-origin: 50% 80%;
  animation: piper-cat-idle 5.8s steps(1, end) infinite;
}

.piper-cat.is-facing-right .piper-cat-sprite {
  transform: scaleX(-1);
}

.piper-cat.is-walking .piper-cat-sprite {
  background-image: url("assets/piper-cat-walk.svg?v=20261018b");
  background-size: 600% 100%;
  /* APPROVED CANON LOCK: preserve this six-pose walk and its timing exactly. */
  animation: piper-cat-walk 480ms steps(5, end) infinite;
}

.piper-cat.is-poofing-out .piper-cat-sprite {
  animation: piper-cat-vanish 340ms steps(4, end) both;
}

.piper-cat.is-poofing-in .piper-cat-sprite {
  animation: piper-cat-arrive 430ms steps(5, end) both;
}

.piper-cat-poof {
  position: absolute;
  top: 52%;
  left: 50%;
  display: block;
  width: 5px;
  height: 5px;
  background: #8c789b;
  box-shadow:
    -13px -3px 0 #c2a5a0,
    -8px -12px 0 #7b688d,
    3px -16px 0 #d5b77d,
    13px -9px 0 #9a7c91,
    17px 2px 0 #d0a068,
    8px 11px 0 #6d627f,
    -9px 10px 0 #b39088,
    -18px 4px 0 #77677f;
  image-rendering: pixelated;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.piper-cat.is-poofing-out .piper-cat-poof,
.piper-cat.is-poofing-in .piper-cat-poof {
  animation: piper-cat-poof 430ms steps(5, end) both;
}

.bridge-mouse {
  position: absolute;
  z-index: 3;
  top: 73%;
  left: 91%;
  display: block;
  width: 6%;
  aspect-ratio: 8 / 3;
  background: url("assets/mouse-run.svg") left top / 200% 100% no-repeat;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.7));
  image-rendering: pixelated;
  pointer-events: none;
  transform: translate(-50%, -100%);
}

.bridge-mouse.is-running {
  animation:
    bridge-mouse-run 2600ms linear forwards,
    mouse-run-frame 180ms steps(1, end) infinite;
}

.trash-can-man {
  position: absolute;
  z-index: 3;
  top: 82%;
  left: 93%;
  display: none;
  width: 6.25%;
  aspect-ratio: 1;
  background: url("assets/trash-can-man.svg") left top / 200% 100% no-repeat;
  filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.72));
  image-rendering: pixelated;
  pointer-events: none;
  transform: translate(-50%, -100%);
  will-change: transform;
}

.game-stage[data-scene="belliniSide"] .trash-can-man {
  display: block;
  top: 82%;
  left: 76%;
}

.trash-can-man[hidden] {
  display: none !important;
}

.trash-can-man.is-strolling {
  animation: trash-can-stroll 2600ms steps(1, end) both;
}

.rolling-tire {
  position: absolute;
  z-index: 6;
  top: 30%;
  left: 12%;
  display: block;
  width: 6.6%;
  aspect-ratio: 1;
  background: url("assets/rusty-wheel-upright-art-bible-v2.png") center / contain no-repeat;
  filter: drop-shadow(3px 5px 2px rgba(0, 0, 0, 0.68));
  image-rendering: pixelated;
  pointer-events: none;
  transform: translate(-50%, -100%);
  will-change: top, left, transform, opacity;
}

.rolling-tire.is-rolling {
  animation: junkyard-tire-roll 3600ms linear both;
}

.game-stage.is-tire-staged .rolling-tire {
  top: 18%;
  left: 17.5%;
  opacity: 1;
  transform: translate(-50%, -100%) rotate(-8deg) scale(0.55);
}

.game-stage.is-tire-sequence {
  cursor: default;
}

.game-stage.is-tire-sequence .hotspots {
  pointer-events: none;
}

.game-stage.is-tire-hill-run .walker.is-walking .walker-sprite {
  animation-duration: 150ms;
}

.tire-impact-cutscene {
  position: absolute;
  z-index: 18;
  inset: 0;
  overflow: hidden;
  background: #05080b;
  pointer-events: none;
}

.tire-impact-world {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-origin: 30% 58%;
}

.tire-impact-plate {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.tire-impact-hood {
  position: absolute;
  z-index: 2;
  left: 6.5104%;
  top: 22.4609%;
  display: block;
  width: 29.2969%;
  height: 35.1563%;
  object-fit: fill;
  image-rendering: pixelated;
  opacity: 0;
  transform-origin: 52% 86%;
}

.tire-impact-wheel {
  position: absolute;
  z-index: 3;
  top: 64%;
  left: 106%;
  display: block;
  width: 7.6%;
  aspect-ratio: 1;
  background: url("assets/rusty-wheel-upright-art-bible-v2.png") center / contain no-repeat;
  filter: drop-shadow(3px 6px 3px rgba(0, 0, 0, 0.72));
  image-rendering: auto;
  opacity: 0;
  transform: translate(-50%, -100%);
}

.tire-impact-flash {
  position: absolute;
  z-index: 4;
  inset: 0;
  background:
    radial-gradient(circle at 29% 59%, rgba(255, 220, 139, 0.72) 0 3%, rgba(205, 119, 48, 0.34) 7%, transparent 17%),
    rgba(255, 228, 160, 0.25);
  opacity: 0;
  pointer-events: none;
}

.tire-impact-cutscene.is-playing .tire-impact-world {
  animation: tire-impact-camera 2600ms linear both;
}

.tire-impact-cutscene.is-playing .tire-impact-wheel {
  animation: tire-impact-cross 2600ms cubic-bezier(0.19, 0.42, 0.32, 1) both;
}

.tire-impact-cutscene.is-playing .tire-impact-hood {
  animation: tire-impact-hood-pop 2600ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.tire-impact-cutscene.is-playing .tire-impact-flash {
  animation: tire-impact-flash 2600ms linear both;
}

.nora-cat-cutscene {
  --nora-cat-duration: 4700ms;
  position: absolute;
  z-index: 6;
  inset: 0;
  overflow: hidden;
  background: #071018;
  pointer-events: none;
}

.nora-cat-cutscene-world {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transform-origin: 75% 40%;
}

.nora-cat-cutscene-plate {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.nora-cat-cutscene-plate--rest {
  z-index: 1;
}

.nora-cat-cutscene-plate--point {
  z-index: 2;
  opacity: 0;
}

.nora-cat-cutscene-cat {
  position: absolute;
  z-index: 3;
  top: 43.7%;
  left: 70.2%;
  display: block;
  width: 3.8%;
  min-width: 18px;
  aspect-ratio: 4 / 5;
  filter: drop-shadow(2px 3px 1px rgba(2, 4, 8, 0.72));
  transform: translate(-50%, -100%) scale(1.08);
  transform-origin: 50% 100%;
}

.nora-cat-cutscene-cat i {
  position: absolute;
  inset: 0;
  display: block;
  background: url("assets/piper-cat-sit.svg") left top / 400% 100% no-repeat;
  image-rendering: pixelated;
  animation: piper-cat-idle 5.8s steps(1, end) infinite;
}

.nora-cat-cutscene-frame {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: block;
  box-shadow:
    inset 0 0 0 2px rgba(255, 223, 150, 0.14),
    inset 0 0 86px rgba(2, 6, 10, 0.34);
  pointer-events: none;
}

.nora-cat-cutscene.is-playing .nora-cat-cutscene-world {
  animation: nora-cat-camera var(--nora-cat-duration) both;
}

.nora-cat-cutscene.is-playing .nora-cat-cutscene-plate--point {
  animation: nora-cat-point-frame var(--nora-cat-duration) steps(1, end) both;
}

.nora-cat-cutscene.is-playing .nora-cat-cutscene-cat {
  animation: nora-cat-recoil var(--nora-cat-duration) steps(1, end) both;
}

.game-stage.is-nora-cat-cutaway {
  cursor: default;
}

.game-stage.is-nora-cat-cutaway .hotspots,
.game-stage.is-nora-cat-cutaway .piper-cat,
.game-stage.is-nora-cat-cutaway .walkers,
.game-stage.is-nora-cat-cutaway .object-label {
  pointer-events: none;
  visibility: hidden;
}

.yard-dog {
  position: absolute;
  z-index: 5;
  top: 82%;
  left: -10%;
  display: block;
  width: 9%;
  aspect-ratio: 8 / 5;
  background: url("assets/yard-dog.svg") center / contain no-repeat;
  filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.62));
  image-rendering: pixelated;
  pointer-events: none;
  transform: translate(-50%, -100%);
  will-change: left, top, transform;
}

.yard-dog[hidden] {
  display: none;
}

.yard-dog.is-chasing {
  animation: backyard-dog-run 2500ms steps(18, end) both;
}

.scene-decoration--mall-signs {
  object-fit: fill;
}

.game-stage.is-backyard-dog-chase .hotspots,
.game-stage.is-seaglass-starting .hotspots {
  pointer-events: none;
  opacity: 0;
}

.game-stage.is-backyard-dog-chase .walker--billi {
  animation: backyard-runner 300ms steps(2, end) infinite;
}

.game-stage.is-backyard-dog-chase .walker--mumi {
  animation: backyard-runner 300ms 80ms steps(2, end) infinite;
}

.game-stage.is-backyard-dog-chase .walker--tony {
  animation: backyard-runner 300ms 140ms steps(2, end) infinite;
}

.game-stage.is-backyard-dog-chase .walker-sprite {
  animation: walk-frame 120ms steps(1, end) infinite;
}

.game-stage.is-seaglass-starting .scene-image {
  animation: seaglass-startup 3200ms steps(1, end) both;
}

.walkers {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene-foregrounds {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene-foreground {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  image-rendering: pixelated;
  user-select: none;
  -webkit-user-drag: none;
}

.walker {
  position: absolute;
  width: 4.1667%;
  aspect-ratio: 2 / 3;
  transform: translate(-50%, -100%);
  transform-origin: 50% 100%;
  will-change: left, top;
}

.walker--mumi {
  z-index: 1;
}

.walker--billi {
  z-index: 2;
}

.walker--tony {
  z-index: 1;
}

.walker--violinist {
  z-index: 2;
  width: 4.8%;
  aspect-ratio: 3 / 4;
  filter: drop-shadow(2px 3px 1px rgba(3, 7, 10, 0.58));
}

.walker--danny {
  z-index: 3;
  width: 5.7%;
  aspect-ratio: 1 / 2;
  filter: drop-shadow(2px 3px 1px rgba(3, 7, 10, 0.5));
}

.walker-sprite {
  --facing: 1;
  display: block;
  width: 100%;
  height: 100%;
  background-position: left top;
  background-repeat: no-repeat;
  background-size: 200% 100%;
  image-rendering: pixelated;
  transform-origin: center bottom;
}

.walker-banter {
  --banter-shift: -50%;
  position: absolute;
  z-index: 8;
  bottom: calc(100% + 5px);
  left: 50%;
  display: block;
  width: max-content;
  max-width: 150px;
  padding: 4px 7px 5px;
  border: 2px solid #172128;
  background: #fff1c6;
  color: #172128;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    inset 1px 1px 0 #fffaf0,
    2px 2px 0 rgba(3, 7, 10, 0.68);
  opacity: 0;
  pointer-events: none;
  transform: translateX(var(--banter-shift));
}

.walker-banter.is-conversation {
  width: max-content;
  max-width: min(250px, 58vw);
  line-height: 1.2;
  text-align: left;
  white-space: normal;
}

.walker-banter.is-edge-left {
  --banter-shift: 0%;
}

.walker-banter.is-edge-right {
  --banter-shift: -100%;
}

.walker-banter::after {
  position: absolute;
  top: 100%;
  left: calc(50% - 3px);
  width: 4px;
  height: 4px;
  border-right: 2px solid #172128;
  border-bottom: 2px solid #172128;
  background: #fff1c6;
  content: "";
  transform: rotate(45deg) translateY(-3px);
}

.walker-banter.is-edge-left::after {
  left: 1px;
}

.walker-banter.is-edge-right::after {
  right: 1px;
  left: auto;
}

.walker-banter.is-visible {
  animation: walker-banter-in 160ms steps(2, end) both;
}

.walker--billi .walker-sprite {
  background-image: url("assets/billi-walk.svg");
}

.walker--billi.has-bracelet .walker-sprite {
  background-image: url("assets/billi-walk-bracelet.svg");
}

.bracelet-application {
  position: absolute;
  z-index: 3;
  top: 66.6667%;
  left: 75%;
  display: block;
  width: 6.25%;
  height: 4.1667%;
  background: #27c9bd;
  box-shadow: 0 0 2px rgba(99, 255, 241, 0.72);
  image-rendering: pixelated;
  opacity: 0;
  pointer-events: none;
}

.bracelet-application::before,
.bracelet-application::after {
  content: "";
  position: absolute;
  width: 33.3333%;
  aspect-ratio: 1;
  background: #fff8bd;
  box-shadow:
    -100% 0 #d9fffb,
    100% 0 #d9fffb,
    0 -150% #fff8bd,
    0 150% #fff8bd;
  opacity: 0;
}

.bracelet-application::before {
  left: -90%;
  top: -170%;
}

.bracelet-application::after {
  right: -115%;
  bottom: -160%;
}

.walker--billi.is-left .bracelet-application {
  left: 18.75%;
}

.walker--billi.is-receiving-bracelet .bracelet-application {
  animation: bracelet-put-on 900ms steps(7, end) both;
}

.walker--billi.is-bracelet-sparkling .bracelet-application {
  opacity: 1;
  background: rgba(64, 237, 222, 0.18);
  animation: bracelet-settle-glow 2400ms steps(6, end) both;
}

.walker--billi.is-bracelet-sparkling .bracelet-application::before {
  animation: bracelet-sparkle 1500ms steps(1, end) both;
}

.walker--billi.is-bracelet-sparkling .bracelet-application::after {
  animation: bracelet-sparkle 1500ms 650ms steps(1, end) both;
}

.walker--mumi .walker-sprite {
  background-image: url("assets/mumi-walk.svg");
}

.walker--tony .walker-sprite {
  background-image: url("assets/tony-walk.svg");
}

.walker--violinist .walker-sprite {
  background-image: url("assets/bridge-violinist.svg");
  background-position: center bottom;
  background-size: contain;
}

.walker--danny .walker-sprite {
  background-image: url("assets/danny-bully-walk-cohesive-v4.png");
  background-size: 400% 100%;
}

.walker--danny.is-grabbing {
  z-index: 7;
  width: 15.5%;
  aspect-ratio: 3 / 2;
  filter: drop-shadow(3px 5px 2px rgba(3, 7, 10, 0.58));
}

.walker--danny.is-grabbing .walker-sprite {
  background-image: url("assets/danny-grab-pose-cohesive-v4.png");
  background-position: center bottom;
  background-size: contain;
  animation: danny-grab-anticipation 420ms cubic-bezier(0.18, 0.76, 0.24, 1) both;
}

.walker.is-left .walker-sprite {
  --facing: -1;
  transform: scaleX(-1);
}

.walker.is-walking .walker-sprite {
  animation: walk-frame 240ms steps(1, end) infinite;
}

.walker--violinist.is-walking .walker-sprite {
  animation: violinist-step 360ms steps(2, end) infinite;
}

.game-stage.is-twins-chase .walker.is-walking .walker-sprite {
  animation-duration: 130ms;
}

.game-stage.is-twins-chase .walker--danny.is-walking .walker-sprite {
  animation: danny-bully-walk 680ms steps(1, end) infinite;
}

.walker--billi.is-tripping {
  z-index: 5;
}

.walker--billi.is-tripping .walker-sprite {
  animation: billi-trip 1150ms linear both;
  transform-origin: 50% 50%;
}

.walker--billi.is-limping.is-walking .walker-sprite {
  animation: billi-limp 430ms steps(1, end) infinite;
}

.game-stage.is-bracelet-cutaway {
  cursor: default;
}

.game-stage.is-bracelet-cutaway .scene-image,
.game-stage.is-bracelet-cutaway .scene-patches,
.game-stage.is-bracelet-cutaway .scene-decorations,
.game-stage.is-bracelet-cutaway .walkers {
  transform-origin: var(--bracelet-focus-x, 50%) var(--bracelet-focus-y, 70%);
  animation: bracelet-camera 5400ms both;
}

.game-stage.is-bracelet-cutaway .hotspots {
  pointer-events: none;
}

.game-stage.is-three-person-pry .hotspots {
  pointer-events: none;
}

.game-stage.is-fence-hopping .hotspots {
  pointer-events: none;
  opacity: 0;
}

.game-stage.is-fence-hopping[data-scene="belliniSide"] {
  --fence-step-one: -45%;
  --fence-step-two: -98%;
  --fence-step-three: -152%;
  --fence-step-four: -208%;
  --fence-lily-top: -260%;
  --fence-lily-apex: -298%;
  --fence-lily-descent: -235%;
  --fence-lily-landing: -190%;
  --fence-mark-top: -270%;
  --fence-mark-apex: -305%;
  --fence-mark-descent: -245%;
  --fence-mark-landing: -200%;
  --fence-tony-top: -280%;
  --fence-tony-apex: -315%;
  --fence-tony-descent: -255%;
  --fence-tony-landing: -210%;
}

.game-stage.is-fence-hopping[data-scene="belliniYard"] {
  --fence-step-one: -56%;
  --fence-step-two: -120%;
  --fence-step-three: -185%;
  --fence-step-four: -250%;
  --fence-lily-top: -316%;
  --fence-lily-apex: -355%;
  --fence-lily-descent: -285%;
  --fence-lily-landing: -245%;
  --fence-mark-top: -326%;
  --fence-mark-apex: -365%;
  --fence-mark-descent: -295%;
  --fence-mark-landing: -255%;
  --fence-tony-top: -336%;
  --fence-tony-apex: -375%;
  --fence-tony-descent: -305%;
  --fence-tony-landing: -265%;
}

.game-stage.is-fence-hopping .walker {
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.game-stage.is-fence-hopping .walker--billi {
  --fence-top: var(--fence-lily-top);
  --fence-apex: var(--fence-lily-apex);
  --fence-descent: var(--fence-lily-descent);
  --fence-landing: var(--fence-lily-landing);
  z-index: 5;
  animation: fence-climb-teeter 2600ms linear both;
}

.game-stage.is-fence-hopping .walker--mumi {
  --fence-top: var(--fence-mark-top);
  --fence-apex: var(--fence-mark-apex);
  --fence-descent: var(--fence-mark-descent);
  --fence-landing: var(--fence-mark-landing);
  z-index: 5;
  animation: fence-climb-smooth 2240ms 240ms linear both;
}

.game-stage.is-fence-hopping .walker--tony {
  --fence-top: var(--fence-tony-top);
  --fence-apex: var(--fence-tony-apex);
  --fence-descent: var(--fence-tony-descent);
  --fence-landing: var(--fence-tony-landing);
  z-index: 5;
  animation: fence-climb-smooth 2180ms 420ms linear both;
}

.game-stage.is-fence-hopping .walker .walker-sprite {
  transform-origin: 50% 68%;
}

.game-stage.is-fence-hopping .walker--billi .walker-sprite {
  animation: fence-climb-scramble 2600ms steps(1, end) both;
}

.game-stage.is-fence-hopping .walker--mumi .walker-sprite {
  animation: fence-climb-scramble 2240ms 240ms steps(1, end) both;
}

.game-stage.is-fence-hopping .walker--tony .walker-sprite {
  animation: fence-climb-scramble 2180ms 420ms steps(1, end) both;
}

.game-stage.is-three-person-pry .walker {
  transform-origin: 50% 100%;
  animation: group-pry-press 750ms steps(5, end) 2;
}

.game-stage.is-three-person-pry .walker-sprite {
  background-position: right top;
}

.game-stage.is-bracelet-cutaway .object-label {
  opacity: 0;
}

.game-stage[data-scene="cosmos"] .walker--billi {
  animation: float-billi 4.8s ease-in-out infinite;
}

.game-stage[data-scene="cosmos"] .walker--mumi {
  animation: float-mumi 5.3s ease-in-out infinite;
}

.hotspots {
  position: absolute;
  z-index: 5;
  inset: 0;
}

.hotspot {
  position: absolute;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.hotspot:hover,
.hotspot:focus-visible {
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
}

.hotspot[data-arrow] {
  --arrow-rotation: 0deg;
}

.hotspot-arrow-target {
  z-index: 20;
  width: 48px;
  height: 40px;
  min-width: 48px;
  min-height: 40px;
  transform: translate(-50%, -50%);
  touch-action: manipulation;
}

.hotspot[data-arrow]::before {
  position: absolute;
  z-index: 1;
  top: var(--arrow-y, 50%);
  left: var(--arrow-x, 50%);
  width: 34px;
  height: 20px;
  background: url("assets/exit-arrow.svg") center / contain no-repeat;
  content: "";
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.8));
  image-rendering: pixelated;
  opacity: 0.92;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--arrow-rotation));
  animation: exit-arrow-nudge 1.2s steps(2, end) infinite;
}

.hotspot[data-arrow="left"] {
  --arrow-rotation: 180deg;
}

.hotspot[data-arrow="up"] {
  --arrow-rotation: -90deg;
}

.hotspot[data-arrow="down"] {
  --arrow-rotation: 90deg;
}

.hotspot[data-arrow="up-left"] {
  --arrow-rotation: -135deg;
}

.hotspot[data-arrow="up-right"] {
  --arrow-rotation: -45deg;
}

.hotspot[data-arrow="down-left"] {
  --arrow-rotation: 135deg;
}

.hotspot[data-arrow="down-right"] {
  --arrow-rotation: 45deg;
}

.hotspot[data-arrow]:hover::before,
.hotspot[data-arrow]:focus-visible::before {
  opacity: 1;
}

.game-stage.is-twins-chase .hotspot:not([data-action="lowerWillowBack"]):not([data-action="lowerWillowForward"]) {
  pointer-events: none;
}

.game-stage.is-twins-chase .hotspot[data-arrow]::before {
  filter: drop-shadow(0 0 3px #fff1a4) drop-shadow(1px 1px 0 #000000);
  opacity: 1;
  animation-duration: 520ms;
}

.hotspot:focus-visible::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 1px dotted #f5cd62;
  content: "";
  transform: translate(-50%, -50%);
}

.object-label {
  position: absolute;
  z-index: 6;
  bottom: 4%;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 4px 9px 5px;
  border: 1px solid rgba(190, 211, 202, 0.54);
  background: rgba(5, 13, 17, 0.82);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.48);
  color: #eadcae;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: clamp(17px, 1.25vw, 21px);
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
  text-align: center;
  text-shadow: 1px 1px 0 #071014;
  transform: translateX(-50%);
  white-space: normal;
}

.chase-status {
  position: absolute;
  z-index: 8;
  top: 4%;
  left: 50%;
  display: grid;
  width: min(280px, 62%);
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 2px solid #090c0d;
  background: #c0c0c0;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #4a4a4a,
    4px 4px 0 rgba(0, 0, 0, 0.62);
  color: #171717;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.chase-status strong {
  color: #8d1d18;
  font-size: 16px;
}

.chase-status > span {
  display: block;
  height: 12px;
  padding: 2px;
  border: 2px solid;
  border-color: #404040 #ffffff #ffffff #404040;
  background: #222729;
}

.chase-status i {
  display: block;
  width: 100%;
  height: 100%;
  background: #e8b642;
  box-shadow: inset -2px 0 0 #a72c22;
}

.twins-catch-cutscene {
  --catch-duration: 5600ms;
  position: absolute;
  z-index: 12;
  inset: 0;
  overflow: hidden;
  background: #020609;
  pointer-events: none;
}

.twins-catch-cutscene::before {
  position: absolute;
  z-index: 18;
  inset: 0;
  box-shadow:
    inset 0 0 0 2px rgba(255, 231, 167, 0.12),
    inset 0 0 84px rgba(0, 0, 0, 0.42);
  content: "";
  pointer-events: none;
}

.twins-catch-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #07111b;
}

.twins-catch-plate {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  opacity: 0;
  transform-origin: center 68%;
  user-select: none;
  -webkit-user-drag: none;
}

.game-stage.is-twins-catch .twins-catch-plate--hold {
  animation: morans-minimal-hold var(--catch-duration) steps(1, end) both;
}

.game-stage.is-twins-catch .twins-catch-plate--getaway {
  animation: morans-minimal-getaway var(--catch-duration) steps(1, end) both;
}

.twins-catch-smoke {
  position: absolute;
  z-index: 6;
  left: 26.5%;
  top: 38.5%;
  display: block;
  width: 3px;
  aspect-ratio: 1;
  background: rgba(221, 222, 214, 0.76);
  box-shadow:
    5px -7px 0 rgba(204, 211, 207, 0.58),
    1px -15px 0 rgba(185, 197, 197, 0.38);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.game-stage.is-twins-catch .twins-catch-smoke {
  animation: morans-minimal-smoke var(--catch-duration) steps(1, end) both;
}

.twins-catch-puppet {
  position: absolute;
  z-index: 7;
  display: block;
  width: 7.25%;
  aspect-ratio: 2 / 3;
  opacity: 0;
  filter:
    drop-shadow(3px 4px 0 rgba(2, 7, 11, 0.82))
    drop-shadow(0 8px 8px rgba(1, 4, 7, 0.44));
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  will-change: left, top, opacity, transform;
}

.twins-catch-puppet i,
.twins-catch-puppet i::before {
  position: absolute;
  inset: 0;
  display: block;
  background-position: left top;
  background-repeat: no-repeat;
  background-size: 200% 100%;
  image-rendering: pixelated;
}

.twins-catch-puppet i {
  z-index: 1;
}

.twins-catch-puppet i::before {
  z-index: -1;
  background-image: inherit;
  content: "";
  filter: brightness(0.22) saturate(0.8);
  opacity: 0.9;
  transform: translate(5px, 5px);
}

.twins-catch-puppet--mark i,
.twins-catch-puppet--mark i::before {
  background-image: url("assets/mumi-walk.svg");
}

.twins-catch-puppet--lily i,
.twins-catch-puppet--lily i::before {
  background-image: url("assets/billi-walk.svg");
}

.twins-catch-cutscene.has-bracelet .twins-catch-puppet--lily i,
.twins-catch-cutscene.has-bracelet .twins-catch-puppet--lily i::before {
  background-image: url("assets/billi-walk-bracelet.svg");
}

.game-stage.is-twins-catch .twins-catch-puppet--mark {
  animation: morans-minimal-mark var(--catch-duration) linear both;
}

.game-stage.is-twins-catch .twins-catch-puppet--lily {
  animation: morans-minimal-lily var(--catch-duration) linear both;
}

.game-stage.is-twins-catch .twins-catch-puppet i,
.game-stage.is-twins-catch .twins-catch-puppet i::before {
  animation: morans-minimal-puppet-frames var(--catch-duration) steps(1, end) both;
}

.twins-catch-pizza {
  position: absolute;
  z-index: 9;
  left: 59%;
  top: 38%;
  display: block;
  width: 8.5%;
  height: auto;
  image-rendering: pixelated;
  opacity: 0;
  filter:
    drop-shadow(3px 4px 0 rgba(16, 8, 7, 0.72))
    drop-shadow(0 4px 5px rgba(3, 5, 8, 0.34));
  transform: translate(-50%, -50%);
  will-change: left, top, opacity, transform;
}

.game-stage.is-twins-catch .twins-catch-pizza {
  animation: morans-minimal-pizza var(--catch-duration) linear both;
}

.twins-catch-download {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: grid;
  width: min(360px, 72%);
  height: max-content;
  margin: auto;
  padding: 17px 20px 15px;
  border: 3px solid;
  border-color: #dce8e4 #31444a #31444a #dce8e4;
  gap: 10px;
  background: #c0c0c0;
  color: #152126;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  text-align: center;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.58);
}

.twins-catch-download strong {
  font-size: clamp(15px, 2.1vw, 22px);
  letter-spacing: 0;
}

.twins-catch-download small {
  color: #405158;
  font-family: "Courier New", monospace;
  font-size: 11px;
}

.twins-catch-download-track {
  display: block;
  height: 17px;
  padding: 2px;
  border: 2px solid;
  border-color: #404040 #ffffff #ffffff #404040;
  background: #172328;
}

.twins-catch-download-track i {
  display: block;
  width: 0;
  height: 100%;
  background: #e7ba46;
  transition: width 180ms ease-out;
}

.twins-catch-caption {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 8%;
  left: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 11px;
  margin: 0;
  color: #fff5d1;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: clamp(19px, 2.4vw, 34px);
  font-weight: bold;
  letter-spacing: 0;
  line-height: 1.1;
  opacity: 0;
  text-shadow:
    3px 3px 0 #05080a,
    -2px -2px 0 #05080a,
    0 0 9px #05080a;
}

.game-stage.is-twins-catch .twins-catch-caption {
  animation: morans-minimal-caption var(--catch-duration) steps(1, end) both;
}

.game-stage.is-twins-catch {
  cursor: default;
}

.game-stage.is-twins-catch-loading {
  cursor: wait;
}

.game-stage.is-twins-catch .walkers {
  opacity: 0;
}

.game-stage.is-twins-catch .hotspots,
.game-stage.is-twins-catch-loading .hotspots,
.game-stage.is-twins-grab .hotspots,
.game-stage.is-debug-open .hotspots {
  pointer-events: none;
}

.scene-loader {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 12px);
  grid-template-rows: repeat(2, 12px);
  place-content: center;
  gap: 4px;
  background: #081116;
}

.scene-loader span {
  display: block;
  width: 12px;
  height: 12px;
  background: #f5c95b;
  animation: loader-blink 800ms steps(1, end) infinite;
}

.scene-loader span:nth-child(2) {
  animation-delay: 200ms;
}

.scene-loader span:nth-child(3) {
  animation-delay: 600ms;
}

.scene-loader span:nth-child(4) {
  animation-delay: 400ms;
}

.item-notice {
  position: absolute;
  z-index: 8;
  top: 4%;
  left: 50%;
  display: grid;
  width: min(560px, 90%);
  min-height: 52px;
  gap: 4px;
  padding: 9px 14px 10px 21px;
  border: 2px solid #2a3e45;
  background: #101920;
  box-shadow:
    0 0 0 2px #849797,
    0 0 0 4px #05090c,
    5px 5px 0 rgba(0, 0, 0, 0.72);
  color: #f5eedb;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  pointer-events: none;
  transform: translateX(-50%);
}

.item-notice::before {
  position: absolute;
  top: 10px;
  left: 8px;
  width: 3px;
  height: 3px;
  background: #f2c764;
  box-shadow: 0 9px 0 #41c5ba;
  content: "";
}

.item-notice strong {
  color: #67d4c8;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.item-notice span {
  overflow-wrap: anywhere;
}

.item-notice.is-visible {
  animation: item-notice-life 2600ms steps(1, end) both;
}

.dialogue {
  position: absolute;
  z-index: 7;
  bottom: 4.5%;
  left: 50%;
  display: grid;
  width: min(900px, 94%);
  min-height: 118px;
  grid-template-columns: 74px minmax(0, 1fr) 40px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "portrait speaker next"
    "portrait line next";
  align-items: center;
  column-gap: 16px;
  row-gap: 7px;
  margin: 0;
  padding: 16px 15px 15px 20px;
  border: 2px solid #9b7947;
  background: #121516;
  box-shadow:
    inset 0 0 0 2px #050607,
    inset 0 0 0 4px #3b3327,
    0 0 0 2px #c9b47c,
    0 0 0 5px #060708,
    8px 9px 0 rgba(0, 0, 0, 0.78);
  color: #f1e6cf;
  cursor: pointer;
  transform: translateX(-50%);
}

.dialogue:not(.has-portrait) {
  grid-template-columns: minmax(0, 1fr) 40px;
  grid-template-areas:
    "speaker next"
    "line next";
}

.dialogue::before,
.dialogue::after {
  position: absolute;
  width: 9px;
  height: 9px;
  content: "";
  pointer-events: none;
}

.dialogue::before {
  top: 7px;
  left: 7px;
  border-top: 3px solid #d6a84e;
  border-left: 3px solid #d6a84e;
}

.dialogue::after {
  right: 7px;
  bottom: 7px;
  border-right: 3px solid #8e6d3f;
  border-bottom: 3px solid #8e6d3f;
}

.dialogue-portrait {
  position: relative;
  display: block;
  grid-area: portrait;
  width: 72px;
  height: 72px;
  overflow: hidden;
  align-self: center;
  border: 2px solid #9b7947;
  background: #090d10;
  box-shadow:
    inset 0 0 0 2px #33291d,
    3px 3px 0 #050607;
}

.dialogue-portrait[hidden] {
  display: none;
}

.dialogue-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.dialogue p {
  display: contents;
}

.dialogue #dialogue-line {
  display: block;
  grid-area: line;
  min-width: 0;
  margin: 0;
  padding: 1px 4px 2px 13px;
  border-left: 3px solid #c99a43;
  font-family: "URW Bookman", "Bookman Old Style", Rockwell, "DejaVu Serif", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.38;
  text-shadow: 1px 2px 0 #000000;
}

.dialogue strong {
  display: table;
  grid-area: speaker;
  margin: 0 0 0 -4px;
  padding: 1px 9px 3px;
  border: 0;
  border-bottom: 2px solid #a77b37;
  background: #241d16;
  box-shadow: 3px 3px 0 #050607;
  color: #e8bd66;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000000;
}

.dialogue-next,
.restart-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  place-items: center;
  background: #c0c0c0;
  color: #000000;
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
}

.dialogue-next {
  grid-area: next;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0 0 3px;
  border-color: #b79558 #080706 #080706 #6d5430;
  background: #211b15;
  box-shadow: inset 0 0 0 2px #3d3020;
  color: #f0c868;
  font-family: "URW Bookman", "Bookman Old Style", Rockwell, serif;
  font-size: 29px;
  font-weight: 700;
  text-shadow: 1px 2px 0 #000000;
}

.dialogue-next:hover,
.dialogue-next:focus-visible {
  background: #33271a;
  color: #ffe29a;
}

.dialogue-next:active,
.restart-button:active,
.bevel-button:active {
  border-color: #404040 #ffffff #ffffff #404040;
}

.pocket-bar {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 8px;
  padding: 5px max(5px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left));
  border-top: 1px solid #808080;
  background: #bfc1be;
  color: #111111;
  font-family: Verdana, Arial, sans-serif;
}

.pocket-label {
  position: relative;
  display: grid;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 11px 0 19px;
  border: 2px solid;
  border-color: #edf0e8 #41484b #41484b #edf0e8;
  background: #d0d1cc;
  box-shadow: 1px 1px 0 #757875;
  color: #18353b;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.pocket-label::before {
  position: absolute;
  top: 50%;
  left: 7px;
  width: 4px;
  height: 4px;
  background: #c89628;
  box-shadow: 5px -7px 0 #2c827e, 5px 7px 0 #2c827e;
  content: "";
  transform: translateY(-50%);
  animation: pocket-twinkle 2800ms steps(2, end) infinite;
}

.inventory {
  position: relative;
  display: flex;
  min-height: 42px;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 2px solid;
  border-color: #41484b #edf0e8 #edf0e8 #41484b;
  overflow-x: auto;
  background: #0d151d;
  box-shadow: inset 0 0 0 2px #20333b;
  scrollbar-width: thin;
}

.inventory::before {
  position: absolute;
  z-index: 0;
  top: 7px;
  left: 13px;
  width: 2px;
  height: 2px;
  background: #e7bb53;
  box-shadow: 43px 13px 0 #328d88, 91px 3px 0 #d7d8b0, 147px 16px 0 #735b9a, 213px 5px 0 #328d88, 278px 17px 0 #e7bb53, 347px 7px 0 #735b9a, 421px 15px 0 #328d88, 503px 4px 0 #d7d8b0, 589px 17px 0 #735b9a, 681px 6px 0 #328d88;
  content: "";
  opacity: 0.38;
  pointer-events: none;
  animation: pocket-twinkle 2800ms steps(2, end) infinite;
}

.inventory > * {
  position: relative;
  z-index: 1;
}

.inventory-empty {
  padding: 0 7px;
  color: #9ba9a7;
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: bold;
}

.inventory-item {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 2px solid;
  border-color: #60747a #080d10 #080d10 #60747a;
  background: #182831;
  box-shadow: inset 0 0 0 1px #2b4149;
  color: #e5e0d2;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
}

.inventory-item::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 8px 1px 1px;
  background: #d5aa4e;
  content: "";
  transform: rotate(45deg);
}

.inventory-item:hover,
.inventory-item:focus-visible {
  border-color: #78d7cd #102126 #102126 #78d7cd;
  background: #203740;
  outline: 1px dotted #d7e3df;
  outline-offset: -2px;
}

.inventory-item[aria-pressed="true"] {
  border-color: #8c742e #f0d16b #f0d16b #8c742e;
  background: #214149;
  color: #fff0b3;
  box-shadow: inset 2px 2px 0 #091216;
}

.inventory-item[aria-pressed="true"]::before {
  background: #63d5ca;
}

.held-item {
  flex: 0 0 auto;
  color: #333333;
  font-family: "Courier New", monospace;
  font-size: 12px;
  white-space: nowrap;
}

.held-item strong {
  color: #14535a;
}

.restart-button {
  width: 34px;
  height: 39px;
  flex: 0 0 auto;
  font-size: 20px;
}

.ending-panel {
  position: absolute;
  z-index: 10;
  bottom: 7%;
  left: 50%;
  width: min(420px, 88%);
  padding: 15px 18px 17px;
  border: 4px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  background: #d5d5cf;
  box-shadow: 3px 3px 0 #000000;
  color: #111111;
  text-align: center;
  transform: translateX(-50%);
}

.ending-panel p {
  margin: 0 0 5px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.ending-panel h2 {
  margin: 0 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: normal;
  line-height: 1;
}

.ending-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.bevel-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  background: #c0c0c0;
  color: #111111;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.debug-menu {
  position: absolute;
  z-index: 30;
  top: 50%;
  left: 50%;
  width: min(500px, 90%);
  border: 3px solid;
  border-color: #ffffff #353535 #353535 #ffffff;
  background: #c0c0c0;
  box-shadow:
    5px 5px 0 rgba(0, 0, 0, 0.8),
    0 0 0 100vmax rgba(1, 5, 8, 0.64);
  color: #111111;
  transform: translate(-50%, -50%);
}

.debug-menu-titlebar {
  display: grid;
  min-height: 29px;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  margin: 2px;
  padding: 2px 3px 2px 7px;
  background: #123745;
  color: #ffffff;
}

.debug-menu-titlebar h2 {
  margin: 0;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

.debug-menu-titlebar button {
  width: 24px;
  height: 22px;
  padding: 0;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  background: #c0c0c0;
  color: #111111;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  line-height: 16px;
  cursor: pointer;
}

.debug-menu-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.debug-menu-body button,
.debug-menu-body select {
  min-width: 0;
  min-height: 34px;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  background: #c0c0c0;
  color: #111111;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}

.debug-menu-body button {
  padding: 5px 8px;
  font-weight: bold;
  cursor: pointer;
}

.debug-menu-body button:active {
  border-color: #404040 #ffffff #ffffff #404040;
  padding: 6px 7px 4px 9px;
}

.debug-scene-picker {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
}

.debug-menu-body select {
  width: 100%;
  padding: 4px;
  border-color: #404040 #ffffff #ffffff #404040;
  background: #ffffff;
}

.debug-return {
  grid-column: 1 / -1;
}

.noscript-message {
  margin: 30px;
  color: #ffffff;
}

@keyframes item-notice-life {
  0% {
    opacity: 0;
    transform: translate(-50%, -4px);
  }

  8%,
  84% {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -4px);
  }
}

@keyframes pocket-twinkle {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.72;
  }
}

@keyframes smoking-twin-drag {
  0%,
  61%,
  82%,
  100% {
    opacity: 0;
  }

  62%,
  81% {
    opacity: 1;
  }
}

@keyframes television-window-flicker {
  0%,
  7%,
  13%,
  31%,
  38%,
  58%,
  73%,
  100% {
    opacity: 0.12;
    filter: hue-rotate(0deg) brightness(0.86) drop-shadow(0 0 1px rgba(91, 155, 190, 0.24));
  }

  8%,
  12%,
  32%,
  37% {
    opacity: 0.46;
    filter: hue-rotate(24deg) brightness(1.24) drop-shadow(0 0 3px rgba(113, 175, 199, 0.5));
  }

  59%,
  66% {
    opacity: 0.28;
    filter: hue-rotate(-18deg) brightness(1.05) drop-shadow(0 0 2px rgba(127, 123, 186, 0.4));
  }

  67%,
  72% {
    opacity: 0.06;
  }
}

@keyframes falling-leaf-drift {
  0% {
    opacity: 0;
    transform: translate3d(0, -4px, 0) rotate(0deg);
  }

  7% {
    opacity: 0.92;
  }

  25% {
    transform: translate3d(var(--leaf-sway-a), 0, 0) rotate(var(--leaf-spin-a));
  }

  52% {
    transform: translate3d(var(--leaf-sway-b), 0, 0) rotate(var(--leaf-spin-b));
  }

  76% {
    opacity: 0.88;
    transform: translate3d(var(--leaf-sway-c), 0, 0) rotate(var(--leaf-spin-c));
  }

  100% {
    top: 104%;
    opacity: 0.26;
    transform: translate3d(var(--leaf-drift-end), 0, 0) rotate(var(--leaf-spin));
  }
}

@keyframes walk-frame {
  0%,
  49% {
    background-position: left top;
  }

  50%,
  100% {
    background-position: right top;
  }
}

@keyframes walker-banter-in {
  0% {
    opacity: 0;
    transform: translateX(var(--banter-shift)) translateY(3px);
  }

  100% {
    opacity: 1;
    transform: translateX(var(--banter-shift)) translateY(0);
  }
}

@keyframes danny-bully-walk {
  0%,
  24.99% {
    background-position: 0 top;
  }

  25%,
  49.99% {
    background-position: 33.333% top;
  }

  50%,
  74.99% {
    background-position: 66.667% top;
  }

  75%,
  100% {
    background-position: 100% top;
  }
}

@keyframes mouse-run-frame {
  0%,
  49% {
    background-position: left top;
  }

  50%,
  100% {
    background-position: right top;
  }
}

@keyframes piper-cat-walk {
  from { background-position: 0 0; }
  to { background-position: 100% 0; }
}

@keyframes piper-cat-idle {
  0%, 55% { background-position: 0 0; }
  61% { background-position: 33.3333% 0; }
  65% { background-position: 66.6667% 0; }
  69% { background-position: 33.3333% 0; }
  75% { background-position: 0 0; }
  84% { background-position: 100% 0; }
  94%, 100% { background-position: 0 0; }
}

@keyframes piper-cat-vanish {
  0% { opacity: 1; filter: brightness(1); }
  45% { opacity: 1; filter: brightness(1.8) sepia(0.3); }
  100% { opacity: 0; filter: brightness(2.2) sepia(0.5); }
}

@keyframes piper-cat-arrive {
  0%, 20% { opacity: 0; filter: brightness(2.1) sepia(0.5); }
  60% { opacity: 1; filter: brightness(1.65) sepia(0.25); }
  100% { opacity: 1; filter: brightness(1); }
}

@keyframes piper-cat-poof {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.35); }
  24% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.75); }
  56% { opacity: 0.72; transform: translate(-50%, -58%) scale(1.12); }
  100% { opacity: 0; transform: translate(-50%, -72%) scale(1.42); }
}

@keyframes bridge-mouse-run {
  0% {
    top: 73%;
    left: 92%;
    transform: translate(-50%, -100%);
  }

  24% {
    top: 71.5%;
    left: 70%;
  }

  48% {
    top: 74%;
    left: 47%;
  }

  72% {
    top: 71%;
    left: 24%;
  }

  100% {
    top: 73%;
    left: -6%;
    transform: translate(-50%, -100%);
  }
}

@keyframes trash-can-stroll {
  0%,
  100% {
    background-position: left top;
    transform: translate(-50%, -100%) translate(0, 0);
  }

  12% {
    background-position: right top;
    transform: translate(-50%, -100%) translate(-45%, -3%);
  }

  24% {
    background-position: left top;
    transform: translate(-50%, -100%) translate(-90%, 0);
  }

  36% {
    background-position: right top;
    transform: translate(-50%, -100%) translate(-135%, -3%);
  }

  48%,
  58% {
    background-position: left top;
    transform: translate(-50%, -100%) translate(-180%, 0);
  }

  70% {
    background-position: right top;
    transform: translate(-50%, -100%) translate(-135%, -3%);
  }

  82% {
    background-position: left top;
    transform: translate(-50%, -100%) translate(-75%, 0);
  }

  92% {
    background-position: right top;
    transform: translate(-50%, -100%) translate(-35%, -3%);
  }
}

@keyframes junkyard-tire-roll {
  0% {
    top: 18%;
    left: 17.5%;
    opacity: 1;
    transform: translate(-50%, -100%) rotate(-8deg) scale(0.55);
  }

  18% {
    top: 20%;
    left: 20%;
    opacity: 1;
    transform: translate(-50%, -100%) rotate(72deg) scale(0.59);
  }

  38% {
    top: 27%;
    left: 28%;
    opacity: 1;
    transform: translate(-50%, -100%) rotate(330deg) scale(0.68);
  }

  58% {
    top: 39%;
    left: 43%;
    opacity: 1;
    transform: translate(-50%, -100%) rotate(780deg) scale(0.86);
  }

  76% {
    top: 54%;
    left: 65%;
    opacity: 1;
    transform: translate(-50%, -100%) rotate(1330deg) scale(1.08);
  }

  90% {
    top: 68%;
    left: 87%;
    opacity: 1;
    transform: translate(-50%, -100%) rotate(1810deg) scale(1.32, 1.26);
  }

  100% {
    top: 80%;
    left: 106%;
    opacity: 0;
    transform: translate(-50%, -100%) rotate(2160deg) scale(1.5, 1.38);
  }
}

@keyframes tire-impact-camera {
  0% {
    opacity: 0;
    transform: scale(1.01) translate(0, 0);
  }

  6% {
    opacity: 1;
    transform: scale(1.015) translate(0, 0);
  }

  49% {
    opacity: 1;
    transform: scale(1.02) translate(0, 0);
  }

  52% {
    transform: scale(1.03) translate(-0.7%, 0.35%);
  }

  54% {
    transform: scale(1.032) translate(0.6%, -0.35%);
  }

  57% {
    transform: scale(1.034) translate(-0.35%, 0.15%);
  }

  62%,
  84% {
    opacity: 1;
    transform: scale(1.035) translate(0, 0);
  }

  100% {
    opacity: 0;
    transform: scale(1.055) translate(0, 0);
  }
}

@keyframes tire-impact-cross {
  0%,
  7% {
    top: 64%;
    left: 106%;
    opacity: 0;
    transform: translate(-50%, -100%) rotate(0deg) scale(0.76);
  }

  10% {
    opacity: 1;
  }

  30% {
    top: 63%;
    left: 72%;
    opacity: 1;
    transform: translate(-50%, -100%) rotate(-430deg) scale(0.9);
  }

  47% {
    top: 61.5%;
    left: 43%;
    opacity: 1;
    transform: translate(-50%, -100%) rotate(-820deg) scale(1.02);
  }

  52% {
    top: 60%;
    left: 30%;
    opacity: 1;
    transform: translate(-50%, -100%) rotate(-1030deg) scale(1.08, 0.94);
  }

  56%,
  100% {
    top: 60.5%;
    left: 29%;
    opacity: 0;
    transform: translate(-50%, -100%) rotate(-1080deg) scale(1.2, 0.82);
  }
}

@keyframes tire-impact-hood-pop {
  0%,
  49% {
    opacity: 0;
    transform: translateY(9%) scale(1, 0.52);
  }

  52% {
    opacity: 0.28;
    transform: translateY(7%) scale(1, 0.62);
  }

  56% {
    opacity: 0.76;
    transform: translateY(2.8%) scale(1.002, 0.84);
  }

  61% {
    opacity: 1;
    transform: translateY(-1.1%) scale(1.006, 1.035);
  }

  67% {
    opacity: 1;
    transform: translateY(0.45%) scale(0.998, 0.992);
  }

  73%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tire-impact-flash {
  0%,
  50% {
    opacity: 0;
  }

  52% {
    opacity: 0.82;
  }

  56% {
    opacity: 0.16;
  }

  62%,
  100% {
    opacity: 0;
  }
}

@keyframes nora-cat-camera {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
    animation-timing-function: cubic-bezier(0.2, 0.72, 0.18, 1);
  }

  7% {
    opacity: 1;
  }

  19%,
  82% {
    opacity: 1;
    transform: translate(-25%, 8%) scale(2.32);
  }

  83% {
    animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
  }

  94% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes nora-cat-point-frame {
  0%,
  26% {
    opacity: 0;
  }

  27%,
  80% {
    opacity: 1;
  }

  81%,
  100% {
    opacity: 0;
  }
}

@keyframes nora-cat-recoil {
  0%,
  28% {
    transform: translate(-50%, -100%) rotate(0) scale(1.08);
  }

  29%,
  34% {
    transform: translate(-66%, -102%) rotate(-4deg) scale(1.08);
  }

  35%,
  75% {
    transform: translate(-61%, -100%) rotate(-2deg) scale(1.08);
  }

  76%,
  100% {
    transform: translate(-50%, -100%) rotate(0) scale(1.08);
  }
}

@keyframes shuttered-door-wiggle {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  18%,
  56% {
    transform: translate(-2px, 0) rotate(-0.7deg);
  }

  36%,
  76% {
    transform: translate(2px, 1px) rotate(0.65deg);
  }
}

@keyframes shuttered-door-open {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  16%,
  48% {
    transform: translate(-3px, 0) rotate(-1deg);
  }

  31%,
  64% {
    transform: translate(3px, 1px) rotate(0.9deg);
  }

  80% {
    transform: translate(-2px, 0) rotate(-0.6deg) skewY(0deg);
  }

  100% {
    transform: translate(-5px, 1px) rotate(-1.2deg) skewY(1deg);
  }
}

@keyframes bracelet-camera {
  0% {
    transform: scale(1);
    animation-timing-function: cubic-bezier(0.22, 0.72, 0.2, 1);
  }

  17%,
  84% {
    transform: translate(var(--bracelet-shift-x, 0), var(--bracelet-shift-y, 0)) scale(3.35);
  }

  85% {
    animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes bracelet-put-on {
  0% {
    opacity: 0;
    transform: translate(750%, -500%) scale(2);
  }

  14% {
    opacity: 1;
  }

  70% {
    opacity: 1;
    transform: translate(0, 0) scale(1.25);
  }

  84% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes bracelet-settle-glow {
  0%,
  100% {
    background: rgba(64, 237, 222, 0);
    box-shadow: 0 0 0 rgba(119, 255, 245, 0);
  }

  17%,
  34%,
  58% {
    background: rgba(64, 237, 222, 0.3);
    box-shadow: 0 0 4px rgba(119, 255, 245, 0.95);
  }

  25%,
  46%,
  72% {
    background: rgba(64, 237, 222, 0.08);
    box-shadow: 0 0 1px rgba(119, 255, 245, 0.35);
  }
}

@keyframes bracelet-sparkle {
  0%,
  12%,
  34%,
  100% {
    opacity: 0;
    transform: scale(0.5);
  }

  17%,
  27% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes billi-trip {
  0% {
    background-position: left top;
    transform: scaleX(var(--facing)) rotate(0deg);
  }

  18% {
    transform: scaleX(var(--facing)) rotate(220deg);
  }

  40% {
    background-position: right top;
    transform: scaleX(var(--facing)) rotate(480deg);
  }

  64% {
    transform: scaleX(var(--facing)) rotate(720deg);
  }

  78%,
  86% {
    background-position: left top;
    transform: scaleX(var(--facing)) rotate(900deg) scaleY(0.62);
  }

  100% {
    transform: scaleX(var(--facing)) rotate(1080deg) scaleY(1);
  }
}

@keyframes billi-limp {
  0%,
  39% {
    background-position: left top;
    transform: scaleX(var(--facing)) translateY(3%) rotate(-10deg) scaleY(0.94);
  }

  40%,
  67% {
    background-position: right top;
    transform: scaleX(var(--facing)) translateY(-11%) rotate(7deg) scaleY(1.04);
  }

  68%,
  100% {
    background-position: right top;
    transform: scaleX(var(--facing)) translateY(-2%) rotate(2deg) scaleY(0.98);
  }
}

@keyframes tony-window-peek {
  0% {
    opacity: 0;
    transform: translateY(90%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tony-window-swing {
  0% {
    transform: scaleX(1) skewY(0);
  }

  100% {
    transform: scaleX(0.2) skewY(-4deg);
  }
}

@keyframes band-window-color {
  0%,
  100% {
    opacity: 0.62;
    filter: hue-rotate(0deg) drop-shadow(0 0 3px rgba(106, 67, 143, 0.5));
  }

  33% {
    opacity: 0.72;
    filter: hue-rotate(22deg) drop-shadow(0 0 4px rgba(57, 123, 145, 0.56));
  }

  66% {
    opacity: 0.67;
    filter: hue-rotate(-16deg) drop-shadow(0 0 3px rgba(170, 91, 62, 0.5));
  }
}

@keyframes inspection-shimmer {
  0%,
  100% {
    opacity: 0.44;
    transform: translate(0, 0);
  }

  35% {
    opacity: 0.9;
    transform: translate(-1px, 1px);
  }

  70% {
    opacity: 0.62;
    transform: translate(1px, -1px);
  }
}

@keyframes island-beacon-pulse {
  0%,
  100% {
    opacity: 0.72;
    filter: brightness(0.9);
  }

  50% {
    opacity: 1;
    filter: brightness(1.28);
  }
}

@keyframes violinist-step {
  0%,
  100% {
    transform: scaleX(var(--facing)) translateY(0) rotate(0);
  }

  50% {
    transform: scaleX(var(--facing)) translateY(-3%) rotate(1deg);
  }
}

@keyframes nook-violinist-sway {
  0%,
  100% {
    transform: rotate(-1deg) translateY(0);
  }

  50% {
    transform: rotate(1deg) translateY(-1px);
  }
}

@keyframes pry-bar-press {
  0%,
  100% {
    transform: rotate(0deg) translate(0, 0);
  }

  44% {
    transform: rotate(-5deg) translate(-1px, 1px);
  }

  68% {
    transform: rotate(-8deg) translate(-1px, 2px);
  }

  84% {
    transform: rotate(-6deg) translate(-1px, 1px);
  }
}

@keyframes group-pry-press {
  0%,
  100% {
    transform: translate(-50%, -100%) translateX(0) rotate(0deg);
  }

  44% {
    transform: translate(-50%, -100%) translateX(2px) rotate(3deg);
  }

  68% {
    transform: translate(-50%, -100%) translateX(6px) rotate(7deg);
  }

  84% {
    transform: translate(-50%, -100%) translateX(4px) rotate(5deg);
  }
}

@keyframes loader-blink {
  0%,
  49% {
    background: #29434a;
  }

  50%,
  100% {
    background: #f5c95b;
  }
}

@keyframes exit-arrow-nudge {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(var(--arrow-rotation)) translateX(0);
  }

  50% {
    transform: translate(-50%, -50%) rotate(var(--arrow-rotation)) translateX(3px);
  }
}

@keyframes fence-climb-teeter {
  0% {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(0) rotate(0deg) scale(1);
  }

  7% {
    transform: translate(-50%, -100%) translateY(3px) rotate(0deg) scaleY(0.94);
  }

  15% {
    transform: translate(-50%, -100%) translateY(var(--fence-step-one)) translateX(-1px) rotate(-2deg);
  }

  25% {
    transform: translate(-50%, -100%) translateY(var(--fence-step-two)) translateX(2px) rotate(2deg);
  }

  35% {
    transform: translate(-50%, -100%) translateY(var(--fence-step-three)) translateX(-2px) rotate(-3deg);
  }

  45% {
    transform: translate(-50%, -100%) translateY(var(--fence-step-four)) translateX(2px) rotate(3deg);
  }

  53% {
    transform: translate(-50%, -100%) translateY(var(--fence-top)) rotate(-1deg) scale(1);
  }

  57% {
    transform: translate(-50%, -100%) translateY(var(--fence-top)) translateX(-2px) rotate(-6deg) scale(1);
  }

  61% {
    transform: translate(-50%, -100%) translateY(var(--fence-top)) translateX(2px) rotate(7deg) scale(1);
  }

  65% {
    transform: translate(-50%, -100%) translateY(var(--fence-top)) translateX(-2px) rotate(-7deg) scale(1);
  }

  69% {
    transform: translate(-50%, -100%) translateY(var(--fence-top)) translateX(1px) rotate(5deg) scale(1);
  }

  73% {
    transform: translate(-50%, -100%) translateY(var(--fence-top)) rotate(0deg) scale(1);
  }

  77% {
    transform: translate(-50%, -100%) translateY(var(--fence-top)) rotate(-2deg) scaleY(0.92);
  }

  84% {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(var(--fence-apex)) translateX(6px) rotate(8deg) scale(0.94);
  }

  90% {
    opacity: 0.94;
    transform: translate(-50%, -100%) translateY(var(--fence-apex)) translateX(11px) rotate(12deg) scale(0.84);
  }

  96% {
    opacity: 0.52;
    transform: translate(-50%, -100%) translateY(var(--fence-descent)) translateX(17px) rotate(5deg) scale(0.76);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -100%) translateY(var(--fence-landing)) translateX(22px) rotate(0deg) scale(0.68);
  }
}

@keyframes fence-climb-smooth {
  0% {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(0) rotate(0deg) scale(1);
  }

  7% {
    transform: translate(-50%, -100%) translateY(3px) rotate(0deg) scaleY(0.94);
  }

  16% {
    transform: translate(-50%, -100%) translateY(var(--fence-step-one)) translateX(1px) rotate(2deg);
  }

  27% {
    transform: translate(-50%, -100%) translateY(var(--fence-step-two)) translateX(-2px) rotate(-2deg);
  }

  38% {
    transform: translate(-50%, -100%) translateY(var(--fence-step-three)) translateX(2px) rotate(3deg);
  }

  49% {
    transform: translate(-50%, -100%) translateY(var(--fence-step-four)) translateX(-1px) rotate(-2deg);
  }

  59% {
    transform: translate(-50%, -100%) translateY(var(--fence-top)) rotate(0deg) scale(1);
  }

  64% {
    transform: translate(-50%, -100%) translateY(var(--fence-top)) rotate(1deg) scaleY(0.93);
  }

  73% {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(var(--fence-apex)) translateX(-5px) rotate(-6deg) scale(0.94);
  }

  82% {
    opacity: 0.94;
    transform: translate(-50%, -100%) translateY(var(--fence-apex)) translateX(-9px) rotate(-9deg) scale(0.86);
  }

  93% {
    opacity: 0.55;
    transform: translate(-50%, -100%) translateY(var(--fence-descent)) translateX(-14px) rotate(-4deg) scale(0.76);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -100%) translateY(var(--fence-landing)) translateX(-18px) rotate(0deg) scale(0.68);
  }
}

@keyframes fence-climb-scramble {
  0%, 9.99%, 20%, 29.99%, 40%, 49.99% {
    background-position: left top;
    transform: scaleX(var(--facing)) translateX(-2px) rotate(-4deg);
  }

  10%, 19.99%, 30%, 39.99%, 50%, 57.99% {
    background-position: right top;
    transform: scaleX(var(--facing)) translateX(2px) rotate(4deg);
  }

  58%, 73.99% {
    background-position: left top;
    transform: scaleX(var(--facing)) translateX(0) rotate(0deg);
  }

  74%, 82.99% {
    background-position: right top;
    transform: scaleX(var(--facing)) translateY(2px) rotate(0deg) scaleY(0.93);
  }

  83%,
  100% {
    background-position: left top;
    transform: scaleX(var(--facing)) translateX(0) rotate(0deg);
  }
}

@keyframes danny-grab-anticipation {
  0% {
    opacity: 0.72;
    transform: scaleX(var(--facing)) translateX(-7%) scale(0.92);
  }

  58% {
    opacity: 1;
    transform: scaleX(var(--facing)) translateX(1.5%) scale(1.025);
  }

  100% {
    opacity: 1;
    transform: scaleX(var(--facing)) translateX(0) scale(1);
  }
}

@keyframes morans-cutscene-reach {
  0% {
    opacity: 1;
    transform: scale(1.005);
  }

  19% {
    opacity: 1;
    transform: scale(1.045) translateY(0.15%);
  }

  24% {
    opacity: 1;
    transform: scale(1.075) translateY(0.35%);
  }

  27%,
  100% {
    opacity: 0;
    transform: scale(1.09) translateY(0.5%);
  }
}

@keyframes morans-cutscene-shake {
  0%,
  20% {
    opacity: 0;
    transform: scale(1.012);
  }

  24% {
    opacity: 1;
    transform: scale(1.012);
  }

  31% {
    opacity: 1;
    transform: scale(1.018) translate(-0.08%, 0.05%);
  }

  38% {
    opacity: 1;
    transform: scale(1.021) translate(0.08%, -0.05%);
  }

  45% {
    opacity: 1;
    transform: scale(1.025) translate(-0.08%, 0.04%);
  }

  62% {
    opacity: 1;
    transform: scale(1.03);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes morans-cutscene-getaway {
  0%,
  64% {
    opacity: 0;
    transform: scale(1.01) translateX(1.2%);
  }

  70% {
    opacity: 1;
    transform: scale(1.015) translateX(0.7%);
  }

  94% {
    opacity: 1;
    transform: scale(1.045) translateX(-1.2%);
  }

  100% {
    opacity: 0;
    transform: scale(1.06) translateX(-2%);
  }
}

@keyframes morans-cigarette-smoke {
  0%,
  3%,
  12%,
  21%,
  30%,
  39%,
  48%,
  57%,
  66%,
  100% {
    left: 26.5%;
    top: 38.5%;
    opacity: 0;
  }

  5%,
  14%,
  23%,
  32%,
  41%,
  50%,
  59% {
    left: 26.7%;
    top: 37.7%;
    opacity: 0.62;
  }

  9%,
  18%,
  27%,
  36%,
  45%,
  54%,
  63% {
    left: 27.1%;
    top: 34.8%;
    opacity: 0;
  }
}

@keyframes morans-puppet-mark {
  0% {
    left: 52.6%;
    top: 76.8%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.58);
  }

  14% {
    left: 52.8%;
    top: 76.4%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-2deg) scale(0.58);
  }

  19% {
    left: 56.5%;
    top: 75.6%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-4deg) scale(0.61);
  }

  23% {
    left: 63%;
    top: 74.5%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-7deg) scale(0.63);
  }

  26% {
    left: 67.7%;
    top: 75.4%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-9deg) scale(0.68);
  }

  31% {
    left: 68.7%;
    top: 74.4%;
    transform: translate(-50%, -50%) rotate(9deg) scale(0.68);
  }

  36% {
    left: 67.5%;
    top: 75.1%;
    transform: translate(-50%, -50%) rotate(-11deg) scale(0.68);
  }

  41% {
    left: 68.8%;
    top: 74.3%;
    transform: translate(-50%, -50%) rotate(10deg) scale(0.69);
  }

  46% {
    left: 67.4%;
    top: 75.2%;
    transform: translate(-50%, -50%) rotate(-12deg) scale(0.68);
  }

  51% {
    left: 68.8%;
    top: 74.4%;
    transform: translate(-50%, -50%) rotate(11deg) scale(0.69);
  }

  57% {
    left: 67.5%;
    top: 75.1%;
    transform: translate(-50%, -50%) rotate(-10deg) scale(0.68);
  }

  63% {
    left: 68.5%;
    top: 74.5%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(8deg) scale(0.68);
  }

  68% {
    left: 72%;
    top: 78%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(18deg) scale(0.64);
  }

  70% {
    left: 75.5%;
    top: 74%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-4deg) scale(0.62);
  }

  74% {
    left: 75.5%;
    top: 75.2%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(2deg) scale(0.61);
  }

  78% {
    top: 74.2%;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.61);
  }

  82%,
  96% {
    left: 75.5%;
    top: 74.5%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.61);
  }

  100% {
    left: 75.5%;
    top: 74.5%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.61);
  }
}

@keyframes morans-puppet-lily {
  0% {
    left: 58.8%;
    top: 76.7%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.58);
  }

  14% {
    left: 58.6%;
    top: 76.2%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(2deg) scale(0.58);
  }

  19% {
    left: 59.2%;
    top: 75.4%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(5deg) scale(0.61);
  }

  23% {
    left: 60.2%;
    top: 52%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(98deg) scale(0.74);
  }

  26% {
    left: 60.3%;
    top: 21.5%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(180deg) scale(0.88);
  }

  31% {
    left: 60%;
    top: 22.6%;
    transform: translate(-50%, -50%) rotate(166deg) scale(0.88);
  }

  36% {
    left: 60.8%;
    top: 20.6%;
    transform: translate(-50%, -50%) rotate(194deg) scale(0.9);
  }

  41% {
    left: 60%;
    top: 22.4%;
    transform: translate(-50%, -50%) rotate(168deg) scale(0.88);
  }

  46% {
    left: 60.8%;
    top: 20.7%;
    transform: translate(-50%, -50%) rotate(192deg) scale(0.9);
  }

  51% {
    left: 60%;
    top: 22.2%;
    transform: translate(-50%, -50%) rotate(169deg) scale(0.88);
  }

  57% {
    left: 60.7%;
    top: 20.9%;
    transform: translate(-50%, -50%) rotate(190deg) scale(0.89);
  }

  63% {
    left: 60.3%;
    top: 21.5%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(180deg) scale(0.88);
  }

  66% {
    left: 64%;
    top: 51%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(135deg) scale(0.74);
  }

  69% {
    left: 74%;
    top: 72%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(20deg) scale(0.64);
  }

  70% {
    left: 81.5%;
    top: 73%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(4deg) scale(0.62);
  }

  74% {
    left: 81.5%;
    top: 75.2%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-2deg) scale(0.61);
  }

  78% {
    top: 74.2%;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.61);
  }

  82%,
  96% {
    left: 81.5%;
    top: 74.5%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.61);
  }

  100% {
    left: 81.5%;
    top: 74.5%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.61);
  }
}

@keyframes morans-puppet-frames {
  0%,
  22%,
  32%,
  42%,
  52%,
  64%,
  77%,
  100% {
    background-position: left top;
  }

  22.01%,
  31.99%,
  42.01%,
  51.99%,
  64.01%,
  76.99% {
    background-position: right top;
  }
}

@keyframes morans-pizza-drop {
  0%,
  38% {
    left: 60%;
    top: 29%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-4deg) scale(0.72);
  }

  40% {
    opacity: 1;
  }

  46% {
    left: 61%;
    top: 53%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(12deg) scale(0.86);
  }

  53% {
    left: 62.5%;
    top: 73%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-16deg) scale(1);
  }

  57% {
    left: 63%;
    top: 66%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(8deg) scale(0.96);
  }

  61% {
    left: 63.5%;
    top: 73%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-4deg) scale(1);
  }

  64% {
    left: 66%;
    top: 68%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(5deg) scale(0.96);
  }

  68% {
    left: 69%;
    top: 55%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-3deg) scale(0.88);
  }

  70% {
    left: 33%;
    top: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(2deg) scale(1);
  }

  72%,
  78% {
    left: 33%;
    top: 50%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(2deg) scale(1);
  }

  94% {
    left: 29.5%;
    top: 49%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-3deg) scale(0.94);
  }

  98%,
  100% {
    left: 27%;
    top: 49%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-4deg) scale(0.9);
  }
}

@keyframes morans-cutscene-flash {
  0%,
  20.5% {
    opacity: 0;
  }

  22% {
    opacity: 0.62;
  }

  24.5%,
  66% {
    opacity: 0;
  }

  68.5% {
    opacity: 0.72;
  }

  71%,
  96% {
    opacity: 0;
  }

  98% {
    opacity: 0.18;
  }

  100% {
    opacity: 0;
  }
}

@keyframes morans-cutscene-caption {
  0%,
  72% {
    opacity: 0;
    transform: translateY(8px);
  }

  76%,
  91% {
    opacity: 1;
    transform: translateY(0);
  }

  95%,
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes morans-minimal-hold {
  0%,
  71.9% {
    opacity: 1;
    transform: none;
  }

  72%,
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes morans-minimal-getaway {
  0%,
  71.9% {
    opacity: 0;
    transform: none;
  }

  72%,
  97% {
    opacity: 1;
    transform: none;
  }

  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes morans-minimal-smoke {
  0%,
  9%,
  22%,
  37%,
  100% {
    left: 26.5%;
    top: 38.5%;
    opacity: 0;
  }

  12%,
  26% {
    left: 26.7%;
    top: 37.5%;
    opacity: 0.56;
  }

  18%,
  33% {
    left: 27.1%;
    top: 34.5%;
    opacity: 0;
  }
}

@keyframes morans-minimal-mark {
  0%,
  12% {
    left: 68%;
    top: 76%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.66);
  }

  17% {
    left: 67.2%;
    top: 75.1%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-7deg) scale(0.67);
  }

  22% {
    left: 68.7%;
    top: 75.7%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(8deg) scale(0.67);
  }

  27%,
  67% {
    left: 68%;
    top: 76%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.66);
  }

  72%,
  97% {
    left: 75.5%;
    top: 75%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.61);
  }

  100% {
    left: 75.5%;
    top: 75%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.61);
  }
}

@keyframes morans-minimal-lily {
  0%,
  12% {
    left: 60.3%;
    top: 21.5%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(180deg) scale(0.88);
  }

  17% {
    left: 60.8%;
    top: 20.6%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(191deg) scale(0.89);
  }

  22% {
    left: 59.9%;
    top: 22.4%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(169deg) scale(0.88);
  }

  27%,
  64% {
    left: 60.3%;
    top: 21.5%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(180deg) scale(0.88);
  }

  68% {
    left: 70%;
    top: 56%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(92deg) scale(0.72);
  }

  72%,
  97% {
    left: 81.5%;
    top: 75%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.61);
  }

  100% {
    left: 81.5%;
    top: 75%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.61);
  }
}

@keyframes morans-minimal-puppet-frames {
  0%,
  16%,
  23%,
  69%,
  100% {
    background-position: left top;
  }

  16.01%,
  22.99%,
  69.01%,
  96% {
    background-position: right top;
  }
}

@keyframes morans-minimal-pizza {
  0%,
  14% {
    left: 60.2%;
    top: 29%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-4deg) scale(0.74);
  }

  16% {
    left: 60.2%;
    top: 29%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-4deg) scale(0.76);
  }

  29% {
    left: 62.4%;
    top: 73%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-14deg) scale(1);
  }

  33% {
    left: 62.8%;
    top: 66%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(7deg) scale(0.97);
  }

  38%,
  58% {
    left: 63.2%;
    top: 73%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-3deg) scale(1);
  }

  67% {
    left: 47%;
    top: 54%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(4deg) scale(0.92);
  }

  71.9% {
    left: 34%;
    top: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(2deg) scale(0.94);
  }

  72%,
  95% {
    left: 34%;
    top: 50%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(2deg) scale(0.94);
  }

  100% {
    left: 30%;
    top: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-3deg) scale(0.9);
  }
}

@keyframes morans-minimal-caption {
  0%,
  50% {
    opacity: 0;
    transform: translateY(0);
  }

  52%,
  67% {
    opacity: 1;
    transform: translateY(0);
  }

  69%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

@keyframes backyard-dog-run {
  0% {
    top: 61.5%;
    left: 57.5%;
    opacity: 0;
    transform: translate(-50%, -100%) translateY(0) scale(0.7);
  }

  5% {
    top: 62.5%;
    left: 58.5%;
    opacity: 1;
    transform: translate(-50%, -100%) translateY(-3px) scale(0.74);
  }

  24% {
    top: 64.5%;
    left: 63.5%;
    opacity: 1;
    transform: translate(-50%, -100%) translateY(2px) scale(0.82);
  }

  48% {
    top: 66.8%;
    left: 68.5%;
    opacity: 1;
    transform: translate(-50%, -100%) translateY(-4px) scale(0.9);
  }

  72% {
    top: 68.8%;
    left: 73.5%;
    opacity: 1;
    transform: translate(-50%, -100%) translateY(2px) scale(0.97);
  }

  88% {
    top: 70%;
    left: 76.5%;
    opacity: 1;
    transform: translate(-50%, -100%) translateY(-4px) scale(1.01);
  }

  100% {
    top: 70.8%;
    left: 77.5%;
    opacity: 1;
    transform: translate(-50%, -100%) translateY(1px) scale(1.03);
  }
}

@keyframes backyard-runner {
  0%,
  100% {
    transform: translate(-50%, -100%) translateY(0) rotate(-1deg);
  }

  50% {
    transform: translate(-50%, -100%) translateY(-4px) rotate(1deg);
  }
}

@keyframes seaglass-startup {
  0% {
    filter: brightness(0.28) saturate(0.42);
  }

  9% {
    filter: brightness(0.88) saturate(0.9);
  }

  14% {
    filter: brightness(0.38) saturate(0.52);
  }

  25% {
    filter: brightness(1.02) saturate(1.08);
  }

  34% {
    filter: brightness(0.48) saturate(0.66);
  }

  45% {
    filter: brightness(1.06) saturate(1.16);
  }

  53% {
    filter: brightness(0.72) saturate(0.84);
  }

  69% {
    filter: brightness(1.08) saturate(1.18);
  }

  78% {
    filter: brightness(0.91) saturate(1.02);
  }

  100% {
    filter: brightness(1) saturate(1);
  }
}

@keyframes seaglass-distant-breathe {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.035);
  }
}

@keyframes seaglass-water-glimmer {
  0%,
  100% {
    background-position: 0 0;
    opacity: 0.2;
    transform: translateY(0);
  }

  50% {
    background-position: 100% 0;
    opacity: 0.48;
    transform: translateY(1px);
  }
}

@keyframes seaglass-live-sweep {
  0%,
  18% {
    background-position: 140% 0;
    opacity: 0.26;
  }

  55% {
    background-position: -45% 0;
    opacity: 0.72;
  }

  100% {
    background-position: -45% 0;
    opacity: 0.32;
  }
}

@keyframes seaglass-live-sparkle {
  0%,
  100% { opacity: 0.2; }
  35% { opacity: 0.8; }
  68% { opacity: 0.38; }
}

@keyframes float-billi {
  0%,
  100% {
    transform: translate(-50%, -100%) rotate(-8deg) translateY(-3px);
  }

  50% {
    transform: translate(-50%, -100%) rotate(-3deg) translateY(4px);
  }
}

@keyframes float-mumi {
  0%,
  100% {
    transform: translate(-50%, -100%) rotate(5deg) translateY(3px);
  }

  50% {
    transform: translate(-50%, -100%) rotate(10deg) translateY(-4px);
  }
}

.scene-decoration--mcdongald-clown {
  background-image: url("assets/mcdongald-clown-idle.svg?v=20261018b");
  background-position: left top;
  background-repeat: no-repeat;
  background-size: 200% 100%;
  filter: drop-shadow(2px 3px 1px rgba(3, 6, 9, 0.62));
  image-rendering: pixelated;
  transform-origin: 50% 100%;
  animation: mcdongald-clown-idle 2800ms steps(1, end) infinite;
}

.scene-decoration--mcdongald-clown-no-paper {
  background-image: url("assets/mcdongald-clown-idle-no-paper.svg?v=20261018b");
}

.scene-decoration--clown-ball {
  z-index: 2;
  border: 1px solid #271b16;
  border-radius: 0;
  background: #d24b2f;
  box-shadow: inset 1px 1px 0 #f3b34d;
  image-rendering: pixelated;
  opacity: 0;
  transform-origin: 50% 260%;
  pointer-events: none;
}

.scene-decoration--clown-ball-a {
  animation: clown-juggle-left 11800ms steps(12, end) infinite;
}

.scene-decoration--clown-ball-b {
  background: #d5b43e;
  animation: clown-juggle-middle 11800ms 360ms steps(12, end) infinite;
}

.scene-decoration--clown-ball-c {
  background: #458c7f;
  animation: clown-juggle-right 11800ms 720ms steps(12, end) infinite;
}

.scene-decoration--renee-diary {
  z-index: 2;
  border: 1px solid #09070b;
  background: #17121b;
  box-shadow:
    inset 1px 1px 0 #4c354d,
    2px 2px 0 rgba(4, 5, 7, 0.7);
  transform: rotate(-7deg);
  pointer-events: none;
}

.scene-decoration--renee-diary::before {
  position: absolute;
  top: 18%;
  left: 37%;
  width: 28%;
  height: 46%;
  border-right: 1px solid #b9a3c4;
  border-radius: 50%;
  content: "";
  transform: rotate(18deg);
}

.scene-decoration--piper-candle-box {
  z-index: 3;
  border: 1px solid #251611;
  background: #8f6740;
  box-shadow:
    inset 1px 1px 0 #c69b66,
    2px 3px 0 rgba(7, 7, 9, 0.64);
  transform: rotate(1deg);
  pointer-events: none;
}

.scene-decoration--piper-candle-box::before {
  position: absolute;
  inset: 15% 12% 20%;
  background: repeating-linear-gradient(90deg, #ab2630 0 12%, #e05a46 13% 17%, #5e1923 18% 20%);
  content: "";
}

.scene-decoration--piper-candle-box::after {
  position: absolute;
  right: 8%;
  bottom: 8%;
  left: 8%;
  height: 14%;
  background: #5e3c2b;
  content: "";
}

.scene-decoration--alder-ball {
  z-index: 3;
  border: 1px solid #32180d;
  background:
    linear-gradient(90deg, transparent 42%, #4d2415 42%, #4d2415 56%, transparent 56%),
    #a94d20;
  clip-path: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%);
  filter: drop-shadow(1px 2px 0 rgba(5, 8, 10, 0.6));
  image-rendering: pixelated;
  pointer-events: none;
}

.game-stage.is-alder-ball-bouncing .scene-decoration--alder-ball {
  animation: alder-ball-bounce 1900ms cubic-bezier(0.28, 0.68, 0.45, 1) both;
}

.scene-decoration--lantern-lid {
  z-index: 3;
  border: 1px solid #263038;
  background: #67747b;
  box-shadow: inset 2px 1px 0 #a0aaac, inset -2px -1px 0 #323b40;
  clip-path: polygon(18% 5%, 82% 5%, 100% 33%, 91% 79%, 66% 100%, 26% 94%, 0 61%, 5% 25%);
  filter: drop-shadow(2px 2px 0 rgba(4, 7, 9, 0.58));
  opacity: 0.96;
  pointer-events: none;
}

.game-stage.is-lantern-lid-skittering .scene-decoration--lantern-lid {
  animation: lantern-lid-skitter 1300ms steps(9, end) both;
}

.scene-decoration--morrow-motion-light {
  z-index: 1;
  background: rgba(244, 190, 91, 0.16);
  clip-path: polygon(43% 0, 55% 0, 100% 100%, 0 100%);
  image-rendering: pixelated;
  opacity: 0;
  pointer-events: none;
}

.game-stage.is-morrow-light-on .scene-decoration--morrow-motion-light {
  animation: morrow-motion-light 3600ms steps(1, end) both;
}

.scene-decoration--black-bracelet {
  object-fit: contain;
  filter:
    drop-shadow(0 0 2px rgba(190, 170, 255, 0.82))
    drop-shadow(2px 2px 1px rgba(0, 0, 0, 0.82));
  image-rendering: pixelated;
  animation: black-bracelet-ground 1500ms steps(3, end) infinite;
}

.walker--billi.has-black-bracelet:not(.has-bracelet) .walker-sprite {
  background-image: url("assets/billi-walk-black-bracelet.svg");
}

.walker--billi.has-bracelet.has-black-bracelet .walker-sprite {
  background-image: url("assets/billi-walk-two-bracelets.svg");
}

.black-bracelet-application {
  position: absolute;
  z-index: 3;
  top: 66.6667%;
  left: 18.75%;
  display: block;
  width: 6.25%;
  height: 4.1667%;
  background: #171020;
  box-shadow: 0 0 2px rgba(211, 196, 255, 0.84);
  image-rendering: pixelated;
  opacity: 0;
  pointer-events: none;
}

.black-bracelet-application::before,
.black-bracelet-application::after {
  position: absolute;
  width: 33.3333%;
  aspect-ratio: 1;
  background: #fff7d1;
  box-shadow:
    -100% 0 #c8b9ff,
    100% 0 #c8b9ff,
    0 -150% #fff7d1,
    0 150% #fff7d1;
  opacity: 0;
  content: "";
}

.black-bracelet-application::before {
  top: -170%;
  left: -90%;
}

.black-bracelet-application::after {
  right: -115%;
  bottom: -160%;
}

.walker--billi.is-left .black-bracelet-application {
  left: 75%;
}

.walker--billi.is-receiving-black-bracelet .black-bracelet-application {
  animation: black-bracelet-put-on 900ms steps(7, end) both;
}

.walker--billi.is-black-bracelet-sparkling .black-bracelet-application {
  opacity: 1;
  animation: black-bracelet-settle-glow 2400ms steps(6, end) both;
}

.walker--billi.is-black-bracelet-sparkling .black-bracelet-application::before {
  animation: bracelet-sparkle 1500ms steps(1, end) both;
}

.walker--billi.is-black-bracelet-sparkling .black-bracelet-application::after {
  animation: bracelet-sparkle 1500ms 650ms steps(1, end) both;
}

.twins-catch-cutscene.has-black-bracelet:not(.has-bracelet) .twins-catch-puppet--lily i,
.twins-catch-cutscene.has-black-bracelet:not(.has-bracelet) .twins-catch-puppet--lily i::before {
  background-image: url("assets/billi-walk-black-bracelet.svg");
}

.twins-catch-cutscene.has-bracelet.has-black-bracelet .twins-catch-puppet--lily i,
.twins-catch-cutscene.has-bracelet.has-black-bracelet .twins-catch-puppet--lily i::before {
  background-image: url("assets/billi-walk-two-bracelets.svg");
}

.game-stage.is-black-bracelet-cutaway {
  cursor: default;
}

.game-stage.is-black-bracelet-cutaway .scene-image,
.game-stage.is-black-bracelet-cutaway .scene-patches,
.game-stage.is-black-bracelet-cutaway .scene-decorations,
.game-stage.is-black-bracelet-cutaway .ritual-layer,
.game-stage.is-black-bracelet-cutaway .walkers {
  transform-origin: var(--bracelet-focus-x, 50%) var(--bracelet-focus-y, 70%);
  animation: bracelet-camera 5400ms both;
}

.game-stage.is-black-bracelet-cutaway .hotspots,
.game-stage.is-ritual-busy .hotspots,
.game-stage.is-topic-open .hotspots {
  pointer-events: none;
}

.game-stage.is-black-bracelet-cutaway .object-label,
.game-stage.is-ritual-busy .object-label,
.game-stage.is-topic-open .object-label {
  opacity: 0;
}

.ritual-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  transform-origin: center;
}

.ritual-line {
  --ritual-angle: 0deg;
  position: absolute;
  z-index: 0;
  display: block;
  height: 0.18%;
  min-height: 1px;
  background: rgba(181, 121, 80, 0.78);
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.64),
    0 0 1px rgba(235, 185, 126, 0.48);
  opacity: 0;
  transform: rotate(var(--ritual-angle)) scaleX(0);
  transform-origin: left center;
}

.ritual-line.is-drawn {
  opacity: 0.84;
  transform: rotate(var(--ritual-angle)) scaleX(1);
}

.ritual-line.is-animating {
  animation: ritual-line-trace 620ms linear both;
}

.ritual-line--1 {
  --ritual-angle: 57deg;
  top: 49%;
  left: 50%;
  width: 24%;
}

.ritual-line--2 {
  --ritual-angle: -162deg;
  top: 79%;
  left: 63%;
  width: 37%;
}

.ritual-line--3 {
  --ritual-angle: 0deg;
  top: 62%;
  left: 28%;
  width: 44%;
}

.ritual-line--4 {
  --ritual-angle: 162deg;
  top: 62%;
  left: 72%;
  width: 37%;
}

.ritual-line--5 {
  --ritual-angle: -57deg;
  top: 79%;
  left: 37%;
  width: 24%;
}

.ritual-candle {
  position: absolute;
  z-index: 1;
  display: block;
  width: 1.45%;
  min-width: 6px;
  height: 5.3%;
  min-height: 18px;
  border: 1px solid #45151a;
  background: linear-gradient(90deg, #681923 0 18%, #bd2f35 20% 66%, #e45f4c 68% 82%, #771c26 84% 100%);
  box-shadow:
    inset 1px 0 0 rgba(255, 165, 119, 0.54),
    1px 2px 0 rgba(15, 9, 8, 0.58);
  clip-path: polygon(6% 2%, 42% 0, 50% 3%, 60% 0, 94% 3%, 100% 100%, 0 100%);
  opacity: 0;
  transform: translate(-50%, -100%);
}

.ritual-candle::before {
  position: absolute;
  bottom: 100%;
  left: calc(50% - 1px);
  width: 2px;
  height: 4px;
  background: #1b1412;
  content: "";
}

.ritual-candle::after {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 28%;
  width: 1px;
  background: rgba(255, 174, 125, 0.58);
  content: "";
}

.ritual-candle.is-placed {
  opacity: 1;
}

.ritual-candle--top {
  top: 48.4%;
  left: 50%;
}

.ritual-candle--left {
  top: 58.4%;
  left: 28%;
}

.ritual-candle--lower-left {
  top: 72.4%;
  left: 37%;
}

.ritual-candle--lower-right {
  top: 72.4%;
  left: 63%;
}

.ritual-candle--right {
  top: 58.4%;
  left: 72%;
}

.ritual-flame {
  position: absolute;
  z-index: 2;
  display: block;
  width: 0.72%;
  min-width: 3px;
  aspect-ratio: 2 / 3;
  border-radius: 50% 50% 44% 44%;
  background: #ff8a28;
  box-shadow:
    0 0 2px #fff6b2,
    0 0 7px #ff7c25,
    0 0 14px rgba(205, 57, 31, 0.76);
  opacity: 0;
  transform: translate(-50%, -100%);
}

.ritual-flame::after {
  position: absolute;
  right: 25%;
  bottom: 9%;
  left: 25%;
  height: 52%;
  border-radius: 50%;
  background: #fff7bd;
  content: "";
}

.ritual-flame.is-lit {
  opacity: 1;
  animation: ritual-flame 760ms steps(3, end) infinite;
}

.ritual-flame--top {
  top: 42.5%;
  left: 50%;
}

.ritual-flame--left {
  top: 52.5%;
  left: 28%;
}

.ritual-flame--lower-left {
  top: 66.5%;
  left: 37%;
}

.ritual-flame--lower-right {
  top: 66.5%;
  left: 63%;
}

.ritual-flame--right {
  top: 52.5%;
  left: 72%;
}

.ritual-portal {
  position: absolute;
  z-index: 3;
  top: 58%;
  left: 50%;
  display: block;
  width: 12.5%;
  height: 34%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 6px rgba(102, 118, 255, 0.88))
    drop-shadow(0 0 18px rgba(121, 58, 177, 0.66));
  image-rendering: pixelated;
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.55, 0.16);
}

.game-stage.is-ritual-awakening .ritual-line.is-drawn {
  box-shadow:
    0 0 5px rgba(255, 89, 59, 0.92),
    0 0 11px rgba(115, 64, 211, 0.56);
  animation: ritual-star-pulse 360ms steps(2, end) infinite;
}

.game-stage.is-ritual-awakening .ritual-portal {
  animation: ritual-portal-flicker 2850ms steps(1, end) both;
}

.game-stage.is-ritual-awakening .scene-image {
  animation: ritual-scene-flicker 2850ms steps(1, end) both;
}

.topic-menu {
  position: absolute;
  z-index: 22;
  top: 50%;
  left: 50%;
  width: min(560px, 90%);
  overflow: hidden;
  border: 2px solid #9b7947;
  background: #121516;
  box-shadow:
    inset 0 0 0 2px #050607,
    inset 0 0 0 4px #3b3327,
    0 0 0 3px #060708,
    8px 9px 0 rgba(0, 0, 0, 0.78),
    0 0 0 100vmax rgba(1, 5, 8, 0.58);
  color: #f1e6cf;
  transform: translate(-50%, -50%);
}

.topic-menu-header {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 11px;
  padding: 10px 11px 9px;
  border-bottom: 2px solid #72572f;
  background: #211b15;
}

.topic-menu-header img {
  display: block;
  width: 58px;
  height: 58px;
  border: 2px solid #9b7947;
  background: #080b0d;
  image-rendering: pixelated;
}

.topic-menu-header h2 {
  margin: 0;
  color: #e8bd66;
  font-family: "URW Bookman", "Bookman Old Style", Rockwell, serif;
  font-size: 21px;
  letter-spacing: 0;
  text-shadow: 1px 2px 0 #000000;
}

.topic-menu-header button {
  width: 34px;
  height: 34px;
  padding: 0 0 3px;
  border: 2px solid;
  border-color: #b79558 #080706 #080706 #6d5430;
  background: #211b15;
  color: #f0c868;
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
}

.topic-options {
  display: grid;
  gap: 7px;
  padding: 13px;
}

.topic-options button {
  position: relative;
  min-height: 43px;
  padding: 8px 13px 9px 31px;
  border: 1px solid #6e5736;
  background: #181b1c;
  box-shadow: inset 3px 0 0 #a77b37;
  color: #f1e6cf;
  font-family: "URW Bookman", "Bookman Old Style", Rockwell, "DejaVu Serif", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-shadow: 1px 1px 0 #000000;
  cursor: pointer;
}

.topic-options button::before {
  position: absolute;
  top: 50%;
  left: 13px;
  color: #d5a34b;
  content: ">";
  transform: translateY(-52%);
}

.topic-options button:hover,
.topic-options button:focus-visible {
  border-color: #c39b55;
  background: #29231c;
  color: #fff3d6;
  outline: 2px solid #d4ad64;
  outline-offset: -3px;
}

.topic-options button.is-asked {
  color: #a99f8d;
}

.topic-options button.is-asked::before {
  color: #756a59;
  content: "·";
}

.topic-options .topic-done {
  margin-top: 3px;
  box-shadow: inset 3px 0 0 #5f6d6b;
  color: #c9d4cf;
}

@keyframes mcdongald-clown-idle {
  0%,
  44%,
  100% { background-position: left top; }
  45%,
  58% { background-position: right top; }
}

@keyframes clown-juggle-left {
  0%, 54%, 76%, 100% { opacity: 0; transform: translate(0, 38%) rotate(0); }
  56% { opacity: 1; transform: translate(115%, 12%) rotate(90deg); }
  61% { opacity: 1; transform: translate(235%, -245%) rotate(180deg); }
  66% { opacity: 1; transform: translate(360%, -315%) rotate(270deg); }
  71% { opacity: 1; transform: translate(480%, -180%) rotate(360deg); }
  74% { opacity: 1; transform: translate(555%, 20%) rotate(450deg); }
}

@keyframes clown-juggle-middle {
  0%, 54%, 76%, 100% { opacity: 0; transform: translate(0, 38%) rotate(0); }
  56% { opacity: 1; transform: translate(-105%, -5%) rotate(-90deg); }
  61% { opacity: 1; transform: translate(-225%, -265%) rotate(-180deg); }
  66% { opacity: 1; transform: translate(-340%, -330%) rotate(-270deg); }
  71% { opacity: 1; transform: translate(-455%, -170%) rotate(-360deg); }
  74% { opacity: 1; transform: translate(-520%, 22%) rotate(-450deg); }
}

@keyframes clown-juggle-right {
  0%, 54%, 76%, 100% { opacity: 0; transform: translate(0, 32%) rotate(0); }
  56% { opacity: 1; transform: translate(-120%, -20%) rotate(-90deg); }
  61% { opacity: 1; transform: translate(-250%, -230%) rotate(-180deg); }
  66% { opacity: 1; transform: translate(-370%, -285%) rotate(-270deg); }
  71% { opacity: 1; transform: translate(-485%, -135%) rotate(-360deg); }
  74% { opacity: 1; transform: translate(-555%, 24%) rotate(-450deg); }
}

@keyframes alder-ball-bounce {
  0% { transform: translate(0, 0) rotate(0); }
  24% { transform: translate(-88%, -485%) rotate(90deg); }
  47% { transform: translate(-150%, -735%) rotate(180deg); }
  66% { transform: translate(-205%, -360%) rotate(270deg); }
  76% { transform: translate(-238%, 0) rotate(360deg) scaleY(0.72); }
  84% { transform: translate(-255%, -155%) rotate(405deg); }
  100% { transform: translate(-285%, 0) rotate(495deg); }
}

@keyframes lantern-lid-skitter {
  0% { transform: translate(0, 0) rotate(0); }
  18% { transform: translate(-18%, -18%) rotate(-11deg); }
  34% { transform: translate(22%, 5%) rotate(9deg); }
  52% { transform: translate(48%, -11%) rotate(24deg); }
  69% { transform: translate(80%, 8%) rotate(39deg); }
  84% { transform: translate(101%, 1%) rotate(31deg); }
  100% { transform: translate(118%, 8%) rotate(36deg); }
}

@keyframes morrow-motion-light {
  0%, 7% { opacity: 0; }
  8%, 13% { opacity: 0.48; }
  14%, 18% { opacity: 0.08; }
  19%, 93% { opacity: 0.62; }
  94%, 100% { opacity: 0; }
}

@keyframes black-bracelet-ground {
  0%,
  100% { opacity: 0.82; }
  50% { opacity: 1; }
}

@keyframes black-bracelet-put-on {
  0% {
    opacity: 0;
    transform: translate(-750%, -500%) scale(2);
  }
  14% { opacity: 1; }
  70% {
    opacity: 1;
    transform: translate(0, 0) scale(1.25);
  }
  84% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes black-bracelet-settle-glow {
  0%,
  100% {
    background: rgba(23, 16, 32, 0);
    box-shadow: 0 0 0 rgba(211, 196, 255, 0);
  }
  17%,
  34%,
  58% {
    background: rgba(23, 16, 32, 0.72);
    box-shadow: 0 0 5px rgba(211, 196, 255, 0.94);
  }
  25%,
  46%,
  72% {
    background: rgba(23, 16, 32, 0.3);
    box-shadow: 0 0 1px rgba(211, 196, 255, 0.42);
  }
}

@keyframes ritual-line-trace {
  0% {
    opacity: 0.4;
    transform: rotate(var(--ritual-angle)) scaleX(0);
  }
  100% {
    opacity: 0.84;
    transform: rotate(var(--ritual-angle)) scaleX(1);
  }
}

@keyframes ritual-flame {
  0%,
  100% { transform: translate(-50%, -100%) scale(1, 1); }
  33% { transform: translate(-48%, -100%) scale(0.86, 1.14); }
  66% { transform: translate(-53%, -100%) scale(1.08, 0.92); }
}

@keyframes ritual-star-pulse {
  0%,
  100% { opacity: 0.76; }
  50% { opacity: 1; }
}

@keyframes ritual-portal-flicker {
  0%, 12%, 14%, 21%, 23%, 36%, 49%, 59%, 61%, 75%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55, 0.16);
  }
  13% {
    opacity: 0.26;
    transform: translate(-50%, -50%) scale(0.62, 0.35);
  }
  22% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(0.76, 0.68);
  }
  24%, 35% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(0.9, 0.96);
  }
  37%, 48% {
    opacity: 0.56;
    transform: translate(-50%, -50%) scale(1, 1);
  }
  60% {
    opacity: 0.36;
    transform: translate(-50%, -50%) scale(0.96, 1.02);
  }
  62%, 74% {
    opacity: 0.13;
    transform: translate(-50%, -50%) scale(0.82, 0.56);
  }
}

@keyframes ritual-scene-flicker {
  0%,
  15%,
  24%,
  45%,
  56%,
  100% { filter: none; }
  16%,
  23% { filter: brightness(1.08) saturate(0.88) hue-rotate(9deg); }
  46%,
  55% { filter: brightness(1.16) saturate(0.78) hue-rotate(18deg); }
}

@media (max-width: 620px) {
  .topic-menu {
    width: 94%;
    max-height: 97%;
    overflow-y: auto;
  }

  .topic-menu-header {
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    gap: 7px;
    padding: 5px 7px;
  }

  .topic-menu-header img {
    width: 38px;
    height: 38px;
  }

  .topic-menu-header h2 {
    font-size: 16px;
  }

  .topic-menu-header button {
    width: 30px;
    height: 30px;
    font-size: 22px;
  }

  .topic-options {
    gap: 3px;
    padding: 5px 7px 7px;
  }

  .topic-options button {
    min-height: 31px;
    padding: 4px 8px 5px 24px;
    font-size: 13px;
  }

  .topic-options button::before {
    left: 9px;
  }

  .game-title-bar {
    grid-template-columns: minmax(0, 1fr) 31px 25px;
    gap: 7px;
  }

  .location-label {
    display: none;
  }

  .game-stage.is-nora-cat-cutaway .dialogue {
    bottom: 2.5%;
    width: 94%;
    min-height: 66px;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: 20px auto;
    grid-template-areas:
      "portrait speaker"
      "portrait line";
    column-gap: 8px;
    row-gap: 2px;
    padding: 7px 9px 8px 11px;
  }

  .game-stage.is-nora-cat-cutaway .dialogue-portrait {
    width: 36px;
    height: 36px;
  }

  .game-stage.is-nora-cat-cutaway .dialogue #dialogue-line {
    padding: 2px 3px 1px 7px;
    font-size: 13.5px;
    line-height: 1.18;
  }

  .game-stage.is-nora-cat-cutaway .dialogue strong {
    padding: 0 6px 1px;
    font-size: 10px;
  }

  .item-notice {
    width: 90%;
    min-height: 50px;
    padding: 8px 11px 9px 19px;
    font-size: 15px;
  }

  .pocket-label,
  .held-item {
    display: none;
  }

  .inventory-item {
    min-height: 36px;
    padding-inline: 9px;
    font-size: 13px;
  }

  .object-label {
    font-size: clamp(15px, 4.2vw, 18px);
  }
}

@media (max-width: 620px) and (orientation: portrait) {
  body {
    overflow-y: auto;
    background: #c0c0c0;
  }

  .game-window {
    display: block;
    height: auto;
  }

  .scene-well {
    min-height: 0;
    place-items: start center;
  }

  .game-stage {
    width: 100%;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .game-window {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .game-title-bar {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 26px;
    padding-block: 1px;
  }

  .game-title-bar h1 img {
    width: 17px;
    height: 17px;
  }

  .window-close {
    height: 21px;
  }

  .scene-well {
    grid-column: 1;
    grid-row: 2;
    margin: 4px;
  }

  .game-stage {
    width: min(100%, calc((100dvh - 76px) * 1.5), 1152px);
  }

  .dialogue {
    bottom: 4%;
    width: min(620px, 92%);
  }

  .pocket-bar {
    min-height: 42px;
    grid-column: 1;
    grid-row: 3;
  }

  .pocket-label,
  .held-item {
    display: none;
  }

  .inventory-item {
    min-height: 32px;
    padding: 3px 7px;
    font-size: 12px;
  }

  .restart-button {
    width: 29px;
    height: 28px;
  }
}

@media (max-width: 620px), (max-height: 500px) and (orientation: landscape) {
  .dialogue {
    bottom: 3%;
    width: min(620px, 95%);
    min-height: 0;
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    grid-template-rows: 18px auto;
    grid-template-areas:
      "portrait speaker next"
      "portrait line next";
    column-gap: 7px;
    row-gap: 2px;
    padding: 7px 8px 8px 10px;
    box-shadow:
      inset 0 0 0 2px #050607,
      inset 0 0 0 4px #3b3327,
      0 0 0 2px #c9b47c,
      0 0 0 4px #060708,
      4px 5px 0 rgba(0, 0, 0, 0.78);
  }

  .dialogue:not(.has-portrait) {
    grid-template-columns: minmax(0, 1fr) 30px;
    grid-template-rows: 18px auto;
    grid-template-areas:
      "speaker next"
      "line next";
  }

  .dialogue-portrait {
    width: 38px;
    height: 38px;
    align-self: start;
  }

  .dialogue #dialogue-line {
    padding: 2px 3px 1px 7px;
    font-size: 15px;
    line-height: 1.22;
  }

  .dialogue strong {
    display: table;
    margin: 0;
    padding: 0 6px 1px;
    font-size: 10.5px;
    line-height: 1.15;
  }

  .dialogue-next {
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding-bottom: 2px;
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .item-notice.is-visible,
  .walker-banter.is-visible,
  .inventory::before,
  .pocket-label::before,
  .hotspot[data-arrow]::before,
  .walker--billi.is-tripping .walker-sprite,
  .walker--billi.is-limping.is-walking .walker-sprite,
  .walker.is-walking .walker-sprite,
  .game-stage[data-scene="cosmos"] .walker,
  .piper-cat-sprite,
  .piper-cat-poof,
  .scene-decoration--mcdongald-clown,
  .scene-decoration--clown-ball,
  .game-stage.is-alder-ball-bouncing .scene-decoration--alder-ball,
  .game-stage.is-lantern-lid-skittering .scene-decoration--lantern-lid,
  .game-stage.is-morrow-light-on .scene-decoration--morrow-motion-light,
  .scene-decoration--black-bracelet,
  .ritual-line,
  .ritual-flame,
  .ritual-portal,
  .scene-loader span {
    animation: none;
  }

  .piper-cat {
    transition: none;
  }

  .game-stage.is-bracelet-cutaway .scene-image,
  .game-stage.is-bracelet-cutaway .scene-patches,
  .game-stage.is-bracelet-cutaway .scene-decorations,
  .game-stage.is-bracelet-cutaway .walkers,
  .game-stage.is-black-bracelet-cutaway .scene-image,
  .game-stage.is-black-bracelet-cutaway .scene-patches,
  .game-stage.is-black-bracelet-cutaway .scene-decorations,
  .game-stage.is-black-bracelet-cutaway .ritual-layer,
  .game-stage.is-black-bracelet-cutaway .walkers,
  .walker--billi.is-receiving-bracelet .bracelet-application,
  .walker--billi.is-bracelet-sparkling .bracelet-application,
  .walker--billi.is-bracelet-sparkling .bracelet-application::before,
  .walker--billi.is-bracelet-sparkling .bracelet-application::after,
  .walker--billi.is-receiving-black-bracelet .black-bracelet-application,
  .walker--billi.is-black-bracelet-sparkling .black-bracelet-application,
  .walker--billi.is-black-bracelet-sparkling .black-bracelet-application::before,
  .walker--billi.is-black-bracelet-sparkling .black-bracelet-application::after,
  .game-stage.is-ritual-awakening .scene-image,
  .bridge-mouse.is-running,
  .trash-can-man.is-strolling,
  .rolling-tire.is-rolling,
  .tire-impact-cutscene.is-playing .tire-impact-world,
  .tire-impact-cutscene.is-playing .tire-impact-wheel,
  .tire-impact-cutscene.is-playing .tire-impact-hood,
  .tire-impact-cutscene.is-playing .tire-impact-flash,
  .nora-cat-cutscene.is-playing .nora-cat-cutscene-world,
  .nora-cat-cutscene.is-playing .nora-cat-cutscene-plate--point,
  .nora-cat-cutscene.is-playing .nora-cat-cutscene-cat,
  .nora-cat-cutscene-cat i,
  .scene-decoration--tony-window-panel,
  .scene-decoration--tony-window-head,
  .scene-decoration--band-window,
  .scene-decoration--tv-window,
  .scene-decoration--inspection-shimmer,
  .scene-decoration--island-beacon,
  .scene-decoration--nook-violinist,
  .scene-decoration--smoking-twin,
  .scene-decoration--seaglass-distant-glow,
  .scene-decoration--seaglass-water-shimmer,
  .scene-decoration--seaglass-live-sheen,
  .scene-decoration--seaglass-live-sheen::after,
  .falling-leaf,
  .game-stage.is-fence-hopping .walker,
  .game-stage.is-fence-hopping .walker-sprite,
  .yard-dog.is-chasing,
  .game-stage.is-backyard-dog-chase .walker,
  .game-stage.is-seaglass-starting .scene-image,
  .walker--danny.is-grabbing .walker-sprite,
  .game-stage.is-shop-door-wiggling .scene-decoration--shuttered-door,
  .game-stage.is-shop-door-opening .scene-decoration--shuttered-door,
  .game-stage.is-three-person-pry .scene-decoration--pry-bar,
  .game-stage.is-three-person-pry .walker {
    animation: none;
  }

  .walker--billi.is-receiving-black-bracelet .black-bracelet-application,
  .walker--billi.is-black-bracelet-sparkling .black-bracelet-application {
    opacity: 1;
    transform: none;
  }

  .game-stage.is-ritual-awakening .ritual-portal {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
  }

  .tire-impact-cutscene.is-playing .tire-impact-hood {
    opacity: 1;
    transform: none;
  }

  .nora-cat-cutscene.is-playing .nora-cat-cutscene-world {
    opacity: 1;
    transform: translate(-25%, 8%) scale(2.32);
  }

  .nora-cat-cutscene.is-playing .nora-cat-cutscene-plate--point {
    opacity: 1;
  }

  .nora-cat-cutscene.is-playing .nora-cat-cutscene-cat {
    transform: translate(-61%, -100%) rotate(-2deg) scale(1.08);
  }

  .twins-catch-cutscene {
    --catch-duration: 4300ms;
  }

  .twins-catch-plate {
    transform: none !important;
  }
}
