:root {
  --bg: #05070f;
  --bg-soft: #0b1020;
  --bg-panel: rgba(10, 15, 30, 0.84);
  --surface: rgba(15, 23, 42, 0.78);
  --surface-strong: rgba(24, 32, 56, 0.94);
  --surface-highlight: rgba(124, 92, 255, 0.14);
  --text: #f7f8ff;
  --muted: #aeb8d4;
  --accent: #7c5cff;
  --accent-strong: #38bdf8;
  --accent-soft: #c7d2fe;
  --accent-deep: #4f46e5;
  --border: rgba(96, 115, 150, 0.38);
  --border-strong: rgba(124, 92, 255, 0.36);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --glow: 0 0 34px rgba(124, 92, 255, 0.28);
  --accent-warm: #60a5fa;
  --neutral-tone: #607396;
  --max-width: 1180px;
  --site-pointer-x: 50%;
  --site-pointer-y: 0%;
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at var(--site-pointer-x) var(--site-pointer-y), rgba(124, 92, 255, 0.18), transparent 18%),
    radial-gradient(circle at top left, rgba(96, 115, 150, 0.22), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.18), transparent 24%),
    linear-gradient(160deg, #03040a 0%, #090d19 36%, #111827 100%);
  min-height: 100vh;
  transition: background-position 0.15s ease-out;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 34rem;
  height: 34rem;
  top: -10rem;
  right: -7rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.16), transparent 68%);
  filter: blur(16px);
  animation: auroraShift 16s ease-in-out infinite alternate;
}

body::after {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.36), transparent 80%);
  opacity: 0.22;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

::selection {
  background: rgba(124, 92, 255, 0.3);
  color: var(--text);
}

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

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

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 4px;
  z-index: 25;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.42);
}

.hero {
  --pointer-x: 75%;
  --pointer-y: 24%;
  min-height: 100vh;
  padding: 1.5rem 1.25rem 3rem;
  position: relative;
  overflow-x: hidden;
  overflow-y: clip;
}

.page-header {
  padding: 1.5rem 1.25rem 0;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(124, 92, 255, 0.22), transparent 28%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 42%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.hero::after {
  background:
    radial-gradient(circle at 12% 14%, rgba(96, 115, 150, 0.22), transparent 14%),
    radial-gradient(circle at 86% 22%, rgba(56, 189, 248, 0.2), transparent 18%);
  animation: auroraShift 18s ease-in-out infinite alternate;
}

.navbar,
.hero-banner,
.ticker,
.content-section,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(5, 8, 18, 0.72);
  box-shadow: var(--shadow);
  overflow: visible;
  isolation: isolate;
  z-index: 30;
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-logo {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1rem;
  padding: 0.18rem;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 22px rgba(124, 92, 255, 0.24);
}

.brand-text {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 35;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 1rem;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-dropdown > a::before {
  content: "▾";
  order: 2;
  font-size: 0.72rem;
  color: var(--accent);
  transform: translateY(0.04rem);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  z-index: 15;
  display: grid;
  gap: 0.6rem;
  min-width: 14rem;
  padding: 1rem;
  border: 1px solid rgba(124, 92, 255, 0.18);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.995), rgba(28, 29, 32, 0.995));
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(56, 189, 248, 0.04) inset,
    0 0 22px rgba(124, 92, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 0.45rem);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.nav-submenu a {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.72rem 0.95rem;
  border: 1px solid rgba(96, 115, 150, 0.22);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #172033, #111827);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.01) inset;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease, color 0.24s ease;
}

.nav-submenu a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.12), transparent);
  opacity: 0;
  transform: translateX(-38%);
  transition: opacity 0.24s ease, transform 0.3s ease;
}

.nav-submenu a::after {
  display: none;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.24);
  background: linear-gradient(180deg, #1f2a44, #111827);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.18),
    0 0 16px rgba(124, 92, 255, 0.08);
  transform: translateY(-1px);
}

.nav-submenu a:hover::before,
.nav-submenu a:focus-visible::before {
  opacity: 1;
  transform: translateX(0);
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.nav-dropdown > a::before {
  content: "\25BE";
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-weight: 700;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  transform: translateY(-2px);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-dropdown .nav-submenu a::after {
  display: none;
}

.nav-dropdown .nav-submenu a:hover,
.nav-dropdown .nav-submenu a:focus-visible {
  transform: none;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.65rem;
  height: 2px;
  margin: 0.3rem 0;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero-banner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  padding: 1.7rem 0 2rem;
}

.hero-copy {
  min-width: 0;
  max-width: 38rem;
}

.eyebrow,
.section-tag,
.board-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--accent-soft);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-tag::before,
.board-tag::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: currentColor;
}

.hero h1,
.section-heading h2,
.performance-header h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  line-height: 0.95;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(3.8rem, 8vw, 7rem);
}

.hero-title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
}

.thunder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.4rem, 4vw, 3.4rem);
  height: clamp(2.4rem, 4vw, 3.4rem);
  transform: translateY(-0.08em) rotate(-8deg);
}

.thunder-icon svg {
  width: 100%;
  height: 100%;
  fill: #7c5cff;
  filter: drop-shadow(0 0 12px rgba(124, 92, 255, 0.35));
}

.hero-text {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-badges span {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(41, 42, 45, 0.78);
  color: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--glow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.primary-btn,
.secondary-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.primary-btn::after,
.secondary-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.18), transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
  z-index: -1;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-deep));
  color: #091220;
  box-shadow: 0 18px 35px rgba(124, 92, 255, 0.28);
}

.secondary-btn {
  border: 1px solid var(--border);
  background: rgba(10, 14, 28, 0.82);
  color: var(--text);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-3px);
}

.primary-btn:hover::after,
.secondary-btn:hover::after {
  transform: translateX(120%);
}

.secondary-btn:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}

.primary-btn:disabled,
.secondary-btn:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.hero-visual {
  position: relative;
  min-width: 0;
  isolation: isolate;
  animation: pulseFloat 7s ease-in-out infinite;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -6% 10% -10%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.2), transparent 65%);
  filter: blur(30px);
  z-index: -1;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(96, 115, 150, 0.24);
  border-radius: 2rem;
  transform: rotate(-2deg);
  z-index: -1;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: clamp(31rem, 40vw, 36rem);
  object-fit: contain;
  object-position: center;
  padding: clamp(3.8rem, 6.8vw, 5.9rem);
  border-radius: 2rem;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.14), transparent 48%),
    linear-gradient(160deg, rgba(17, 24, 39, 0.96), rgba(5, 7, 15, 0.92));
  box-shadow: var(--shadow);
}

.floating-panel {
  position: absolute;
  min-width: 11rem;
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: rgba(9, 13, 27, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.bgis-panel {
  top: 1.25rem;
  left: -1.4rem;
  animation: pulseFloat 5.5s ease-in-out infinite;
}

.bmps-panel {
  right: -1rem;
  bottom: 1.25rem;
  animation: pulseFloat 6.5s ease-in-out infinite reverse;
}

.champion-panel {
  min-width: 16rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.champion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
}

.champion-icon svg {
  width: 100%;
  height: 100%;
  fill: #60a5fa;
  filter: drop-shadow(0 0 10px rgba(124, 92, 255, 0.35));
}

.champion-title {
  display: block;
  color: var(--accent-soft);
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.82);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ticker-track {
  display: flex;
  width: max-content;
  color: var(--accent-soft);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  animation: tickerMove 24s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: flex;
  flex-shrink: 0;
}

.ticker-track span {
  position: relative;
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 0.95rem 2.2rem 0.95rem 1.3rem;
}

.ticker-track span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.48);
  transform: translateY(-50%);
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.content-section {
  position: relative;
  z-index: 1;
  padding: 5rem 1.25rem 0;
}

.archive-entry-section {
  padding-top: 2rem;
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 12ch;
}

.section-intro {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.cards-grid,
.tournaments-grid,
.players-grid,
.official-data-grid,
.about-layout {
  display: grid;
  gap: 1.4rem;
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.tournament-card,
.player-card,
.official-card,
.highlight-box,
.performance-board {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(5, 7, 15, 0.9));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.info-card::before,
.tournament-card::before,
.player-card::before,
.official-card::before,
.highlight-box::before,
.performance-board::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -25%;
  width: 13rem;
  height: 13rem;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.16), transparent 68%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.info-card.is-tilting,
.tournament-card.is-tilting,
.player-card.is-tilting,
.official-card.is-tilting,
.highlight-box.is-tilting {
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
  will-change: transform;
}

.info-card:hover,
.tournament-card:hover,
.player-card:hover,
.official-card:hover,
.highlight-box:hover,
.performance-board:hover {
  border-color: var(--border-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36), 0 0 30px rgba(124, 92, 255, 0.16);
}

.info-card:hover::before,
.tournament-card:hover::before,
.player-card:hover::before,
.official-card:hover::before,
.highlight-box:hover::before,
.performance-board:hover::before {
  opacity: 1;
}

.card-number,
.player-id {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.info-card h3,
.tournament-card h3,
.player-card h3,
.highlight-box h3 {
  margin: 0.9rem 0 0.65rem;
  font-size: 1.3rem;
}

.info-card p,
.about-copy p,
.highlight-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.tournament-card {
  display: grid;
  gap: 1.4rem;
}

.tournament-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tournament-branding {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.tournament-logo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.2rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--glow);
}

.tournament-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tournament-status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.tournament-status.live {
  color: #dbeafe;
  background: rgba(124, 92, 255, 0.16);
}

.tournament-status.upcoming {
  color: #d9dadd;
  background: rgba(96, 115, 150, 0.22);
}

.tournament-status.featured {
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.2);
}

.tournament-card h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.3rem;
}

.tournament-format {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.stage-list {
  display: grid;
  gap: 0.75rem;
}

.stage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.stage-row span {
  color: var(--accent-soft);
  font-weight: 700;
}

.stage-row strong {
  color: var(--text);
  font-size: 0.96rem;
}

.stage-row:hover {
  transform: translateX(6px);
  border-color: var(--border-strong);
  background: rgba(124, 92, 255, 0.1);
}

.featured-stage {
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.18), rgba(96, 115, 150, 0.24));
  border-color: rgba(124, 92, 255, 0.28);
}

.standings-panel {
  margin-top: 1.8rem;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(5, 7, 15, 0.92));
  box-shadow: var(--shadow);
}

.tournament-entry-stack,
.archive-entry-stack {
  display: grid;
  min-width: 0;
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.tournament-entry-block {
  display: grid;
  min-width: 0;
  gap: 1.5rem;
}

.tournament-entry-stack .standings-panel,
.archive-entry-stack .standings-panel {
  margin-top: 0;
}

.standings-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.standings-label {
  margin: 0;
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.standings-header h3 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.standings-round {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(96, 115, 150, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.standings-table-wrap {
  margin-top: 1.2rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.standings-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0 0.65rem;
}

.standings-table thead th {
  padding: 0 1rem 0.45rem;
  color: #b6bfd6;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.standings-table tbody td {
  padding: 1rem;
  border-top: 1px solid rgba(96, 115, 150, 0.24);
  border-bottom: 1px solid rgba(96, 115, 150, 0.24);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-weight: 600;
}

.standings-table tbody td:first-child {
  width: 4.2rem;
  border-left: 4px solid #2ecc71;
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
  color: #dce3f6;
  text-align: center;
}

.standings-table tbody td:last-child {
  border-right: 1px solid rgba(96, 115, 150, 0.24);
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
}

.standings-table tbody tr:hover td {
  background: rgba(124, 92, 255, 0.12);
}

.standings-table tbody tr.is-featured td {
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.18), rgba(96, 115, 150, 0.14));
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 15rem;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(124, 92, 255, 0.28));
  border: 1px solid rgba(96, 115, 150, 0.28);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.team-badge-wide {
  width: 5.4rem;
  overflow: hidden;
  padding: 0.1rem;
}

.team-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.team-badge-wide img {
  object-fit: cover;
  object-position: center;
  border-radius: 0.65rem;
}

.team-name {
  color: #eef1ff;
  font-weight: 700;
}

.player-stats-table {
  min-width: 520px;
}

.player-name-cell {
  min-width: 14rem;
}

.player-name-text {
  color: #eef1ff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tournament-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.tournament-actions .primary-btn,
.tournament-actions .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.players-grid {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 1.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.35rem 0.2rem 1rem;
  scrollbar-width: none;
}

.players-grid::-webkit-scrollbar {
  display: none;
}

.players-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(11, 16, 32, 0.88);
  color: var(--accent-soft);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, border-color 0.24s ease, opacity 0.24s ease;
}

.carousel-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gallery-track {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 1.35rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.35rem 0.2rem 1rem;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-card {
  position: relative;
  display: flex;
  flex: 0 0 calc((100% - 1.35rem) / 2);
  flex-direction: column;
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 1.85rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(5, 7, 15, 0.9));
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.gallery-card-large {
  flex-basis: min(100%, 52rem);
}

.gallery-card-wide {
  flex-basis: min(100%, 46rem);
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34), 0 0 24px rgba(124, 92, 255, 0.16);
}

.gallery-media {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(96, 115, 150, 0.28);
  background: linear-gradient(145deg, rgba(124, 92, 255, 0.16), rgba(10, 14, 28, 0.9));
  aspect-ratio: 16 / 11;
}

.gallery-card-large .gallery-media {
  aspect-ratio: 16 / 10;
}

.gallery-card-wide .gallery-media {
  aspect-ratio: 16 / 9;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-card:hover .gallery-media img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.gallery-artwork {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: transform 0.45s ease;
}

.gallery-artwork::before,
.gallery-artwork::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.artwork-a {
  background:
    radial-gradient(circle at 18% 24%, rgba(124, 92, 255, 0.45), transparent 18%),
    radial-gradient(circle at 78% 28%, rgba(96, 115, 150, 0.28), transparent 20%),
    linear-gradient(135deg, #1d2440 0%, #111827 45%, #060816 100%);
}

.artwork-b {
  background:
    radial-gradient(circle at 72% 24%, rgba(56, 189, 248, 0.34), transparent 18%),
    linear-gradient(115deg, #141b2d 0%, #0b1020 45%, #05070f 100%);
}

.artwork-c {
  background:
    radial-gradient(circle at 50% 12%, rgba(34, 211, 238, 0.22), transparent 22%),
    linear-gradient(155deg, #111827 0%, #0b1020 48%, #05070f 100%);
}

.artwork-d {
  background:
    radial-gradient(circle at 16% 68%, rgba(168, 85, 247, 0.22), transparent 18%),
    linear-gradient(145deg, #202946 0%, #0f172a 55%, #05070f 100%);
}

.artwork-e {
  background:
    radial-gradient(circle at 68% 34%, rgba(96, 165, 250, 0.32), transparent 20%),
    linear-gradient(125deg, #1b2440 0%, #0f172a 52%, #060816 100%);
}

.artwork-f {
  background:
    radial-gradient(circle at 22% 22%, rgba(168, 85, 247, 0.3), transparent 16%),
    radial-gradient(circle at 76% 72%, rgba(96, 115, 150, 0.24), transparent 20%),
    linear-gradient(135deg, #0b1020 0%, #111827 48%, #525357 100%);
}

.art-orb,
.art-line,
.art-grid,
.art-wave,
.art-panel,
.art-square,
.art-beam,
.art-ring,
.art-strip {
  position: absolute;
  pointer-events: none;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.art-orb {
  border-radius: 50%;
  filter: blur(2px);
}

.orb-left {
  left: 8%;
  bottom: 14%;
  width: 26%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04) 62%, transparent 75%);
}

.orb-right {
  right: 8%;
  top: 18%;
  width: 22%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(64, 219, 255, 0.42), rgba(64, 219, 255, 0.06) 64%, transparent 74%);
}

.orb-center {
  inset: 18% auto auto 46%;
  width: 18%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.06) 60%, transparent 74%);
}

.art-line {
  left: 10%;
  right: 10%;
  bottom: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.art-grid {
  inset: 10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 2.6rem 2.6rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 88%);
}

.art-wave {
  left: -10%;
  right: -10%;
  bottom: 18%;
  height: 34%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.18), transparent 64%);
  transform: rotate(-8deg);
}

.art-panel {
  right: 12%;
  top: 16%;
  width: 28%;
  height: 52%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(8px);
}

.art-square {
  width: 22%;
  aspect-ratio: 1;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.square-a {
  left: 12%;
  bottom: 18%;
}

.square-b {
  right: 10%;
  top: 18%;
}

.art-beam {
  inset: 0 auto 0 48%;
  width: 18%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-16deg);
}

.art-ring {
  right: 14%;
  top: 18%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1.2rem rgba(255, 255, 255, 0.03);
}

.art-strip {
  left: 10%;
  right: 10%;
  height: 14%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05));
}

.strip-top {
  top: 20%;
}

.strip-bottom {
  bottom: 18%;
}

.art-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(9, 4, 24, 0.58);
  color: rgba(239, 242, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  transition: transform 0.45s ease, border-color 0.45s ease, background 0.45s ease;
}

.gallery-card:hover .gallery-artwork {
  transform: scale(1.03);
}

.gallery-card:hover .orb-left,
.gallery-card:hover .square-a {
  transform: translate3d(10px, -8px, 0);
}

.gallery-card:hover .orb-right,
.gallery-card:hover .square-b,
.gallery-card:hover .art-ring {
  transform: translate3d(-10px, 8px, 0);
}

.gallery-card:hover .art-line,
.gallery-card:hover .art-strip,
.gallery-card:hover .art-beam {
  transform: translate3d(0, -4px, 0) scaleX(1.03);
}

.gallery-card:hover .art-panel,
.gallery-card:hover .art-grid,
.gallery-card:hover .art-wave {
  transform: translate3d(0, -6px, 0);
}

.gallery-card:hover .art-caption {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(9, 4, 24, 0.72);
}

.gallery-tag {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  z-index: 1;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(96, 115, 150, 0.34);
  border-radius: 999px;
  background: rgba(7, 11, 22, 0.85);
  color: #eef1ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-card-body {
  display: grid;
  gap: 0.45rem;
  padding-top: 1rem;
}

.gallery-card-body h3 {
  margin: 0;
  font-size: 1.3rem;
}

.gallery-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.gallery-meta span {
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(96, 115, 150, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.gallery-image-section {
  padding-top: 2.4rem;
}

.gallery-live-section {
  padding-top: 3.2rem;
}

.gallery-section-heading {
  margin-bottom: 1.15rem;
}

.gallery-section-heading h2 {
  max-width: none;
}

.gallery-carousel-mosaic .carousel-btn,
.gallery-3d-carousel .carousel-btn {
  flex: 0 0 auto;
}

.gallery-track-mosaic {
  align-items: stretch;
  gap: 1rem;
}

.gallery-track-mosaic .gallery-frame {
  padding: 0;
}

.gallery-track-mosaic .gallery-frame .gallery-media {
  height: 100%;
  border: 0;
  border-radius: inherit;
}

.gallery-frame {
  position: relative;
  flex: 0 0 min(100%, 34rem);
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(5, 7, 15, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.gallery-frame:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.36), 0 0 24px rgba(124, 92, 255, 0.16);
}

.gallery-frame-xl {
  flex-basis: min(100%, 48rem);
}

.gallery-frame-wide {
  flex-basis: min(100%, 40rem);
}

.gallery-frame-md {
  flex-basis: min(100%, 28rem);
}

.gallery-frame-tall {
  flex-basis: min(100%, 24rem);
}

.gallery-frame-portrait {
  flex-basis: min(100%, 26rem);
}

.gallery-frame .gallery-media {
  min-height: clamp(18rem, 34vw, 29rem);
  border-radius: 1.5rem;
}

.gallery-frame-xl .gallery-media {
  min-height: clamp(22rem, 38vw, 32rem);
  aspect-ratio: 16 / 10;
}

.gallery-frame-wide .gallery-media {
  min-height: clamp(20rem, 30vw, 26rem);
  aspect-ratio: 16 / 9;
}

.gallery-frame-md .gallery-media {
  min-height: clamp(18rem, 30vw, 24rem);
  aspect-ratio: 5 / 6;
}

.gallery-frame-tall .gallery-media,
.gallery-image-tall {
  min-height: clamp(24rem, 42vw, 36rem);
  aspect-ratio: 4 / 5;
}

.gallery-frame-portrait .gallery-media {
  min-height: clamp(28rem, 48vw, 42rem);
  aspect-ratio: 2 / 3;
}

.gallery-image-only {
  background:
    linear-gradient(145deg, rgba(124, 92, 255, 0.2), rgba(10, 14, 28, 0.9)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 22%);
}

.gallery-photo-artwork img {
  filter: saturate(1.04) contrast(1.02);
}

.gallery-frame-glow .gallery-media {
  box-shadow: inset 0 0 80px rgba(124, 92, 255, 0.14);
}

.gallery-frame-soft .gallery-media {
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.14), rgba(5, 7, 15, 0.92)),
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.1), transparent 20%);
}

.gallery-3d-section {
  padding-top: 3rem;
}

.gallery-3d-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.gallery-3d-stage {
  position: relative;
  height: clamp(20rem, 46vw, 34rem);
  perspective: 1800px;
  transform-style: preserve-3d;
}

.gallery-3d-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 28rem);
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(5, 7, 15, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.58s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.58s ease, filter 0.58s ease;
}

.gallery-3d-slide .gallery-media {
  aspect-ratio: 16 / 10;
  min-height: auto;
  border-radius: 1.45rem;
}

.gallery-3d-slide.is-active {
  z-index: 5;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%) translateZ(0) scale(1);
}

.gallery-3d-slide.is-prev {
  z-index: 4;
  opacity: 0.78;
  filter: brightness(0.8) saturate(0.9);
  transform: translate(calc(-50% - clamp(12rem, 20vw, 18rem)), -50%) rotateY(58deg) scale(0.78);
}

.gallery-3d-slide.is-next {
  z-index: 4;
  opacity: 0.78;
  filter: brightness(0.8) saturate(0.9);
  transform: translate(calc(-50% + clamp(12rem, 20vw, 18rem)), -50%) rotateY(-58deg) scale(0.78);
}

.gallery-3d-slide.is-back-left {
  z-index: 3;
  opacity: 0.34;
  filter: brightness(0.58) blur(1px);
  transform: translate(calc(-50% - clamp(18rem, 28vw, 26rem)), -50%) rotateY(64deg) scale(0.56);
}

.gallery-3d-slide.is-back-right {
  z-index: 3;
  opacity: 0.34;
  filter: brightness(0.58) blur(1px);
  transform: translate(calc(-50% + clamp(18rem, 28vw, 26rem)), -50%) rotateY(-64deg) scale(0.56);
}

.gallery-3d-slide.is-hidden {
  z-index: 1;
  opacity: 0;
  filter: blur(3px);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.68);
}

.gallery-frame:hover .gallery-artwork,
.gallery-3d-slide:hover .gallery-artwork,
.gallery-3d-slide.is-active .gallery-artwork {
  transform: scale(1.03);
}

.gallery-frame:hover .orb-left,
.gallery-frame:hover .square-a,
.gallery-3d-slide:hover .orb-left,
.gallery-3d-slide:hover .square-a,
.gallery-3d-slide.is-active .orb-left,
.gallery-3d-slide.is-active .square-a {
  transform: translate3d(10px, -8px, 0);
}

.gallery-frame:hover .orb-right,
.gallery-frame:hover .square-b,
.gallery-frame:hover .art-ring,
.gallery-3d-slide:hover .orb-right,
.gallery-3d-slide:hover .square-b,
.gallery-3d-slide:hover .art-ring,
.gallery-3d-slide.is-active .orb-right,
.gallery-3d-slide.is-active .square-b,
.gallery-3d-slide.is-active .art-ring {
  transform: translate3d(-10px, 8px, 0);
}

.gallery-frame:hover .art-line,
.gallery-frame:hover .art-strip,
.gallery-frame:hover .art-beam,
.gallery-3d-slide:hover .art-line,
.gallery-3d-slide:hover .art-strip,
.gallery-3d-slide:hover .art-beam,
.gallery-3d-slide.is-active .art-line,
.gallery-3d-slide.is-active .art-strip,
.gallery-3d-slide.is-active .art-beam {
  transform: translate3d(0, -4px, 0) scaleX(1.03);
}

.gallery-frame:hover .art-panel,
.gallery-frame:hover .art-grid,
.gallery-frame:hover .art-wave,
.gallery-3d-slide:hover .art-panel,
.gallery-3d-slide:hover .art-grid,
.gallery-3d-slide:hover .art-wave,
.gallery-3d-slide.is-active .art-panel,
.gallery-3d-slide.is-active .art-grid,
.gallery-3d-slide.is-active .art-wave {
  transform: translate3d(0, -6px, 0);
}

.player-card {
  display: flex;
  flex: 0 0 calc((100% - 4.8rem) / 4);
  flex-direction: column;
  min-height: 31rem;
  padding: 1.2rem;
  scroll-snap-align: start;
}

.players-section .player-card {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.09), rgba(96, 115, 150, 0.08));
  backdrop-filter: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.player-image {
  width: 100%;
  aspect-ratio: 4 / 4.85;
  object-fit: cover;
  border-radius: 1.2rem;
  margin-bottom: 1.15rem;
  border: 1px solid rgba(96, 115, 150, 0.28);
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.18), rgba(96, 115, 150, 0.26));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.players-section .player-image {
  border-color: rgba(56, 189, 248, 0.16);
  background: transparent;
}

.player-card:hover .player-image {
  transform: scale(1.03);
  filter: saturate(1.08);
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.player-role {
  color: var(--accent-soft);
  font-weight: 700;
}

.player-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.coach-card h3 {
  margin-bottom: auto;
}

.player-finish-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.player-finish-value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--text);
}

.roster-page {
  display: grid;
  gap: 2.4rem;
  padding-top: 1rem;
}

.roster-directory-card,
.roster-group {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(96, 115, 150, 0.22);
  border-radius: 1.8rem;
  background:
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(12, 18, 34, 0.94), rgba(5, 7, 15, 0.9));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.roster-directory-card {
  display: grid;
  gap: 1.6rem;
  padding: 1.8rem 1.8rem 2.35rem;
}

.roster-directory-card .section-heading {
  gap: 1rem;
  margin-bottom: 2.9rem;
}

.roster-directory-card .section-intro {
  max-width: 48rem;
  line-height: 1.95;
}

.roster-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}

.roster-directory-link {
  display: grid;
  gap: 0.55rem;
  min-height: 6.2rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(96, 115, 150, 0.22);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.roster-directory-link strong {
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}

.roster-directory-link span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.roster-directory-link:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.26);
  background: rgba(124, 92, 255, 0.1);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.roster-group {
  padding: 1.4rem;
}

.roster-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.roster-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
}

.roster-group-head h2 {
  margin: 0.2rem 0 0;
}

.roster-group-note {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roster-grid {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.2rem 0.2rem 0.7rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 255, 0.45) rgba(255, 255, 255, 0.05);
}

.roster-grid::-webkit-scrollbar {
  height: 0.55rem;
}

.roster-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.roster-grid::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.42);
  border-radius: 999px;
}

.roster-grid .player-card {
  flex: 0 0 clamp(17.5rem, 22vw, 19rem);
  min-height: 28.5rem;
  padding: 1.15rem;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(96, 115, 150, 0.09));
  backdrop-filter: none;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.roster-grid .player-image {
  background: transparent;
}

.roster-grid .player-card h3 {
  font-size: 1.15rem;
  line-height: 1;
  min-height: 2.2rem;
}

.roster-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 0.95rem;
}

.roster-card-tag,
.roster-card-slot {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(96, 115, 150, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.roster-carousel .carousel-btn {
  flex-shrink: 0;
}

.roster-carousel .carousel-btn:disabled {
  opacity: 0.45;
}

.official-data-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.official-card {
  display: grid;
  gap: 1rem;
}

.official-top h3 {
  margin: 0;
  font-size: 1.4rem;
}

.official-role {
  display: inline-flex;
  margin-top: 0.65rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.14);
  color: var(--accent-soft);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.official-list {
  display: grid;
  gap: 0.8rem;
}

.official-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.official-row span {
  color: var(--muted);
  font-weight: 700;
}

.official-row strong {
  color: var(--text);
  font-size: 1rem;
}

.performance-board {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.35rem;
}

.performance-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.performance-header h3 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.board-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.14);
  color: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.board-live::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(124, 92, 255, 0.55);
  animation: signalBlink 1.8s ease-in-out infinite;
}

.performance-list {
  display: grid;
  gap: 1rem;
}

.performance-row {
  display: grid;
  gap: 0.65rem;
}

.row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.row-head span {
  color: var(--accent-soft);
  font-weight: 700;
}

.row-head strong {
  font-size: 1.05rem;
}

.meter {
  position: relative;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.meter-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.35);
  transition: width 1.2s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.about-layout {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: stretch;
}

.about-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  padding: 1.6rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(5, 7, 15, 0.9));
  box-shadow: var(--shadow);
}

.about-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -25%;
  width: 13rem;
  height: 13rem;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.16), transparent 68%);
  opacity: 0.9;
  pointer-events: none;
}

.about-intro-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
}

.about-roster-card {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.about-card-heading,
.about-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.about-card-title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
}

.contact-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--accent-soft);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.contact-chip:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(124, 92, 255, 0.1);
}

.brand-socials,
.roster-socials-heading,
.roster-socials-grid {
  position: relative;
  z-index: 1;
}

.brand-socials h3,
.roster-socials-heading h3 {
  margin: 0;
  font-size: 1.35rem;
}

.brand-socials {
  display: grid;
  gap: 1rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-soft);
  font-weight: 700;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(124, 92, 255, 0.1);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.social-icon svg rect,
.social-icon svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-icon svg circle[r="1.2"] {
  fill: currentColor;
  stroke: none;
}

.social-icon .play-mark {
  fill: #050012;
  stroke: none;
}

.roster-socials-heading {
  display: grid;
  gap: 0.7rem;
}

.roster-socials-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.roster-socials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.roster-social-card {
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.roster-social-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.roster-social-top h4 {
  margin: 0;
  font-size: 1.1rem;
}

.player-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: inherit;
  transition: color 0.24s ease;
}

.player-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.22rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.player-link:hover {
  color: var(--accent-soft);
}

.player-link:hover::after,
.player-link:focus-visible::after {
  transform: scaleX(1);
}

.player-profile-page {
  padding-bottom: 5rem;
}

.player-profile-hero {
  padding-top: 2.25rem;
}

.player-profile-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 1.6rem;
  align-items: stretch;
}

.player-profile-copy,
.player-profile-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.8rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(5, 7, 15, 0.9));
  box-shadow: var(--shadow);
}

.player-profile-copy {
  padding: clamp(1.6rem, 2.8vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.player-profile-copy h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(3.6rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
}

.player-profile-role {
  margin: 0.8rem 0 0;
  color: var(--accent-soft);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.player-profile-intro {
  margin-top: 1.2rem;
}

.player-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.player-summary-card {
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.035);
}

.player-summary-label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-summary-value {
  display: block;
  margin-top: 0.55rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.06em;
}

.player-profile-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.player-profile-media::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 10%;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.18), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

.player-profile-image {
  width: 100%;
  max-height: min(38rem, 70vh);
  object-fit: contain;
  object-position: center;
  border-radius: 1.5rem;
  border: 1px solid rgba(96, 115, 150, 0.28);
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.16), rgba(96, 115, 150, 0.26));
}

.player-profile-stats-section .section-heading h2 {
  max-width: 16ch;
}

.player-history-table {
  min-width: 860px;
}

.player-history-table thead th:nth-child(2),
.player-history-table tbody td:nth-child(2) {
  min-width: 17rem;
}

.player-history-table tbody td:last-child {
  font-size: 1rem;
}

.player-events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.player-event-panel {
  margin-top: 0;
  padding: 1.2rem;
}

.player-event-table {
  min-width: 0;
}

.player-event-table thead th,
.player-event-table tbody td {
  text-align: center;
}

.player-event-table tbody td:first-child {
  width: auto;
  border-left: 1px solid rgba(96, 115, 150, 0.24);
  color: var(--text);
}

.roster-social-top span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compact-socials {
  gap: 0.6rem;
}

.compact-socials .social-link {
  padding: 0.65rem 0.8rem;
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 4rem 1.25rem 2.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.3rem;
}

.footer-links a,
.footer-copy {
  color: var(--muted);
}

.footer-links a {
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--accent-soft);
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 20;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.85rem 1rem;
  background: rgba(5, 17, 31, 0.78);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, border-color 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow), var(--glow);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes auroraShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-2rem, 2rem, 0) scale(1.08);
  }
}

@keyframes pulseFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes signalBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (max-width: 1100px) {
  .floating-panel {
    position: static;
    margin-top: 1rem;
  }

  .hero-visual {
    display: grid;
    gap: 1rem;
  }
}

@media (max-width: 960px) {
  body::before {
    width: 24rem;
    height: 24rem;
    top: -7rem;
    right: -5rem;
    filter: blur(10px);
    animation: none;
  }

  .hero::after,
  .hero-visual,
  .bgis-panel,
  .bmps-panel {
    animation: none;
  }

  .hero-banner,
  .about-layout,
  .cards-grid,
  .tournaments-grid,
  .official-data-grid {
    grid-template-columns: 1fr;
  }

  .player-profile-shell {
    grid-template-columns: 1fr;
  }

  .player-profile-media {
    order: -1;
  }

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

  .player-events-grid {
    grid-template-columns: 1fr;
  }
  .player-card {
    flex-basis: calc((100% - 1.6rem) / 2);
  }

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

  .roster-carousel {
    grid-template-columns: minmax(0, 1fr);
  }

  .roster-carousel .carousel-btn {
    display: none;
  }

  .roster-grid .player-card {
    flex-basis: min(18rem, calc(100vw - 7rem));
  }

  .gallery-card,
  .gallery-card-large,
  .gallery-card-wide {
    flex-basis: min(100%, 42rem);
  }

  .hero-banner {
    padding-top: 1.4rem;
  }

  .hero-copy,
  .section-heading h2 {
    max-width: none;
  }

  .hero-visual {
    width: min(100%, 34rem);
    margin-inline: auto;
  }

  .hero-visual img {
    height: clamp(20rem, 64vw, 24rem);
    padding: clamp(2.6rem, 7vw, 4rem);
  }
}

@media (max-width: 720px) {
  .hero,
  .page-header {
    padding-inline: 0.85rem;
  }

  body::before,
  .hero::after {
    display: none;
  }

  body::after {
    opacity: 0.12;
  }

  .hero {
    min-height: auto;
    overflow-x: clip;
    padding-bottom: 2.2rem;
  }

  .navbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-radius: 1.5rem;
    padding: 1rem;
    backdrop-filter: none;
  }

  .menu-toggle {
    display: block;
    margin-left: 0;
    justify-self: end;
  }

  .nav-links {
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    max-height: 0;
    margin-top: 0;
    padding: 0 1rem;
    border: 1px solid transparent;
    border-radius: 1.2rem;
    background: rgba(7, 11, 22, 0.98);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transform: translateY(-0.3rem);
    transition: max-height 0.22s ease, margin-top 0.22s ease, padding 0.22s ease, opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.22s;
  }

  .nav-links a {
    width: 100%;
  }

  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .nav-dropdown > a {
    width: 100%;
    justify-content: space-between;
  }

  .nav-submenu {
    position: static;
    left: auto;
    z-index: auto;
    width: 100%;
    min-width: 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-dropdown::after {
    display: none;
  }

  .nav-links.open {
    max-height: 54rem;
    margin-top: 0.85rem;
    padding: 0.95rem 1rem;
    border-color: rgba(96, 115, 150, 0.32);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 18vw, 5rem);
  }

  .player-profile-copy h1 {
    font-size: clamp(3rem, 14vw, 4.9rem);
  }

  .hero-title {
    gap: 0.7rem 0.9rem;
  }

  .hero-banner {
    gap: 1.15rem;
    padding-top: 0.9rem;
    padding-bottom: 1rem;
  }

  .hero-text {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .hero-visual {
    width: min(100%, 27rem);
    gap: 0.75rem;
  }

  .hero-visual::before,
  .hero-visual::after {
    display: none;
  }

  .hero-visual img {
    height: clamp(17rem, 72vw, 21rem);
    padding: clamp(1.8rem, 6vw, 2.7rem);
    border-radius: 1.6rem;
  }

  .floating-panel {
    width: 100%;
    min-width: 0;
    padding: 0.85rem 0.95rem;
    border-radius: 1rem;
    backdrop-filter: none;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  }

  .champion-panel {
    width: 100%;
    min-width: 0;
    gap: 0.65rem;
  }

  .champion-title {
    font-size: 0.9rem;
    line-height: 1.25;
    letter-spacing: 0.06em;
  }

  .hero-badges,
  .hero-actions,
  .footer-links {
    gap: 0.75rem;
  }

  .ticker {
    margin-top: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .ticker::-webkit-scrollbar {
    display: none;
  }

  .ticker-track {
    width: max-content;
    min-width: 100%;
    animation: none;
  }

  .ticker-group[aria-hidden="true"] {
    display: none;
  }

  .content-section,
  .site-footer {
    padding-inline: 0.85rem;
  }

  .performance-header,
  .standings-header,
  .site-footer {
    align-items: flex-start;
  }
}

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

  .social-links {
    gap: 0.6rem;
  }

  .player-meta {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .player-summary-grid {
    grid-template-columns: 1fr;
  }

  .tournament-branding {
    grid-template-columns: 1fr;
  }

  .stage-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .standings-panel {
    padding: 1rem;
  }

  .standings-header {
    flex-direction: column;
  }

  .standings-table {
    min-width: 640px;
  }

  .standings-table-wrap {
    padding-bottom: 0.3rem;
  }

  .player-history-table {
    min-width: 700px;
  }

  .tournament-actions .primary-btn,
  .tournament-actions .secondary-btn {
    width: 100%;
  }

  .players-carousel {
    gap: 0.6rem;
  }

  .carousel-btn {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.65rem;
  }

  .player-card {
    flex-basis: calc(100% - 0.2rem);
    min-height: 30rem;
  }

  .roster-directory-grid {
    grid-template-columns: 1fr;
  }

  .roster-group-head,
  .roster-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .roster-grid .player-card {
    flex-basis: calc(100vw - 5.2rem);
    min-height: 27.5rem;
  }

  .gallery-card,
  .gallery-card-large,
  .gallery-card-wide {
    flex-basis: calc(100% - 0.2rem);
  }

  .ticker {
    border-radius: 1.4rem;
  }

  .hero-badges span,
  .board-live {
    width: 100%;
    justify-content: center;
  }
}

@media (max-height: 860px) and (min-width: 721px) {
  .hero {
    padding-bottom: 1.5rem;
  }

  .hero-banner {
    gap: 1.3rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 6.2vw, 5.9rem);
  }

  .hero-text {
    margin-top: 0.9rem;
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .hero-badges {
    margin-top: 1rem;
  }

  .hero-actions {
    margin-top: 1.2rem;
  }

  .hero-visual img {
    height: clamp(22rem, 31vw, 27rem);
    padding: clamp(2.2rem, 4.4vw, 3.8rem);
  }

  .ticker {
    margin-top: 0.85rem;
  }
}

@media (max-width: 960px) {
  .gallery-frame,
  .gallery-frame-xl,
  .gallery-frame-wide,
  .gallery-frame-md,
  .gallery-frame-tall,
  .gallery-frame-portrait {
    flex-basis: min(100%, 34rem);
  }

  .gallery-frame .gallery-media,
  .gallery-frame-xl .gallery-media,
  .gallery-frame-wide .gallery-media,
  .gallery-frame-md .gallery-media,
  .gallery-frame-portrait .gallery-media {
    min-height: clamp(18rem, 54vw, 26rem);
  }

  .gallery-frame-tall .gallery-media,
  .gallery-image-tall {
    min-height: clamp(22rem, 68vw, 32rem);
  }

  .gallery-3d-stage {
    height: clamp(19rem, 68vw, 30rem);
  }

  .gallery-3d-slide {
    width: min(100%, 22rem);
  }

  .gallery-3d-slide.is-prev {
    transform: translate(calc(-50% - 8.5rem), -50%) rotateY(52deg) scale(0.74);
  }

  .gallery-3d-slide.is-next {
    transform: translate(calc(-50% + 8.5rem), -50%) rotateY(-52deg) scale(0.74);
  }

  .gallery-3d-slide.is-back-left {
    transform: translate(calc(-50% - 12rem), -50%) rotateY(58deg) scale(0.54);
  }

  .gallery-3d-slide.is-back-right {
    transform: translate(calc(-50% + 12rem), -50%) rotateY(-58deg) scale(0.54);
  }
}

@media (max-width: 560px) {
  .gallery-image-section {
    padding-top: 1.5rem;
  }

  .gallery-carousel-mosaic,
  .gallery-3d-carousel {
    gap: 0.6rem;
  }

  .gallery-frame,
  .gallery-frame-xl,
  .gallery-frame-wide,
  .gallery-frame-md,
  .gallery-frame-tall,
  .gallery-frame-portrait {
    flex-basis: calc(100% - 0.2rem);
    padding: 0.45rem;
    border-radius: 1.4rem;
  }

  .gallery-track-mosaic .gallery-frame,
  .gallery-track-mosaic .gallery-frame-xl,
  .gallery-track-mosaic .gallery-frame-wide,
  .gallery-track-mosaic .gallery-frame-md,
  .gallery-track-mosaic .gallery-frame-tall,
  .gallery-track-mosaic .gallery-frame-portrait {
    padding: 0;
  }

  .gallery-frame .gallery-media,
  .gallery-frame-xl .gallery-media,
  .gallery-frame-wide .gallery-media,
  .gallery-frame-md .gallery-media,
  .gallery-frame-portrait .gallery-media {
    min-height: clamp(16rem, 78vw, 23rem);
    border-radius: 1rem;
  }

  .gallery-frame-tall .gallery-media,
  .gallery-image-tall {
    min-height: clamp(20rem, 92vw, 28rem);
  }

  .gallery-3d-carousel {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .gallery-3d-stage {
    height: clamp(17rem, 90vw, 24rem);
  }

  .gallery-3d-slide {
    width: min(100%, 15rem);
    padding: 0.45rem;
    border-radius: 1.4rem;
  }

  .gallery-3d-slide .gallery-media {
    border-radius: 1rem;
  }

  .gallery-3d-slide.is-prev {
    transform: translate(calc(-50% - 5.5rem), -50%) rotateY(46deg) scale(0.72);
  }

  .gallery-3d-slide.is-next {
    transform: translate(calc(-50% + 5.5rem), -50%) rotateY(-46deg) scale(0.72);
  }

  .gallery-3d-slide.is-back-left {
    transform: translate(calc(-50% - 8rem), -50%) rotateY(54deg) scale(0.5);
  }

  .gallery-3d-slide.is-back-right {
    transform: translate(calc(-50% + 8rem), -50%) rotateY(-54deg) scale(0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
