/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: #f6f6f6;
  color: #111;
  line-height: 1.5;
}

/* Animations */
@keyframes heroZoom {
  0% { transform: scale(1.1); }
  100% { transform: scale(1.18); }
}

@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes noiseMove {
  0% { transform: translate3d(0,0,0); }
  20% { transform: translate3d(-2%,3%,0); }
  40% { transform: translate3d(3%,-2%,0); }
  60% { transform: translate3d(-4%,-1%,0); }
  80% { transform: translate3d(2%,4%,0); }
  100% { transform: translate3d(0,0,0); }
}

@keyframes shimmerMove {
  0% { transform: translateX(-40%) skewX(-12deg); opacity: 0; }
  20% { opacity: 0.35; }
  50% { opacity: 0.25; }
  80% { opacity: 0.35; }
  100% { transform: translateX(140%) skewX(-12deg); opacity: 0; }
}

@keyframes lightPulse {
  0% { opacity: 1; }
  50% { opacity: 0.92; }
  100% { opacity: 1; }
}

/* Hero */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  color: #fff;
  z-index: 1;
  animation: heroFade 1.2s ease-out;
}

/* Image */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  transform: scale(1.1);
  animation: heroZoom 40s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 0;
}

/* Dark overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.48);
  animation: lightPulse 18s ease-in-out infinite;
  z-index: 1;
}

/* Grain */
.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  animation: noiseMove 6s steps(8) infinite;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.10),
      rgba(255,255,255,0.10) 1px,
      rgba(0,0,0,0.10) 1px,
      rgba(0,0,0,0.10) 2px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.08) 1px,
      rgba(0,0,0,0.08) 1px,
      rgba(0,0,0,0.08) 2px
    );
  z-index: 2;
}

/* Shimmer */
.hero-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 60%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.18) 45%,
    rgba(255,255,255,0) 65%
  );
  filter: blur(8px);
  mix-blend-mode: overlay;
  animation: shimmerMove 12s ease-in-out infinite;
  z-index: 3;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
  margin: auto;
  padding: 120px 32px 0;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 600;
  margin: 16px 0;
}

.hero p {
  max-width: 520px;
  font-size: 1rem;
  color: #ddd;
}

/* Stats */
.stats {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: -40px auto 64px;
  padding: 24px 32px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.stat span {
  font-size: 2rem;
  font-weight: 500;
}

.stat small {
  color: #666;
  font-size: 0.85rem;
}

/* Section */
.game-section {
  max-width: 900px;
  margin: auto;
  padding: 0 32px 80px;
}

.game-section h2 {
  font-size: 1.6rem;
  margin-bottom: 32px;
}

/* Games */
.game {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid #e1e1e1;
}

.game img {
  width: 96px;
  height: 96px;
  object-fit: cover;
}

/* Info */
.game-info h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.game-info p {
  color: #555;
}

/* Progress */
.game-progress {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.progress-bar {
  width: 160px;
  height: 4px;
  background: #ddd;
}

.progress-bar span {
  height: 100%;
  display: block;
  background: #111;
}

/* Footer */
.site-footer {
  padding: 40px;
  text-align: center;
  color: #777;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 700px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 360px;
  }

  .hero-content {
    padding: 96px 24px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .game {
    grid-template-columns: 72px 1fr;
  }

  .game-progress {
    align-items: flex-start;
  }

  .progress-bar {
    width: 100%;
  }
}
