/* AdBlocker First · page CSS (hand-maintained)
   Layout lives in tw.css; this file owns the hero demo: the fake browser
   page, the junk pieces, the needle, the pops, and the reveal-on-scroll. */

/* fonts */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/archivo-var-latin.woff2') format('woff2');
}

/* reveal-on-scroll (IntersectionObserver adds .in) */
.rv { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 500ms ease; }
.rv.in { opacity: 1; transform: none; }

/* badge tick */
@keyframes abf-tick { from { transform: scale(1.2); } to { transform: scale(1); } }
.tick { animation: abf-tick 200ms ease-out; }

/* ---------------------------------------------------------- the demo ---- */
.demo__stage { position: relative; aspect-ratio: 16 / 11; background: #fff; overflow: hidden; }
.demo__page { padding: 18px 0 0; }
.demo__bar { display: block; height: 10px; border-radius: 5px; background: #e4e4e7; margin: 10px 24px; }
.demo__bar--title { height: 20px; width: 62%; background: #d4d4d8; margin-bottom: 14px; }
.demo__img { display: block; height: 80px; border-radius: 8px; background: repeating-linear-gradient(45deg, #f4f4f5 0 12px, #ececee 12px 24px); margin: 16px 24px; }

/* junk pieces: deliberately trashy, quarantined to the demo frame */
.dj { position: absolute; z-index: 3; border-radius: 8px; font: 500 11px/1.35 system-ui, sans-serif; color: #27272a; background: #fff; box-shadow: 0 10px 28px rgb(0 0 0 / 0.22); transition: opacity 300ms ease, transform 300ms ease; }
.dj strong { display: block; padding: 7px 10px 0; font-size: 14px; font-weight: 900; text-transform: uppercase; color: #d12fa0; text-shadow: 1px 1px 0 #ffd400; }
.dj em { display: block; padding: 5px 10px 2px; font-style: normal; }
.dj b { display: inline-block; margin: 6px 0 9px 10px; padding: 4px 9px; background: #b6ff2e; border: 1.5px solid #111; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.dj__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 8px 8px 0 0; font-size: 9px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, #d12fa0, #2458ff); }
.dj__head i { font-style: normal; opacity: 0.85; }
.dj__head--live { background: linear-gradient(90deg, #b3261e, #7a1410); }
.dj--prize { left: 10%; top: 16%; width: 56%; border: 2px solid #d12fa0; rotate: -2deg; }
.dj--notif { left: 4%; top: 4%; width: 48%; border: 2px solid #21d0e0; }
.dj--video { right: 4%; bottom: 20%; width: 36%; background: #101014; border-radius: 8px; overflow: hidden; }
.dj__screen { display: block; height: 64px; background: repeating-linear-gradient(45deg, #15151c 0 10px, #101016 10px 20px); }
.dj--cookie { inset-inline: 0; bottom: 0; border-radius: 0; background: #1c1c22; color: #fff; display: flex; align-items: center; gap: 6px; }
.dj--cookie em { flex: 1; padding: 8px 10px; }
.dj--cookie b { margin: 0 8px 0 0; }

/* pop + re-entry */
@keyframes abf-pop { 40% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; filter: blur(2px); } }
.dj--pop { animation: abf-pop 380ms cubic-bezier(0.3, 0, 0.3, 1) forwards; pointer-events: none; }
.dj--off { opacity: 0; visibility: hidden; }
.dj--in { animation: abf-in 280ms ease-out; }
@keyframes abf-in { from { opacity: 0; transform: scale(0.94); } }

/* the needle */
.needle { position: absolute; z-index: 5; left: 0; top: 0; opacity: 0; translate: var(--nx, 60%) var(--ny, 40%); transition: translate 320ms cubic-bezier(0.5, 0, 0.2, 1), opacity 150ms ease, scale 120ms ease; filter: drop-shadow(0 4px 8px rgb(0 0 0 / 0.25)); pointer-events: none; }
.needle--live { opacity: 1; }
.needle--jab { scale: 1.14; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .needle { display: none; }
  .dj--pop { animation: none; opacity: 0; visibility: hidden; }
  .dj--in { animation: none; }
}
