/* Motor de zoeiras (prank-engine.js). Tudo aqui é prefixado com wcp- e vive numa camada
   própria acima do app. Nada fica no layout depois que o efeito termina. */
#wcp-root { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; }
.wcp-layer { position: fixed; inset: 0; pointer-events: none; }
.wcp-hit { pointer-events: auto; }

/* Botão de saída: aparece depois de alguns segundos em efeitos longos. Sempre protegido. */
.wcp-pill {
  position: fixed; left: 14px; bottom: 14px; z-index: 2147483600; pointer-events: auto;
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 999px;
  background: rgba(20, 22, 30, .86); color: #f3f6fa; font: 600 12px/1 system-ui, sans-serif; letter-spacing: .01em;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .35); cursor: pointer; opacity: 0; transform: translateY(8px);
  transition: opacity .35s, transform .35s;
}
.wcp-pill.show { opacity: .86; transform: none; }
.wcp-pill:hover { opacity: 1; }

/* Jumpscare */
.wcp-scare { background: #000; display: grid; place-items: center; z-index: 5; }
.wcp-scare img { max-width: 96vw; max-height: 96vh; object-fit: contain; image-rendering: auto; }
.wcp-scare::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .65) 100%); }

/* Tela quebrada */
.wcp-crack canvas, .wcp-glitch canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Botões que somem em fumaça */
.wcp-gone { opacity: 0 !important; transform: scale(.55) !important; pointer-events: none !important; transition: opacity .18s, transform .18s !important; }
.wcp-puff { position: fixed; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle, rgba(235, 238, 245, .95), rgba(150, 160, 185, .25) 70%, transparent); pointer-events: none; }
.wcp-dodge { transition: transform .14s cubic-bezier(.3, 1.6, .5, 1) !important; }

/* Bichos */
.wcp-bug { position: fixed; left: 0; top: 0; pointer-events: auto; cursor: pointer; will-change: transform; }
.wcp-bug svg { display: block; overflow: visible; }
.wcp-wing { animation: wcp-wing .06s linear infinite alternate; transform-origin: center; }
@keyframes wcp-wing { from { opacity: .35; } to { opacity: .85; } }

/* Olhos */
.wcp-eyes { position: fixed; display: flex; gap: 14px; pointer-events: none; opacity: 0; transition: opacity 1s; }
.wcp-eyes.on { opacity: 1; }
.wcp-eye { position: relative; width: 74px; height: 92px; border-radius: 50%; background: #f4f1ea; box-shadow: inset 0 -8px 18px rgba(0, 0, 0, .25), 0 0 40px rgba(0, 0, 0, .5); overflow: hidden; }
.wcp-eye::after { content: ''; position: absolute; inset: 0; background: #14141a; transform: scaleY(0); transform-origin: top; }
.wcp-eyes.blink .wcp-eye::after { animation: wcp-blink .22s ease-in-out; }
@keyframes wcp-blink { 50% { transform: scaleY(1); } }
.wcp-pupil { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 8%, #111 10%, #000 70%); left: 50%; top: 50%; }

/* Fantasma */
.wcp-ghost { position: fixed; pointer-events: none; filter: drop-shadow(0 0 22px rgba(190, 220, 255, .35)); opacity: .0; transition: transform .9s cubic-bezier(.3, .7, .2, 1), opacity .9s; }

/* Atualização falsa */
.wcp-update { background: #0b1d3a; color: #e8f1ff; display: grid; place-items: center; pointer-events: auto; cursor: progress; font-family: system-ui, "Segoe UI", sans-serif; text-align: center; }
.wcp-update .ring { width: 54px; height: 54px; margin: 0 auto 26px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .18); border-top-color: #fff; animation: wcp-spin 1s linear infinite; }
@keyframes wcp-spin { to { transform: rotate(360deg); } }
.wcp-update h2 { margin: 0 0 8px; font-size: clamp(20px, 3.4vw, 30px); font-weight: 400; }
.wcp-update p { margin: 0; opacity: .78; font-size: 14px; }
.wcp-update .pct { font-variant-numeric: tabular-nums; font-size: clamp(34px, 7vw, 64px); font-weight: 300; margin-bottom: 8px; }

/* Janelas falsas (não responde / pop-ups) */
.wcp-win { position: fixed; width: min(340px, calc(100vw - 24px)); background: #f1f1f4; color: #1b1b22; border: 1px solid #8a8a99; border-radius: 6px; box-shadow: 0 12px 34px rgba(0, 0, 0, .45); font: 13px/1.4 system-ui, "Segoe UI", sans-serif; pointer-events: auto; overflow: hidden; animation: wcp-pop .16s ease-out; }
@keyframes wcp-pop { from { transform: scale(.86); opacity: 0; } }
.wcp-win header { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 12px; background: linear-gradient(#e2e4ec, #cfd2dd); font-weight: 600; font-size: 12px; }
.wcp-win header button { border: 0; background: transparent; width: 24px; height: 22px; font-size: 14px; cursor: pointer; border-radius: 3px; color: inherit; }
.wcp-win header button:hover { background: #d9382f; color: #fff; }
.wcp-win .body { display: flex; gap: 12px; padding: 16px 14px 8px; align-items: flex-start; }
.wcp-win .ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; background: #d9382f; }
.wcp-win .ico.ok { background: #2f9d57; }
.wcp-win .ico.star { background: #e1a516; }
.wcp-win footer { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 12px 12px; }
.wcp-win footer button { min-width: 92px; padding: 6px 12px; border: 1px solid #8a8a99; border-radius: 4px; background: linear-gradient(#fdfdfe, #e4e5ec); font: inherit; cursor: pointer; }
.wcp-win footer button:hover { background: #fff; }
.wcp-win.gone { animation: wcp-out .18s ease-in forwards; }
@keyframes wcp-out { to { transform: scale(.8); opacity: 0; } }

/* Fala */
.wcp-say { position: fixed; left: 50%; bottom: 14%; transform: translateX(-50%); max-width: min(560px, 90vw); padding: 12px 18px; border-radius: 14px; background: rgba(12, 12, 18, .92); color: #fff; font: 600 16px/1.4 system-ui, sans-serif; text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); animation: wcp-pop .2s ease-out; }

/* Faixas e recados do admin */
.wcp-banner { position: fixed; left: 50%; top: 14px; transform: translate(-50%, -140%); z-index: 3; max-width: min(640px, calc(100vw - 24px)); padding: 11px 18px; border-radius: 12px; background: rgba(18, 26, 38, .95); color: #eaf3fb; border: 1px solid rgba(120, 190, 220, .35); box-shadow: 0 12px 40px rgba(0, 0, 0, .45); font: 600 14px/1.4 system-ui, sans-serif; text-align: center; transition: transform .45s cubic-bezier(.2, .9, .3, 1.1); pointer-events: auto; }
.wcp-banner.in { transform: translate(-50%, 0); }
.wcp-banner small { display: block; margin-bottom: 2px; font-weight: 700; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #77d9df; }
.wcp-banner .big { font-variant-numeric: tabular-nums; font-size: 22px; letter-spacing: .02em; }
.wcp-note { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(4, 8, 14, .55); backdrop-filter: blur(3px); pointer-events: auto; animation: wcp-fade .2s ease-out; }
@keyframes wcp-fade { from { opacity: 0; } }
.wcp-note > div { width: min(420px, calc(100vw - 32px)); padding: 24px; border-radius: 18px; background: #151f2b; color: #eaf1f7; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); font: 15px/1.55 system-ui, sans-serif; }
.wcp-note small { display: block; margin-bottom: 8px; font: 700 10.5px/1 system-ui; letter-spacing: .14em; text-transform: uppercase; color: #77d9df; }
.wcp-note button { margin-top: 18px; padding: 10px 22px; border: 0; border-radius: 10px; background: #5ed6d9; color: #06222a; font: 700 14px/1 system-ui; cursor: pointer; }

/* Efeitos de tela inteira por filtro/transformação (aplicados com classes) */
html.wcp-chameleon { animation: wcp-hue 4s linear infinite; }
@keyframes wcp-hue { to { filter: hue-rotate(360deg) saturate(1.35); } }
html.wcp-comic *:not(.wcp-keep):not(.wcp-keep *) { font-family: "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive !important; }
html.wcp-noscroll, html.wcp-noscroll body { overflow: hidden !important; }
.wcp-shake { will-change: transform; }

/* Tela quebrada: faixas de glitch */
.wcp-tear { position: fixed; left: 0; width: 100%; background: rgba(255, 255, 255, .06); mix-blend-mode: difference; pointer-events: none; }
.wcp-scan { background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .0) 0 3px, rgba(0, 0, 0, .22) 3px 4px); }

@media (prefers-reduced-motion: reduce) {
  .wcp-wing, .wcp-update .ring { animation-duration: 2s; }
  html.wcp-chameleon { animation: none; }
}

/* ---- Leva 2 ---- */
.wcp-cap { position: fixed; left: 50%; bottom: 9%; transform: translateX(-50%); z-index: 2; max-width: min(760px, 92vw); text-align: center; color: #fff36b; font: 700 clamp(17px, 2.6vw, 28px)/1.3 system-ui, sans-serif; text-shadow: 0 0 4px #000, 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; pointer-events: none; }
.wcp-bar { position: fixed; left: 0; right: 0; height: 0; background: #000; transition: height 1.1s cubic-bezier(.3, .8, .3, 1); pointer-events: none; }
.wcp-leg { transform-origin: 0 0; animation: wcp-legs .16s ease-in-out infinite alternate; }
@keyframes wcp-legs { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.wcp-bubble { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: auto; cursor: pointer; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .85) 0 8%, rgba(180, 225, 255, .18) 30%, rgba(150, 200, 255, .08) 62%, rgba(255, 190, 240, .28) 100%); border: 1px solid rgba(220, 240, 255, .55); will-change: transform; }
.wcp-ring { position: absolute; left: 50%; top: 42%; font-size: clamp(90px, 16vw, 170px); line-height: 1; transform: translate(-50%, -50%); animation: wcp-ring .12s linear infinite alternate; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .45)); }
@keyframes wcp-ring { from { transform: translate(-50%, -50%) rotate(-11deg); } to { transform: translate(-50%, -50%) rotate(11deg); } }
.wcp-count { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); font: 800 clamp(120px, 26vw, 300px)/1 system-ui, sans-serif; color: #fff; text-shadow: 0 8px 40px rgba(0, 0, 0, .6), 0 0 0 3px rgba(0, 0, 0, .4); -webkit-text-stroke: 3px rgba(0, 0, 0, .35); }
.wcp-cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
.wcp-cap-grid button { aspect-ratio: 1; border: 2px solid #c9ccd6; border-radius: 6px; background: #fff; font-size: 34px; cursor: pointer; }
.wcp-cap-grid button.on { border-color: #4a7cff; box-shadow: inset 0 0 0 3px #4a7cff; }
.wcp-win .body:has(.wcp-cap-grid), .wcp-win .body:has(.wcp-terms) { display: block; }
.wcp-terms { max-height: 190px; overflow: auto; padding-right: 8px; font: 13px/1.5 system-ui, sans-serif; }
.wcp-terms p { margin: 0 0 8px; }
.wcp-ringbox { position: fixed; border: 3px solid #ffd23f; border-radius: 10px; box-shadow: 0 0 0 4px rgba(255, 210, 63, .25), 0 0 24px rgba(255, 210, 63, .5); pointer-events: none; animation: wcp-pulse 1s ease-in-out infinite alternate; }
@keyframes wcp-pulse { to { transform: scale(1.06); } }
.wcp-tip { position: fixed; z-index: 2; width: 260px; padding: 11px 14px; border-radius: 12px; background: #fff7cf; color: #2a2400; font: 600 14px/1.4 system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); pointer-events: none; }
.wcp-plane { position: absolute; left: 0; display: flex; align-items: center; will-change: transform; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.wcp-plane .wcp-banner-t { padding: 8px 18px; border-radius: 6px; background: #fffbe8; color: #222; font: 700 20px/1.2 system-ui, sans-serif; white-space: nowrap; border: 2px solid #e0b43a; }
.wcp-plane i { width: 36px; height: 2px; background: #333; }
.wcp-dvd { position: absolute; left: 0; top: 0; width: 150px; height: 64px; display: grid; place-items: center; border-radius: 12px; color: #fff; font: 900 24px/1 system-ui, sans-serif; letter-spacing: .02em; text-shadow: 0 2px 4px rgba(0, 0, 0, .35); will-change: transform; }
.wcp-splat { position: absolute; border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%; background: radial-gradient(circle at 40% 38%, #ff5a4a, #c6281c 70%); box-shadow: 0 0 0 6px rgba(198, 40, 28, .35), -18px 26px 0 -14px #c6281c, 22px 34px 0 -18px #c6281c; opacity: .95; }
.wcp-stamp { position: absolute; padding: 8px 24px; border: 8px solid; border-radius: 10px; font: 900 clamp(34px, 6vw, 74px)/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; mix-blend-mode: multiply; opacity: 0; pointer-events: none; }
.wcp-sticky { position: fixed; z-index: 2; width: 170px; min-height: 150px; padding: 16px 14px; color: #3a3200; font: 600 17px/1.35 "Comic Sans MS", "Segoe Print", cursive; box-shadow: 4px 10px 18px rgba(0, 0, 0, .35); transform: rotate(var(--r, 0deg)); cursor: pointer; pointer-events: auto; animation: wcp-pop .18s ease-out; }
