:root {
  --freezer-night: #131627;
  --warning-tangerine: #FF7A1A;
  --slime-lantern: #B6FF3B;
  --receipt-cream: #FFF2CC;
  --laundromat-lilac: #B8A4FF;
  --bruise-plum: #4B174F;
  --moldy-mint: #6FE6B8;
  --display: 'Bungee Shade', cursive;
  --scribble: 'Barriecito', cursive;
  --body: 'Nunito Sans', sans-serif;
  --mono: 'Space Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--receipt-cream);
  background: var(--freezer-night);
  font-family: var(--body);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  z-index: 20;
  background-image:
    radial-gradient(circle at 20% 30%, var(--receipt-cream) 0 1px, transparent 1.4px),
    radial-gradient(circle at 80% 70%, var(--moldy-mint) 0 1px, transparent 1.5px),
    repeating-linear-gradient(105deg, transparent 0 10px, rgba(255, 242, 204, .09) 11px 12px);
  background-size: 34px 34px, 48px 48px, 100% 100%;
  mix-blend-mode: screen;
}

.monster-chamber {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5vw, 72px);
  display: grid;
  align-items: center;
}

.monster-chamber::after {
  content: attr(data-chamber);
  position: absolute;
  right: 3vw;
  bottom: 2vh;
  font-family: var(--display);
  font-size: clamp(4rem, 14vw, 13rem);
  color: rgba(255, 242, 204, .06);
  z-index: -1;
}

.mono-label { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.specimen-label {
  width: max-content;
  max-width: min(92vw, 560px);
  padding: 12px 18px;
  color: var(--freezer-night);
  background: var(--receipt-cream);
  border: 2px dashed var(--freezer-night);
  box-shadow: 8px 8px 0 rgba(0,0,0,.35);
  transform: rotate(-2deg);
}

.field-note {
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  line-height: 1.55;
  max-width: 670px;
}

.chapter-tag { position: relative; z-index: 2; align-self: start; }
.chapter-tag h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 7.2rem);
  line-height: .9;
  color: var(--slime-lantern);
  text-shadow: 4px 5px 0 var(--bruise-plum), 0 0 28px rgba(182,255,59,.32);
}

.chapter-tag .mono-label {
  display: inline-block;
  padding: 8px 12px;
  background: var(--warning-tangerine);
  color: var(--freezer-night);
  transform: rotate(1deg);
}

.crooked-sticker {
  font-family: var(--scribble);
  font-size: clamp(1.1rem, 2.3vw, 1.8rem);
  color: var(--freezer-night);
  background: var(--warning-tangerine);
  border: 0;
  border-radius: 50% 42% 48% 55% / 48% 56% 42% 52%;
  padding: 16px 24px;
  box-shadow: 7px 8px 0 var(--bruise-plum), inset 0 0 0 3px rgba(255,242,204,.5);
  cursor: pointer;
  transform: rotate(-7deg);
  transition: transform .28s ease, filter .28s ease;
  z-index: 4;
}

.crooked-sticker:hover, .crooked-sticker.is-wiggling { transform: rotate(4deg) scale(1.08); filter: saturate(1.25); }

.lint-portal {
  background:
    radial-gradient(circle at 75% 18%, rgba(184,164,255,.34), transparent 30%),
    radial-gradient(circle at 14% 88%, rgba(111,230,184,.22), transparent 34%),
    linear-gradient(145deg, var(--freezer-night), var(--bruise-plum) 115%);
}

.fog-pane {
  position: absolute;
  inset: 8vh 6vw;
  border-radius: 42% 58% 49% 51% / 44% 39% 61% 56%;
  background: linear-gradient(135deg, rgba(255,242,204,.12), rgba(184,164,255,.24), rgba(111,230,184,.12));
  border: 2px solid rgba(255,242,204,.24);
  filter: blur(.2px);
  animation: morph 9s ease-in-out infinite;
}

.portal-copy { position: relative; z-index: 2; transform: rotate(-1deg); }
.portal-copy h1 {
  margin: 18px 0;
  font-family: var(--display);
  font-size: clamp(4rem, 14vw, 13.5rem);
  line-height: .78;
  color: var(--receipt-cream);
  text-shadow: 5px 6px 0 var(--warning-tangerine), 0 0 36px rgba(182,255,59,.34);
}

.lint-portal .story-trigger { position: absolute; right: 12vw; bottom: 18vh; }
.hidden-receipt {
  position: absolute;
  right: 8vw;
  bottom: 7vh;
  max-width: 360px;
  padding: 20px;
  font-family: var(--scribble);
  font-size: 1.35rem;
  color: var(--freezer-night);
  background: var(--receipt-cream);
  transform: translateY(70px) rotate(5deg);
  opacity: 0;
  transition: opacity .45s ease, transform .45s ease;
  clip-path: polygon(0 0, 96% 0, 100% 12%, 94% 23%, 100% 37%, 96% 100%, 0 100%);
  z-index: 3;
}
.hidden-receipt.is-revealed { opacity: 1; transform: translateY(0) rotate(2deg); }

.eye-cluster { position: absolute; display: flex; flex-wrap: wrap; gap: 14px; z-index: 3; }
.cluster-left { left: 5vw; top: 16vh; width: 120px; transform: rotate(-12deg); }
.cluster-right { right: 8vw; top: 10vh; width: 150px; transform: rotate(9deg); }
.eye-cluster span {
  width: 34px;
  height: 25px;
  border-radius: 50%;
  background: var(--slime-lantern);
  box-shadow: 0 0 22px var(--slime-lantern);
  position: relative;
  animation: blink 4.5s infinite;
}
.eye-cluster span::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  left: var(--pupil-x, 12px);
  top: var(--pupil-y, 8px);
  background: var(--freezer-night);
  transition: left .16s ease, top .16s ease;
}

.slime-trail { position: absolute; top: -10vh; width: 26px; height: 42vh; border-radius: 0 0 24px 24px; background: linear-gradient(var(--moldy-mint), var(--slime-lantern)); opacity: .72; animation: drip 7s linear infinite; }
.trail-a { left: 24vw; }
.trail-b { right: 28vw; animation-delay: -3s; height: 32vh; }

.lint-tumble { position: absolute; width: 84px; height: 84px; border: 3px dotted var(--laundromat-lilac); border-radius: 45% 55% 48% 52%; opacity: .5; animation: tumble 16s linear infinite; }
.tumble-one { left: 10vw; bottom: 8vh; }
.tumble-two { right: 25vw; bottom: 12vh; animation-delay: -8s; }

.frosted-drawer { background: linear-gradient(180deg, var(--bruise-plum), var(--freezer-night)); grid-template-rows: auto 1fr auto; gap: 28px; }
.drawer-case {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  align-items: stretch;
  z-index: 2;
}
.specimen-card {
  min-height: 340px;
  padding: 24px;
  color: var(--freezer-night);
  background: rgba(255,242,204,.88);
  border: 4px solid var(--moldy-mint);
  border-radius: 28px;
  box-shadow: 12px 14px 0 rgba(0,0,0,.3), inset 0 0 30px rgba(184,164,255,.44);
  position: relative;
  overflow: hidden;
  transform: translateY(30px) rotate(var(--tilt));
  transition: transform .55s cubic-bezier(.2,1.2,.25,1), box-shadow .35s ease;
}
.specimen-card.is-open { transform: translateY(0) rotate(var(--tilt)) scale(1.03); box-shadow: 16px 18px 0 rgba(0,0,0,.38), 0 0 26px rgba(182,255,59,.3); }
.card-one { grid-column: 1 / span 4; --tilt: -3deg; }
.card-two { grid-column: 5 / span 4; --tilt: 2deg; margin-top: 7vh; }
.card-three { grid-column: 9 / span 4; --tilt: -1deg; }
.specimen-card h3 { font-family: var(--scribble); font-size: 2.3rem; margin: 30px 0 10px; }
.tooth-index { position: absolute; top: 12px; right: 18px; font-family: var(--mono); font-weight: 700; color: var(--warning-tangerine); }
.mini-monster, .snack-creature { position: absolute; border-radius: 45% 55% 50% 50%; background: var(--laundromat-lilac); }
.mini-monster { width: 150px; height: 110px; bottom: -18px; right: 24px; animation: bouncePeek 3.8s ease-in-out infinite; }
.mini-monster i, .snack-creature em, .parade-monster span { position: absolute; width: 18px; height: 18px; background: var(--slime-lantern); border-radius: 50%; box-shadow: 0 0 12px var(--slime-lantern); }
.mini-monster i:first-child { left: 42px; top: 34px; } .mini-monster i:nth-child(2) { right: 42px; top: 38px; }
.mini-monster b { position: absolute; left: 52px; top: -24px; width: 18px; height: 38px; background: var(--warning-tangerine); border-radius: 60% 60% 0 0; transform: rotate(-18deg); }
.jar-window { position: absolute; right: 24px; bottom: 20px; width: 120px; height: 150px; border-radius: 44px 44px 18px 18px; border: 5px solid var(--moldy-mint); background: rgba(111,230,184,.24); }
.jar-window span { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: var(--slime-lantern); animation: bubble 4s infinite; }
.jar-window span:nth-child(1) { left: 24px; bottom: 22px; } .jar-window span:nth-child(2) { left: 64px; bottom: 50px; animation-delay: -1s; } .jar-window span:nth-child(3) { left: 43px; bottom: 86px; animation-delay: -2s; }
.receipt-bite { position: absolute; right: 24px; bottom: 22px; padding: 18px; font-family: var(--mono); background: var(--receipt-cream); clip-path: polygon(0 0, 100% 0, 92% 12%, 100% 22%, 91% 34%, 100% 48%, 90% 61%, 100% 74%, 92% 100%, 0 100%); }
.drawer-trigger { justify-self: center; }
.type-log { justify-self: center; min-height: 28px; font-family: var(--mono); color: var(--moldy-mint); }
.font-receipt { justify-self: end; font-size: .78rem; transform: rotate(2deg); }

.snack-nest { background: radial-gradient(circle at 20% 30%, rgba(255,122,26,.24), transparent 35%), linear-gradient(90deg, #131627, #4B174F 55%, #131627); }
.aisle-light { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 90px, rgba(184,164,255,.14) 92px 128px); animation: flashlight 8s ease-in-out infinite; }
.snack-tag { align-self: start; }
.vending-map { justify-self: center; width: min(760px, 88vw); height: 440px; border: 5px solid var(--laundromat-lilac); border-radius: 38px; background: rgba(19,22,39,.68); box-shadow: inset 0 0 50px rgba(184,164,255,.25), 18px 18px 0 rgba(0,0,0,.3); position: relative; z-index: 2; transform: rotate(1.5deg); }
.spiral-slot { position: absolute; width: 145px; height: 145px; border-radius: 50%; border: 16px solid var(--warning-tangerine); border-left-color: transparent; box-shadow: 0 0 0 8px rgba(255,242,204,.12); animation: spinSnack 9s linear infinite; }
.slot-a { left: 70px; top: 62px; } .slot-b { left: 300px; top: 92px; animation-direction: reverse; } .slot-c { right: 70px; top: 58px; }
.crumb-path span { position: absolute; width: 15px; height: 12px; border-radius: 50%; background: var(--receipt-cream); transform: rotate(18deg); transition: transform .35s ease, background .35s ease; }
.crumb-path span:nth-child(1) { left: 90px; bottom: 80px; } .crumb-path span:nth-child(2) { left: 155px; bottom: 112px; } .crumb-path span:nth-child(3) { left: 240px; bottom: 94px; } .crumb-path span:nth-child(4) { left: 330px; bottom: 132px; } .crumb-path span:nth-child(5) { right: 240px; bottom: 88px; } .crumb-path span:nth-child(6) { right: 150px; bottom: 128px; }
.crumb-path.is-followed span { background: var(--slime-lantern); transform: translateY(-12px) rotate(70deg) scale(1.4); }
.snack-creature { width: 180px; height: 96px; right: 54px; bottom: -22px; background: var(--moldy-mint); transform: translateY(45px); transition: transform .5s cubic-bezier(.2,1.4,.3,1); }
.snack-creature.is-awake { transform: translateY(0); }
.snack-creature em:first-child { left: 54px; top: 28px; } .snack-creature em:nth-child(2) { right: 54px; top: 28px; }
.snack-creature strong { position: absolute; left: 74px; bottom: 18px; width: 38px; height: 14px; border-bottom: 6px dotted var(--freezer-night); }
.crumb-trigger { position: absolute; left: 12vw; bottom: 12vh; }
.aisle-note { position: absolute; right: 7vw; bottom: 10vh; z-index: 3; transform: rotate(3deg); }

.molt-tunnel { background: radial-gradient(ellipse at center, var(--bruise-plum), var(--freezer-night) 65%); }
.tunnel-mouth { position: absolute; inset: 12vh 14vw; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.64), rgba(75,23,79,.3) 48%, transparent 70%); border: 3px solid rgba(111,230,184,.28); animation: tunnelPulse 6s ease-in-out infinite; }
.tunnel-copy { align-self: end; z-index: 2; margin-left: auto; color: var(--receipt-cream); }
.molt-ribbon { position: absolute; left: -5vw; width: 112vw; padding: 16px 0; font-family: var(--scribble); font-size: clamp(1.4rem, 3vw, 2.3rem); color: var(--freezer-night); background: var(--receipt-cream); white-space: nowrap; opacity: .86; box-shadow: 0 10px 0 rgba(0,0,0,.18); }
.ribbon-one { top: 30vh; transform: rotate(-7deg); animation: ribbonDrift 13s linear infinite; }
.ribbon-two { top: 58vh; transform: rotate(5deg); animation: ribbonDrift 16s linear reverse infinite; background: var(--laundromat-lilac); }
.containment-ring { position: absolute; right: 13vw; top: 27vh; width: 210px; height: 210px; border-radius: 50%; border: 5px dashed var(--slime-lantern); animation: borderAnimate 8s linear infinite; }
.containment-ring span { position: absolute; inset: 36px; border-radius: 50%; border: 3px solid var(--warning-tangerine); }
.footprints i { position: absolute; width: 25px; height: 34px; border-radius: 55% 45% 60% 40%; background: var(--moldy-mint); opacity: .8; }
.footprints i:nth-child(1) { left: 18vw; bottom: 18vh; } .footprints i:nth-child(2) { left: 24vw; bottom: 25vh; } .footprints i:nth-child(3) { left: 33vw; bottom: 29vh; } .footprints i:nth-child(4) { left: 42vw; bottom: 37vh; } .footprints i:nth-child(5) { left: 50vw; bottom: 42vh; }

.night-parade { background: linear-gradient(180deg, var(--freezer-night), #070812); align-content: center; }
.moon-token { position: absolute; right: 9vw; top: 10vh; width: 180px; height: 180px; display: grid; place-items: center; border-radius: 50%; background: var(--receipt-cream); color: var(--freezer-night); font-family: var(--display); font-size: 5rem; box-shadow: 0 0 55px rgba(255,242,204,.48); }
.parade-track { position: relative; height: 300px; margin-top: 8vh; border-bottom: 8px dotted var(--laundromat-lilac); }
.parade-monster { position: absolute; bottom: 0; background: var(--bruise-plum); filter: drop-shadow(0 0 18px rgba(182,255,59,.18)); animation: paradeWalk 14s linear infinite; }
.blob-one { width: 170px; height: 150px; border-radius: 45% 55% 40% 60%; left: -15%; animation-delay: -1s; }
.blob-two { width: 120px; height: 210px; border-radius: 55% 45% 50% 50%; left: 20%; background: var(--laundromat-lilac); animation-delay: -5s; }
.blob-three { width: 230px; height: 110px; border-radius: 60% 40% 55% 45%; left: 55%; background: var(--moldy-mint); animation-delay: -9s; }
.blob-four { width: 140px; height: 135px; border-radius: 48% 52% 64% 36%; left: 85%; background: var(--warning-tangerine); animation-delay: -12s; }
.parade-monster span:first-child { left: 35%; top: 35%; } .parade-monster span:nth-child(2) { right: 30%; top: 37%; } .parade-monster span:nth-child(3) { left: 48%; top: 20%; }
.final-label { justify-self: end; transform: rotate(-3deg); }

@keyframes blink { 0%, 88%, 100% { transform: scaleY(1); } 92%, 95% { transform: scaleY(.08); } }
@keyframes drip { from { transform: translateY(-45vh); } to { transform: translateY(115vh); } }
@keyframes morph { 0%,100% { border-radius: 42% 58% 49% 51% / 44% 39% 61% 56%; } 50% { border-radius: 58% 42% 62% 38% / 36% 58% 42% 64%; } }
@keyframes tumble { to { transform: translateX(22vw) rotate(360deg); } }
@keyframes bouncePeek { 0%,100% { transform: translateY(30px); } 50% { transform: translateY(0); } }
@keyframes bubble { 0% { transform: translateY(35px) scale(.5); opacity: 0; } 30%,80% { opacity: 1; } 100% { transform: translateY(-40px) scale(1.1); opacity: 0; } }
@keyframes flashlight { 0%,100% { opacity: .42; transform: translateX(-5vw); } 50% { opacity: .75; transform: translateX(5vw); } }
@keyframes spinSnack { to { transform: rotate(360deg); } }
@keyframes tunnelPulse { 50% { transform: scale(1.06); filter: hue-rotate(16deg); } }
@keyframes ribbonDrift { to { background-position: 200px 0; transform: translateX(-80px) rotate(var(--r, -7deg)); } }
@keyframes borderAnimate { to { transform: rotate(360deg); } }
@keyframes paradeWalk { from { transform: translateX(-35vw) translateY(0); } 50% { transform: translateX(40vw) translateY(-16px); } to { transform: translateX(120vw) translateY(0); } }

@media (max-width: 820px) {
  .monster-chamber { padding: 24px; }
  .drawer-case { grid-template-columns: 1fr; }
  .card-one, .card-two, .card-three { grid-column: auto; margin-top: 0; }
  .vending-map { height: 520px; }
  .spiral-slot { width: 110px; height: 110px; }
  .slot-a { left: 32px; } .slot-b { left: 170px; } .slot-c { right: 32px; top: 210px; }
  .aisle-note, .crumb-trigger, .lint-portal .story-trigger { position: relative; inset: auto; justify-self: start; margin-top: 18px; }
  .moon-token { width: 120px; height: 120px; font-size: 3rem; }
}
