:root {
  --bg-base: #080a0f;
  --bg-panel: #111520;
  --bg-panel-elevated: #171d2c;
  --bg-hover: #1d2438;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-primary: #f3f5f9;
  --text-secondary: #9aa4b8;
  --text-muted: #68738a;

  --gold: #d4af37;
  --gold-bright: #f5d061;
  --gold-soft: rgba(212, 175, 55, 0.15);
  --crimson: #e11d48;
  --crimson-soft: rgba(225, 29, 72, 0.16);
  --cyan: #38bdf8;
  --cyan-soft: rgba(56, 189, 248, 0.16);
  --green: #22c55e;
  --silver: #cbd5e1;
  --bronze: #cd7f32;

  --font-display: 'Oswald', sans-serif;
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 0%, rgba(225, 29, 72, 0.13), transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(212, 175, 55, 0.11), transparent 38%);
  z-index: 0;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header / Hero */
.hero {
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(17, 21, 32, 0.92), rgba(8, 10, 15, 0.85));
  padding: 28px 0 24px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-main-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-solo-note {
  max-width: 400px;
  margin: 2px 0 0 auto;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid rgba(56, 189, 248, 0.55);
  border-radius: 8px;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

@media (max-width: 960px) {
  .hero-solo-note {
    max-width: 100%;
    margin-left: 0;
  }
}

.hero-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-utilities {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 10px var(--crimson);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--gold-bright), var(--crimson));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.hero-subtitle strong {
  color: var(--text-primary);
}

.hero-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.rule-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.rule-pill span {
  font-family: var(--font-mono);
  color: var(--gold);
  font-weight: 700;
  margin-right: 4px;
}

.policy-btn {
  background: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.policy-btn:hover {
  background: rgba(212, 175, 55, 0.25);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 4px 5px 4px 14px;
  gap: 5px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.lang-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-right: 4px;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

.lang-icon {
  color: var(--gold-bright);
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #0b0d12;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.policy-drawer {
  margin-top: 16px;
}

.policy-card {
  background: var(--bg-panel-elevated);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.policy-card h3 {
  font-size: 0.9rem;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.policy-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.rubric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 8px 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.rubric-grid strong {
  color: var(--text-primary);
}

.hidden {
  display: none !important;
}

/* Main Content */
.main-content {
  padding-top: 28px;
  padding-bottom: 48px;
}

.section-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-header-inline h2,
.panel-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.weight-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
}

.weight-badge.custom {
  border-color: var(--crimson);
  background: var(--crimson-soft);
  color: #fda4af;
}

/* Top 3 Podium */
.podium-section {
  margin-bottom: 24px;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.model-switch {
  display: inline-flex;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.model-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.model-btn.active {
  background: linear-gradient(90deg, var(--gold), #b8860b);
  color: #0b0d12;
}

.depth-toggle {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.depth-toggle.active {
  background: var(--crimson-soft);
  border-color: var(--crimson);
  color: #fda4af;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 16px;
}

.podium-sub-metrics {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.podium-sub-metrics span strong {
  color: var(--gold-bright);
}

/* 2D Scatter Map */
.map-section {
  margin-bottom: 24px;
}

.map-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
}

.legend-dot.gold { background: var(--gold-bright); }
.legend-dot.cyan { background: var(--cyan); }
.legend-dot.crimson { background: var(--crimson); }
.legend-dot.muted { background: #64748b; }

.scatter-container {
  position: relative;
  height: 360px;
  width: 100%;
}

.score-sub-pair {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.podium-card {
  background: linear-gradient(145deg, var(--bg-panel-elevated), var(--bg-panel));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.podium-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.podium-card.rank-1 {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.08);
}

.podium-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.podium-rank {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.rank-1 .podium-rank { color: var(--gold-bright); }
.rank-2 .podium-rank { color: var(--silver); }
.rank-3 .podium-rank { color: var(--bronze); }

.podium-score {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.podium-score span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 2px;
}

.podium-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.podium-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.podium-mini-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.mini-stat {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 5px 4px;
  text-align: center;
}

.mini-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
}

.mini-stat-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
  gap: 22px;
  align-items: start;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-width: 0;
}

.side-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.panel-header.compact {
  margin-bottom: 14px;
}

.panel-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Tabs & Pager Controls */
.pager-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 3px;
}

.pager-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.pager-nav-btn:hover:not(:disabled) {
  background: var(--crimson);
  color: #fff;
}

.pager-nav-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.pager-range {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-bright);
  padding: 0 8px;
  white-space: nowrap;
}

.page-size-switch {
  display: inline-flex;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.page-size-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.page-size-btn:hover {
  color: var(--text-primary);
}

.page-size-btn.active {
  background: var(--gold-soft);
  color: var(--gold-bright);
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.filter-groups {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 540px;
}

.weight-filters,
.org-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.filter-row-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  min-width: 28px;
  user-select: none;
}

.org-filters .chip.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.55);
  color: #7dd3fc;
}

.search-context-banner {
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--text-secondary);
  font-size: 0.76rem;
}

.search-context-banner strong {
  color: var(--cyan);
}

.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.chip.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.active-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.active-filter-btn:hover {
  border-color: rgba(74, 222, 128, 0.55);
  color: var(--text-primary);
}

.active-filter-btn.active {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(74, 222, 128, 0.7);
  color: #4ade80;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.18);
}

.active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background-color 0.15s ease;
}

.active-filter-btn.active .active-dot {
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}

/* Virtual Matchup Box in Radar Comparison */
.matchup-box {
  margin-top: 14px;
  padding: 12px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.matchup-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.matchup-summary {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 9px;
}

.matchup-summary strong {
  color: var(--text-primary);
}

.matchup-gap-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 7px 9px;
  margin-bottom: 9px;
  border-radius: 8px;
  background: rgba(245, 208, 97, 0.08);
  border: 1px solid rgba(245, 208, 97, 0.24);
  font-size: 0.72rem;
}

.gap-tier-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(245, 208, 97, 0.18);
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.68rem;
}

.gap-odds {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.gap-odds strong {
  color: var(--gold-bright);
}

.gap-note {
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.matchup-edges {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 9px;
}

.matchup-edge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(8, 10, 15, 0.55);
  color: var(--text-secondary);
}

.matchup-even {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.matchup-weapons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.45;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.search-box input {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--text-primary);
  font-size: 0.82rem;
  width: 200px;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--gold);
}

/* Ranking Table */
.table-wrapper {
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.ranking-table th {
  text-align: left;
  padding: 10px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
  user-select: none;
}

.ranking-table th.col-num,
.ranking-table td.col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ranking-table th.sortable {
  cursor: pointer;
  transition: color 0.15s;
}

.ranking-table th.sortable:hover,
.ranking-table th.active-sort {
  color: var(--gold-bright);
}

.th-sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ranking-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.ranking-table tbody tr:hover {
  background-color: var(--bg-hover);
}

.ranking-table tbody tr.is-compared {
  background-color: rgba(212, 175, 55, 0.06);
}

.ranking-table tbody tr.is-search-hit {
  background-color: rgba(56, 189, 248, 0.12);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.ranking-table tbody tr.is-search-context {
  opacity: 0.72;
}

.ranking-table tbody tr.is-search-context:hover {
  opacity: 1;
}

.search-hit-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: middle;
}

.ranking-table td {
  padding: 11px 8px;
  vertical-align: middle;
}

.rank-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rank-cell.has-scope {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.rank-main-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rank-sub-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.rank-sub-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.rank-sub-tag.is-all {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-sub-tag.is-weight {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.rank-sub-tag.is-org {
  background: rgba(245, 184, 65, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(245, 184, 65, 0.28);
}

.podium-rank-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.podium-rank-wrap .rank-sub-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.rank-badge.r1 { background: linear-gradient(135deg, #f5d061, #b8860b); color: #0b0d12; }
.rank-badge.r2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #0b0d12; }
.rank-badge.r3 { background: linear-gradient(135deg, #e09f5a, #9a5b1a); color: #0b0d12; }

.rank-delta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.rank-delta.up { color: var(--green); }
.rank-delta.down { color: var(--crimson); }

.fighter-name-main {
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.career-record-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.fighter-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.org-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.total-score-val {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.score-bar-mini {
  width: 54px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-left: auto;
  margin-top: 4px;
  overflow: hidden;
}

.score-bar-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--crimson));
  border-radius: 999px;
}

.num-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.num-val.high {
  color: var(--text-primary);
  font-weight: 700;
}

.compare-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.compare-btn:hover {
  border-color: var(--gold);
  color: var(--text-primary);
}

.compare-btn.selected {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.page-info {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.page-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  max-width: 100%;
}

.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  user-select: none;
}

.page-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 4px 10px;
  min-width: 30px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .pagination-bar {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .page-buttons {
    justify-content: center;
    gap: 4px;
    width: 100%;
  }

  .page-btn {
    padding: 5px 8px;
    min-width: 28px;
    font-size: 0.72rem;
  }
}

.page-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0b0d12;
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Side Column */
.side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s;
}

.ghost-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.radar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.radar-mode-switch {
  display: inline-flex;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}

.radar-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.radar-mode-btn.active {
  background: var(--gold);
  color: #0b0d12;
}

.weapon-badge {
  display: inline-block;
  margin-top: 6px;
  margin-right: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--crimson-soft);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #fda4af;
  font-size: 0.75rem;
  font-weight: 700;
}

.weakness-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
}

.tier-pill {
  display: inline-block;
  min-width: 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
}

.tier-10 { background: rgba(245, 208, 97, 0.24); color: var(--gold-bright); border: 1px solid rgba(245, 208, 97, 0.35); }
.tier-9  { background: rgba(225, 29, 72, 0.24); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.32); }
.tier-8  { background: rgba(16, 185, 129, 0.20); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.28); }
.tier-7  { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.25); }
.tier-6  { background: rgba(148, 163, 184, 0.20); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.24); }
.tier-5  { background: rgba(100, 116, 139, 0.16); color: #94a3b8; border: 1px solid rgba(100, 116, 139, 0.22); }
.tier-low { background: rgba(234, 88, 12, 0.18); color: #fdba74; border: 1px solid rgba(251, 146, 60, 0.28); }

.derived-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: -6px;
  margin-bottom: 10px;
}

/* Radar Panel */
.selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 30px;
}

.fighter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-strong);
}

.chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.chip-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  padding-left: 2px;
}

.chip-remove:hover {
  color: var(--text-primary);
}

.chart-container {
  position: relative;
  height: 310px;
  width: 100%;
  margin-bottom: 14px;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

.compare-mini-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.compare-mini-table th,
.compare-mini-table td {
  padding: 6px 6px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: right;
  font-family: var(--font-mono);
}

.compare-mini-table th:first-child,
.compare-mini-table td:first-child {
  text-align: left;
  font-family: var(--font-sans);
  color: var(--text-secondary);
}

.compare-mini-table td.best-cell {
  color: var(--gold-bright);
  font-weight: 700;
}

/* Simulator Panel */
.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.preset-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.preset-btn.active {
  background: var(--crimson-soft);
  border-color: var(--crimson);
  color: #fda4af;
}

.sliders-container {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slider-label-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.slider-label-line span:first-child {
  color: var(--text-primary);
  font-weight: 600;
}

.slider-val {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gold-bright);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-bright);
  border: 2px solid var(--bg-base);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-content {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-panel-elevated);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.95rem;
}

.modal-close:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-right: 40px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.modal-rank-pill {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.modal-name {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
}

.modal-en {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.modal-score-box {
  text-align: right;
  flex-shrink: 0;
}

.modal-score-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-bright);
}

.modal-score-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.meta-item {
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
}

.meta-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.meta-value {
  font-size: 0.86rem;
  font-weight: 700;
}

.modal-section-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.modal-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-bar-row {
  display: grid;
  grid-template-columns: 185px 1fr 48px;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}

.bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--crimson));
  border-radius: 999px;
}

.bar-score-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: right;
  color: var(--text-primary);
}

.best-bout-card {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.1), rgba(212, 175, 55, 0.08));
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.best-bout-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.best-bout-opp {
  font-weight: 900;
  font-size: 1rem;
}

.best-bout-event {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-bright);
}

.best-bout-result {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fda4af;
  margin-bottom: 6px;
}

.best-bout-summary,
.analysis-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* Active Fighter & Prime Bouts Breakdown */
.active-tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ade80;
}

.active-fighter-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  font-family: var(--font-sans, "Noto Sans JP", sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #4ade80;
  vertical-align: middle;
}

.prime-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.prime-stat-card {
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prime-stat-label {
  font-size: 0.66rem;
  color: var(--text-muted);
}

.prime-stat-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.prime-stat-val.accent-gold { color: var(--gold-bright); }
.prime-stat-val.accent-ko { color: #fb7185; }
.prime-stat-val.accent-sub { color: #38bdf8; }

.prime-stat-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-secondary);
}

.finish-ratio-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}

.ratio-seg { height: 100%; }
.seg-ko { background: #e11d48; }
.seg-sub { background: #38bdf8; }
.seg-dec { background: #64748b; }

.finish-ratio-legend {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.legend-sq {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: middle;
}

.bouts-sub-heading {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 4px 0 6px;
}

.bouts-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-bottom: 20px;
  background: rgba(8, 10, 15, 0.5);
}

.bouts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.bouts-table th {
  text-align: left;
  padding: 7px 9px;
  font-size: 0.68rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.bouts-table td {
  padding: 7px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.bouts-table tbody tr:last-child td {
  border-bottom: none;
}

.bout-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.bout-res-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.bout-res-w { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.bout-res-l { background: rgba(225, 29, 72, 0.2); color: #fb7185; }
.bout-res-other { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }

.bout-opp {
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.bout-title-tag {
  margin-right: 4px;
  font-size: 0.72rem;
}

.bout-method-pill {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
}

.method-ko { background: rgba(225, 29, 72, 0.2); color: #fda4af; }
.method-sub { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }
.method-dec { background: rgba(100, 116, 139, 0.25); color: #cbd5e1; }

.bout-detail {
  color: var(--text-secondary);
  font-size: 0.72rem;
}

.bout-event {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Footer */
.glossary-section {
  margin-top: 24px;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.glossary-card {
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.glossary-card h3 {
  font-size: 0.9rem;
  color: var(--gold-bright);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.glossary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.glossary-list > div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 0.8rem;
}

.glossary-list dt {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  padding: 2px 7px;
  text-align: center;
  font-size: 0.74rem;
}

.glossary-list dd {
  color: var(--text-secondary);
  line-height: 1.55;
}

.glossary-list dd strong {
  color: var(--text-primary);
}

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer code {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* P4P Benchmark Tier Badges */
.fighter-benchmark-row {
  margin-top: 4px;
}

.podium-benchmark-row {
  margin-top: 6px;
}

.modal-benchmark-row {
  margin: 6px 0 4px;
  display: flex;
  justify-content: flex-end;
}

.p4p-benchmark-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.3;
  white-space: nowrap;
}

.p4p-benchmark-badge.is-podium {
  font-size: 0.7rem;
  padding: 2px 9px;
}

.p4p-benchmark-badge.is-modal {
  font-size: 0.76rem;
  padding: 3px 10px;
}

.p4p-benchmark-badge.bm-goat {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.24), rgba(212, 175, 55, 0.14));
  border-color: rgba(255, 215, 0, 0.65);
  color: #ffe36e;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.22);
}

.p4p-benchmark-badge.bm-hof {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(225, 29, 72, 0.12));
  border-color: rgba(251, 113, 133, 0.55);
  color: #fda4af;
}

.p4p-benchmark-badge.bm-ufc_top_champ {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
}

.p4p-benchmark-badge.bm-ufc_champ {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.42);
  color: #6ee7b7;
}

.p4p-benchmark-badge.bm-ufc_top10 {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.44);
  color: #c4b5fd;
}

.p4p-benchmark-badge.bm-ufc_mid {
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(96, 165, 250, 0.38);
  color: #93c5fd;
}

.p4p-benchmark-badge.bm-regional_champ {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.34);
  color: #cbd5e1;
}

.p4p-benchmark-badge.bm-prospect {
  background: rgba(113, 113, 122, 0.16);
  border-color: rgba(113, 113, 122, 0.35);
  color: #a1a1aa;
}

/* Custom dark scrollbar for modal */
.modal-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.38) rgba(255, 255, 255, 0.04);
}
.modal-content::-webkit-scrollbar {
  width: 7px;
}
.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 999px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.6);
}

.weakness-badge {
  border-radius: 8px;
}

/* Feedback Button & Modal (Netlify Forms) */
.feedback-trigger-btn {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.48);
  color: #bae6fd;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 12px rgba(56, 189, 248, 0.14);
  white-space: nowrap;
}

.feedback-trigger-btn:hover {
  background: rgba(56, 189, 248, 0.26);
  border-color: rgba(56, 189, 248, 0.75);
  color: #f0f9ff;
  transform: translateY(-1px);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-feedback-link {
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-feedback-link:hover {
  background: rgba(56, 189, 248, 0.16);
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-feedback-btn {
  font-size: 0.78rem;
  padding: 7px 14px;
}

.feedback-modal-content {
  max-width: 560px;
}

.feedback-modal-header {
  padding-right: 36px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.feedback-modal-header h2 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--gold-bright);
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.char-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.feedback-form select,
.feedback-form input[type="text"],
.feedback-form textarea {
  width: 100%;
  background: rgba(8, 10, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.feedback-form select:focus,
.feedback-form input[type="text"]:focus,
.feedback-form textarea:focus {
  border-color: var(--gold);
}

.feedback-form textarea {
  resize: vertical;
  min-height: 105px;
  line-height: 1.55;
}

.feedback-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.feedback-status {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.feedback-status.is-success {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #86efac;
}

.feedback-status.is-error {
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.45);
  color: #fda4af;
}

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

.feedback-submit-btn {
  background: linear-gradient(135deg, var(--gold), #b8860b);
  border: none;
  color: #0b0d12;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.feedback-submit-btn:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.feedback-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.matchup-style-headline {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 10px;
}

.matchup-gap-bar.is-mismatch .gap-tier-badge {
  background: rgba(225, 29, 72, 0.22);
  border-color: rgba(225, 29, 72, 0.55);
  color: #fda4af;
}

.matchup-tempo-line {
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-secondary);
  background: rgba(56, 189, 248, 0.06);
  border-left: 3px solid rgba(56, 189, 248, 0.55);
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 10px;
}

.tactical-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tactical-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.tactical-tag.tag-stance {
  border-color: rgba(167, 139, 250, 0.4);
  color: #ddd6fe;
  background: rgba(167, 139, 250, 0.12);
}

.tactical-tag.tag-range {
  border-color: rgba(56, 189, 248, 0.4);
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.12);
}

.tactical-tag.tag-pace {
  border-color: rgba(245, 185, 66, 0.4);
  color: #fde68a;
  background: rgba(245, 185, 66, 0.12);
}

.tactical-tag.tag-archetype {
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
}

/* Quick Matchup Picker & Enhanced Matchup Controls */
.featured-btn {
  border-color: rgba(245, 208, 97, 0.35);
  color: var(--gold-bright);
}
.featured-btn:hover {
  background: rgba(245, 208, 97, 0.14);
}

.quick-matchup-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.quick-vs {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.quick-slot {
  position: relative;
  display: flex;
  align-items: center;
}

.slot-dot {
  position: absolute;
  left: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
}
.slot-dot.slot-a { background: #f5d061; }
.slot-dot.slot-b { background: #e11d48; }

.quick-slot-input {
  width: 100%;
  background: rgba(8, 10, 15, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--text-primary);
  font-size: 0.75rem;
  padding: 6px 8px 6px 23px;
  outline: none;
  transition: border-color 0.15s ease;
}
.quick-slot-input:focus {
  border-color: rgba(245, 208, 97, 0.55);
}

.quick-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 230px;
  overflow-y: auto;
  background: rgba(13, 16, 24, 0.98);
  border: 1px solid rgba(245, 208, 97, 0.38);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  z-index: 60;
  padding: 4px;
}

.quick-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 5px;
  color: var(--text-primary);
  font-size: 0.73rem;
  padding: 5px 7px;
  cursor: pointer;
}
.quick-opt:hover {
  background: rgba(245, 208, 97, 0.14);
}
.quick-opt-meta {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.matchup-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.matchup-header-row .matchup-title {
  margin-bottom: 0;
}
.matchup-weight-switch .radar-mode-btn {
  font-size: 0.67rem;
  padding: 3px 7px;
}

.matchup-gap-bar.is-upset {
  background: rgba(16, 185, 129, 0.11);
  border-color: rgba(52, 211, 153, 0.42);
}
.matchup-gap-bar.is-upset .gap-tier-badge {
  background: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
}

.matchup-archetype-line {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-secondary);
  background: rgba(16, 185, 129, 0.07);
  border-left: 3px solid rgba(52, 211, 153, 0.55);
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 8px;
}
.matchup-archetype-line strong {
  color: var(--text-primary);
}

.matchup-size-line {
  font-size: 0.72rem;
  color: #fde68a;
  margin-bottom: 8px;
}

.matchup-h2h-box {
  margin-bottom: 9px;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(167, 139, 250, 0.09);
  border: 1px solid rgba(167, 139, 250, 0.3);
  font-size: 0.72rem;
  color: #e9d5ff;
  line-height: 1.5;
}
.matchup-h2h-title {
  font-weight: 700;
  color: #ddd6fe;
  margin-bottom: 2px;
}

@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .podium-grid {
    grid-template-columns: 1fr;
  }
  .glossary-grid {
    grid-template-columns: 1fr;
  }
  .glossary-list > div {
    grid-template-columns: 96px 1fr;
  }
  .modal-meta-grid {
    grid-template-columns: 1fr;
  }
  .prime-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-bar-row {
    grid-template-columns: 120px 1fr 44px;
    gap: 8px;
    font-size: 0.76rem;
  }
  .modal-header {
    flex-direction: column;
    padding-right: 0;
    padding-top: 8px;
    gap: 12px;
  }
  .modal-score-box {
    text-align: left;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
  }
  .modal-benchmark-row {
    justify-content: flex-start;
  }
}

/* Admin Announcements Strip */
.announce-strip {
  margin-bottom: 14px;
  padding: 13px 18px;
  background: linear-gradient(135deg, rgba(24, 21, 14, 0.9), rgba(17, 21, 32, 0.92));
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
}

.announce-strip.hidden {
  display: none;
}

.announce-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.announce-strip-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.announce-strip-title h2 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.announce-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.announce-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 168px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.45) rgba(255, 255, 255, 0.04);
}

.announce-list::-webkit-scrollbar {
  width: 6px;
}

.announce-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.announce-list::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 999px;
}

.announce-list::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.65);
}

.announce-item {
  flex-shrink: 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.announce-item.is-important {
  border-color: rgba(212, 175, 55, 0.25);
}

.announce-item.is-alert {
  border-color: rgba(225, 29, 72, 0.35);
  background: rgba(225, 29, 72, 0.06);
}

.announce-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.announce-tag {
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 700;
}

.announce-tag.is-info {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.announce-tag.is-important {
  background: var(--gold-soft);
  color: var(--gold-bright);
}

.announce-tag.is-alert {
  background: var(--crimson-soft);
  color: #fb7185;
}

.announce-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.announce-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.announce-body {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Recent Updates Strip */
.updates-strip {
  margin-bottom: 22px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(17, 21, 32, 0.92), rgba(23, 29, 44, 0.84));
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-md);
}

.updates-strip.hidden {
  display: none;
}

.updates-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.updates-strip-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.updates-strip-title h2 {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.updates-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cyan-soft);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.updates-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.updates-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-family: var(--font-sans);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.updates-toggle-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--text-primary);
}

.updates-toggle-btn.hidden {
  display: none;
}

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

.update-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.update-chip:hover {
  transform: translateY(-2px);
  background: var(--bg-hover);
  border-color: rgba(56, 189, 248, 0.45);
}

.update-chip-top {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.update-chip-date {
  color: var(--text-muted);
}

.update-chip-tag {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
}

.update-chip-tag.is-updated {
  background: rgba(56, 189, 248, 0.14);
  color: var(--cyan);
}

.update-chip-tag.is-added {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.update-chip-rank {
  margin-left: auto;
  color: var(--gold-bright);
  font-weight: 700;
}

.update-chip-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.update-chip-wc {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  padding: 1px 7px;
  line-height: 1.4;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-chip-note {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1080px) {
  .updates-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .updates-list {
    grid-template-columns: 1fr;
  }
}

/* Share Action Bar & Copy Toast */
.share-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.matchup-share-bar {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.sim-share-bar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.share-btn:hover {
  transform: translateY(-1px);
}

.share-x-btn {
  background: rgba(15, 19, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f8fafc;
}

.share-x-btn:hover {
  background: #000000;
  border-color: var(--gold);
  color: var(--gold-bright);
}

.share-copy-btn {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--cyan);
}

.share-copy-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--cyan);
  color: #e0f2fe;
}

.share-img-btn {
  background: linear-gradient(135deg, rgba(245, 208, 97, 0.18), rgba(212, 175, 55, 0.1));
  border: 1px solid rgba(245, 208, 97, 0.5);
  color: var(--gold-bright);
}

.share-img-btn:hover {
  background: linear-gradient(135deg, rgba(245, 208, 97, 0.28), rgba(212, 175, 55, 0.18));
  border-color: var(--gold-bright);
  color: #fffbeb;
}

.filter-share-bar {
  margin: -4px 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px dashed rgba(56, 189, 248, 0.25);
}

.filter-share-bar.hidden {
  display: none;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 20, 32, 0.96);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.copy-toast.hidden {
  display: none;
}

/* Mobile Smartphone Polish (<= 640px) */
@media (max-width: 640px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .panel {
    padding: 14px 12px;
  }

  .announce-strip,
  .updates-strip {
    padding: 12px;
  }

  .panel-header h2 {
    font-size: 0.94rem;
    line-height: 1.3;
  }

  .search-box {
    width: 100%;
    flex: 1 1 100%;
  }

  .search-box input {
    width: 100%;
    max-width: 100%;
  }

  .table-wrapper {
    -webkit-overflow-scrolling: touch;
  }

  .ranking-table .col-fighter {
    min-width: 162px;
  }

  .ranking-table .col-num {
    white-space: nowrap;
  }

  .pagination-bar {
    gap: 4px;
    padding: 10px 4px 2px;
  }

  .pagination-bar .page-btn {
    padding: 4px 7px;
    font-size: 0.72rem;
    min-width: 28px;
  }

  .quick-matchup-picker {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .quick-matchup-picker .quick-slot {
    width: 100%;
  }

  .quick-matchup-picker .quick-vs {
    text-align: center;
    font-size: 0.72rem;
    padding: 0;
  }

  .glossary-card {
    padding: 14px 12px;
  }

  .glossary-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .glossary-list dt {
    justify-self: start;
  }

  .modal-overlay {
    padding: 10px;
  }

  .modal-content {
    padding: 18px 14px;
    width: 100%;
  }

  .modal-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .modal-footer-actions #modalCompareBtn,
  .modal-footer-actions #modalFeedbackBtn {
    grid-column: 1 / -1;
  }

  .modal-footer-actions button {
    width: 100%;
    min-height: 36px;
    justify-content: center;
  }

  .bouts-table th,
  .bouts-table td {
    padding: 6px 7px;
    font-size: 0.73rem;
  }
}
