:root {
  color-scheme: dark;
  --background: #070914;
  --background-soft: #0f1428;
  --surface: rgba(17, 24, 48, 0.82);
  --line: rgba(147, 161, 255, 0.18);
  --text: #f5f7ff;
  --muted: #aeb8d6;
  --primary: #8b5cf6;
  --primary-bright: #22d3ee;
  --accent: #f43f5e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.28), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.18), transparent 28rem),
    linear-gradient(135deg, #050711 0%, var(--background) 52%, #100817 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 12, 28, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.hero-actions,
.match-meta,
.contact-section {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark,
.player-mark {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  color: white;
  font-weight: 900;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.brand-mark-image {
  overflow: hidden;
  background: transparent;
}

.brand-mark-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  gap: 8px;
}

.main-nav a,
.header-action {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a {
  padding: 10px 12px;
}

.main-nav a:hover,
.main-nav a.is-active,
.header-action:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.header-action {
  padding: 10px 16px;
  border: 1px solid rgba(34, 211, 238, 0.42);
}

.section {
  padding: 96px 0 0;
}

.home-logo-section {
  position: relative;
  display: grid;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  place-items: center;
}

.home-logo-section::before,
.home-logo-section::after {
  position: absolute;
  z-index: -1;
  width: min(780px, 96vw);
  height: 520px;
  border-radius: 44% 56% 50% 50%;
  pointer-events: none;
  content: "";
}

.home-logo-section::before {
  bottom: 64px;
  background:
    radial-gradient(ellipse at 50% 86%, rgba(18, 6, 38, 0.62) 0 18%, transparent 48%),
    radial-gradient(ellipse at 18% 78%, rgba(168, 85, 247, 0.52) 0 11%, transparent 30%),
    radial-gradient(ellipse at 34% 58%, rgba(126, 34, 206, 0.5) 0 10%, transparent 29%),
    radial-gradient(ellipse at 50% 46%, rgba(217, 70, 239, 0.48) 0 9%, transparent 30%),
    radial-gradient(ellipse at 66% 58%, rgba(124, 58, 237, 0.5) 0 10%, transparent 29%),
    radial-gradient(ellipse at 82% 78%, rgba(192, 132, 252, 0.5) 0 11%, transparent 30%);
  filter: blur(20px) saturate(1.4);
  opacity: 0.58;
  transform-origin: 50% 88%;
  animation: purple-flames 3.8s ease-in-out infinite alternate;
}

.home-logo-section::after {
  bottom: 42px;
  width: min(660px, 82vw);
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.24), transparent 68%);
  filter: blur(28px);
  opacity: 0.52;
}

.home-logo {
  position: relative;
  z-index: 1;
  width: min(640px, 88vw);
  max-height: 520px;
  object-fit: contain;
}

@keyframes purple-flames {
  0% {
    transform: translateY(8px) scaleX(0.98) scaleY(0.96);
    opacity: 0.46;
  }

  100% {
    transform: translateY(-12px) scaleX(1.04) scaleY(1.08);
    opacity: 0.66;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-logo-section::before {
    animation: none;
  }
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 48px;
  align-items: center;
  min-height: 680px;
}

.eyebrow,
.card-label,
.match-status {
  margin: 0 0 12px;
  color: var(--primary-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

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

.hero-description {
  max-width: 650px;
  font-size: 1.15rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 40px rgba(139, 92, 246, 0.35);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.hero-card,
.stat-card,
.player-card,
.match-row,
.sponsor-section,
.contact-section {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 28px;
  border-radius: 34px;
}

.hero-card::before {
  position: absolute;
  inset: -35% auto auto 25%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.22);
  filter: blur(12px);
  content: "";
}

.hero-card > * {
  position: relative;
}

.hero-card h2 {
  margin-top: 150px;
}

.live-pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.16);
  color: #fecdd3;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.match-meta,
.match-time {
  gap: 10px;
  color: var(--muted);
}

.match-meta {
  flex-wrap: wrap;
  justify-content: space-between;
}

.stats-grid,
.card-grid,
.sponsor-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card,
.player-card,
.match-row {
  border-radius: 26px;
}

.stat-card {
  padding: 24px;
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2.5rem;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.card-grid {
  grid-template-columns: repeat(5, 1fr);
}

.player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  text-align: center;
}

.roster-subheading {
  margin-top: 54px;
}

.substitutes-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 580px;
}

.substitute-card {
  background: rgba(17, 24, 48, 0.62);
}

.player-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 28px;
  font-size: 1.35rem;
}

.player-avatar {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-ign {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.player-ign:hover {
  color: var(--primary-bright);
}

.player-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.player-social-link {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.player-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.player-social-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
}

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

.match-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
}

.match-row p {
  margin-bottom: 0;
}

.match-status {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
}

.match-time {
  display: grid;
  justify-items: end;
  min-width: 110px;
}

.match-time strong {
  font-size: 1.2rem;
}

.sponsor-section,
.contact-section {
  border-radius: 34px;
  padding: 34px;
}

.sponsor-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
}

.sponsor-grid span {
  display: grid;
  min-height: 86px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 900;
}

.contact-section {
  justify-content: space-between;
  gap: 28px;
}

.single-section {
  min-height: 560px;
}

.single-section h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.error-section {
  max-width: 760px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-section div {
  max-width: 720px;
}

.contact-section p {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .site-header,
  .hero-section,
  .split-section,
  .contact-section {
    align-items: stretch;
  }

  .site-header,
  .contact-section,
  .match-row {
    flex-direction: column;
  }

  .hero-section,
  .split-section {
    display: flex;
    flex-direction: column;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .hero-section {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .site-header {
    position: static;
    border-radius: 26px;
  }

  .main-nav {
    display: flex;
    width: 100%;
    gap: 6px;
    justify-content: center;
  }

  .main-nav a {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .stats-grid,
  .card-grid,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 64px;
  }

  .hero-card {
    min-height: 360px;
  }

  .hero-card h2 {
    margin-top: 110px;
  }
}
