:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f1f3f6;
  --surface-hover: #f7f9fc;
  --text: #111318;
  --text-soft: #353942;
  --muted: #727782;
  --muted-strong: #555b66;
  --line: #e4e7ec;
  --line-strong: #d5d9e0;
  --accent: #146ef5;
  --accent-hover: #0b5edc;
  --accent-soft: rgba(20, 110, 245, 0.08);
  --success: #15976c;
  --danger: #d74444;
  --page-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 10px 35px rgba(22, 28, 45, 0.06);
  --shadow-float: 0 24px 70px rgba(22, 28, 45, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hero-x: 0px;
  --hero-y: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 6rem; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open, body.dialog-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(20, 110, 245, 0.18); }

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

.page-noise, .page-glow, .hero-art, .subpage-art, .fight-section-glow, .login-page-art, .login-scanlines { display: none !important; }

.section-shell,
.header-inner { width: min(calc(100% - 48px), var(--page-width)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* Subtle route progress instead of a full-screen loader */
.page-loader {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}
.page-loader.is-active { opacity: 1; }
.page-loader.is-exiting { opacity: 0; }
.page-loader > *:not(.loader-line), .loader-line > *:not(i) { display: none !important; }
.loader-line { display: block; width: 100%; height: 100%; overflow: hidden; background: transparent; }
.loader-line i {
  display: block;
  width: 35%;
  height: 100%;
  background: var(--accent);
  transform: translateX(-120%);
  animation: loader-progress 900ms var(--ease) infinite;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(247, 248, 250, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(213, 217, 224, 0.8);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 30px rgba(25, 30, 45, 0.035);
}
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  border-radius: 9px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #101217;
}
.brand-mark img { width: 31px; height: 31px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; gap: 3px; }
.brand-copy strong { font-size: 15px; font-weight: 780; letter-spacing: -0.035em; }
.brand-copy span { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.01em; }
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}
.nav-link:hover { color: var(--text); background: rgba(17, 19, 24, 0.035); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  position: absolute;
  right: 13px;
  bottom: 3px;
  left: 13px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  transform-origin: center;
  animation: nav-line-in 360ms var(--ease) both;
}
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.archive-status, .admin-logout-link {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease;
}
.archive-status:hover, .admin-logout-link:hover { color: var(--text); }
.archive-status i, .admin-status-pill i { display: none; }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 10px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 19px; height: 1.5px; margin: 4px auto; border-radius: 99px; background: currentColor; }

.brand:focus-visible, .nav-link:focus-visible, .archive-status:focus-visible, .menu-toggle:focus-visible,
.mobile-nav a:focus-visible, .menu-close:focus-visible, .primary-action:focus-visible, .text-action:focus-visible,
.section-link:focus-visible, .portal-card:focus-visible, .filter-button:focus-visible, .record-identity:focus-visible,
.record-open:focus-visible, .dialog-close:focus-visible, .admin-button:focus-visible, .admin-tab:focus-visible,
.admin-icon-button:focus-visible, .login-back:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 110, 245, 0.16);
}

/* Mobile navigation */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(16, 18, 23, 0.18);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}
.mobile-menu {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 200;
  width: min(390px, calc(100vw - 24px));
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-float);
  transform: translateX(calc(100% + 30px));
  opacity: 0;
  pointer-events: none;
  transition: transform 360ms var(--ease), opacity 220ms ease;
}
.menu-open .menu-scrim { opacity: 1; pointer-events: auto; }
.menu-open .mobile-menu { transform: translateX(0); opacity: 1; pointer-events: auto; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 15px; font-weight: 760; text-decoration: none; }
.mobile-menu-brand img { width: 34px; height: 34px; padding: 3px; border-radius: 8px; background: #101217; }
.mobile-menu-title { font-size: 14px; font-weight: 700; }
.menu-close { position: relative; width: 40px; height: 40px; border: 0; border-radius: 9px; background: var(--surface-soft); cursor: pointer; }
.menu-close span::before, .menu-close span::after { position: absolute; top: 19px; left: 11px; width: 18px; height: 1.5px; background: var(--text); content: ""; }
.menu-close span::before { transform: rotate(45deg); }
.menu-close span::after { transform: rotate(-45deg); }
.mobile-nav { margin-top: 54px; display: flex; flex-direction: column; }
.mobile-nav a {
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: clamp(22px, 7vw, 30px);
  font-weight: 670;
  letter-spacing: -0.04em;
  text-decoration: none;
  transition: color 180ms ease, padding-left 220ms var(--ease);
}
.mobile-nav a span { display: none; }
.mobile-nav a:hover, .mobile-nav a.is-active { color: var(--accent); padding-left: 5px; }
.mobile-menu-foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.mobile-menu-foot strong { color: var(--text); font-weight: 650; }
.mobile-menu-status { display: none; }

/* Home hero */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.hero-aura {
  position: absolute;
  top: -320px;
  right: -160px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 110, 245, 0.085), rgba(20, 110, 245, 0.02) 42%, transparent 68%);
  transform: translate3d(var(--hero-x), var(--hero-y), 0);
  transition: transform 500ms var(--ease);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.55fr);
  align-items: end;
  gap: clamp(64px, 9vw, 128px);
  padding-block: 104px 96px;
}
.hero-copy { max-width: 720px; }
.hero-eyebrow, .section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(54px, 7.25vw, 94px);
  font-weight: 690;
  line-height: 0.94;
  letter-spacing: -0.068em;
}
.hero h1 span { color: var(--muted); font-weight: 580; }
.hero-intro {
  max-width: 610px;
  margin: 31px 0 0;
  color: var(--muted-strong);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.52;
  letter-spacing: -0.025em;
}
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 25px; }
.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 9px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  transition: transform 220ms var(--ease), background 180ms ease, box-shadow 220ms ease;
}
.primary-action:hover { transform: translateY(-2px); background: #20242c; box-shadow: 0 12px 24px rgba(17, 19, 24, 0.12); }
.primary-action span { transition: transform 220ms var(--ease); }
.primary-action:hover span { transform: translateX(3px); }
.text-action, .section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease, gap 220ms var(--ease);
}
.text-action:hover, .section-link:hover { color: var(--accent); }
.section-link:hover { gap: 12px; }
.hero-games { margin-top: 54px; display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 12px; font-weight: 600; }
.hero-games i { width: 3px; height: 3px; border-radius: 50%; background: #b7bcc5; }
.hero-side { align-self: end; min-width: 0; }
.hero-side-top {
  padding-bottom: 19px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}
.hero-side-top strong { color: var(--text); font-weight: 700; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(21, 151, 108, 0.1); }
.hero-stats { display: grid; }
.hero-stats article { padding: 18px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.hero-stats strong { color: var(--text); font-size: clamp(34px, 4vw, 48px); font-weight: 620; line-height: 1; letter-spacing: -0.055em; }
.hero-stats article > span:last-child { color: var(--muted); font-size: 12px; font-weight: 620; }

/* Shared section system */
.home-section, .content-section { padding-block: 90px; }
.latest-section { background: var(--surface); }
.explore-section { border-top: 1px solid var(--line); background: var(--bg); }
.section-heading, .records-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; }
.compact-heading { margin-bottom: 34px; }
.section-heading h2, .records-toolbar h2 {
  margin: 0;
  font-size: clamp(29px, 4vw, 42px);
  font-weight: 660;
  letter-spacing: -0.047em;
  line-height: 1.05;
}
.section-heading .section-kicker { margin-bottom: 9px; }
.section-heading p:not(.section-kicker), .records-title-block p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }

.home-results { border-top: 1px solid var(--line-strong); }
.home-result-row {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr) 120px 120px;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, padding 250ms var(--ease);
}
.home-result-row:hover { padding-inline: 10px; background: var(--surface-hover); }
.home-result-game { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; }
.home-result-match { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.home-result-match strong { min-width: 0; flex: 1 1 0; overflow: hidden; color: var(--text); font-size: 16px; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; }
.home-result-match span { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.home-result-method { color: var(--text-soft); font-size: 13px; font-weight: 620; }
.home-result-date { color: var(--muted); font-size: 12px; text-align: right; }

.portal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.portal-card {
  min-height: 235px;
  padding: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  background: var(--surface);
  text-decoration: none;
  transition: background 220ms ease;
}
.portal-card:hover { background: var(--surface-hover); }
.portal-card > div > span { display: block; margin-bottom: 48px; color: var(--muted); font-size: 11px; font-weight: 750; }
.portal-card h3 { margin: 0; font-size: clamp(28px, 3vw, 38px); font-weight: 650; letter-spacing: -0.045em; }
.portal-card p { max-width: 430px; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.portal-card > i { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--text); font-style: normal; transition: transform 260ms var(--ease), background 180ms ease, color 180ms ease; }
.portal-card:hover > i { transform: translate(3px, -3px); background: var(--text); color: #fff; }

/* Subpages */
.subpage-hero {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.subpage-hero-inner {
  min-height: 345px;
  padding-block: 86px 70px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.subpage-hero .section-kicker { margin-bottom: 14px; }
.subpage-hero h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 94px);
  font-weight: 660;
  line-height: 0.95;
  letter-spacing: -0.065em;
}
.subpage-hero p:not(.section-kicker) { max-width: 610px; margin: 24px 0 0; color: var(--muted-strong); font-size: 18px; }
.page-records-section { padding-top: 66px; background: var(--surface); }
.records-toolbar { align-items: center; }
.records-title-block { display: flex; align-items: baseline; gap: 14px; }
.records-toolbar h2 { font-size: 24px; letter-spacing: -0.035em; }
.result-count { color: var(--muted) !important; font-size: 12px !important; font-weight: 620; white-space: nowrap; }
.section-search {
  width: min(350px, 100%);
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.section-search:focus-within { border-color: rgba(20, 110, 245, 0.5); box-shadow: 0 0 0 3px rgba(20, 110, 245, 0.08); background: #fff; }
.search-icon { width: 14px; height: 14px; border: 1.5px solid var(--muted); border-radius: 50%; position: relative; flex: 0 0 auto; }
.search-icon::after { position: absolute; right: -4px; bottom: -3px; width: 5px; height: 1.5px; border-radius: 99px; background: var(--muted); content: ""; transform: rotate(45deg); }
.section-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.section-search input::placeholder { color: #9aa0aa; }
.section-search kbd { border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); color: var(--muted); padding: 1px 6px; font: 600 10px/18px ui-monospace, SFMono-Regular, Menlo, monospace; }
.section-toolbar { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.game-filter { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filter-button {
  min-height: 36px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted-strong);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms var(--ease);
}
.filter-button:hover { transform: translateY(-1px); border-color: var(--line-strong); color: var(--text); background: var(--surface-hover); }
.filter-button.is-active { border-color: var(--text); background: var(--text); color: #fff; }
.filter-logo { width: 34px; max-height: 15px; object-fit: contain; filter: grayscale(1) contrast(1.2); opacity: 0.75; }
.filter-button.is-active .filter-logo { filter: brightness(0) invert(1); opacity: 1; }
.filter-all { font-size: 9px; font-weight: 800; letter-spacing: 0.08em; }
.filter-label { font-size: 12px; font-weight: 650; }
.mk1-wordmark { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 800; line-height: 1; }
.mk1-wordmark span { font-size: 0.63em; text-transform: uppercase; letter-spacing: -0.04em; }
.mk1-wordmark b { font-size: 1em; }

.table-heading {
  margin-top: 34px;
  min-height: 36px;
  display: grid;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.fighter-table-heading { grid-template-columns: 70px minmax(0, 1fr) 210px 100px 36px; }
.fight-table-heading { grid-template-columns: 86px 140px minmax(0, 1fr) 170px; }

/* Fighter ledger */
.fighter-record-list { display: block; }
.fighter-record-card {
  position: relative;
  min-height: 84px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 210px 100px 36px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 180ms ease, padding 250ms var(--ease);
}
.fighter-record-card:hover { padding-inline: 8px; background: var(--surface-hover); }
.record-rank-block { display: flex; flex-direction: column; gap: 2px; }
.record-rank { color: var(--text); font-size: 13px; font-weight: 700; }
.record-rank-label { display: none; }
.record-identity {
  min-width: 0;
  padding: 0;
  display: grid;
  grid-template-columns: auto 46px 1fr;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.record-identity strong { min-width: 0; overflow: hidden; color: var(--text); font-size: 15px; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; }
.record-identity small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.record-game-pill { width: 42px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.record-game-logo { max-width: 31px; max-height: 12px; object-fit: contain; filter: grayscale(1) contrast(1.3); }
.record-game-pill .mk1-wordmark { font-size: 9px; }
.record-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.record-numbers > div { display: flex; align-items: baseline; gap: 5px; }
.record-numbers strong { color: var(--text); font-size: 17px; font-weight: 680; letter-spacing: -0.035em; }
.record-numbers span { color: var(--muted); font-size: 9px; font-weight: 760; }
.record-numbers .record-win strong { color: var(--accent); }
.record-finishes { display: flex; align-items: baseline; gap: 5px; }
.record-finishes strong { font-size: 15px; font-weight: 680; }
.record-finishes span { color: var(--muted); font-size: 10px; }
.record-open { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background 180ms ease, color 180ms ease, transform 220ms var(--ease); }
.fighter-record-card:hover .record-open { background: var(--surface-soft); color: var(--text); transform: translateX(2px); }

/* Fight ledger */
.fight-archive-list { display: block; }
.fight-archive-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 86px 140px minmax(0, 1fr) 170px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 180ms ease, padding 250ms var(--ease);
}
.fight-archive-card:hover { padding-inline: 8px; background: var(--surface-hover); }
.fight-archive-card > time { display: flex; flex-direction: column; line-height: 1.2; }
.fight-archive-card > time strong { color: var(--text); font-size: 13px; font-weight: 680; }
.fight-archive-card > time span { color: var(--muted); font-size: 10px; }
.fight-game-mark { min-width: 0; display: flex; align-items: center; gap: 9px; }
.fight-game-mark > span { width: 42px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.fight-game-logo { max-width: 31px; max-height: 12px; object-fit: contain; filter: grayscale(1) contrast(1.2); }
.fight-game-mark .mk1-wordmark { font-size: 9px; }
.fight-game-mark small { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fight-matchup { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr); align-items: center; gap: 12px; }
.fight-competitor { min-width: 0; display: flex; flex-direction: column; }
.fight-competitor > span, .fight-event > span { color: var(--muted); font-size: 9px; font-weight: 720; letter-spacing: 0.05em; text-transform: uppercase; }
.fight-competitor strong { overflow: hidden; color: var(--text); font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.fight-competitor.is-winner strong { font-weight: 750; }
.fight-decision { text-align: center; }
.fight-decision span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.fight-decision strong { display: block; color: var(--text); font-size: 12px; font-weight: 700; }
.fight-event { min-width: 0; display: flex; flex-direction: column; }
.fight-event strong { overflow: hidden; color: var(--text-soft); font-size: 12px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }

.empty-state { padding: 80px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.empty-state > span { display: inline-grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--muted); font-weight: 700; }
.empty-state h3 { margin: 14px 0 4px; font-size: 17px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; }

/* Fighter detail */
.fighter-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-float);
}
.fighter-dialog::backdrop { background: rgba(18, 22, 30, 0.24); backdrop-filter: blur(6px); }
.dialog-panel { position: relative; }
.dialog-close { position: sticky; top: 16px; z-index: 4; margin: 16px 16px -56px auto; width: 40px; height: 40px; display: block; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.92); cursor: pointer; }
.dialog-close span::before, .dialog-close span::after { position: absolute; top: 19px; left: 11px; width: 16px; height: 1.4px; background: var(--text); content: ""; }
.dialog-close span::before { transform: rotate(45deg); }
.dialog-close span::after { transform: rotate(-45deg); }
.dialog-hero { min-height: 230px; padding: 58px 34px 28px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); background: linear-gradient(145deg, var(--surface), var(--surface-soft)); }
.dialog-hero > img { display: none; }
.dialog-hero-copy { min-width: 0; }
.dialog-game { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 650; }
.dialog-game-logo { max-width: 48px; max-height: 16px; object-fit: contain; filter: grayscale(1) contrast(1.3); }
.dialog-game .mk1-wordmark { font-size: 11px; }
.dialog-hero h2 { margin: 14px 0 2px; font-size: clamp(38px, 6vw, 58px); font-weight: 660; line-height: 1; letter-spacing: -0.055em; }
.dialog-hero p { margin: 0; color: var(--muted); font-size: 13px; }
.dialog-record { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.dialog-record > div { padding: 22px 26px; border-right: 1px solid var(--line); }
.dialog-record > div:last-child { border-right: 0; }
.dialog-record strong { display: block; font-size: 28px; font-weight: 650; letter-spacing: -0.04em; }
.dialog-record .is-win strong { color: var(--accent); }
.dialog-record span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.profile-history { padding: 28px 34px 34px; }
.profile-history-head { margin-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.profile-history-head span { color: var(--muted); font-size: 10px; font-weight: 720; text-transform: uppercase; }
.profile-history-head h3 { margin: 3px 0 0; font-size: 20px; letter-spacing: -0.03em; }
.profile-history-head > strong { font-size: 13px; }
.profile-fight { min-height: 66px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 13px; border-top: 1px solid var(--line); }
.profile-outcome { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 800; }
.profile-outcome.is-win { background: rgba(21,151,108,.1); color: var(--success); }
.profile-outcome.is-loss { background: rgba(215,68,68,.08); color: var(--danger); }
.profile-fight > div { min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: baseline; }
.profile-fight > div > span { color: var(--muted); font-size: 11px; }
.profile-fight > div strong { overflow: hidden; font-size: 13px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.profile-fight > div small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.method-pill { padding: 5px 8px; border-radius: 6px; background: var(--surface-soft); color: var(--text-soft); font-size: 10px; font-weight: 650; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.footer-brand img { width: 30px; height: 30px; padding: 3px; border-radius: 7px; background: #101217; }
.footer-brand span { display: flex; flex-direction: column; color: var(--muted); font-size: 10px; line-height: 1.25; }
.footer-brand strong { color: var(--text); font-size: 13px; }
.footer-inner > p { margin: 0; color: var(--muted); font-size: 11px; }
.noscript-message { padding: 12px 18px; background: #fff2c7; color: #614d00; text-align: center; font-size: 13px; }

/* Login, deliberately restrained */
.login-page { min-height: calc(100vh - 76px - 108px); display: grid; align-items: center; padding-block: 64px; background: var(--bg); }
.login-layout { display: grid; grid-template-columns: 1fr minmax(360px, 470px); align-items: center; gap: clamp(60px, 10vw, 150px); }
.login-intro { max-width: 560px; }
.login-intro h1, .admin-hero h1 { margin: 0; font-size: clamp(52px, 7vw, 82px); font-weight: 660; line-height: .96; letter-spacing: -.06em; }
.login-intro h1 em, .admin-hero h1 em { color: var(--muted); font-style: normal; font-weight: 560; }
.login-intro > p:not(.section-kicker) { margin: 25px 0 0; color: var(--muted-strong); font-size: 18px; }
.login-capabilities { margin-top: 35px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.login-capabilities i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.login-card { padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-soft); }
.login-card-mark { width: 42px; height: 42px; margin-bottom: 30px; display: grid; place-items: center; border-radius: 9px; background: #101217; }
.login-card-mark img { width: 34px; height: 34px; }
.login-card-mark span { display: none; }
.login-mode, .admin-card-kicker { margin: 0 0 7px; color: var(--accent); font-size: 10px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.login-card h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.login-description { margin: 8px 0 26px; color: var(--muted); font-size: 13px; }
.login-form, .admin-form { display: grid; gap: 17px; }
.admin-field { display: grid; gap: 7px; color: var(--muted-strong); font-size: 11px; font-weight: 650; }
.admin-field input, .admin-field select, .admin-search input, .admin-select-compact select {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; outline: 0; background: var(--surface); color: var(--text); transition: border-color 180ms ease, box-shadow 180ms ease;
}
.admin-field input:focus, .admin-field select:focus, .admin-search input:focus, .admin-select-compact select:focus { border-color: rgba(20,110,245,.55); box-shadow: 0 0 0 3px rgba(20,110,245,.08); }
.login-password-wrap { position: relative; display: block; }
.login-password-wrap input { padding-right: 45px; }
.login-password-wrap button { position: absolute; top: 5px; right: 5px; width: 34px; height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.login-password-wrap button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.login-error, .admin-form-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: rgba(215,68,68,.07); color: var(--danger); font-size: 12px; }
.admin-button { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--text); font-size: 12px; font-weight: 680; cursor: pointer; transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease; }
.admin-button:hover { transform: translateY(-1px); background: var(--surface-hover); }
.admin-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.admin-button-primary { border-color: var(--text); background: var(--text); color: #fff; }
.admin-button-primary:hover { background: #23272e; }
.admin-button-danger { color: var(--danger); }
.login-submit { width: 100%; }
.login-local-note { margin-top: 20px; padding-top: 20px; display: flex; gap: 10px; border-top: 1px solid var(--line); color: var(--muted); }
.login-local-note svg { width: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; }
.login-local-note p { margin: 0; display: flex; flex-direction: column; font-size: 10px; }
.login-local-note strong { color: var(--text-soft); font-size: 11px; }
.login-back { margin-top: 20px; display: inline-flex; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 650; text-decoration: none; }
.login-back:hover { color: var(--text); }

/* Admin workspace, same minimal language */
.admin-hero { padding: 68px 0 42px; border-bottom: 1px solid var(--line); background: var(--bg); }
.admin-hero-grid { display: none; }
.admin-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.admin-hero-copy { max-width: 720px; }
.admin-hero-copy > p:last-child { max-width: 600px; margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.admin-hero-actions { display: flex; align-items: center; gap: 12px; }
.admin-save-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.admin-save-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.admin-workspace { padding: 42px 0 90px; background: var(--surface); }
.admin-security-note { margin-bottom: 24px; padding: 15px 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.admin-note-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); }
.admin-note-icon svg { width: 17px; fill: none; stroke: currentColor; }
.admin-security-note strong { font-size: 12px; }
.admin-security-note p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.admin-security-note > button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.admin-overview { margin-bottom: 28px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.admin-overview article { padding: 20px; border-right: 1px solid var(--line); background: var(--surface); }
.admin-overview article:last-child { border-right: 0; }
.admin-overview article > span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.admin-overview article > strong { display: block; margin-top: 4px; font-size: 29px; font-weight: 650; letter-spacing: -.04em; }
.admin-overview article > small { color: var(--muted); font-size: 10px; }
.admin-shell { display: grid; gap: 22px; }
.admin-tablist { display: flex; gap: 5px; border-bottom: 1px solid var(--line); }
.admin-tab { padding: 11px 13px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; cursor: pointer; }
.admin-tab.is-active { border-bottom-color: var(--accent); color: var(--text); }
.admin-tab svg { width: 15px; fill: none; stroke: currentColor; }
.admin-panel { display: none; }
.admin-panel.is-active { display: block; animation: panel-in 260ms var(--ease) both; }
.admin-fight-layout { display: grid; grid-template-columns: minmax(310px, .72fr) minmax(0, 1.28fr); gap: 20px; }
.admin-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.admin-form-card, .admin-results-card, .admin-metadata-card, .admin-data-card { padding: 22px; }
.admin-card-heading, .admin-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-card-heading h2, .admin-panel-header h2, .admin-dialog-panel h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.admin-panel-header p, .admin-data-card > p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.admin-icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.admin-icon-button svg { width: 15px; fill: none; stroke: currentColor; }
.admin-field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.admin-result-type { margin: 0; padding: 0; border: 0; }
.admin-result-type legend { margin-bottom: 8px; color: var(--muted-strong); font-size: 11px; font-weight: 650; }
.admin-result-type label { display: inline-flex; margin: 0 5px 5px 0; cursor: pointer; }
.admin-result-type input { position: absolute; opacity: 0; }
.admin-result-type span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 11px; }
.admin-result-type input:checked + span { border-color: var(--text); background: var(--text); color: #fff; }
.admin-list-tools, .admin-fighter-tools { margin-bottom: 15px; display: flex; gap: 8px; }
.admin-search { flex: 1; position: relative; }
.admin-search svg { position: absolute; top: 13px; left: 12px; width: 16px; fill: none; stroke: var(--muted); }
.admin-search input { padding-left: 38px; }
.admin-fight-list, .admin-fighter-list { display: grid; }
.admin-fight-row, .admin-fighter-row { min-height: 68px; display: grid; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.admin-fight-row { grid-template-columns: 68px minmax(0,1fr) 115px auto; }
.admin-fighter-row { grid-template-columns: 42px minmax(0,1fr) 150px 75px auto; }
.admin-game-badge { color: var(--muted); font-size: 9px; font-weight: 760; text-transform: uppercase; }
.admin-fight-matchup, .admin-fight-meta, .admin-fighter-name { min-width: 0; }
.admin-fight-matchup > span, .admin-fighter-name > span { color: var(--muted); font-size: 9px; }
.admin-fight-matchup strong, .admin-fight-meta strong, .admin-fighter-name strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-fight-matchup small, .admin-fight-meta time, .admin-fighter-name small { color: var(--muted); font-size: 9px; }
.admin-row-actions { display: flex; gap: 5px; }
.admin-row-actions button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); cursor: pointer; }
.admin-row-actions button:hover { color: var(--text); background: var(--surface-hover); }
.admin-row-actions button.is-danger:hover { color: var(--danger); }
.admin-row-actions svg { width: 14px; fill: none; stroke: currentColor; }
.admin-count { color: var(--muted); font-size: 10px; }
.admin-empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.admin-empty > span { display: inline-grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--surface-soft); }
.admin-empty strong { display: block; margin-top: 9px; color: var(--text); }
.admin-empty p { margin: 3px 0 0; font-size: 10px; }
.admin-fighter-rank { font-size: 11px; font-weight: 700; }
.admin-record-numbers { display: flex; gap: 10px; }
.admin-record-numbers > span, .admin-finishes { display: flex; align-items: baseline; gap: 3px; }
.admin-record-numbers strong, .admin-finishes strong { font-size: 13px; }
.admin-record-numbers small, .admin-finishes span { color: var(--muted); font-size: 8px; }
.admin-record-numbers .is-win strong { color: var(--accent); }
.admin-tools-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.admin-data-card code { display: block; margin: 12px 0; padding: 12px; border-radius: 8px; background: var(--bg); color: var(--text-soft); font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.admin-data-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-import-button { position: relative; overflow: hidden; }
.admin-import-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.admin-data-divider { height: 1px; margin: 20px 0; background: var(--line); }
.admin-reset-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-reset-row strong { font-size: 12px; }
.admin-reset-row p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.admin-dialog { width: min(540px, calc(100vw - 30px)); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-float); }
.admin-dialog::backdrop { background: rgba(18,22,30,.24); backdrop-filter: blur(5px); }
.admin-dialog-panel { position: relative; padding: 26px; }
.admin-dialog-panel > p { color: var(--muted); font-size: 12px; }
.admin-dialog-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }
.admin-dialog-close svg { width: 15px; fill: none; stroke: currentColor; }
.admin-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.admin-toast { position: fixed; right: 20px; bottom: 20px; z-index: 300; max-width: 380px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--text); color: #fff; box-shadow: var(--shadow-float); font-size: 11px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 180ms ease, transform 220ms var(--ease); }
.admin-toast.is-visible { opacity: 1; transform: translateY(0); }
.admin-toast[data-type="error"] { background: #9c2f2f; }

/* Reveal motion */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.enter { animation: row-in 440ms var(--ease) both; animation-delay: var(--delay, 0ms); }

@keyframes loader-progress { 0% { transform: translateX(-130%); } 65%,100% { transform: translateX(330%); } }
@keyframes nav-line-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes row-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; gap: 65px; }
  .hero-side { width: min(100%, 620px); }
  .hero { min-height: auto; }
  .fight-table-heading, .fight-archive-card { grid-template-columns: 78px 120px minmax(0,1fr); }
  .fight-table-heading span:nth-child(4), .fight-event { display: none; }
  .fighter-table-heading, .fighter-record-card { grid-template-columns: 58px minmax(0,1fr) 185px 36px; }
  .fighter-table-heading span:nth-child(4), .record-finishes { display: none; }
  .admin-fight-layout, .admin-tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .section-shell, .header-inner { width: min(calc(100% - 32px), var(--page-width)); }
  .header-inner { min-height: 68px; grid-template-columns: 1fr auto; }
  .desktop-nav, .header-actions .archive-status { display: none; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .menu-toggle { display: block; }
  .hero-inner { padding-block: 80px 70px; gap: 52px; }
  .hero h1 { font-size: clamp(50px, 13.6vw, 78px); }
  .hero-intro { margin-top: 24px; font-size: 17px; }
  .hero-games { margin-top: 42px; flex-wrap: wrap; }
  .home-section { padding-block: 68px; }
  .home-result-row { grid-template-columns: 90px minmax(0,1fr) 80px; min-height: 68px; }
  .home-result-date { display: none; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-card { min-height: 190px; padding: 26px; }
  .portal-card > div > span { margin-bottom: 34px; }
  .subpage-hero-inner { min-height: 290px; padding-block: 65px 48px; align-items: flex-end; }
  .subpage-hero h1 { font-size: clamp(52px, 14vw, 80px); }
  .subpage-hero .section-link { display: none; }
  .page-records-section { padding-top: 44px; }
  .records-toolbar { align-items: stretch; flex-direction: column; gap: 18px; }
  .records-title-block { justify-content: space-between; }
  .section-search { width: 100%; }
  .table-heading { display: none; }
  .fighter-record-list, .fight-archive-list { margin-top: 24px; border-top: 1px solid var(--line-strong); }
  .fighter-record-card { grid-template-columns: 38px minmax(0,1fr) 135px 32px; gap: 9px; }
  .record-identity { grid-template-columns: 1fr; gap: 2px; }
  .record-game-pill, .record-identity small { display: none; }
  .record-numbers strong { font-size: 15px; }
  .fight-archive-card { grid-template-columns: 68px minmax(0,1fr); gap: 10px 14px; padding-block: 14px; }
  .fight-game-mark { grid-column: 1; grid-row: 2; }
  .fight-game-mark small { display: none; }
  .fight-matchup { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: 1fr 62px 1fr; }
  .dialog-record > div { padding: 18px; }
  .dialog-record strong { font-size: 23px; }
  .profile-history { padding-inline: 22px; }
  .footer-inner { min-height: 96px; }
  .footer-inner > p { display: none; }
  .login-layout { grid-template-columns: 1fr; gap: 45px; }
  .login-intro { max-width: 640px; }
  .admin-hero-inner { align-items: flex-start; flex-direction: column; }
  .admin-overview { grid-template-columns: repeat(2,1fr); }
  .admin-overview article:nth-child(2) { border-right: 0; }
  .admin-overview article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .section-shell, .header-inner { width: min(calc(100% - 24px), var(--page-width)); }
  .brand-copy span { display: none; }
  .hero-inner { padding-block: 68px 55px; }
  .hero h1 { font-size: clamp(46px, 15vw, 68px); }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 15px; }
  .primary-action { width: fit-content; }
  .hero-games { gap: 9px; font-size: 10px; }
  .hero-side-top { padding-bottom: 13px; }
  .hero-stats article { padding: 14px 0; }
  .hero-stats strong { font-size: 35px; }
  .home-result-row { grid-template-columns: minmax(0,1fr) 70px; padding-block: 13px; gap: 10px; }
  .home-result-game { grid-column: 1 / -1; }
  .home-result-method { text-align: right; }
  .portal-card { min-height: 175px; padding: 22px; }
  .portal-card > i { width: 36px; height: 36px; }
  .subpage-hero-inner { min-height: 250px; padding-block: 54px 40px; }
  .subpage-hero p:not(.section-kicker) { margin-top: 18px; font-size: 15px; }
  .section-toolbar { margin-top: 20px; }
  .game-filter { flex-wrap: nowrap; width: calc(100vw - 24px); margin-right: -12px; padding-right: 12px; overflow-x: auto; scrollbar-width: none; }
  .game-filter::-webkit-scrollbar { display: none; }
  .filter-button { flex: 0 0 auto; }
  .fighter-record-card { grid-template-columns: 32px minmax(0,1fr) 106px 26px; min-height: 72px; }
  .record-rank { font-size: 11px; }
  .record-identity strong { font-size: 13px; }
  .record-numbers { gap: 0; }
  .record-numbers > div { gap: 2px; }
  .record-numbers strong { font-size: 13px; }
  .record-numbers span { font-size: 8px; }
  .record-open { width: 26px; height: 26px; }
  .fight-archive-card { grid-template-columns: 55px minmax(0,1fr); }
  .fight-matchup { grid-template-columns: 1fr 50px 1fr; gap: 6px; }
  .fight-competitor strong { font-size: 12px; }
  .fight-decision strong { font-size: 10px; }
  .fight-game-mark > span { width: 36px; }
  .dialog-hero { min-height: 185px; padding: 55px 22px 22px; }
  .dialog-record { grid-template-columns: repeat(2,1fr); }
  .dialog-record > div:nth-child(2) { border-right: 0; }
  .dialog-record > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .profile-fight { grid-template-columns: 30px minmax(0,1fr); padding-block: 10px; }
  .method-pill { grid-column: 2; justify-self: start; }
  .login-card { padding: 24px; }
  .login-intro h1, .admin-hero h1 { font-size: 52px; }
  .admin-overview { grid-template-columns: 1fr; }
  .admin-overview article { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-overview article:last-child { border-bottom: 0; }
  .admin-field-grid { grid-template-columns: 1fr; }
  .admin-fight-row { grid-template-columns: 52px minmax(0,1fr) auto; }
  .admin-fight-meta { display: none; }
  .admin-fighter-row { grid-template-columns: 32px minmax(0,1fr) auto; }
  .admin-record-numbers, .admin-finishes { display: none; }
}

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

@supports (view-transition-name: root) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 240ms; animation-timing-function: var(--ease); }
}

.mobile-admin-logout { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
.mobile-admin-logout:hover { color: var(--text); }

/* ==========================================================
   WCGL v6 — Dark editorial minimalism / 2026 interaction pass
   ========================================================== */
:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --surface: #111419;
  --surface-soft: #171b21;
  --surface-hover: rgba(255, 255, 255, 0.045);
  --surface-glass: rgba(19, 23, 29, 0.66);
  --text: #f6f7f9;
  --text-soft: #c8cdd5;
  --muted: #747b86;
  --muted-strong: #9ba2ad;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.13);
  --accent: #4c8dff;
  --accent-hover: #6ca2ff;
  --accent-soft: rgba(76, 141, 255, 0.12);
  --success: #42c99a;
  --danger: #ff6868;
  --shadow-soft: 0 18px 55px rgba(0, 0, 0, 0.24);
  --shadow-float: 0 34px 110px rgba(0, 0, 0, 0.48);
  --glass-x: 50%;
  --glass-y: 50%;
}

html, body { background: var(--bg); }
body {
  position: relative;
  background:
    radial-gradient(900px 650px at 82% -8%, rgba(48, 108, 220, 0.10), transparent 58%),
    radial-gradient(720px 560px at -10% 30%, rgba(44, 83, 160, 0.045), transparent 60%),
    var(--bg);
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .16;
  background-image: radial-gradient(rgba(255,255,255,.25) .45px, transparent .55px);
  background-size: 4px 4px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 75%);
}
::selection { background: rgba(76,141,255,.30); color: #fff; }

/* Robustly keep the accessibility skip link hidden until keyboard focus. */
.skip-link {
  top: -90px;
  transform: none;
  border: 1px solid var(--line-strong);
  background: rgba(18,22,28,.94);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.skip-link:focus { top: 12px; transform: none; }

/* Full-screen WCGL loader and route transition. */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  height: auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(520px 360px at 50% 45%, rgba(76,141,255,.095), transparent 68%),
    #0a0c0f;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 360ms var(--ease), visibility 360ms step-end;
}
.page-loader::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .22;
  background-image: radial-gradient(rgba(255,255,255,.22) .45px, transparent .55px);
  background-size: 4px 4px;
}
.page-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 260ms ease, visibility 0s step-start;
}
.page-loader.is-exiting {
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
}
.page-loader > *:not(.loader-line), .loader-line > *:not(i) { display: initial !important; }
.loader-core {
  position: relative;
  z-index: 1;
  width: 180px;
  display: grid !important;
  justify-items: center;
  text-align: center;
}
.loader-mark {
  width: 60px;
  height: 60px;
  display: grid !important;
  place-items: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 17px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.28);
  opacity: 0;
  transform: scale(.88) translateY(7px);
}
.loader-mark img { width: 46px; height: 46px; object-fit: contain; }
.loader-wordmark {
  display: block !important;
  margin-top: 16px;
  color: #f7f8fa;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: .14em;
  opacity: 0;
  transform: translateY(6px);
}
.loader-label {
  display: block !important;
  margin-top: 3px;
  color: #737b87;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
}
.loader-line {
  display: block !important;
  width: 116px;
  height: 2px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.075);
  opacity: 0;
}
.loader-line i {
  display: block !important;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #4c8dff 28%, #86b1ff 62%, transparent);
  box-shadow: 0 0 18px rgba(76,141,255,.38);
  transform: translateX(-140%);
}
.page-loader.is-active .loader-mark { animation: loader-mark-in 520ms var(--ease) 40ms both; }
.page-loader.is-active .loader-wordmark { animation: loader-copy-in 460ms var(--ease) 120ms both; }
.page-loader.is-active .loader-label { animation: loader-copy-in 460ms var(--ease) 175ms both; }
.page-loader.is-active .loader-line { animation: loader-copy-in 420ms ease 210ms both; }
.page-loader.is-active .loader-line i { animation: loader-sweep 900ms var(--ease) 220ms infinite; }

/* Header: quiet at top, floating glass once the page moves. */
.site-header {
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: padding 260ms var(--ease);
}
.header-inner {
  position: relative;
  min-height: 76px;
  padding-inline: 0;
  border: 1px solid transparent;
  border-radius: 17px;
  transition: min-height 280ms var(--ease), padding 280ms var(--ease), background 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}
.site-header.is-scrolled {
  padding-top: 10px;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
.site-header.is-scrolled .header-inner {
  min-height: 62px;
  padding-inline: 14px;
  border-color: rgba(255,255,255,.085);
  background: rgba(14,17,21,.73);
  box-shadow: 0 18px 55px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}
.brand-mark { background: #0a0c0f; border: 1px solid rgba(255,255,255,.075); }
.brand-copy span, .archive-status, .admin-logout-link { color: var(--muted); }
.desktop-nav { position: relative; }
.nav-link { z-index: 1; color: var(--muted-strong); }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-link.is-active::after { display: none; }
.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 3px;
  z-index: 2;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #4c8dff, #78a8ff);
  box-shadow: 0 0 14px rgba(76,141,255,.28);
  transform: translateX(0);
  transition: transform 360ms var(--ease), width 360ms var(--ease), opacity 180ms ease;
  pointer-events: none;
}
.menu-toggle:hover, .menu-close:hover { background: rgba(255,255,255,.05); }
.menu-toggle span, .menu-close span::before, .menu-close span::after { background: var(--text); }
.menu-scrim { background: rgba(0,0,0,.55); backdrop-filter: blur(8px); }
.mobile-menu {
  border-color: var(--line-strong);
  background: rgba(14,17,21,.92);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
}
.mobile-menu-brand img { background: #0a0c0f; }
.menu-close { background: rgba(255,255,255,.05); }

/* Hero / homepage. */
.hero {
  min-height: 570px;
  border-bottom-color: var(--line);
  background: transparent;
}
.hero::after {
  position: absolute;
  top: 36px;
  right: max(-90px, calc((100vw - var(--page-width)) / 2 - 125px));
  width: 430px;
  height: 430px;
  content: "";
  background: url("assets/wcgl-mark.png") center / contain no-repeat;
  opacity: .018;
  filter: grayscale(1) brightness(1.8);
  transform: rotate(-8deg);
  pointer-events: none;
}
.hero-aura {
  top: -330px;
  right: -150px;
  width: 780px;
  height: 780px;
  background: radial-gradient(circle, rgba(76,141,255,.11), rgba(76,141,255,.028) 42%, transparent 69%);
  filter: blur(2px);
}
.hero-inner { padding-block: 82px 78px; }
.hero-eyebrow, .section-kicker { color: #6fa3ff; }
.hero h1 { color: var(--text); }
.hero h1 span {
  color: #8d949e;
  background: linear-gradient(108deg, #7f8792 0%, #b2b8c2 46%, #747c87 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-intro { color: var(--muted-strong); }
.primary-action {
  border: 1px solid rgba(255,255,255,.80);
  background: #f4f6f8;
  color: #0b0d10;
  box-shadow: 0 9px 26px rgba(0,0,0,.22);
}
.primary-action:hover {
  background: #fff;
  box-shadow: 0 14px 38px rgba(0,0,0,.32), 0 0 0 1px rgba(76,141,255,.18);
}
.text-action, .section-link { color: var(--text-soft); }
.hero-games { color: var(--muted); }
.hero-games i { background: rgba(255,255,255,.26); }
.hero-side {
  padding: 0 2px;
}
.hero-side-top { border-color: var(--line-strong); color: var(--muted-strong); }
.hero-stats article { border-color: var(--line); }
.hero-stats article > span:last-child { color: var(--muted); }
.live-dot { box-shadow: 0 0 0 4px rgba(66,201,154,.10), 0 0 18px rgba(66,201,154,.16); }

/* Shared content surfaces. */
.latest-section, .page-records-section, .admin-workspace { background: rgba(16,19,24,.55); }
.explore-section, .subpage-hero, .login-page, .admin-hero { background: transparent; }
.home-section, .content-section { padding-block: 76px; }
.home-results { border-color: var(--line-strong); }
.home-result-row, .fighter-record-card, .fight-archive-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.home-result-row::before,
.fighter-record-card::before,
.fight-archive-card::before,
.portal-card::before,
.filter-button::before,
.section-search::before,
.primary-action::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0;
  background: radial-gradient(300px circle at var(--glass-x, 50%) var(--glass-y, 50%), rgba(255,255,255,.095), rgba(76,141,255,.025) 34%, transparent 70%);
  transition: opacity 220ms ease;
  pointer-events: none;
}
.home-result-row:hover::before,
.fighter-record-card:hover::before,
.fight-archive-card:hover::before,
.portal-card:hover::before,
.filter-button:hover::before,
.section-search:focus-within::before,
.primary-action:hover::before { opacity: 1; }
.home-result-row:hover, .fighter-record-card:hover, .fight-archive-card:hover {
  padding-inline: 10px;
  background: rgba(255,255,255,.018);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.028);
}
.home-result-row { border-color: var(--line); }
.home-result-match strong { color: var(--text); }
.home-result-method { color: var(--text-soft); }

.portal-grid { border-color: var(--line); background: var(--line); }
.portal-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 215px;
  border: 0;
  background: rgba(17,20,25,.78);
}
.portal-card:hover {
  background: rgba(20,24,30,.93);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.portal-card > i { background: rgba(255,255,255,.055); color: var(--text); }
.portal-card:hover > i { background: #f4f6f8; color: #0b0d10; }

/* Compact subpage intro. */
.subpage-hero { border-color: var(--line); }
.subpage-hero-inner {
  min-height: 270px;
  padding-block: 58px 48px;
}
.subpage-hero h1 { font-size: clamp(52px, 7vw, 82px); }
.subpage-hero p:not(.section-kicker) { margin-top: 18px; color: var(--muted-strong); }
.page-records-section { padding-top: 48px; }

/* Search and segmented game controls. */
.section-search {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: var(--line-strong);
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.section-search:focus-within {
  border-color: rgba(76,141,255,.48);
  background: rgba(255,255,255,.04);
  box-shadow: 0 0 0 3px rgba(76,141,255,.08), inset 0 1px 0 rgba(255,255,255,.035);
}
.section-search input::placeholder { color: #646c77; }
.section-search kbd { border-color: var(--line); background: rgba(255,255,255,.04); color: var(--muted); }
.search-icon { border-color: var(--muted); }
.search-icon::after { background: var(--muted); }
.game-filter { gap: 6px; }
.filter-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 36px;
  border-color: var(--line);
  background: rgba(255,255,255,.018);
  color: var(--muted-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
}
.filter-button:hover {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.filter-button.is-active {
  border-color: rgba(103,158,255,.38);
  background: rgba(76,141,255,.105);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 8px 22px rgba(0,0,0,.16);
}
.filter-logo, .record-game-logo, .fight-game-logo, .dialog-game-logo {
  filter: none !important;
  opacity: .94;
}
.filter-button.is-active .filter-logo { filter: none !important; opacity: 1; }
.filter-logo { width: 38px; max-height: 16px; }
.mk1-wordmark { color: #fff; }
.mk1-wordmark span { font-size: .64em; }

.table-heading { border-color: var(--line-strong); color: #626a75; }
.fighter-record-card, .fight-archive-card { border-color: var(--line); }
.record-game-pill, .fight-game-mark > span {
  border-color: var(--line);
  background: rgba(255,255,255,.025);
}
.record-numbers .record-win strong { color: #78a8ff; }
.record-open { color: var(--muted); }
.fighter-record-card:hover .record-open { background: rgba(255,255,255,.06); color: var(--text); }

/* Fight rows read as a compact ledger rather than stacked labels. */
.fight-archive-card { min-height: 82px; }
.fight-competitor > span, .fight-event > span { display: none; }
.fight-matchup { grid-template-columns: minmax(0,1fr) 82px minmax(0,1fr); }
.fight-competitor strong { font-size: 14px; }
.fight-competitor.is-winner strong { color: #fff; font-weight: 740; }
.fight-competitor.is-loser strong { color: #aab1bc; }
.fight-decision span { color: #666e79; font-size: 8px; }
.fight-decision strong { color: var(--text-soft); font-size: 11px; }
.fight-event strong { color: var(--muted-strong); }

/* Modal / profile. */
.fighter-dialog {
  border-color: var(--line-strong);
  background: rgba(14,17,21,.96);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.fighter-dialog::backdrop { background: rgba(3,5,8,.72); backdrop-filter: blur(8px); }
.dialog-close { border-color: var(--line); background: rgba(21,25,31,.85); }
.dialog-hero { background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(76,141,255,.025)); }
.dialog-record > div { border-color: var(--line); }
.profile-fight, .dialog-record, .dialog-hero { border-color: var(--line); }
.profile-outcome { background: rgba(255,255,255,.05); }
.method-pill { background: rgba(255,255,255,.05); color: var(--text-soft); }

/* Footer. */
.site-footer { border-color: var(--line); background: #0a0c0f; }

/* Login and admin surfaces. */
.login-card, .admin-card, .admin-overview, .admin-security-note, .admin-dialog {
  border-color: var(--line-strong);
  background: rgba(17,20,25,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), var(--shadow-soft);
}
.login-card-mark, .mobile-menu-brand img { border: 1px solid var(--line); background: #090b0e; }
.admin-field input, .admin-field select, .admin-search input, .admin-select-compact select {
  border-color: var(--line-strong) !important;
  background: rgba(255,255,255,.025) !important;
  color: var(--text) !important;
}
.admin-field input:focus, .admin-field select:focus, .admin-search input:focus, .admin-select-compact select:focus {
  border-color: rgba(76,141,255,.52) !important;
  box-shadow: 0 0 0 3px rgba(76,141,255,.08) !important;
}
.admin-overview article, .admin-icon-button, .admin-row-actions button, .admin-dialog-close { background: transparent; border-color: var(--line); }
.admin-result-type span { border-color: var(--line); }
.admin-result-type input:checked + span { border-color: rgba(76,141,255,.4); background: rgba(76,141,255,.12); color: #fff; }
.admin-data-card code { background: #0a0c0f; }
.admin-toast { background: #f4f6f8; color: #0b0d10; }

/* Motion refinement. */
[data-reveal] { transform: translateY(10px); transition-duration: 560ms; }
.enter { animation-duration: 400ms; }
.page-transitioning main, .page-transitioning .site-header, .page-transitioning .site-footer { filter: saturate(.94); }

@keyframes loader-mark-in {
  from { opacity: 0; transform: scale(.86) translateY(8px); filter: blur(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
@keyframes loader-copy-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loader-sweep {
  0% { transform: translateX(-145%); }
  68%, 100% { transform: translateX(360%); }
}

@media (max-width: 780px) {
  .site-header.is-scrolled { padding-top: 7px; }
  .site-header.is-scrolled .header-inner { min-height: 58px; padding-inline: 10px; }
  .hero-inner { padding-block: 70px 62px; }
  .subpage-hero-inner { min-height: 235px; padding-block: 48px 38px; }
  .home-section { padding-block: 62px; }
  .fight-archive-card { min-height: 0; }
  .fight-competitor > span { display: none; }
}

@media (max-width: 560px) {
  .hero-inner { padding-block: 58px 48px; }
  .hero::after { width: 290px; height: 290px; right: -115px; top: 85px; }
  .subpage-hero-inner { min-height: 215px; padding-block: 44px 34px; }
  .filter-button { padding-inline: 10px; }
  .filter-logo { width: 32px; }
}

.primary-action { position: relative; isolation: isolate; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .loader-mark, .loader-wordmark, .loader-label, .loader-line { opacity: 1 !important; transform: none !important; animation: none !important; }
  .loader-line i { animation: none !important; transform: translateX(0) !important; }
  .nav-indicator { transition: none !important; }
}

/* ==========================================================
   WCGL v7 — navigation, champions, featured video + motion
   ========================================================== */

/* Compact social destinations replace repeated text links. */
.header-actions { gap: 8px; }
.social-links { display: flex; align-items: center; gap: 5px; }
.social-icon {
  position: relative;
  isolation: isolate;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted-strong);
  text-decoration: none;
  transition: color 180ms ease, border-color 220ms ease, background 220ms ease, transform 240ms var(--ease);
}
.social-icon::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0;
  background: radial-gradient(90px circle at var(--glass-x, 50%) var(--glass-y, 50%), rgba(255,255,255,.13), rgba(76,141,255,.045) 45%, transparent 78%);
  transition: opacity 200ms ease;
}
.social-icon:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.035);
  color: #fff;
}
.social-icon:hover::before { opacity: 1; }
.social-icon svg { width: 17px; height: 17px; fill: currentColor; }
.mobile-social-links { margin-top: auto; padding-top: 24px; display: grid; gap: 8px; }
.mobile-social-links a {
  min-height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
}
.footer-inner { flex-wrap: wrap; }
.footer-social-links { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.footer-social-links a { color: var(--muted); font-size: 11px; font-weight: 650; text-decoration: none; transition: color 180ms ease; }
.footer-social-links a:hover { color: var(--text); }

/* Homepage is intentionally shorter: hero → recent fights → champions → video. */
.champions-section { background: transparent; }
.champions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.018);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.champion-card {
  position: relative;
  isolation: isolate;
  min-height: 250px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.026), rgba(255,255,255,.008));
  transition: background 240ms ease, transform 320ms var(--ease);
}
.champion-card:last-child { border-right: 0; }
.champion-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0;
  background: radial-gradient(360px circle at var(--glass-x, 50%) var(--glass-y, 50%), rgba(255,255,255,.115), rgba(76,141,255,.04) 34%, transparent 68%);
  transition: opacity 240ms ease;
}
.champion-card::after {
  position: absolute;
  top: -85px;
  right: -75px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(76,141,255,.075), transparent 68%);
  opacity: .7;
  pointer-events: none;
}
.champion-card:hover { background: rgba(255,255,255,.03); }
.champion-card:hover::before { opacity: 1; }
.champion-card-main {
  width: 100%;
  min-height: 250px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: default;
}
button.champion-card-main { cursor: pointer; }
.champion-game-mark { min-height: 26px; display: flex; align-items: center; }
.champion-game-logo { max-width: 74px; max-height: 23px; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
.champion-game-mark .mk1-wordmark { color: #fff; font-size: 14px; }
.champion-game-name { margin-top: 10px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.champion-label { margin-top: auto; color: #6fa3ff; font-size: 10px; font-weight: 780; letter-spacing: .09em; text-transform: uppercase; }
.champion-card strong { max-width: 100%; margin-top: 7px; overflow: hidden; color: #fff; font-size: clamp(23px, 2.6vw, 33px); font-weight: 680; letter-spacing: -.045em; text-overflow: ellipsis; white-space: nowrap; }
.champion-record { margin-top: 7px; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.champion-record i { color: var(--text-soft); font-style: normal; transition: transform 220ms var(--ease); }
button.champion-card-main:hover .champion-record i { transform: translateX(4px); }
.champion-card.is-vacant strong { color: var(--muted-strong); }
.champion-card.is-vacant::after { opacity: .2; }

.featured-video-section { border-top: 1px solid var(--line); background: rgba(16,19,24,.48); }
.featured-video-layout { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.55fr); gap: clamp(42px, 7vw, 100px); align-items: center; }
.featured-video-copy { max-width: 420px; }
.featured-video-copy h2 { margin: 4px 0 15px; font-size: clamp(34px, 4.2vw, 52px); line-height: .98; letter-spacing: -.055em; }
.featured-video-copy > p:not(.section-kicker) { margin: 0 0 24px; color: var(--muted-strong); font-size: 14px; }
.featured-video-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #080a0d;
  box-shadow: 0 24px 70px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.025);
}
.featured-video-frame::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .55;
  background: radial-gradient(420px circle at var(--glass-x, 50%) var(--glass-y, 50%), rgba(76,141,255,.11), transparent 68%);
}
.video-embed-shell { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: inherit; }
.video-embed-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Fighter profile feels like a native panel rather than an abrupt modal. */
.fighter-dialog {
  opacity: 1;
  overflow: hidden;
}
.fighter-dialog .dialog-panel {
  max-height: min(820px, calc(100vh - 32px));
  overflow: auto;
  opacity: 0;
  transform: translate3d(34px, 10px, 0) scale(.985);
  filter: blur(3px);
  transition: opacity 300ms ease, transform 420ms var(--ease), filter 340ms ease;
  will-change: transform, opacity;
}
.fighter-dialog.is-visible .dialog-panel {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
.fighter-dialog.is-closing .dialog-panel {
  opacity: 0;
  transform: translate3d(24px, 8px, 0) scale(.99);
  filter: blur(2px);
}
.fighter-dialog::backdrop {
  background: rgba(3,5,8,.12);
  backdrop-filter: blur(0);
  transition: background 300ms ease, backdrop-filter 300ms ease;
}
.fighter-dialog.is-visible::backdrop { background: rgba(3,5,8,.76); backdrop-filter: blur(9px); }
.dialog-close { transition: transform 220ms var(--ease), background 180ms ease, border-color 180ms ease; }
.dialog-close:hover { transform: rotate(90deg); background: rgba(255,255,255,.07); border-color: var(--line-strong); }

/* Homepage/admin controls. */
.admin-site-grid { grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); align-items: start; }
.admin-site-card { min-width: 0; }
.admin-site-section-head { margin: 7px 0 2px; padding-top: 4px; }
.admin-site-section-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.admin-champion-controls { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.admin-publish-key-field { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-publish-key-field small { color: var(--muted); font-size: 9px; font-weight: 500; }
.admin-site-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.admin-inline-status { color: var(--muted); font-size: 10px; }
.admin-inline-status[data-state="ok"] { color: var(--success); }
.admin-inline-status[data-state="error"] { color: var(--danger); }
.admin-inline-status[data-state="loading"] { color: #8ab5ff; }
.admin-site-help-card p { color: var(--muted-strong); font-size: 12px; line-height: 1.65; }
.admin-site-help-card p + p { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-button:disabled { opacity: .55; cursor: wait; transform: none !important; }

/* Slightly richer entrance rhythm without adding visual clutter. */
.champions-grid.is-visible .champion-card { animation: champion-in 620ms var(--ease) var(--champion-delay, 0ms) both; }
.featured-video-frame.is-visible .video-embed-shell { animation: video-in 700ms var(--ease) 60ms both; }
@keyframes champion-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes video-in { from { opacity: 0; transform: scale(.982) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }

@media (max-width: 900px) {
  .champions-grid { grid-template-columns: 1fr; }
  .champion-card { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .champion-card:last-child { border-bottom: 0; }
  .champion-card-main { min-height: 190px; }
  .featured-video-layout { grid-template-columns: 1fr; gap: 30px; }
  .featured-video-copy { max-width: 620px; }
  .admin-site-grid { grid-template-columns: 1fr; }
  .admin-champion-controls { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .social-links-header { display: none; }
  .footer-social-links { width: 100%; order: 3; margin-left: 40px; }
  .fighter-dialog .dialog-panel { transform: translate3d(0, 34px, 0) scale(.99); }
  .fighter-dialog.is-visible .dialog-panel { transform: translate3d(0,0,0) scale(1); }
}

@media (max-width: 560px) {
  .champion-card-main { padding: 23px; }
  .champion-card strong { font-size: 27px; }
  .featured-video-frame { border-radius: 13px; }
  .footer-social-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fighter-dialog .dialog-panel,
  .fighter-dialog.is-visible .dialog-panel,
  .fighter-dialog.is-closing .dialog-panel { opacity: 1; transform: none; filter: none; transition: none; }
  .champions-grid.is-visible .champion-card,
  .featured-video-frame.is-visible .video-embed-shell { animation: none; }
}

/* Secure admin authentication + roles (v8) */
.admin-role-badge,
.admin-user-role {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.78);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-role-badge[data-role="owner"] {
  border-color: rgba(20,124,255,.34);
  background: rgba(20,124,255,.12);
  color: #9ecbff;
}
.admin-account-grid { align-items: start; }
.admin-account-summary {
  display: grid;
  gap: 5px;
  padding: 17px 18px;
  margin-bottom: 22px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.025);
}
.admin-account-summary span {
  color: rgba(255,255,255,.45);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-account-summary strong { color: #fff; font-size: .96rem; overflow-wrap: anywhere; }
.admin-account-help {
  margin: -4px 0 20px;
  color: rgba(255,255,255,.52);
  line-height: 1.65;
  font-size: .88rem;
}
.admin-create-user-form {
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-user-list { display: grid; gap: 9px; margin-top: 16px; }
.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.admin-user-identity { display: grid; gap: 4px; min-width: 0; }
.admin-user-identity strong { color: #fff; font-size: .92rem; overflow-wrap: anywhere; }
.admin-user-identity small { color: rgba(255,255,255,.42); }
.admin-user-role { width: fit-content; min-height: 22px; padding: 0 8px; font-size: .62rem; }
.admin-user-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.admin-user-actions button {
  appearance: none;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.72);
  padding: 8px 10px;
  font: inherit;
  font-size: .73rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.admin-user-actions button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.075); color: #fff; }
.admin-user-actions button.is-danger { color: #ff9b9b; border-color: rgba(255,92,92,.16); }
.admin-user-actions button.is-danger:hover { background: rgba(255,70,70,.09); border-color: rgba(255,92,92,.28); }
.admin-user-empty {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.09);
  color: rgba(255,255,255,.48);
}
.admin-user-empty strong { color: rgba(255,255,255,.78); }
body[data-admin-role="moderator"] .admin-security-note { border-color: rgba(255,255,255,.08); }
body[data-admin-role="moderator"] .admin-security-note strong::after {
  content: " · Moderator";
  color: #9ecbff;
}
.login-form small,
.admin-field small { display: block; margin-top: 7px; color: rgba(255,255,255,.42); font-size: .74rem; line-height: 1.45; }

@media (max-width: 760px) {
  .admin-user-row { align-items: flex-start; flex-direction: column; }
  .admin-user-actions { width: 100%; justify-content: flex-start; }
}

/* v8.1: intentionally plain administrator login */
.login-simple-body {
  min-height: 100vh;
  background: #0d0f12;
}
.login-simple-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-simple-form {
  width: min(100%, 340px);
  display: grid;
  gap: 12px;
}
.login-simple-logo {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border-radius: 9px;
}
.login-simple-input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  outline: 0;
  background: #13161b;
  color: #f7f8fa;
  font: inherit;
  transition: border-color 150ms ease, background 150ms ease;
}
.login-simple-input::placeholder { color: #777e89; }
.login-simple-input:focus {
  border-color: rgba(76,141,255,.75);
  background: #15191f;
}
#login-confirm-field,
#login-bootstrap-field { display: grid; }
.login-simple-submit {
  width: 100%;
  height: 46px;
  margin-top: 2px;
  border: 0;
  border-radius: 8px;
  background: #f5f6f8;
  color: #0d0f12;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, opacity 150ms ease;
}
.login-simple-submit:hover { background: #fff; }
.login-simple-submit:disabled { opacity: .55; cursor: wait; }
.login-simple-error {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #ff8181;
  font-size: 12px;
  text-align: center;
}


/* v8.2 concise-copy layout */
.admin-site-grid { grid-template-columns: 1fr; }
.admin-site-card { max-width: 980px; }
.admin-hero-copy { max-width: none; }
.admin-hero-copy h1 { margin-bottom: 0; }
.subpage-hero-inner { min-height: 190px; padding-block: 42px 34px; align-items: flex-end; }
.featured-video-copy h2 { margin-bottom: 20px; }
@media (max-width: 760px) {
  .subpage-hero-inner { min-height: 160px; padding-block: 34px 26px; }
}

/* Admin navigation safety */
.admin-back-link,
.mobile-admin-back {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color .18s ease, transform .18s ease;
}
.admin-back-link:hover,
.mobile-admin-back:hover { color: var(--text); transform: translateX(-2px); }
.mobile-admin-back { width: 100%; text-align: left; padding: 8px 0; }
