:root {
  --bg: #05070c;
  --panel: #0b1020;
  --panel-2: #0f1730;
  --border: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.96);
  --muted: rgba(255, 255, 255, 0.74);
  --blue: #2f6bff;
  --blue-2: #0ea5ff;
  --red: #9b102a;
  --red-2: #ff2d55;
  --danger: #ff4d6d;
  --success: #22c55e;
  --mx: 50vw;
  --my: 20vh;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.60);

  --bg-grad-1: rgba(47, 107, 255, 0.16);
  --bg-grad-2: rgba(14, 165, 255, 0.12);
  --bg-grad-3: rgba(155, 16, 42, 0.14);
  --bg-follow-1: rgba(47, 107, 255, 0.22);
  --bg-follow-2: rgba(255, 45, 85, 0.12);

  --card-from: rgba(20, 30, 62, 0.82);
  --card-to: rgba(11, 16, 32, 0.82);

  --topbar-bg: rgba(5, 7, 12, 0.72);
  --footer-bg: rgba(5, 7, 12, 0.60);

  --web-line-rgb: 255,45,85;
  --web-dot-rgb: 255,255,255;
  --web-glow-rgb: 255,45,85;

  --toggle-bg: rgba(5, 7, 12, 0.65);
  --toggle-border: rgba(255, 255, 255, 0.14);
  --toggle-fg: rgba(255, 255, 255, 0.92);

  --glass: rgba(11, 16, 32, 0.62);
  --glass-2: rgba(11, 16, 32, 0.40);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] {
  --bg: #f5f7ff;
  --border: rgba(10, 16, 32, 0.12);
  --text: rgba(12, 18, 34, 0.95);
  --muted: rgba(12, 18, 34, 0.70);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);

  --bg-grad-1: rgba(47, 107, 255, 0.18);
  --bg-grad-2: rgba(14, 165, 255, 0.14);
  --bg-grad-3: rgba(155, 16, 42, 0.10);
  --bg-follow-1: rgba(47, 107, 255, 0.18);
  --bg-follow-2: rgba(255, 45, 85, 0.10);

  --card-from: rgba(255, 255, 255, 0.78);
  --card-to: rgba(245, 247, 255, 0.78);

  --topbar-bg: rgba(255, 255, 255, 0.62);
  --footer-bg: rgba(255, 255, 255, 0.60);

  --web-line-rgb: 255,45,85;
  --web-dot-rgb: 12,18,34;
  --web-glow-rgb: 47,107,255;

  --toggle-bg: rgba(255, 255, 255, 0.68);
  --toggle-border: rgba(10, 16, 32, 0.18);
  --toggle-fg: rgba(12, 18, 34, 0.92);

  --glass: rgba(255, 255, 255, 0.60);
  --glass-2: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(10, 16, 32, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(1400px 720px at 18% 10%, var(--bg-grad-1), transparent 62%),
    radial-gradient(1100px 620px at 82% 18%, var(--bg-grad-2), transparent 60%),
    radial-gradient(1200px 720px at 85% 85%, var(--bg-grad-3), transparent 62%),
    radial-gradient(760px 460px at var(--mx) var(--my), var(--bg-follow-1), transparent 62%),
    radial-gradient(560px 360px at calc(var(--mx) + 40px) calc(var(--my) + 50px), var(--bg-follow-2), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Arial Black", Arial, Helvetica,
    "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 650;
  font-size: 19px;
  line-height: 1.4;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
}

 html.has-fancy-cursor,
 html.has-fancy-cursor body {
   cursor: none;
 }

 html.has-fancy-cursor input,
 html.has-fancy-cursor textarea,
 html.has-fancy-cursor select {
   cursor: text;
 }

.bg-web {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.62;
  filter: saturate(1.15);
}

.topbar,
main.container,
.footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  padding: 0 22px;
}

main.container {
  flex: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  font-weight: 900;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.18), rgba(255, 45, 85, 0.10));
  border: 1px solid rgba(255, 45, 85, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  will-change: transform;
}

.brand:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 45, 85, 0.45);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav__link {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--text);
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

 .nav__link[aria-current="page"] {
   border-color: rgba(255, 45, 85, 0.34);
   background: rgba(255, 45, 85, 0.10);
 }

.nav__link:hover {
  border-color: rgba(255, 45, 85, 0.28);
  background: rgba(255, 45, 85, 0.07);
  color: var(--text);
  transform: translateY(-1px);
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 14px;
}

.page-header h1 {
  margin: 0;
  font-size: 44px;
  font-weight: 950;
}

.muted {
  color: var(--muted);
}

.text {
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  padding-bottom: 28px;
}

.grid > .card {
  grid-column: span 6;
}

.grid-span {
  grid-column: span 12;
}

.grid--teams {
  grid-template-columns: repeat(12, 1fr);
}

.card {
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 45, 85, 0.26);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42), 0 24px 90px rgba(255, 45, 85, 0.06), 0 24px 90px rgba(47, 107, 255, 0.06);
}

 .card::before {
   content: "";
   position: absolute;
   inset: 0;
   pointer-events: none;
   background: radial-gradient(800px 240px at 22% 0%, var(--glass-highlight), transparent 55%);
   opacity: 0.9;
 }

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

 :root[data-theme="light"] .card__header {
   border-bottom: 1px solid rgba(10, 16, 32, 0.10);
 }

.card__header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  background: rgba(5, 7, 12, 0.18);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

 :root[data-theme="light"] .table-wrap {
   background: rgba(255, 255, 255, 0.44);
   border: 1px solid rgba(10, 16, 32, 0.08);
 }

 .table-wrap::-webkit-scrollbar {
   height: 12px;
   width: 12px;
 }

 .table-wrap::-webkit-scrollbar-track {
   background: transparent;
 }

 .table-wrap::-webkit-scrollbar-thumb {
   background: rgba(255, 255, 255, 0.10);
   border-radius: 999px;
   border: 3px solid transparent;
   background-clip: padding-box;
 }

 :root[data-theme="light"] .table-wrap::-webkit-scrollbar-thumb {
   background: rgba(10, 16, 32, 0.14);
   border: 3px solid transparent;
   background-clip: padding-box;
 }

 .table-wrap {
   scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
   scrollbar-width: thin;
 }

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  border-radius: 14px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

:root[data-theme="light"] .table th,
:root[data-theme="light"] .table td {
  border-bottom: 1px solid rgba(10, 16, 32, 0.08);
}

.table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.78), rgba(5, 7, 12, 0.56));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

 :root[data-theme="light"] .table th {
   background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 247, 255, 0.70));
 }

 .table tbody tr:nth-child(odd) td {
   background: rgba(255, 255, 255, 0.02);
 }

 :root[data-theme="light"] .table tbody tr:nth-child(odd) td {
   background: rgba(10, 16, 32, 0.02);
 }

.table tr:hover td {
  background: rgba(255, 45, 85, 0.06);
  filter: saturate(1.05);
}

 :root[data-theme="light"] .table tr:hover td {
   background: rgba(47, 107, 255, 0.06);
 }

 .table tbody tr {
   transition: transform 160ms ease, filter 160ms ease;
 }

 .table tbody tr:hover {
  transform: translateX(2px);
  filter: saturate(1.05);
}

.right {
  text-align: right;
}

.link {
  color: var(--text);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
  color: var(--red-2);
}

.link.danger {
  color: var(--danger);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 45, 85, 0.28);
  background: rgba(255, 45, 85, 0.10);
  color: var(--text);
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, filter 160ms ease;
}

 .pill:hover {
   transform: translateY(-1px);
   border-color: rgba(255, 45, 85, 0.40);
   filter: brightness(1.04);
 }

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

 .tag:hover {
   transform: translateY(-1px);
   border-color: rgba(47, 107, 255, 0.30);
   background: rgba(47, 107, 255, 0.10);
 }

.empty {
  padding: 18px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
}

.button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 45, 85, 0.26);
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.14), rgba(47, 107, 255, 0.12));
  color: var(--text);
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
  will-change: transform;
}

.button:hover {
  border-color: rgba(255, 45, 85, 0.42);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0px);
  filter: brightness(0.95);
}

.team-card {
  grid-column: span 6;
  padding: 18px;
  text-decoration: none;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  will-change: transform;
}

.team-card:hover {
  border-color: rgba(47, 107, 255, 0.35);
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.12), var(--glass-2));
  transform: translateY(-2px);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42), 0 24px 90px rgba(47, 107, 255, 0.08);
}

.team-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.team-card__name {
  font-weight: 950;
  font-size: 18px;
}

.team-logo {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  object-fit: cover;
  flex: none;
  transition: transform 200ms ease, filter 200ms ease, border-color 200ms ease;
}

 a:hover .team-logo,
 .team-card:hover .team-logo,
 .card:hover .team-logo {
   transform: translateY(-1px) rotate(-2deg);
   filter: saturate(1.15);
   border-color: rgba(47, 107, 255, 0.22);
 }

.team-logo--lg {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.team-logo--xl {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.team-logo--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.16), rgba(47, 107, 255, 0.10));
  border-color: rgba(255, 45, 85, 0.22);
}

.team-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
}

.kpi__item {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 12px;
  background: rgba(5, 7, 12, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

 :root[data-theme="light"] .kpi__item {
   border: 1px solid rgba(10, 16, 32, 0.10);
   background: rgba(255, 255, 255, 0.42);
 }

.kpi__value {
  font-size: 22px;
  font-weight: 850;
  margin-top: 4px;
}

.stack {
  display: grid;
  gap: 6px;
}

.stack-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-weight: 700;
}

.input,
.select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(5, 7, 12, 0.35);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

:root[data-theme="light"] .input,
:root[data-theme="light"] .select {
  border: 1px solid rgba(10, 16, 32, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.input:focus,
.select:focus {
  border-color: rgba(255, 45, 85, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 45, 85, 0.14);
}

.select {
  appearance: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.grid--form {
  grid-template-columns: repeat(5, 1fr);
}

.notice {
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
}

.notice--error {
  border-color: rgba(255, 77, 109, 0.35);
  background: rgba(255, 77, 109, 0.10);
}

.check {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.bracket {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px;
}

.bracket-match {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

:root[data-theme="light"] .bracket-match {
  border: 1px solid rgba(10, 16, 32, 0.12);
  background: rgba(255, 255, 255, 0.70);
}

.bracket-label {
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.10), rgba(47, 107, 255, 0.08));
}

.bracket-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
}

.bracket-team + .bracket-team {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.seed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 45, 85, 0.25);
  background: rgba(255, 45, 85, 0.08);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  background: var(--footer-bg);
}

.theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid var(--toggle-border);
  background: var(--toggle-bg);
  color: var(--toggle-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  z-index: 30;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 45, 85, 0.38);
}

.theme-toggle__icon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__icon--sun {
  display: inline-flex;
}

:root[data-theme="light"] .theme-toggle__icon--moon {
  display: inline-flex;
}

.theme-orb {
  position: fixed;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  z-index: 40;
  pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(circle at 55% 60%, rgba(255, 45, 85, 0.22), transparent 62%),
    rgba(5, 7, 12, 0.35);
  border: 1px solid rgba(255, 45, 85, 0.22);
  box-shadow: 0 24px 90px rgba(255, 45, 85, 0.12), 0 18px 70px rgba(47, 107, 255, 0.12);
}

:root[data-theme="light"] .theme-orb {
  color: rgba(12, 18, 34, 0.95);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.70), transparent 55%),
    radial-gradient(circle at 55% 60%, rgba(255, 45, 85, 0.20), transparent 62%),
    rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(10, 16, 32, 0.16);
  box-shadow: 0 24px 90px rgba(47, 107, 255, 0.12), 0 18px 70px rgba(0, 0, 0, 0.10);
}

 .cursor-dot,
 .cursor-ring,
 .cursor-burst {
   position: fixed;
   left: 0;
   top: 0;
   transform: translate3d(var(--x, 0px), var(--y, 0px), 0) translate(-50%, -50%);
   pointer-events: none;
   z-index: 60;
   opacity: 0;
 }

 .cursor-dot {
   --s: 1;
   width: 8px;
   height: 8px;
   border-radius: 999px;
   background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.60), rgba(255, 45, 85, 0.85));
   box-shadow: 0 0 0 6px rgba(255, 45, 85, 0.10);
   transition: opacity 180ms ease, transform 160ms ease, filter 180ms ease;
   will-change: transform;
   transform: translate3d(var(--x, 0px), var(--y, 0px), 0) translate(-50%, -50%) scale(var(--s));
 }

 .cursor-ring {
   --s: 1;
   width: 34px;
   height: 34px;
   border-radius: 999px;
   border: 1px solid rgba(255, 45, 85, 0.40);
   background: radial-gradient(circle at 50% 50%, rgba(255, 45, 85, 0.10), rgba(47, 107, 255, 0.03));
   box-shadow: 0 18px 80px rgba(255, 45, 85, 0.10), 0 18px 80px rgba(47, 107, 255, 0.10);
   backdrop-filter: blur(8px);
   transition: opacity 180ms ease, width 180ms ease, height 180ms ease, border-color 180ms ease, background 180ms ease, filter 180ms ease;
   will-change: transform, width, height;
   transform: translate3d(var(--x, 0px), var(--y, 0px), 0) translate(-50%, -50%) scale(var(--s));
 }

 html.has-fancy-cursor .cursor-dot,
 html.has-fancy-cursor .cursor-ring {
   opacity: 1;
 }

 html.has-fancy-cursor.cursor-hover .cursor-dot {
   filter: brightness(1.12);
   --s: 1.35;
 }

 html.has-fancy-cursor.cursor-hover .cursor-ring {
   width: 46px;
   height: 46px;
   border-color: rgba(47, 107, 255, 0.44);
   background: radial-gradient(circle at 50% 50%, rgba(47, 107, 255, 0.12), rgba(255, 45, 85, 0.04));
 }

 html.has-fancy-cursor.cursor-down .cursor-dot {
   --s: 0.85;
   filter: brightness(0.95);
 }

 html.has-fancy-cursor.cursor-down .cursor-ring {
   width: 30px;
   height: 30px;
   filter: brightness(0.95);
 }

 html.has-fancy-cursor.cursor-text,
 html.has-fancy-cursor.cursor-text body {
   cursor: text;
 }

 html.has-fancy-cursor.cursor-text .cursor-dot,
 html.has-fancy-cursor.cursor-text .cursor-ring {
   opacity: 0;
 }

 html.has-fancy-cursor.cursor-hidden .cursor-dot,
 html.has-fancy-cursor.cursor-hidden .cursor-ring {
   opacity: 0;
 }

 .cursor-burst {
   width: 22px;
   height: 22px;
   border-radius: 999px;
   border: 1px solid rgba(255, 45, 85, 0.55);
   box-shadow: 0 22px 90px rgba(255, 45, 85, 0.12), 0 22px 90px rgba(47, 107, 255, 0.10);
 }

 html.is-loading {
   cursor: progress;
 }

 html.is-loading .nav__link,
 html.is-loading .brand {
   pointer-events: none;
 }

 body::before {
   content: "";
   position: fixed;
   left: 0;
   top: 0;
   height: 3px;
   width: 100%;
   transform: scaleX(0);
   transform-origin: 0% 50%;
   background: linear-gradient(90deg, rgba(47, 107, 255, 0.0), rgba(47, 107, 255, 0.9), rgba(255, 45, 85, 0.95), rgba(255, 45, 85, 0.0));
   opacity: 0;
   z-index: 50;
   filter: blur(0px);
   pointer-events: none;
 }

 html.is-loading body::before {
   opacity: 1;
   animation: vnhl-progress 850ms ease-in-out infinite;
 }

 #app-main.page-exit {
   animation: vnhl-page-exit 210ms ease forwards;
 }

 #app-main.page-enter {
   animation: vnhl-page-enter 360ms cubic-bezier(.2,.8,.2,1) both;
 }

 #app-main [data-animate="card"] {
   animation: vnhl-fade-up 520ms cubic-bezier(.2,.8,.2,1) both;
   animation-delay: var(--stagger, 0ms);
 }

 #app-main [data-animate="row"] {
   animation: vnhl-row-in 420ms cubic-bezier(.2,.8,.2,1) both;
   animation-delay: var(--stagger, 0ms);
 }

 @keyframes vnhl-page-enter {
   from {
     opacity: 0;
     transform: translateY(8px);
   }
   to {
     opacity: 1;
     transform: translateY(0px);
   }
 }

 @keyframes vnhl-page-exit {
   from {
     opacity: 1;
     transform: translateY(0px);
     filter: blur(0px);
   }
   to {
     opacity: 0;
     transform: translateY(-6px);
     filter: blur(1px);
   }
 }

 @keyframes vnhl-fade-up {
   from {
     opacity: 0;
     transform: translateY(10px);
   }
   to {
     opacity: 1;
     transform: translateY(0px);
   }
 }

 @keyframes vnhl-row-in {
   from {
     opacity: 0;
     transform: translateY(6px);
   }
   to {
     opacity: 1;
     transform: translateY(0px);
   }
 }

 @keyframes vnhl-progress {
   0% {
     transform: scaleX(0.08);
     filter: blur(0px);
   }
   45% {
     transform: scaleX(0.55);
     filter: blur(0px);
   }
   100% {
     transform: scaleX(0.92);
     filter: blur(0.3px);
   }
 }

 @media (prefers-reduced-motion: reduce) {
  #app-main.page-exit,
  #app-main.page-enter,
  #app-main [data-animate="card"],
  #app-main [data-animate="row"],
  html.is-loading body::before {
    animation: none;
  }

   body::before {
    display: none;
  }

  html.has-fancy-cursor,
  html.has-fancy-cursor body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

 ::view-transition-old(root),
 ::view-transition-new(root) {
   animation-duration: 360ms;
   animation-timing-function: cubic-bezier(.2,.8,.2,1);
 }

@media (max-width: 900px) {
  .grid > .card {
    grid-column: span 12;
  }

  .team-card {
    grid-column: span 12;
  }

  .bracket {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .topbar .container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .nav__link {
    white-space: nowrap;
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .kpi {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--form {
    grid-template-columns: repeat(2, 1fr);
  }

  .table th,
  .table td {
    padding: 10px 12px;
  }

  .table {
    min-width: 620px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .bg-web {
    opacity: 0.40;
  }

  html,
  body {
    font-size: 17px;
  }

  .theme-toggle {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }

  .bracket {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 12px;
  }

  .kpi {
    grid-template-columns: 1fr;
  }

  .grid--form {
    grid-template-columns: 1fr;
  }

  html,
  body {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-web {
    display: none;
  }

  .card,
  .button,
  .nav__link,
  .brand {
    transition: none;
  }
}
