:root {
  --bg: #070604;
  --surface: #151108;
  --surface-strong: #20190b;
  --text: #f2dfaa;
  --ink: #fff1bf;
  --muted: #bda56b;
  --line: rgba(214, 159, 34, 0.28);
  --brand: #dca323;
  --brand-dark: #a96f07;
  --accent: #e0aa2b;
  --accent-soft: rgba(220, 163, 35, 0.14);
  --danger: #c83d32;
  --blue: #20262c;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
  --glow: 0 0 30px rgba(220, 163, 35, 0.22);
  --display-font: "Barlow Condensed", "Inter", Arial, sans-serif;
  --nav-height: clamp(76px, 7vw, 92px);
}

.is-hidden {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  --field-scroll: 0%;
  --page-background-image: url("assets/images/background/totalf7-field-scroll.png");
  --page-background-position: center var(--field-scroll);
  --page-background-size: max(106vw, 148vh) auto;
  margin: 0;
  color: var(--text);
  background: #070604;
  font-family: "Inter", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.76)),
    radial-gradient(ellipse at 50% -18%, rgba(224, 170, 43, 0.26), transparent 44%),
    var(--page-background-image),
    linear-gradient(180deg, #070604 0%, #0b0a05 48%, #030303 100%);
  background-repeat: no-repeat;
  background-position:
    center center,
    center top,
    var(--page-background-position),
    center center;
  background-size:
    auto,
    120% 120%,
    var(--page-background-size),
    auto;
  transform: translateZ(0);
  filter: saturate(1.16) brightness(1.06);
  transition: filter 220ms ease;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 108%, rgba(224, 170, 43, 0.14), transparent 46%),
    radial-gradient(ellipse at 76% 18%, rgba(224, 170, 43, 0.08), transparent 36%),
    linear-gradient(90deg, rgba(7, 6, 4, 0.58), rgba(7, 6, 4, 0.24) 7%, transparent 22%, transparent 78%, rgba(7, 6, 4, 0.26) 93%, rgba(7, 6, 4, 0.58)),
    linear-gradient(180deg, rgba(255, 246, 214, 0.018), transparent 18%, rgba(0, 0, 0, 0.46) 100%);
  opacity: 0.66;
  transform: translate3d(0, 0, 0);
  animation: fieldAtmosphere 18s ease-in-out infinite alternate;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
.site-nav a,
.nav-menu-button,
.button,
.stat-card strong,
.standings-header strong {
  font-family: var(--display-font);
  letter-spacing: 0.01em;
}

.site-header {
  position: relative;
  z-index: 30;
  display: block;
  padding-top: var(--nav-height);
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

.header-visual {
  position: relative;
  display: block;
  min-height: clamp(320px, 48vw, 640px);
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(224, 170, 43, 0.12), transparent 54%),
    #070604;
  isolation: isolate;
}

.header-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 6, 3, 0.86), rgba(8, 6, 3, 0.18) 46%, rgba(8, 6, 3, 0.78)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), transparent 46%, rgba(7, 6, 4, 0.88));
}

.header-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), #fff1a0, var(--accent), transparent);
  box-shadow: var(--glow);
}

.header-image {
  display: block;
  width: 100%;
  height: clamp(320px, 48vw, 640px);
  object-fit: cover;
  object-position: center;
  filter: sepia(0.16) saturate(0.98) contrast(1.12) brightness(0.9);
  animation: popIn 750ms ease both;
}

body[data-current-view]:not([data-current-view="home"]) .header-visual {
  display: none;
}

.nav-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 38px);
  min-height: var(--nav-height);
  padding: 6px clamp(18px, 4vw, 56px);
  background:
    linear-gradient(180deg, rgba(24, 18, 8, 0.94), rgba(5, 4, 3, 0.88));
  border-bottom: 1px solid rgba(224, 170, 43, 0.28);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.36);
  transition:
    opacity 220ms ease,
    background-color 220ms ease;
}

.nav-bar.is-scrolled {
  opacity: 0.94;
  background: rgba(0, 0, 0, 0.82);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  width: clamp(58px, 6vw, 74px);
  height: calc(var(--nav-height) - 12px);
  overflow: visible;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 0 14px rgba(245, 196, 46, 0.22)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38));
  animation: popIn 650ms ease both, logoBreath 5.8s ease-in-out 900ms infinite;
}

.brand img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-menu-button,
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  color: rgba(255, 246, 199, 0.88);
  border-radius: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  overflow: hidden;
}

.site-nav a:hover,
.site-nav a.is-current,
.nav-menu-button:hover,
.nav-item.is-open > .nav-menu-button {
  color: #000;
  background: linear-gradient(135deg, #f7dc8b, var(--accent) 55%, #9b6507);
  box-shadow: 0 10px 28px rgba(220, 163, 35, 0.22);
}

.site-nav a::after,
.nav-menu-button::after,
.competition-submenu button::after,
.team-public-submenu button::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -60%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 246, 207, 0.5), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.site-nav a:hover::after,
.site-nav a.is-current::after,
.nav-menu-button:hover::after,
.nav-item.is-open > .nav-menu-button::after,
.competition-submenu button:hover::after,
.competition-submenu button.is-active::after,
.team-public-submenu button:hover::after,
.team-public-submenu button.is-active::after {
  animation: buttonSheen 850ms ease;
}

.site-nav .admin-link {
  color: #000;
  background: linear-gradient(135deg, #f7dc8b, var(--accent) 56%, #a86f08);
  box-shadow: 0 12px 32px rgba(220, 163, 35, 0.25);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  display: none;
  min-width: 230px;
  padding: 10px;
  background: rgba(8, 8, 6, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.nav-item.is-open > .dropdown {
  display: grid;
}

.dropdown a,
.dropdown button {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  text-align: left;
}

.mega-dropdown {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 10px;
  width: min(720px, calc(100vw - 36px));
  transform: translateX(-35%);
}

.mega-dropdown strong {
  display: block;
  padding: 10px 12px 6px;
  color: var(--ink);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.league-menu-empty {
  min-width: 210px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.league-browser {
  display: none;
  grid-template-columns: 1fr;
  gap: 0;
  width: 230px;
  min-width: 230px;
  padding: 10px;
  background: rgba(8, 8, 6, 0.96);
  border-color: var(--line);
  transform: none;
}

.nav-item.is-open > .league-browser {
  display: block;
}

.league-browser-venue,
.league-browser-league {
  position: relative;
}

.league-cascade-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 0;
  padding: 10px 12px;
  color: var(--accent);
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: inherit;
  font-weight: 800;
  text-align: left;
}

.league-browser .league-cascade-trigger,
.league-browser .league-cascade-trigger span {
  color: var(--accent);
}

.league-cascade-trigger:hover,
.league-browser-venue:hover > .league-cascade-trigger,
.league-browser-league:hover > .league-cascade-trigger {
  color: var(--accent);
  background: rgba(224, 170, 43, 0.14);
}

.league-cascade-trigger:hover span,
.league-browser-venue:hover > .league-cascade-trigger span,
.league-browser-league:hover > .league-cascade-trigger span {
  color: var(--accent);
}

.league-cascade-trigger i {
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 7px solid currentColor;
}

.league-cascade-panel {
  position: absolute;
  top: 0;
  left: 100%;
  z-index: 45;
  display: none;
  width: 230px;
  min-width: 230px;
  padding: 10px;
  background: rgba(8, 8, 6, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.league-browser-venue:hover > .league-cascade-panel,
.league-browser-league:hover > .league-cascade-panel,
.league-browser-venue:focus-within > .league-cascade-panel,
.league-browser-league:focus-within > .league-cascade-panel {
  display: block;
}

.info-panel {
  max-width: 820px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(24, 21, 13, 0.94), rgba(7, 7, 6, 0.94));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.info-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.info-tf7-page {
  display: grid;
  gap: 22px;
}

.info-hero-panel,
.info-tf7-panel,
.info-prizes-panel {
  padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(24, 21, 13, 0.94), rgba(7, 7, 6, 0.94));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.info-hero-panel {
  max-width: 980px;
}

.info-hero-panel h2,
.info-prizes-panel h2 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.info-hero-panel p,
.info-tf7-panel li,
.info-prizes-panel li {
  color: var(--muted);
  line-height: 1.7;
}

.info-summary-grid,
.info-section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  min-height: 128px;
  padding: 18px;
  background: rgba(7, 6, 4, 0.78);
  border: 1px solid rgba(224, 170, 43, 0.24);
  border-radius: 8px;
}

.info-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.9;
}

.info-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.info-section-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-tf7-panel h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 2rem);
  text-transform: uppercase;
}

.info-tf7-panel ul,
.info-prizes-panel ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.info-prizes-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: start;
  gap: 22px;
}

.competition-context {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(100deg, rgba(224, 170, 43, 0.12), rgba(8, 8, 6, 0.88) 48%);
}

.competition-context > div,
.competition-context label {
  display: grid;
  gap: 5px;
}

.competition-context span,
.competition-context label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.competition-context strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  text-transform: uppercase;
}

.competition-context select {
  position: relative;
  z-index: 2;
  min-width: min(340px, 42vw);
}

.competition-submenu,
.team-public-submenu {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 6, 0.84);
}

.competition-submenu:empty {
  display: none;
}

.competition-submenu button,
.team-public-submenu button {
  position: relative;
  min-height: 32px;
  padding: 6px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.competition-submenu button:hover,
.competition-submenu button.is-active,
.team-public-submenu button:hover,
.team-public-submenu button.is-active {
  color: #090806;
  border-color: var(--accent);
  background: linear-gradient(135deg, #f7dc8b, var(--accent) 55%, #9b6507);
  box-shadow: 0 10px 28px rgba(220, 163, 35, 0.22);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  background: rgba(0, 0, 0, 0.66);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--accent);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.home {
  background: transparent;
}

.home-stats-section,
.home-venues-section,
.home-standings-section,
.home-cup-bracket-section,
.home-final-phase-bracket-section,
.home-rules-summary,
.home-contact-section {
  padding: clamp(42px, 6vw, 78px) clamp(18px, 4vw, 56px);
}

.home-stats-section {
  position: relative;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid rgba(214, 159, 34, 0.16);
  background:
    linear-gradient(180deg, rgba(220, 163, 35, 0.018), transparent 38%),
    transparent;
}

.home-stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 6, 4, 0.52), rgba(7, 6, 4, 0.18) 10%, transparent 24%, transparent 76%, rgba(7, 6, 4, 0.18) 90%, rgba(7, 6, 4, 0.52)),
    radial-gradient(ellipse at 0% 24%, rgba(224, 170, 43, 0.11), transparent 34%),
    radial-gradient(ellipse at 100% 18%, rgba(224, 170, 43, 0.08), transparent 32%);
}

.home-stats-section > * {
  position: relative;
  z-index: 1;
}

.home-intro {
  max-width: 980px;
}

.home-intro h1 {
  max-width: 820px;
  margin: 8px 0 16px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(2.05rem, 4.8vw, 4.35rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.home-intro p {
  max-width: 660px;
  color: rgba(247, 241, 210, 0.78);
  font-size: 1rem;
  line-height: 1.65;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.why-card,
.standings-card {
  background:
    linear-gradient(90deg, rgba(224, 170, 43, 0.16), transparent 2px),
    linear-gradient(180deg, rgba(255, 241, 191, 0.022), transparent 48%),
    linear-gradient(110deg, rgba(16, 12, 5, 0.86), rgba(4, 4, 3, 0.54));
  border: 1px solid rgba(224, 170, 43, 0.1);
  border-top-color: rgba(224, 170, 43, 0.28);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(3px);
}

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: clamp(18px, 2.4vw, 24px);
  overflow: hidden;
  position: relative;
  color: inherit;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -45px auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(220, 163, 35, 0.085), transparent 62%);
  border-radius: 999px;
  filter: blur(1px);
  animation: cornerGlow 5.4s ease-in-out infinite;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(224, 170, 43, 0.52);
}

.stat-card strong {
  color: var(--accent);
  font-size: clamp(2.45rem, 4.8vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
  text-shadow: 0 0 22px rgba(220, 163, 35, 0.14);
}

.stat-card span {
  color: rgba(247, 241, 210, 0.74);
  font-weight: 800;
  text-transform: uppercase;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.why-card {
  padding: 20px;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.why-card:hover,
.venue-card:hover,
.tournament-card:hover {
  transform: translateY(-3px);
  border-color: rgba(224, 170, 43, 0.22);
  border-top-color: rgba(224, 170, 43, 0.42);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.34), 0 0 18px rgba(220, 163, 35, 0.035);
}

.why-card h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.42rem;
  line-height: 1;
  text-transform: uppercase;
}

.why-card p {
  margin: 0;
  color: rgba(247, 241, 210, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.standings-card {
  overflow: hidden;
  padding: 0;
}

.section-kicker {
  max-width: 720px;
  margin-bottom: 20px;
}

.home-venues-section.has-section-layout-order {
  display: grid;
  gap: 24px;
}

.home-venues-section.has-section-layout-order .section-kicker {
  margin-bottom: 0;
}

.section-kicker h2,
.rules-summary-card h2,
.contact-copy h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(1.85rem, 3.7vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.venue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.venue-card {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(224, 170, 43, 0.14), transparent 2px),
    linear-gradient(180deg, rgba(255, 241, 191, 0.018), transparent 48%),
    linear-gradient(110deg, rgba(16, 12, 5, 0.82), rgba(4, 4, 3, 0.56));
  border: 1px solid rgba(224, 170, 43, 0.1);
  border-top-color: rgba(224, 170, 43, 0.24);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.venue-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: sepia(0.22) saturate(0.78) contrast(1.16) brightness(0.82);
  transition:
    filter 260ms ease,
    transform 420ms ease;
}

.venue-card:hover img {
  filter: sepia(0.12) saturate(0.92) contrast(1.2) brightness(0.92);
  transform: scale(1.035);
}

.venue-card div {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.venue-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.venue-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.42rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.venue-card p,
.contact-copy p {
  margin: 0;
  color: rgba(247, 241, 210, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.venue-card .button {
  width: max-content;
}

.venue-card.is-layout-editable {
  display: grid;
  gap: 0;
}

.venue-card.is-layout-editable div {
  display: contents;
}

.venue-card.is-layout-editable span,
.venue-card.is-layout-editable h3,
.venue-card.is-layout-editable p,
.venue-card.is-layout-editable .button {
  margin-inline: 20px;
}

.venue-card.is-layout-editable span {
  margin-top: 20px;
}

.venue-card.is-layout-editable .button {
  margin-bottom: 20px;
}

.dynamic-page-content a,
.section-kicker a,
.venue-card a:not(.button) {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.dynamic-page-content strong,
.section-kicker strong,
.venue-card strong {
  color: var(--accent);
  font-weight: 900;
}

.venues-page {
  display: grid;
  gap: 18px;
}

.venue-detail-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(16px, 2.4vw, 30px);
  align-items: stretch;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(224, 170, 43, 0.1), transparent 2px),
    rgba(8, 7, 4, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.3);
  scroll-margin-top: 92px;
}

.venue-detail-card[hidden] {
  display: none;
}

.venue-detail-card:nth-child(even) > img,
.venue-detail-card:nth-child(even) > .venue-image-fallback {
  order: 2;
}

.venue-detail-card:nth-child(even) > div:not(.venue-image-fallback) {
  order: 1;
}

.venue-detail-card > img,
.venue-image-fallback {
  width: 100%;
  height: clamp(340px, 24vw, 420px);
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.venue-image-fallback {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.12)),
    url("assets/images/background/totalf7-field-scroll.png") center / cover;
  color: var(--ink);
  text-align: center;
}

.venue-image-fallback strong {
  color: var(--accent);
  font-family: var(--display-font);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.venue-image-fallback span {
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.venue-detail-card > div:not(.venue-image-fallback) {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(20px, 3vw, 34px);
}

.venue-detail-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.venue-detail-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(2rem, 3.3vw, 3.35rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.venue-detail-card p {
  max-width: 820px;
  margin: 0;
  color: rgba(242, 223, 170, 0.82);
  line-height: 1.66;
  font-weight: 700;
}

.venue-detail-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.venue-detail-card dl div {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 9px;
  min-height: 96px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(224, 170, 43, 0.2);
  border-radius: 8px;
}

.venue-detail-card dt {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.venue-detail-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.28;
  text-align: left;
}

.venue-detail-card .button {
  width: max-content;
}

.dynamic-subtitle {
  margin: 0;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
}

.dynamic-image-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

.dynamic-image-frame img {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
}

.dynamic-image-frame figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 16px;
  color: var(--accent);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86) 34%, rgba(0, 0, 0, 0.94));
  font-weight: 800;
  line-height: 1.35;
}

.dynamic-columns-block {
  display: grid;
  grid-template-columns: repeat(var(--dynamic-columns, 1), minmax(0, 1fr));
  gap: 18px;
}

.dynamic-column {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.dynamic-carousel {
  --carousel-aspect-ratio: 21 / 9;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (14px * (var(--carousel-visible, 1) - 1))) / var(--carousel-visible, 1));
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.dynamic-carousel.is-size-pequeno {
  --carousel-aspect-ratio: 32 / 9;
}

.dynamic-carousel.is-size-grande {
  --carousel-aspect-ratio: 16 / 9;
}

.dynamic-carousel-slide {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  scroll-snap-align: start;
  text-decoration: none;
}

.dynamic-carousel-slide img {
  display: block;
  width: 100%;
  aspect-ratio: var(--carousel-aspect-ratio);
  object-fit: cover;
}

.dynamic-carousel-slide figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 4px;
  padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86) 36%, rgba(0, 0, 0, 0.94));
  color: #fff;
  line-height: 1.25;
}

.dynamic-carousel-slide figcaption strong {
  color: var(--accent);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 900;
}

.dynamic-carousel-slide figcaption span {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-rules-summary {
  padding-top: 30px;
}

.rules-summary-card {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(90deg, rgba(224, 170, 43, 0.16), transparent 2px),
    linear-gradient(110deg, rgba(155, 96, 8, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(16, 12, 5, 0.74), rgba(4, 4, 3, 0.58));
  border: 1px solid rgba(224, 170, 43, 0.1);
  border-top-color: rgba(224, 170, 43, 0.26);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(3px);
}

.rules-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.rules-points span {
  display: grid;
  gap: 6px;
  padding: 14px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(245, 196, 46, 0.26);
  border-radius: 8px;
  font-weight: 800;
}

.rules-points strong {
  color: var(--accent);
  font-family: var(--display-font);
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
}

.rules-summary-card .button {
  width: max-content;
}

.home-contact-section {
  display: grid;
  gap: 28px;
  justify-items: center;
  align-items: start;
  text-align: center;
}

.dynamic-page-content {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

.dynamic-page-content:empty {
  display: none;
}

.is-section-hidden {
  display: none !important;
}

.dynamic-home-block {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgba(224, 170, 43, 0.1);
  border-top-color: rgba(224, 170, 43, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(224, 170, 43, 0.14), transparent 2px),
    linear-gradient(180deg, rgba(16, 12, 5, 0.72), rgba(4, 4, 3, 0.58));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(3px);
}

.dynamic-home-block.is-hero {
  min-height: min(560px, 70vh);
  align-content: end;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.5);
  clip-path: inset(0 -100vmax);
}

.dynamic-home-block h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 4.4vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.dynamic-home-block p {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

.dynamic-block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.dynamic-article-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(245, 196, 46, 0.24);
  border-radius: 8px;
  background: rgba(8, 8, 6, 0.94);
}

.dynamic-article-card .button {
  width: max-content;
  margin-top: 4px;
}

.dynamic-article-card img,
.dynamic-home-block > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.article-page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.article-detail {
  display: grid;
  gap: 22px;
}

.article-detail-body {
  display: grid;
  gap: 18px;
}

.article-detail h1 {
  max-width: 900px;
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.9rem, 4.8vw, 3.8rem);
  line-height: 1;
}

.article-detail-summary {
  max-width: 780px;
  font-size: 1.15rem;
  font-weight: 800;
}

.article-detail-content {
  display: grid;
  gap: 14px;
  max-width: 820px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.75;
}

.contact-copy {
  max-width: 1040px;
}

.home-registration-summary {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 24px;
}

.home-registration-summary h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1;
  text-transform: uppercase;
}

.home-standings-section,
.home-cup-bracket-section,
.home-final-phase-bracket-section {
  display: grid;
  gap: 18px;
  border-top: 1px solid rgba(224, 170, 43, 0.08);
}

.home-section-toolbar {
  display: flex;
  justify-content: flex-end;
}

.home-section-toolbar select {
  width: min(100%, 420px);
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}

.standings-card-home {
  width: 100%;
}

.home-public-bracket-board {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 241, 191, 0.018), transparent 48%),
    rgba(5, 5, 3, 0.62);
  border: 1px solid rgba(224, 170, 43, 0.1);
  border-radius: 8px;
}

.home-registration-summary > .button {
  width: max-content;
}

.home-registration-summary .registration-info-grid article {
  justify-items: center;
}

.home-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(224, 170, 43, 0.14), transparent 2px),
    linear-gradient(180deg, rgba(255, 241, 191, 0.018), transparent 42%),
    rgba(5, 5, 4, 0.62);
  border: 1px solid rgba(224, 170, 43, 0.1);
  border-top-color: rgba(224, 170, 43, 0.24);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
}

.home-form .button {
  margin-top: 4px;
}

.registrations-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: 18px;
  align-items: start;
}

.registration-copy {
  max-width: none;
}

.registration-copy h2 {
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}

.registration-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.registration-info-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(224, 170, 43, 0.22);
  border-radius: 8px;
}

.registration-info-grid span,
.form-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.registration-info-grid strong {
  color: var(--accent);
  font-size: 1.24rem;
}

.registration-info-grid p,
.form-note {
  margin: 0;
  line-height: 1.55;
}

.registration-details {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.registration-details details {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(224, 170, 43, 0.2);
  border-radius: 8px;
}

.registration-details summary {
  padding: 12px 14px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 900;
}

.registration-details p {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 14px 14px;
  color: rgba(247, 241, 210, 0.76);
  line-height: 1.6;
}

.registration-details a,
.registration-details strong {
  color: var(--ink);
}

.registration-form textarea {
  min-height: 112px;
  resize: vertical;
}

.standings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.standings-header span {
  padding: 7px 10px;
  color: #000;
  background: linear-gradient(135deg, #fff0a5, var(--accent));
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.standings-header strong {
  color: var(--accent);
  font-size: 1.15rem;
}

.compact-table {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.compact-table table {
  min-width: 980px;
}

.compact-table th,
.compact-table td {
  color: var(--text);
  border-bottom-color: rgba(245, 196, 46, 0.16);
}

.compact-table th {
  padding-block: 9px;
  color: rgba(245, 196, 46, 0.72);
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.32);
}

.standings-row {
  --qualification-line: transparent;
  --qualification-line-rgb: 0, 0, 0;
  --qualification-line-alpha: 0;
  --qualification-alpha-strong: 0;
  --qualification-alpha-mid: 0;
  --qualification-alpha-soft: 0;
  --standings-row-base: transparent;
  animation: tableIn 360ms ease both;
  background: var(--standings-row-base);
}

.standings-row:nth-child(odd) {
  --standings-row-base: rgba(255, 241, 191, 0.035);
}

.standings-row:nth-child(even) {
  --standings-row-base: rgba(0, 0, 0, 0.18);
}

.standings-row td {
  position: relative;
  padding-block: 10px;
  font-weight: 800;
}

.standings-row td:first-child::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--qualification-line);
}

.qualification-champions {
  --qualification-line-rgb: 35, 119, 255;
  --qualification-line: rgba(var(--qualification-line-rgb), var(--qualification-line-alpha));
  background:
    linear-gradient(90deg, rgba(var(--qualification-line-rgb), var(--qualification-alpha-strong)), rgba(var(--qualification-line-rgb), var(--qualification-alpha-mid)) 12%, rgba(var(--qualification-line-rgb), var(--qualification-alpha-soft)) 30%, transparent 54%),
    #090907;
}

.qualification-europa {
  --qualification-line-rgb: 255, 157, 0;
  --qualification-line: rgba(var(--qualification-line-rgb), var(--qualification-line-alpha));
  background:
    linear-gradient(90deg, rgba(var(--qualification-line-rgb), var(--qualification-alpha-strong)), rgba(var(--qualification-line-rgb), var(--qualification-alpha-mid)) 12%, rgba(var(--qualification-line-rgb), var(--qualification-alpha-soft)) 30%, transparent 54%),
    #090907;
}

.qualification-conference {
  --qualification-line-rgb: 72, 192, 24;
  --qualification-line: rgba(var(--qualification-line-rgb), var(--qualification-line-alpha));
  background:
    linear-gradient(90deg, rgba(var(--qualification-line-rgb), var(--qualification-alpha-strong)), rgba(var(--qualification-line-rgb), var(--qualification-alpha-mid)) 12%, rgba(var(--qualification-line-rgb), var(--qualification-alpha-soft)) 30%, transparent 54%),
    #090907;
}

.team-standings-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.team-standings-link img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  padding: 0;
  border-radius: 4px;
  background: transparent;
}

.directory-page {
  display: none;
  gap: 18px;
}

.directory-page.is-active {
  display: grid;
}

.directory-toolbar {
  align-items: end;
}

.directory-search {
  display: grid;
  gap: 6px;
  width: min(320px, 100%);
  justify-self: start;
}

.directory-search span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.directory-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid rgba(224, 170, 43, 0.24);
  border-radius: 6px;
  background: rgba(5, 5, 5, 0.72);
  outline: none;
}

.directory-search input:focus {
  border-color: var(--accent);
}

.directory-list {
  display: grid;
  gap: 8px;
  align-content: start;
  grid-auto-rows: minmax(48px, max-content);
}

.directory-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  align-self: start;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid rgba(224, 170, 43, 0.16);
  border-radius: 6px;
  background: rgba(5, 5, 5, 0.48);
}

.directory-main-link,
.directory-side-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--ink);
  font-weight: 850;
}

.directory-main-link strong,
.directory-side-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-main-link:hover,
.directory-side-link:hover {
  color: var(--accent);
}

.directory-team-crest {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
}

.directory-chip-list {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  max-width: min(46vw, 620px);
  overflow: hidden;
}

.directory-chip {
  max-width: 190px;
  min-height: 24px;
  overflow: hidden;
  padding: 3px 8px;
  color: var(--muted);
  border: 1px solid rgba(224, 170, 43, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.72rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-chip:hover {
  color: #111;
  background: var(--accent);
}

.directory-muted {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.form-badges {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
  min-width: 118px;
}

.form-badge {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  color: #fff;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 900;
}

button.form-badge {
  cursor: pointer;
}

button.form-badge:hover,
button.form-badge:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

.form-badge.is-g {
  background: #00b568;
}

.form-badge.is-e {
  color: #111;
  background: #f7ca18;
}

.form-badge.is-p {
  background: #ff3e4d;
}

.form-empty {
  color: var(--muted);
}

.standings-legend {
  display: grid;
  gap: 10px;
  padding: 22px 60px;
  color: var(--accent);
  background: #000;
  border-top: 1px solid rgba(247, 202, 24, 0.2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.standings-legend span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-mark {
  width: 20px;
  height: 20px;
}

.legend-mark.is-champions {
  background: #2377ff;
}

.legend-mark.is-europa {
  background: #ff9d00;
}

.legend-mark.is-conference {
  background: #48c018;
}

.team-standings-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: riseIn 720ms ease both;
}

.reveal:nth-child(2) {
  animation-delay: 90ms;
}

.reveal:nth-child(3) {
  animation-delay: 160ms;
}

.hero {
  display: none;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 32px;
  min-height: min(760px, calc(100vh - 76px));
  padding: clamp(58px, 8vw, 105px) clamp(18px, 4vw, 56px) clamp(42px, 6vw, 82px);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.38)),
    url("assets/images/background/liga-futbol7-hero.png") center / cover;
}

.hero.is-active {
  display: grid;
}

.hero-content {
  max-width: 820px;
  animation: riseIn 760ms ease 120ms both;
}

.hero h1 {
  max-width: 820px;
  margin: 12px 0 18px;
  font-size: clamp(2.1rem, 4.6vw, 4.2rem);
  line-height: 1;
}

.hero p {
  max-width: 680px;
  color: rgba(247, 241, 210, 0.8);
  font-size: 1rem;
  line-height: 1.65;
}

.hero .eyebrow,
.season-panel .tag {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
  overflow: hidden;
}

.button:hover {
  transform: translateY(-2px);
}

.button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 246, 207, 0.48), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}

.button:hover::after {
  animation: buttonSheen 850ms ease;
}

.button-primary {
  color: #000;
  background: linear-gradient(135deg, #f7dc8b, var(--accent) 52%, #9d6708);
  box-shadow: 0 14px 34px rgba(220, 163, 35, 0.22);
}

.button-primary:hover {
  background: linear-gradient(135deg, #ffe7a0, #e7b33a 52%, #aa730e);
  box-shadow: 0 18px 42px rgba(220, 163, 35, 0.3);
}

.button-secondary {
  color: var(--ink);
  background: rgba(245, 196, 46, 0.08);
  border: 1px solid rgba(245, 196, 46, 0.45);
}

.button-secondary:hover {
  color: #000;
  background: linear-gradient(135deg, #ffe7a0, #e7b33a 52%, #aa730e);
  box-shadow: 0 18px 42px rgba(220, 163, 35, 0.3);
}

.button-secondary.dark {
  color: #000;
  background: linear-gradient(135deg, #fff0a5, var(--accent));
}

.season-panel {
  padding: 24px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(30, 23, 10, 0.96), rgba(7, 6, 4, 0.96));
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: riseIn 760ms ease 260ms both;
}

.season-panel strong {
  display: block;
  margin: 16px 0;
  font-size: 1.42rem;
  line-height: 1.15;
}

.season-stats {
  display: grid;
  gap: 10px;
}

.season-stats span {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.season-stats b {
  color: var(--accent);
}

.section {
  min-height: calc(100vh - 76px);
  padding: 44px clamp(18px, 4vw, 56px) 64px;
  background: transparent;
}

.section:nth-of-type(odd) {
  background: transparent;
}

.page-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.page-toolbar h1 {
  margin: 6px 0 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(1.75rem, 3.3vw, 2.75rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

select,
input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(224, 170, 43, 0.18);
  border-radius: 8px;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

select:focus,
input:focus,
textarea:focus {
  background: rgba(0, 0, 0, 0.42);
  border-color: rgba(224, 170, 43, 0.46);
  box-shadow: 0 0 0 3px rgba(224, 170, 43, 0.08);
}

.page-toolbar select {
  max-width: 280px;
}

.tournament-grid,
.ranking-layout,
.admin-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tournament-card,
.ranking-panel,
.report-form,
.report-panel,
.match-detail,
.table-wrap,
.matchday-list {
  background:
    linear-gradient(90deg, rgba(224, 170, 43, 0.14), transparent 2px),
    linear-gradient(180deg, rgba(255, 241, 191, 0.018), transparent 42%),
    rgba(8, 7, 4, 0.64);
  border: 1px solid rgba(224, 170, 43, 0.1);
  border-top-color: rgba(224, 170, 43, 0.24);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(3px);
}

.tournament-card {
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: 22px;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.tournament-card h2,
.ranking-panel h2,
.report-panel h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.42rem;
  line-height: 1;
  text-transform: uppercase;
}

.tournament-card p {
  color: var(--muted);
  line-height: 1.65;
}

.status,
.role-pill {
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #000;
  background: linear-gradient(135deg, #f7dc8b, var(--brand));
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status.preparacion {
  color: var(--accent);
  background: var(--blue);
}

.tournament-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.tournament-card div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.matchday-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
}

.matchday-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(224, 170, 43, 0.14), transparent 2px),
    linear-gradient(180deg, rgba(255, 241, 191, 0.018), transparent 42%),
    rgba(8, 7, 4, 0.5);
}

.matchday-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 13px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.matchday-list button:hover,
.matchday-list button.is-selected {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
}

.matchday-list button.is-filtered {
  color: #06190d;
  background: #35d36b;
  border-color: #35d36b;
}

.matchday-list strong,
.matchday-list span,
.fixture-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.matchday-list button:hover strong,
.matchday-list button:hover span,
.matchday-list button.is-selected strong,
.matchday-list button.is-selected span,
.matchday-list button.is-filtered strong,
.matchday-list button.is-filtered span {
  color: inherit;
}

.fixture-list {
  display: grid;
  gap: 12px;
}

.calendar-matchday-group {
  display: grid;
  gap: 12px;
}

.calendar-matchday-group + .calendar-matchday-group {
  margin-top: 18px;
}

.calendar-matchday-group > h2 {
  width: fit-content;
  margin: 0;
  padding-bottom: 5px;
  color: var(--ink);
  border-bottom: 3px solid var(--accent);
  font-family: var(--display-font);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  text-transform: uppercase;
}

.calendar-matchday-fixtures {
  display: grid;
  gap: 12px;
}

.fixture-card {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) minmax(180px, 210px);
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(12, 10, 6, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fixture-card:not(:has(.fixture-teams)) {
  grid-template-columns: 1fr;
}

.fixture-postponed {
  min-width: 88px;
  color: #e24c3f;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-align: center;
}

.fixture-card.is-postponed {
  grid-template-columns: minmax(150px, 190px) minmax(88px, auto) minmax(0, 1fr) minmax(180px, 210px);
  border-color: rgba(226, 76, 63, 0.42);
}

.fixture-teams {
  display: grid;
  grid-template-columns: minmax(0, 210px) 64px minmax(0, 210px);
  align-items: center;
  justify-content: center;
  column-gap: 18px;
  min-width: 0;
}

.fixture-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.fixture-match-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.fixture-card.is-clickable,
.team-match-row[data-open-match-detail] {
  cursor: pointer;
}

.fixture-card.is-clickable:hover,
.fixture-card.is-clickable:focus-visible,
.team-match-row[data-open-match-detail]:hover,
.team-match-row[data-open-match-detail]:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.team-line,
.team-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.inline-team-link,
.inline-match-link {
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.inline-team-link:hover strong,
.inline-team-link:focus-visible strong {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-match-link:hover,
.inline-match-link:focus-visible {
  color: var(--accent);
  outline: 1px solid var(--accent);
}

.fixture-teams .team-line:first-child {
  flex-direction: row-reverse;
  justify-content: flex-start;
  justify-self: end;
  text-align: right;
}

.fixture-teams .team-line:last-child {
  justify-self: start;
}

.team-line img,
.team-cell img,
.ranking-row img,
.match-scoreboard img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.team-line strong,
.team-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  box-shadow: none;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td:not(:nth-child(2)),
th:not(:nth-child(2)) {
  text-align: center;
}

td:nth-child(3) {
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

.ranking-layout,
.admin-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-layout.is-single {
  grid-template-columns: 1fr;
}

.team-page-toolbar {
  align-items: end;
}

.team-detail-league-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
}

.team-detail-league-link:hover,
.team-detail-league-link:focus-visible {
  text-decoration: underline;
}

.team-profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: 18px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.team-profile-grid:has(.team-roster-card.is-hidden) {
  grid-template-columns: 1fr;
}

.team-profile-card,
.team-roster-card,
.team-matches-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  min-width: 0;
  border: 1px solid rgba(224, 170, 43, 0.28);
  border-radius: 8px;
  background: rgba(8, 7, 4, 0.58);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(2px);
}

.team-profile-main {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
}

.team-profile-card {
  align-content: start;
  align-self: start;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 8%, rgba(224, 170, 43, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(26, 21, 10, 0.76), rgba(6, 6, 4, 0.62));
}

.team-profile-card > img {
  width: clamp(132px, 12vw, 172px);
  height: clamp(132px, 12vw, 172px);
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.42));
}

.team-profile-card > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.team-profile-card > strong {
  color: var(--accent);
  font-family: var(--display-font);
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.team-results-chart {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(224, 170, 43, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  text-align: left;
}

.team-results-legend {
  display: grid;
  gap: 7px;
}

.team-results-legend span {
  display: grid;
  grid-template-columns: 10px 24px 1fr;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.team-results-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #63f477;
}

.team-results-legend i.is-draw {
  background: #d7dce5;
}

.team-results-legend i.is-loss {
  background: #e24c3f;
}

.team-results-legend b {
  color: var(--ink);
}

.team-shirt-color {
  display: grid;
  gap: 4px;
}

.team-shirt-color span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.team-shirt-color strong {
  color: var(--accent);
  font-size: 1rem;
}

.team-profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.team-advanced-stats {
  display: grid;
  gap: 12px;
  width: 100%;
}

.team-advanced-stats summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(224, 170, 43, 0.3);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--display-font);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  list-style: none;
}

.team-advanced-stats summary::-webkit-details-marker {
  display: none;
}

.team-advanced-stats summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
}

.team-advanced-stats[open] summary::after {
  content: "-";
}

.team-advanced-stats[open] {
  align-content: start;
}

.team-profile-stats div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(224, 170, 43, 0.24);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.team-profile-stats small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.team-profile-stats b {
  color: var(--accent);
  font-size: 1.25rem;
}

.team-summary-box,
.team-match-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.team-summary-box div,
.team-match-summary div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(247, 202, 24, 0.18);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
}

.team-summary-box span,
.team-match-summary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.team-summary-box strong,
.team-match-summary strong {
  color: var(--accent);
}

.team-roster-card {
  align-content: start;
  min-height: 0;
  background:
    linear-gradient(90deg, rgba(224, 170, 43, 0.08), transparent 2px),
    linear-gradient(180deg, rgba(255, 241, 191, 0.026), transparent 45%),
    rgba(8, 7, 4, 0.58);
}

.team-player-table {
  display: grid;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
}

.team-competition-filter {
  display: grid;
  gap: 6px;
  max-width: 420px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.team-player-row {
  display: grid;
  grid-template-columns: 64px minmax(180px, 1fr) repeat(4, minmax(48px, 60px));
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(224, 170, 43, 0.16);
}

.team-player-row:last-child {
  border-bottom: 0;
}

.team-player-link {
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(224, 170, 43, 0.16);
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.team-player-link:hover,
.team-player-link:focus-visible {
  background: rgba(247, 202, 24, 0.1);
  outline: 1px solid rgba(247, 202, 24, 0.34);
  transform: translateX(3px);
}

.team-player-head {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.team-player-head img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
}

.stat-icon {
  display: inline-block;
  vertical-align: middle;
}

.bo-stat-icon {
  filter: drop-shadow(0 0 5px rgba(247, 202, 24, 0.24));
}

.yellow-card,
.red-card {
  width: 15px;
  height: 22px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.36), 0 3px 10px rgba(0, 0, 0, 0.28);
  transform: rotate(3deg);
}

.yellow-card {
  background: linear-gradient(135deg, #fff275, #f7ca18 55%, #c99200);
}

.red-card {
  background: linear-gradient(135deg, #ff7b72, #e24c3f 55%, #94180f);
}

.team-player-number {
  color: var(--accent);
  font-weight: 900;
}

.team-player-row span:not(:nth-child(2)),
.team-player-row strong ~ span {
  text-align: center;
}

.team-empty-state {
  padding: 14px;
  color: var(--muted);
  border: 1px dashed rgba(224, 170, 43, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
}

.player-stats-page {
  display: none;
  gap: 22px;
}

.player-stats-page.is-active {
  display: grid;
}

.player-stats-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 340px);
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(247, 202, 24, 0.3);
  border-radius: 10px;
  background: linear-gradient(110deg, rgba(247, 202, 24, 0.12), rgba(6, 9, 12, 0.88) 42%);
}

.player-stats-shirt {
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  color: #090a0b;
  background: var(--accent);
  border-radius: 50%;
  font-family: var(--display-font);
  font-size: 2rem;
  font-weight: 900;
}

.player-stats-identity > div:nth-child(2) {
  display: grid;
  gap: 4px;
}

.player-stats-identity span,
.player-stats-identity label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.player-stats-identity strong {
  font-family: var(--display-font);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  text-transform: uppercase;
}

.player-stats-identity label {
  display: grid;
  gap: 6px;
}

.player-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.player-stats-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 520px;
  padding: clamp(18px, 2.5vw, 30px);
  border: 2px solid rgba(215, 220, 229, 0.17);
  border-radius: 14px;
  background: rgba(4, 10, 15, 0.88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.player-stats-panel h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  text-transform: uppercase;
}

.player-games-total {
  display: grid;
  place-items: center;
  min-height: 210px;
}

.player-games-ring {
  --player-results: conic-gradient(#63f477 0deg, #d7dce5 0deg, #e24c3f 0deg);
  position: relative;
  display: grid;
  place-items: center;
  width: 178px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--player-results);
}

.player-games-ring::before {
  position: absolute;
  inset: 17px;
  content: "";
  background: #071017;
  border-radius: inherit;
}

.player-games-ring span,
.player-games-ring strong {
  position: relative;
  z-index: 1;
}

.player-games-ring span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.player-games-ring strong {
  color: var(--ink);
  font-size: 2.8rem;
  line-height: 0.9;
}

.team-results-chart .team-games-ring {
  width: 104px;
}

.team-results-chart .team-games-ring::before {
  inset: 11px;
}

.team-results-chart .team-games-ring strong {
  font-size: 1.8rem;
}

.team-results-chart .team-games-ring span {
  transform: translateY(5px);
}

.player-games-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.player-games-breakdown div,
.player-performance-goals,
.player-performance-bo,
.player-card-list {
  border: 2px solid rgba(215, 220, 229, 0.17);
  border-radius: 12px;
  background: rgba(3, 9, 14, 0.72);
}

.player-games-breakdown div {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 112px;
  padding: 12px 8px;
  text-align: center;
}

.player-games-breakdown strong,
.player-performance-list strong {
  color: var(--accent);
  font-size: 2.1rem;
  line-height: 1;
}

.player-games-breakdown div:nth-child(2) strong {
  color: #d7dce5;
}

.player-games-breakdown div:nth-child(3) strong {
  color: #e24c3f;
}

.player-games-breakdown span,
.player-performance-list span,
.player-card-list span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.player-performance-list {
  display: grid;
  gap: 18px;
  margin: auto 0;
}

.player-performance-goals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 160px;
}

.player-performance-goals > div,
.player-performance-bo {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
}

.player-performance-goals > div {
  align-content: center;
}

.player-performance-goals > div + div {
  border-left: 2px solid rgba(215, 220, 229, 0.17);
}

.player-performance-bo {
  min-height: 138px;
}

.player-cards-panel {
  align-content: center;
}

.player-cards-panel.is-sanctioned {
  border-color: rgba(226, 76, 63, 0.62);
  background: linear-gradient(180deg, rgba(128, 20, 16, 0.34), rgba(20, 4, 4, 0.78));
}

.player-sanction-warning {
  margin: 0;
  padding: 10px;
  color: #ffb0a8;
  font-weight: 900;
  text-align: center;
}

.player-card-list {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
}

.player-card-list div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
}

.player-card-list strong {
  font-size: 1.65rem;
}

.team-sanction-section {
  display: grid;
  gap: 8px;
  width: min(620px, 100%);
  justify-self: center;
  padding: 14px;
  border: 1px solid rgba(224, 170, 43, 0.18);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.44);
}

.team-sanction-section h2 {
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
}

.team-sanction-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(224, 170, 43, 0.18);
  border-radius: 6px;
}

.team-sanction-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.match-sanctioned-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(226, 76, 63, 0.28);
  border-radius: 6px;
}

.player-stats-note {
  align-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.rules-page {
  display: grid;
  gap: 18px;
}

.rules-alert {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(100deg, rgba(224, 170, 43, 0.16), transparent 48%),
    rgba(8, 7, 4, 0.84);
  border: 1px solid rgba(224, 170, 43, 0.32);
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.rules-alert span,
.rules-body h3 {
  color: var(--accent);
  font-family: var(--display-font);
  font-weight: 900;
  text-transform: uppercase;
}

.rules-alert h2 {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3.2vw, 3.3rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.rules-alert p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 800;
}

.rules-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rules-quick-grid article {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: rgba(8, 7, 4, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rules-quick-grid strong {
  color: var(--accent);
  font-family: var(--display-font);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 0.9;
}

.rules-quick-grid span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.rules-accordion {
  display: grid;
  gap: 10px;
}

.rules-accordion details {
  overflow: hidden;
  background: rgba(5, 5, 5, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rules-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--display-font);
  font-size: 1.16rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rules-accordion summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.5rem;
}

.rules-accordion details[open] summary {
  border-bottom: 1px solid var(--line);
}

.rules-accordion details[open] summary::after {
  content: "-";
}

.rules-body {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
  color: var(--text);
}

.rules-body p,
.rules-body li {
  color: rgba(242, 223, 170, 0.82);
  line-height: 1.62;
}

.rules-body p,
.rules-body ul,
.rules-body ol,
.rules-body h3 {
  margin: 0;
}

.rules-body ul,
.rules-body ol {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.rules-body li::marker {
  color: var(--accent);
  font-weight: 900;
}

.team-matches-card {
  align-content: start;
  color: var(--muted);
}

.team-match-list {
  display: grid;
  gap: 10px;
}

.team-next-match {
  display: grid;
  gap: 10px;
}

.team-match-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1fr) minmax(84px, 0.35fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(224, 170, 43, 0.22);
  border-radius: 6px;
  background: rgba(5, 5, 5, 0.42);
}

.team-next-match-card {
  grid-template-columns: minmax(120px, 1fr) 72px minmax(180px, 1fr);
}

.team-next-match-card .team-match-score {
  justify-items: center;
  text-align: center;
}

.team-next-match-card .team-match-rival {
  justify-content: flex-end;
  text-align: right;
}

.team-match-round,
.team-match-rival > div,
.team-match-score {
  display: grid;
  gap: 4px;
}

.team-match-round strong,
.team-match-rival strong,
.team-match-score strong {
  color: var(--accent);
}

.team-match-round span,
.team-match-rival span,
.team-match-score span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.team-match-rival {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.team-match-rival img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border-radius: 4px;
}

.team-match-rival strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-match-score {
  justify-items: end;
  text-align: right;
}

.team-match-score strong {
  font-size: 1.2rem;
}

.team-match-score.is-win strong {
  color: #49b078;
}

.team-match-score.is-loss strong {
  color: #ff5d52;
}

.team-match-score.is-draw strong {
  color: #ffd95a;
}

.team-match-events {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.team-match-events span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.sanctions-public-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.55fr);
  gap: 18px;
  align-items: start;
}

.sanctions-public-panel,
.sanctions-public-info {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.36);
}

.sanctions-public-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 16px;
  align-items: end;
}

.sanctions-public-head .section-kicker {
  margin-bottom: 0;
}

.sanctions-public-head h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.sanctions-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sanctions-filters label {
  font-size: 0.76rem;
}

.sanctions-filters select {
  min-height: 38px;
}

.sanctions-public-list {
  display: grid;
  gap: 14px;
}

.sanctions-status-panel,
.sanctions-completed-panel {
  display: grid;
  gap: 12px;
  width: 100%;
  justify-self: stretch;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid rgba(73, 176, 120, 0.45);
  border-radius: 8px;
  background: rgba(4, 18, 11, 0.38);
}

.sanctions-status-panel {
  border-color: rgba(224, 170, 43, 0.24);
  background: rgba(5, 5, 5, 0.28);
}

.sanctions-completed-panel .section-kicker {
  margin-bottom: 0;
}

.sanctions-completed-panel h2 {
  color: #49b078;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}

.sanctions-matchday-group {
  display: grid;
  gap: 8px;
}

.sanctions-matchday-group > h3 {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 1rem;
}

.sanctions-matchday-list {
  display: grid;
  gap: 8px;
}

.sanction-public-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #050505;
}

.sanction-public-row h3 {
  margin: 6px 0 4px;
  color: var(--accent);
  font-size: 1.05rem;
}

.sanction-public-row p,
.sanctions-public-info p,
.sanctions-public-info span,
.sanction-note {
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
  font-size: 0.92rem;
}

.sanction-public-row p strong {
  color: var(--accent);
}

.sanction-public-row dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: 6px;
  margin: 0;
}

.sanction-public-row dl div {
  display: grid;
  gap: 2px;
  min-width: 76px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  background: #000;
}

.sanction-public-row dt {
  font-size: 0.62rem;
  text-transform: uppercase;
}

.sanction-public-row dd {
  color: var(--accent);
  font-size: 1rem;
  text-align: left;
}

.sanction-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.sanction-status {
  display: inline-flex;
  width: max-content;
  padding: 5px 8px;
  color: #111;
  background: var(--accent);
  border-radius: 3px;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sanction-status.is-cumplida {
  color: #fff;
  background: #49b078;
}

.sanction-status.is-anulada {
  color: #fff;
  background: #777;
}

.sanctions-public-info h2 {
  margin: 0;
  color: var(--accent);
}

.sanctions-public-info div {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.sanctions-public-info strong {
  color: var(--accent);
}

.ranking-panel,
.report-form,
.report-panel,
.match-detail {
  padding: 20px;
}

.ranking-panel h2,
.report-panel h2 {
  margin-bottom: 14px;
}

.ranking-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.ranking-podium-item {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
  text-align: center;
}

.ranking-podium-item.is-place-1 {
  min-height: 190px;
  background: rgba(247, 202, 24, 0.16);
}

.ranking-podium-item span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  color: #000;
  border-radius: 999px;
  background: var(--accent);
  font-weight: 900;
}

.ranking-columns {
  column-count: 2;
  column-gap: 12px;
}

.ranking-columns .ranking-row {
  break-inside: avoid;
}

.ranking-empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: clamp(28px, 6vw, 64px);
  text-align: center;
}

.ranking-empty-state strong {
  max-width: 520px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: normal;
}

.ranking-row {
  display: grid;
  grid-template-columns: 34px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.ranking-row span {
  color: var(--muted);
  font-weight: 800;
}

.ranking-row strong {
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ranking-row em {
  color: #9b7600;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.ranking-team-crest {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.ranking-podium-item strong {
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.1;
}

.ranking-podium-item small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.ranking-mvp-podium {
  width: 100%;
  max-width: none;
}

.ranking-mvp-podium .mvp-podium-grid {
  min-height: 246px;
}

.ranking-mvp-podium .mvp-card b {
  text-transform: uppercase;
}

.inline-player-link {
  display: inline;
  max-width: 100%;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: inherit;
}

.inline-player-link:hover,
.inline-player-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  outline: 0;
}

.match-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 22px;
  background: rgba(5, 5, 5, 0.62);
  border-radius: 8px;
}

.match-scoreboard div,
.match-scoreboard > .inline-team-link {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0;
  text-align: center;
}

.match-scoreboard img {
  width: 70px;
  height: 70px;
}

.match-scoreboard span {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 800;
}

.match-score-center {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.match-score-center small {
  padding: 5px 10px;
  color: var(--accent);
  border: 1px solid rgba(247, 202, 24, 0.42);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.72);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.match-scoreboard-public strong {
  font-size: 1.15rem;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.match-meta span {
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(5, 5, 5, 0.58);
  border-radius: 8px;
  font-weight: 700;
}

.report-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.score-inputs,
.event-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-status {
  margin-bottom: 16px;
  padding: 13px;
  color: var(--muted);
  background: #050505;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.report-status.is-ok {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
}

.report-status.is-error {
  color: var(--accent);
  background: #000;
  border-color: var(--accent);
}

.event-list {
  display: grid;
  gap: 8px;
}

.match-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 410px) minmax(0, 1fr);
  gap: 16px;
}

.match-mvp-podium {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(100%, 980px);
  margin: 0 auto 16px;
  padding: 16px 16px 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(224, 170, 43, 0.16), transparent 48%),
    rgba(5, 5, 5, 0.54);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.match-mvp-podium h2 {
  position: relative;
  z-index: 2;
  font-size: 1rem;
}

.mvp-podium-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  height: 46px;
  margin-bottom: -4px;
}

.mvp-podium-icon .bo-stat-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.mvp-podium-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: end;
  gap: 0;
  padding: 4px clamp(6px, 1.4vw, 16px) 18px;
}

.mvp-podium-grid::after {
  content: "";
  position: absolute;
  right: clamp(6px, 2vw, 22px);
  bottom: 0;
  left: clamp(6px, 2vw, 22px);
  height: 18px;
  background: linear-gradient(180deg, rgba(255, 222, 101, 0.36), rgba(133, 88, 6, 0.78));
  border: 1px solid rgba(224, 170, 43, 0.46);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}

.mvp-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 9px;
  min-height: 150px;
  padding: 82px 12px 16px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 224, 114, 0.22), rgba(224, 170, 43, 0.08) 42%, rgba(0, 0, 0, 0.62)),
    rgba(0, 0, 0, 0.42);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 3px 3px;
  box-shadow: inset 0 1px 0 rgba(255, 241, 191, 0.12);
}

.mvp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent, rgba(255, 241, 191, 0.08), transparent),
    radial-gradient(ellipse at 50% 8%, rgba(255, 221, 89, 0.22), transparent 46%);
  opacity: 0.78;
}

.mvp-card.is-place-1 {
  order: 2;
  min-height: 214px;
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(255, 225, 121, 0.34), rgba(224, 170, 43, 0.12) 44%, rgba(0, 0, 0, 0.58)),
    rgba(0, 0, 0, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 191, 0.18),
    0 0 26px rgba(224, 170, 43, 0.13);
}

.mvp-card.is-place-2 {
  order: 1;
  min-height: 178px;
  margin-top: 36px;
}

.mvp-card.is-place-3 {
  order: 3;
  min-height: 132px;
  margin-top: 82px;
}

.mvp-card span {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  color: rgba(255, 241, 191, 0.42);
  background: transparent;
  border-radius: 0;
  font-family: var(--display-font);
  font-size: clamp(2.35rem, 4vw, 3.65rem);
  font-weight: 900;
  line-height: 0.9;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.mvp-card .stat-icon {
  position: relative;
  z-index: 1;
  margin-bottom: 2px;
}

.mvp-card strong,
.mvp-card em {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mvp-card strong {
  color: var(--ink);
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  font-weight: 950;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.mvp-card em {
  color: rgba(255, 223, 137, 0.9);
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
  font-style: normal;
  font-weight: 900;
}

.mvp-card b {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-size: 0.98rem;
}

.match-public-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  background: rgba(5, 5, 5, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.match-public-panel h2 {
  font-size: 1rem;
}

.match-bracket-notice {
  max-width: 720px;
}

.match-bracket-notice p {
  color: var(--muted);
  font-weight: 800;
}

.match-player-stats {
  display: grid;
  gap: 14px;
}

.match-player-team-group {
  display: grid;
  gap: 6px;
}

.match-player-stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(4, 42px);
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.match-player-stat-row strong,
.match-player-stat-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-player-stat-row b {
  color: var(--accent);
  text-align: center;
}

.match-player-stat-head {
  background: rgba(224, 170, 43, 0.13);
  border-color: rgba(224, 170, 43, 0.42);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.match-player-team-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.match-player-team-title img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.match-player-team-title strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-item {
  display: grid;
  grid-template-columns: 34px 22px 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(5, 5, 5, 0.58);
  border-radius: 8px;
}

.event-item img,
.match-stat-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.event-item .stat-icon,
.match-player-stat-head .stat-icon,
.mvp-card .stat-icon {
  justify-self: center;
}

.event-item .yellow-card,
.event-item .red-card,
.match-player-stat-head .yellow-card,
.match-player-stat-head .red-card {
  width: 13px;
  height: 19px;
}

.match-player-stat-head .match-stat-icon {
  width: 21px;
  height: 21px;
}

.match-player-stat-head .bo-stat-icon {
  width: 27px;
  height: 27px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}

.event-item span,
.event-item strong {
  font-weight: 800;
}

.event-item em {
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  display: grid;
  grid-template-columns: 180px minmax(560px, 1fr) minmax(310px, 0.72fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
  padding: clamp(16px, 2.4vw, 26px) clamp(18px, 4vw, 46px);
  color: rgba(247, 241, 210, 0.74);
  background:
    linear-gradient(180deg, rgba(16, 12, 6, 0.58), rgba(3, 3, 2, 0.9)),
    radial-gradient(ellipse at 80% 0%, rgba(224, 170, 43, 0.08), transparent 42%);
  border-top: 1px solid rgba(224, 170, 43, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-footer a {
  color: rgba(255, 246, 199, 0.88);
  font-weight: 800;
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-brand,
.footer-contact,
.footer-cta {
  min-width: 0;
}

.footer-brand {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  max-width: 180px;
}

.footer-brand img {
  width: auto;
  height: 108px;
  filter: drop-shadow(0 16px 34px rgba(245, 196, 46, 0.28));
  animation: logoBreath 6.2s ease-in-out infinite;
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.footer-contact > a,
.footer-contact-card,
.footer-phone-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 10px;
  min-height: 52px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(224, 170, 43, 0.18);
  border-radius: 8px;
}

.footer-contact > a:hover,
.footer-contact-card:hover,
.footer-phone-card:hover {
  border-color: rgba(224, 170, 43, 0.48);
}

.footer-contact strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 0.98rem;
  line-height: 1;
  text-transform: uppercase;
}

.footer-contact small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-phone-card small {
  display: grid;
  gap: 1px;
}

.footer-phone-numbers {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-self: center;
  justify-items: end;
  gap: 1px;
}

.footer-phone-numbers a,
.footer-phone-card small a {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.footer-phone-card {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  column-gap: 12px;
  background: rgba(0, 0, 0, 0.14);
}

.footer-phone-card .footer-icon {
  grid-row: 1;
  grid-column: 1;
  width: 26px;
  height: 26px;
  font-size: 0.84rem;
}

.footer-phone-card strong {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  margin-left: 34px;
}

.footer-icon {
  grid-row: 1 / span 2;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #070604;
  background: linear-gradient(135deg, #fff0a5, var(--accent));
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.footer-icon-instagram::before {
  content: none;
}

.footer-icon-instagram {
  background:
    radial-gradient(circle at 34% 100%, #fff0a5 0 18%, transparent 38%),
    linear-gradient(135deg, #fff1bf, var(--accent) 38%, #b77f08 68%, #4a3208);
}

.footer-icon-instagram svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
}

.footer-icon-instagram circle:last-child {
  fill: #fff;
  stroke: none;
}

.footer-icon-mail::before {
  content: "@";
}

.footer-icon-phone::before {
  content: "☎";
}

.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 14px;
  padding: 12px 14px;
  background:
    linear-gradient(90deg, rgba(224, 170, 43, 0.14), transparent 2px),
    linear-gradient(180deg, rgba(255, 241, 191, 0.018), transparent 44%),
    rgba(8, 7, 4, 0.58);
  border: 1px solid rgba(224, 170, 43, 0.12);
  border-top-color: rgba(224, 170, 43, 0.24);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(3px);
  justify-self: stretch;
}

.footer-cta span {
  grid-column: 1;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-cta strong {
  grid-column: 1;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.12rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.footer-cta .button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: max-content;
  min-height: 40px;
  margin-top: 0;
  padding: 9px 14px;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(26px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoBreath {
  0%,
  100% {
    filter: drop-shadow(0 10px 22px rgba(220, 163, 35, 0.12));
    transform: translateY(0) scale(1);
  }

  48% {
    filter: drop-shadow(0 14px 30px rgba(220, 163, 35, 0.24));
    transform: translateY(-1px) scale(1.015);
  }
}

@keyframes buttonSheen {
  0% {
    left: -55%;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    left: 120%;
    opacity: 0;
  }
}

@keyframes cornerGlow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 0.92;
    transform: scale(1.08);
  }
}

@keyframes tableIn {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes stadiumGlow {
  from {
    background-position: 0% 0%, 100% 0%, 0% 0%, 18% 10%, 36% 18%, 0 0;
  }

  to {
    background-position: 8% 4%, 92% 8%, 6% 10%, 28% 16%, 48% 22%, 0 0;
  }
}

@keyframes premiumGlow {
  0% {
    background-position: 50% 0%, 8% 18%, 92% 24%, 50% 100%, 0 0, 0 0;
    filter: brightness(0.97);
  }

  45% {
    background-position: 51% 3%, 10% 21%, 90% 27%, 49% 98%, 0 0, 0 0;
    filter: brightness(1.01);
  }

  100% {
    background-position: 49% 1%, 12% 19%, 88% 25%, 51% 99%, 0 0, 0 0;
    filter: brightness(0.99);
  }
}

@keyframes grassDrift {
  0% {
    background-position: 0 0, 50% 0%, 0% 0%, 0 0, 0 0, 0 0;
    filter: brightness(0.94) saturate(0.92);
  }

  45% {
    background-position: 0 0, 52% 3%, 6% 5%, 70% 88%, 48% 12%, 0 0;
    filter: brightness(0.99) saturate(1);
  }

  100% {
    background-position: 0 0, 49% 2%, 10% 8%, 66% 84%, 52% 16%, 0 0;
    filter: brightness(0.96) saturate(0.98);
  }
}

@keyframes lightSweep {
  0%,
  100% {
    transform: translateX(-42%);
    opacity: 0.26;
  }

  45% {
    transform: translateX(42%);
    opacity: 0.62;
  }

  70% {
    transform: translateX(12%);
    opacity: 0.36;
  }
}

@keyframes premiumSweep {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.56;
  }

  42% {
    transform: translate3d(0.6%, -0.4%, 0) scale(1.008);
    opacity: 0.7;
  }

  72% {
    transform: translate3d(-0.4%, 0.4%, 0) scale(1.004);
    opacity: 0.62;
  }
}

@keyframes grassShadow {
  0%,
  100% {
    opacity: 0.62;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 0.78;
    transform: translate3d(0, -0.6%, 0) scale(1.01);
  }
}

@keyframes fieldAtmosphere {
  0%,
  100% {
    opacity: 0.72;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 0.84;
    transform: translate3d(0, -0.4%, 0) scale(1.006);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1050px) {
  .site-footer {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .footer-contact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-cta {
    grid-column: 1 / -1;
  }

  .nav-menu-button,
  .site-nav a {
    padding-inline: 8px;
    font-size: 0.92rem;
  }

  .fixture-card,
  .fixture-card.is-postponed {
    grid-template-columns: 1fr;
  }

  .fixture-teams {
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    justify-content: stretch;
  }

  .score {
    text-align: center;
  }

  .stats-grid,
  .why-grid,
  .venue-grid,
  .info-summary-grid,
  .dynamic-columns-block,
  .venue-detail-card,
  .rules-quick-grid,
  .rules-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-prizes-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --nav-height: 70px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--nav-height);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #000;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-bar {
    justify-content: space-between;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-item {
    position: static;
  }

  .nav-menu-button {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown,
  .mega-dropdown {
    position: static;
    width: 100%;
    min-width: 0;
    transform: none;
    box-shadow: none;
  }

  .mega-dropdown {
    grid-template-columns: 1fr;
  }

  .league-browser,
  .nav-item.is-open > .league-browser,
  .league-cascade-panel,
  .league-browser-venue:hover > .league-cascade-panel,
  .league-browser-league:hover > .league-cascade-panel,
  .league-browser-venue:focus-within > .league-cascade-panel,
  .league-browser-league:focus-within > .league-cascade-panel {
    position: static;
    display: grid;
    width: 100%;
    min-width: 0;
    border-radius: 8px;
    box-shadow: none;
  }

  .league-cascade-panel {
    margin: 0 0 0 12px;
    border-color: var(--line);
  }

  .hero,
  .hero.is-active,
  .matchday-layout,
  .team-match-row,
  .sanctions-public-layout,
  .sanctions-public-head,
  .sanctions-filters,
  .sanction-public-row,
  .ranking-layout,
  .admin-layout,
  .team-profile-grid,
  .site-footer,
  .home-contact-section {
    grid-template-columns: 1fr;
  }

  .team-roster-card {
    grid-row: auto;
  }

  .hero {
    min-height: auto;
  }

  .tournament-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .registrations-page {
    grid-template-columns: 1fr;
  }

  .info-section-grid {
    grid-template-columns: 1fr;
  }

  .page-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .page-toolbar select {
    max-width: none;
  }

  .directory-toolbar {
    align-items: stretch;
  }

  .directory-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .directory-chip-list {
    justify-content: flex-start;
    max-width: 100%;
  }

  .sanction-public-row dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 560px) {
  :root {
    --nav-height: 64px;
  }

  .sanction-public-row dl {
    grid-template-columns: 1fr;
  }

  body::before {
    background-size:
      auto,
      120% 120%,
      var(--page-background-size),
      auto;
  }

  .site-header {
    min-height: 0;
  }

  .header-visual,
  .header-image {
    min-height: 240px;
    height: 240px;
  }

  .site-nav {
    top: var(--nav-height);
  }

  .brand {
    width: 50px;
    height: calc(var(--nav-height) - 10px);
  }

  .info-summary-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .button {
    width: 100%;
  }

  .tournament-grid,
  .stats-grid,
  .why-grid,
  .venue-grid,
  .ranking-podium,
  .dynamic-columns-block,
  .venue-detail-card,
  .rules-quick-grid,
  .rules-points,
  .score-inputs,
  .event-row,
  .match-scoreboard,
  .match-detail-grid {
    grid-template-columns: 1fr;
  }

  .registration-info-grid {
    grid-template-columns: 1fr;
  }

  .player-stats-identity,
  .player-stats-grid {
    grid-template-columns: 1fr;
  }

  .player-stats-identity {
    justify-items: start;
  }

  .player-stats-identity label {
    width: 100%;
  }

  .player-stats-panel {
    min-height: 0;
  }

  .venue-detail-card > img,
  .venue-image-fallback {
    height: clamp(220px, 54vw, 300px);
    order: 1;
  }

  .venue-detail-card > div:not(.venue-image-fallback) {
    order: 2;
  }

  .venue-detail-card dl {
    grid-template-columns: 1fr;
  }

  .ranking-columns {
    column-count: 1;
  }

  .team-player-row {
    grid-template-columns: 52px minmax(0, 1fr) repeat(2, 48px);
  }

  .team-player-row span:nth-last-child(-n + 2),
  .team-player-head span:nth-last-child(-n + 2) {
    display: none;
  }

  .home-stats-section,
  .home-venues-section,
  .home-standings-section,
  .home-cup-bracket-section,
  .home-final-phase-bracket-section,
  .home-rules-summary,
  .home-contact-section {
    padding-inline: 16px;
    padding-block: 34px;
  }

  .home-section-toolbar {
    justify-content: stretch;
  }

  .home-section-toolbar select {
    width: 100%;
  }

  .home-intro h1 {
    font-size: 2.05rem;
    line-height: 1;
  }

  .home-intro p,
  .venue-card p,
  .contact-copy p,
  .why-card p {
    font-size: 0.92rem;
  }

  .section-kicker h2,
  .rules-summary-card h2,
  .contact-copy h2 {
    font-size: 1.85rem;
  }

  .stat-card {
    min-height: 112px;
  }

  .stat-card strong {
    font-size: 2.35rem;
  }

  .why-card,
  .venue-card div,
  .home-form {
    padding: 16px;
  }

  .why-card h2,
  .venue-card h3,
  .tournament-card h2,
  .ranking-panel h2,
  .report-panel h2 {
    font-size: 1.25rem;
  }

  .standings-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .venue-card .button,
  .venue-detail-card .button,
  .rules-summary-card .button {
    width: 100%;
  }

  .match-scoreboard span {
    font-size: 1.6rem;
  }

  .event-item {
    grid-template-columns: 34px 22px 42px minmax(0, 1fr);
  }

  .match-player-stat-row {
    grid-template-columns: minmax(0, 1fr) repeat(4, 38px);
  }

  .mvp-podium-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-inline: 0;
  }

  .mvp-card,
  .mvp-card.is-place-1 {
    order: initial;
    min-height: 0;
    margin-top: 0;
    padding-top: 76px;
  }

  .mvp-card.is-place-2,
  .mvp-card.is-place-3 {
    order: initial;
    min-height: 0;
    margin-top: 0;
  }

  .mvp-card.is-place-3 span {
    top: 12px;
  }

  .footer-contact {
    grid-template-columns: 1fr;
  }

  .footer-brand img {
    width: auto;
    height: 82px;
  }

  .footer-cta strong {
    font-size: 1.08rem;
  }

  .footer-cta .button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }
}

.public-bracket-board {
  overflow-x: auto;
  padding: 0.5rem 0 1.25rem;
}

.public-bracket-tree {
  display: grid;
  grid-template-columns: repeat(var(--bracket-column-count, 1), minmax(210px, 1fr));
  gap: 1.35rem;
  min-width: max(100%, calc(var(--bracket-column-count, 1) * 232px));
  min-height: calc(var(--bracket-row-count, 1) * 130px);
  padding: 0.35rem 0.75rem;
}

.public-bracket-tree.is-tf7-bracket,
.public-bracket-tree.is-champions-bracket,
.public-bracket-tree.is-europa-bracket,
.public-bracket-tree.is-conference-bracket {
  position: relative;
  grid-template-columns: repeat(var(--bracket-column-count, 1), minmax(166px, 1fr));
  gap: clamp(0.85rem, 1.15vw, 1.35rem);
  min-width: max(100%, calc(var(--bracket-column-count, 1) * 188px));
  min-height: max(calc(var(--bracket-row-count, 1) * 128px), 620px);
  padding: clamp(1.25rem, 2vw, 2.4rem) clamp(1rem, 2vw, 2.6rem);
  isolation: isolate;
  overflow: hidden;
}

.public-bracket-tree.is-tf7-bracket::before,
.public-bracket-tree.is-champions-bracket::before,
.public-bracket-tree.is-europa-bracket::before,
.public-bracket-tree.is-conference-bracket::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--bracket-theme-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
  opacity: 0.52;
  pointer-events: none;
}

.public-bracket-tree.is-tf7-bracket::before {
  background-size: 100% 100%;
  opacity: 0.58;
  filter: saturate(1.08) contrast(1.04) drop-shadow(0 0 18px rgba(220, 163, 35, 0.22));
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.public-bracket-tree.is-tf7-bracket::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(221, 166, 23, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(8, 20, 7, 0.42), transparent 18%, transparent 82%, rgba(8, 20, 7, 0.42));
  pointer-events: none;
}

.public-bracket-tree.is-champions-bracket::before {
  filter: drop-shadow(0 0 18px rgba(42, 137, 255, 0.22));
  mix-blend-mode: screen;
  opacity: 0.72;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.public-bracket-tree.is-champions-bracket::after {
  content: "";
  position: absolute;
  top: 43.5%;
  left: 50%;
  width: min(46vw, 610px);
  aspect-ratio: 1;
  z-index: 0;
  background: radial-gradient(circle closest-side, rgba(42, 137, 255, 0.34), rgba(42, 137, 255, 0.2) 48%, rgba(42, 137, 255, 0.08) 72%, transparent 96%);
  filter: blur(18px);
  opacity: 0.88;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.public-bracket-tree.is-europa-bracket::before {
  background-size: 100% 100%;
  opacity: 0.64;
  filter: drop-shadow(0 0 16px rgba(255, 132, 35, 0.34));
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.public-bracket-tree.is-europa-bracket::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 61% 88%, rgba(255, 132, 35, 0.42), rgba(255, 132, 35, 0.18) 10%, transparent 24%);
  filter: blur(10px);
  opacity: 0.72;
  pointer-events: none;
}

.public-bracket-tree.is-conference-bracket::before {
  background-size: 100% 100%;
  opacity: 0.58;
  filter: drop-shadow(0 0 12px rgba(47, 210, 76, 0.22));
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.public-bracket-tree.is-conference-bracket::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 66% 31%, rgba(55, 255, 98, 0.2), rgba(55, 255, 98, 0.08) 16%, transparent 34%),
    radial-gradient(ellipse at 62% 48%, rgba(55, 255, 98, 0.12), transparent 30%),
    linear-gradient(154deg, transparent 30%, rgba(55, 255, 98, 0.16) 47%, transparent 52%),
    linear-gradient(165deg, transparent 42%, rgba(55, 255, 98, 0.13) 58%, transparent 63%),
    linear-gradient(169deg, transparent 54%, rgba(55, 255, 98, 0.12) 69%, transparent 74%);
  filter: blur(8px);
  opacity: 0.78;
  pointer-events: none;
}

.public-bracket-tree.is-europa-bracket .public-bracket-match,
.public-bracket-tree.is-conference-bracket .public-bracket-match {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.06)),
    rgba(9, 9, 6, 0.34);
}

.public-bracket-tree.is-europa-bracket .public-bracket-match.is-played,
.public-bracket-tree.is-conference-bracket .public-bracket-match.is-played {
  background:
    linear-gradient(90deg, rgba(224, 170, 43, 0.1), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.07)),
    rgba(9, 9, 6, 0.36);
}

.public-bracket-tree.is-europa-bracket .public-bracket-round.is-final .public-bracket-match,
.public-bracket-tree.is-conference-bracket .public-bracket-round.is-final .public-bracket-match {
  background:
    linear-gradient(135deg, rgba(224, 170, 43, 0.08), rgba(255, 255, 255, 0.04) 52%, rgba(73, 176, 120, 0.06)),
    rgba(8, 8, 5, 0.38);
}

.public-bracket-tree.is-europa-bracket .public-bracket-champion-card,
.public-bracket-tree.is-conference-bracket .public-bracket-champion-card {
  background:
    linear-gradient(135deg, rgba(224, 170, 43, 0.14), rgba(255, 255, 255, 0.035) 48%, rgba(224, 170, 43, 0.06)),
    rgba(0, 0, 0, 0.08);
}

.public-bracket-tree.is-europa-bracket .public-bracket-slot,
.public-bracket-tree.is-conference-bracket .public-bracket-slot {
  background: rgba(0, 0, 0, 0.1);
}

.public-bracket-tree.is-europa-bracket .public-bracket-match time,
.public-bracket-tree.is-conference-bracket .public-bracket-match time {
  background: rgba(0, 0, 0, 0.14);
}

.public-bracket-theme-trophy {
  position: absolute;
  z-index: 2;
  top: clamp(4.65rem, 12.2%, 6.45rem);
  left: 50%;
  width: clamp(58px, 5.4vw, 88px);
  max-height: 104px;
  object-fit: contain;
  pointer-events: none;
  transform: translateX(-50%);
}

.public-bracket-tree.is-champions-bracket > .public-bracket-theme-trophy,
.public-bracket-tree.is-europa-bracket > .public-bracket-theme-trophy,
.public-bracket-tree.is-conference-bracket > .public-bracket-theme-trophy {
  display: none;
}

.public-bracket-round {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.75rem;
  min-width: 0;
  z-index: 1;
}

.public-bracket-round h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.public-bracket-round-grid {
  display: grid;
  grid-template-rows: repeat(var(--bracket-row-count, 1), minmax(112px, 1fr));
  gap: 0;
}

.public-bracket-match {
  position: relative;
  display: grid;
  gap: 0.48rem;
  grid-row: var(--bracket-row-start) / span var(--bracket-row-span);
  align-self: center;
  padding: 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(0, 0, 0, 0.16)),
    rgba(9, 9, 6, 0.66);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
  isolation: isolate;
  z-index: 1;
}

.public-bracket-round.is-left .public-bracket-match::after,
.public-bracket-round.is-right .public-bracket-match::before {
  content: none;
  position: absolute;
  top: 50%;
  z-index: 0;
  width: calc(1.35rem + 2px);
  height: 1px;
  background: linear-gradient(90deg, rgba(224, 170, 43, 0.18), rgba(224, 170, 43, 0.58));
}

.public-bracket-round.is-left .public-bracket-match::after {
  right: calc(-1.35rem - 2px);
}

.public-bracket-round.is-right .public-bracket-match::before {
  left: calc(-1.35rem - 2px);
  background: linear-gradient(90deg, rgba(224, 170, 43, 0.58), rgba(224, 170, 43, 0.18));
}

.public-bracket-match h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.public-bracket-match.is-compact {
  justify-self: center;
  width: 92%;
  gap: 0.36rem;
  padding: 0.5rem;
  font-size: 0.86rem;
}

.public-bracket-tree.is-champions-bracket .public-bracket-match.is-compact,
.public-bracket-tree.is-europa-bracket .public-bracket-match.is-compact,
.public-bracket-tree.is-conference-bracket .public-bracket-match.is-compact {
  width: 100%;
}

.public-bracket-match.is-played {
  border-color: rgba(224, 170, 43, 0.56);
  background:
    linear-gradient(90deg, rgba(224, 170, 43, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(0, 0, 0, 0.18)),
    rgba(9, 9, 6, 0.68);
}

.public-bracket-match.is-scheduled {
  border-color: rgba(73, 176, 120, 0.34);
  background:
    linear-gradient(90deg, rgba(73, 176, 120, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.04);
}

.public-bracket-round.is-final .public-bracket-match {
  align-self: start;
  margin-top: var(--bracket-final-offset, 0);
  border-color: rgba(224, 170, 43, 0.42);
  background:
    linear-gradient(135deg, rgba(224, 170, 43, 0.12), rgba(255, 255, 255, 0.04) 52%, rgba(73, 176, 120, 0.08)),
    rgba(8, 8, 5, 0.74);
}

.public-bracket-champion {
  display: grid;
  width: 100%;
  margin-top: calc(var(--bracket-final-offset, 0) / 2);
  margin-bottom: 0.6rem;
}

.public-bracket-champion-card {
  position: relative;
  display: grid;
  gap: 0.32rem;
  min-height: 104px;
  place-items: center;
  padding: 0.9rem;
  color: var(--ink);
  border: 1px solid var(--accent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(224, 170, 43, 0.22), rgba(255, 255, 255, 0.04) 48%, rgba(224, 170, 43, 0.12)),
    rgba(0, 0, 0, 0.26);
  box-shadow: 0 0 24px rgba(224, 170, 43, 0.16);
  text-align: center;
  overflow: hidden;
}

.public-bracket-champion-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  pointer-events: none;
}

.public-bracket-trophy {
  position: relative;
  width: 30px;
  height: 24px;
  border: 2px solid rgba(224, 170, 43, 0.92);
  border-top-width: 5px;
  border-radius: 4px 4px 10px 10px;
  box-shadow: 0 0 18px rgba(224, 170, 43, 0.26);
}

.public-bracket-trophy::before,
.public-bracket-trophy::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 10px;
  height: 11px;
  border: 2px solid rgba(224, 170, 43, 0.72);
}

.public-bracket-trophy::before {
  left: -11px;
  border-right: 0;
  border-radius: 8px 0 0 8px;
}

.public-bracket-trophy::after {
  right: -11px;
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.public-bracket-champion-card span {
  color: var(--accent);
  font-family: var(--display-font);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.public-bracket-champion-card strong {
  font-size: 0.95rem;
  line-height: 1.18;
}

.public-bracket-champion-card img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.public-bracket-tree.is-champions-bracket .public-bracket-trophy,
.public-bracket-tree.is-europa-bracket .public-bracket-trophy,
.public-bracket-tree.is-conference-bracket .public-bracket-trophy {
  width: clamp(42px, 4.1vw, 64px);
  height: clamp(48px, 4.7vw, 72px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.public-bracket-tree.is-champions-bracket .public-bracket-trophy {
  background: url("assets/images/fases finales/copa champions.png") center / contain no-repeat;
}

.public-bracket-tree.is-europa-bracket .public-bracket-trophy {
  background: url("assets/images/fases finales/copa europa.png") center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(255, 132, 35, 0.42)) drop-shadow(0 0 18px rgba(255, 132, 35, 0.18));
}

.public-bracket-tree.is-conference-bracket .public-bracket-trophy {
  background: url("assets/images/fases finales/copa conference.png") center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(55, 255, 98, 0.42)) drop-shadow(0 0 18px rgba(55, 255, 98, 0.18));
}

.public-bracket-tree.is-champions-bracket .public-bracket-trophy::before,
.public-bracket-tree.is-champions-bracket .public-bracket-trophy::after,
.public-bracket-tree.is-europa-bracket .public-bracket-trophy::before,
.public-bracket-tree.is-europa-bracket .public-bracket-trophy::after,
.public-bracket-tree.is-conference-bracket .public-bracket-trophy::before,
.public-bracket-tree.is-conference-bracket .public-bracket-trophy::after {
  display: none;
}

.public-bracket-slots {
  display: grid;
  gap: 0.28rem;
}

.public-bracket-slot {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0 0.58rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.24);
}

.public-bracket-slot.is-winner {
  border-color: rgba(53, 211, 107, 0.72);
  background: linear-gradient(90deg, rgba(53, 211, 107, 0.22), rgba(0, 0, 0, 0.24));
}

.public-bracket-slot.is-winner .public-bracket-team strong {
  color: #63f477;
}

.public-bracket-slot.is-loser {
  opacity: 0.68;
}

.public-bracket-team {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.48rem;
}

.public-bracket-team img,
.public-bracket-team i {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.public-bracket-team img {
  object-fit: contain;
}

.public-bracket-team i {
  border: 1px solid rgba(224, 170, 43, 0.32);
  background: rgba(224, 170, 43, 0.08);
}

.public-bracket-team strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-bracket-slot b,
.public-bracket-score {
  flex: 0 0 auto;
  min-width: 24px;
  color: var(--accent);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--display-font);
  font-size: 1.05rem;
  text-align: right;
}

.public-bracket-match.is-compact .public-bracket-slot {
  min-height: 32px;
  padding: 0 0.48rem;
}

.public-bracket-match.is-compact .public-bracket-team img,
.public-bracket-match.is-compact .public-bracket-team i {
  width: 18px;
  height: 18px;
}

.public-bracket-match time {
  display: block;
  min-height: 24px;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.public-bracket-match.is-compact time {
  min-height: 20px;
  padding: 0.28rem 0.45rem;
  font-size: 0.7rem;
}
