/* =============================================
   hero.css — Full-screen hero with Pac-Man canvas bg
   ============================================= */

#hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Pac-Man canvas fills the whole hero */
#pacman-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Dark gradient overlay so text stays readable */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(29,32,33,0.98) 25%, rgba(29,32,33,0.7) 45%, rgba(29,32,33,0.1) 70%),
    linear-gradient(0deg, rgba(29,32,33,0.8) 0%, transparent 30%),
    linear-gradient(180deg, rgba(29,32,33,0.8) 0%, transparent 30%);
  pointer-events: none;
  z-index: 1;
}

/* Content sits above canvas & overlay */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 80px 80px;
  max-width: 800px;
}

.hero-tag {
  font-size: 11px;
  color: var(--green-b);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.6s 0.3s forwards;
}
.hero-tag::before { content: '[ '; }
.hero-tag::after  { content: ' ]'; }

h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(24px, 4vw, 52px);
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeInUp 0.6s 0.5s forwards;
}
h1 .accent  { color: var(--yellow-b); text-shadow: 0 0 20px var(--yellow); }
h1 .accent2 { color: var(--orange-b); text-shadow: 0 0 20px var(--orange); }

.tagline {
  font-size: 14px;
  color: var(--fg2);
  margin: 30px 0 50px;
  line-height: 2;
  max-width: 560px;
  opacity: 0;
  animation: fadeInUp 0.6s 0.7s forwards;
}
.tagline .hl { color: var(--aqua-b); }

.cta-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.6s 0.9s forwards;
}

/* Hi-Score overlay top right */
.score-display {
  position: absolute;
  top: 90px;
  right: 40px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--orange-b);
  text-align: right;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}
.score-display .score-val {
  display: block;
  font-size: 24px;
  color: var(--yellow-b);
  text-shadow: 0 0 15px var(--yellow);
  margin-top: 5px;
}

@media (max-width: 900px) {
  .hero-content { padding: 120px 24px 60px; }
  .score-display { right: 24px; }
  h1 { font-size: 22px; }
}
@media (max-width: 600px) {
  h1 { font-size: 16px; }
  .score-display { display: none; }
}