/* ──────────────────────────────────────────────
   LANDING PAGE — minimal editorial
────────────────────────────────────────────── */

.landing-page { padding-bottom: 72px; }

/* ── Masthead ── */
.landing-masthead {
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
}
.landing-masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.landing-masthead-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ── Hero ── */
.landing-hero {
  text-align: center;
  padding: 72px 24px 64px;
  max-width: 760px;
}

.hero-kicker {
  margin-bottom: 18px;
  color: var(--accent-hover);
  letter-spacing: 1.2px;
}

.hero-title {
  font-size: 48px;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero-accent { color: var(--text-accent); }

.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 auto 32px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badges-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin: 22px 0 10px;
}

.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  opacity: 0.75;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.store-badge:hover {
  opacity: 1;
  border-color: var(--text-muted);
  background: var(--border-subtle);
}

.store-badge:active {
  opacity: 0.85;
}

.store-badge-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.store-badge-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Games section ── */
.landing-games { padding-top: 8px; }

.editorial-section-header { margin-bottom: 28px; }
.editorial-section-header .section-label { margin-bottom: 8px; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}

.game-card {
  padding: 26px 22px;
  position: relative;
}

.game-card-index {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--border-rule);
  line-height: 1;
}

.game-card { cursor: pointer; }
.game-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Game explainer modal ── */
.game-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.game-modal.open { display: flex; }

.game-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--scrim-bg);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.game-modal.open .game-modal-backdrop { opacity: 1; }

.game-modal-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--nav-panel-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  padding: 32px 28px;
  transform: scale(0.96);
  opacity: 0;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.game-modal.open .game-modal-panel {
  transform: scale(1);
  opacity: 1;
}

.game-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  margin-bottom: 16px;
}
.game-modal-icon.gold    { box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.35); }
.game-modal-icon.emerald { box-shadow: inset 0 0 0 1px rgba(var(--emerald-rgb), 0.35); }
.game-modal-icon.purple  { box-shadow: inset 0 0 0 1px rgba(var(--purple-rgb), 0.35); }
.game-modal-icon.rose    { box-shadow: inset 0 0 0 1px rgba(var(--rose-rgb), 0.35); }
.game-modal-icon.amber   { box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.35); }
.game-modal-icon.indigo  { box-shadow: inset 0 0 0 1px rgba(var(--indigo-rgb), 0.35); }

.game-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.game-modal-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.game-modal-steps {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}
.game-modal-steps li { margin-bottom: 4px; }

.game-modal-science {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.game-modal-science strong { color: var(--text-primary); }

/* ──────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────── */
@media (max-width: 900px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-title { font-size: 32px; }
  .hero-sub   { font-size: 14px; }
  .landing-hero { padding: 40px 12px 44px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game-card  { padding: 16px 14px; }
  .game-card-index { font-size: 14px; top: 10px; right: 10px; }
  .landing-masthead-actions .btn-text { display: none; }
}

