/* Index page scoped styles */
@property --card-progress {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.page-index .hero-wrap {
  padding-block: clamp(1rem, 3vh, 2.2rem);
  min-height: calc(100vh - 6.2rem);
  display: flex;
  align-items: center;
}

.page-index .hero-wrap > .container {
  display: grid;
  /* Give the left column more room and reduce the reel max width */
  grid-template-columns: minmax(0, 2.4fr) minmax(220px, 300px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
  padding-inline: clamp(1rem, 5vw, 5rem);
  max-width: none;
  margin-inline: 0;
}

.page-index .hero-copy {
  min-width: 0;
  max-width: 60rem;
  overflow-wrap: anywhere;
  margin-left: 0;
  margin-top: 0;
  justify-self: start;
  align-self: center;
  transform: translate(-50%, -4%);
}

.page-index .hero-copy,
.page-index .hero-copy h1 {
  color: var(--text);
}

.page-index .hero-description {
  color: var(--muted);
}

.page-index .eyebrow {
  color: var(--accent);
  font-weight: 700;
}

.page-index .hero-copy h1 {
  line-height: 0.95;
  font-size: clamp(2.0rem, 3.6vw, 4.0rem);
  letter-spacing: 0.2px;
}
.page-index .hero-description { max-width: 56rem; font-size: 1.05rem; color: var(--muted); line-height: 1.6; }

.page-index .benefits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  margin: 1.1rem 0 0;
  list-style: none;
}

.page-index .cta-row {
  margin-top: 1.1rem;
}

.page-index .benefits li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f29aca;
  box-shadow: none;
  font-size: 0.95rem;
  line-height: 1.35;
}

.page-index .benefits li span {
  color: #f29aca;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}

.page-index .benefits li:hover {
  transform: none;
}

.page-index .game-reel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(520px, 100%);
  perspective: 1000px;
      position: fixed;
      left: 85%;
      top: 50%;
      transform: translate(-30%, -50%);
  height: 100vh;
  z-index: 10;
}

.page-index .reel-viewport { position: relative; width: 100%; height: 760px; overflow: visible; padding-block: 24px; box-sizing: border-box; }

.page-index .game-card { position: absolute; top: 50%; left: 50%; margin: 0; transform-origin: center center; transition: transform 220ms ease, opacity 220ms ease, filter 220ms ease; }

.page-index .game-card {
  width: 280px;
  height: 110px;
  margin-left: -140px;
  margin-top: -55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 16px;
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  border: 2px solid transparent;
  font-size: 0;
  overflow: hidden;
}

.page-index .game-card-progress {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.page-index .game-card-progress svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-index .game-card-progress rect {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: var(--card-progress, 0) 100;
  stroke-dashoffset: 0;
}

.page-index .game-card.is-active .game-card-progress {
  opacity: 1;
}

.page-index .game-card.is-active .game-card-progress rect {
  animation: cardProgress var(--card-switch-ms, 30000ms) linear forwards;
}

.page-index .game-card:hover {
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(239, 149, 201, 0.2);
  transform: scale(1.03);
}

.page-index .game-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(239, 149, 201, 0.3);
  background: var(--card-2);
}

@keyframes cardProgress {
  from {
    --card-progress: 100;
  }

  to {
    --card-progress: 0;
  }
}

.page-index .game-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.page-index .game-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  font-weight: 600;
  display: block;
}

@media (max-width: 900px) {
  .page-index .hero-wrap > .container { grid-template-columns: 1fr; }
  .page-index .hero-copy { max-width: none; margin-left: 0; margin-top: 0; transform: none; position: static; }
  .page-index .benefits { grid-template-columns: 1fr; }
  .page-index .game-reel { width: 100%; min-height: 0; position: static; top: auto; transform: none; }
  .page-index .reel-viewport { height: 560px; }
}

@media (max-width: 1024px) {
  .page-index .hero-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
    padding: 40px 0;
  }

  .page-index #hero-title {
    font-size: 36px;
  }

  .page-index .reel-viewport {
    width: 300px;
    height: 380px;
  }

  .page-index .game-card {
    width: 260px;
    height: 100px;
    margin-left: -130px;
    margin-top: -50px;
  }
}

@media (max-width: 640px) {
  .page-index .hero-wrap {
    grid-template-columns: 1fr;
    padding: 20px 0;
    gap: 30px;
  }

  .page-index #hero-title {
    font-size: 28px;
  }

  .page-index .hero-description {
    font-size: 14px;
  }

  .page-index .benefits {
    gap: 0.4rem;
  }

  .page-index .benefits li {
    font-size: 0.88rem;
  }

  .page-index .cta-row {
    flex-direction: column;
  }

  .page-index .btn {
    width: 100%;
    text-align: center;
  }

  .page-index .reel-viewport {
    width: 100%;
    max-width: 280px;
    height: 340px;
  }

  .page-index .game-card {
    width: 240px;
    height: 90px;
    margin-left: -120px;
    margin-top: -45px;
  }

  .page-index .game-title {
    font-size: 13px;
  }

  .page-index .game-subtitle {
    font-size: 10px;
  }
}
