:root {
  --color-primary: #b680ff;
  --color-text: #111111;
  --color-text-on-primary: #111111;
  --color-bg: #f7f1ff;
  --color-muted: #606060;
  --surface: #ffffff;
  --surface-frost: rgba(255, 255, 255, 0.96);
  --surface-glass: rgba(255, 255, 255, 0.78);
  --surface-alt: rgba(17, 17, 17, 0.04);
  --surface-alt-2: rgba(17, 17, 17, 0.06);
  --surface-alt-3: rgba(17, 17, 17, 0.03);
  --surface-outline: rgba(255, 255, 255, 0.6);
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border: rgba(17, 17, 17, 0.16);
  --border-subtle: rgba(17, 17, 17, 0.1);
  --border-soft: rgba(17, 17, 17, 0.12);
  --border-soft-2: rgba(17, 17, 17, 0.08);
  --border-strong: rgba(17, 17, 17, 0.2);
  --border-strong-2: rgba(17, 17, 17, 0.25);
  --border-stronger: rgba(17, 17, 17, 0.35);
  --border-focus: rgba(17, 17, 17, 0.4);
  --border-hover: rgba(17, 17, 17, 0.45);
  --border-contrast: rgba(17, 17, 17, 0.6);
  --divider: rgba(17, 17, 17, 0.5);
  --primary-soft: color-mix(in srgb, var(--color-primary) 35%, transparent);
  --primary-soft-2: color-mix(in srgb, var(--color-primary) 18%, transparent);
  --primary-soft-3: color-mix(in srgb, var(--color-primary) 12%, transparent);
  --primary-border: color-mix(in srgb, var(--color-primary) 40%, transparent);
  --primary-border-2: color-mix(in srgb, var(--color-primary) 35%, transparent);
  --ink-strong: #2b2042;
  --pill-dark-bg: var(--color-text);
  --pill-dark-text: #ffffff;
  --bubble-admin-bg: #e7f2ff;
  --bubble-admin-border: rgba(120, 160, 220, 0.35);
  --send-bg: #3390ec;
  --send-color: #ffffff;
  --icon-muted: rgba(17, 17, 17, 0.6);
  --bg-radial: rgba(176, 55, 255, 0.18);
  --bg-linear-1: color-mix(in srgb, var(--color-primary) 12%, transparent);
  --bg-linear-2: rgba(255, 255, 255, 0.9);
  --grid-bg: var(--color-bg);
  --grid-line: rgba(0, 0, 0, 0.06);
  --shadow-card: 0 18px 36px rgba(17, 17, 17, 0.14);
  --shadow-soft: 0 10px 22px rgba(17, 17, 17, 0.08);
  --shadow-cta: 0 10px 22px rgba(17, 17, 17, 0.18);
  --shadow-elevated: 0 12px 22px rgba(17, 17, 17, 0.18);
  --shadow-hover: 0 10px 20px rgba(17, 17, 17, 0.12);
  --shadow-compact: 0 8px 16px rgba(17, 17, 17, 0.12);
  --shadow-chat: 0 6px 16px rgba(17, 17, 17, 0.06);
  --shadow-nav: 0 18px 40px rgba(17, 17, 17, 0.18);
  --shadow-active: 0 10px 20px rgba(17, 17, 17, 0.18);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --glow: 0 22px 46px rgba(176, 55, 255, 0.25);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #0d0b14;
  --color-text: #f5f4fa;
  --color-text-on-primary: #120d1b;
  --color-muted: #a5a1b2;
  --surface: #161421;
  --surface-frost: rgba(22, 20, 33, 0.92);
  --surface-glass: rgba(22, 20, 33, 0.78);
  --surface-alt: rgba(255, 255, 255, 0.06);
  --surface-alt-2: rgba(255, 255, 255, 0.1);
  --surface-alt-3: rgba(255, 255, 255, 0.04);
  --surface-outline: rgba(255, 255, 255, 0.45);
  --card-bg: rgba(22, 20, 33, 0.92);
  --card-border: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.12);
  --border-soft-2: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.2);
  --border-strong-2: rgba(255, 255, 255, 0.25);
  --border-stronger: rgba(255, 255, 255, 0.35);
  --border-focus: rgba(255, 255, 255, 0.4);
  --border-hover: rgba(255, 255, 255, 0.5);
  --border-contrast: rgba(255, 255, 255, 0.6);
  --divider: rgba(255, 255, 255, 0.35);
  --primary-soft: color-mix(in srgb, var(--color-primary) 28%, transparent);
  --primary-soft-2: color-mix(in srgb, var(--color-primary) 18%, transparent);
  --primary-soft-3: color-mix(in srgb, var(--color-primary) 12%, transparent);
  --primary-border: color-mix(in srgb, var(--color-primary) 45%, transparent);
  --primary-border-2: color-mix(in srgb, var(--color-primary) 35%, transparent);
  --ink-strong: #ebe1ff;
  --pill-dark-bg: #f0eaff;
  --pill-dark-text: #1b1625;
  --bubble-admin-bg: rgba(78, 120, 190, 0.28);
  --bubble-admin-border: rgba(120, 160, 220, 0.45);
  --send-bg: #4ea1ff;
  --send-color: #0f121a;
  --icon-muted: rgba(255, 255, 255, 0.7);
  --bg-radial: rgba(182, 128, 255, 0.3);
  --bg-linear-1: color-mix(in srgb, var(--color-primary) 22%, transparent);
  --bg-linear-2: rgba(13, 11, 20, 0.9);
  --grid-bg: #0d0b14;
  --grid-line: rgba(255, 255, 255, 0.06);
  --shadow-card: 0 18px 36px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 22px rgba(0, 0, 0, 0.35);
  --shadow-cta: 0 10px 22px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 12px 22px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.35);
  --shadow-compact: 0 8px 16px rgba(0, 0, 0, 0.35);
  --shadow-chat: 0 6px 16px rgba(0, 0, 0, 0.35);
  --shadow-nav: 0 18px 40px rgba(0, 0, 0, 0.5);
  --shadow-active: 0 10px 20px rgba(0, 0, 0, 0.45);
  --glow: 0 22px 46px rgba(182, 128, 255, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  padding-bottom: 84px;
  font-size: 16px;
  line-height: 1.55;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.chat-view {
  height: 100vh;
  overflow: hidden;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  --chat-nav-offset: 120px;
  --chat-hint-offset: 176px;
}

.site-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, var(--bg-radial), transparent 55%),
    linear-gradient(160deg, var(--bg-linear-1), var(--bg-linear-2) 60%),
    repeating-linear-gradient(
      0deg,
      var(--grid-line),
      var(--grid-line) 1px,
      transparent 1px,
      transparent 120px
    ),
    repeating-linear-gradient(
      90deg,
      var(--grid-line),
      var(--grid-line) 1px,
      transparent 1px,
      transparent 120px
    );
  background-color: var(--grid-bg);
  opacity: 1;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.team-link {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 24px 18px 12px;
  background: var(--surface-glass);
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.header-tabs {
  padding: 0 18px 12px;
}

.header-tabs .tabs {
  margin: 0 auto;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.brand-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  order: 2;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--color-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-strong);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.theme-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.theme-icon.is-moon {
  display: none;
}

:root[data-theme="dark"] .theme-icon.is-sun {
  display: none;
}

:root[data-theme="dark"] .theme-icon.is-moon {
  display: block;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--card-border);
}

.brand-logo-svg {
  width: 160px;
  height: 44px;
  display: block;
  color: var(--color-text);
}

.brand-logo.wordmark {
  width: auto;
  height: auto;
  padding: 6px 4px;
  border: none;
  border-radius: 0;
  font-family: "Russo One", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text);
}

.brand-logo.placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, hsl(var(--logo-hue, 270), 80%, 75%), hsl(var(--logo-hue, 270), 85%, 60%));
  color: var(--color-text-on-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
  font-family: "Russo One", sans-serif;
  text-transform: uppercase;
  box-shadow: 0 12px 24px var(--primary-soft);
  line-height: 1;
}

.brand-logo.placeholder::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  border: 2px solid var(--surface-outline);
}

.brand-logo.placeholder::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 60%;
  background: color-mix(in srgb, var(--surface) 35%, transparent);
  transform: rotate(-18deg);
  top: -10%;
  left: -20%;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-family: "Russo One", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.main-nav {
  display: none;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  max-width: 100%;
  order: 3;
}

.main-nav a {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: none;
  transition:
    color 0.2s var(--ease-standard),
    box-shadow 0.2s var(--ease-standard),
    border-color 0.2s var(--ease-standard),
    background 0.2s var(--ease-standard);
}

.main-nav a:hover {
  background: var(--surface-alt-3);
  border-color: var(--border-soft);
}

.main-nav a.is-active {
  background: var(--surface-alt-3);
  border-color: var(--border-strong);
  box-shadow: inset 0 -2px 0 var(--color-primary);
}

.main-nav a:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.site-main {
  padding: 0 18px 24px;
}

body.chat-view .site-main {
  flex: 1;
  overflow: hidden;
  padding-bottom: 0;
}

body.chat-view .site-footer {
  display: none;
}

body.chat-view .chat-composer {
  margin-bottom: 12px;
}

body.chat-view .section-title {
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.chat-jump-hint {
  position: fixed;
  left: 18px;
  bottom: calc(var(--chat-hint-offset) + env(safe-area-inset-bottom));
  background: var(--surface-frost);
  color: var(--color-text);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  z-index: 30;
  transition:
    transform 0.2s var(--ease-standard),
    box-shadow 0.2s var(--ease-standard),
    border-color 0.2s var(--ease-standard),
    opacity 0.2s var(--ease-standard);
}

.chat-jump-hint {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.chat-jump-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-jump-hint:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-strong);
}

.chat-jump-hint svg {
  width: 14px;
  height: 14px;
}

.hero {
  padding: 24px 0 12px;
  display: grid;
  gap: 8px;
}

.hero > * {
  min-width: 0;
}

.hero-title {
  font-family: "Russo One", sans-serif;
  font-size: clamp(2.2rem, 9vw, 4rem);
  color: var(--color-text);
  text-transform: uppercase;
  margin-bottom: 16px;
  text-shadow: var(--glow);
  letter-spacing: 0.1em;
  display: inline-block;
  line-height: 1.05;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-primary);
  margin-top: 8px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions .cta-link {
  margin-top: 0;
}

.team-hero-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 16px;
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 16px;
}

.team-hero-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-hero-info {
  min-width: 0;
}

.team-hero-main img,
.team-hero-main .team-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  font-size: 1rem;
}

.team-hero-info h2 {
  margin: 0;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.team-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.team-hero-meta span,
.team-hero-meta a {
  background: var(--surface-alt);
  border: 1px solid var(--border-soft-2);
  border-radius: 999px;
  padding: 4px 10px;
}

.team-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.team-stat {
  background: var(--surface-alt);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
}

.team-stat-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.team-stat-label {
  font-size: 0.7rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section {
  margin-top: 32px;
  animation: rise 0.6s ease both;
  scroll-margin-top: 88px;
}

.chat-page {
  animation: none;
  transform: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-scroll {
  flex: 1;
  overflow-y: auto;
  display: grid;
  gap: 18px;
  padding: 0 2px 16px;
  scroll-behavior: smooth;
}

.chat-intro {
  display: grid;
  gap: 8px;
}

.chat-sticky {
  position: relative;
  z-index: 1;
  padding-top: 0;
  backdrop-filter: none;
}

.section-title {
  font-family: "Russo One", sans-serif;
  font-size: 1.7rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title::before {
  content: "";
  width: 6px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-primary), transparent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--color-primary) 45%, transparent);
}

.section-title::after {
  content: "";
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--divider), transparent);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: var(--surface-frost);
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.tab-button {
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  font-size: 0.72rem;
  text-align: center;
  border: 2px solid transparent;
  min-height: 44px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform 0.2s var(--ease-standard),
    box-shadow 0.2s var(--ease-standard),
    border-color 0.2s var(--ease-standard),
    background 0.2s var(--ease-standard);
}

.tab-button.is-active {
  background: var(--primary-soft);
  color: var(--color-text);
  box-shadow: var(--shadow-elevated);
  border-color: var(--border-stronger);
  transform: translateY(-1px);
}

.tab-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.tab-button:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.tab-panel {
  margin-top: 18px;
}

.tabs-ready .tab-panel {
  display: none;
}

.tabs-ready .tab-panel.is-active {
  display: block;
}

.division-block {
  margin-bottom: 24px;
}

.division-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 10px 0 12px;
  color: var(--color-text);
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--color-text);
  border: 2px solid var(--border-strong);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pill.dark {
  background: var(--pill-dark-bg);
  color: var(--pill-dark-text);
  border: none;
}

.match-highlight {
  background: linear-gradient(140deg, var(--surface-frost), var(--primary-soft-3));
  border-radius: var(--radius-xl);
  padding: 18px;
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-card), var(--glow);
}

.match-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.scoreboard > * {
  min-width: 0;
}

.scoreboard .team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  min-width: 0;
}

.scoreboard .team img,
.scoreboard .team .team-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-alt);
  font-size: 1rem;
}

.scoreboard .team span {
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.team-logo.placeholder {
  display: grid;
  place-items: center;
  background: var(--card-bg);
  color: var(--color-text);
  font-family: "Russo One", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  border: 1px solid var(--border-soft);
  line-height: 1;
}

.team-logo.placeholder::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid hsl(var(--logo-hue, 250), 35%, 80%);
}

.team-logo.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 60%, transparent), transparent 55%);
  opacity: 0.4;
}

.score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 2.6rem;
  font-family: "Russo One", sans-serif;
  font-variant-numeric: tabular-nums;
}

.divider {
  font-size: 1.05rem;
  opacity: 0.6;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  line-height: 1;
}

.match-submeta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-muted);
  flex-wrap: wrap;
}

.match-meta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.match-meta-row .match-submeta {
  margin-top: 0;
}

.match-meta-row .cta-link {
  margin-top: 0;
}

.match-submeta span,
.match-card-footer span {
  background: var(--surface);
  border: 2px solid var(--border-strong);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.cta-link {
  display: inline-flex;
  margin-top: 14px;
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-cta);
  transition:
    transform 0.2s var(--ease-standard),
    box-shadow 0.2s var(--ease-standard),
    border-color 0.2s var(--ease-standard),
    background 0.2s var(--ease-standard);
}

.cta-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated);
}

.cta-link.ghost {
  background: transparent;
  border: 2px solid var(--card-border);
  color: var(--color-text);
}

.cta-link.ghost:hover {
  background: var(--surface-alt);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.cta-link.compact {
  margin-top: 0;
  padding: 6px 12px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  background: var(--surface);
  border: 2px solid var(--border-strong-2);
  color: var(--color-text);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.cta-link.compact:hover {
  background: var(--surface-alt);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-compact);
  transform: translateY(-1px);
}

.cta-link.compact::after {
  content: "→";
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0.75;
}

.match-list {
  display: grid;
  gap: 14px;
}

.match-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.match-card.compact {
  padding: 14px;
}

.link-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-card:hover {
  border-color: var(--border-stronger);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.link-card:active {
  transform: translateY(0);
}

.link-card:focus-visible {
  outline: 2px solid var(--border-stronger);
  outline-offset: 2px;
}

.match-card-header {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  align-items: center;
}

.match-card-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.match-card-body > * {
  min-width: 0;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.match-team img,
.match-team .team-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 0.6rem;
  line-height: 1;
}

.match-team .team-logo.placeholder {
  letter-spacing: 0.02em;
}

.match-team span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.match-time,
.match-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.match-score {
  flex-direction: row;
  gap: 6px;
  font-family: "Russo One", sans-serif;
  font-size: 1.6rem;
}

.match-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text);
  margin-top: 10px;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.match-card-footer.single {
  justify-content: flex-end;
}

.match-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 2px;
  border-bottom: 2px dashed var(--border-stronger);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s var(--ease-standard), border-color 0.2s var(--ease-standard);
}

.match-link:hover {
  border-bottom-color: var(--border-contrast);
}

.table {
  display: grid;
  gap: 8px;
  overflow-x: hidden;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 30px minmax(140px, 1.7fr) repeat(4, minmax(26px, 0.6fr)) minmax(70px, 0.8fr) minmax(44px, 0.5fr) minmax(36px, 0.5fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.table-head {
  font-size: 0.65rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 8px;
  gap: 6px;
}

.table-row {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  border: 2px solid var(--card-border);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s var(--ease-standard),
    box-shadow 0.2s var(--ease-standard),
    border-color 0.2s var(--ease-standard);
}

.table-row.link-row {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.table-row.link-row:hover {
  border-color: var(--border-stronger);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.table-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--color-muted);
}

.table-head span:nth-child(1),
.table-head span:nth-child(2) {
  background: transparent;
  color: var(--color-muted);
  justify-content: flex-start;
  padding: 0;
}

.table-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  min-width: 0;
}

.table-team img,
.table-team .team-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 0.52rem;
  line-height: 1;
}

.table-team .team-logo.placeholder {
  letter-spacing: 0.02em;
}

.table-team span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.table-rank {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--primary-soft-2);
  color: var(--ink-strong);
  border: 1px solid var(--primary-border);
  font-weight: 700;
}

.table-row:nth-child(2) .table-rank {
  background: linear-gradient(135deg, #f7d774, #e3b840);
  border-color: #d7a83a;
  color: #3a2a10;
}

.table-row:nth-child(3) .table-rank {
  background: linear-gradient(135deg, #e5e7eb, #bfc4cc);
  border-color: #a9afb9;
  color: #2a3038;
}

.table-row:nth-child(4) .table-rank {
  background: linear-gradient(135deg, #e3b08a, #b8744f);
  border-color: #a86442;
  color: #3a2013;
}

.table-stat {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.table-points {
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 4px 10px;
  border: 2px solid var(--border-strong);
  font-variant-numeric: tabular-nums;
}

.round-block {
  margin-bottom: 18px;
}

.round-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.roster-grid {
  display: grid;
  gap: 16px;
}

.roster-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-card);
}

.roster-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.roster-header img,
.roster-header .team-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 0.85rem;
}

.roster-header h3 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.roster-list li {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
}

.player-name {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.player-number {
  background: var(--surface-alt);
  border-radius: 10px;
  text-align: center;
  padding: 4px 0;
  font-variant-numeric: tabular-nums;
}

.player-position {
  color: var(--color-muted);
}

.stats-grid {
  display: grid;
  gap: 14px;
}

.stats-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 16px 16px 12px;
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.stats-card h3 {
  margin: 0 0 12px;
  font-family: "Russo One", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-strong);
}

.stats-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.stats-card li {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  background: var(--surface-alt);
  border: 2px solid var(--border-soft);
  border-radius: 12px;
  padding: 8px 10px;
}

.stat-rank {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--primary-soft-2);
  border: 1px solid var(--primary-border-2);
  font-weight: 700;
  color: var(--ink-strong);
  font-size: 0.75rem;
}

.stats-card li:nth-child(1) .stat-rank {
  background: linear-gradient(135deg, #f7d774, #e3b840);
  border-color: #d7a83a;
  color: #3a2a10;
}

.stats-card li:nth-child(2) .stat-rank {
  background: linear-gradient(135deg, #e5e7eb, #bfc4cc);
  border-color: #a9afb9;
  color: #2a3038;
}

.stats-card li:nth-child(3) .stat-rank {
  background: linear-gradient(135deg, #e3b08a, #b8744f);
  border-color: #a86442;
  color: #3a2013;
}

.stat-player {
  font-weight: 700;
  color: var(--color-text);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stat-team {
  color: var(--color-muted);
  font-size: 0.75rem;
  background: var(--surface-alt-3);
  border: 2px solid var(--border-soft);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-weight: 700;
  background: var(--primary-soft);
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 8px;
  min-width: 32px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.protocol-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.protocol-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.protocol-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    hsla(var(--logo-hue, 270), 80%, 75%, 0.18),
    transparent 60%
  );
  pointer-events: none;
}

.protocol-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.protocol-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.protocol-team img,
.protocol-team .team-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 0.62rem;
  line-height: 1;
}

.protocol-team .team-logo.placeholder {
  letter-spacing: 0.02em;
}

.protocol-team-info {
  min-width: 0;
}

.protocol-team-info h3 {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.protocol-score-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 2px solid var(--border-strong);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink-strong);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.goal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.goal-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 2px solid var(--border-soft);
}

.goal-minute {
  font-weight: 700;
  color: var(--ink-strong);
  font-family: "Russo One", sans-serif;
  font-variant-numeric: tabular-nums;
}

.goal-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.goal-player {
  font-weight: 700;
  color: var(--color-text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.goal-assist {
  color: var(--color-muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.goal-tags {
  display: flex;
  gap: 6px;
  align-items: center;
}

.goal-tag {
  background: var(--primary-soft);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.7rem;
}

.media-grid {
  display: grid;
  gap: 16px;
}

.media-detail {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 12px;
}

.media-detail img {
  border-radius: var(--radius-md);
}

.media-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.section-cta {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.forum-list {
  display: grid;
  gap: 16px;
}

.forum-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 16px 16px 16px 30px;
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.forum-card::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-primary), transparent);
  opacity: 0.7;
}

.forum-card.link-card:hover::before {
  opacity: 1;
}

.forum-card h3 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.forum-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.forum-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.forum-count {
  text-align: right;
  display: grid;
  gap: 2px;
  min-width: 88px;
  align-self: flex-start;
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 8px 10px;
}

.forum-count-value {
  font-family: "Russo One", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.forum-count-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

.forum-preview {
  background: var(--surface-alt);
  border: 2px solid var(--border-soft);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  position: relative;
}

.forum-preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-wrap: wrap;
}

.forum-preview-text {
  font-size: 0.9rem;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-thread {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding-bottom: 0;
}

.chat-date {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 5px 10px;
  width: fit-content;
  margin: 4px auto 2px;
}

.chat-message {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  justify-content: flex-start;
}

.chat-message.is-admin {
  flex-direction: row-reverse;
  text-align: right;
  justify-content: flex-end;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: none;
  flex-shrink: 0;
}

.chat-message.is-admin .chat-avatar {
  display: none;
}

.chat-bubble {
  background: var(--surface);
  border: 1px solid var(--border-soft-2);
  border-radius: 18px 18px 18px 6px;
  padding: 10px 12px;
  max-width: 88%;
  box-shadow: var(--shadow-chat);
  display: grid;
  gap: 6px;
  position: relative;
}

.chat-message.is-admin .chat-bubble {
  background: var(--bubble-admin-bg);
  border-color: var(--bubble-admin-border);
  border-radius: 18px 18px 6px 18px;
}

.chat-bubble::after,
.chat-message.is-admin .chat-bubble::after {
  display: none;
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0.01em;
  align-items: center;
  color: var(--color-muted);
}

.chat-message.is-admin .chat-meta {
  justify-content: flex-end;
}

.chat-message.is-admin .chat-time {
  margin-left: 8px;
}

.chat-meta-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
}

.chat-author {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.chat-time {
  font-variant-numeric: tabular-nums;
}

.chat-badge {
  background: var(--surface-alt-2);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

.chat-text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}

.chat-attachments {
  margin-top: 6px;
  display: grid;
  gap: 8px;
}

.chat-attachments img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
}

.chat-composer {
  margin-top: auto;
  background: var(--surface-frost);
  border: 1px solid var(--border-soft-2);
  border-radius: 22px;
  padding: 6px 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.chat-composer-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-icon-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--icon-muted);
  padding: 0;
  transition: background 0.2s var(--ease-standard), color 0.2s var(--ease-standard);
}

.chat-icon-button svg {
  width: 18px;
  height: 18px;
}

.chat-input {
  border: none;
  border-radius: 12px;
  padding: 8px 6px;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  background: transparent;
  resize: none;
  flex: 1;
  min-height: 36px;
  color: var(--color-text);
}

.chat-input::placeholder {
  color: var(--color-muted);
}

.chat-input:focus {
  outline: none;
}

.chat-composer:focus-within {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.chat-input:disabled {
  background: transparent;
  color: var(--color-muted);
}

.chat-send {
  display: none;
}

.chat-send-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--send-bg);
  color: var(--send-color);
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard);
}

.chat-icon-button:disabled,
.chat-send-icon:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-hint {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.forum-posts {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.forum-post {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.forum-post-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.forum-post-body {
  color: var(--color-text);
}

.media-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-card);
}

.media-card img {
  border-radius: 14px;
  margin-top: 12px;
}

.media-placeholder {
  margin-top: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-alt);
  color: var(--color-muted);
  text-align: center;
  font-weight: 600;
}

.media-video {
  position: relative;
  padding-top: 56.25%;
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
}

.media-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.calendar-embed {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border-soft);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.calendar-embed iframe {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 520px;
  border: 0;
}

@media (max-width: 720px) {
  .calendar-embed iframe {
    height: 70vh;
    min-height: 420px;
  }
}

.match-extra {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.match-notes {
  background: var(--surface);
  padding: 12px;
  border-radius: 12px;
  color: var(--color-text);
  border: 2px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.empty-state {
  color: var(--color-muted);
  background: var(--surface-alt-3);
  border-radius: 12px;
  padding: 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.muted {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.site-footer {
  padding: 24px 18px 90px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.mobile-nav {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  background: var(--surface-frost);
  border-radius: 18px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  border: 2px solid var(--card-border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-nav);
}

.mobile-nav a {
  font-size: 0.7rem;
  text-align: center;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 6px 4px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mobile-nav a.is-active {
  color: var(--color-text);
  background: var(--primary-soft);
  font-weight: 700;
  box-shadow: var(--shadow-active);
  border-color: var(--border-strong);
}

.nav-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.account-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 14px;
  align-items: center;
}

:is(.match-list, .media-grid, .roster-grid, .forum-list, .protocol-grid) > * {
  animation: rise 0.5s ease both;
}

:is(.match-list, .media-grid, .roster-grid, .forum-list, .protocol-grid) > *:nth-child(1) {
  animation-delay: 0.04s;
}

:is(.match-list, .media-grid, .roster-grid, .forum-list, .protocol-grid) > *:nth-child(2) {
  animation-delay: 0.08s;
}

:is(.match-list, .media-grid, .roster-grid, .forum-list, .protocol-grid) > *:nth-child(3) {
  animation-delay: 0.12s;
}

:is(.match-list, .media-grid, .roster-grid, .forum-list, .protocol-grid) > *:nth-child(4) {
  animation-delay: 0.16s;
}

:is(.match-list, .media-grid, .roster-grid, .forum-list, .protocol-grid) > *:nth-child(5) {
  animation-delay: 0.2s;
}

.account-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: "Russo One", sans-serif;
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 50%, transparent), var(--surface-frost));
  border: 1px solid var(--card-border);
  color: var(--color-text);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  body {
    padding-bottom: 0;
  }

  .site-header {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
  }

  .main-nav {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    margin: 0;
  }

  .site-main {
    max-width: 1100px;
    margin: 0 auto;
  }

  .header-tabs .tabs {
    max-width: 1100px;
  }

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

  .roster-grid,
  .stats-grid,
  .media-grid,
  .forum-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .protocol-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-nav {
    display: none;
  }

  .site-footer {
    padding-bottom: 24px;
  }

  body.chat-view {
    --chat-nav-offset: 28px;
    --chat-hint-offset: 84px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    letter-spacing: 0.08em;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .section-title::before {
    height: 22px;
  }

  .table-head,
  .table-row {
    grid-template-columns: 26px minmax(96px, 1.3fr) repeat(4, 22px) 56px 32px 28px;
    gap: 4px;
  }

  .chat-bubble {
    max-width: 100%;
  }

  .chat-thread {
    padding-bottom: 16px;
  }

  .forum-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .forum-count {
    text-align: left;
    grid-auto-flow: column;
    align-items: center;
    gap: 8px;
  }

  .forum-count-value {
    font-size: 1.3rem;
  }

  .chat-meta {
    flex-wrap: wrap;
    gap: 6px;
  }

  body.chat-view .chat-composer {
    margin-bottom: 12px;
  }

  body.chat-view .chat-page {
    padding-bottom: calc(var(--chat-nav-offset) + 16px + env(safe-area-inset-bottom));
  }

  .table-head {
    padding: 0 4px;
  }

  .table-head span {
    height: 18px;
    font-size: 0.55rem;
    padding: 0 4px;
  }

  .table-row {
    padding: 6px 8px;
    border-radius: 14px;
  }

  .table-team {
    padding: 0;
  }

  .table-team img,
  .table-team .team-logo {
    width: 24px;
    height: 24px;
    font-size: 0.46rem;
  }

  .table-team span:last-child {
    font-size: 0.68rem;
  }

  .table-rank {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  .table-stat {
    font-size: 0.68rem;
  }

  .table-points {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
}

@media (min-width: 1024px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    flex-wrap: nowrap;
  }

  .main-nav {
    width: auto;
    flex-wrap: nowrap;
    order: 2;
  }

  .brand-actions {
    order: 3;
  }

  .brand,
  .main-nav,
  .brand-actions {
    grid-column: 1;
    grid-row: 1;
  }

  .brand {
    justify-self: start;
  }

  .main-nav {
    justify-self: center;
  }

  .brand-actions {
    justify-self: end;
  }

  .match-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .roster-grid,
  .stats-grid,
  .media-grid,
  .forum-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .site-header {
    padding: 28px 32px 16px;
  }

  .header-tabs {
    padding: 0 32px 16px;
  }

  .site-main {
    max-width: 1280px;
    padding: 0 32px 32px;
  }

  .header-tabs .tabs {
    max-width: 1280px;
  }

  .hero {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 24px;
  }

  .hero-title {
    font-size: clamp(2.6rem, 3.6vw, 4.6rem);
  }

  .team-hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .match-highlight {
    padding: 22px;
  }

  .scoreboard {
    gap: 22px;
  }

  .score {
    font-size: 3rem;
  }

  .match-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

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

  .forum-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .protocol-grid {
    gap: 20px;
  }

  .match-extra {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: start;
  }

  .match-extra > :only-child {
    grid-column: 1 / -1;
  }

  .table-head,
  .table-row {
    grid-template-columns:
      34px
      minmax(180px, 1.8fr)
      repeat(4, minmax(32px, 0.7fr))
      minmax(100px, 0.9fr)
      minmax(60px, 0.6fr)
      minmax(44px, 0.5fr);
    gap: 10px;
  }

  .table-row {
    padding: 10px 12px;
  }

  .table-team img,
  .table-team .team-logo {
    width: 32px;
    height: 32px;
  }

  .table-team span:last-child {
    font-size: 0.9rem;
  }
}
