.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 24px 60px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(12,4,32,0.5) 0%,
      rgba(12,4,32,0.3) 40%,
      rgba(12,4,32,0.6) 70%,
      rgba(12,4,32,0.95) 100%),
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(255,40,180,0.15) 0%, transparent 60%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 800px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 800; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase;
  background: linear-gradient(180deg, var(--accent-hot), #d63dff);
  color: #fff;
  border: 2px solid var(--shadow-ink);
  padding: 6px 16px; border-radius: 8px;
  box-shadow: 0 3px 0 var(--shadow-ink);
  animation: badge-pulse 3s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 3px 0 var(--shadow-ink), 0 0 12px rgba(255,78,201,0.3); }
  50% { box-shadow: 0 3px 0 var(--shadow-ink), 0 0 24px rgba(255,78,201,0.6); }
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: clamp(52px, 8vw, 120px);
  line-height: 0.95; letter-spacing: 4px;
  text-transform: uppercase; color: #fff;
  text-shadow:
    -3px -3px 0 var(--shadow-ink), 3px -3px 0 var(--shadow-ink),
    -3px  3px 0 var(--shadow-ink), 3px  3px 0 var(--shadow-ink),
    0 9px 0 var(--shadow-ink),
    -6px 0 30px rgba(255,40,180,0.5), 6px 0 30px rgba(0,255,200,0.4),
    0 0 60px rgba(255,80,200,0.3);
}
.hero-tagline {
  font-size: 16px;
  color: #fff;
  max-width: 580px; line-height: 1.6;
  background: linear-gradient(180deg, rgba(74,30,150,0.5), rgba(40,15,90,0.7));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--shadow-ink);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--shadow-ink), inset 0 0 0 1px rgba(0,255,234,0.15);
  padding: 18px 28px;
  margin-top: 4px;
}
.hero-video-wrap {
  position: relative;
  width: 100%; max-width: 720px;
  aspect-ratio: 16/9;
  border-radius: 18px; overflow: hidden;
  border: 4px solid var(--shadow-ink);
  box-shadow: 0 8px 0 var(--shadow-ink), 0 20px 50px rgba(0,0,0,0.5);
  cursor: pointer;
  margin-top: 8px;
}
.hero-video-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-video-placeholder {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: rgba(12,4,32,0.55);
  transition: background 0.3s;
}
.hero-video-wrap:hover .hero-video-placeholder {
  background: rgba(12,4,32,0.35);
}
.hero-video-placeholder svg {
  opacity: 0.85;
  transition: transform 0.3s, opacity 0.3s;
}
.hero-video-wrap:hover .hero-video-placeholder svg {
  transform: scale(1.12); opacity: 1;
}
.hero-video-placeholder span {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.hero-video-placeholder.hidden { display: none; }
.hero-main-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
/* Sound toggle pill over the gameplay video */
.hero-unmute {
  position: absolute;
  bottom: 14px; right: 14px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(12,4,32,0.6);
  border: 1px solid rgba(0,255,234,0.35);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hero-unmute:hover {
  background: rgba(0,255,234,0.18);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,255,234,0.25);
}
.hero-unmute svg { display: none; }
.hero-unmute.muted .ic-muted { display: block; }
.hero-unmute:not(.muted) .ic-sound { display: block; }
.hero-unmute:not(.muted) {
  border-color: var(--magenta);
  box-shadow: 0 0 16px rgba(255,43,182,0.3);
}
.hero-subscribe {
  display: flex; gap: 0;
  max-width: 440px; width: 100%;
  border-radius: 14px; overflow: hidden;
  border: 3px solid var(--shadow-ink);
  box-shadow: 0 4px 0 var(--shadow-ink);
  margin-top: 4px;
}
.hero-subscribe input {
  flex: 1; min-width: 0;
  padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border: none; outline: none;
  color: #fff; font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
}
.hero-subscribe input::placeholder { color: rgba(255,255,255,0.35); }
.hero-subscribe button {
  padding: 14px 22px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 13px; text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: filter 0.2s;
}
.hero-subscribe button:hover { filter: brightness(1.1); }
.hero-subscribe-thanks {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 1px;
  color: var(--accent);
}
.hero-subscribe-thanks[hidden] { display: none; }
.hero-socials {
  display: flex; gap: 12px;
  margin-top: 4px;
}
.hero-socials a {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.hero-socials a:hover {
  transform: translateY(-3px);
  background: var(--accent); border-color: var(--accent);
}
.hero-socials img { width: 18px; height: 18px; filter: brightness(0) invert(1); transition: filter 0.2s; }
.hero-socials a:hover img { filter: brightness(0); }
.hero-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 3px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; }
  50% { transform: scaleY(1); }
}

/* Pre-Registration Widget */
.full-width-banner {
  width: 100%;
  background: linear-gradient(90deg, rgba(12,4,32,0.9), rgba(25,10,62,0.95), rgba(12,4,32,0.9));
  border-top: 3px solid var(--shadow-ink);
  border-bottom: 3px solid var(--shadow-ink);
  box-shadow: 0 0 30px rgba(0,255,234,0.1), inset 0 2px 0 rgba(0,255,234,0.1);
  padding: 30px 24px;
  position: relative;
  z-index: 10;
}
.pre-reg-banner-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pre-reg-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.pre-reg-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 24px;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 0 var(--shadow-ink);
}
.pre-reg-count {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0,255,234,0.5);
}
.pre-reg-bar-container {
  position: relative;
  height: 18px;
  background: rgba(0,0,0,0.6);
  border-radius: 999px;
  border: 3px solid var(--shadow-ink);
  box-shadow: 0 4px 0 var(--shadow-ink), inset 0 2px 6px rgba(0,0,0,0.5);
  margin: 20px 0 30px 0;
}
.pre-reg-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--magenta) 0%, var(--accent) 100%);
  border-radius: 999px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
  box-shadow: 0 0 20px var(--accent-soft), inset 0 2px 0 rgba(255,255,255,0.4);
}
.pre-reg-milestone {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.milestone-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 3px solid rgba(255,255,255,0.3);
  box-shadow: 0 0 0 4px var(--bg);
  transition: all 0.3s ease;
  cursor: pointer;
}
.pre-reg-milestone.reached .milestone-dot {
  background: var(--accent);
  border-color: #fff;
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--accent);
}
.milestone-label {
  position: absolute;
  top: 32px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--fg-dim);
  white-space: nowrap;
  transition: color 0.3s;
}
.pre-reg-milestone.reached .milestone-label {
  color: #fff;
  text-shadow: 0 0 10px var(--accent);
}
.milestone-tooltip {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(12,4,32,0.95);
  border: 2px solid var(--shadow-ink);
  border-radius: 12px;
  padding: 16px;
  width: 220px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(0,255,234,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 20;
  pointer-events: none;
}
.pre-reg-milestone:hover .milestone-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.milestone-tooltip::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(12,4,32,0.95);
  border-right: 2px solid var(--shadow-ink);
  border-bottom: 2px solid var(--shadow-ink);
}
.milestone-tooltip .reward-icon-text {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--fg-dim);
  display: inline-block;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  margin-bottom: 8px;
}
.pre-reg-milestone.reached .milestone-tooltip .reward-icon-text {
  color: var(--accent);
  background: rgba(0,255,234,0.15);
  text-shadow: 0 0 6px var(--accent-soft);
}
.milestone-tooltip .reward-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.milestone-tooltip .reward-desc {
  font-size: 11px;
  color: var(--fg-dim);
  line-height: 1.4;
}
.pre-reg-milestone.reached .milestone-tooltip .reward-desc {
  color: rgba(255,255,255,0.9);
}

@media (max-width: 600px) {
  .pre-reg-header {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .pre-reg-title { font-size: 18px; }
  .pre-reg-count { font-size: 24px; }
  .milestone-label { font-size: 12px; top: 24px; }
  .milestone-dot { width: 16px; height: 16px; }
}

@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(180deg, rgba(12,4,32,0.85) 0%, rgba(12,4,32,0.85) 40%, rgba(12,4,32,0.95) 70%, rgba(12,4,32,0.98) 100%), radial-gradient(ellipse 60% 40% at 50% 30%, rgba(255,40,180,0.1) 0%, transparent 60%);
  }
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(9px) brightness(0.5);
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
  pointer-events: none;
}
.hero-bg-video.active {
  opacity: 0.85;
}
/* Fade the static screenshot out once the blurred video takes over */
#heroBgImg {
  transition: opacity 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}
.hero-bg.video-playing #heroBgImg {
  opacity: 0.15;
}
