/* Scoreboard */
.scoreboard-container {
  margin-bottom: 32px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.scoreboard-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(0,255,136,0.8);
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 1px;
}

.scoreboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.scoreboard-table th {
  padding: 12px 16px;
  text-align: center;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(0,255,136,0.15), rgba(0,191,255,0.1));
  border: 1px solid rgba(0,255,136,0.3);
  color: var(--neon);
  text-shadow: 0 0 10px rgba(0,255,136,0.7);
}

.scoreboard-table th:first-child {
  border-top-left-radius: 8px;
}

.scoreboard-table th:last-child {
  border-top-right-radius: 8px;
}

.score-header {
  background: linear-gradient(135deg, rgba(96,165,250,0.2), rgba(59,130,246,0.15)) !important;
  border: 1px solid rgba(96,165,250,0.4) !important;
  color: #60a5fa !important;
  text-shadow: 0 0 10px rgba(96,165,250,0.8) !important;
}

.rank-header {
  background: linear-gradient(135deg, rgba(244,114,182,0.2), rgba(236,72,153,0.15)) !important;
  border: 1px solid rgba(244,114,182,0.4) !important;
  color: #f472b6 !important;
  text-shadow: 0 0 10px rgba(244,114,182,0.8) !important;
}

.stat-header {
  background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(147,51,234,0.15)) !important;
  border: 1px solid rgba(168,85,247,0.4) !important;
  color: #a855f7 !important;
  text-shadow: 0 0 10px rgba(168,85,247,0.8) !important;
}

.stat-cell {
  color: #a855f7;
  font-weight: 700;
}

.scoreboard-table td {
  padding: 12px 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
  transition: all 0.3s ease;
  font-weight: 600;
}

.team-row:hover td {
  background: rgba(0,255,136,0.05);
  border-color: rgba(0,255,136,0.2);
}

.team-name {
  text-align: center !important;
  font-weight: 900;
}

.team-badge-small {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(138,43,226,0.25), rgba(147,51,234,0.2));
  color: #c084fc;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  border: 1px solid rgba(138,43,226,0.5);
  text-shadow: 0 0 8px rgba(192,132,252,0.7);
}

.match-header {
  width: 20%;
  min-width: 80px;
}

.match-cell {
  width: 20%;
  min-width: 80px;
}

.match-cell.self {
  background: rgba(100,100,100,0.2);
  color: var(--muted);
}

.match-cell.win {
  background: rgba(0,255,136,0.15);
  color: #00ff88;
  font-weight: 900;
  border: 1px solid rgba(0,255,136,0.3);
  text-shadow: 0 0 8px rgba(0,255,136,0.6);
}

.match-cell.loss {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  font-weight: 900;
  border: 1px solid rgba(239,68,68,0.3);
  text-shadow: 0 0 8px rgba(239,68,68,0.6);
}

.score-cell {
  font-size: 16px;
  font-weight: 900;
  color: #60a5fa;
  text-shadow: 0 0 10px rgba(96,165,250,0.8);
}

.rank-cell {
  font-size: 16px;
  font-weight: 900;
  color: #f472b6;
  text-shadow: 0 0 10px rgba(244,114,182,0.8);
}

/* League Teams */
.league-teams{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Team Card Container */
.team-card-flip {
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  transition: border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
}

.team-card-flip:hover {
  border-color: rgba(0,255,136,0.5);
  box-shadow: 0 12px 40px rgba(0,255,136,0.25);
}

.team-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
}

/* Logo Section (Left) */
.team-card-front {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-right: 1px solid rgba(0,255,136,0.2);
  position: relative;
}

.team-logo-full {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  opacity: 0.7;
  filter: drop-shadow(0 0 20px rgba(0,255,136,0.3));
  transition: all 0.3s ease;
}

.team-card-flip:hover .team-logo-full {
  opacity: 0.85;
  filter: drop-shadow(0 0 30px rgba(0,255,136,0.5));
  transform: scale(1.05);
}

.team-badge {
  display: none;
}

/* Members Section (Right) */
.team-card-back {
  flex: 1;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.team-name-back {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 12px;
  text-align: center;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(0,255,136,0.8);
  letter-spacing: 1px;
  flex-shrink: 0;
}

.team-card__members {
  width: 100%;
  display: grid;
  gap: 5px;
  align-content: start;
}
.team-member{ display: grid; grid-template-columns: 70px 1fr 30px; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,0.04); transition: all .2s ease; border: 1px solid transparent; }
.team-member:hover{ background: rgba(0,255,136,0.08); border-color: rgba(0,255,136,0.3); transform: translateX(3px); }
.member-position{ display: inline-flex; align-items: center; justify-content: center; padding: 4px 6px; border-radius: 5px; font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px; }
.position--leader{ background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,165,0,0.15)); color: #ffd700; border: 1px solid rgba(255,215,0,0.4); }
.position--joker{ background: linear-gradient(135deg, rgba(138,43,226,0.2), rgba(75,0,130,0.15)); color: #da70d6; border: 1px solid rgba(138,43,226,0.4); }
.position--elite{ background: linear-gradient(135deg, rgba(0,191,255,0.2), rgba(30,144,255,0.15)); color: #00bfff; border: 1px solid rgba(0,191,255,0.4); }
.position--ace{ background: linear-gradient(135deg, rgba(255,69,0,0.2), rgba(220,20,60,0.15)); color: #ff6347; border: 1px solid rgba(255,69,0,0.4); }
.member-name{ color: var(--text); font-weight: 700; font-size: 15px; letter-spacing: 0.2px; }
.member-race{ display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; font-weight: 700; font-size: 12px; }
.race--terran{ background: rgba(59,130,246,0.2); color: #60a5fa; border: 1px solid rgba(59,130,246,0.4); }
.race--protoss{ background: rgba(234,179,8,0.2); color: #fbbf24; border: 1px solid rgba(234,179,8,0.4); }
.race--zerg{ background: rgba(220,38,127,0.2); color: #f472b6; border: 1px solid rgba(220,38,127,0.4); }

.starleague__grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.star-card{ padding: 18px; border-radius: var(--radius); transition: transform .25s ease, border-color .25s ease; border: 1px solid transparent; }
.star-card:hover{ transform: translateY(-3px); border-color: rgba(0,255,136,0.35); }
.star-card--champion{ position: relative; border-color: rgba(255,215,0,0.55); box-shadow: 0 0 28px rgba(255,215,0,0.25), 0 0 0 1px rgba(255,255,255,0.04) inset; }
.star-card--champion::after{ content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: var(--radius); background: radial-gradient(120% 120% at 20% -10%, rgba(255,215,0,0.18), transparent 60%); }
.star-card__header{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.star-card__title{ margin: 8px 0 4px; }
.star-card__desc{ color: var(--muted); }

/* Videos Section */
.videos__grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.video-card{ padding: 18px; border-radius: var(--radius); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; border: 1px solid var(--border); background: var(--surface); }
.video-card:hover{ transform: translateY(-4px); border-color: rgba(0,255,136,0.45); box-shadow: 0 8px 32px rgba(0,255,136,0.2); }
.video-card__header{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.video-card__embed{ margin-bottom: 12px; border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.3); position: relative; width: 100%; }
.video-card__embed::before{ content: ""; display: block; padding-top: 56.25%; }
.video-card__embed iframe{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; border-radius: var(--radius-sm); }
.video-card__title{ margin: 0; font-size: 18px; color: var(--text); }
/* Base Theme */
:root{
  --bg: #050607;
  --surface: rgba(255,255,255,0.06);
  --glass: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.18);
  --text: #e6f6ef;
  --muted: #9bb9ae;
  --neon: #00ff88;
  --neon-dim: #00cc70;
  --danger: #ff3b3b;
  --shadow: rgba(0,0,0,0.5);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1200px;
  --blur: 14px;
}

*{ box-sizing: border-box; }
html,body{
  height: 100%;
  background: radial-gradient(1200px 800px at 80% -10%, rgba(0,255,136,0.06), transparent 60%),
              radial-gradient(900px 700px at -10% 20%, rgba(0,255,136,0.05), transparent 50%),
              var(--bg);
  color: var(--text);
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, Apple Color Emoji, Segoe UI Emoji;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Typography */
h1,h2,h3{ margin: 0 0 12px; line-height: 1.15; }
h1{ font-family: Orbitron, Inter, sans-serif; font-size: clamp(40px, 6vw, 72px); letter-spacing: 1px; }
h2{ font-weight: 800; font-size: clamp(28px, 3.5vw, 40px); }
h3{ font-weight: 700; font-size: 22px; }
p{ color: var(--muted); margin: 0 0 12px; }

.container{ width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* Navigation */
.nav{ position: fixed; inset: 0 0 auto 0; z-index: 20; backdrop-filter: blur(8px); background: rgba(5,6,7,0.35); border-bottom: 1px solid var(--border);}
.nav__inner{ display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand{ display: inline-flex; align-items: baseline; gap: 6px; color: var(--text); text-decoration: none; font-weight: 900; }
.brand__img{ width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(0,255,136,0.3)); border-radius: 6px; }
.brand__logo{ font-family: Orbitron, Inter, sans-serif; color: var(--neon); text-shadow: 0 0 12px rgba(0,255,136,0.7); letter-spacing: 1px; }
.brand__text{ opacity: 0.9; }

.menu-toggle{ display: none; position: relative; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.menu-toggle span{ position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease;}
.menu-toggle span:nth-child(1){ top: 12px; }
.menu-toggle span:nth-child(2){ top: 20px; }
.menu-toggle span:nth-child(3){ top: 28px; }
.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); }

.nav__menu{ display: flex; gap: 24px; }
.nav__menu a{ color: var(--text); text-decoration: none; opacity: 0.9; border-bottom: 2px solid transparent; padding: 6px 2px; transition: color .2s ease, border-color .2s ease; }
.nav__menu a:hover{ color: var(--neon); border-color: var(--neon); }
.nav__menu .cta-link{ color: var(--neon); text-shadow: 0 0 8px rgba(0,255,136,0.7); }

/* Hero */
.hero{ position: relative; padding: 140px 0 80px; overflow: hidden; }
.hero__inner{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.hero__copy{ animation: floatIn .9s ease both .1s; }
.hero__subtitle{ font-size: 18px; }
.hero__cta{ display: flex; gap: 12px; margin-top: 18px; }
.hero__chips{ display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.hero__channel{ display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 8px; padding: 6px 10px; border-radius: 10px; border: 1px dashed rgba(0,255,136,0.4); background: rgba(0,255,136,0.06); color: var(--neon); font-weight: 700; }
.chip{ display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.06); font-size: 12px; color: var(--muted); }
.chip--neon{ border-color: rgba(0,255,136,0.35); color: var(--neon); background: rgba(0,255,136,0.06); }
.hero__meta{ display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.meta{ font-size: 12px; color: var(--muted); border-bottom: 1px dashed rgba(255,255,255,0.25); }

.neon-title{ color: #fff; text-shadow: 0 0 18px rgba(0,255,136,0.45), 0 0 2px rgba(255,255,255,0.5); position: relative; }
.neon-title .neon-spark{ position: absolute; left: -12px; top: -8px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, var(--neon) 0%, transparent 70%); filter: blur(1px); animation: spark 3.2s ease-in-out infinite; }
@keyframes spark{ 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(8px, -6px) scale(1.5);} }

.hero__panel{ padding: 24px; border-radius: var(--radius); }
.hero__bullets{ margin: 10px 0 0; padding-left: 18px; color: var(--text); opacity: .9; }

.hero__shine{ position: absolute; inset: -10% -10% auto; height: 60%; background: radial-gradient(60% 60% at 70% 30%, rgba(0,255,136,.15), transparent 70%); filter: blur(40px); pointer-events: none; }

/* Hero visual */
.hero__visual{ position: relative; display: grid; align-content: start; gap: 14px; }
.hero__art{ width: 100%; height: auto; display: block; object-fit: contain; filter: drop-shadow(0 12px 40px rgba(0,0,0,0.6)) drop-shadow(0 0 24px rgba(0,255,136,0.25));
  animation: floatY 6s ease-in-out infinite, glowPulse 4.5s ease-in-out infinite; }
@keyframes floatY{ 0%,100%{ transform: translateY(0) rotate(-0.4deg);} 50%{ transform: translateY(-8px) rotate(0.4deg);} }
@keyframes glowPulse{ 0%,100%{ filter: drop-shadow(0 12px 40px rgba(0,0,0,0.6)) drop-shadow(0 0 16px rgba(0,255,136,0.18)); }
  50%{ filter: drop-shadow(0 12px 40px rgba(0,0,0,0.6)) drop-shadow(0 0 28px rgba(0,255,136,0.38)); } }

/* Sections */
.section{ padding: 88px 0; position: relative; }
.section{ scroll-margin-top: 84px; }
.section .section__head{ margin-bottom: 28px; }
.section__desc{ max-width: 760px; }

.about__grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about__card{ padding: 22px; border-radius: var(--radius); }

.features__grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card{ padding: 22px; border-radius: var(--radius); display: grid; gap: 10px; border: 1px solid transparent; transition: transform .25s ease, border-color .25s ease; }
.feature-card:hover{ transform: translateY(-4px); border-color: rgba(0,255,136,0.35); }
.feature-card__icon{ font-size: 26px; }

.gallery__grid{ display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gallery__item{ aspect-ratio: 1.3 / 1; border-radius: var(--radius-sm); background:
  linear-gradient(120deg, rgba(0,255,136,0.2), transparent 30%),
  url('https://images.unsplash.com/photo-1558980664-10f880c2ed43?q=80&w=800&auto=format&fit=crop') center/cover no-repeat;
  filter: saturate(1.2) contrast(1.05);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35) inset;
}

/* Members */
.members__grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* Starleague */
.starleague{ padding: 22px; border-radius: var(--radius); }
.starleague__header{ display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.badge{ display: inline-flex; height: 24px; align-items: center; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(0,255,136,0.35); color: var(--neon); background: rgba(0,255,136,0.06); font-size: 12px; }
.status{ font-size: 12px; color: #ffd166; }
.status--live{ color: #00ffa2; text-shadow: 0 0 8px rgba(0,255,136,.5); }
.starleague__title{ margin: 6px 0; }
.starleague__desc{ color: var(--muted); }
.members__col{ padding: 18px; border-radius: var(--radius); }
.members__emblem{ display: none; }
.members__icon{ width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 5px 14px rgba(0,255,136,0.18)); opacity: .9; margin: 0 8px; vertical-align: middle; }
.members__col h3{ display: flex; align-items: center; gap: 8px; }
.members__count{ display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 999px; border: 1px solid rgba(0,255,136,0.35); color: var(--neon); font-size: 12px; background: rgba(0,255,136,0.06); }
.members__table{ width: 100%; border-collapse: collapse; }
.members__table th, .members__table td{ text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.members__table tr:hover td{ background: rgba(0,255,136,0.05); }
.members__table th{ color: var(--neon); font-weight: 800; }

/* Bracket */
.bracket{ padding: 22px; border-radius: var(--radius); display: grid; gap: 24px; }
.bracket__round{ display: grid; gap: 12px; }
.bracket__title{ font-size: 18px; color: var(--neon); letter-spacing: .2px; }
.bracket__grid{ display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start; }
.bracket__col{ display: grid; gap: 12px; }
.bracket__divider{ width: 2px; background: linear-gradient(180deg, rgba(0,255,136,0.2), rgba(255,255,255,0.08), rgba(0,255,136,0.2)); border-radius: 2px; }

.match-card{ padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(255,255,255,0.04); display: grid; gap: 10px; }
.match-card__head{ display: flex; align-items: center; justify-content: space-between; }
.match-card__players{ display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.match-card--thin{ display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 12px; }
.match-card--final{ text-align: center; font-weight: 800; font-size: 18px; letter-spacing: .3px; }
.match-card__seed{ opacity: .9; }
.vs{ color: var(--muted); font-weight: 700; }
.player{ background: rgba(0,255,136,0.06); border: 1px solid rgba(0,255,136,0.35); border-radius: 10px; padding: 8px 10px; }

/* Round specific layouts */
.bracket__grid--r8{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bracket__grid--r4{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bracket__grid--final{ display: grid; grid-template-columns: 1fr; }

/* Bracket Tree */
.bracket-tree{ position: relative; padding: 22px; border-radius: var(--radius); display: grid; gap: 24px; grid-template-columns: 1fr 1fr 1fr 160px 1fr 1fr 1fr; align-items: center; overflow: auto; }
.bracket-lines{ position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: rgba(255,255,255,0.65); }
.bracket-lines path{ fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tree-col{ display: grid; gap: 16px; align-content: center; }
.tree-col--r16{ grid-auto-rows: minmax(0, auto); }
.tree-col--r8{ grid-auto-rows: minmax(0, auto); }
.tree-col--r4{ grid-auto-rows: minmax(0, auto); }
.tree-col--final{ justify-items: center; }

/* Cards inside tree */
.match-card{ padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(255,255,255,0.04); display: grid; gap: 10px; }
.match-card__head{ display: flex; align-items: center; justify-content: space-between; }
.match-card__players{ display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.match-card--thin{ display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 12px; }
.match-card--final{ text-align: center; font-weight: 800; font-size: 18px; letter-spacing: .3px; }
.match-card__seed{ opacity: .9; }
.vs{ color: var(--muted); font-weight: 700; }
.player{ background: rgba(0,255,136,0.06); border: 1px solid rgba(0,255,136,0.35); border-radius: 10px; padding: 8px 10px; }

.join{ padding: 28px; border-radius: var(--radius); text-align: center; }
.join__cta{ display: flex; gap: 12px; justify-content: center; margin-top: 14px; }

/* Footer */
.footer{ border-top: 1px solid var(--border); background: rgba(5,6,7,0.5); }
.footer__inner{ display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.footer a{ color: var(--muted); text-decoration: none; }
.footer a:hover{ color: var(--neon); }

/* Glassmorphism */
.glass{
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04) inset;
  backdrop-filter: blur(var(--blur)) saturate(1.15);
}

/* Buttons */
.btn{ display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; text-decoration: none; font-weight: 700; letter-spacing: .2px; transition: transform .15s ease, box-shadow .2s ease, color .2s ease, background .2s ease; border: 1px solid transparent; }
.btn:active{ transform: translateY(1px); }
.btn--primary{ color: #001b10; background: linear-gradient(180deg, var(--neon), var(--neon-dim)); box-shadow: 0 0 24px rgba(0,255,136,0.35); }
.btn--primary:hover{ box-shadow: 0 0 36px rgba(0,255,136,0.55); }
.btn--ghost{ color: var(--neon); border-color: rgba(0,255,136,0.35); background: transparent; }
.btn--ghost:hover{ background: rgba(0,255,136,0.08); }

/* Reveal on scroll */
.reveal{ opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: none; }

/* Starfield canvas (cover) */
#starfield{ position: fixed; inset: 0; z-index: -1; display: block; }
.skip-link{ position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus{ position: fixed; left: 16px; top: 12px; width: auto; height: auto; padding: 10px 12px; background: #000; color: var(--neon); border: 1px solid rgba(0,255,136,0.5); border-radius: 8px; z-index: 200; }

/* Utilities */
@keyframes floatIn{ from{ opacity: 0; transform: translateY(10px);} to{ opacity:1; transform:none;} }

/* Focus styles for accessibility */
:where(a, button, .btn, .nav__menu a):focus-visible{ outline: 2px solid var(--neon); outline-offset: 2px; border-radius: 10px; }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Responsive */
@media (max-width: 1024px){
  .hero__inner{ grid-template-columns: 1fr; }
  .features__grid{ grid-template-columns: repeat(2, 1fr); }
  .members__grid{ grid-template-columns: 1fr; }
  .members__icon{ width: 88px; height: 88px; }
  .starleague__grid{ grid-template-columns: repeat(2, 1fr); }
  .videos__grid{ grid-template-columns: 1fr; }
  .league-teams{ grid-template-columns: 1fr; gap: 18px; }
  .bracket__grid{ grid-template-columns: 1fr; }
  .bracket__divider{ display: none; }
  .bracket__grid--r8, .bracket__grid--r4{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .menu-toggle{ display: inline-block; }
  .nav__menu{ position: absolute; right: 20px; top: 64px; flex-direction: column; background: rgba(5,6,7,0.75); border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: none; }
  .nav__menu.is-open{ display: flex; }
  .about__grid{ grid-template-columns: 1fr; }
  .features__grid{ grid-template-columns: 1fr; }
  .members__icon{ width: 76px; height: 76px; }
  .starleague__grid{ grid-template-columns: 1fr; }
  .section{ padding: 64px 0; }
  .hero{ padding: 120px 0 64px; }
  .hero__subtitle{ font-size: 16px; }
  .hero__cta{ flex-direction: column; }
  .btn{ width: 100%; }
  .members__table{ display: block; overflow-x: auto; white-space: nowrap; }
  .section .section__head{ margin-bottom: 18px; }

  /* Members: center alignment on mobile */
  .members__col{ text-align: center; }
  .members__col h3{ justify-content: center; }
  .members__table th, .members__table td{ text-align: center; }
  
  /* Bracket mobile tweaks */
  .player{ padding: 8px; font-size: 14px; }
  .match-card--final{ font-size: 16px; }

  /* Videos mobile optimization */
  .videos__grid{ gap: 16px; }
  .video-card{ padding: 12px; }
  .video-card__header{ flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
  .video-card__title{ font-size: 16px; }
  .video-card__embed{ margin-bottom: 10px; }

  /* Team flip cards mobile optimization */
  .league-teams{ gap: 16px; }
  .team-card-flip{ min-height: 280px; height: 280px; }
  .team-card-front{ padding: 0; }
  .team-card-back{ padding: 20px 16px; }
  .team-card-front .team-badge{ font-size: 20px; padding: 10px 20px; }
  .team-name-back{ font-size: 20px; margin-bottom: 16px; }
  .member-position{ font-size: 9px; padding: 3px 5px; }
  .member-name{ font-size: 13px; }
  .member-race{ width: 24px; height: 24px; font-size: 11px; }
  .team-member{ grid-template-columns: 70px 1fr 28px; padding: 8px 10px; }
}


