/* Same gray dark palette as the rest of the DayTrace/Prism family
   (day-trace-root/style.css, wp-assets/mu-plugins/daytrace-style.css). */
:root {
  color-scheme: dark;
  --bg: #202124;
  --panel: #2d2e31;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --accent: #a08cff;
  --accent-2: #4fd1d9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.hub-header {
  padding: 2rem 1.25rem 1rem;
  text-align: center;
}

.hub-home-link {
  margin: 0 0 0.85rem;
}

.hub-home-link a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.hub-home-link a:hover {
  color: var(--accent);
}

.hub-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.hub-header p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
  margin-inline: auto;
  line-height: 1.6;
}

.game-disclaimer {
  margin: 0.6rem auto 0;
  max-width: 40rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 60rem;
  margin: 1.5rem auto;
  padding: 0 1.25rem;
}

.game-card {
  background: var(--panel);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.game-card .icon {
  font-size: 2rem;
}

.game-card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.game-card.coming-soon {
  opacity: 0.5;
  pointer-events: none;
}

.badge {
  align-self: flex-start;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(79, 209, 217, 0.15);
  color: var(--accent-2);
}

.ad-slot {
  max-width: 60rem;
  margin: 1.5rem auto;
  padding: 0 1.25rem;
}

.ad-slot .placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 2rem 1rem;
}

footer a {
  color: var(--muted);
}

/* Shared top-10 leaderboard list, injected via shared/leaderboard.js into
   any game's overlay message. */
.lb-title {
  margin: 0.9rem 0 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}

.lb-list {
  text-align: left;
  max-width: 200px;
  margin: 0 auto;
  padding-left: 1.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.lb-list li.lb-mine {
  color: var(--accent);
  font-weight: 700;
}

.lb-empty {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.7;
  text-align: center;
}

/* Shared typography for the extra how-to-play content blocks (controls,
   strategy, dev notes, FAQ) added to every game page - keeps them readable
   without needing a per-game style.css edit on all 22 games. */
.how-to-play h3 {
  font-size: 0.95rem;
  margin: 1rem 0 0.3rem;
  color: var(--text);
}

.how-to-play p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
  margin: 0 0 0.5rem;
}

.how-to-play .faq-q {
  color: var(--text);
  font-weight: 600;
}
