/* The wall's motion design: die-cut stickers, their little characters, and the scenes the wall plays around them
   (arrivals that jump on heads, fights, burns, takedowns, peels). All of it is the wall's, outside his designs' boxes. */

/* ── Die-cut: a white sticker edge that follows the shape, and a soft shadow under it ── */
.sticker.cut { box-shadow: none !important; filter: drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(0 8px 10px rgba(0,0,0,.25)); }
.sticker.cut:hover { filter: drop-shadow(5px 0 0 #fff) drop-shadow(-5px 0 0 #fff) drop-shadow(0 5px 0 #fff) drop-shadow(0 -5px 0 #fff) drop-shadow(0 18px 18px rgba(0,0,0,.25)); }
.shape-blob .rest-clip   { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52% !important; }
.shape-blob2 .rest-clip  { border-radius: 58% 42% 38% 62% / 55% 60% 40% 45% !important; }
.shape-pill .rest-clip   { border-radius: 999px !important; }
.shape-oval .rest-clip   { border-radius: 50% !important; }
.shape-badge .rest-clip  { border-radius: 46% 46% 22% 22% / 34% 34% 26% 26% !important; }
.shape-ticket .rest-clip { border-radius: 16px !important; -webkit-mask: radial-gradient(circle 14px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 14px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }
.shape-burst .rest-clip  { clip-path: polygon(50% 0%, 61% 14%, 79% 6%, 81% 24%, 98% 27%, 89% 43%, 100% 57%, 84% 65%, 88% 84%, 69% 83%, 59% 100%, 47% 87%, 31% 98%, 27% 80%, 8% 81%, 13% 63%, 0% 51%, 13% 39%, 5% 21%, 24% 19%, 29% 2%, 43% 13%); }
/* a shape eats the corners: his design breathes a little inside it */
.sticker.cut:not(.shape-pill):not(.shape-ticket) .rest-host { transform-origin: 50% 50% !important; }
.shape-oval .rest-host, .shape-blob .rest-host, .shape-blob2 .rest-host, .shape-burst .rest-host { scale: .9; }

/* ── The little character of each sticker, peeking over its top-left edge ── */
.mini { position: absolute; left: -22px; top: -44px; width: 62px; height: 62px; z-index: 3; pointer-events: none; transform-origin: 50% 100%; animation: mini-bob 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.mini svg, .actor svg { width: 100%; height: 100%; overflow: visible; }
.mini .lid, .actor .lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: mini-blink 4.2s infinite; animation-delay: var(--d, 0s); }
.mini.hide { visibility: hidden; }
@keyframes mini-bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-3px) scale(1.03, .97); } }
@keyframes mini-blink { 0%, 93%, 100% { transform: scaleY(0); } 96% { transform: scaleY(1); } }

/* ── Actors: a character out of its sticker, moving across the wall for a scene ── */
.actor { position: absolute; left: 0; top: 0; width: 64px; height: 64px; z-index: 60; pointer-events: none; will-change: transform; }
.actor .body-wrap { width: 100%; height: 100%; transform-origin: 50% 100%; }
.actor.flip .body-wrap { scale: -1 1; }
.aura { position: absolute; inset: -30px; border-radius: 50%; pointer-events: none; animation: aura .18s linear infinite alternate; mix-blend-mode: screen; }
@keyframes aura { from { transform: scale(.95); opacity: .75; } to { transform: scale(1.12); opacity: 1; } }

/* ── Bubbles, words, stamps ── */
.bubble { position: absolute; z-index: 70; max-width: 220px; padding: 7px 11px; background: #fff; color: #111; border: 2.5px solid #111; border-radius: 16px; font: 700 13px/1.25 Inter, system-ui, sans-serif; box-shadow: 3px 3px 0 #111; pointer-events: none; transform-origin: 18px 100%; animation: bubble-in .28s cubic-bezier(.2,1.6,.4,1) both; }
.bubble::after { content: ''; position: absolute; left: 14px; bottom: -11px; width: 14px; height: 14px; background: #fff; border-right: 2.5px solid #111; border-bottom: 2.5px solid #111; transform: skewX(-30deg) rotate(45deg); }
.bubble.w { background: #111; color: #fff; }
.bubble.w::after { background: #111; }
.bubble.w b { color: #f472b6; }
.bubble.shout { font-size: 18px; background: #fde047; transform: rotate(-4deg); }
.bubble.shout::after { background: #fde047; }
.bubble.out { animation: bubble-out .25s ease-in both; }
@keyframes bubble-in { from { opacity: 0; transform: scale(.3) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bubble-out { to { opacity: 0; transform: scale(.6) translateY(-8px); } }
.word { position: absolute; z-index: 75; pointer-events: none; font: 900 italic 54px/1 Inter, system-ui, sans-serif; color: #fde047; -webkit-text-stroke: 3px #111; paint-order: stroke fill; text-shadow: 5px 5px 0 #111; letter-spacing: -2px; white-space: nowrap; }
.stamp { position: absolute; z-index: 75; pointer-events: none; padding: 6px 16px; border: 6px solid #dc2626; color: #dc2626; border-radius: 10px; font: 900 34px/1 Inter, system-ui, sans-serif; letter-spacing: 2px; background: rgba(255,255,255,.55); white-space: nowrap; }

/* ── Effects ── */
.fx { position: absolute; z-index: 65; pointer-events: none; will-change: transform, opacity; }
.emoji { font-size: 26px; line-height: 1; }
.dust { border-radius: 50%; border: 6px solid rgba(255,255,255,.95); box-shadow: 0 0 0 2px rgba(0,0,0,.05); }
.beam { height: 34px; border-radius: 999px; transform-origin: 0 50%; background: linear-gradient(90deg, rgba(255,255,255,1), #bae6fd 30%, #38bdf8 60%, rgba(56,189,248,.2)); box-shadow: 0 0 24px 10px rgba(56,189,248,.8), 0 0 60px 20px rgba(125,211,252,.55); }
.beam.gold { background: linear-gradient(90deg, #fff, #fef08a 30%, #facc15 60%, rgba(250,204,21,.2)); box-shadow: 0 0 24px 10px rgba(250,204,21,.85), 0 0 60px 22px rgba(253,224,71,.55); }
.flash { position: absolute; inset: -2000px; z-index: 80; pointer-events: none; background: #fff; }
.speed { position: absolute; z-index: 58; pointer-events: none; border-radius: 50%; background: repeating-conic-gradient(rgba(17,17,17,.0) 0 7deg, rgba(17,17,17,.16) 7deg 8deg); -webkit-mask: radial-gradient(circle, transparent 28%, #000 62%); mask: radial-gradient(circle, transparent 28%, #000 62%); }
.ember { width: 7px; height: 7px; border-radius: 50%; background: #f97316; box-shadow: 0 0 8px 3px rgba(249,115,22,.8); }
.ash { width: 5px; height: 5px; border-radius: 1px; background: #44403c; }
.fire { position: absolute; left: -6%; right: -6%; bottom: -10px; height: 70%; pointer-events: none; z-index: 5; background: radial-gradient(ellipse at 50% 100%, rgba(255,237,160,.95), rgba(251,146,60,.85) 35%, rgba(220,38,38,.55) 60%, transparent 75%); filter: blur(4px); animation: fire .22s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes fire { from { transform: scaleY(.85) scaleX(1.03); } to { transform: scaleY(1.12) scaleX(.97); } }
.half { position: absolute; z-index: 62; pointer-events: none; }
#board.quake { animation: quake .45s linear; }
@keyframes quake { 0%, 100% { translate: 0 0; } 15% { translate: -14px 6px; } 30% { translate: 12px -8px; } 45% { translate: -9px 4px; } 60% { translate: 8px 6px; } 80% { translate: -4px -2px; } }

@media (prefers-reduced-motion: reduce) { .mini, .aura, .fire, #board.quake { animation: none !important; } }
