:root {
  --bg-deep: #050508;
  --bg-panel: #0c0c10;
  --red: #e63946;
  --red-dim: #9b1c26;
  --gold: #fcdd5e;
  --blue: #124db1;
  --accent: #fcdd5e;
  --white: #f4f4f5;
  --muted: #9a9aa3;
  --border: rgba(255, 255, 255, 0.08);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Rajdhani", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--white);
  background: var(--bg-deep);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 8, 0.95) 0%,
    rgba(5, 5, 8, 0.75) 70%,
    transparent 100%
  );
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease-out), border-color 0.3s;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
}

.brand:hover {
  text-decoration: none;
  color: var(--gold);
}

.brand__mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(230, 57, 70, 0.35));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a[hidden] {
  display: none !important;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--white);
  text-decoration: none;
}

.nav-cta {
  padding: 0.45rem 1rem;
  border: 1px solid var(--red);
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--red-dim), var(--red));
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.25);
}

.nav-cta:hover {
  color: var(--white) !important;
  filter: brightness(1.08);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__btn {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s;
}

.nav-dropdown__btn:hover,
.nav-dropdown__btn[aria-expanded="true"] {
  color: var(--white);
}

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 0.4rem 0;
  background: rgba(12, 12, 16, 0.98);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  z-index: 120;
}

.nav-dropdown__panel a {
  display: block;
  padding: 0.55rem 1.1rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav-dropdown__panel a:hover {
  color: var(--white);
  background: rgba(230, 57, 70, 0.12);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(12, 12, 16, 0.98);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .nav-dropdown {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-dropdown__btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.5rem;
  }

  .nav-dropdown__panel {
    position: static;
    transform: none;
    margin: 0 0 0.25rem;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    min-width: unset;
  }

  .nav-dropdown__panel a {
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-dropdown__panel a:last-child {
    border-bottom: none;
  }
}

/* Hero game slider */
.hero-slider {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 4.75rem 0 2.5rem;
  overflow: hidden;
}

.hero-slider__slides {
  position: relative;
  flex: 1;
  min-height: 38vh;
  display: grid;
  grid-template-areas: "stack";
}

.game-slide {
  grid-area: stack;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.55s var(--ease-out),
    visibility 0.55s;
}

.game-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.game-slide__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.game-slide__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.025) 2px,
    rgba(255, 255, 255, 0.025) 3px
  );
  mask-image: linear-gradient(180deg, black 30%, transparent 95%);
  pointer-events: none;
}

.game-slide__bg--beyblade {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(230, 57, 70, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(252, 221, 94, 0.12), transparent),
    linear-gradient(180deg, var(--bg-deep) 0%, #0a0a0f 100%);
}

.game-slide__bg--mlbb {
  background:
    radial-gradient(ellipse 90% 70% at 40% 0%, rgba(255, 107, 53, 0.35), transparent 55%),
    radial-gradient(ellipse 45% 45% at 85% 60%, rgba(18, 77, 177, 0.25), transparent),
    linear-gradient(180deg, var(--bg-deep) 0%, #0a0a0f 100%);
}

.game-slide__bg--hok {
  background:
    radial-gradient(ellipse 90% 70% at 55% 0%, rgba(212, 175, 55, 0.32), transparent 55%),
    radial-gradient(ellipse 40% 40% at 15% 70%, rgba(230, 57, 70, 0.18), transparent),
    linear-gradient(180deg, var(--bg-deep) 0%, #0a0a0f 100%);
}

.game-slide__bg--codm {
  background:
    radial-gradient(ellipse 88% 68% at 48% 0%, rgba(245, 224, 0, 0.28), transparent 55%),
    radial-gradient(ellipse 42% 42% at 12% 75%, rgba(74, 124, 42, 0.22), transparent),
    radial-gradient(ellipse 35% 35% at 92% 45%, rgba(180, 180, 180, 0.08), transparent),
    linear-gradient(180deg, var(--bg-deep) 0%, #0a0a0f 100%);
}

.game-slide__bg--dota {
  background:
    radial-gradient(ellipse 85% 65% at 50% 0%, rgba(211, 44, 230, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 50% at 10% 50%, rgba(230, 57, 70, 0.15), transparent),
    linear-gradient(180deg, var(--bg-deep) 0%, #0a0a0f 100%);
}

.game-slide__grid {
  display: grid;
  gap: 1.75rem 2rem;
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .game-slide__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem 2.5rem;
  }

  .game-slide__col--text {
    justify-self: start;
    text-align: left;
  }

  .game-slide__col--visual {
    justify-self: end;
  }

  .game-slide__tagline {
    margin-left: 0;
    margin-right: 0;
  }
}

.game-slide__inner {
  max-width: 34rem;
  text-align: center;
}

@media (min-width: 768px) {
  .game-slide__inner {
    text-align: left;
  }
}

.game-slide__art {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.game-slide__art--bey {
  position: relative;
}

.game-slide__art--bey .game-slide__art-img {
  width: min(280px, 72vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(252, 221, 94, 0.35);
  box-shadow:
    0 0 0 1px rgba(230, 57, 70, 0.35),
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(230, 57, 70, 0.2);
  background: radial-gradient(
    circle at 50% 45%,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 55%
  );
}

@media (min-width: 768px) {
  .game-slide__art--bey .game-slide__art-img {
    width: min(340px, 36vw);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .game-slide.is-active .game-slide__art--bey .game-slide__art-img {
    animation: game-art-float 7s ease-in-out infinite;
  }
}

@keyframes game-art-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

.game-slide__art-cap {
  margin: 0;
  max-width: 16rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-align: center;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .game-slide__art-cap {
    text-align: right;
    align-self: flex-end;
  }

  .game-slide__art--bey {
    align-items: flex-end;
  }
}

.game-slide__art--logo {
  padding: 1.25rem 1.5rem;
  background: rgba(12, 12, 16, 0.65);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.game-slide__logo-img {
  display: block;
  width: auto;
  max-width: min(280px, 78vw);
  max-height: clamp(100px, 22vw, 150px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.45));
}

.game-slide__eyebrow {
  margin: 0 0 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--gold);
}

.game-slide__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.25rem, 14vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 50px rgba(0, 0, 0, 0.45);
}

.game-slide__tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 600;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-slider__chrome {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  padding: 1.25rem 1.5rem 0;
}

.hero-motto {
  margin: 0;
  max-width: 26rem;
  padding: 0.85rem 0 0.85rem 1.1rem;
  border-left: 4px solid var(--red);
  text-align: left;
  background: linear-gradient(90deg, rgba(230, 57, 70, 0.08), transparent);
}

.hero-motto__quote {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.45;
  color: var(--white);
}

.hero-motto__cite {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.hero-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.hero-slider__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(12, 12, 16, 0.85);
  color: var(--white);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}

.hero-slider__btn:hover {
  border-color: rgba(230, 57, 70, 0.45);
  color: var(--gold);
}

.hero-slider__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: 200px;
}

.hero-slider__dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--muted);
  cursor: pointer;
  opacity: 0.45;
  transition:
    opacity 0.2s,
    transform 0.2s,
    background 0.2s;
}

.hero-slider__dot:hover {
  opacity: 0.85;
}

.hero-slider__dot.is-active {
  opacity: 1;
  background: var(--red);
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 2px;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, filter 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red-dim), var(--red));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(230, 57, 70, 0.35);
}

.btn--ghost {
  color: var(--white);
  background: transparent;
  border: 1px solid var(--border);
}

.btn--facebook {
  color: #fff !important;
  background: linear-gradient(180deg, #1877f2, #0e5ecf);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 28px rgba(24, 119, 242, 0.35);
}

.btn--facebook:hover {
  color: #fff !important;
  filter: brightness(1.06);
}

.btn--lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: 4.5rem 1.5rem;
  position: relative;
}

.section:nth-of-type(even) {
  background: linear-gradient(180deg, transparent, rgba(12, 12, 16, 0.6));
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 880px) {
  .section__inner {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .section__inner--reverse .section__copy {
    order: 2;
  }

  .section__inner--reverse .section__figure {
    order: 1;
  }
}

.section__inner--column {
  grid-template-columns: 1fr;
}

.section__title--center {
  text-align: center;
}

.section__title--center::after {
  margin-left: auto;
  margin-right: auto;
}

.section__text--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section--games {
  scroll-margin-top: 4rem;
}

/* Organizational chart (About) */
.org-chart {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding-top: 2.75rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 5rem;
}

.org-chart__title {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.org-chart__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 0.65rem;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.org-chart__exec {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .org-chart__exec {
    grid-template-columns: repeat(2, 1fr);
  }
}

.org-chart__exec-item {
  margin: 0;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: linear-gradient(
    145deg,
    rgba(12, 12, 16, 0.95),
    rgba(230, 57, 70, 0.06)
  );
}

.org-chart__exec-item:first-child {
  border-left: 4px solid var(--red);
}

.org-chart__exec-item:last-child {
  border-left: 4px solid var(--gold);
}

.org-chart__role {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.org-chart__name {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 0.06em;
  color: var(--white);
}

.org-chart__subtitle {
  margin: 2rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.org-chart__roster {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-panel);
}

.org-chart__roster:last-child {
  margin-bottom: 0;
}

.org-chart__roster li {
  display: grid;
  gap: 0.35rem 1.25rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 560px) {
  .org-chart__roster li {
    grid-template-columns: minmax(11rem, 14rem) 1fr;
    align-items: baseline;
  }
}

.org-chart__roster li:last-child {
  border-bottom: none;
}

.org-chart__squad {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

.org-chart__person {
  font-weight: 600;
  color: var(--muted);
  font-size: 1rem;
}

.org-chart__roster--vice .org-chart__person {
  color: #c4c4ce;
}

.games-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.games-grid__media {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  min-height: 4.5rem;
}

.games-grid__media--logo-only {
  justify-content: center;
  min-height: 5rem;
}

.games-grid__logo {
  display: block;
  flex: 1;
  min-width: 0;
  max-width: 70%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

.games-grid__media--logo-only .games-grid__logo {
  flex: none;
  max-width: 88%;
  max-height: 56px;
  object-position: center;
}

.games-grid__thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(252, 221, 94, 0.3);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.2);
}

@media (min-width: 560px) {
  .games-grid__thumb {
    width: 64px;
    height: 64px;
  }
}

.games-grid__card {
  margin: 0;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-panel);
  scroll-margin-top: 5.5rem;
  transition:
    border-color 0.2s,
    transform 0.2s var(--ease-out);
}

.games-grid__card:hover {
  transform: translateY(-3px);
}

.games-grid__card--beyblade {
  border-top: 3px solid var(--red);
}

.games-grid__card--mlbb {
  border-top: 3px solid #ff6b35;
}

.games-grid__card--hok {
  border-top: 3px solid #d4af37;
}

.games-grid__card--codm {
  border-top: 3px solid #f5e000;
}

.games-grid__card--dota {
  border-top: 3px solid #d32ce6;
}

.games-grid__name {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.games-grid__desc {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.section__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 0.75rem;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.section__text {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 500;
  max-width: 36rem;
}

.section__text strong {
  color: var(--white);
  font-weight: 700;
}

.section__text--narrow {
  max-width: 40rem;
}

.stat-row {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--muted);
}

.stat-row__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: var(--red);
}

.section__figure {
  margin: 0;
}

.section__figure--logo {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: skewY(-2deg);
}

.section__figure--logo img {
  transform: skewY(2deg) scale(1.05);
}

.section--founder {
  background: radial-gradient(ellipse at 80% 20%, rgba(230, 57, 70, 0.08), transparent 55%);
}

.portrait-frame {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(230, 57, 70, 0.2),
    0 30px 80px rgba(0, 0, 0, 0.5);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(5, 5, 8, 0.85) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.portrait-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.section__figure--portrait {
  position: relative;
}

.portrait-caption__role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.portrait-caption__name {
  font-family: var(--font-display);
  font-size: 2.25rem;
  letter-spacing: 0.08em;
}

/* Supporters */
.section--supporters .section__inner {
  align-items: start;
}

.partner-block {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s var(--ease-out);
}

.partner-block:last-child {
  margin-bottom: 0;
}

.partner-block:hover {
  border-color: rgba(252, 221, 94, 0.35);
}

.partner-block__head {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

@media (max-width: 560px) {
  .partner-block__head {
    grid-template-columns: 1fr;
  }
}

.partner-block__logo {
  aspect-ratio: 1;
  background: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}

.partner-block__logo img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.partner-block__title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.partner-block__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 0.06em;
}

.partner-block__role {
  margin: 0;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partner-block__links {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.supporter-cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 520px) {
  .supporter-cards {
    grid-template-columns: minmax(0, 260px);
  }
}

.supporter-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}

.supporter-card--founder .supporter-card__title {
  font-size: 1.35rem;
}

.supporter-card:hover {
  border-color: rgba(252, 221, 94, 0.35);
  transform: translateY(-4px);
}

.supporter-card__media {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.supporter-card__media img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.supporter-card__media--photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.supporter-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
}

.supporter-card__meta {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Events */
.events-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.events-header .section__title::after {
  margin-left: auto;
  margin-right: auto;
}

.events-poster {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.events-poster img {
  width: 100%;
  vertical-align: middle;
}

/* CTA */
.section--cta {
  padding-bottom: 5rem;
}

.cta-panel {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(145deg, rgba(230, 57, 70, 0.12), rgba(18, 77, 177, 0.08));
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 180deg at 50% 50%,
    transparent 0deg,
    rgba(230, 57, 70, 0.06) 120deg,
    transparent 240deg
  );
  animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.cta-panel__title,
.cta-panel__text,
.cta-panel__hint,
.cta-panel__actions {
  position: relative;
  z-index: 1;
}

.cta-panel__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  letter-spacing: 0.08em;
}

.cta-panel__text {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 500;
}

.cta-panel__hint {
  margin: 0 0 1.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.cta-panel__hint strong {
  color: var(--white);
  font-weight: 700;
}

.cta-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Footer */
.site-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--white);
}

.site-footer__fb {
  font-weight: 600;
  text-decoration: none;
}

.site-footer__fb:hover {
  text-decoration: underline;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a[hidden] {
  display: none !important;
}

.site-footer__links a {
  font-weight: 600;
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.btn--discord {
  color: #fff !important;
  background: linear-gradient(180deg, #5865f2, #4752c4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 28px rgba(88, 101, 242, 0.35);
}

.btn--discord:hover {
  color: #fff !important;
  filter: brightness(1.06);
}

.btn--messenger {
  color: #fff !important;
  background: linear-gradient(180deg, #0078ff, #00b2ff);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 28px rgba(0, 120, 255, 0.35);
}

.btn--messenger:hover {
  color: #fff !important;
  filter: brightness(1.06);
}

.site-nav a.nav-discord {
  color: #aab0ff;
}

.site-nav a.nav-discord:hover {
  color: #c8ccff;
}

/* Member verification page */
.verify-page {
  padding: 5.5rem 1.5rem 4rem;
  min-height: 70vh;
}

.verify-page__inner {
  max-width: 640px;
  margin: 0 auto;
}

.verify-page__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.verify-page__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 0.65rem;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.verify-page__lead {
  margin: 0 0 2rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.5;
}

.verify-page__discord {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.verify-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.verify-form label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--gold);
}

.verify-form input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.verify-form input[type="text"]:focus {
  outline: none;
  border-color: rgba(230, 57, 70, 0.55);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.verify-form .btn {
  align-self: flex-start;
}

.verify-outcome {
  min-height: 2rem;
}

.verify-outcome--miss {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(12, 12, 16, 0.6);
}

.verify-miss {
  margin: 0 0 0.5rem;
  color: var(--white);
  font-weight: 600;
}

.verify-miss-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.verify-card {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

@media (min-width: 560px) {
  .verify-card {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

.verify-card__photo {
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(252, 221, 94, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.verify-card__badge {
  margin: 0 0 0.75rem;
  display: inline-block;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: rgba(252, 221, 94, 0.1);
  border: 1px solid rgba(252, 221, 94, 0.25);
  border-radius: 4px;
}

.verify-card__ign {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.verify-card__real {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
}

.verify-card__label {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.verify-card__games-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verify-card__games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.verify-tag {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.verify-tag--beyblade {
  border-color: rgba(230, 57, 70, 0.45);
  color: #ffb3b8;
}

.verify-tag--mlbb {
  border-color: rgba(255, 107, 53, 0.5);
  color: #ffc4a8;
}

.verify-tag--hok {
  border-color: rgba(212, 175, 55, 0.45);
  color: #f5e6a8;
}

.verify-tag--dota {
  border-color: rgba(211, 44, 230, 0.45);
  color: #e8b8f0;
}

.verify-tag--codm {
  border-color: rgba(245, 224, 0, 0.45);
  color: #fff3a0;
}

/* Member login & dashboard */
.auth-page {
  padding: 5.5rem 1.5rem 4rem;
  min-height: 75vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.auth-panel {
  width: 100%;
  max-width: 440px;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.auth-page__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-page__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.auth-page__lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

.auth-page__info {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  background: rgba(252, 221, 94, 0.06);
  border: 1px solid rgba(252, 221, 94, 0.2);
  border-radius: 6px;
}

.auth-page__info code {
  font-size: 0.85em;
  color: var(--gold);
}

.signup-status--err {
  color: var(--red);
  font-weight: 600;
}

.auth-page__footer {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-form label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--gold);
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form textarea,
.auth-form select {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(5, 5, 8, 0.6);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.auth-form select:not([multiple]) {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.auth-form select[multiple] {
  padding: 0.35rem 0.4rem;
}

.auth-form select[multiple] option {
  padding: 0.35rem 0.55rem;
  border-radius: 3px;
}

.auth-form select[multiple] option:checked {
  background: linear-gradient(var(--red), var(--red));
  color: #fff;
}

.auth-form select option {
  background: #0b0b10;
  color: var(--white);
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
  outline: none;
  border-color: rgba(230, 57, 70, 0.55);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

.auth-form__submit {
  margin-top: 0.35rem;
  width: 100%;
}

.login-error {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffb3b8;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.35);
  border-radius: 6px;
}

.site-nav .nav-logout {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.2s;
}

.site-nav .nav-logout:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  .site-nav .nav-logout {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }
}

.dash-page {
  padding: 5.5rem 1.5rem 4rem;
  min-height: 75vh;
}

.dash-page__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.dash-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.dash-header__intro {
  flex: 1;
  min-width: min(100%, 280px);
}

.dash-header__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-header__welcome {
  margin: 0.5rem 0 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
}

.dash-header__logout {
  flex-shrink: 0;
  align-self: flex-start;
}

.dash-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .dash-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-card--placeholder {
    grid-column: 1 / -1;
  }
}

.dash-card {
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-panel);
}

.dash-card__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-profile {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 480px) {
  .dash-profile {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

.dash-profile__photo {
  width: 100%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(252, 221, 94, 0.25);
}

.dash-profile__dl {
  margin: 0;
}

.dash-profile__dl > div {
  margin-bottom: 0.85rem;
}

.dash-profile__dl dt {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.dash-profile__dl dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

.dash-games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dash-game-tag {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
}

.dash-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dash-links li {
  margin-bottom: 0.65rem;
}

.dash-links a {
  font-weight: 600;
}

.dash-placeholder {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

.site-header-tagline {
  margin: 0;
  padding: 5.25rem 1.25rem 0.35rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}

@media (min-width: 769px) {
  .site-header-tagline {
    padding-top: 4.5rem;
  }
}

.org-chart-custom {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-panel);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.games-grid__card--custom {
  border-top: 3px solid #6a6a75;
}

.btn--sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  margin: 0.2rem 0.2rem 0.2rem 0;
}

.dash-page--full .dash-page__inner {
  max-width: 1100px;
}

.dash-disclaimer {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 6px;
  background: rgba(252, 221, 94, 0.04);
}

.dash-role-badge {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.dash-grid--wide {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .dash-grid--wide {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-card--span2 {
    grid-column: 1 / -1;
  }
}

.dash-card__hint {
  margin: -0.35rem 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.dash-points-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(230, 57, 70, 0.15), transparent);
  border: 1px solid var(--border);
}

.dash-points-banner__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.dash-points-banner__value {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--white);
}

.dash-profile__photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.dash-upload-label {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  text-decoration: underline;
}

.dash-upload-status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.25em;
}

.id-flags-review-note {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.id-flags-review-note:empty {
  display: none;
}

.id-flags-review-note--pending {
  color: var(--gold);
}

.id-flags-review-note--rejected {
  color: var(--red);
}

.dash-rank-key {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.dash-form {
  display: grid;
  gap: 0.85rem;
  max-width: 32rem;
}

.dash-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.dash-form input[type="text"],
.dash-form input[type="url"],
.dash-form input[type="file"],
.dash-form select {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  color: var(--white);
  background: rgba(5, 5, 8, 0.5);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.dash-form input:focus,
.dash-form select:focus {
  outline: none;
  border-color: rgba(230, 57, 70, 0.5);
}

.dash-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--white);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
}

.digital-id-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .digital-id-layout {
    grid-template-columns: minmax(0, 320px) 1fr;
    align-items: start;
  }
}

.digital-id-card {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(252, 221, 94, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  max-width: 340px;
}

.digital-id-card__brand {
  padding: 0.65rem 0.85rem 0.5rem;
  text-align: center;
  background: linear-gradient(180deg, #0d0d12 0%, #08080c 100%);
  border-bottom: 1px solid rgba(252, 221, 94, 0.2);
}

.digital-id-card__logo {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  max-height: 4.5rem;
  width: auto;
  object-fit: contain;
}

.digital-id-card__header {
  padding: 0.65rem 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--red-dim), var(--red));
  color: var(--white);
}

.digital-id-card__body {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-panel);
}

.digital-id-card__photo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.digital-id-card__ign {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
}

.digital-id-card__name,
.digital-id-card__squad {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.digital-id-card__badges {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.digital-id-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.dash-table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.dash-table th,
.dash-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.dash-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(12, 12, 16, 0.8);
}

.dash-table tr:last-child td {
  border-bottom: none;
}

.dash-table-empty {
  text-align: center;
  color: var(--muted);
  padding: 1.25rem !important;
}

.dash-status {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-status--pending {
  background: rgba(252, 221, 94, 0.15);
  color: var(--gold);
}

.dash-status--ok {
  background: rgba(46, 160, 67, 0.2);
  color: #7dffb3;
}

.dash-status--bad {
  background: rgba(230, 57, 70, 0.2);
  color: #ffb3b8;
}

.dash-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.dash-gallery__item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-deep);
}

.dash-gallery__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.dash-gallery__item figcaption {
  padding: 0.35rem 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.verif-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 12rem;
}

.verif-note {
  width: 100%;
  min-height: 3rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.35rem;
  background: rgba(5, 5, 8, 0.5);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 4px;
}

.verif-poster-link {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.verif-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}

.verif-history-meta {
  display: inline-block;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.verif-preview-link {
  display: inline-block;
  margin-right: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

.verif-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.verif-lightbox[hidden] {
  display: none;
}

.verif-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 5, 0.85);
  backdrop-filter: blur(3px);
  cursor: zoom-out;
}

.verif-lightbox__frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: min(95vw, 1100px);
  max-height: 92vh;
  width: 100%;
  background: rgba(10, 10, 14, 0.92);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.verif-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
}

.verif-lightbox__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.verif-lightbox__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.verif-lightbox__body {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  overflow: auto;
  background: #05050a;
}

.verif-lightbox__body img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

body.verif-lightbox-open {
  overflow: hidden;
}

.admin-page .admin-subtitle {
  margin: 1.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-form-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-width: 36rem;
}

@media (min-width: 560px) {
  .admin-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-span-2 {
    grid-column: 1 / -1;
  }
}

.admin-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  padding: 0.5rem 0.65rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background: rgba(5, 5, 8, 0.5);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.admin-label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.admin-input-wide,
.admin-page textarea {
  width: 100%;
  max-width: 42rem;
  box-sizing: border-box;
}

.admin-mono {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.admin-hint {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--gold);
}

.dash-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dash-overview {
  display: grid;
  gap: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.stats-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(215, 38, 56, 0.08), rgba(5, 5, 8, 0.45));
  min-height: 96px;
}

.stats-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats-card__value {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.04em;
}

.stats-card__sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.stats-card__link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.stats-card__link:hover,
.stats-card__link:focus-visible {
  text-decoration: underline;
}

.overview-split {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 880px) {
  .overview-split {
    grid-template-columns: 1fr 1fr;
  }
}

.overview-block .admin-subtitle {
  margin-top: 0;
}

.pill {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  background: rgba(5, 5, 8, 0.45);
  color: var(--muted);
}

.pill--ok {
  color: #7ee787;
  border-color: rgba(126, 231, 135, 0.35);
  background: rgba(126, 231, 135, 0.08);
}

.pill--bad {
  color: #ff8a8a;
  border-color: rgba(255, 138, 138, 0.35);
  background: rgba(255, 138, 138, 0.08);
}

.admin-members-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
}

@media (min-width: 640px) {
  .admin-members-toolbar {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.admin-search-label,
.admin-page-size-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.admin-search-label input,
.admin-page-size-label select {
  padding: 0.5rem 0.65rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white);
  background: rgba(5, 5, 8, 0.5);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.admin-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.85rem 0 1.25rem;
}

.admin-pager__info {
  font-size: 0.88rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.admin-modal__panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  margin: auto 0;
}

.admin-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.admin-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-modal__close {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--border);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  cursor: pointer;
}

.admin-modal__close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.admin-modal__body {
  padding: 1.25rem;
}

body.admin-modal-open {
  overflow: hidden;
}

.admin-profile {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .admin-profile {
    grid-template-columns: 180px 1fr;
    align-items: start;
  }
}

.admin-profile__photo,
.admin-profile__photo--empty {
  width: 180px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(5, 5, 8, 0.4);
}

.admin-profile__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-profile__dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1rem;
  margin: 0;
  font-size: 0.95rem;
}

.admin-profile__dl dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}

.admin-profile__dl dd {
  margin: 0;
  color: var(--white);
  word-break: break-word;
}

.stats-grid--compact .stats-card {
  min-height: 80px;
}

.stats-grid--compact .stats-card__value {
  font-size: 1.5rem;
}

/* ---- Chips (shared) ---------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.chip:hover,
.chip:focus-visible {
  color: var(--white);
  border-color: var(--accent, #f5a623);
  outline: none;
}

.chip--active {
  background: var(--accent, #f5a623);
  border-color: var(--accent, #f5a623);
  color: #0a0a0a;
}

.chip--active:hover,
.chip--active:focus-visible {
  color: #0a0a0a;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
}

.pill--ok {
  color: #7ee49a;
  border-color: rgba(126, 228, 154, 0.45);
  background: rgba(126, 228, 154, 0.1);
}

.pill--bad {
  color: #ff8a8a;
  border-color: rgba(255, 138, 138, 0.45);
  background: rgba(255, 138, 138, 0.1);
}

/* ---- Leaderboard ------------------------------------------------------- */
.leaderboard-page {
  padding: 2.5rem 0 4rem;
}

.leaderboard-page__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.leaderboard-hero {
  margin-bottom: 1.5rem;
}

.leaderboard-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.leaderboard-hero__sub {
  color: var(--muted);
  max-width: 50rem;
  margin: 0 0 1rem;
}

.leaderboard-scoring {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.leaderboard-scoring h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.leaderboard-scoring ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.leaderboard-scoring li {
  display: inline-flex;
  gap: 0.35rem;
}

.leaderboard-scoring strong {
  color: var(--white);
}

.leaderboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.leaderboard-search {
  flex: 1 1 16rem;
  min-width: 12rem;
}

.leaderboard-search input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  background: rgba(5, 5, 8, 0.55);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  font: inherit;
}

.leaderboard-search input:focus {
  outline: none;
  border-color: var(--accent, #f5a623);
}

.leaderboard-select select {
  padding: 0.55rem 0.85rem;
  background: rgba(5, 5, 8, 0.55);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  font: inherit;
}

.leaderboard-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.leaderboard-chips--games {
  flex: 1 1 100%;
}

.leaderboard-top {
  margin-bottom: 1.5rem;
}

.leaderboard-top__cards {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lb-top-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.lb-top-card--1 {
  border-color: rgba(245, 166, 35, 0.55);
  box-shadow: 0 10px 30px rgba(245, 166, 35, 0.1);
}

.lb-top-card--2 {
  border-color: rgba(180, 190, 200, 0.45);
}

.lb-top-card--3 {
  border-color: rgba(205, 127, 50, 0.45);
}

.lb-top-card__rank {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #f5a623);
}

.lb-top-card__photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.lb-top-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lb-top-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.lb-top-card__squad,
.lb-top-card__points,
.lb-top-card__badges {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.lb-top-card__points {
  color: var(--white);
  font-weight: 600;
}

.leaderboard-table-wrap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.leaderboard-table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  vertical-align: middle;
}

.leaderboard-table tbody tr:last-child td {
  border-bottom: none;
}

.leaderboard-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.015);
}

.lb-rank {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent, #f5a623);
  width: 5rem;
}

.lb-points {
  color: var(--white);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.lb-member {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.lb-member__photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.lb-member__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.lb-member__ign {
  color: var(--white);
  font-weight: 600;
}

.lb-member__games {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 22rem;
}

.lb-badge {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6fd5ff;
  border: 1px solid rgba(111, 213, 255, 0.45);
  border-radius: 4px;
  background: rgba(111, 213, 255, 0.08);
}

.lb-badge--pro {
  color: #f5a623;
  border-color: rgba(245, 166, 35, 0.5);
  background: rgba(245, 166, 35, 0.1);
}

.leaderboard-empty {
  margin: 1rem;
  padding: 1rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 640px) {
  .lb-member__games {
    display: none;
  }

  .lb-top-card__photo {
    width: 72px;
    height: 72px;
  }
}

/* ---- Audit log panel --------------------------------------------------- */
.audit-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
  margin: 0.75rem 0 0.5rem;
}

.audit-filter {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 10rem;
}

.audit-filter > span {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
}

.audit-filter input,
.audit-filter select {
  padding: 0.4rem 0.6rem;
  background: rgba(5, 5, 8, 0.55);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--white);
  font: inherit;
}

.audit-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.3rem 0 0.75rem;
}

.audit-table td {
  vertical-align: top;
  font-size: 0.85rem;
}

.audit-table td code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--accent, #fcdd5e);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
}

.audit-detail details {
  max-width: 28rem;
}

.audit-detail summary {
  cursor: pointer;
  color: var(--muted);
}

.audit-detail summary:hover {
  color: var(--white);
}

.audit-detail pre {
  margin: 0.4rem 0 0;
  padding: 0.55rem 0.7rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: 5px;
  max-height: 260px;
  overflow: auto;
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.audit-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ---- Member inbox ------------------------------------------------------ */
.dash-inbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dash-inbox__badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0a0a0a;
  background: var(--gold, #fcdd5e);
  border-radius: 999px;
  vertical-align: middle;
}

.dash-inbox {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 26rem;
  overflow-y: auto;
}

.dash-inbox__item {
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: default;
  transition: background 0.15s ease;
}

.dash-inbox__item--unread {
  background: rgba(252, 221, 94, 0.07);
  border-color: rgba(252, 221, 94, 0.35);
  cursor: pointer;
}

.dash-inbox__item--unread:hover {
  background: rgba(252, 221, 94, 0.1);
}

.dash-inbox__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dash-inbox__kind {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.dash-inbox__kind--achievement {
  color: #fcdd5e;
  border-color: rgba(252, 221, 94, 0.5);
  background: rgba(252, 221, 94, 0.08);
}

.dash-inbox__kind--jlap {
  color: #6fd5ff;
  border-color: rgba(111, 213, 255, 0.5);
  background: rgba(111, 213, 255, 0.08);
}

.dash-inbox__kind--idflags {
  color: #7ee49a;
  border-color: rgba(126, 228, 154, 0.45);
  background: rgba(126, 228, 154, 0.08);
}

.dash-inbox__title {
  flex: 1 1 auto;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.dash-inbox__time {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.dash-inbox__body {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.dash-inbox__empty {
  color: var(--muted);
  font-style: italic;
  margin: 0.5rem 0 0;
}
