/* Neko Security: hero (rooftop scene, HUD, analyst cam, bubble) */
/* ============================================================
   1. HERO: the night watch
   The SVG scene fills the hero. A masked copy of the scene is only
   visible inside the flashlight beam. Intruders live in that copy.
   ============================================================ */
.hero {
  position: relative;
  height: clamp(640px, 92vh, 880px);
  overflow: hidden;
  cursor: crosshair;
  touch-action: pan-y;               /* let phones still scroll */
}
.hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
/* Bottom shade so the headline reads; the cat's head stays clear */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--black) 0%, rgba(0,0,0,.82) 26%, rgba(0,0,0,.35) 46%, transparent 60%);
}
.hero__copy {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(36px, 7vh, 80px);
  pointer-events: none;              /* clicks pass through to the scene */
}
.hero__copy a, .hero__copy button { pointer-events: auto; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); max-width: 10em; }
.hero__lede { margin-top: 18px; max-width: 36em; color: var(--ash); font-size: 1.08rem; }
.hero__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__hint { font-family: var(--osd); font-size: 1.25rem; color: var(--mask); margin-top: 16px; }

/* Camera on-screen display (top right of hero) */
.hud {
  position: absolute; z-index: 3; top: 92px; right: var(--gutter);
  width: 168px;
  font-family: var(--osd); font-size: 1.25rem; line-height: 1.15;
  text-shadow: 0 0 6px #000, 0 0 2px #000;   /* readable over the drawing */
  pointer-events: none;
}
.hud__row { display: flex; justify-content: space-between; gap: 10px; }
.hud__dim { color: var(--ash); }
.rec { color: var(--red); }
.rec::before { content: "●"; margin-right: 6px; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hud__count { margin-top: 8px; color: var(--white); }
.hud__count b { color: var(--red); font-weight: 400; }

/* Picture-in-picture "analyst cam" */
.pip { position: relative; margin: 10px 0 0; width: 168px; }
.pip svg { width: 168px; height: 168px; background: #1b1b1b; border: 1px solid #3a3a3a; }
.pip::after {   /* scanlines over the analyst cam */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 168px; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px);
}
.pip figcaption { font-size: 1.05rem; color: var(--ash); margin-top: 4px; }

/* The rooftop cat's speech bubble (pinned by script) */
.bubble {
  position: absolute; z-index: 4; left: 46%; top: 20%;
  max-width: 290px;
  background: var(--white); color: var(--black);
  font-family: var(--voice); font-size: 1.08rem; line-height: 1.35;
  padding: 14px 18px; border-radius: 20px;
  border: 3px solid var(--black);
}
.bubble::before {   /* tail pointing back at the cat */
  content: ""; position: absolute; left: -16px; top: 22px;
  border: 9px solid transparent; border-right: 14px solid var(--white);
  border-left: 0;
}

/* Found-intruder ring + label drawn on top of the scene */
.found-ring { fill: none; stroke: var(--red); stroke-width: 4; }
.found-tag { fill: var(--red); }
.found-num { fill: var(--white); font: 700 18px var(--body); text-anchor: middle; dominant-baseline: central; }
.found-label { fill: var(--white); font-family: var(--osd); font-size: 30px; paint-order: stroke; stroke: #000; stroke-width: 6px; stroke-linejoin: round; }


/* "Put the cat to work" button that appears after all 5 finds */
.bubble__cta { display: inline-flex; margin-top: 10px; padding: 10px 14px; font-size: .9rem; font-family: var(--body); }
