:root {
  --night-deep: #0a0618;
  --magenta: #ff2e9a;
  --magenta-soft: #ff7ac6;
  --cyan: #2af0e0;
  --gold: #ffb547;
  --text: #fbf5ff;
  --text-dim: rgba(251, 245, 255, 0.7);
  --glass-bg: rgba(10, 6, 24, 0.45);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.3);
  --panel-bg: rgba(8, 4, 20, 0.55);
  --font-display: "Arial Black", "Segoe UI", Impact, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--night-deep);
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
  color: var(--text);
  font-family: var(--font-body);
}

/* ---------- Background artwork ---------- */

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("https://dev-tachiyomiapk4.pantheonsite.io/wp-content/uploads/2026/07/gta-6-vice-city-hero-3.webp");
  background-size: cover;
  background-position: center 22%;
  animation: bg-drift 16s ease-in-out infinite;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 6, 24, 0.55) 0%, rgba(10, 6, 24, 0.15) 30%, rgba(10, 6, 24, 0.35) 60%, rgba(6, 3, 14, 0.92) 100%),
    radial-gradient(120% 60% at 50% 100%, rgba(6, 3, 14, 0.85), transparent 70%);
}

/* ---------- Grid floor accent ---------- */

.hero__grid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  z-index: 2;
  background-image:
    linear-gradient(rgba(42, 240, 224, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 240, 224, 0.4) 1px, transparent 1px);
  background-size: 60px 40px;
  background-position: center top;
  transform: perspective(280px) rotateX(62deg);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  animation: grid-scroll 3s linear infinite;
  opacity: 0.6;
}

/* ---------- Particles ---------- */

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero__particles span {
  position: absolute;
  left: calc(var(--i) * 5%);
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0;
  box-shadow: 0 0 6px 1px var(--cyan);
  animation: rise 8s linear infinite;
  animation-delay: calc(var(--i) * -0.45s);
}

.hero__particles span:nth-child(3n) {
  background: var(--magenta-soft);
  box-shadow: 0 0 6px 1px var(--magenta-soft);
  width: 2px;
  height: 2px;
}

.hero__particles span:nth-child(4n) {
  background: var(--gold);
  box-shadow: 0 0 6px 1px var(--gold);
  animation-duration: 11s;
}

/* ---------- Content ---------- */

.hero__content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.35rem, 1vw, 0.55rem);
  width: min(1100px, 92vw);
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 6vh, 4rem);
  background: var(--panel-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: rise-in 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__eyebrow {
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(42, 240, 224, 0.6);
}

.hero__release-date {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.hero__release-date time {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Countdown ---------- */

.countdown {
  display: flex;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  margin-block: 0.25rem;
}

.countdown__card {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: clamp(0.4rem, 1vw, 0.6rem) 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 8px 30px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(42, 240, 224, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown__card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 8px 30px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(42, 240, 224, 0.25);
}

.countdown__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  line-height: 1;
  color: var(--text);
  text-shadow: 0 0 16px rgba(255, 46, 154, 0.5);
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  font-size: clamp(0.6rem, 1.3vw, 0.75rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Animations ---------- */

@keyframes bg-drift {
  0%, 100% { transform: scale(1.04) translateY(0); }
  50% { transform: scale(1.08) translateY(-1%); }
}

@keyframes grid-scroll {
  from { background-position: center 0; }
  to { background-position: center 40px; }
}

@keyframes rise {
  from { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.9; }
  90% { opacity: 0.4; }
  to { transform: translateY(-100vh); opacity: 0; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .countdown {
    gap: 0.5rem;
  }

  .hero__content {
    margin-bottom: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}