/* UltraBullet Team Battles — V2 visual system
   Shared visual language with distinct dashboard, profile, archive and editorial page identities.
   Presentation only: data collection, ranking rules and interaction logic remain unchanged. */

:root {
  color-scheme: dark;
  --v2-bg: #070b12;
  --v2-panel: rgba(13, 22, 36, .92);
  --v2-panel-raised: rgba(20, 33, 52, .94);
  --v2-panel-soft: rgba(255, 255, 255, .025);
  --v2-border: rgba(145, 171, 199, .19);
  --v2-border-strong: rgba(145, 171, 199, .31);
  --v2-text: #f4f7fb;
  --v2-muted: #99aabd;
  --v2-dim: #71849a;
  --v2-cyan: #72e0e7;
  --v2-blue: #8ba8ff;
  --v2-violet: #b0a2ff;
  --v2-gold: #eac27f;
  --v2-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --v2-radius-sm: 10px;
  --v2-radius-md: 16px;
  --v2-radius-lg: 22px;
  --v2-display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --v2-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --v2-mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
}

html {
  scroll-padding-top: 132px;
  scrollbar-color: #31445a #080e17;
}
body {
  color: var(--v2-text);
  background:
    radial-gradient(ellipse at 8% 2%, rgba(62, 194, 207, .12), transparent 34rem),
    radial-gradient(ellipse at 94% 4%, rgba(103, 116, 222, .14), transparent 39rem),
    linear-gradient(148deg, #070b12 0%, #0b1421 50%, #080e18 100%);
  font-family: var(--v2-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body:before {
  opacity: .17;
  background-image:
    linear-gradient(rgba(172, 205, 226, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(172, 205, 226, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, rgba(0,0,0,.64) 45%, transparent 88%);
}
body:after {
  opacity: .15;
  background:
    radial-gradient(ellipse at 52% 0%, rgba(100, 140, 190, .09), transparent 54rem),
    linear-gradient(118deg, transparent 0 73%, rgba(111, 226, 231, .018) 73.1%, transparent 73.4% 100%);
}
::selection { color: #061018; background: rgba(114, 224, 231, .82); }
a { text-underline-offset: 3px; }
button, input, select { font-family: var(--v2-sans); }
:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--v2-cyan);
  outline-offset: 3px;
}
.shell {
  width: min(1360px, calc(100% - 56px));
  padding: 24px 0 58px;
}

/* Navigation: compact glass rail, still wraps cleanly on small screens. */
.masthead {
  position: sticky;
  top: 13px;
  z-index: 30;
  min-height: 88px;
  margin-bottom: 52px;
  padding: 10px 17px;
  border: 1px solid rgba(145, 171, 199, .2);
  border-radius: 19px;
  background: rgba(8, 15, 26, .88);
  box-shadow: 0 15px 44px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.brand { min-width: 220px; gap: 13px; }
.brand-emblem {
  flex-basis: 72px;
  width: 72px;
  height: 72px;
  padding: 4px;
  border-color: rgba(114,224,231,.28);
  border-radius: 17px;
  background:
    radial-gradient(circle at 45% 38%, rgba(114,224,231,.17), transparent 68%),
    linear-gradient(145deg, #1a3044, #0c1726);
  box-shadow: 0 0 30px rgba(87,205,222,.11), inset 0 1px 0 rgba(255,255,255,.07);
}
.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  filter: drop-shadow(0 0 13px rgba(114,224,231,.2));
}
.brand-copy strong {
  font-family: var(--v2-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .105em;
}
.brand-copy small {
  color: #91a8bc;
  font-size: .58rem;
  letter-spacing: .2em;
}
.mast-actions {
  gap: 5px clamp(5px, .8vw, 11px);
}
.nav-link {
  min-height: 37px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #a5b5c7;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .01em;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.nav-link:hover {
  border-color: rgba(145,171,199,.13);
  background: rgba(255,255,255,.035);
  color: #f4f8fc;
}
.nav-link.active {
  border-color: rgba(114,224,231,.19);
  background: linear-gradient(110deg, rgba(39,126,141,.2), rgba(77,100,165,.17));
  color: #f4f9fc;
}
.nav-link.active:after { display: none; }
.nav-link.upcoming { opacity: .78; }
.mast-actions .nav-link.upcoming { display: inline-flex; }
.nav-link.upcoming:before {
  padding: 2px 4px;
  border: 1px solid rgba(143,160,181,.2);
  border-radius: 4px;
  background: rgba(255,255,255,.025);
  color: #8497ab;
  font-size: .43rem;
  letter-spacing: .09em;
}
.status-pill {
  border-color: rgba(114,224,231,.24);
  background: rgba(114,224,231,.07);
  color: #b8e7e9;
}

/* Shared type scale and section rhythm. */
.eyebrow {
  color: var(--v2-cyan);
  font-size: .63rem;
  font-weight: 650;
  letter-spacing: .2em;
}
.eyebrow:before { width: 25px; opacity: .8; }
h1, h2, h3, .board-title, .section-heading h2 {
  font-family: var(--v2-display);
}
.section-heading {
  position: relative;
  align-items: end;
  margin: 54px 0 19px;
  padding-top: 2px;
}
.section-heading:before {
  content: "";
  position: absolute;
  top: -19px;
  left: 0;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--v2-cyan), transparent);
}
.section-heading h2 {
  margin: 10px 0 0;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -.05em;
}
.section-heading p { color: #9eafc1; line-height: 1.7; }
.pill {
  border-color: rgba(145,171,199,.2);
  background: rgba(255,255,255,.035);
  color: #aebdcd;
  font-family: var(--v2-mono);
  font-size: .61rem;
  letter-spacing: .06em;
}

/* Dashboard hero: large typographic entry paired with a technical arena panel. */
.page-dashboard .hero {
  gap: clamp(32px, 5.4vw, 86px);
  margin-bottom: 43px;
}
.page-dashboard .hero-copy { padding: 13px 0; }
.page-dashboard .hero h1 {
  max-width: 850px;
  margin: 22px 0 20px;
  font-size: clamp(3.5rem, 7vw, 6.6rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.082em;
}
.page-dashboard .hero h1 em {
  background: linear-gradient(105deg, #74e4e9 0%, #91acff 58%, #b6a9ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}
.page-dashboard .lede {
  max-width: 680px;
  color: #a9bac9;
  font-size: .96rem;
  line-height: 1.92;
}
.hero-actions { gap: 11px; margin-top: 27px; }
.primary-action, .secondary-action {
  min-height: 46px;
  padding: 12px 17px;
  border-radius: 10px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .012em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.primary-action {
  border-color: rgba(114,224,231,.47);
  background: linear-gradient(112deg, #176c7d, #3e64a5);
  color: #f5fcff;
  box-shadow: 0 10px 29px rgba(31,117,145,.2);
}
.primary-action:hover {
  transform: translateY(-2px);
  background: linear-gradient(112deg, #218195, #4c74b8);
  box-shadow: 0 14px 34px rgba(31,117,145,.27);
}
.secondary-action {
  border-color: rgba(145,171,199,.23);
  background: rgba(255,255,255,.035);
  color: #c5d2df;
}
.secondary-action:hover {
  border-color: rgba(114,224,231,.38);
  background: rgba(114,224,231,.06);
}
.page-dashboard .hero-note {
  min-height: 295px;
  border-color: rgba(123,161,194,.31);
  border-radius: 24px;
  background:
    radial-gradient(circle at 83% 34%, rgba(65,177,201,.14), transparent 43%),
    linear-gradient(145deg, rgba(23,43,65,.97), rgba(10,20,34,.98) 67%);
  box-shadow: 0 27px 78px rgba(0,0,0,.33), inset 0 1px 0 rgba(255,255,255,.055);
}
.arena-panel-content { min-height: 295px; padding: 31px; }
.hero-note .note-label { color: #7be3e9; font-size: .6rem; letter-spacing: .19em; }
.refresh-indicator { color: #a2b5c6; font-size: .51rem; letter-spacing: .1em; }
.refresh-indicator i { box-shadow: 0 0 13px rgba(86,211,187,.52); }
.hero-note strong {
  margin-top: 27px;
  font-family: var(--v2-display);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -.045em;
}
.hero-note p { max-width: 350px; color: #aabaca; font-size: .78rem; line-height: 1.85; }
.arena-panel-foot {
  gap: 21px;
  margin-top: 25px;
  padding-top: 16px;
  color: #91aabd;
  font-size: .53rem;
  letter-spacing: .2em;
}

/* Overview metrics and cards have different visual accents, not one generic tile. */
.page-dashboard .stats {
  gap: 14px;
  margin: 31px 0 31px;
}
.page-dashboard .stat {
  min-height: 112px;
  padding: 22px 23px;
  border-color: rgba(130,160,190,.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(24,43,63,.83), rgba(12,23,38,.88)),
    var(--v2-panel);
  box-shadow: 0 14px 37px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.03);
}
.page-dashboard .stat:after {
  width: 112px;
  height: 2px;
  background: linear-gradient(90deg, var(--v2-cyan), rgba(139,168,255,.5), transparent);
}
.page-dashboard .stat-label { color: #9dafc1; font-size: .69rem; letter-spacing: .045em; }
.page-dashboard .stat-value {
  margin-top: 12px;
  color: #f3f8fc;
  font-size: 2rem;
  font-weight: 600;
}
.dashboard-grid { gap: 14px; margin-bottom: 34px; }
.dashboard-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 215px;
  padding: 23px;
  border-color: rgba(131,161,190,.21);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(19,37,57,.92), rgba(10,21,36,.95));
  box-shadow: 0 17px 44px rgba(0,0,0,.17), inset 0 1px 0 rgba(255,255,255,.03);
}
.dashboard-card:after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -56px;
  bottom: -92px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(114,224,231,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 23px rgba(114,224,231,.018), 0 0 0 48px rgba(114,224,231,.012);
  pointer-events: none;
}
.season-card { border-top: 2px solid rgba(114,224,231,.55); }
.latest-card { border-top: 2px solid rgba(139,168,255,.58); }
.leaders-card { border-top: 2px solid rgba(234,194,127,.58); }
.season-card:after { border-color: rgba(114,224,231,.14); }
.latest-card:after { border-color: rgba(139,168,255,.14); }
.leaders-card:after { border-color: rgba(234,194,127,.14); }
.dashboard-card h2 {
  margin: 18px 0 8px;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -.045em;
}
.dashboard-sub { color: #a2b3c3; font-size: .73rem; line-height: 1.75; }
.info-kicker { font-size: .58rem; font-weight: 600; letter-spacing: .18em; }
.dashboard-status { padding: 5px 9px; border-color: rgba(114,224,231,.22); background: rgba(114,224,231,.06); }
.dashboard-link { color: #7be1e7; font-size: .7rem; letter-spacing: .02em; }
.progress-track { height: 7px; border-color: rgba(131,160,190,.16); background: #08111d; }
.progress-track span { background: linear-gradient(90deg, #5ed8df, #7f9fff 70%, #a69aff); }
.progress-caption { color: #91a7b9; font-size: .61rem; }
.leader-entry { padding: 12px 0; border-color: rgba(144,177,204,.1); }
.leader-entry a { color: #edf5fa; font-size: .78rem; }
.leader-entry strong { color: #e8c17f; font-size: .72rem; }

/* Head-to-head compare: two distinct identities and a clear result surface. */
.compare-section {
  position: relative;
  margin: 53px 0 48px;
  padding: 29px;
  border: 1px solid rgba(130,160,190,.2);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 8% 100%, rgba(65,197,203,.06), transparent 45%),
    linear-gradient(145deg, rgba(17,29,46,.92), rgba(10,18,31,.95));
  box-shadow: 0 20px 58px rgba(0,0,0,.18);
}
.compare-section .section-heading { margin: 0 0 22px; }
.compare-section .section-heading:before { display: none; }
.compare-section .section-heading h2 { font-size: 1.6rem; }
.compare-heading p { margin: 6px 0 0; color: #9eafc1; font-size: .77rem; }
.compare-pickers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 15px;
}
.compare-picker {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(130,160,190,.18);
  border-radius: 14px;
  background: rgba(5,12,22,.52);
}
.compare-picker:first-child { border-top: 2px solid rgba(92,215,221,.55); }
.compare-picker:last-child { border-top: 2px solid rgba(148,143,255,.58); }
.compare-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  color: #c9d6e1;
  font-size: .72rem;
  font-weight: 750;
}
.compare-letter, .compare-empty-mark {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(114,224,231,.25);
  border-radius: 8px;
  background: rgba(114,224,231,.08);
  color: #8ce5e9;
  font-family: var(--v2-mono);
  font-size: .7rem;
}
.letter-b { border-color: rgba(148,143,255,.3); background: rgba(148,143,255,.09); color: #bcb4ff; }
.compare-input {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid rgba(132,160,190,.25);
  border-radius: 9px;
  outline: none;
  background: #091421;
  color: var(--v2-text);
  font: inherit;
  font-size: .78rem;
}
.compare-input:focus { border-color: var(--v2-cyan); box-shadow: 0 0 0 3px rgba(114,224,231,.09); }
.compare-suggestions {
  max-height: 205px;
  margin-top: 7px;
  overflow: auto;
  border: 1px solid rgba(132,160,190,.12);
  border-radius: 9px;
  background: rgba(255,255,255,.018);
}
.compare-suggestions p { padding: 8px 10px; color: var(--v2-muted); font-size: .7rem; }
.compare-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid rgba(132,160,190,.09);
  background: transparent;
  color: #dce7ef;
  cursor: pointer;
  text-align: left;
  font-size: .7rem;
}
.compare-option:hover, .compare-option[aria-selected="true"] { background: rgba(114,224,231,.07); }
.compare-picked {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px dashed rgba(132,160,190,.24);
  border-radius: 9px;
  color: #94aabd;
  font-size: .71rem;
}
.compare-results {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(132,160,190,.17);
  border-radius: 14px;
  background: rgba(5,12,22,.44);
}
.compare-summary { border-color: rgba(132,160,190,.15); }
.compare-summary-label { color: var(--v2-cyan); }
.compare-summary strong { font-family: var(--v2-display); font-size: 1.15rem; }
.compare-metric-head strong { color: #c6d3df; }
.compare-track { background: rgba(255,255,255,.07); }
.fill-a { background: linear-gradient(90deg, #35b9c8, #78e2e7); }
.fill-b { background: linear-gradient(90deg, #737de3, #aaa1ff); }

/* Standings: the primary data table reads like a sports analytics product. */
.board {
  border-color: rgba(130,160,190,.24);
  border-radius: 20px;
  background: rgba(9,17,29,.96);
  box-shadow: 0 27px 78px rgba(0,0,0,.27), inset 0 1px 0 rgba(255,255,255,.025);
}
.board-head {
  padding: 26px 27px 21px;
  border-color: rgba(130,160,190,.18);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(114,224,231,.07), transparent 44%),
    rgba(255,255,255,.008);
}
.board-title { font-size: 1.58rem; font-weight: 650; letter-spacing: -.055em; }
.board-sub { color: #9cacc0; font-size: .76rem; }
#result-count { flex: 0 0 auto; }
.controls {
  gap: 10px;
  padding: 16px 21px;
  border-color: rgba(130,160,190,.16);
  background: rgba(255,255,255,.018);
}
.segmented {
  gap: 4px;
  padding: 4px;
  border-color: rgba(132,160,190,.23);
  border-radius: 10px;
  background: #081321;
}
.segmented button, .filter-button {
  min-height: 38px;
  border-radius: 8px;
  font-size: .73rem;
}
.segmented button.active { background: linear-gradient(110deg, #1f7b8b, #4b6db0); }
.search input, .select-input {
  min-height: 42px;
  padding: 9px 12px;
  border-color: rgba(132,160,190,.24);
  border-radius: 9px;
  background: #091523;
  color: #f2f7fb;
  font-size: .76rem;
}
.search input:focus, .select-input:focus {
  border-color: var(--v2-cyan);
  box-shadow: 0 0 0 3px rgba(114,224,231,.09);
}
.select-input { cursor: pointer; }
.filter-button {
  padding: 9px 13px;
  border: 1px solid rgba(132,160,190,.24);
  background: rgba(255,255,255,.025);
  color: #c5d3df;
}
.filter-button:hover { border-color: rgba(114,224,231,.4); background: rgba(114,224,231,.06); }
.table-scroll { max-height: none; }
table { min-width: 690px; }
thead { background: #15243a; }
th {
  padding: 14px 18px;
  color: #8fa7bd;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .14em;
}
td {
  padding: 14px 18px;
  border-color: rgba(144,177,204,.085);
  color: #dce6ee;
  font-size: .8rem;
}
tbody tr { transition: background .15s ease, box-shadow .15s ease; }
tbody tr:hover { background: rgba(114,224,231,.06); }
tbody tr:nth-child(-n+3) { background: rgba(234,194,127,.035); }
tbody tr:nth-child(-n+3):hover { background: rgba(234,194,127,.075); }
.rank { color: #879bb0; font-size: .74rem; }
.rank.top { color: var(--v2-gold); }
.entity { gap: 11px; }
.entity span:last-child { line-height: 1.4; }
.mini-mark {
  width: 31px;
  height: 31px;
  flex-basis: 31px;
  border-color: rgba(114,224,231,.23);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(114,224,231,.12), rgba(139,168,255,.1));
  color: #86e5e9;
}
.points { color: #f1f6fa; font-size: .8rem; }
.secondary { color: #92a6ba; }
.empty { color: #9aadc0; }
.pagination, .board-foot {
  padding: 14px 21px;
  border-color: rgba(130,160,190,.17);
  background: rgba(255,255,255,.014);
}
.pagination-summary, .page-indicator { color: #91a6ba; }
.page-button {
  min-height: 36px;
  padding: 8px 12px;
  border-color: rgba(132,160,190,.24);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: #d2dde7;
}
.page-button:hover:not(:disabled) { border-color: rgba(114,224,231,.42); background: rgba(114,224,231,.06); }
.page-button:disabled { opacity: .35; }
#updated-label, #filter-label { color: #8ea3b7; }

/* Battle history: archive rows become a distinct timeline. */
.page-dashboard #battle-history.section-heading { margin-top: 57px; }
.history-panel {
  border-color: rgba(130,160,190,.21);
  border-radius: 17px;
  background: rgba(10,19,32,.84);
}
.history-panel .controls { padding: 13px 17px; }
.history-row {
  position: relative;
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 20px;
  padding: 17px 20px;
  border-color: rgba(144,177,204,.085);
}
.history-row:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: transparent;
  transition: background .15s ease;
}
.history-row:hover:before { background: var(--v2-cyan); }
.history-name { color: #edf4fa; font-size: .82rem; }
.history-date { color: #91a6ba; }
.history-meta { color: #a9b8c8; font-size: .66rem; }
.history-link { color: #7ce1e8; font-size: .7rem; letter-spacing: .02em; }
.history-link:hover { color: #c3f3f4; }

/* Competitor detail modal: better separation between score, records and form. */
.modal-backdrop { background: rgba(2,6,12,.84); backdrop-filter: blur(10px); }
.modal {
  width: min(790px, 100%);
  padding: 31px;
  border-color: rgba(132,166,198,.31);
  border-radius: 21px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(114,224,231,.075), transparent 47%),
    #101a2a;
  box-shadow: 0 32px 110px rgba(0,0,0,.56);
}
.modal h2 { font-family: var(--v2-display); font-size: 1.9rem; font-weight: 650; }
.modal-points { color: #7fe0e7; font-size: .76rem; }
.modal-close {
  border-color: rgba(132,160,190,.24);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
}
.detail-item {
  border-color: rgba(132,160,190,.18);
  border-radius: 11px;
  background: rgba(255,255,255,.026);
}
.detail-item span { color: #95aabe; }
.detail-item strong { color: #eef5fa; }
.profile-link { border-color: rgba(114,224,231,.25); background: rgba(114,224,231,.065); color: #7fe0e7; }
.modal-section-heading h3, .modal-history h3 { font-family: var(--v2-display); }
.form-chart { border-color: rgba(132,160,190,.15); border-radius: 12px; background: rgba(255,255,255,.018); }
.form-bar-wrap { background: rgba(255,255,255,.035); }
.form-bar-wrap i { background: linear-gradient(180deg, #75e0e6, #607dcc); }
.modal-history li { border-color: rgba(132,160,190,.14); }

/* Hall of Fame: a ceremonial archive with restrained metallic accents. */
.page-hall-of-fame {
  --v2-cyan: #e5c17f;
  --v2-gold: #f0cf91;
  background:
    radial-gradient(ellipse at 49% 0%, rgba(177,132,65,.15), transparent 39rem),
    radial-gradient(ellipse at 4% 24%, rgba(79,120,148,.07), transparent 30rem),
    linear-gradient(145deg, #090b10 0%, #11151d 54%, #0a0d14 100%);
}
.page-hall-of-fame:before {
  opacity: .13;
  background-image:
    linear-gradient(rgba(229,197,143,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229,197,143,.045) 1px, transparent 1px);
}
.page-hall-of-fame .masthead {
  border-color: rgba(195,160,103,.22);
  background: rgba(13,15,21,.88);
}
.page-hall-of-fame .brand-emblem {
  border-color: rgba(221,185,119,.31);
  background: radial-gradient(circle at 45% 38%, rgba(232,189,116,.17), transparent 68%), linear-gradient(145deg,#332b20,#17171a);
  box-shadow: 0 0 27px rgba(220,174,98,.1), inset 0 1px 0 rgba(255,255,255,.07);
}
.page-hall-of-fame .nav-link.active {
  border-color: rgba(232,189,116,.28);
  background: linear-gradient(110deg, rgba(151,111,52,.24), rgba(114,89,53,.17));
}
.page-hall-of-fame .eyebrow { color: #dcb978; }
.page-hall-of-fame .hof-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 34px 0 25px;
  padding: clamp(34px, 5vw, 66px);
  border-color: rgba(205,166,101,.32);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 81% 38%, rgba(211,169,98,.17), transparent 38%),
    linear-gradient(125deg, rgba(47,39,27,.96), rgba(22,24,30,.98) 61%, rgba(15,19,28,.99));
  box-shadow: 0 28px 82px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05);
}
.page-hall-of-fame .hof-hero:before {
  content: "THE ARCHIVE OF EXCELLENCE";
  position: absolute;
  top: 24px;
  right: 28px;
  color: rgba(231,198,139,.46);
  font-family: var(--v2-mono);
  font-size: .53rem;
  letter-spacing: .19em;
}
.page-hall-of-fame .hof-hero h1 {
  max-width: 850px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.1rem, 8.5vw, 7.5rem);
  font-weight: 600;
  line-height: .82;
  letter-spacing: -.05em;
}
.page-hall-of-fame .hof-hero h1 em {
  background: linear-gradient(100deg, #f2dfb5, #d4a45b 58%, #f3e3c2);
  background-clip: text;
  -webkit-background-clip: text;
}
.page-hall-of-fame .hof-hero p { max-width: 710px; color: #c1b8a7; line-height: 1.9; }
.page-hall-of-fame .hof-stats { gap: 13px; margin: 23px 0 47px; }
.page-hall-of-fame .hof-stat {
  position: relative;
  overflow: hidden;
  padding: 21px;
  border-color: rgba(199,164,108,.24);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(44,38,29,.85), rgba(20,23,29,.93));
  box-shadow: 0 14px 38px rgba(0,0,0,.18);
}
.page-hall-of-fame .hof-stat:after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -33px;
  width: 105px;
  height: 105px;
  border: 1px solid rgba(232,189,116,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 15px rgba(232,189,116,.02);
}
.page-hall-of-fame .hof-stat strong {
  color: #f0dfc0;
  font-family: var(--v2-display);
  font-size: 1.9rem;
  font-weight: 600;
}
.page-hall-of-fame .hof-section { margin: 48px 0; }
.page-hall-of-fame .hof-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.page-hall-of-fame .hof-section-head h2 {
  margin: 9px 0 4px;
  font-family: var(--v2-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -.05em;
}
.page-hall-of-fame .hof-section-head p { margin: 0; color: #aa9f8c; font-size: .76rem; line-height: 1.7; }
.page-hall-of-fame .record-groups { gap: 14px; }
.page-hall-of-fame .record-group,
.page-hall-of-fame .season-card {
  border-color: rgba(192,158,104,.23);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(36,33,28,.92), rgba(17,21,29,.96));
  box-shadow: 0 17px 44px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.025);
}
.page-hall-of-fame .record-group h3,
.page-hall-of-fame .season-head h3 { color: #f0e4cf; font-family: var(--v2-display); }
.page-hall-of-fame .record-card { border-color: rgba(197,170,128,.12); }
.page-hall-of-fame .record-card a { color: #f0e6d5; }
.page-hall-of-fame .record-card a:hover { color: #f0cb88; }
.page-hall-of-fame .record-card strong,
.page-hall-of-fame .leader-points,
.page-hall-of-fame .podium-row strong { color: #edc982; }
.page-hall-of-fame .leader-panel {
  border-color: rgba(192,158,104,.23);
  border-radius: 16px;
  background: rgba(20,22,28,.93);
}
.page-hall-of-fame .leader-panel-head { border-color: rgba(197,170,128,.15); }
.page-hall-of-fame .leader-name { color: #eee5d5; }
.page-hall-of-fame .leader-name:hover { color: #f0cb88; }
.page-hall-of-fame .season-state.final {
  border-color: rgba(232,189,116,.35);
  background: rgba(232,189,116,.09);
  color: #e9c887;
}
.page-hall-of-fame .podium-panel {
  border-color: rgba(197,170,128,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.022);
}
.page-hall-of-fame .podium-row { border-color: rgba(197,170,128,.12); }
.page-hall-of-fame .podium-row a { color: #eee5d5; }
.page-hall-of-fame .podium-row a:hover { color: #f0cb88; }
.page-hall-of-fame .hof-footer {
  margin-top: 40px;
  padding-top: 19px;
  border-color: rgba(192,158,104,.18);
  color: #a79c8a;
}

/* Competitor profiles: identity first, data second, history as a browsable archive. */
.page-profile .profile-hero {
  position: relative;
  gap: 26px;
  margin: 13px 0 29px;
  padding: clamp(23px, 3.5vw, 37px);
  border: 1px solid rgba(114,224,231,.18);
  border-radius: 21px;
  background:
    radial-gradient(ellipse at 5% 0%, rgba(114,224,231,.07), transparent 42%),
    linear-gradient(145deg, rgba(17,33,51,.87), rgba(9,18,31,.94));
  box-shadow: 0 22px 63px rgba(0,0,0,.2);
}
.page-profile .profile-hero h1 {
  font-family: var(--v2-display);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -.075em;
}
.page-profile .profile-hero .lede { color: #a9bac9; font-size: .9rem; line-height: 1.85; }
.page-profile .profile-identity-card {
  align-self: stretch;
  border-color: rgba(114,224,231,.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(114,224,231,.1), transparent 52%),
    linear-gradient(145deg, rgba(24,44,63,.94), rgba(10,20,34,.98));
}
.page-profile .profile-identity-card>strong {
  color: #f5f8fb;
  font-family: var(--v2-display);
  font-size: 2.55rem;
}
.page-profile .profile-stats { gap: 12px; margin: 25px 0 39px; }
.page-profile .profile-stat {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-color: rgba(130,160,190,.2);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(22,40,60,.78), rgba(11,21,35,.87));
}
.page-profile .profile-stat:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, var(--v2-cyan), transparent);
}
.page-profile .profile-stat span { color: #a4b5c4; font-size: .68rem; letter-spacing: .035em; }
.page-profile .profile-stat strong { color: #f1f7fb; font-size: 1.8rem; font-weight: 600; }
.page-profile .profile-stat small { color: #8298ac; font-size: .63rem; line-height: 1.5; }
.page-profile .profile-section { margin: 43px 0; }
.page-profile .profile-section-heading { margin-bottom: 17px; }
.page-profile .profile-section-heading h2 {
  font-family: var(--v2-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -.05em;
}
.page-profile .profile-section-note { color: #91a7ba; font-size: .59rem; letter-spacing: .06em; }
.page-profile .profile-record-grid { gap: 12px; }
.page-profile .profile-record {
  padding: 18px;
  border-color: rgba(130,160,190,.18);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(17,31,48,.87), rgba(10,19,32,.94));
}
.page-profile .profile-record strong { color: #8ce3e8; font-size: 1.15rem; }
.page-profile .profile-record span { color: #9badbf; }
.page-profile .profile-panel {
  border-color: rgba(130,160,190,.2);
  border-radius: 17px;
  background: rgba(9,18,31,.86);
  box-shadow: 0 20px 57px rgba(0,0,0,.2);
}
.page-profile .profile-chart { min-height: 205px; padding: 25px 21px 10px; }
.page-profile .chart-bar-track { height: 135px; border-color: rgba(144,165,200,.18); }
.page-profile .chart-bar { background: linear-gradient(180deg, #79e4e8, #6687db); }
.page-profile .chart-legend { border-color: rgba(144,165,200,.12); color: #94a8bb; }
.page-profile .history-controls {
  gap: 11px;
  border-color: rgba(130,160,190,.16);
  background: rgba(255,255,255,.015);
}
.page-profile .history-control,
.page-profile .history-search { color: #a1b3c3; }
.page-profile .history-summary { color: #90a6ba; }
.page-profile .profile-history-table th { background: #15243a; color: #91a8bd; }
.page-profile .profile-history-table td { border-color: rgba(144,177,204,.09); }
.page-profile .profile-history-table tbody tr:hover { background: rgba(114,224,231,.05); }
.page-profile .profile-history-table a { color: #7ce1e8; }
.page-profile .history-pagination { border-color: rgba(130,160,190,.16); }
.page-profile .profile-footer { margin-top: 46px; color: #8da1b5; }

/* Information: editorial structure with a visible methodology hierarchy. */
.page-information .info-hero {
  max-width: 960px;
  margin: 40px 0 39px;
  padding: 10px 0 29px;
  border-bottom: 1px solid rgba(137,164,190,.18);
}
.page-information .info-hero h1 {
  font-family: var(--v2-display);
  font-size: clamp(3.1rem, 6.5vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -.075em;
}
.page-information .info-hero p { max-width: 790px; color: #a9b9c8; line-height: 1.95; }
.page-information .info-grid {
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 14px;
}
.page-information .info-card {
  grid-column: span 6;
  position: relative;
  overflow: hidden;
  min-height: 225px;
  padding: 26px 27px;
  border-color: rgba(130,158,187,.19);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17,32,49,.89), rgba(10,19,32,.94));
  box-shadow: 0 14px 38px rgba(0,0,0,.13);
}
.page-information .info-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 76px;
  height: 2px;
  background: linear-gradient(90deg, var(--v2-cyan), transparent);
}
.page-information .info-card:nth-child(2):before { background: linear-gradient(90deg, var(--v2-blue), transparent); }
.page-information .info-card:nth-child(3):before { background: linear-gradient(90deg, #b7a5ff, transparent); }
.page-information .info-card:nth-child(4):before { background: linear-gradient(90deg, #d4bb84, transparent); }
.page-information .info-card:nth-child(5):before { background: linear-gradient(90deg, #7ebca7, transparent); }
.page-information .info-card.info-wide { grid-column: 1/-1; min-height: 0; }
.page-information .info-card h2 {
  font-family: var(--v2-display);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -.045em;
}
.page-information .info-card p,
.page-information .info-card li { color: #aab9c8; font-size: .82rem; line-height: 1.9; }
.page-information .info-kicker { color: #7edce5; font-size: .57rem; letter-spacing: .18em; }
.page-information .period-list { gap: 11px; }
.page-information .period-item {
  padding: 16px;
  border-color: rgba(130,158,187,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.page-information .period-item strong { font-family: var(--v2-display); color: #edf5fa; }
.page-information .period-item span { color: #99afc0; font-size: .7rem; line-height: 1.7; }
.page-information .info-callout {
  border-left-width: 3px;
  border-left-color: #6fdde4;
  border-radius: 0 12px 12px 0;
  background: rgba(114,224,231,.055);
  color: #b7c7d2;
}
.page-information .info-callout strong { color: #f2f7fa; }
.page-information .info-card a, .page-information .info-footer a { color: #80e0e7; }
.page-information .info-footer {
  margin-top: 37px;
  padding-top: 20px;
  border-color: rgba(130,158,187,.18);
  color: #8da2b6;
}

/* Footer, loading, empty and error states are treated as first-class UI. */
footer {
  gap: 13px 24px;
  margin-top: 37px;
  padding-top: 19px;
  border-top: 1px solid rgba(130,158,187,.17);
  color: #899db1;
  font-size: .68rem;
  line-height: 1.8;
}
footer a { color: #c4d3df; text-decoration-color: rgba(189,201,223,.35); }
.empty, .empty-state, .loading-state, .profile-loading, .profile-empty {
  line-height: 1.8;
}
.hidden { display: none !important; }

@media (max-width: 1120px) {
  .masthead { gap: 13px; }
  .brand { min-width: 0; }
  .mast-actions { gap: 3px 5px; }
  .nav-link { padding-inline: 8px; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .leaders-card { grid-column: 1/-1; }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 30px; }
  .shell { width: calc(100% - 34px); padding-top: 17px; }
  .masthead {
    position: relative;
    top: auto;
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: 0;
    margin-bottom: 37px;
    padding: 10px 13px;
  }
  .brand { min-width: 0; }
  .brand-emblem { flex-basis: 65px; width: 65px; height: 65px; }
  .brand-logo { width: 57px; height: 57px; }
  .brand-copy strong { font-size: .87rem; }
  .brand-copy small { font-size: .51rem; }
  .mast-actions {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 5px 8px;
    margin: 2px 0 0 78px;
  }
  .nav-link { min-height: 32px; padding: 7px 8px; font-size: .68rem; }
  .status-pill { display: none; }
  .page-dashboard .hero { grid-template-columns: 1fr; gap: 22px; }
  .page-dashboard .hero h1 { font-size: clamp(3.3rem, 10vw, 5.2rem); }
  .page-dashboard .hero-note { min-height: 235px; }
  .arena-panel-content { min-height: 235px; }
  .compare-section { padding: 22px; }
  .compare-pickers { gap: 11px; }
  .page-information .info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-information .info-card { grid-column: auto; }
  .page-information .info-card.info-wide { grid-column: 1/-1; }
  .page-profile .profile-hero { grid-template-columns: 1fr; }
  .page-profile .profile-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 26px); }
  .masthead { border-radius: 15px; }
  .brand { align-self: flex-start; gap: 10px; }
  .brand-emblem { flex-basis: 59px; width: 59px; height: 59px; border-radius: 14px; }
  .brand-logo { width: 52px; height: 52px; }
  .brand-copy strong { font-size: .77rem; letter-spacing: .07em; }
  .brand-copy small { font-size: .47rem; letter-spacing: .14em; }
  .mast-actions { margin: 3px 0 0; gap: 3px 5px; }
  .nav-link { padding: 6px 7px; font-size: .62rem; }
  .nav-link.upcoming { display: none; }
  .page-dashboard .hero h1 { font-size: 3.05rem; }
  .page-dashboard .hero-actions { gap: 8px; }
  .primary-action, .secondary-action { min-height: 42px; padding: 10px 12px; font-size: .68rem; }
  .page-dashboard .hero-note { border-radius: 18px; }
  .arena-panel-content { padding: 21px 19px; }
  .arena-panel-top { align-items: flex-start; }
  .refresh-indicator { font-size: .46rem; }
  .page-dashboard .stats { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .page-dashboard .stat { min-height: 92px; padding: 13px 10px; }
  .page-dashboard .stat-label { font-size: .58rem; }
  .page-dashboard .stat-value { font-size: 1.12rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .leaders-card { grid-column: auto; }
  .compare-section { margin: 39px 0; padding: 17px; border-radius: 17px; }
  .compare-pickers { grid-template-columns: 1fr; }
  .compare-picker { padding: 14px; }
  .compare-results { padding: 14px; }
  .compare-metrics { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .section-heading h2 { font-size: 1.32rem; }
  .board-head { align-items: flex-start; padding: 20px 16px 16px; }
  .board-title { font-size: 1.27rem; }
  .controls { padding: 12px; }
  .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; }
  table { min-width: 650px; }
  th, td { padding: 12px 10px; }
  .optional-col { display: none; }
  .pagination, .board-foot { padding: 12px 14px; }
  .pagination { align-items: flex-start; }
  .pagination-actions { width: 100%; justify-content: space-between; gap: 6px; }
  .page-button { padding: 8px; }
  .page-indicator { font-size: .6rem; }
  .history-row { grid-template-columns: minmax(0,1fr) auto; padding: 14px; }
  .history-meta { display: none; }
  .page-hall-of-fame .hof-hero { margin-top: 24px; padding: 31px 22px; border-radius: 20px; }
  .page-hall-of-fame .hof-hero:before { top: 15px; right: 15px; font-size: .42rem; }
  .page-hall-of-fame .hof-hero h1 { font-size: clamp(3.7rem, 15vw, 5.4rem); }
  .page-hall-of-fame .hof-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .page-hall-of-fame .hof-stat { padding: 15px; }
  .page-hall-of-fame .hof-section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .page-hall-of-fame .season-podiums { grid-template-columns: 1fr; }
  .page-information .info-hero { margin-top: 24px; }
  .page-information .info-hero h1 { font-size: 3rem; }
  .page-information .info-grid { grid-template-columns: 1fr; }
  .page-information .info-card,
  .page-information .info-card.info-wide { grid-column: 1/-1; min-height: 0; padding: 20px; }
  .page-information .period-list { grid-template-columns: 1fr; }
  .page-profile .profile-hero { padding: 21px 17px; }
  .page-profile .profile-hero h1 { font-size: 2.85rem; }
  .page-profile .profile-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .page-profile .profile-stat { padding: 14px 12px; }
  .page-profile .profile-stat strong { font-size: 1.25rem; }
  .page-profile .profile-record-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-profile .profile-record { padding: 13px; }
  .page-profile .profile-record strong { font-size: .98rem; }
  .page-profile .profile-section-heading { align-items: flex-start; flex-direction: column; }
  .page-profile .profile-section-note { text-align: left; }
  .page-profile .history-controls { align-items: stretch; flex-direction: column; }
  .page-profile .history-control, .page-profile .history-search { min-width: 0; }
  .page-profile .history-pagination { align-items: flex-start; flex-direction: column; }
  .page-profile .profile-history-table th, .page-profile .profile-history-table td { padding: 11px 10px; }
  footer { gap: 10px; flex-direction: column; }
  .modal { padding: 23px 17px; }
  .modal h2 { font-size: 1.5rem; }
  .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
