/* === Expansion Page — Village Pillage: Festivals === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1a1a2e;
  --surface: #16213e;
  --card: #0f3460;
  --accent: #c850c0;
  --text: #eee;
  --text-muted: #aab;
  --success: #53d769;
  --warning: #f5a623;
  --radius: 10px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container { max-width: 800px; margin: 0 auto; padding: 2rem 1.25rem; }

h1 { font-size: 2rem; margin-bottom: 0.25rem; }

.back-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.back-link:hover { text-decoration: underline; }

.game-header { margin-bottom: 2rem; }
.game-header h1 { font-size: 1.75rem; }
.game-header .meta { color: var(--text-muted); font-size: 0.95rem; }

.cover-banner { margin-bottom: 1rem; }
.cover-banner img { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius); }

.expansion-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

details {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.06);
}

summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '▸'; margin-left: auto; transition: transform 0.2s; color: var(--text-muted); }
details[open] > summary::after { transform: rotate(90deg); }

.section-body { padding: 0 1.25rem 1.25rem; }
.section-body p { margin-bottom: 0.75rem; }
.section-body ul, .section-body ol { margin: 0.5rem 0 1rem 1.25rem; }
.section-body li { margin-bottom: 0.35rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}
th, td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.08); }
th { color: var(--accent); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

.tip, .warning {
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.tip { background: rgba(83,215,105,0.1); border-left: 3px solid var(--success); }
.warning { background: rgba(245,166,35,0.12); border-left: 3px solid var(--warning); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0;
}
.card-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
}
.card-item strong { color: var(--accent); }
.card-item p { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 600px) {
  .container { padding: 1rem 0.75rem; }
  h1 { font-size: 1.5rem; }
  summary { font-size: 1rem; padding: 0.75rem 1rem; }
  .card-grid { grid-template-columns: 1fr; }
}
