:root {
  --bg: #120a2e; --bg2: #2a1060; --card: #1f1442; --line: #6d4fd6; --accent: #7c3aed;
  --accent-2: #e0aaff; --text: #f4f0ff; --muted: #9a8cc4; --bad: #ff6b8b;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  background: linear-gradient(180deg, var(--bg), var(--bg2)) fixed;
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
header { text-align: center; margin-bottom: 24px; }
header .game { font-size: 40px; font-weight: 800; letter-spacing: 2px; }
header .sub { color: var(--muted); text-transform: uppercase; font-size: 13px; letter-spacing: 3px; }
header h1 { font-size: 22px; margin: 6px 0 0; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px;
  overflow-wrap: anywhere; min-width: 0; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin: 28px 0 12px; }
.bracket { display: flex; gap: 28px; overflow-x: auto; padding-bottom: 8px; }
.round { display: flex; flex-direction: column; justify-content: space-around; gap: 16px; min-width: 190px; }
.round-name { color: var(--muted); font-size: 12px; text-align: center; text-transform: uppercase; }
.match { display: flex; flex-direction: column; gap: 4px; }
.slot { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 6px;
  background: var(--accent); border: 1px solid var(--line); font-size: 14px; }
.slot span { overflow-wrap: anywhere; min-width: 0; }
.slot.empty { background: var(--card); color: transparent; }
.slot.lost { background: var(--card); color: var(--muted); }
.slot.win { border: 2px solid var(--accent-2); }
.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.team { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  overflow-wrap: anywhere; min-width: 0; }
.team b { display: block; margin-bottom: 6px; }
.team span { color: var(--muted); font-size: 14px; }
.maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.map { padding: 18px 10px; text-align: center; border-radius: 10px; background: var(--card);
  border: 2px solid var(--line); font-weight: 600; cursor: default; user-select: none; }
.map[tabindex] { cursor: pointer; }
.map.banned { opacity: .35; text-decoration: line-through; cursor: default; }
.map.chosen { border-color: var(--accent-2); background: var(--accent); }
.map.picked { border-color: var(--accent-2); background: var(--accent); box-shadow: 0 0 24px #a855f788; }
.status { text-align: center; font-size: 18px; margin: 16px 0; }
.timer { font-variant-numeric: tabular-nums; color: var(--accent-2); font-weight: 700; }
.actions { display: flex; gap: 10px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
button, .button { background: var(--accent); color: var(--text); border: 1px solid var(--accent-2); border-radius: 8px;
  padding: 10px 18px; font: inherit; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .4; cursor: default; }
button:focus-visible, .map:focus-visible, .button:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.error { color: var(--bad); text-align: center; min-height: 1.4em; }
.log { color: var(--muted); font-size: 14px; list-style: none; padding: 0; text-align: center; }
.empty-note { color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
