:root {
  --bg: #14110f;
  --surface: #1f1a17;
  --border: #3a2e26;
  --text: #f3ece4;
  --muted: #b5a698;
  --accent: #e5a93c;
  --green: #4ade80;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--bg); color: var(--text); }
.topbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); background: #191512;
}
h1 { margin: 0; font-size: 1.2rem; }
.subtitle { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.82rem; }
.identity { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
input, select {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.45rem 0.65rem; font-size: 0.9rem;
}
.container { max-width: 1120px; margin: 0 auto; padding: 1.25rem; display: grid; gap: 1.15rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.hidden { display: none !important; }
.date-row, .section-head, .controls { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; }
.date-row { justify-content: flex-start; margin-bottom: 0.8rem; }
.btn { border: 1px solid var(--border); border-radius: 8px; padding: 0.48rem 0.85rem; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--accent); color: #19130c; border-color: var(--accent); }
.btn.secondary { background: #29221d; color: var(--text); }
.live-pill { display: inline-flex; gap: 0.35rem; align-items: center; font-size: 0.82rem; color: var(--muted); }
.suggested {
  background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.4);
  padding: 0.7rem 0.9rem; border-radius: 8px; margin-bottom: 0.8rem; font-size: 0.9rem;
}
.dates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.65rem; }
.date-chip { background: #171310; border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem; font-size: 0.85rem; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.95rem; margin-top: 0.9rem; }
.game-card { background: #171310; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.game-cover { aspect-ratio: 1/1; background: #251e19; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0.6rem; font-weight: 700; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-body { padding: 0.7rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.meta { font-size: 0.78rem; color: var(--muted); }
.modal { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 12px; max-width: 440px; width: 92vw; padding: 1rem; }
.modal label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.6rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; }
.app-footer { text-align: center; padding: 1.25rem; font-size: 0.78rem; color: var(--muted); }
.app-footer a { color: var(--accent); text-decoration: none; }
.app-footer a:hover { text-decoration: underline; }
