/* Earny — chaos layer (chaos.js). */
.chaos-layer { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.peek { position: absolute; width: 110px; height: 110px; pointer-events: auto; cursor: pointer; transition: transform .6s cubic-bezier(.2, 1.4, .4, 1); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); user-select: none; }
.peek-l { left: 0; transform: translateX(-110%) rotate(70deg); }
.peek-r { right: 0; transform: translateX(110%) rotate(-70deg); }
.peek-b { bottom: 0; transform: translateY(110%); }
.peek-l.in { transform: translateX(-28%) rotate(28deg); }
.peek-r.in { transform: translateX(28%) rotate(-28deg); }
.peek-b.in { transform: translateY(32%); }
.peek-boop { transition: transform .45s ease-in, opacity .45s; transform: scale(1.4) rotate(540deg) !important; opacity: 0; }

.walker { position: fixed; left: 0; bottom: 6px; z-index: 72; width: 76px; height: 76px; padding: 0; border: 0; background: none; cursor: pointer; will-change: transform; }
.walker img { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); animation: waddle .5s ease-in-out infinite alternate; }
@keyframes waddle { from { translate: 0 0; rotate: -4deg; } to { translate: 0 -4px; rotate: 4deg; } }
.walker.pounce img { animation: pounce .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pounce { 0% { translate: 0 0; } 40% { translate: 0 -90px; rotate: -20deg; scale: 1.25; } 100% { translate: 0 0; rotate: 0deg; scale: 1; } }
.walker-say { position: absolute; bottom: 82px; left: 50%; translate: -50% 6px; opacity: 0; padding: 6px 10px; border-radius: 12px; background: var(--cream); color: var(--ink); font: 700 13px var(--f-display); white-space: nowrap; transition: opacity .2s, translate .2s; pointer-events: none; box-shadow: var(--shadow); }
.walker-say::after { content: ""; position: absolute; left: 50%; bottom: -6px; translate: -50% 0; border: 6px solid transparent; border-top-color: var(--cream); border-bottom: 0; }
.walker-say.on { opacity: 1; translate: -50% 0; }

.zoom-btn { position: fixed; right: 14px; bottom: 14px; z-index: 75; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--mint); background: rgba(4, 17, 14, .9); color: var(--mint); font: 700 15px var(--f-display); cursor: pointer; box-shadow: var(--glow); }
.zoom-btn[aria-pressed="true"] { background: var(--mint); color: var(--ink); animation: jiggle .3s infinite alternate; }
@keyframes jiggle { to { rotate: 3deg; } }
.zoom-ic { font-size: 18px; }

.rain { position: absolute; top: -110px; animation: fall var(--dur, 3s) linear forwards; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }
@keyframes fall { to { transform: translateY(calc(100vh + 220px)) rotate(var(--spin, 180deg)); } }
.shout { position: absolute; font: 700 clamp(28px, 5vw, 64px) var(--f-display); color: var(--mint); -webkit-text-stroke: 2px var(--ink); text-shadow: 0 0 24px rgba(151, 252, 228, .7); rotate: var(--rot); animation: shout 1.3s ease-out forwards; white-space: nowrap; }
@keyframes shout { 0% { scale: .3; opacity: 0; } 20% { scale: 1.15; opacity: 1; } 100% { scale: 1; opacity: 0; translate: 0 -40px; } }
.paw { position: absolute; translate: -50% -50%; rotate: var(--rot); font-size: 34px; animation: fade 1.6s ease-out forwards; }
@keyframes fade { 70% { opacity: 1; } to { opacity: 0; } }
.laser { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #ff2d4a; box-shadow: 0 0 12px 4px rgba(255, 45, 74, .75); }
html.zoomies body { cursor: none; }
html.zoomies .hero-pic img { animation: bob .5s ease-in-out infinite; }

@media (max-width: 700px) {
  .walker { width: 58px; height: 58px; display: none; }
  html.zoomies .walker { display: block; }
  .walker-say { bottom: 64px; }
  .peek { width: 84px; height: 84px; }
  .zoom-btn { min-height: 42px; padding: 0 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .walker img { animation: none; } }
