/* UltraBullet Team Battles — V1.5 visual system */
:root {
  color-scheme: dark;
  --bg: #080e17;
  --surface: #111d2c;
  --surface-raised: #17263a;
  --line: #293c52;
  --text: #f3f7fb;
  --muted: #9aacc0;
  --accent: #6383ff;
  --cyan: #48d6e7;
  --gold: #ddb66b;
  --panel: #111e2e;
  --shadow: 0 22px 64px rgba(0,0,0,.24);
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 7% 2%, rgba(72,214,231,.12), transparent 34rem),
    radial-gradient(ellipse at 94% 8%, rgba(76,112,210,.17), transparent 39rem),
    linear-gradient(145deg,#080e17 0%,#0b1421 52%,#09111d 100%);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .2;
  background-image:
    linear-gradient(rgba(167,203,222,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(167,203,222,.035) 1px,transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom,black,rgba(0,0,0,.65) 48%,transparent 92%);
}
body:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .13;
  background: linear-gradient(118deg,transparent 0 62%,rgba(72,214,231,.035) 62.1%,transparent 62.35% 100%);
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
.shell {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(1300px,calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 42px;
}
.masthead {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
  margin-bottom: 48px;
  padding: 11px 16px;
  border: 1px solid rgba(117,151,183,.2);
  border-radius: 19px;
  background: rgba(11,20,33,.84);
  box-shadow: 0 12px 38px rgba(0,0,0,.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 16px;
  min-width: 250px;
  color: var(--text);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
}
.brand-emblem {
  display: grid;
  flex: 0 0 94px;
  place-items: center;
  width: 94px;
  height: 94px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(72,214,231,.25);
  border-radius: 21px;
  background:
    radial-gradient(circle at 45% 38%,rgba(72,214,231,.15),transparent 66%),
    linear-gradient(145deg,rgba(24,52,74,.95),rgba(13,25,42,.96));
  box-shadow: 0 0 34px rgba(72,214,231,.09),inset 0 1px 0 rgba(255,255,255,.055);
}
.brand-logo {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 14px;
  filter: drop-shadow(0 0 13px rgba(72,214,231,.18));
}
.brand-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; line-height: 1.1; }
.brand-copy strong {
  color: #f1f6fb;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .095em;
  white-space: nowrap;
}
.brand-copy small {
  color: #8fa7bb;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .2em;
  white-space: nowrap;
}
.mast-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px clamp(12px,1.7vw,24px);
  min-width: 0;
  margin-left: auto;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 2px;
  color: #a9bbce;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}
.nav-link:hover, .nav-link.active { color: #f3f7fb; }
.nav-link.active:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,var(--cyan),var(--accent));
  box-shadow: 0 0 12px rgba(72,214,231,.35);
}
.nav-link.upcoming { color: #71869c; cursor: default; }
.nav-link.upcoming:before {
  content: "SOON";
  margin-right: 6px;
  color: #61788d;
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .08em;
  vertical-align: middle;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}
.status-pill { border-color: rgba(72,214,231,.2); background: rgba(72,214,231,.055); color: #a8c6d5; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow:before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .9; }
.hero {
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(280px,.88fr);
  align-items: center;
  gap: clamp(28px,5vw,70px);
  margin-bottom: 36px;
}
.hero-copy { min-width: 0; padding: 12px 0; }
.hero h1 {
  max-width: 800px;
  margin: 19px 0 17px;
  color: #f3f7fb;
  font-size: clamp(3rem,6.3vw,6rem);
  font-weight: 800;
  line-height: .97;
  letter-spacing: -.07em;
}
.hero h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(100deg,#58d9e7 0%,#7aa3ff 75%,#9b9bff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
.lede { max-width: 650px; margin: 0; color: #a8b9ca; font-size: 1rem; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.primary-action, .secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 9px;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: transform .18s ease,border-color .18s ease,background .18s ease;
}
.primary-action {
  border: 1px solid rgba(91,205,222,.52);
  background: linear-gradient(110deg,#1c7182,#345f9e);
  color: #f5fcff;
  box-shadow: 0 8px 26px rgba(31,117,145,.19);
}
.primary-action:hover { transform: translateY(-2px); background: linear-gradient(110deg,#23869a,#416fb4); }
.secondary-action { border: 1px solid rgba(132,161,189,.25); background: rgba(255,255,255,.025); color: #c1d0dc; }
.secondary-action:hover { border-color: rgba(72,214,231,.4); background: rgba(72,214,231,.055); }
.hero-note {
  position: relative;
  min-width: 0;
  min-height: 250px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(92,133,170,.34);
  border-radius: 20px;
  background: linear-gradient(145deg,rgba(21,42,63,.93),rgba(13,25,41,.94) 62%,rgba(18,33,54,.94));
  box-shadow: 0 24px 70px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.035);
}
.arena-panel { isolation: isolate; }
.arena-visual {
  position: absolute;
  inset: 0 0 0 34%;
  z-index: -1;
  overflow: hidden;
  opacity: .84;
  background: radial-gradient(ellipse at 66% 44%,rgba(55,173,207,.16),transparent 58%);
}
.arena-ring {
  position: absolute;
  display: block;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(78,204,223,.25);
  border-radius: 50%;
  transform: rotate(-28deg) skewX(-14deg);
}
.ring-one { top: 9px; right: 13px; box-shadow: 0 0 40px rgba(72,214,231,.08),inset 0 0 35px rgba(72,214,231,.035); }
.ring-two { top: 35px; right: 39px; width: 158px; height: 158px; border-color: rgba(112,145,255,.27); }
.arena-core {
  position: absolute;
  top: calc(50% - 27px);
  right: calc(50% - 90px);
  width: 54px;
  height: 54px;
  border: 1px solid rgba(91,220,231,.58);
  border-radius: 15px;
  background: linear-gradient(145deg,rgba(73,213,228,.22),rgba(91,126,238,.18));
  box-shadow: 0 0 46px rgba(63,194,218,.2),inset 0 1px 0 rgba(255,255,255,.18);
  transform: rotate(45deg);
}
.arena-line { position: absolute; display: block; height: 1px; background: linear-gradient(90deg,transparent,rgba(72,214,231,.4),transparent); transform-origin: center; }
.line-one { top: 38%; right: 0; width: 88%; transform: rotate(-25deg); }
.line-two { top: 68%; right: -5%; width: 95%; transform: rotate(18deg); background: linear-gradient(90deg,transparent,rgba(107,141,255,.36),transparent); }
.arena-panel-content { position: relative; z-index: 1; display: flex; min-height: 250px; flex-direction: column; justify-content: center; padding: 26px 27px; }
.arena-panel-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.hero-note .note-label { color: #66d7e4; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; }
.refresh-indicator { display: inline-flex; align-items: center; gap: 7px; color: #92aabd; font-family: var(--font-mono); font-size: .54rem; letter-spacing: .09em; }
.refresh-indicator i { width: 6px; height: 6px; border-radius: 50%; background: #56d3bb; box-shadow: 0 0 10px rgba(86,211,187,.58); }
.hero-note strong { max-width: 270px; margin: 24px 0 8px; color: #f2f7fb; font-size: 1.42rem; font-weight: 750; line-height: 1.2; letter-spacing: -.035em; }
.hero-note p { max-width: 340px; margin: 0; color: #a3b6c7; font-size: .79rem; line-height: 1.75; }
.arena-panel-foot { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(151,183,210,.14); color: #829db2; font-family: var(--font-mono); font-size: .55rem; letter-spacing: .14em; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin: 28px 0 30px; }
.stat {
  position: relative;
  min-width: 0;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid rgba(105,140,171,.25);
  border-radius: 15px;
  background: linear-gradient(145deg,rgba(24,42,62,.76),rgba(14,26,42,.72));
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.stat:after { content: ""; position: absolute; top: 0; left: 0; width: 90px; height: 2px; background: linear-gradient(90deg,var(--cyan),rgba(99,131,255,.45),transparent); }
.stat-label { display: block; color: #94aabd; font-size: .72rem; line-height: 1.45; }
.stat-value { display: block; margin-top: 10px; color: #f2f7fb; font-family: var(--font-mono); font-size: 1.8rem; font-weight: 600; line-height: 1.1; letter-spacing: -.06em; }
.dashboard-grid { display: grid; grid-template-columns: 1.05fr .95fr 1fr; gap: 14px; margin: 0 0 30px; }
.dashboard-card {
  min-width: 0;
  padding: 21px;
  border: 1px solid rgba(91,126,159,.3);
  border-radius: 16px;
  background: linear-gradient(145deg,rgba(20,39,59,.84),rgba(13,24,39,.9));
  box-shadow: 0 16px 44px rgba(0,0,0,.16);
}
.dashboard-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.info-kicker { color: var(--cyan); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; line-height: 1.45; }
.dashboard-status { padding: 5px 8px; border: 1px solid rgba(72,214,231,.18); border-radius: 999px; color: #9fcbd2; font-family: var(--font-mono); font-size: .54rem; letter-spacing: .08em; white-space: nowrap; }
.dashboard-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #56d3bb; box-shadow: 0 0 12px rgba(86,211,187,.5); }
.dashboard-card h2 { margin: 17px 0 7px; color: #f0f6fb; font-size: 1.12rem; font-weight: 750; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.dashboard-sub { min-height: 38px; margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.65; }
.progress-track { height: 8px; margin: 19px 0 10px; overflow: hidden; border: 1px solid rgba(111,148,182,.17); border-radius: 999px; background: #091320; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#48d6e7,#6383ff); transition: width .35s ease; }
.progress-caption { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-family: var(--font-mono); font-size: .65rem; line-height: 1.4; }
.progress-caption strong { color: var(--text); font-weight: 600; }
.dashboard-link { display: inline-flex; margin-top: 17px; color: var(--cyan); font-size: .74rem; font-weight: 750; text-decoration: none; }
.dashboard-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.leader-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 12px; padding: 13px 0; border-bottom: 1px solid rgba(144,177,204,.11); }
.leader-entry>span { grid-column: 1/-1; color: var(--muted); font-size: .68rem; }
.leader-entry a { min-width: 0; overflow: hidden; color: #edf6fc; font-size: .82rem; font-weight: 750; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.leader-entry a:hover { color: var(--cyan); }
.leader-entry strong { color: var(--cyan); font-family: var(--font-mono); font-size: .75rem; white-space: nowrap; }
.board {
  overflow: hidden;
  border: 1px solid rgba(91,126,159,.33);
  border-radius: 18px;
  background: rgba(13,24,39,.94);
  box-shadow: 0 26px 80px rgba(0,0,0,.23),inset 0 1px 0 rgba(255,255,255,.025);
  color: var(--text);
}
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 26px 19px; border-bottom: 1px solid rgba(103,140,173,.2); }
.board-title { margin: 0; color: #f1f6fb; font-size: 1.45rem; font-weight: 750; line-height: 1.25; letter-spacing: -.04em; }
.board-sub { margin: 6px 0 0; color: #91a7bb; font-size: .8rem; line-height: 1.5; }
.controls { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; padding: 15px 20px; border-bottom: 1px solid rgba(103,140,173,.18); background: rgba(255,255,255,.018); }
.segmented { display: inline-flex; flex: 0 0 auto; gap: 4px; padding: 4px; border: 1px solid rgba(111,148,182,.25); border-radius: 10px; background: #0b1523; }
.segmented button, .filter-button {
  padding: 9px 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.3;
  cursor: pointer;
  transition: .16s ease;
}
.segmented button:hover, .filter-button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.segmented button.active { background: linear-gradient(110deg,#267f91,#456cba); color: #fff; box-shadow: 0 5px 18px rgba(46,135,160,.19); }
.search { flex: 1 1 220px; min-width: min(100%,190px); }
.search input, .select-input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #2b4058;
  border-radius: 9px;
  outline: none;
  background: #0b1625;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: .82rem;
  line-height: 1.35;
}
.search input:focus, .select-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(72,214,231,.1); }
.search input::placeholder { color: #71849a; }
.select-input { width: auto; min-width: 145px; cursor: pointer; }
.controls .search input { min-width: 0; }
.filter-button { flex: 0 0 auto; min-height: 40px; border: 1px solid rgba(111,148,182,.18); }
.table-scroll { max-height: none; overflow-x: auto; overflow-y: visible; }
table { width: 100%; min-width: 650px; border-collapse: collapse; text-align: left; }
thead { background: #17263a; }
th { padding: 13px 18px; color: #8ba3b9; font-family: var(--font-mono); font-size: .64rem; font-weight: 500; line-height: 1.35; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
td { padding: 14px 18px; border-top: 1px solid rgba(144,177,204,.1); color: #d9e3ed; font-size: .83rem; line-height: 1.45; vertical-align: middle; }
tbody tr { cursor: pointer; transition: background .13s; }
tbody tr:hover { background: rgba(72,214,231,.055); }
tbody tr:nth-child(-n+3) { background: rgba(221,182,107,.035); }
tbody tr:nth-child(-n+3):hover { background: rgba(221,182,107,.08); }
.rank { width: 72px; color: #8298ad; font-family: var(--font-mono); font-size: .78rem; }
.rank.top { color: var(--gold); font-weight: 700; }
.entity { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 750; }
.entity span:last-child { min-width: 0; overflow-wrap: anywhere; }
.mini-mark { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(85,159,188,.3); border-radius: 9px; background: linear-gradient(140deg,rgba(72,214,231,.1),rgba(99,131,255,.12)); color: #6bd9e8; font-size: .86rem; }
.points { text-align: right; font-family: var(--font-mono); font-size: .84rem; font-weight: 600; white-space: nowrap; }
th.points { text-align: right; }
.secondary { color: var(--muted); font-size: .75rem; }
.empty { padding: 48px 24px; color: var(--muted); line-height: 1.7; text-align: center; }
.empty strong { display: block; margin-bottom: 7px; color: var(--text); font-size: 1rem; }
.pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--line); background: rgba(255,255,255,.012); }
.pagination-summary, .page-indicator { color: var(--muted); font-family: var(--font-mono); font-size: .67rem; }
.pagination-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.page-size-control { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .7rem; }
.page-size-control .select-input { width: auto; min-width: 68px; min-height: 36px; padding: 7px 9px; font-size: .72rem; }
.page-button { min-height: 36px; padding: 8px 11px; border: 1px solid rgba(111,148,182,.25); border-radius: 8px; background: rgba(255,255,255,.025); color: var(--text); font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; }
.page-button:hover:not(:disabled) { border-color: rgba(72,214,231,.4); background: rgba(72,214,231,.06); }
.page-button:disabled { opacity: .35; cursor: not-allowed; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 46px 0 17px; }
.section-heading h2 { margin: 9px 0 0; color: #eff6fb; font-size: 1.45rem; font-weight: 750; line-height: 1.25; letter-spacing: -.035em; }
.section-heading p { margin: 6px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.history-panel { overflow: hidden; border: 1px solid rgba(91,126,159,.3); border-radius: 16px; background: rgba(13,24,39,.82); }
.history-list { display: grid; }
.history-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 20px; padding: 16px 20px; border-bottom: 1px solid rgba(144,177,204,.1); }
.history-row:last-child { border-bottom: 0; }
.history-row:hover { background: rgba(72,214,231,.035); }
.history-name { color: #edf5fa; font-size: .86rem; font-weight: 750; line-height: 1.45; overflow-wrap: anywhere; }
.history-date { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.history-meta { color: var(--muted); font-family: var(--font-mono); font-size: .7rem; white-space: nowrap; }
.history-link { color: #67d6e5; font-size: .76rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.history-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.compare-section { margin: 40px 0 38px; }
.compare-heading { align-items: end; margin: 0 0 16px; }
.compare-heading h2 { margin: 8px 0 0; }
.compare-heading p { margin: 5px 0 0; }
.compare-pickers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.compare-picker { min-width: 0; padding: 19px; border: 1px solid rgba(91,126,159,.3); border-radius: 16px; background: linear-gradient(145deg,rgba(20,39,59,.82),rgba(13,24,39,.9)); }
.compare-label { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; color: #dce8f1; font-size: .78rem; font-weight: 750; }
.compare-letter, .compare-picked-mark, .compare-empty-mark { display: inline-grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; }
.letter-a { border: 1px solid rgba(72,214,231,.35); background: rgba(72,214,231,.1); color: #78e0e9; }
.letter-b { border: 1px solid rgba(136,145,255,.35); background: rgba(136,145,255,.11); color: #b0b7ff; }
.compare-input { display: block; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #2b4058; border-radius: 9px; outline: none; background: #0b1625; color: var(--text); font-family: var(--font-sans); font-size: .82rem; }
.compare-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(72,214,231,.1); }
.compare-input::placeholder { color: #71849a; }
.compare-suggestions { display: grid; gap: 5px; max-height: 220px; margin-top: 7px; overflow: auto; }
.compare-suggestions p { margin: 0; padding: 8px 2px; color: #8299ad; font-size: .7rem; line-height: 1.5; }
.compare-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; background: rgba(255,255,255,.025); color: #dce8f1; font: inherit; font-size: .75rem; text-align: left; cursor: pointer; }
.compare-option:hover { border-color: rgba(72,214,231,.25); background: rgba(72,214,231,.06); }
.compare-option span { min-width: 0; overflow-wrap: anywhere; }
.compare-option small { flex: 0 0 auto; color: #8ea5b9; font-family: var(--font-mono); font-size: .62rem; }
.compare-picked { display: flex; align-items: center; gap: 10px; min-height: 56px; margin-top: 13px; padding: 10px; border: 1px solid rgba(111,148,182,.18); border-radius: 10px; background: rgba(255,255,255,.025); color: #8fa7bb; font-size: .74rem; }
.compare-picked-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.compare-picked-copy strong { color: #eef6fb; font-size: .8rem; overflow-wrap: anywhere; }
.compare-picked-copy small { color: #8fa7bb; font-family: var(--font-mono); font-size: .62rem; }
.compare-empty-mark { border: 1px solid rgba(111,148,182,.2); background: rgba(255,255,255,.035); color: #8fa7bb; }
.compare-results { margin-top: 14px; padding: 19px; border: 1px solid rgba(91,126,159,.3); border-radius: 16px; background: rgba(13,24,39,.82); }
.compare-empty { padding: 17px 8px; color: var(--muted); font-size: .82rem; text-align: center; }
.compare-summary { display: flex; flex-direction: column; gap: 5px; padding: 2px 1px 16px; border-bottom: 1px solid rgba(144,177,204,.12); }
.compare-summary-label { color: var(--cyan); font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; }
.compare-summary strong { color: #f1f6fb; font-size: 1.08rem; line-height: 1.35; }
.compare-summary>span:last-child { color: var(--muted); font-size: .72rem; }
.compare-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 22px; padding-top: 17px; }
.compare-metric { min-width: 0; }
.compare-metric-head { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; margin-bottom: 8px; }
.compare-metric-head strong { color: #c4d2de; font-size: .72rem; font-weight: 700; }
.compare-metric-head>span { display: inline-flex; align-items: baseline; gap: 6px; color: #eef6fb; font-family: var(--font-mono); font-size: .67rem; white-space: nowrap; }
.compare-metric-head i { color: #71869c; font-size: .58rem; font-style: normal; }
.compare-bar-stack { display: grid; gap: 5px; }
.compare-bar-line { display: flex; align-items: center; gap: 7px; }
.compare-bar-tag { width: 12px; color: #8fa7bb; font-family: var(--font-mono); font-size: .58rem; }
.compare-track { height: 6px; flex: 1; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
.compare-fill { display: block; height: 100%; min-width: 0; border-radius: inherit; }
.fill-a { background: linear-gradient(90deg,#36b9c9,#58d8e2); }
.fill-b { background: linear-gradient(90deg,#6e79da,#9a9eff); }
.compare-footnote { margin: 15px 0 0; color: #8299ad; font-size: .65rem; line-height: 1.5; }
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 20; align-items: center; justify-content: center; padding: 20px; background: rgba(3,7,14,.78); backdrop-filter: blur(8px); }
.modal-backdrop.open { display: flex; }
.modal { position: relative; width: min(760px,100%); max-height: 88vh; padding: 28px; overflow: auto; border: 1px solid #39516a; border-radius: 18px; background: #111e2f; color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.modal-close { position: absolute; top: 15px; right: 15px; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 9px; background: #1a2a3e; color: var(--text); font-size: 1.2rem; cursor: pointer; }
.modal h2 { max-width: calc(100% - 42px); margin: 0; color: #f1f6fb; font-size: 1.8rem; font-weight: 800; line-height: 1.2; letter-spacing: -.04em; overflow-wrap: anywhere; }
.modal-points { margin: 8px 0 22px; color: var(--cyan); font-family: var(--font-mono); font-size: .8rem; line-height: 1.5; }
.detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.detail-item { min-width: 0; padding: 13px; border: 1px solid #2d4259; border-radius: 10px; background: rgba(255,255,255,.025); }
.detail-item span { display: block; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.detail-item strong { display: block; margin-top: 7px; color: #eef5fa; font-family: var(--font-mono); font-size: .9rem; line-height: 1.35; overflow-wrap: anywhere; }
.profile-link { display: inline-flex; margin-top: 18px; padding: 11px 14px; border: 1px solid rgba(72,214,231,.3); border-radius: 9px; background: rgba(72,214,231,.075); color: #66dbe8; font-size: .78rem; font-weight: 750; text-decoration: none; }
.modal-form { margin-top: 24px; }
.modal-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.modal-section-heading h3, .modal-history h3 { margin: 0; color: #e8f1f7; font-size: .9rem; font-weight: 750; line-height: 1.4; }
.modal-section-heading span { color: #8299ad; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; }
.form-chart { display: flex; align-items: stretch; gap: 8px; min-height: 124px; padding: 12px 10px 8px; border: 1px solid rgba(111,148,182,.17); border-radius: 11px; background: rgba(255,255,255,.018); }
.form-column { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; gap: 7px; }
.form-bar-wrap { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 86px; overflow: hidden; border-radius: 5px 5px 2px 2px; background: rgba(255,255,255,.035); }
.form-bar-wrap i { display: block; width: min(100%,24px); min-height: 3px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg,#62dce5,#4a79c9); box-shadow: 0 0 14px rgba(72,214,231,.14); }
.form-column span { max-width: 100%; overflow: hidden; color: #8fa7bb; font-family: var(--font-mono); font-size: .56rem; text-overflow: ellipsis; white-space: nowrap; }
.form-chart-empty { display: grid; flex: 1; place-items: center; color: #8299ad; font-size: .72rem; text-align: center; }
.modal-history { margin-top: 24px; }
.modal-history h3 { margin-bottom: 10px; }
.modal-history ul { max-height: 240px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.modal-history li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; line-height: 1.5; }
.modal-history li strong { flex: 0 0 auto; color: #e7f0f6; font-family: var(--font-mono); font-size: .7rem; }
.modal-history small { color: #8299ad; font-size: .65rem; }
.modal-history a { color: var(--cyan); text-decoration: none; }
.hidden { display: none !important; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(112,149,180,.17); color: #7e95aa; font-size: .72rem; line-height: 1.7; }
footer a { color: #b5c9d8; text-decoration-color: rgba(189,201,223,.4); text-underline-offset: 3px; }
:where(a,button,input,select,[tabindex]):focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Shared information-page styling */
.info-main { padding-bottom: 30px; }
.info-hero { max-width: 850px; margin: 34px 0 34px; }
.info-hero h1 { margin: 18px 0; color: #f3f7fb; font-size: clamp(2.8rem,6vw,5.2rem); font-weight: 800; line-height: .98; letter-spacing: -.065em; }
.info-hero h1 em { color: transparent; font-style: normal; background: linear-gradient(100deg,#58d9e7,#7aa3ff 75%,#9b9bff); background-clip: text; -webkit-background-clip: text; }
.info-hero p { max-width: 760px; margin: 0; color: #a8b9ca; font-size: 1rem; line-height: 1.85; }
.info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.info-card { min-width: 0; padding: 24px; border: 1px solid rgba(91,126,159,.3); border-radius: 17px; background: linear-gradient(145deg,rgba(21,39,59,.84),rgba(13,24,39,.9)); box-shadow: 0 18px 48px rgba(0,0,0,.16); }
.info-card h2 { margin: 8px 0 11px; color: #eff6fb; font-size: 1.18rem; font-weight: 750; line-height: 1.3; letter-spacing: -.03em; }
.info-card p, .info-card li { color: #a8b9ca; font-size: .87rem; line-height: 1.8; }
.info-card p { margin: 0; }
.info-card p+p { margin-top: 10px; }
.info-card ul { margin: 10px 0 0; padding-left: 19px; }
.info-card li+li { margin-top: 5px; }
.info-wide { grid-column: 1/-1; }
.period-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.period-item { min-width: 0; padding: 13px; border: 1px solid rgba(111,148,182,.22); border-radius: 11px; background: rgba(255,255,255,.025); }
.period-item strong { display: block; color: #eef6fc; font-size: .86rem; line-height: 1.4; }
.period-item span { display: block; margin-top: 5px; color: #93aabd; font-size: .74rem; line-height: 1.6; }
.info-callout { margin-top: 18px; padding: 17px 19px; border-left: 2px solid var(--cyan); border-radius: 0 11px 11px 0; background: rgba(72,214,231,.055); color: #b5c7d5; font-size: .83rem; line-height: 1.75; }
.info-callout strong { color: #eff8fc; }
.info-card a, .info-footer a { color: #72d9e6; text-underline-offset: 3px; }
.info-footer { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(112,149,180,.17); color: #8299ad; font-size: .75rem; line-height: 1.8; }

@media(max-width:1050px) {
  .masthead { gap: 16px; }
  .brand { min-width: 220px; }
  .mast-actions { gap: 8px 13px; }
  .nav-link { font-size: .74rem; }
  .dashboard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .leaders-card { grid-column: 1/-1; }
}
@media(max-width:760px) {
  .shell { width: calc(100% - 30px); padding-top: 16px; }
  .masthead { display: flex; flex-wrap: wrap; min-height: 0; margin-bottom: 36px; padding: 10px 12px; }
  .brand { min-width: 0; gap: 11px; }
  .brand-emblem { flex-basis: 76px; width: 76px; height: 76px; border-radius: 17px; }
  .brand-logo { width: 66px; height: 66px; }
  .brand-copy strong { font-size: .86rem; }
  .brand-copy small { font-size: .54rem; }
  .mast-actions { flex: 1 1 100%; justify-content: flex-start; gap: 8px 18px; margin: 0 0 0 87px; }
  .nav-link { min-height: 32px; padding: 5px 0; font-size: .7rem; }
  .status-pill { display: none; }
  .hero { grid-template-columns: 1fr; gap: 22px; }
  .hero-copy { padding: 4px 0 0; }
  .hero h1 { font-size: clamp(3rem,10vw,4.8rem); }
  .hero-note { max-width: none; }
  .arena-panel-content { min-height: 220px; }
  .stats { gap: 9px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .leaders-card { grid-column: auto; }
  .compare-pickers { grid-template-columns: 1fr; }
  .compare-metrics { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; }
  .history-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
  .history-meta { display: none; }
  .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .info-grid { grid-template-columns: 1fr; }
  .info-wide { grid-column: auto; }
  .period-list { grid-template-columns: 1fr; }
  .info-hero { margin-top: 24px; }
  .info-card { padding: 20px; }
}
@media(max-width:560px) {
  .shell { width: calc(100% - 24px); }
  .masthead { align-items: flex-start; }
  .brand-emblem { flex-basis: 68px; width: 68px; height: 68px; }
  .brand-logo { width: 60px; height: 60px; }
  .brand-copy strong { font-size: .78rem; letter-spacing: .07em; }
  .brand-copy small { font-size: .49rem; letter-spacing: .15em; }
  .mast-actions { margin: 5px 0 0; gap: 4px 14px; }
  .nav-link { font-size: .66rem; }
  .nav-link.upcoming { display: none; }
  .hero h1 { font-size: 2.9rem; }
  .hero-actions { gap: 8px; }
  .primary-action, .secondary-action { padding: 10px 12px; font-size: .7rem; }
  .arena-panel-content { padding: 22px 19px; }
  .arena-panel-top { align-items: flex-start; }
  .refresh-indicator { font-size: .48rem; }
  .stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .stat { padding: 14px 12px; }
  .stat-value { font-size: 1.15rem; }
  .stat-label { font-size: .61rem; }
  .board-head { align-items: flex-start; padding: 20px 16px 15px; }
  .controls { padding: 13px 14px; }
  .controls .search { flex-basis: 100%; }
  .controls .select-input { flex: 1 1 auto; min-width: 0; }
  .controls .segmented { flex: 1 1 auto; }
  .controls .filter-button { flex: 1 1 auto; }
  th, td { padding: 12px 10px; }
  .optional-col { display: none; }
  .board-foot { padding: 13px 16px; }
  .pagination { align-items: flex-start; padding: 12px 14px; }
  .pagination-actions { width: 100%; justify-content: space-between; gap: 6px; }
  .page-button { padding: 8px; }
  .page-indicator { font-size: .61rem; }
  .compare-heading { flex-direction: column; gap: 10px; }
  .compare-picker, .compare-results { padding: 15px; }
  .compare-metric-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .section-heading h2 { font-size: 1.25rem; }
  .section-heading p { font-size: .75rem; }
  .history-row { padding: 14px; }
  .history-name { font-size: .8rem; }
  .history-link { font-size: .7rem; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .modal { padding: 23px 17px; }
  .modal h2 { font-size: 1.5rem; }
  .form-chart { gap: 5px; padding-inline: 6px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { scroll-behavior: auto!important; transition: none!important; animation: none!important; }
}