/* ── game-page.css ───────────────────────────────────────────────────────
   Load AFTER common.css on all 11 game pages.
   Contains everything shared across game pages that is not in common.css.
   ──────────────────────────────────────────────────────────────────────── */

/* Hero */
.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.hero-text { flex: 1; min-width: 0; }
.hero-phone { flex-shrink: 0; }
.hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.hero .tagline {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}
.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}
.badge.meta    { background: #f1f5f9; color: #475569; }
.badge.premium { background: #fef9c3; color: #92400e; }
.badge.free    { background: #6b7280; color: #fff; }

/* Phone mockup */
.phone { width: 220px; }

.phone-shell {
  position: relative;
  border-radius: 30px;
  border: 3px solid #1a1a2e;
  background: #1a1a2e;
  box-shadow: 0 32px 80px rgba(0,0,0,0.15), 0 8px 24px rgba(108,63,232,0.1);
  overflow: hidden;
  aspect-ratio: 9/19.5;
}

html.dark .phone-shell {
  border-color: #3d3560;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12) inset,
    0 32px 80px rgba(0,0,0,0.5),
    0 8px 32px rgba(139,92,246,0.3);
}

@media (prefers-color-scheme: dark) {
  html:not(.light) .phone-shell {
    border-color: #3d3560;
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.12) inset,
      0 32px 80px rgba(0,0,0,0.5),
      0 8px 32px rgba(139,92,246,0.3);
  }
}

/* Single-screen phone */
.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 27px;
}

/* Carousel phone (bridge, five-hundred, quiddler) */
.phone-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: 100%;
}
.phone-carousel::-webkit-scrollbar { display: none; }
.phone-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.phone-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.phone-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4d4d8;
  transition: background 0.2s;
}
.phone-dots span.active { background: var(--purple); }

/* Content */
.content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}
.content h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.content ul  { padding-left: 1.25rem; margin: 0 0 1.5rem; }
.content li {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.25rem;
}

.rules-link {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 2rem;
}
.rules-link:hover { text-decoration: underline; }

/* CTA section */
.cta-section {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  background: var(--purple-pale);
}
.cta-section h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.cta-button {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s;
}
.cta-button:hover { background: var(--purple-dark); }

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}
footer a { color: var(--purple); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding-top: 2rem;
  }
  .hero-badges { justify-content: center; }
  .hero h1 { font-size: 1.7rem; }
  .phone { width: 200px; }
}
