:root {
  --bg: #0b0610;
  --panel: #160a1c;
  --line: #4a1b55;
  --text: #f7eef8;
  --muted: #b39bb8;
  --pink: #b80090;
  --pink-2: #ff2ec4;
  --live: #ff2ec4;
  --win: #39ffb6;
  --loss: #6d5670;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(184, 0, 144, 0.28), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: Manrope, "Liberation Sans", sans-serif;
}
body { padding: 1.25rem 1.5rem 2.5rem; }
a { color: inherit; text-decoration: none; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.06em;
  color: var(--pink-2);
}
nav { display: flex; gap: 1rem; }
nav a {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
nav a.on, nav a:hover { color: var(--text); }

.tree {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
}
.column h2 {
  margin: 0 0 0.8rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--pink-2);
}
.round { margin-bottom: 1.2rem; position: relative; }
.round h3 {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.match {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.match::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--line);
}
.match.live {
  border-color: var(--live);
  box-shadow: 0 0 0 1px rgba(255, 46, 196, 0.35), 0 0 28px rgba(184, 0, 144, 0.25);
}
.match.live::before {
  content: "LIVE";
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--live);
  font-weight: 800;
}
.side {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(74, 27, 85, 0.55);
}
.side:last-child { border-bottom: 0; }
.side.winner { background: rgba(57, 255, 182, 0.08); }
.side.loser { color: var(--loss); }
.who { margin: 0; font-weight: 700; }
.who.slot-wait { color: var(--muted); font-weight: 500; }
.score {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  color: var(--pink-2);
  min-width: 1.2rem;
  text-align: right;
}
.finals {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.finals .match::after { display: none; }
@media (max-width: 900px) {
  .tree { grid-template-columns: 1fr; }
  .match::after { display: none; }
}
