/* SimGames: a dark front-office look. Each game's tile carries that game's own colour (--game). */
:root {
  --bg: #11151c;
  --panel: #1a2029;
  --line: #2b3340;
  --ink: #e9edf2;
  --quiet: #95a1b2;
  --gold: #f2c14e;
  --red: #e5534b;
  --green: #4fbf7f;
  --radius: 10px;
  --space: 16px;
  --font: 'Barlow', system-ui, sans-serif;
  --display: 'Big Shoulders Display', 'Barlow', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: var(--gold); }
h1, h2 { font-family: var(--display); letter-spacing: 0.02em; margin: 0 0 8px; }
h1 { font-size: 34px; }
h2 { font-size: 22px; margin-top: 28px; }

.sg-app { min-height: 100vh; }
.sg-top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space);
  padding: 14px var(--space); border-bottom: 1px solid var(--line);
}
.sg-mark { font-family: var(--display); font-size: 28px; font-weight: 900; color: var(--ink); text-decoration: none; }
.sg-mark span { color: var(--gold); }
.sg-nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.sg-nav a { text-decoration: none; }
.sg-who { color: var(--quiet); }

.sg-main { max-width: 1080px; margin: 0 auto; padding: 24px var(--space) 48px; }
.sg-hero p { color: var(--quiet); margin: 0 0 24px; font-size: 18px; }

.sg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--space); }
.sg-tile {
  --game: #333;
  display: flex; flex-direction: column; gap: 6px; min-height: 210px; padding: 18px;
  border-radius: var(--radius); text-decoration: none; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--game) 85%, #fff 15%), var(--game));
  border: 1px solid color-mix(in srgb, var(--game) 60%, #fff 40%);
  transition: transform 0.12s ease;
}
.sg-tile:hover { transform: translateY(-3px); }
.sg-tile-sport { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; opacity: 0.8; }
.sg-tile-name { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; }
.sg-tile-line { opacity: 0.9; flex: 1; }
.sg-tile-foot { font-weight: 700; color: var(--gold); }
.sg-tile-coming { opacity: 0.55; pointer-events: none; }

.sg-card { max-width: 440px; margin: 24px auto; padding: 24px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); }
.sg-wide { width: 100%; }
.sg-form { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.sg-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.sg-form input { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); }
.sg-inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.sg-button { font: inherit; font-weight: 700; padding: 10px 16px; border-radius: 8px; border: 0;
  background: var(--gold); color: #1a1408; cursor: pointer; }
.sg-button:disabled { opacity: 0.6; cursor: default; }
.sg-button-quiet { background: var(--line); color: var(--ink); }
.sg-quiet { color: var(--quiet); }
.sg-ok { color: var(--green); margin: 0; }

.sg-banner { background: var(--red); color: #fff; padding: 10px var(--space); font-weight: 600; border-radius: 8px; }
header + .sg-banner { border-radius: 0; }
.sg-notice { background: var(--panel); border: 1px solid var(--gold); padding: 10px 14px; border-radius: 8px;
  margin: 12px 0; word-break: break-all; }

.sg-scroll { overflow-x: auto; }
.sg-table { width: 100%; border-collapse: collapse; }
.sg-table th, .sg-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sg-table th { color: var(--quiet); font-weight: 600; font-size: 14px; }
.sg-closed { opacity: 0.5; }
.sg-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.sg-actions button, .sg-list button { font: inherit; font-size: 13px; padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.sg-tag { font-size: 12px; padding: 1px 6px; border-radius: 999px; background: var(--line); color: var(--ink); }
.sg-tag-hot { background: var(--gold); color: #1a1408; }
.sg-list { padding-left: 18px; }
.sg-list li { margin: 6px 0; }

@media (max-width: 600px) {
  h1 { font-size: 28px; }
  .sg-mark { font-size: 24px; }
}
