/* MMM — shared components: hero, cards, titles, stats, badges, players, questions */

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--purple-dark);
  color: white;
  padding: 28px 16px 70px;
  text-align: center;
  border-bottom: var(--neo-border-w) solid var(--neo-border);
  /* Neobrutalist diagonal stripe overlay */
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 18px,
      rgba(255,255,255,0.04) 18px,
      rgba(255,255,255,0.04) 36px
    ),
    var(--gradient-hero);
}
.hero-backdrop {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-logo {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  font-size: 2.4rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.15);
  border: var(--neo-border-w) solid rgba(255,255,255,0.5);
}
.hero p { max-width: 640px; margin: 10px auto 0; }
.hero-chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.hero-chip-group.center { justify-content: center; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card,
.section-header-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: var(--neo-border-w) solid var(--neo-border);
  box-shadow: var(--neo-shadow);
}
.card { padding: 18px; }
.section-header-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}
.gradient-card {
  background: var(--purple-dark);
  color: white;
  border-color: var(--neo-border);
}
.gradient-card p,
.gradient-card h2 { color: white; }
.gradient-card .eyebrow { color: rgba(255,255,255,0.78); }

.spotlight-card {
  background: color-mix(in srgb, var(--surface-alt) 60%, var(--surface));
}

/* ── Section titles ──────────────────────────────────────────────────────── */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-title.compact { margin-bottom: 10px; }

/* ── Stat cards ──────────────────────────────────────────────────────────── */
.stat-card {
  padding: 16px;
  background: var(--surface);
  border: var(--neo-border-w) solid var(--neo-border);
  border-radius: var(--radius-md);
  box-shadow: var(--neo-shadow-sm);
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stat-value {
  margin-top: 6px;
  font-size: 2rem;
  font-weight: 900;
  color: var(--purple-dark);
  letter-spacing: -0.03em;
}

/* ── Letter badge ────────────────────────────────────────────────────────── */
.letter-badge,
.letter-inline {
  color: white;
  background: var(--purple-dark);
}
.letter-badge {
  display: inline-grid;
  place-items: center;
  width: 100px;
  height: 100px;
  margin: 20px auto 12px;
  border-radius: var(--radius-md);
  font-size: 3.5rem;
  font-weight: 900;
  border: var(--neo-border-w) solid var(--neo-border);
  box-shadow: var(--neo-shadow-lg);
}
.letter-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-weight: 900;
  border: var(--neo-border-w) solid var(--neo-border);
}

/* ── Player grid ─────────────────────────────────────────────────────────── */
.player-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.player-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: var(--radius-md);
  border: var(--neo-border-w) solid var(--neo-border);
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 800;
  transition: var(--transition);
  box-shadow: var(--neo-shadow-sm);
}
.player-btn:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--neo-border);
}
.player-btn.selected {
  background: var(--purple-dark);
  color: white;
  border-color: var(--neo-border);
  box-shadow: var(--neo-shadow);
}
.player-btn.already-played {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: 1px 1px 0 0 var(--neo-border);
}
.player-emoji { font-size: 2rem; }

/* ── Questions list ──────────────────────────────────────────────────────── */
.questions-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.question-item {
  padding: 14px;
  border-radius: var(--radius-md);
  border: var(--neo-border-w) solid var(--neo-border);
  background: var(--surface);
  box-shadow: var(--neo-shadow-sm);
}
.question-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 800;
}
.question-emoji { font-size: 1.3rem; }
.question-hint {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--yellow) 20%, transparent);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
  border: 1.5px solid var(--neo-border);
}
