:root {
  color-scheme: dark;
  --bg: #101214;
  --panel: #181b20;
  --panel-2: #20242b;
  --text: #f5f7fb;
  --muted: #aeb7c4;
  --accent: #19c37d;
  --accent-strong: #45d99b;
  --accent-2: #e9c46a;
  --danger: #ef476f;
  --line: #303640;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

main {
  flex: 1;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  gap: 12px;
  align-content: center;
  background: rgba(16, 18, 20, 0.92);
  color: var(--text);
  font-weight: 900;
}

.app-loader.hidden {
  display: none;
}

.app-loader-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(16, 18, 20, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav a.active,
.nav a:hover {
  color: var(--text);
}

.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.language-switcher button {
  min-width: 36px;
  border: 0;
  border-radius: 6px;
  padding: 6px 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button.active,
.language-switcher button:hover {
  background: var(--accent);
  color: #06130d;
}

.twitch-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin-left: 6px;
  padding: 3px 7px;
  border: 1px solid rgba(145, 71, 255, 0.5);
  border-radius: 6px;
  background: rgba(145, 71, 255, 0.16);
  color: #d9c4ff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.twitch-badge svg,
.commentator-mark svg,
.streamer-row svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.twitch-inline-badge {
  border-color: rgba(145, 71, 255, 0.45);
  background: rgba(145, 71, 255, 0.16);
  color: #d9c4ff;
}

.page {
  min-height: calc(100vh - 70px);
}

.hidden {
  display: none !important;
}

.landing {
  padding-bottom: 56px;
}

.hero {
  min-height: 74vh;
  display: flex;
  align-items: center;
  padding: clamp(36px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(16, 18, 20, 0.96), rgba(16, 18, 20, 0.58)),
    url("assets/hero-esports-monitor-final.png") center / cover;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 6.4rem);
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 5.6vw, 4.9rem);
}

h2 {
  font-size: 1.25rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  max-width: 680px;
  color: #e4e9f1;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span,
.home-timeline span {
  border: 1px solid rgba(233, 196, 106, 0.35);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(16, 18, 20, 0.46);
  color: #f2d88e;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-meta strong {
  margin-right: 5px;
  color: var(--text);
}

.hero-actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  margin-top: 0;
}

.toolbar-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  border: 1px solid rgba(174, 183, 196, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.toolbar-group.danger-zone {
  grid-column: auto;
  grid-template-columns: 1fr;
  justify-content: stretch;
  align-items: center;
  border-color: rgba(239, 71, 111, 0.32);
  background: rgba(239, 71, 111, 0.06);
}

.toolbar-label {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 0 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.team-count-control {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.team-count-control span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.team-count-control select {
  min-height: 38px;
  width: 100%;
  border-color: rgba(174, 183, 196, 0.28);
  background: rgba(16, 18, 20, 0.72);
  font-size: 0.86rem;
}

.toolbar-group .button {
  justify-self: stretch;
  min-width: 0;
  overflow: hidden;
  text-align: center;
}

.toolbar-group:nth-child(2) {
  grid-template-columns: minmax(180px, 1.35fr) minmax(110px, 1fr);
}

.toolbar-group.danger-zone .button {
  grid-column: 1 / -1;
}

.toolbar-group.danger-zone .toolbar-label {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 1px solid rgba(239, 71, 111, 0.28);
  padding: 0 0 10px;
}

.toolbar-group .button {
  min-height: 38px;
  min-width: 0;
  padding: 6px 10px;
  font-size: 0.82rem;
  line-height: 1.1;
  white-space: normal;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button.primary {
  background: var(--accent);
  box-shadow: 0 12px 26px rgba(25, 195, 125, 0.22);
  color: #07130e;
}

.button.primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.button.danger {
  background: rgba(239, 71, 111, 0.16);
  border-color: rgba(239, 71, 111, 0.45);
  color: #ffd8e1;
}

.button:disabled,
.button[aria-disabled="true"] {
  border-color: rgba(174, 183, 196, 0.24);
  background: rgba(174, 183, 196, 0.14);
  box-shadow: none;
  color: rgba(245, 247, 251, 0.42);
  cursor: not-allowed;
  transform: none;
}

.button.primary:disabled,
.button.primary[aria-disabled="true"] {
  border-color: rgba(174, 183, 196, 0.18);
  background: #2b3038;
  color: rgba(245, 247, 251, 0.42);
}

.button.is-loading {
  border-color: rgba(25, 195, 125, 0.42);
  background: rgba(25, 195, 125, 0.14);
  color: var(--accent-strong);
}

.button.is-loading::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin 0.75s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.button.compact {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.button.icon-button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.player-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.ip-match-details {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.ip-match-primary {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid rgba(174, 183, 196, 0.22);
  border-radius: 6px;
  background: rgba(8, 13, 22, 0.34);
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 800;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.ip-match-details dl {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0.4rem 0.7rem;
  margin: 0;
}

.ip-match-details dt {
  color: var(--muted);
  font-weight: 700;
}

.ip-match-details dd {
  margin: 0;
  min-width: 0;
}

.ip-match-details code {
  display: block;
  max-width: 100%;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.ip-match-details ul {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding-left: 1rem;
}

.team-player-actions {
  width: min(230px, 100%);
  display: grid;
  gap: 7px;
}

.team-player-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-player-actions-row .button {
  min-width: 0;
  flex: 0 0 auto;
}

.replacement-row {
  align-items: stretch;
}

.player-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(25, 195, 125, 0.34);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(25, 195, 125, 0.1);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.players-list-cell .player-status {
  justify-self: start;
  width: fit-content;
}

.player-status-stack {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.player-status.no_show {
  border-color: rgba(239, 71, 111, 0.42);
  background: rgba(239, 71, 111, 0.12);
  color: #ffc1ce;
}

.player-status.reserve {
  border-color: rgba(255, 209, 102, 0.42);
  background: rgba(255, 209, 102, 0.12);
  color: #ffe09a;
}

.player-status.ignored {
  border-color: rgba(142, 202, 230, 0.42);
  background: rgba(142, 202, 230, 0.12);
  color: #bde8ff;
}

.low-games-badge,
.ip-risk-badge,
.player-note-badge,
.discord-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 22px;
  width: fit-content;
  padding: 2px 7px;
  border: 1px solid rgba(255, 209, 102, 0.48);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.12);
  color: #ffe09a;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 8, 14, 0.72);
}

.modal-panel {
  width: min(760px, 100%);
  max-height: min(82vh, 720px);
  overflow-y: auto;
  border: 1px solid rgba(174, 183, 196, 0.2);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(174, 183, 196, 0.14);
}

.modal-header h3 {
  margin: 0.15rem 0 0;
  font-size: 1.1rem;
}

.ip-match-details-modal {
  padding: 18px 20px 20px;
  font-size: 0.86rem;
}

.player-note-badge,
.edit-player-note.has-note {
  border-color: rgba(142, 202, 230, 0.5);
  background: rgba(142, 202, 230, 0.12);
  color: #bde8ff;
}

.player-note-form {
  display: grid;
  gap: 14px;
}

.player-note-input {
  width: calc(100% - 40px);
  min-height: 180px;
  margin: 18px 20px 0;
  resize: vertical;
}

.player-note-empty {
  min-height: 1.2em;
  padding: 0 20px;
  color: var(--muted);
  font-size: 0.86rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 20px 20px;
}

@media (max-width: 640px) {
  .modal-backdrop {
    padding: 12px;
  }

  .modal-header {
    align-items: stretch;
    flex-direction: column;
  }

  .ip-match-details dl {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }
}

.ip-risk-badge {
  border-color: rgba(239, 71, 111, 0.48);
  background: rgba(239, 71, 111, 0.12);
  color: #ffc1ce;
}

.discord-status-badge.unresolved {
  border-color: rgba(174, 183, 196, 0.34);
  background: rgba(174, 183, 196, 0.1);
  color: #cbd3df;
}

.discord-status-badge.resolved {
  border-color: rgba(25, 195, 125, 0.45);
  background: rgba(25, 195, 125, 0.12);
  color: #9ff0c8;
}

.discord-status-badge.needs-review {
  border-color: rgba(255, 209, 102, 0.52);
  background: rgba(255, 209, 102, 0.13);
  color: #ffe09a;
}

.discord-status-badge svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: currentColor;
}

.player-row-warning td {
  background: rgba(239, 71, 111, 0.08);
}

.replacement-select {
  min-height: 34px;
  width: 100%;
  min-width: 0;
  padding: 0 30px 0 10px;
  background-position:
    calc(100% - 18px) 14px,
    calc(100% - 12px) 14px;
  font-size: 0.82rem;
}

.elo-input {
  width: 82px;
  min-height: 34px;
  padding: 6px 8px;
}

.discord-input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
}

.role-input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 30px 6px 8px;
  background-position:
    calc(100% - 18px) 14px,
    calc(100% - 12px) 14px;
}

.elo-inline-editor {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.elo-source {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
}

.elo-source.riot {
  color: var(--accent);
  border-color: rgba(67, 208, 139, 0.42);
}

.elo-source.manual {
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.42);
}

.elo-source.fallback {
  color: #ff9f9f;
  border-color: rgba(239, 71, 111, 0.42);
}

.players-list .elo-source {
  min-height: 22px;
  width: fit-content;
  padding: 2px 7px;
  font-size: 0.7rem;
  line-height: 1;
}

.elo-source.loading,
.elo-source.queued {
  color: #8ecae6;
  border-color: rgba(142, 202, 230, 0.5);
}

.elo-source.success {
  color: var(--accent);
  border-color: rgba(67, 208, 139, 0.42);
}

.elo-source.error {
  color: #ff9f9f;
  border-color: rgba(239, 71, 111, 0.42);
}

.content-band,
.page-heading,
.teams-toolbar,
.form-panel,
.admin-panel {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.content-band {
  padding: 42px 0 0;
}

.home-status-layout {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.home-status-flow {
  display: grid;
  gap: 18px;
}

.home-status {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 18px;
}

.home-status h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.home-status p:not(.eyebrow) {
  max-width: 760px;
  margin: 10px 0 0;
  color: #d7dee8;
}

.home-twitch-card {
  position: fixed;
  right: clamp(18px, 2.4vw, 42px);
  bottom: 22px;
  z-index: 40;
  isolation: isolate;
  overflow: hidden;
  display: none;
  gap: 14px;
  width: min(330px, calc(100vw - 36px));
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(145, 70, 255, 0.45), transparent 34%),
    linear-gradient(135deg, rgba(145, 70, 255, 0.24), rgba(25, 195, 125, 0.12) 64%, rgba(255, 255, 255, 0.045)),
    rgba(23, 18, 36, 0.9);
  box-shadow: 0 18px 44px rgba(6, 8, 13, 0.32);
}

.home-twitch-card.is-visible {
  display: grid;
}

.home-twitch-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.home-twitch-close:hover,
.home-twitch-close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.home-twitch-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 48%);
}

.home-twitch-card h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.home-twitch-copy {
  margin: 0;
  color: #ece7ff;
  line-height: 1.55;
}

.home-twitch-actions {
  display: grid;
  gap: 10px;
  align-items: start;
}

.home-twitch-actions .button {
  width: 100%;
  min-height: 42px;
  box-shadow: 0 12px 28px rgba(145, 70, 255, 0.22);
}

.home-twitch-secondary {
  color: #cdbdff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
}

.home-twitch-secondary:hover {
  color: #ffffff;
}

.home-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.home-timeline li {
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.home-timeline li.active {
  border-color: rgba(25, 195, 125, 0.48);
  background: rgba(25, 195, 125, 0.1);
}

.home-timeline li.completed {
  border-color: rgba(25, 195, 125, 0.22);
}

.home-timeline span {
  display: inline-flex;
  margin-bottom: 14px;
  background: var(--panel-2);
  color: var(--accent-2);
}

.home-timeline li.active span {
  background: rgba(25, 195, 125, 0.16);
  color: var(--accent-strong);
}

.home-timeline li.completed span {
  color: #98d9bd;
}

.home-timeline strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.home-timeline li.completed strong {
  color: #d9efe5;
}

.register-page {
  display: grid;
  align-items: center;
  padding: clamp(34px, 6vw, 74px) 0;
}

.register-layout {
  width: min(1280px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: clamp(22px, 3vw, 40px);
  align-items: start;
  margin: 0 auto;
}

.info-grid,
.teams-grid {
  display: grid;
  gap: 16px;
}

.info-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.teams-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
}

#adminTeams {
  grid-template-columns: 1fr;
}

article,
.team-card,
.form-panel,
.admin-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

article {
  padding: 24px;
}

article a {
  color: var(--accent);
  font-weight: 800;
}

.home-process {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(18px, 4vw, 44px);
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.home-process h2 {
  max-width: 440px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.home-process ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-process li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.home-process li > span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(25, 195, 125, 0.42);
  border-radius: 50%;
  background: rgba(25, 195, 125, 0.1);
  color: var(--accent-strong);
  font-weight: 900;
}

.home-process strong {
  color: var(--text);
}

.home-process p {
  margin: 6px 0 0;
}

.icon {
  display: inline-flex;
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.page-heading {
  padding: 54px 0 22px;
}

.page-heading h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.admin-rules-heading {
  display: grid;
  gap: 18px;
}

.back-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.back-link span[aria-hidden="true"] {
  font-size: 1.05rem;
}

.back-link:hover,
.back-link:focus-visible {
  border-color: rgba(25, 195, 125, 0.42);
  color: var(--accent-strong);
  outline: none;
}

.register-heading {
  width: 100%;
  padding: 0;
}

.register-heading h1 {
  max-width: 780px;
}

.register-heading p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: #d7dee8;
  font-size: 1.08rem;
}

.registration-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.registration-notes span {
  border: 1px solid rgba(233, 196, 106, 0.35);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(233, 196, 106, 0.08);
  color: #f2d88e;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.tournament-timeline {
  width: min(1280px, calc(100% - 36px));
  margin: clamp(28px, 5vw, 54px) auto 0;
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 4vw, 38px);
}

.timeline-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.timeline-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.timeline-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: #d7dee8;
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.timeline-item.active {
  border-color: rgba(25, 195, 125, 0.48);
  background: rgba(25, 195, 125, 0.1);
}

.timeline-item.completed {
  border-color: rgba(25, 195, 125, 0.22);
}

.timeline-item.completed h3 {
  color: #d9efe5;
}

.timeline-date {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--panel-2);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
}

.timeline-item.active .timeline-date {
  background: rgba(25, 195, 125, 0.16);
  color: var(--accent-strong);
}

.timeline-item.completed .timeline-date {
  color: #98d9bd;
}

.timeline-item h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

.timeline-item p {
  margin: 10px 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.timeline-debug {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.timeline-debug span {
  font-weight: 800;
}

.timeline-debug button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.timeline-debug button:hover,
.timeline-debug button.active {
  border-color: rgba(25, 195, 125, 0.42);
  color: var(--accent-strong);
}

.form-panel,
.admin-panel {
  padding: 24px;
}

.form-panel {
  display: grid;
  gap: 18px;
  max-width: 620px;
}

.registration-panel {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(22px, 3vw, 30px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--panel);
}

.form-panel.compact {
  max-width: 460px;
}

label {
  display: grid;
  gap: 8px;
  color: #dde3ec;
  font-weight: 800;
}

.field-group {
  display: grid;
  gap: 6px;
}

.field-label {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.field-hint {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

input,
select,
textarea {
  min-height: 50px;
  width: 100%;
  border: 1px solid #3a414d;
  border-radius: 8px;
  padding: 0 14px;
  background-color: #11151b;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  outline: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input::placeholder {
  color: #748092;
  font-weight: 600;
}

textarea {
  min-height: 280px;
  padding: 14px;
  line-height: 1.5;
  resize: vertical;
}

.input-clear-wrap {
  position: relative;
}

.input-clear-wrap input {
  padding-right: 40px;
}

.input-clear-wrap[data-validation="checking"] input,
.input-clear-wrap[data-validation="valid"] input,
.input-clear-wrap[data-validation="warning"] input,
.input-clear-wrap[data-validation="invalid"] input {
  padding-right: 70px;
}

.input-clear-wrap[data-validation="invalid"] input {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 71, 111, 0.14);
}

.input-clear-wrap[data-validation="warning"] input {
  border-color: rgba(255, 209, 102, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.14);
}

.input-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8d98a8;
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-50%);
}

.input-clear-wrap.has-value .input-clear {
  display: inline-flex;
}

.field-status-icon {
  position: absolute;
  top: 50%;
  right: 40px;
  display: none;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}

.input-clear-wrap[data-validation="valid"] .field-status-icon,
.input-clear-wrap[data-validation="checking"] .field-status-icon {
  display: inline-flex;
}

.input-clear-wrap[data-validation="checking"] .field-status-icon {
  border: 2px solid rgba(174, 183, 196, 0.26);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: field-status-spin 800ms linear infinite;
}

.field-error-tooltip {
  justify-self: start;
  max-width: 100%;
  border: 1px solid rgba(239, 71, 111, 0.34);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(239, 71, 111, 0.11);
  color: #ffc1ce;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.field-error-tooltip.warning {
  border-color: rgba(255, 209, 102, 0.42);
  background: rgba(255, 209, 102, 0.12);
  color: #ffe09a;
}

@keyframes field-status-spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.input-clear:hover,
.input-clear:focus-visible {
  color: var(--text);
  outline: none;
}

.input-clear:focus-visible {
  box-shadow: 0 0 0 2px rgba(25, 195, 125, 0.24);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #4b5665;
  background-color: #131820;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(25, 195, 125, 0.16);
}

input:disabled,
select:disabled,
textarea:disabled {
  border-color: rgba(174, 183, 196, 0.16);
  background-color: rgba(174, 183, 196, 0.08);
  color: rgba(245, 247, 251, 0.42);
  cursor: not-allowed;
}

select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #aeb7c4 50%),
    linear-gradient(135deg, #aeb7c4 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 22px,
    calc(100% - 16px) 22px;
  background-repeat: no-repeat;
  background-size:
    6px 6px,
    6px 6px;
  cursor: pointer;
}

.registration-submit {
  min-height: 52px;
  margin-top: 4px;
  font-size: 1rem;
}

.form-message {
  min-height: 24px;
  margin: 0;
}

.form-message.checking {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.form-message.checking::before {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(174, 183, 196, 0.26);
  border-top-color: var(--accent);
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  animation: form-message-spin 800ms linear infinite;
}

@keyframes form-message-spin {
  to {
    transform: rotate(360deg);
  }
}

.registration-discord-invite {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: min(430px, calc(100vw - 36px));
  display: grid;
  gap: 16px;
  border: 1px solid rgba(233, 196, 106, 0.48);
  border-radius: 8px;
  padding: 16px;
  background: rgba(17, 20, 25, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.registration-discord-invite-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.registration-discord-invite-icon {
  width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(88, 101, 242, 0.55);
  border-radius: 8px;
  background: rgba(88, 101, 242, 0.16);
  color: #c8ceff;
  line-height: 1;
}

.registration-discord-invite-icon svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: currentColor;
}

.registration-discord-invite h2 {
  font-size: 1rem;
  line-height: 1.25;
}

.registration-discord-invite p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.registration-discord-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.registration-discord-invite-actions .button {
  min-width: 0;
  flex: 1 1 150px;
}

.admin-panel {
  margin-top: 22px;
}

.admin-bracket-panel {
  width: min(1780px, calc(100% - 36px));
  padding: 18px;
  overflow: visible;
}

.admin-bracket-panel .rules-editor-actions {
  margin-bottom: 8px;
}

.admin-bracket-view .bracket-scroll {
  padding-bottom: 110px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.stats span,
.balance-summary span,
.role-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.role-label {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  gap: 6px;
  white-space: nowrap;
}

.role-label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

.admin-section {
  margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-heading p {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.riot-id-input {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
}

.player-id-editor {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.player-id-editor .player-opgg-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-network-status {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(69, 217, 155, 0.42);
  border-radius: 999px;
  background: rgba(24, 27, 32, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-network-status.hidden {
  display: none;
}

.admin-network-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-strong);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.tournament-codes-list {
  display: grid;
  gap: 10px;
  border: 0;
  overflow: visible;
}

.tournament-code-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--panel-2), rgba(17, 20, 25, 0.86));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.tournament-code-card-header,
.tournament-code-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tournament-code-card-header code {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.92rem;
}

.tournament-code-status {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-sent .tournament-code-status { border-color: rgba(67, 208, 139, 0.45); color: var(--accent); }
.status-failed .tournament-code-status { border-color: rgba(255, 107, 107, 0.45); color: var(--danger); }
.status-assigned .tournament-code-status { border-color: rgba(245, 190, 66, 0.45); color: #f5be42; }

.tournament-code-card-meta {
  align-items: flex-start;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.tournament-code-card-meta strong {
  color: var(--text);
  text-align: right;
}

.tournament-code-error {
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 0.82rem;
}

.table-controls,
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #111419;
}

.table-controls {
  border-bottom: 1px solid var(--line);
}

.players-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #111419;
}

.players-summary-pill,
.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.players-summary-pill {
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--panel-2);
}

button.players-summary-pill,
.table-sort-button {
  cursor: pointer;
}

button.players-summary-pill:hover,
button.players-summary-pill:focus-visible,
button.players-summary-pill.active,
.table-sort-button:hover,
.table-sort-button:focus-visible,
.table-sort-button.active {
  border-color: rgba(67, 208, 139, 0.45);
  color: var(--text);
  outline: none;
}

.players-summary-pill strong {
  color: var(--text);
}

.table-sort-button {
  min-height: 28px;
  border-radius: 7px;
  padding: 3px 7px;
  background: transparent;
  text-transform: uppercase;
}

.table-search {
  width: min(420px, 100%);
  gap: 6px;
  font-size: 0.82rem;
}

.table-search input {
  min-height: 38px;
}

.teams-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}

.table-count,
.pagination span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.players-list {
  min-width: 0;
  background: #111419;
}

.players-list-header,
.players-list-row {
  display: grid;
  grid-template-columns:
    minmax(140px, 1.15fr)
    minmax(92px, 0.7fr)
    minmax(130px, 1fr)
    minmax(58px, 0.45fr)
    minmax(134px, 0.85fr)
    minmax(220px, 1.25fr);
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.players-list-header {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.players-list-cell {
  min-width: 0;
  display: grid;
  gap: 4px;
  align-items: center;
}

.player-main-cell strong,
.truncate-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-label {
  display: none;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.players-actions-cell {
  justify-items: start;
}

.pagination {
  border-top: 1px solid var(--line);
}

.data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #111419;
}

.compact-data-table {
  min-width: 560px;
}

.players-data-table {
  min-width: 0;
  table-layout: fixed;
}

.players-data-table th:nth-child(1),
.players-data-table td:nth-child(1) {
  width: 23%;
}

.players-data-table th:nth-child(2),
.players-data-table td:nth-child(2) {
  width: 12%;
}

.players-data-table th:nth-child(3),
.players-data-table td:nth-child(3) {
  width: 21%;
}

.players-data-table th:nth-child(4),
.players-data-table td:nth-child(4) {
  width: 8%;
}

.players-data-table th:nth-child(5),
.players-data-table td:nth-child(5) {
  width: 15%;
}

.players-data-table th:nth-child(6),
.players-data-table td:nth-child(6) {
  width: 21%;
}

.players-data-table th,
.players-data-table td {
  padding: 10px 8px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.players-data-table td {
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.balance-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.team-card {
  overflow: hidden;
}

.team-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.team-card h2 {
  font-size: 1.05rem;
}

.team-opgg-link,
.player-opgg-link {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: inherit;
  text-decoration: none;
}

.team-opgg-link:hover,
.team-opgg-link:focus-visible,
.player-opgg-link:hover,
.player-opgg-link:focus-visible {
  color: var(--text);
  text-decoration: underline;
  outline: none;
}

.external-link-mark {
  flex: 0 0 auto;
  color: currentColor;
  font-size: 0.82em;
  line-height: 1;
}

.team-card table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

#adminTeams .team-card {
  overflow-x: auto;
}

#adminTeams .team-card table {
  min-width: 760px;
}

.admin-team-card {
  overflow: hidden;
}

.admin-team-header {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.admin-team-header[aria-expanded="false"] {
  border-bottom: 0;
}

.admin-team-header:hover,
.admin-team-header:focus-visible {
  background: #252b34;
  outline: none;
}

.admin-team-title {
  min-width: 0;
  overflow: hidden;
  font-size: 1.05rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-team-meta {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-team-chevron {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  font-weight: 900;
}

.team-card th:nth-child(1),
.team-card td:nth-child(1) {
  width: 34%;
}

.team-card th:nth-child(2),
.team-card td:nth-child(2) {
  width: 16%;
  white-space: nowrap;
}

.team-card th:nth-child(3),
.team-card td:nth-child(3) {
  width: 24%;
}

.team-card th:nth-child(4),
.team-card td:nth-child(4) {
  width: 10%;
}

#adminTeams .team-card th:nth-child(5),
#adminTeams .team-card td:nth-child(5) {
  width: 230px;
}

.team-card th,
.team-card td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.team-card th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.nowrap-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nowrap-cell:has(.discord-copy.is-copied) {
  position: relative;
  z-index: 4;
  overflow: visible;
}

.discord-copy {
  position: relative;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-copy:hover,
.discord-copy:focus-visible {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.discord-copy.is-copied {
  overflow: visible;
}

.discord-copy.is-copied::after {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 2;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  color: var(--text);
  content: "Скопійовано";
  font-size: 0.72rem;
  line-height: 1;
  pointer-events: none;
  transform: translateX(-50%);
  white-space: nowrap;
}

.discord-copy.is-copied::before {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  z-index: 3;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  content: "";
  pointer-events: none;
  transform: translateX(-50%) rotate(45deg);
}

.elo-cell {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.team-player-match td {
  background: rgba(25, 195, 125, 0.1);
}

.admin-teams-toggle {
  margin-bottom: 14px;
}

.admin-teams-action {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(67, 208, 139, 0.42);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(25, 195, 125, 0.1);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-teams-action:hover {
  background: rgba(25, 195, 125, 0.16);
  border-color: rgba(67, 208, 139, 0.68);
}

.admin-teams-action-main {
  font-weight: 900;
}

.admin-teams-action-meta {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-teams-action-icon {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 900;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.tournament-bracket-page {
  padding-bottom: 48px;
}

.tournament-bracket-page .page-heading p:not(.eyebrow) {
  max-width: 720px;
}

.bracket-view {
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
}

.bracket-champion {
  margin-bottom: 16px;
  border: 1px solid rgba(233, 196, 106, 0.42);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(233, 196, 106, 0.1);
  color: #f2d88e;
  font-weight: 900;
}

.bracket-champion strong {
  color: var(--text);
}

.bracket-rounds {
  display: grid;
  grid-template-columns: repeat(var(--round-count), minmax(360px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.bracket-scroll {
  width: 100%;
  overflow: visible;
  padding: 14px 0 72px;
}

.admin-bracket-view {
  width: 100%;
  margin-top: 18px;
}

.bracket-stage {
  position: relative;
  margin: 0 auto;
}

.bracket-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.bracket-lines path {
  fill: none;
  stroke: rgba(25, 195, 125, 0.52);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.bracket-round-title {
  position: absolute;
  width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket-round {
  min-width: 360px;
}

.bracket-round h2 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket-round-matches {
  display: grid;
  gap: 14px;
}

.bracket-match {
  display: grid;
  gap: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}

.bracket-match header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  background: var(--panel-2);
}

.bracket-match header span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.bracket-match header strong {
  border: 1px solid rgba(25, 195, 125, 0.34);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(25, 195, 125, 0.1);
  color: var(--accent-strong);
  font-size: 0.76rem;
}

.bracket-match-streamers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bracket-match-indicators {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  margin-left: 4px;
  color: var(--muted);
  font-size: inherit;
}

.bracket-match header {
  justify-content: flex-start;
}

.bracket-match header > strong {
  margin-left: auto;
}

.bracket-match header > span:first-child {
  font-size: 0.86rem;
}

.bracket-streamer-link {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(145, 71, 255, 0.55);
  border-radius: 6px;
  background: rgba(145, 71, 255, 0.18);
  color: #d9c4ff;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.bracket-streamer-link:hover,
.bracket-streamer-link:focus-visible {
  border-color: #b98cff;
  background: rgba(145, 71, 255, 0.34);
  color: #fff;
  outline: none;
}

.bracket-streamer-link svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.bracket-caster-trigger {
  position: static;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(233, 196, 106, 0.5);
  border-radius: 6px;
  padding: 0;
  background: rgba(233, 196, 106, 0.1);
  color: #e9c46a;
  cursor: pointer;
  text-decoration: none;
}

.bracket-caster-trigger.is-assigned {
  border-color: rgba(233, 196, 106, 0.72);
  background: rgba(233, 196, 106, 0.18);
  color: #f2d88e;
}

.bracket-caster-trigger:hover,
.bracket-caster-trigger:focus-visible {
  border-color: #f2d88e;
  background: rgba(233, 196, 106, 0.32);
  color: #fff;
  outline: none;
}

.bracket-caster-trigger svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.bracket-match,
.bracket-match header {
  overflow: visible;
}

.bracket-caster-dialog {
  width: min(360px, calc(100vw - 32px));
  border: 1px solid rgba(145, 71, 255, 0.48);
  border-radius: 10px;
  padding: 0;
  background: #18141f;
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.bracket-caster-dialog::backdrop {
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(3px);
}

.bracket-caster-dialog form {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.bracket-caster-dialog header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.bracket-caster-dialog header span,
.bracket-caster-dialog-field > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket-caster-dialog h2 {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

.bracket-caster-dialog-close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}

.bracket-caster-dialog-field {
  display: grid;
  gap: 7px;
}

.bracket-caster-options {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 2px;
}

.bracket-caster-option {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(145, 71, 255, 0.28);
  border-radius: 6px;
  padding: 9px 10px;
  background: rgba(145, 71, 255, 0.08);
  color: #f1eaff;
  cursor: pointer;
}

.bracket-caster-option:has(input:checked) {
  border-color: rgba(233, 196, 106, 0.65);
  background: rgba(233, 196, 106, 0.14);
}

.bracket-caster-option input {
  appearance: none;
  flex: 0 0 16px;
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid rgba(233, 196, 106, 0.62);
  border-radius: 4px;
  padding: 0;
  background: #21182d;
  accent-color: #e9c46a;
}

.bracket-caster-option input:checked {
  background: #e9c46a;
  box-shadow: inset 0 0 0 3px #21182d;
}

.bracket-caster-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-caster-empty {
  color: var(--muted);
  font-size: 0.84rem;
}

.bracket-caster-dialog-select {
  width: 100%;
  border: 1px solid rgba(145, 71, 255, 0.5);
  border-radius: 6px;
  padding: 9px 10px;
  background: #21182d;
  color: #f1eaff;
  font: inherit;
}

.bracket-caster-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.bracket-match-caster,
.bracket-caster-control {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 6px 10px;
  background: #0d1014;
}

.bracket-match-caster a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d9c4ff;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.bracket-match-caster a:hover,
.bracket-match-caster a:focus-visible {
  color: #fff;
  outline: none;
}

.bracket-match-caster svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.bracket-caster-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(174, 183, 196, 0.2);
}

.bracket-caster-control > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bracket-caster-select {
  min-width: 0;
  border: 1px solid rgba(145, 71, 255, 0.42);
  border-radius: 5px;
  padding: 4px 7px;
  background: rgba(145, 71, 255, 0.1);
  color: #d9c4ff;
  font: inherit;
  font-size: 0.72rem;
}

.bracket-caster-select:focus-visible {
  border-color: #b98cff;
  outline: 2px solid rgba(185, 140, 255, 0.28);
  outline-offset: 1px;
}

.bracket-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 0 14px;
}

.bracket-side {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.bracket-vs {
  align-self: center;
  border: 1px solid rgba(233, 196, 106, 0.35);
  border-radius: 999px;
  padding: 5px 7px;
  background: rgba(233, 196, 106, 0.08);
  color: #f2d88e;
  font-size: 0.72rem;
  font-weight: 900;
}

.bracket-team {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #111419;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.bracket-team:hover,
.bracket-team:focus-visible {
  border-color: rgba(25, 195, 125, 0.48);
  outline: none;
}

.bracket-team:disabled {
  cursor: default;
}

.bracket-team:disabled:not(.winner) {
  color: #d7dee8;
}

.bracket-team.winner {
  border-color: rgba(25, 195, 125, 0.62);
  background: rgba(25, 195, 125, 0.12);
}

.bracket-team-empty {
  color: var(--muted);
  cursor: default;
}

.bracket-team-name {
  min-width: 0;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-team-score {
  min-width: 18px;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 950;
  text-align: center;
}

.bracket-team-elo {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.bracket-roster {
  min-height: 142px;
  display: grid;
  gap: 4px;
  margin: 0;
  border: 1px solid rgba(174, 183, 196, 0.14);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.025);
  list-style: none;
}

.bracket-roster-empty {
  align-content: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.bracket-roster li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  color: #d7dee8;
  font-size: 0.82rem;
  line-height: 1.25;
}

.bracket-roster li span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-roster li span:last-child {
  color: var(--muted);
  font-weight: 800;
}

.bracket-match-status {
  min-height: 36px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 9px 14px 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.bracket-view {
  width: min(1780px, calc(100% - 36px));
}

.bracket-rounds {
  --match-height: 104px;
  --match-gap: 26px;
  --match-step: calc(var(--match-height) + var(--match-gap));
  grid-template-columns: repeat(var(--round-count), minmax(300px, 1fr));
  gap: 56px;
  min-height: calc(var(--first-round-matches) * var(--match-step) + 72px);
  height: calc(var(--first-round-matches) * var(--match-step) + 72px);
  overflow-y: hidden;
  padding: 14px 28px 18px 0;
  position: relative;
}

.bracket-round {
  min-width: 300px;
  position: relative;
}

.bracket-round-matches {
  height: calc(var(--first-round-matches) * var(--match-step) + 72px);
  min-height: 0;
  position: relative;
}

.bracket-match {
  position: absolute;
  width: 330px;
  gap: 0;
  border: 1px solid rgba(174, 183, 196, 0.34);
  border-radius: 4px;
  background: #0d1014;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  z-index: 1;
  height: 102px;
}

.bracket-match:has(.bracket-games) {
  height: 246px;
}

.bracket-match:has(.bracket-caster-control),
.bracket-match:has(.bracket-match-caster) {
  height: 146px;
}

.bracket-match:has(.bracket-games):has(.bracket-caster-control) {
  height: 286px;
}

.bracket-match:has(.bracket-games):has(.bracket-match-caster) {
  height: 280px;
}

.bracket-match,
.bracket-match header {
  overflow: visible;
}

.bracket-games {
  display: grid;
  gap: 5px;
  padding: 7px 8px 8px;
  border-bottom: 1px solid rgba(174, 183, 196, 0.34);
  background: #0d1014;
}

.bracket-game {
  display: grid;
  grid-template-columns: 42px 1fr 1fr;
  gap: 6px;
  align-items: center;
  min-height: 30px;
}

.bracket-game > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.bracket-game-team {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(174, 183, 196, 0.24);
  border-radius: 3px;
  min-height: 28px;
  padding: 4px 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.bracket-game-team:hover,
.bracket-game-team.winner {
  border-color: rgba(25, 195, 125, 0.62);
  background: rgba(25, 195, 125, 0.12);
  color: var(--accent-strong);
}

.bracket-game-team:disabled {
  cursor: default;
  opacity: 0.42;
}

.bracket-game-team:disabled.winner {
  opacity: 1;
}

.bracket-round:not(:last-child) .bracket-match::after,
.bracket-round:not(:last-child) .bracket-match::before {
  display: none;
}

.bracket-round:not(:last-child) .bracket-match::after {
  position: absolute;
  top: calc(50% + 20px);
  right: -56px;
  width: 56px;
  height: 2px;
  background: rgba(25, 195, 125, 0.46);
  content: "";
  z-index: 0;
}

.bracket-round:not(:last-child) .bracket-match::before {
  position: absolute;
  right: -56px;
  width: 2px;
  background: rgba(25, 195, 125, 0.46);
  content: "";
  z-index: 0;
}

.bracket-round:not(:last-child) .bracket-match:nth-child(odd)::before {
  top: calc(50% + 20px);
  height: calc(50% + 38px);
}

.bracket-round:not(:last-child) .bracket-match:nth-child(even)::before {
  bottom: calc(50% - 20px);
  height: calc(50% + 38px);
}

.bracket-round:nth-last-child(2) .bracket-match:nth-child(odd)::before {
  height: calc(100% + 96px);
}

.bracket-round:nth-last-child(2) .bracket-match:nth-child(even)::before {
  height: calc(100% + 96px);
}

.bracket-round:not(:last-child) .bracket-match:only-child::before {
  display: none;
}

.bracket-round:last-child .bracket-match {
  align-self: center;
}

.bracket-match header,
.bracket-pair,
.bracket-match-status {
  width: 100%;
  background: #0d1014;
  position: relative;
  z-index: 2;
}

.bracket-match header {
  border: 0;
  border-bottom: 1px solid rgba(174, 183, 196, 0.34);
  min-height: 30px;
  padding: 6px 10px 5px 12px;
  background: #0d1014;
}

.bracket-match header span {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.bracket-match header strong {
  font-size: 0.72rem;
}

.bracket-pair {
  display: grid;
  border-bottom: 1px solid rgba(174, 183, 196, 0.34);
  position: relative;
}

.bracket-team {
  min-height: 36px;
  grid-template-columns: minmax(0, 1fr);
  border: 0;
  border-bottom: 1px solid rgba(174, 183, 196, 0.34);
  border-radius: 0;
  padding: 0 14px;
  background: transparent;
  color: #d7dee8;
}

.bracket-match .bracket-team {
  grid-template-columns: minmax(0, 1fr) auto;
}

.bracket-match .bracket-team-score {
  justify-self: end;
  line-height: 1;
}

.bracket-team:last-child {
  border-bottom: 0;
}

.bracket-team:hover,
.bracket-team:focus-visible {
  background: rgba(25, 195, 125, 0.14);
  box-shadow: inset 3px 0 0 var(--accent);
  color: var(--text);
}

.bracket-team:disabled:hover {
  background: transparent;
  box-shadow: none;
}

.bracket-team.winner {
  border-color: rgba(174, 183, 196, 0.34);
  background: rgba(25, 195, 125, 0.12);
  box-shadow: inset 3px 0 0 var(--accent);
  color: var(--accent-strong);
}

.bracket-view:not(.admin-bracket-view) .bracket-team:hover,
.bracket-view:not(.admin-bracket-view) .bracket-team:focus-visible {
  background: rgba(25, 195, 125, 0.14);
  box-shadow: inset 3px 0 0 var(--accent);
  color: var(--text);
}

.bracket-view:not(.admin-bracket-view) .bracket-team.winner {
  background: rgba(25, 195, 125, 0.12);
  box-shadow: inset 3px 0 0 var(--accent);
  color: var(--accent-strong);
}

.bracket-view:not(.admin-bracket-view) .bracket-team.selected {
  background: rgba(233, 196, 106, 0.14);
  box-shadow: inset 3px 0 0 #f2d88e;
  color: var(--text);
}

.bracket-team-name {
  font-size: clamp(0.95rem, 1.1vw, 1.18rem);
  font-weight: 950;
  line-height: 1.1;
}

.bracket-match-status {
  min-height: 20px;
  border-top: 0;
  padding: 6px 0 0;
  font-size: 0.74rem;
}

.bracket-team-panel {
  position: fixed;
  top: 96px;
  right: 18px;
  z-index: 30;
  width: min(360px, calc(100vw - 36px));
  max-height: calc(100vh - 124px);
  overflow: auto;
  border: 1px solid rgba(174, 183, 196, 0.22);
  border-radius: 8px;
  background: rgba(17, 20, 25, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.bracket-team-panel-inner {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.bracket-team-panel header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.bracket-team-panel header span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket-team-panel h2 {
  margin: 3px 0 0;
  font-size: 1.25rem;
  line-height: 1.1;
}

.bracket-team-panel-close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 0 2px;
}

.bracket-team-panel-close:hover,
.bracket-team-panel-close:focus-visible {
  border-color: rgba(25, 195, 125, 0.48);
  outline: none;
}

.bracket-team-panel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(174, 183, 196, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.035);
}

.bracket-team-panel-meta strong {
  color: #f2d88e;
}

.bracket-team-panel-meta a {
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: none;
}

.bracket-team-panel-roster {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bracket-team-panel-roster li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(174, 183, 196, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.025);
}

.bracket-team-panel-roster span,
.bracket-team-panel-roster strong,
.bracket-team-panel-roster small {
  min-width: 0;
}

.bracket-team-panel-roster li > span {
  display: flex;
  align-items: center;
  min-width: 0;
}

.bracket-team-panel-roster strong {
  min-width: 0;
  flex: 1;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-roster-twitch {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  place-items: center;
  border-radius: 5px;
  color: #b98cff;
  vertical-align: middle;
}

.bracket-roster-twitch:hover,
.bracket-roster-twitch:focus-visible {
  background: rgba(145, 71, 255, 0.18);
  color: #d9c4ff;
  outline: none;
}

.bracket-roster-twitch svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.bracket-team-panel-roster b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(174, 183, 196, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.bracket-team-panel-roster img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

@media (max-width: 760px) {
  .bracket-team-panel {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-height: min(62vh, 460px);
  }
}

.legal-page {
  padding: clamp(42px, 7vw, 84px) 0;
}

.legal-layout {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
}

.legal-layout h1 {
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.legal-updated {
  margin: 14px 0 34px;
  color: #d7dee8;
  font-weight: 700;
}

.legal-home-link {
  margin: -12px 0 32px;
}

.legal-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  font-size: 1.18rem;
}

.legal-section p {
  margin: 10px 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0d0f12;
}

.footer-inner {
  width: min(1120px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 0 auto;
  padding: 22px 0;
}

.footer-inner p {
  margin: 0;
  font-size: 0.88rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a.active {
  color: var(--accent-strong);
}

.footer-disclaimer {
  text-align: right;
}

.rules-editor {
  display: grid;
  gap: 14px;
}

.rules-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rules-editor-actions .button {
  min-height: 44px;
  font-size: 0.94rem;
  line-height: 1;
}

.timeline-stage-editor {
  display: grid;
  gap: 16px;
}

.timeline-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.timeline-datetime-field {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(112px, 0.65fr);
  gap: 10px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.timeline-datetime-field legend {
  padding: 0 6px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
}

.timeline-datetime-field label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.timeline-datetime-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.timeline-datetime-field input {
  width: 100%;
  min-width: 0;
  height: 42px;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .home-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-process {
    grid-template-columns: 1fr;
  }

  .timeline-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-date-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 112px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-twitch-card {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 14px;
  }

  .home-twitch-card .eyebrow,
  .home-twitch-secondary {
    display: none;
  }

  .home-twitch-card h2 {
    font-size: 1rem;
  }

  .home-twitch-copy {
    grid-column: 1;
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .home-twitch-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .home-twitch-actions .button {
    width: auto;
    min-height: 38px;
    padding: 0 14px;
    white-space: nowrap;
  }

  .hero {
    min-height: 68vh;
  }

  .hero-meta span {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .register-page {
    align-items: start;
    padding-top: 32px;
  }

  .register-layout {
    grid-template-columns: 1fr;
  }

  .register-heading p:not(.eyebrow),
  .register-heading h1 {
    max-width: none;
  }

  .home-timeline {
    grid-template-columns: 1fr;
  }

  .home-timeline li {
    min-height: auto;
  }

  .timeline-list {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    min-height: auto;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .bracket-rounds {
    grid-template-columns: repeat(var(--round-count), minmax(240px, 1fr));
    overflow-x: auto;
  }

  .bracket-round {
    min-width: 240px;
  }

  .bracket-scroll {
    overflow-x: auto;
    overflow-y: visible;
  }

  .table-controls,
  .pagination,
  .teams-toolbar,
  .toolbar-group {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar {
    flex-direction: column;
  }

  .toolbar-group {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .toolbar-label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 8px;
  }

  .toolbar-group .button:nth-child(n + 3) {
    grid-column: 1;
  }

  .teams-grid {
    grid-template-columns: 1fr;
  }

  .admin-teams-toggle {
    margin-bottom: 12px;
  }

  .admin-teams-action {
    grid-template-columns: 1fr auto;
  }

  .admin-teams-action-meta {
    grid-column: 1 / -1;
  }

  .admin-team-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-team-meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .admin-team-chevron {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .data-table {
    min-width: 760px;
  }

  .players-data-table th,
  .players-data-table td {
    padding: 9px 7px;
  }

  .players-data-table {
    min-width: 620px;
  }

  .players-list-header {
    display: none;
  }

  .players-list-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 14px 12px;
  }

  .players-list-cell {
    align-content: start;
  }

  .player-main-cell,
  .players-actions-cell {
    grid-column: 1 / -1;
  }

  .cell-label {
    display: inline;
  }

  .players-actions-cell {
    justify-items: stretch;
  }

  .players-actions-cell .player-actions {
    justify-content: start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-nav {
    justify-content: flex-start;
  }

.footer-disclaimer {
    text-align: left;
  }
}

.dashboard-page {
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 72px);
}

.dashboard-view {
  display: grid;
  gap: 24px;
}

.dashboard-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-stats article,
.dashboard-section {
  border: 1px solid rgba(174, 183, 196, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-stats article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.dashboard-stats span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-stats strong {
  font-size: 2.1rem;
  line-height: 1;
}

.dashboard-section {
  padding: clamp(18px, 3vw, 28px);
}

.dashboard-compact-section {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 236px;
}

.dashboard-empty-section {
  grid-template-rows: auto minmax(0, 1fr);
}

.dashboard-feature-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(174, 183, 196, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-feature-line strong {
  font-size: 1.65rem;
  line-height: 1;
}

.dashboard-feature-line span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: right;
}

.stage-progress {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.stage-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stage-progress-top span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.stage-progress-top strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.readiness-empty {
  display: grid;
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 154px;
  padding: 16px;
  border: 1px solid rgba(174, 183, 196, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(67, 208, 139, 0.08), rgba(145, 71, 255, 0.08)),
    rgba(255, 255, 255, 0.03);
}

.balance-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  align-self: center;
  gap: 18px;
  min-height: 176px;
  padding: 20px;
  border: 1px solid rgba(174, 183, 196, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 209, 102, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 209, 102, 0.08), rgba(67, 208, 139, 0.07)),
    rgba(255, 255, 255, 0.03);
}

.balance-empty-visual {
  display: grid;
  grid-template-columns: 74px 46px 74px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(260px, 100%);
}

.balance-empty-team {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(174, 183, 196, 0.14);
  border-radius: 8px;
  background: rgba(6, 10, 16, 0.36);
}

.balance-empty-team i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(67, 208, 139, 0.76), rgba(255, 209, 102, 0.72));
}

.balance-empty-team i:nth-child(1) {
  width: 100%;
}

.balance-empty-team i:nth-child(2) {
  width: 78%;
}

.balance-empty-team i:nth-child(3) {
  width: 88%;
}

.balance-empty-team:last-child i:nth-child(1) {
  width: 92%;
}

.balance-empty-team:last-child i:nth-child(2) {
  width: 82%;
}

.balance-empty-team:last-child i:nth-child(3) {
  width: 96%;
}

.balance-empty-axis {
  position: relative;
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.76);
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.12);
}

.balance-empty-axis::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 209, 102, 0.88);
  border-radius: 999px;
  background: rgba(15, 18, 24, 0.95);
  transform: translate(-50%, -50%);
}

.readiness-empty-board {
  display: grid;
  grid-template-columns: repeat(5, 34px);
  gap: 8px;
  justify-content: start;
}

.readiness-empty-board span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(174, 183, 196, 0.16);
  border-radius: 8px;
  background: rgba(6, 10, 16, 0.42);
  opacity: 0.78;
}

.readiness-empty-board img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.readiness-empty-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.readiness-empty-copy strong {
  font-size: 1.18rem;
}

.readiness-empty-copy span {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.dashboard-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-mini-grid article {
  display: grid;
  gap: 6px;
  min-height: 76px;
  align-content: center;
  padding: 12px;
  border: 1px solid rgba(174, 183, 196, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-mini-grid span,
.dashboard-thin-bars span,
.dashboard-team-extremes,
.top-elo-player em {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.dashboard-mini-grid strong {
  font-size: 1.25rem;
}

.dashboard-mini-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.dashboard-mini-value-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-mini-value-row em {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
  text-align: right;
}

.dashboard-thin-bars {
  display: grid;
  gap: 10px;
}

.dashboard-thin-bars article {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.dashboard-thin-bars article > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-team-extremes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.top-elo-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.top-elo-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid rgba(174, 183, 196, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.top-elo-rank {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(67, 208, 139, 0.32);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.top-elo-player {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.top-elo-player strong,
.top-elo-player em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-bars,
.elo-stat-bars,
.streamer-list,
.commentator-admin-list {
  display: grid;
  gap: 10px;
}

.role-bars,
.elo-stat-bars {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px;
}

.role-bar-row,
.elo-stat-card,
.streamer-row {
  display: grid;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.role-bar-row,
.elo-stat-card {
  min-height: 112px;
  align-content: space-between;
  padding: 14px;
  border: 1px solid rgba(174, 183, 196, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.elo-stat-card {
  min-height: 104px;
}

.role-bar-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.role-bar-top > span {
  min-width: 0;
  overflow: hidden;
}

.role-bar-top strong {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  min-width: 0;
}

.role-delta {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.role-delta.neutral {
  color: var(--muted);
  background: rgba(174, 183, 196, 0.12);
}

.role-delta.surplus {
  color: #9be7c3;
  background: rgba(67, 208, 139, 0.14);
}

.role-delta.deficit {
  color: #ffb2b2;
  background: rgba(239, 71, 111, 0.16);
}

.role-bar-top strong {
  font-size: 1.8rem;
  line-height: 1;
}

.role-bar-track {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 22px;
  overflow: hidden;
  contain: paint;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.role-bar-track span {
  display: block;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.elo-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.elo-tier-grid article {
  display: grid;
  gap: 8px;
  min-height: 92px;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(174, 183, 196, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(25, 195, 125, 0.08), rgba(233, 196, 106, 0.04)),
    rgba(255, 255, 255, 0.035);
}

.elo-tier-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.elo-tier-grid strong {
  font-size: 1.35rem;
}

.inline-help-button {
  display: inline;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-2);
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.dashboard-count-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.dashboard-count-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(145, 71, 255, 0.35);
  border-radius: 999px;
  background: rgba(145, 71, 255, 0.12);
  color: #d9c4ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.elo-reference-modal-panel {
  width: min(760px, calc(100vw - 32px));
  padding: clamp(20px, 4vw, 30px);
}

.elo-reference-modal-body {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.elo-reference-modal-body > p {
  max-width: 620px;
  margin: 0;
}

.elo-reference-modal-panel .modal-header {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(174, 183, 196, 0.16);
}

.streamer-row {
  grid-template-columns: auto 1fr auto;
  padding: 12px 14px;
  border: 1px solid rgba(145, 71, 255, 0.3);
  border-radius: 8px;
  background: rgba(145, 71, 255, 0.09);
  color: var(--text);
  text-decoration: none;
}

.twitch-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.twitch-stream-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(145, 71, 255, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(145, 71, 255, 0.12), rgba(25, 195, 125, 0.05)),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-decoration: none;
}

.twitch-stream-card:hover {
  border-color: rgba(145, 71, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(145, 71, 255, 0.2), rgba(25, 195, 125, 0.08)),
    rgba(255, 255, 255, 0.05);
}

.twitch-card-mark,
.twitch-card-avatar {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #9147ff;
  color: white;
}

.twitch-card-avatar-wrap {
  display: inline-grid;
  width: 46px;
  height: 46px;
}

.twitch-card-avatar-wrap > * {
  grid-area: 1 / 1;
}

.twitch-card-avatar-img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(145, 71, 255, 0.34);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.twitch-card-avatar-img.is-broken {
  display: none;
}

.twitch-card-avatar {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(135deg, var(--avatar-start), var(--avatar-end));
  border: 1px solid color-mix(in srgb, var(--avatar-ring) 72%, transparent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.22);
  color: color-mix(in srgb, var(--avatar-ring) 78%, white);
  font-size: 1.15rem;
  font-weight: 950;
}

.twitch-card-mark svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.twitch-card-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.twitch-card-copy strong,
.twitch-card-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.twitch-card-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.84rem;
  line-height: 1.25;
}

.twitch-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  grid-column: 1 / -1;
  justify-self: start;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(145, 71, 255, 0.18);
  color: #d9c4ff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.twitch-card-cta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.twitch-card-description {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.streamer-row span,
.commentator-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #9147ff;
  color: white;
}

.streamer-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.commentator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.twitch-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.twitch-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 220px;
  padding: 16px;
  border: 1px solid rgba(145, 71, 255, 0.28);
  border-radius: 8px;
  background: rgba(145, 71, 255, 0.07);
}

.twitch-panel-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.twitch-panel-heading > span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #9147ff;
  color: white;
}

.twitch-panel-heading svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.twitch-panel-heading h3,
.twitch-panel-heading p {
  margin: 0;
}

.twitch-panel-heading p {
  font-size: 0.9rem;
  line-height: 1.45;
}

.commentator-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(145, 71, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(145, 71, 255, 0.18), rgba(25, 195, 125, 0.08)),
    rgba(255, 255, 255, 0.035);
}

.commentator-card h3,
.commentator-card p {
  margin: 0;
}

.commentator-form,
.commentator-streamer-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.3fr) 80px auto auto;
  gap: 8px;
  align-items: center;
}

.commentator-form {
  margin-bottom: 14px;
}

.commentator-form input,
.commentator-streamer-row input,
.player-twitch-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

@media (max-width: 900px) {
  .dashboard-split-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commentator-form,
  .commentator-streamer-row {
    grid-template-columns: 1fr;
  }

  .twitch-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .readiness-empty,
  .balance-empty {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .twitch-card-list {
    grid-template-columns: 1fr;
  }

  .readiness-empty,
  .balance-empty {
    grid-template-columns: 1fr;
  }

  .readiness-empty-board {
    grid-template-columns: repeat(5, 30px);
  }

  .readiness-empty-board span {
    width: 30px;
    height: 30px;
  }
}
