:root {
  --bg: #070912;
  --bg-2: #0b1020;
  --card: rgba(16, 23, 43, 0.78);
  --card-solid: #10172b;
  --hover: #18233d;
  --border: rgba(41, 56, 92, 0.78);
  --text: #ffffff;
  --text-soft: #b7c4ff;
  --muted: #6e7aa8;
  --cyan: #00e5ff;
  --purple: #7a5cff;
  --gold: #ffd54a;
  --silver: #c8d6e5;
  --bronze: #d98b4e;
  --success: #32ffb3;
  --danger: #ff5a6b;
  --network-red: #ff2f46;
  --deep-red: #4b0711;
  --orange: #ff9f43;
  --shadow-cyan: 0 0 28px rgba(0, 229, 255, 0.28);
  --shadow-purple: 0 0 34px rgba(122, 92, 255, 0.25);
  --font-heading: "Orbitron", "Inter", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-number: "Rajdhani", "Inter", sans-serif;
  --font-pixel: "Press Start 2P", monospace;
  color-scheme: dark;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(122, 92, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(0, 229, 255, 0.16), transparent 24rem),
    linear-gradient(180deg, #070912 0%, #090d1a 42%, #070912 100%);
  color: var(--text);
  font-family: var(--font-body);
  letter-spacing: 0;
  overflow-x: hidden;
}

body.eclipse {
  --bg: #050710;
  --bg-2: #0d1025;
  --card: rgba(13, 16, 37, 0.82);
  --card-solid: #0d1025;
  --hover: #172044;
  --border: rgba(64, 83, 132, 0.72);
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.cursor-glow {
  position: fixed;
  left: var(--cursor-x, 50%);
  top: var(--cursor-y, 45%);
  width: 24rem;
  height: 24rem;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.13), transparent 66%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.65;
  z-index: 1;
}

.section-shell {
  width: min(1440px, calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.content-section {
  padding: 88px 0 18px;
  min-height: calc(100svh - 110px);
}

.page-hidden {
  display: none !important;
}

.page-pop {
  animation: softPagePop 0.34s ease both;
}

body.is-logged-in .auth-nav-link {
  display: none;
}

.player-nav-link,
.staff-nav-link,
.staff-only {
  display: none !important;
}

body.is-logged-in .player-nav-link {
  display: inline-flex !important;
}

body.needs-ign .player-nav-link {
  display: none !important;
}

body.is-staff .staff-nav-link,
body.is-staff .staff-only {
  display: inline-flex !important;
}

.glass-panel,
.stat-card,
.leaderboard-card,
.category-card {
  position: relative;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--card);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  border-radius: 8px;
}

.glass-panel::before,
.category-card::before,
.leaderboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.55), rgba(122, 92, 255, 0.26), transparent 58%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}

.loading-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #050710;
  z-index: 1000;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.refresh-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 16, 0.74);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.refresh-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.refresh-core {
  min-width: min(300px, calc(100vw - 42px));
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 47, 70, 0.3);
  border-radius: 12px;
  background: rgba(12, 12, 22, 0.9);
  box-shadow: 0 24px 90px rgba(255, 47, 70, 0.18), 0 24px 90px rgba(0, 0, 0, 0.54);
}

.refresh-core span {
  width: 38px;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--network-red);
  border-radius: 50%;
  animation: refreshSpin 0.76s linear infinite;
}

.refresh-core strong {
  font: 900 0.95rem var(--font-heading);
  text-transform: uppercase;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 5, 11, 0.72);
  backdrop-filter: blur(12px);
}

.modal-backdrop[hidden] {
  display: none;
}

.confirm-modal {
  width: min(460px, 100%);
  padding: 22px;
  border-color: rgba(255, 47, 70, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 47, 70, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(13, 10, 18, 0.96);
}

.confirm-modal h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.confirm-modal p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.loading-core {
  display: grid;
  gap: 18px;
  place-items: center;
  width: min(340px, 82vw);
}

.loading-core strong {
  font: 800 1.25rem var(--font-heading);
}

.loading-mark,
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 229, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(122, 92, 255, 0.28)),
    rgba(16, 23, 43, 0.84);
  color: var(--cyan);
  border-radius: 8px;
  font: 900 0.83rem var(--font-heading);
  box-shadow: var(--shadow-cyan), inset 0 0 14px rgba(122, 92, 255, 0.34);
}

.loading-bar {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.loading-bar span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  animation: loadingSweep 1.2s ease-in-out infinite;
}

@keyframes loadingSweep {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(240%);
  }
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  width: min(1440px, calc(100% - 28px));
  margin: 12px auto 0;
}

.navbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(41, 56, 92, 0.75);
  border-radius: 8px;
  background: rgba(9, 13, 26, 0.78);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font: 800 1rem var(--font-heading);
}

.brand-copy small {
  color: var(--muted);
  font: 700 0.68rem var(--font-number);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 18px);
  flex: 1;
}

.nav-links a {
  position: relative;
  padding: 11px 4px;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.7);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.menu-toggle {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 56, 92, 0.82);
  color: var(--text-soft);
  background: rgba(16, 23, 43, 0.8);
  border-radius: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.icon-button {
  width: 40px;
  aspect-ratio: 1;
  font: 800 0.9rem var(--font-heading);
}

.icon-button:hover,
.menu-toggle:hover {
  transform: translateY(-2px);
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.65);
  box-shadow: var(--shadow-cyan);
}

.has-dot::after {
  content: "";
  position: absolute;
  width: 7px;
  aspect-ratio: 1;
  margin-left: 23px;
  margin-top: -22px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 11px var(--danger);
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(41, 56, 92, 0.82);
  background: rgba(16, 23, 43, 0.86);
  color: #fff;
  border-radius: 8px;
  padding: 5px 10px 5px 5px;
  font-weight: 800;
}

.nav-logout {
  min-height: 42px;
  padding: 0 14px;
  border-color: rgba(255, 47, 70, 0.34);
  font-size: 0.88rem;
}

.profile-chip img,
.profile-avatar-mini {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.profile-chip img {
  image-rendering: pixelated;
}

.profile-avatar-mini {
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, 0.42);
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
  font: 900 0.72rem var(--font-heading);
}

.menu-toggle {
  display: none;
  width: 42px;
  aspect-ratio: 1;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  width: 100%;
  max-width: none;
  min-height: 72svh;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -82px;
  padding: 138px 0 52px;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -3;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.12) contrast(1.08);
  transform: translate3d(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -8px), 0) scale(1.04);
}

.hero-scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 9, 18, 0.96) 0%, rgba(7, 9, 18, 0.72) 38%, rgba(7, 9, 18, 0.4) 68%, rgba(7, 9, 18, 0.84) 100%),
    linear-gradient(180deg, rgba(7, 9, 18, 0.58) 0%, rgba(7, 9, 18, 0.28) 52%, #070912 100%);
}

.hero-content {
  width: min(1440px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}

.hero-copy {
  max-width: 830px;
  animation: riseIn 0.8s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font: 800 0.75rem var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.82);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(2.8rem, 5.7vw, 5.65rem);
  line-height: 0.98;
  font-weight: 900;
  text-shadow: 0 0 42px rgba(0, 229, 255, 0.22);
}

.hero h1::selection,
.section-heading h2::selection {
  background: rgba(0, 229, 255, 0.28);
}

.hero-copy p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.55vw, 1.08rem);
  line-height: 1.65;
}

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

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.button.primary::before {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
}

.button.secondary::before {
  background: rgba(16, 23, 43, 0.78);
}

.button.secondary {
  border-color: rgba(183, 196, 255, 0.24);
}

.button.danger {
  border-color: rgba(255, 47, 70, 0.62);
  box-shadow: 0 0 26px rgba(255, 47, 70, 0.18);
}

.button.danger::before {
  background: linear-gradient(135deg, #ff2f46, #7a1020);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-cyan), var(--shadow-purple);
  border-color: rgba(0, 229, 255, 0.68);
}

.button.full {
  width: 100%;
}

.button .ripple {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  translate: -50% -50%;
  animation: ripple 0.55s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: scale(18);
  }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-meta span,
.status-pill,
.region-badge,
.tier-badge,
.filter-pills button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(41, 56, 92, 0.9);
  background: rgba(11, 16, 32, 0.72);
  color: var(--text-soft);
  border-radius: 999px;
  font: 800 0.72rem var(--font-number);
  text-transform: uppercase;
}

.hero-meta strong {
  color: var(--cyan);
}

.hero-panel {
  padding: 20px;
  animation: floatCard 5s ease-in-out infinite;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-heading strong {
  font: 800 1rem var(--font-heading);
}

.panel-kicker,
.metric-panel span,
.field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-list,
.match-list {
  display: grid;
  gap: 10px;
}

.queue-item,
.match-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(41, 56, 92, 0.58);
  background: rgba(11, 16, 32, 0.58);
  border-radius: 8px;
}

.queue-item img,
.match-avatar,
.leader-avatar,
.profile-avatar {
  border-radius: 7px;
  image-rendering: pixelated;
}

.queue-item img {
  width: 38px;
  height: 38px;
}

.queue-item strong,
.match-item strong {
  display: block;
  color: #fff;
  font-weight: 900;
}

.queue-item span,
.match-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.queue-timer {
  color: var(--success);
  font: 900 1rem var(--font-number);
}

.season-widget {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.season-widget div:first-child {
  display: flex;
  justify-content: space-between;
  color: var(--text-soft);
  font-weight: 800;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(41, 56, 92, 0.58);
}

.progress-track span {
  display: block;
  width: var(--value, 50%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.75);
  transform-origin: left;
  animation: fillBar 1.1s ease both;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -34px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 128px;
  padding: 18px;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.stat-card:hover,
.category-card:hover,
.leaderboard-card:hover {
  transform: translateY(-6px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(24, 35, 61, 0.82);
  box-shadow: var(--shadow-cyan), 0 24px 80px rgba(0, 0, 0, 0.44);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 50px;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: rgba(0, 229, 255, 0.08);
  font-size: 1.45rem;
}

.stat-card strong {
  display: block;
  font: 900 2.35rem var(--font-number);
  line-height: 1;
}

.stat-card span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading.compact {
  max-width: 920px;
}

.section-heading h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 1;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  padding: 18px;
  overflow: hidden;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 120px;
  aspect-ratio: 1;
  right: -40px;
  top: -42px;
  background: radial-gradient(circle, rgba(122, 92, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.category-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
  border-radius: 8px;
  font-size: 1.45rem;
  box-shadow: inset 0 0 18px rgba(122, 92, 255, 0.22);
}

.category-card h3 {
  margin-top: 18px;
  font-size: 1.16rem;
}

.category-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.metric {
  display: grid;
  gap: 2px;
}

.metric span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.metric strong {
  font: 900 1.35rem var(--font-number);
}

.recent-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.tier-badge {
  color: #fff;
  border-color: rgba(122, 92, 255, 0.56);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.14), rgba(122, 92, 255, 0.24));
  box-shadow: 0 0 18px rgba(122, 92, 255, 0.26);
}

.tier-badge.ht1,
.tier-badge.ht2,
.tier-badge.ht3 {
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 19px rgba(0, 229, 255, 0.28);
}

.tier-badge.lt1,
.tier-badge.lt2,
.tier-badge.lt3 {
  border-color: rgba(122, 92, 255, 0.62);
}

.control-deck {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(160px, 0.6fr));
  gap: 12px;
  padding: 14px;
  margin-bottom: 18px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(41, 56, 92, 0.86);
  background: rgba(7, 9, 18, 0.74);
  color: #fff;
  border-radius: 8px;
  padding: 0 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input::placeholder {
  color: rgba(183, 196, 255, 0.48);
}

.field input:focus,
.field select:focus {
  border-color: rgba(0, 229, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1), var(--shadow-cyan);
}

.leaderboard-list {
  display: grid;
  gap: 12px;
}

.leaderboard-card {
  display: grid;
  grid-template-columns: 86px minmax(220px, 1fr) minmax(170px, 0.7fr) minmax(360px, 1.4fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  overflow: hidden;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.leaderboard-card.rank-1 {
  border-color: rgba(255, 213, 74, 0.72);
  box-shadow: 0 0 32px rgba(255, 213, 74, 0.22), 0 20px 70px rgba(0, 0, 0, 0.34);
}

.leaderboard-card.rank-2 {
  border-color: rgba(200, 214, 229, 0.72);
  box-shadow: 0 0 32px rgba(200, 214, 229, 0.16), 0 20px 70px rgba(0, 0, 0, 0.34);
}

.leaderboard-card.rank-3 {
  border-color: rgba(217, 139, 78, 0.72);
  box-shadow: 0 0 32px rgba(217, 139, 78, 0.18), 0 20px 70px rgba(0, 0, 0, 0.34);
}

.rank-number {
  font: 400 1.08rem var(--font-pixel);
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.46);
}

.rank-1 .rank-number {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(255, 213, 74, 0.62);
}

.rank-2 .rank-number {
  color: var(--silver);
}

.rank-3 .rank-number {
  color: var(--bronze);
}

.leader-player {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.leader-avatar {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: inset 0 0 14px rgba(0, 229, 255, 0.16);
}

.leader-name {
  display: grid;
  min-width: 0;
}

.leader-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.02rem;
}

.leader-name span {
  color: var(--muted);
  font-size: 0.82rem;
}

.leader-score {
  display: grid;
  gap: 4px;
}

.leader-score strong {
  color: var(--gold);
  font: 900 1.65rem var(--font-number);
}

.leader-score span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.leader-details {
  display: grid;
  gap: 10px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.detail-grid div {
  display: grid;
  gap: 2px;
}

.detail-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-grid strong {
  font: 900 1.1rem var(--font-number);
}

.region-badge {
  color: var(--success);
  border-color: rgba(50, 255, 179, 0.38);
}

.test-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.62fr);
  gap: 16px;
}

.test-console,
.match-panel {
  padding: 18px;
}

.console-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.status-pill.live {
  color: var(--success);
  border-color: rgba(50, 255, 179, 0.42);
  box-shadow: 0 0 18px rgba(50, 255, 179, 0.16);
}

.status-completed {
  color: var(--success);
  border-color: rgba(50, 255, 179, 0.38);
}

.status-declined {
  color: var(--danger);
  border-color: rgba(255, 90, 107, 0.44);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.match-item {
  grid-template-columns: 1fr auto;
}

.match-vs {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.match-avatar {
  width: 34px;
  height: 34px;
}

.rating-change {
  font: 900 1rem var(--font-number);
}

.rating-change.positive {
  color: var(--success);
}

.rating-change.negative {
  color: var(--danger);
}

.player-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: 16px;
  margin-bottom: 16px;
}

.search-panel,
.compare-panel,
.profile-shell {
  padding: 18px;
}

.autocomplete-field {
  position: relative;
}

.suggestions {
  position: absolute;
  z-index: 12;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  max-height: 270px;
  overflow: auto;
  border: 1px solid rgba(41, 56, 92, 0.9);
  background: rgba(7, 9, 18, 0.96);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.suggestions.is-open {
  display: grid;
}

.suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(41, 56, 92, 0.42);
  color: #fff;
  background: transparent;
  text-align: left;
}

.suggestion:hover {
  background: rgba(0, 229, 255, 0.08);
}

.suggestion-empty {
  color: var(--muted);
  cursor: default;
}

.suggestion img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  image-rendering: pixelated;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 118px;
  width: 100%;
  padding: 18px;
  border: 1px dashed rgba(41, 56, 92, 0.82);
  background: rgba(7, 9, 18, 0.36);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--text-soft);
  font: 900 1rem var(--font-heading);
}

.empty-state span {
  max-width: 360px;
  line-height: 1.5;
}

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

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filter-pills button {
  border-radius: 999px;
}

.filter-pills button.active {
  color: #fff;
  border-color: rgba(0, 229, 255, 0.72);
  background: rgba(0, 229, 255, 0.13);
  box-shadow: var(--shadow-cyan);
}

.compare-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.compare-controls select {
  min-height: 42px;
  border: 1px solid rgba(41, 56, 92, 0.86);
  border-radius: 8px;
  background: rgba(7, 9, 18, 0.74);
  color: #fff;
  padding: 0 10px;
}

.compare-bars {
  display: grid;
  gap: 10px;
}

.compare-row {
  display: grid;
  gap: 6px;
}

.compare-row header {
  display: flex;
  justify-content: space-between;
  color: var(--text-soft);
  font: 800 0.83rem var(--font-number);
}

.profile-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 20px;
}

.profile-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
}

.profile-avatar {
  width: 112px;
  height: 112px;
  border: 1px solid rgba(0, 229, 255, 0.42);
  box-shadow: var(--shadow-cyan);
}

.profile-title h3 {
  font-size: 2rem;
  margin-top: 10px;
}

.profile-title p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.profile-facts,
.profile-stat-grid {
  display: grid;
  gap: 10px;
}

.profile-facts div,
.timeline-item,
.profile-stat-grid div {
  border: 1px solid rgba(41, 56, 92, 0.58);
  background: rgba(11, 16, 32, 0.54);
  border-radius: 8px;
  padding: 11px;
}

.profile-facts span,
.profile-stat-grid span,
.timeline-item span {
  color: var(--muted);
  display: block;
  margin-bottom: 3px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-facts strong,
.profile-stat-grid strong {
  font: 900 1.25rem var(--font-number);
}

.profile-main {
  min-width: 0;
  display: grid;
  gap: 18px;
}

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

.rating-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.rating-card {
  border: 1px solid rgba(41, 56, 92, 0.58);
  background: rgba(11, 16, 32, 0.54);
  border-radius: 8px;
  padding: 12px;
}

.rating-card span {
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
  font-size: 0.75rem;
  font-weight: 800;
}

.rating-card strong {
  display: block;
  font: 900 1.35rem var(--font-number);
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  position: relative;
  padding-left: 18px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(var(--cyan), var(--purple));
}

.statistics-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr repeat(2, minmax(170px, 0.5fr));
  gap: 16px;
}

.chart-panel {
  min-height: 330px;
  padding: 18px;
}

.chart-panel:first-child {
  grid-column: span 2;
}

#ratingChart {
  width: 100%;
  display: block;
}

.distribution {
  display: grid;
  gap: 13px;
}

.distribution-row {
  display: grid;
  grid-template-columns: 54px 1fr 48px;
  align-items: center;
  gap: 10px;
}

.distribution-row span:first-child {
  font-weight: 900;
}

.distribution-row span:last-child {
  color: var(--text-soft);
  text-align: right;
  font: 900 1rem var(--font-number);
}

.metric-panel {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.metric-panel strong {
  font: 900 2.2rem var(--font-number);
  color: #fff;
}

.metric-panel small {
  color: var(--muted);
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
  gap: 16px;
}

.metric-stack {
  display: grid;
  gap: 16px;
}

.results-table {
  display: grid;
  gap: 10px;
}

.result-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid rgba(41, 56, 92, 0.58);
  background: rgba(11, 16, 32, 0.54);
  border-radius: 8px;
}

.result-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.result-row strong {
  font-weight: 900;
}

.result-row div strong,
.result-row div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-row div span {
  color: var(--muted);
  font-size: 0.86rem;
}

.auth-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 0.54fr) minmax(240px, 0.46fr);
  gap: 18px;
  align-items: start;
}

.auth-form,
.auth-side {
  display: grid;
  gap: 12px;
}

.google-auth-layout {
  max-width: 940px;
  margin-inline: auto;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.9fr);
  justify-content: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(41, 56, 92, 0.72);
  background: rgba(7, 9, 18, 0.54);
  border-radius: 8px;
}

.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  color: var(--text-soft);
  background: transparent;
  font-weight: 900;
}

.auth-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(122, 92, 255, 0.32));
  box-shadow: var(--shadow-cyan);
}

.auth-side {
  padding: 14px;
  border: 1px solid rgba(41, 56, 92, 0.58);
  background: rgba(11, 16, 32, 0.45);
  border-radius: 8px;
}

.google-register-card,
.ign-setup-form,
.auth-instructions {
  align-content: start;
  padding: 18px;
  border: 1px solid rgba(255, 47, 70, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 47, 70, 0.08), rgba(122, 92, 255, 0.05)),
    rgba(11, 16, 32, 0.48);
  border-radius: 8px;
}

.google-register-card h3,
.ign-setup-form h3 {
  margin: 0;
  font: 900 1.05rem var(--font-heading);
}

.google-register-card p,
.ign-setup-form p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.45;
}

.auth-instructions {
  display: grid;
  gap: 14px;
}

.auth-instructions ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--text-soft);
  font-weight: 800;
  line-height: 1.45;
}

.auth-instructions li::marker {
  color: var(--network-red);
  font-weight: 900;
}

.auth-step {
  width: max-content;
  padding: 6px 10px;
  border: 1px solid rgba(50, 255, 179, 0.32);
  border-radius: 999px;
  color: var(--success);
  background: rgba(50, 255, 179, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ign-setup-form[hidden] {
  display: none;
}

.auth-status {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.verification-box {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(255, 213, 74, 0.42);
  background: rgba(255, 213, 74, 0.08);
  border-radius: 8px;
  color: var(--text-soft);
}

.verification-box[hidden] {
  display: none;
}

.verification-box strong {
  color: var(--gold);
  font: 900 0.95rem var(--font-heading);
}

.verification-box span {
  line-height: 1.55;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.discord-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(0, 229, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.14), rgba(122, 92, 255, 0.12)),
    rgba(16, 23, 43, 0.7);
  border-radius: 8px;
  box-shadow: var(--shadow-purple);
}

.discord-band h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.discord-band p {
  max-width: 760px;
  color: var(--text-soft);
  line-height: 1.7;
}

.discord-actions {
  display: grid;
  gap: 12px;
  min-width: 230px;
}

.online-stack {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 110px;
  border: 1px solid rgba(50, 255, 179, 0.3);
  background: rgba(50, 255, 179, 0.06);
  border-radius: 8px;
}

.online-stack span {
  width: 11px;
  aspect-ratio: 1;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--success);
}

.online-stack strong {
  font: 900 2rem var(--font-number);
}

.online-stack small {
  color: var(--muted);
  font-weight: 800;
}

.login-anchor {
  padding: 44px 0 32px;
}

.login-panel {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 24px;
}

.login-panel h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.login-panel p {
  max-width: 760px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0 0 4px;
}

.site-footer {
  padding: 54px 0 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  color: var(--text-soft);
}

.footer-brand {
  display: flex;
  gap: 12px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font: 800 1rem var(--font-heading);
}

.footer-brand p {
  margin: 5px 0 0;
  color: var(--muted);
}

.copyright {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

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

@keyframes softPagePop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes refreshSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.01);
  }
}

@keyframes logoRedPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 28px rgba(255, 47, 70, 0.54)) drop-shadow(0 0 58px rgba(255, 47, 70, 0.16));
  }
  50% {
    filter: drop-shadow(0 0 42px rgba(255, 47, 70, 0.82)) drop-shadow(0 0 92px rgba(255, 47, 70, 0.28));
  }
}

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

@keyframes fillBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1180px) {
  .hero-content,
  .test-layout,
  .player-tools,
  .profile-shell,
  .results-layout,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 142px;
  }

  .hero-panel {
    max-width: 560px;
  }

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

  .leaderboard-card {
    grid-template-columns: 70px 1fr;
  }

  .leader-score,
  .leader-details {
    grid-column: 2;
  }

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

  .chart-panel:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 960px) {
  .site-header {
    top: 8px;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-links {
    order: 5;
    position: fixed;
    inset: 88px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid rgba(41, 56, 92, 0.9);
    background: rgba(7, 9, 18, 0.96);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
  }

  .control-deck,
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .discord-band,
  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section-shell {
    width: min(100% - 24px, 1440px);
  }

  .site-header {
    width: min(100% - 18px, 1440px);
  }

  .brand-copy small,
  .profile-chip span {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .icon-button,
  .menu-toggle {
    width: 38px;
  }

  .hero {
    min-height: auto;
    padding: 124px 0 44px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12.5vw, 3.65rem);
    line-height: 1;
  }

  .hero-actions,
  .discord-actions {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .stats-strip,
  .category-grid,
  .control-deck,
  .form-grid,
  .statistics-grid,
  .rating-cards,
  .profile-stat-grid,
  .compare-controls,
  .result-row {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    margin-top: 0;
  }

  .leaderboard-card {
    grid-template-columns: 1fr;
  }

  .leader-score,
  .leader-details {
    grid-column: auto;
  }

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

  .chart-panel:first-child {
    grid-column: auto;
  }
}

/* Eternal Network style home theme */
.site-header {
  top: 0;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
}

.navbar {
  min-height: 68px;
  padding: 10px 18px;
  border-color: rgba(255, 47, 70, 0.16);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background:
    linear-gradient(90deg, rgba(14, 7, 12, 0.94), rgba(72, 9, 20, 0.68), rgba(8, 9, 16, 0.94)),
    rgba(9, 13, 26, 0.9);
  box-shadow: 0 18px 70px rgba(255, 47, 70, 0.1), 0 18px 70px rgba(0, 0, 0, 0.35);
}

.brand-mark,
.profile-avatar-mini {
  border-color: rgba(255, 47, 70, 0.74);
  background:
    linear-gradient(135deg, rgba(255, 47, 70, 0.32), rgba(122, 92, 255, 0.14)),
    rgba(16, 23, 43, 0.84);
  color: #fff;
  box-shadow: 0 0 28px rgba(255, 47, 70, 0.32), inset 0 0 14px rgba(255, 47, 70, 0.18);
}

.brand-copy strong {
  text-transform: uppercase;
}

.nav-links {
  max-width: 900px;
  min-height: 50px;
  margin-inline: auto;
  padding: 0 18px;
  flex: 0 1 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.nav-links a {
  white-space: nowrap;
}

.nav-links a::after {
  background: linear-gradient(90deg, var(--network-red), #ff7180);
  box-shadow: 0 0 14px rgba(255, 47, 70, 0.76);
}

.hero {
  min-height: calc(100svh - 68px);
  align-items: center;
  margin-top: -68px;
  padding: 102px 0 46px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 47, 70, 0.32), transparent 24rem),
    radial-gradient(circle at 12% 78%, rgba(255, 47, 70, 0.22), transparent 22rem),
    radial-gradient(circle at 85% 78%, rgba(255, 47, 70, 0.18), transparent 24rem);
}

.hero-image {
  opacity: 0.42;
  filter: grayscale(0.22) sepia(0.48) hue-rotate(315deg) saturate(1.55) contrast(1.14) brightness(0.72);
}

.hero-scrim {
  background:
    linear-gradient(180deg, rgba(4, 4, 9, 0.62) 0%, rgba(16, 3, 8, 0.18) 44%, rgba(5, 5, 10, 0.95) 100%),
    linear-gradient(90deg, rgba(4, 4, 8, 0.88), rgba(76, 7, 17, 0.34), rgba(4, 4, 8, 0.88));
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 28px;
}

.hero-copy {
  max-width: 920px;
  display: grid;
  justify-items: center;
}

.hero-logo {
  width: min(330px, 68vw);
  margin-bottom: clamp(24px, 4vw, 46px);
  filter: drop-shadow(0 0 36px rgba(255, 47, 70, 0.72));
  animation: logoFloat 5.6s ease-in-out infinite, logoRedPulse 4.8s ease-in-out infinite;
  will-change: transform, filter;
}

.network-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid rgba(255, 47, 70, 0.44);
  border-radius: 999px;
  background: rgba(255, 47, 70, 0.09);
  color: #ff9aa4;
  font-size: 0;
  font-weight: 800;
}

.network-pill::after {
  content: "Eternal Tiers Season VI";
  font-size: 0.86rem;
}

.network-pill span {
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--network-red);
  box-shadow: 0 0 16px var(--network-red);
}

.hero h1 {
  max-width: 880px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--font-body);
  font-size: clamp(3.6rem, 8vw, 6.4rem);
  line-height: 0.95;
  font-weight: 900;
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.7);
}

.hero h1 span,
.hero h1 strong {
  display: block;
}

.hero h1 strong {
  color: var(--network-red);
}

.hero-copy p {
  max-width: 820px;
  margin-top: 22px;
  color: rgba(224, 226, 238, 0.76);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions {
  justify-content: center;
  margin-top: 32px;
}

.button.primary {
  border-color: rgba(255, 47, 70, 0.72);
}

.button.primary::before {
  background: linear-gradient(135deg, #ff263d, #ff5162);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.14);
}

.button:hover {
  border-color: rgba(255, 47, 70, 0.8);
  box-shadow: 0 0 34px rgba(255, 47, 70, 0.32), 0 24px 80px rgba(0, 0, 0, 0.38);
}

.hero-network-cards {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(26px, 4vw, 42px);
}

.hero-network-cards article {
  min-height: 132px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 6px;
  padding: 24px;
  border: 1px solid rgba(255, 47, 70, 0.22);
  border-radius: 22px;
  background: rgba(7, 5, 10, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 80px rgba(0, 0, 0, 0.34);
  text-align: left;
  backdrop-filter: blur(18px);
}

.hero-network-cards span {
  color: rgba(224, 226, 238, 0.6);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-network-cards strong {
  color: #fff;
  font: 900 clamp(2.2rem, 4vw, 3.2rem) var(--font-number);
  line-height: 1;
}

.hero-network-cards small {
  color: rgba(224, 226, 238, 0.62);
  font-weight: 700;
}

.stats-strip {
  margin-top: 0;
}

.stat-card {
  border-color: rgba(255, 47, 70, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 47, 70, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(11, 9, 16, 0.76);
}

.stat-icon {
  border-color: rgba(255, 47, 70, 0.34);
  background: rgba(255, 47, 70, 0.1);
  color: #ff7581;
}

@media (max-width: 1180px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .site-header {
    padding: 8px 9px 0;
  }

  .navbar {
    border-radius: 14px;
  }

  .nav-links {
    max-width: none;
    border-radius: 8px;
    background: rgba(7, 9, 18, 0.96);
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    margin-top: -84px;
    padding: 122px 0 42px;
  }

  .hero-logo {
    width: min(300px, 78vw);
    margin-bottom: 40px;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.5rem);
  }

  .hero-network-cards {
    grid-template-columns: 1fr;
  }
}

.content-section {
  padding: 60px 0 20px;
  min-height: calc(100svh - 104px);
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.login-panel h2,
.discord-band h2 {
  font-size: clamp(1.65rem, 3vw, 3rem);
  line-height: 1.04;
}

.section-heading p,
.login-panel p,
.discord-band p {
  max-width: 720px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.chart-panel,
.login-panel,
.test-console,
.staff-login,
.profile-shell,
.search-panel,
.compare-panel,
.control-deck {
  padding: 18px;
}

.chart-panel {
  min-height: 260px;
}

.results-layout > .chart-panel:first-child,
.staff-layout > .chart-panel:first-child {
  grid-column: auto;
}

.metric-panel {
  min-height: 126px;
  padding: 16px;
}

.metric-panel strong {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}

.field input,
.field select {
  min-height: 48px;
  padding-inline: 14px;
  font-size: 0.95rem;
}

.button {
  min-height: 48px;
  padding: 0 16px;
  font-size: 0.95rem;
}

.auth-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
  gap: 16px;
}

.google-auth-layout {
  max-width: 940px;
  margin-inline: auto;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.9fr);
  justify-content: center;
}

.login-panel {
  width: min(1080px, 100%);
  margin-inline: auto;
}

.auth-side {
  gap: 12px;
}

.player-dashboard-grid,
.staff-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.staff-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.58fr);
  align-items: start;
}

.staff-login {
  display: grid;
  gap: 12px;
}

.staff-bookings[hidden] {
  display: none;
}

.booking-row small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-leaderboard-form,
.staff-booking-card,
.player-result-card {
  border: 1px solid rgba(41, 56, 92, 0.62);
  background: rgba(11, 16, 32, 0.54);
  border-radius: 8px;
}

.staff-leaderboard-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.compact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.staff-booking-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.staff-booking-filters button {
  min-height: 36px;
  border: 1px solid rgba(41, 56, 92, 0.72);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(7, 9, 18, 0.52);
  padding: 0 13px;
  font-weight: 900;
}

.staff-booking-filters button.active {
  color: #fff;
  border-color: rgba(255, 47, 70, 0.58);
  background: rgba(255, 47, 70, 0.14);
  box-shadow: 0 0 22px rgba(255, 47, 70, 0.18);
}

.staff-reset-button {
  width: fit-content;
  min-height: 40px;
  padding-inline: 18px;
  justify-self: start;
  font-size: 0.82rem;
}

.staff-booking-card {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.staff-booking-card.is-locked {
  opacity: 0.86;
}

.staff-booking-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.staff-booking-summary div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.staff-booking-summary strong {
  font-weight: 900;
}

.staff-booking-summary span,
.staff-booking-summary small {
  color: var(--muted);
}

.staff-result-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr)) auto auto;
  gap: 10px;
  align-items: end;
}

.staff-result-form .button {
  white-space: nowrap;
}

.locked-booking-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px dashed rgba(41, 56, 92, 0.72);
  border-radius: 8px;
  color: var(--muted);
}

.locked-booking-result strong {
  color: #fff;
}

.player-result-card {
  display: grid;
  grid-template-columns: 58px repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.player-result-avatar {
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
  border: 1px solid rgba(255, 47, 70, 0.54);
  border-radius: 8px;
  background: rgba(7, 9, 18, 0.66);
}

.player-result-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.player-result-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-result-card strong {
  overflow: hidden;
  color: #fff;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-chip img.profile-avatar-mini {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: cover;
  image-rendering: pixelated;
  border: 1px solid rgba(255, 47, 70, 0.74);
  border-radius: 6px;
  background: rgba(16, 23, 43, 0.84);
  box-shadow: inset 0 0 10px rgba(255, 47, 70, 0.16), 0 0 18px rgba(255, 47, 70, 0.2);
}

.dashboard-results {
  margin-top: 16px;
}

@keyframes homePop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes statCardPop {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes statBorderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes homeStatsMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-50% - 6px), 0, 0);
  }
}

/* Premium homepage refresh */
.hero {
  display: block;
  min-height: auto;
  margin-top: -68px;
  padding: 104px 0 30px;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 47, 70, 0.2), transparent 24rem),
    linear-gradient(180deg, rgba(6, 2, 7, 0.2), rgba(6, 6, 14, 0.96) 48%, rgba(7, 9, 18, 1));
}

.hero-content {
  min-height: min(500px, calc(100svh - 104px));
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 940px;
  gap: 0;
}

.hero-logo {
  width: min(220px, 56vw);
  margin-bottom: 16px;
  animation: logoFloat 5.6s ease-in-out infinite, logoRedPulse 4.8s ease-in-out infinite, homePop 0.54s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero h1 {
  max-width: 760px;
  margin: 14px auto 0;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1;
}

.hero h1 span,
.hero h1 strong {
  display: inline;
}

.hero-copy p {
  max-width: 620px;
  margin-top: 12px;
  font-size: clamp(0.94rem, 1.4vw, 1.08rem);
}

.hero-actions {
  margin-top: 20px;
}

.hero-actions .button {
  animation: homePop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-actions .button:nth-child(1) {
  animation-delay: 0.07s;
}

.hero-actions .button:nth-child(2) {
  animation-delay: 0.13s;
}

.hero-actions .button:nth-child(3) {
  animation-delay: 0.19s;
}

.button.outline {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(7, 9, 18, 0.42);
}

.button.outline::before {
  background: linear-gradient(135deg, rgba(255, 47, 70, 0.08), rgba(122, 92, 255, 0.12));
}

.home-glow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.9;
  animation: floatCard 8s ease-in-out infinite;
}

.home-glow-red {
  width: min(34rem, 70vw);
  aspect-ratio: 1;
  left: 5%;
  top: 10rem;
  background: radial-gradient(circle, rgba(255, 47, 70, 0.24), transparent 64%);
}

.home-glow-purple {
  width: min(30rem, 64vw);
  aspect-ratio: 1;
  right: 4%;
  top: 18rem;
  background: radial-gradient(circle, rgba(122, 92, 255, 0.2), transparent 66%);
  animation-delay: -3s;
}

.home-stats-grid,
.home-top-grid,
.home-category-grid,
.home-feature-grid {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.home-stats-marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin: 0 0 4px;
  padding: 3px 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.home-stats-marquee::before,
.home-stats-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: min(90px, 16vw);
  pointer-events: none;
}

.home-stats-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(13, 2, 6, 0.72), transparent);
}

.home-stats-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(13, 2, 6, 0.72), transparent);
}

.home-stats-grid {
  display: flex;
  grid-template-columns: none;
  width: max-content;
  min-width: max-content;
  margin: 0;
  animation: homeStatsMarquee 26s linear infinite;
  will-change: transform;
}

.home-stats-marquee:hover .home-stats-grid {
  animation-play-state: paused;
}

.home-stat-card,
.home-top-card,
.home-category-card,
.home-feature-card,
.home-leader-row,
.home-discord-cta {
  opacity: 0;
  animation: homePop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.home-stat-card:nth-child(1),
.home-top-card:nth-child(1),
.home-category-card:nth-child(1),
.home-feature-card:nth-child(1),
.home-leader-row:nth-child(1) {
  animation-delay: 0.04s;
}

.home-stat-card:nth-child(2),
.home-top-card:nth-child(2),
.home-category-card:nth-child(2),
.home-feature-card:nth-child(2),
.home-leader-row:nth-child(2) {
  animation-delay: 0.08s;
}

.home-stat-card:nth-child(3),
.home-top-card:nth-child(3),
.home-category-card:nth-child(3),
.home-feature-card:nth-child(3),
.home-leader-row:nth-child(3) {
  animation-delay: 0.12s;
}

.home-stat-card:nth-child(4),
.home-category-card:nth-child(4),
.home-feature-card:nth-child(4),
.home-leader-row:nth-child(4) {
  animation-delay: 0.16s;
}

.home-category-card:nth-child(5),
.home-feature-card:nth-child(5),
.home-leader-row:nth-child(5) {
  animation-delay: 0.2s;
}

.home-category-card:nth-child(6),
.home-feature-card:nth-child(6) {
  animation-delay: 0.24s;
}

.home-category-card:nth-child(7) {
  animation-delay: 0.28s;
}

.home-category-card:nth-child(8) {
  animation-delay: 0.32s;
}

.home-stat-card:hover,
.home-top-card:hover,
.home-category-card:hover,
.home-feature-card:hover,
.home-leader-row:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 47, 70, 0.42);
  box-shadow: 0 0 34px rgba(255, 47, 70, 0.18), 0 24px 80px rgba(0, 0, 0, 0.34);
}

.home-stat-card {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  flex: 0 0 clamp(260px, 23vw, 360px);
}

.home-stat-card span,
.home-top-card small,
.home-category-card p,
.home-feature-card span,
.home-leader-row small {
  color: var(--muted);
}

.home-stat-card span {
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-stat-card strong {
  color: #fff;
  font: 900 clamp(1.55rem, 3vw, 2.25rem) var(--font-number);
  line-height: 1;
}

.home-stat-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(9, 10, 19, 0.44);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 60px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(25px) scale(0.9);
  animation: none;
}

.home-stat-card::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 70deg,
    rgba(255, 47, 70, 0.62) 116deg,
    rgba(0, 229, 255, 0.44) 154deg,
    rgba(122, 92, 255, 0.34) 198deg,
    transparent 260deg,
    transparent 360deg
  );
  opacity: 0.38;
  animation: statBorderSpin 4s linear infinite;
}

.home-stat-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 1;
  pointer-events: none;
  border-radius: 13px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 47, 70, 0.12), transparent 14rem),
    radial-gradient(circle at 100% 100%, rgba(0, 229, 255, 0.08), transparent 12rem),
    rgba(7, 9, 18, 0.78);
}

.home-stat-card > * {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(9px);
}

.home-stat-card.home-stat-active {
  animation: statCardPop 0.64s cubic-bezier(0.2, 0.85, 0.24, 1.18) both;
  animation-delay: var(--stat-delay, 0ms);
}

.home-stat-card.home-stat-active > span {
  animation: statLineReveal 0.45s ease both;
  animation-delay: calc(var(--stat-delay, 0ms) + 120ms);
}

.home-stat-card.home-stat-active > strong {
  animation: statLineReveal 0.5s ease both;
  animation-delay: calc(var(--stat-delay, 0ms) + 230ms);
}

.home-stat-card.home-stat-active > small {
  animation: statLineReveal 0.5s ease both;
  animation-delay: calc(var(--stat-delay, 0ms) + 340ms);
}

.home-stat-card:hover {
  border-color: rgba(255, 47, 70, 0.34);
  box-shadow:
    0 0 28px rgba(255, 47, 70, 0.18),
    0 0 22px rgba(0, 229, 255, 0.12),
    0 22px 70px rgba(0, 0, 0, 0.34);
}

.home-stat-card:hover::before {
  opacity: 0.7;
}

.home-section {
  position: relative;
  z-index: 2;
  margin-top: 34px;
}

.home-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 12px;
}

.home-section-heading h2,
.home-discord-cta h2 {
  margin: 6px 0 0;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.home-section-heading a {
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(255, 47, 70, 0.65);
}

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

.home-top-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 168px;
  padding: 14px;
  text-align: center;
}

.home-top-card img,
.home-leader-row img {
  image-rendering: pixelated;
  border-radius: 8px;
  border: 1px solid rgba(255, 47, 70, 0.38);
  background: rgba(255, 255, 255, 0.04);
}

.home-top-card img {
  width: 56px;
  height: 56px;
}

.home-rank {
  color: var(--network-red);
  font: 900 0.9rem var(--font-heading);
}

.home-top-card strong {
  color: #fff;
  font-size: 0.98rem;
}

.home-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-category-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px;
}

.home-category-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 47, 70, 0.36);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 47, 70, 0.18), rgba(122, 92, 255, 0.2));
  font: 900 0.78rem var(--font-heading);
}

.home-category-card strong,
.home-feature-card strong {
  color: #fff;
  font: 900 0.95rem var(--font-heading);
}

.home-category-card p,
.home-feature-card span {
  margin: 0;
  line-height: 1.35;
  font-size: 0.82rem;
}

.home-category-card a {
  align-self: end;
  color: #ff9aa4;
  font-size: 0.84rem;
  font-weight: 900;
}

.home-leaderboard-list {
  display: grid;
  gap: 7px;
}

.home-leader-row {
  display: grid;
  grid-template-columns: 44px 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 47, 70, 0.18);
  border-radius: 8px;
  background: rgba(8, 9, 17, 0.72);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-leader-row > span:first-child {
  color: var(--network-red);
  font: 900 1rem var(--font-heading);
}

.home-leader-row img {
  width: 34px;
  height: 34px;
}

.home-leader-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

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

.home-feature-card {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
}

.home-feature-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(122, 92, 255, 0.4);
  border-radius: 8px;
  color: #fff;
  background: rgba(122, 92, 255, 0.12);
  font: 900 0.72rem var(--font-heading);
}

.home-discord-cta {
  position: relative;
  z-index: 2;
  margin-top: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-color: rgba(255, 47, 70, 0.3);
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 47, 70, 0.18), transparent 24rem),
    rgba(8, 9, 17, 0.72);
}

.home-discord-cta p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-weight: 800;
}

.home-pop-target.home-pop-replay {
  animation: homePop 0.52s cubic-bezier(0.2, 0.85, 0.24, 1.18) both;
}

.hero-logo.home-pop-target.home-pop-replay {
  animation:
    homePop 0.54s cubic-bezier(0.2, 0.85, 0.24, 1.18) both,
    logoFloat 5.6s ease-in-out infinite,
    logoRedPulse 4.8s ease-in-out infinite;
}

.hero-actions .button.home-pop-target.home-pop-replay,
.home-stat-card.home-pop-target.home-pop-replay {
  animation: homePop 0.5s cubic-bezier(0.2, 0.85, 0.24, 1.18) both;
}

@media (max-width: 1040px) {
  .home-stats-grid,
  .home-category-grid,
  .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero {
    margin-top: -84px;
    padding: 116px 0 28px;
  }

  .hero-content {
    min-height: auto;
    padding-bottom: 20px;
  }

  .hero-logo {
    width: min(230px, 72vw);
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.45rem);
  }

  .hero-actions,
  .home-section-heading,
  .home-discord-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .home-stats-grid,
  .home-top-grid,
  .home-category-grid,
  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-stats-marquee {
    width: calc(100% + 24px);
    margin-inline: -12px;
  }

  .home-stats-grid {
    animation-duration: 20s;
  }

  .home-stat-card {
    flex-basis: min(78vw, 320px);
    min-height: 94px;
  }

  .home-leader-row {
    grid-template-columns: 42px 42px minmax(0, 1fr);
  }

  .home-leader-row small,
  .home-leader-row .tier-badge {
    grid-column: 3;
  }

  .staff-result-form,
  .player-result-card {
    grid-template-columns: 1fr;
  }

  .locked-booking-result {
    grid-template-columns: 1fr;
  }

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

  .player-result-avatar {
    width: 58px;
    height: 58px;
  }

  .login-anchor {
    padding-top: 96px;
  }

  .login-panel {
    padding: 16px;
    overflow: hidden;
  }

  .login-panel p {
    max-width: 100%;
    font-size: 0.92rem;
  }

  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .google-auth-layout {
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-form,
  .auth-side,
  .auth-instructions {
    min-width: 0;
    width: 100%;
  }

  .auth-side {
    padding: 12px;
  }

  .auth-tabs {
    gap: 6px;
  }

  .auth-tab {
    min-width: 0;
    min-height: 40px;
    padding-inline: 8px;
    font-size: 0.9rem;
  }

  .auth-side .button,
  .auth-form .button,
  .auth-form input {
    max-width: 100%;
  }

  .auth-status,
  .verification-box {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 960px) {
  .player-dashboard-grid,
  .staff-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .content-section {
    padding: 44px 0 18px;
  }

  .section-heading h2,
  .login-panel h2,
  .discord-band h2 {
    font-size: clamp(1.45rem, 8vw, 2.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .home-stats-grid {
    transform: none !important;
  }
}
