/* Homepage hero pixel burst and screen glass, every screen size (desktop 29 Oct 2026; phones and tablets the same day). */

/* The pixel burst (home-hero-pixels.js): one canvas over the scene, under the words. It replaces the hand-placed
   .hb-scene-pixels; they stay hidden, not removed, so their CSS keeps time with the burst. */
#hb .hb-pxfield { display: block; position: absolute; inset: 0; z-index: 8; width: 100%; height: 100%; pointer-events: none; }
#hb .hb-scene-pixels { visibility: hidden; }
/* The coin and heart (desktop) and the pickups (phones) fade away evenly instead of holding, then dropping (ease-in). */
@media (prefers-reduced-motion: no-preference) {
  html.hb-motion[data-hero-accents="retro"] #hb.is-burst .hb-pt--intro {
    animation-duration: .95s, 1.1s;
    animation-timing-function: cubic-bezier(.15, .9, .3, 1.12), ease;
  }
  html.hb-motion[data-hero-accents="retro"] #hb.is-burst .hb-pickups { animation-duration: 1.1s; animation-timing-function: ease; }
}

/* One real lit screen under one sheet of glass. The console picture's own glass is grey with a glare that stopped
   at the edge of the screen layer, so the screen looked pasted on. Now .hb-glass paints the glass black inside the
   picture's thin rim (a little screen light caught in it), the screen is lit a touch brighter than that black,
   and .hb-glass-shine lays one reflection over glass and screen together.
   Glass measured on r36s-purple-front.webp (771 x 1246): x 36-722, y 29-591, corner radius about 40. */
#hb :is(.hb-glass, .hb-glass-shine) {
  display: block; position: absolute; left: 4.669%; top: 2.327%; width: 88.975%; height: 45.104%;
  border-radius: 5.83% / 7.12%; pointer-events: none;
}
#hb .hb-glass {
  background:
    radial-gradient(64% 64% at 49% 47%, rgba(150, 118, 235, .1), rgba(150, 118, 235, 0) 78%),
    #040406;
}
#hb .hb-glass-shine {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .065) 0%, rgba(255, 255, 255, .04) 40.6%, rgba(255, 255, 255, 0) 41%),
    linear-gradient(to bottom, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 9%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(255, 255, 255, .035);
}
/* The lit panel: backlit black with the logo's light in the middle, set just under the glass. */
#hb .hb-scr-off { background: radial-gradient(58% 62% at 50% 47%, rgba(166, 136, 246, .16), rgba(166, 136, 246, 0) 72%), #0b0b10; }
#hb .hb-scr-glass { background: none; box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, .6); }
#hb .hb-scr-logo { text-shadow: 0 0 12px rgba(196, 163, 255, .55); }
#hb .hb-scr-logo img { filter: drop-shadow(0 0 12px rgba(196, 163, 255, .5)); }
