﻿:root {
  --font-size: 26px;
  --match-height: 62px;
  --match-spacing: 24px;
  --match-width: 240px;
  --border-size: 1px;
  --border-radius: 8px;

  --bg: #0f172a;
  --card: #1e293b;
  --card-2: #243449;
  --line: #36404e;
  --line-soft: #2e3a4a;
  --text: #e3e8ef;
  --muted: #8ea0b6;
  --accent: #3b82f6;
  --score: #06b6d4;
  --champ: #f59e0b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(1000px 520px at 14% -20%, #1a3353 0%, transparent 60%),
    radial-gradient(900px 460px at 90% -20%, #132740 0%, transparent 60%),
    var(--bg);
  color: var(--text);
}

.theme {
  min-height: 100vh;
  width: 100%;
}

.page-title {
  text-align: center;
  padding: 24px 14px 4px;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3.2vw, 2.9rem);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.page-title h2 {
  margin: 0;
  font-size: clamp(1.0rem, 1.6vw, 1.4rem);
  letter-spacing: .06em;
  text-transform: uppercase;
}


.page-title p {
  margin: 10px 0 0;
  color: var(--accent);
  font-weight: 600;
}

.bracket-wrap {
  overflow-x: auto;
  padding: 24px 14px 28px;
}

.bracket {
  padding: 8px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  position: relative;
  min-width: 1440px;
}

.column {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  justify-content: space-around;
  align-content: center;
}

.match {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: var(--match-width);
  max-width: var(--match-width);
  height: var(--match-height);
  margin: 12px 24px 12px 0;
}

.match .match-top {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.match .match-bottom {
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.match .team {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  border: var(--border-size) solid var(--line-soft);
  position: relative;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  color: var(--muted);
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.match .team:hover {
  transform: translateX(2px);
  background: #2a3e57;
  color: var(--text);
}

.match .team span {
  padding-left: 8px;
}

.match .team span:last-child {
  padding-right: 8px;
}

.match .team .score {
  margin-left: auto;
  font-weight: 700;
}

.match .team:first-child {
  margin-bottom: -1px;
}

.match-lines {
  display: block;
  position: absolute;
  top: 50%;
  right: -1px;
}

.match-lines .line {
  background: var(--line);
  position: absolute;
}

.match-lines .line.one {
  height: 2px;
  width: 12px;
}

.match-lines .line.two {
  height: 44px;
  width: 2px;
  left: 11px;
}

.match-lines.alt {
  left: -12px;
}

.match:nth-child(even) .match-lines .line.two {
  transform: translate(0, -100%);
}

.column:first-child .match-lines.alt {
  display: none;
}

.column:last-child .match-lines {
  display: none;
}

.column:last-child .match-lines.alt {
  display: block;
}

.column:nth-child(2) .match-lines .line.two {
  height: 88px;
}

.column:nth-child(3) .match-lines .line.two {
  height: 175px;
}

.column:nth-child(4) .match-lines .line.two {
  height: 262px;
}

.column:nth-child(5) .match-lines .line.two {
  height: 349px;
}

.disable-image .image,
.disable-seed .seed,
.disable-name .name,
.disable-score .score {
  display: none !important;
}

.theme-dark .winner-top .match-top,
.theme-dark .winner-bottom .match-bottom {
  background: linear-gradient(180deg, #24486f, #213f61);
  color: #eef4ff;
  border-color: #37618f;
  z-index: 1;
}

.theme-dark .winner-top .match-top .score,
.theme-dark .winner-bottom .match-bottom .score {
  color: var(--score);
}

.theme-dark .match .seed {
  font-size: 12px;
  min-width: 12px;
  color: #9bbce6;
}

.theme-dark .match .score {
  font-size: 14px;
}

.champion-column {
  justify-content: center;
}

.champion-box {
  position: relative;
  min-width: 210px;
  max-width: 210px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border: 1px solid #70581f;
  border-radius: 12px;
  background: linear-gradient(180deg, #3b331f, #2a2417);
  text-align: center;
  box-shadow: 0 12px 26px rgba(2, 6, 23, .45);
}

.column.four .match-lines .line.two {
  display: none;
}

.column.four .match-lines .line.one {
  width: 36px;
}

.champion-label {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d6b56d;
}

.champion-box strong {
  font-size: 1.06rem;
  color: var(--champ);
}

@media (max-width: 980px) {
  :root {
    --match-width: 220px;
  }

  .bracket {
    min-width: 1320px;
  }
}



.white-link,
.white-link:visited,
.white-link:hover,
.white-link:active {
  color: white;
  text-decoration: none;
}

.Muted-link,
.Muted-link:visited,
.Muted-link:hover,
.Muted-link:active {
  color: #8ea0b6;
  text-decoration: none;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* Top navigation */
.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1f2933;
    padding: 16px 32px;
}

/* Logo */
.logo {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
}

/* Menu */
.menu {
    list-style: none;
    display: flex;
    gap: 24px;
}

.menu a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.menu a:hover {
    color: #38bdf8;
}

/* Content spacing */
main {
    padding: 32px;
}
``