:root{
  --bg:#0b1220;
  --panel:#121b2e;
  --panel2:#0f1729;
  --text:#e8eefc;
  --muted:#9fb0d0;
  --accent:#7c5cff;
  --line:#223154;
  --good:#35d07f;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% 10%, #142048 0%, var(--bg) 55%, #070c16 100%);
  color:var(--text);
}

.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 24px;
  border-bottom:1px solid var(--line);
  background: rgba(10,16,30,0.6);
  backdrop-filter: blur(8px);
  position: sticky;
  top:0;
}

h1{ margin:0; font-size:22px; letter-spacing:0.2px; }
.sub{ margin:6px 0 0; color:var(--muted); font-size:13px; }

.wrap{ padding:18px 24px 40px; max-width: 1300px; margin: 0 auto; }

.champion{
  display:flex;
  justify-content:flex-end;
  margin: 6px 0 16px;
}
.champion-card{
  background: linear-gradient(180deg, rgba(124,92,255,0.22), rgba(18,27,46,0.9));
  border:1px solid rgba(124,92,255,0.35);
  border-radius:14px;
  padding:12px 14px;
  min-width:220px;
}
.champion-card .label{ color:var(--muted); font-size:12px; }
.champion-card .name{ font-size:18px; font-weight:700; margin-top:4px; }

.bracket{
  display:grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap:16px;
}

.col h2{
  font-size:14px;
  color:var(--muted);
  margin:0 0 10px;
  font-weight:650;
  letter-spacing:0.4px;
}

.match{
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  margin-bottom:12px;
}

.match-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}

.match-label{
  font-weight:700;
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  background: rgba(124,92,255,0.16);
  border:1px solid rgba(124,92,255,0.22);
}

.winner-pill{
  font-size:12px;
  color:var(--muted);
}
.winner-pill strong{
  color: var(--good);
}

.row{
  display:grid;
  grid-template-columns: 1fr 70px 40px;
  gap:8px;
  align-items:center;
  margin-bottom:8px;
}

input{
  width:100%;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(15,23,41,0.8);
  color:var(--text);
  padding:10px 10px;
  outline:none;
}

input::placeholder{ color: rgba(159,176,208,0.7); }

.score{ text-align:center; }

.radio{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(15,23,41,0.6);
  padding:8px 0;
  cursor:pointer;
  user-select:none;
}
.radio input{ width:auto; margin:0; }
.radio span{ font-size:12px; color:var(--muted); }

.actions{
  display:flex;
  gap:8px;
  margin-top:10px;
}

.btn{
  border:1px solid rgba(124,92,255,0.35);
  background: rgba(124,92,255,0.22);
  color:var(--text);
  padding:9px 10px;
  border-radius:10px;
  font-weight:650;
  cursor:pointer;
}
.btn:hover{ filter: brightness(1.05); }
.btn-ghost{
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.10);
}
@media (max-width: 1050px){
  .bracket{ grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}
@media (max-width: 640px){
  .bracket{ grid-template-columns: 1fr; }
  .champion{ justify-content:flex-start; }
}

