/* hero.css: styles only for the elements hero.js creates inside #hero-tags
   (.hero-pill*, .hero-tag*, .hero-srctag*). Consumes the landing.css tokens; defines none.
   Positioned with transform: translate3d() only; no backdrop-filter. */
.hero-pill,
.hero-tag,
.hero-srctag{
  position:absolute; left:0; top:0; z-index:1;
  pointer-events:none; user-select:none;
  opacity:0; visibility:hidden;
  transition:opacity var(--dur-1, 160ms) linear, visibility 0s linear var(--dur-1, 160ms);
  will-change:transform, opacity;
}
.hero-pill.is-on,
.hero-tag.is-on,
.hero-srctag.is-on{
  opacity:1; visibility:visible;
  transition:opacity var(--dur-1, 160ms) linear, visibility 0s;
}

/* score pill: inside each copy's top-left corner (over the "Sponsored" row); below the card in the grid */
.hero-pill{ width:0; height:0; }
.hero-pill__in{
  position:absolute; left:0; top:0;
  display:inline-flex; align-items:center; gap:5px;
  height:18px; padding:0 7px 0 6px; border-radius:var(--r-pill, 999px);
  background:rgba(7,11,20,.82); box-shadow:inset 0 0 0 1px var(--line-2, rgba(150,180,255,.24)), 0 2px 8px rgba(0,0,0,.35);
  font:500 11px/1 var(--font-mono, ui-monospace, monospace); font-variant-numeric:tabular-nums; letter-spacing:.01em;
  color:var(--text-1, #EEF3FF); white-space:nowrap;
}
.hero-pill__in b{ font-weight:500; }
.hero-pill__dot{
  flex:none; width:6px; height:6px; border-radius:50%;
  background:var(--text-3, #7C8BA8); box-shadow:0 0 6px currentColor;
}
.hero-pill.is-red .hero-pill__dot{ background:var(--u-red, #FF5D5D); color:var(--u-red, #FF5D5D); }
.hero-pill.is-amber .hero-pill__dot{ background:var(--u-amber, #FFC247); color:var(--u-amber, #FFC247); }
.hero-pill.is-green .hero-pill__dot{ background:var(--u-green, #3DDC97); color:var(--u-green, #3DDC97); }
/* burning out: the dot keeps its band color (red/amber/green mean scores only) but goes hollow, the
   number dims and the pill takes the ember rim, so a 79 never reads as a red "< 60" */
.hero-pill.is-ember .hero-pill__in{ box-shadow:inset 0 0 0 1px rgba(255,122,69,.6), 0 0 10px -2px rgba(255,122,69,.45), 0 2px 8px rgba(0,0,0,.35); }
.hero-pill.is-ember .hero-pill__dot{ background:transparent; box-shadow:inset 0 0 0 1.5px currentColor; }
.hero-pill.is-ember b{ opacity:.66; }
.hero-pill.is-sm .hero-pill__in{ height:15px; padding:0 5px 0 4px; gap:4px; font-size:9.5px; }
.hero-pill.is-sm .hero-pill__dot{ width:5px; height:5px; }
.hero-pill.is-below .hero-pill__in{
  transform:translateX(-50%);
  height:20px; padding:0 8px 0 7px; font-size:var(--fs-data, 12.5px);
  background:rgba(7,11,20,.9);
}

/* recipe tag (hover / event) */
.hero-tag{
  display:flex; flex-direction:column; gap:3px;
  max-width:330px; padding:6px 9px 7px 8px; border-radius:var(--r-sm, 10px);
  background:rgba(7,11,20,.82); box-shadow:inset 0 0 0 1px var(--line-2, rgba(150,180,255,.24)), 0 10px 26px -12px rgba(0,0,0,.8);
  font:500 var(--fs-data, 12.5px)/1.3 var(--font-mono, ui-monospace, monospace); font-variant-numeric:tabular-nums;
  color:var(--text-1, #EEF3FF); white-space:nowrap;
}
.hero-tag__l1{ display:flex; align-items:center; gap:7px; }
.hero-tag__l1 b{ font-weight:500; overflow:hidden; text-overflow:ellipsis; }
.hero-tag__dot{
  flex:none; width:6px; height:6px; border-radius:50%;
  background:var(--text-3, #7C8BA8); box-shadow:0 0 6px currentColor;
}
.hero-tag.is-red .hero-tag__dot{ background:var(--u-red, #FF5D5D); color:var(--u-red, #FF5D5D); }
.hero-tag.is-amber .hero-tag__dot{ background:var(--u-amber, #FFC247); color:var(--u-amber, #FFC247); }
.hero-tag.is-green .hero-tag__dot{ background:var(--u-green, #3DDC97); color:var(--u-green, #3DDC97); }
.hero-tag.is-ember{ box-shadow:inset 0 0 0 1px rgba(255,122,69,.55), 0 10px 26px -12px rgba(0,0,0,.8); }
.hero-tag.is-ember .hero-tag__dot{ background:transparent; box-shadow:inset 0 0 0 1.5px currentColor; }
.hero-tag.is-ember .hero-tag__l2{ color:var(--ember, #FF7A45); }
.hero-tag__l2,
.hero-tag__l3{ font-size:11px; letter-spacing:.005em; overflow:hidden; text-overflow:ellipsis; }
.hero-tag__l2{ color:var(--text-2, #A9B6CE); white-space:normal; line-height:1.35; }
.hero-tag__l3{ color:var(--cyan, #7CE7FF); opacity:.9; }
.hero-tag__l3:empty{ display:none; }

/* source tag above the winner during the intro */
.hero-srctag{
  display:inline-flex; align-items:center; gap:8px;
  height:26px; padding:0 11px 0 9px; border-radius:var(--r-pill, 999px);
  background:rgba(7,11,20,.82); box-shadow:inset 0 0 0 1px var(--line-2, rgba(150,180,255,.24));
  font:500 var(--fs-label, 11.5px)/1 var(--font-mono, ui-monospace, monospace); letter-spacing:.06em;
  color:var(--text-1, #EEF3FF); white-space:nowrap;
}
.hero-srctag__dot{ flex:none; width:6px; height:6px; border-radius:50%; background:currentColor; box-shadow:0 0 8px currentColor; }
.hero-srctag.is-ember{ color:var(--ember, #FF7A45); box-shadow:inset 0 0 0 1px rgba(255,122,69,.5); }
.hero-srctag.is-cyan{ color:var(--cyan, #7CE7FF); box-shadow:inset 0 0 0 1px rgba(124,231,255,.45); }
.hero-srctag span{ color:var(--text-1, #EEF3FF); }

@media (max-width:599px){
  .hero-tag{ max-width:250px; font-size:11px; padding:5px 8px 6px 7px; }
  .hero-tag__l2, .hero-tag__l3{ font-size:10px; }
  .hero-srctag{ height:22px; font-size:10px; }
}
@media (prefers-reduced-motion:reduce){
  .hero-pill, .hero-tag, .hero-srctag,
  .hero-pill.is-on, .hero-tag.is-on, .hero-srctag.is-on{ transition-duration:120ms, 0s; }
}
