/* ==========================================================================
   USPL — UniversalScaleOfPowerLevels.com
   Apple-Inspired Minimalist Design System
   ========================================================================== */

:root {
  /* Light Mode (Default Apple Surface Palette) */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.78);
  --ink: #1d1d1f;
  --ink-secondary: #6e6e73;
  --ink-tertiary: #86868b;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --positive: #1d8a4e;
  --negative: #d93025;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* Fonts */
  --font-logo: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

[data-theme='dark'] {
  --bg: #000000;
  --bg-alt: #111113;
  --bg-elevated: #161618;
  --bg-glass: rgba(18, 18, 20, 0.8);
  --ink: #f5f5f7;
  --ink-secondary: #a1a1a6;
  --ink-tertiary: #6e6e73;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #2997ff;
  --accent-hover: #47a6ff;
  --accent-soft: rgba(41, 151, 255, 0.15);
  --positive: #34c759;
  --negative: #ff453a;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 32px 72px rgba(0, 0, 0, 0.72);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.011em;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--ink-secondary);
}

/* ==========================================================================
   Sticky Frosted-Glass Apple Navbar + Thick Bold Minimalistic USPL Logo
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  padding: 2px 0;
}

.brand-bar {
  width: 4.5px;
  border-radius: 2px;
  background: var(--ink);
  display: block;
}

.brand-bar.bar-1 {
  height: 10px;
  opacity: 0.45;
}

.brand-bar.bar-2 {
  height: 16px;
  opacity: 0.75;
}

.brand-bar.bar-3 {
  height: 22px;
  opacity: 1;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.brand-logo {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--ink);
}

.brand-domain {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-secondary);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: var(--bg-alt);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--ink-secondary);
  cursor: pointer;
  font-size: 0.78rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.icon-pill:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.kbd-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.85;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.icon-btn:hover {
  border-color: var(--border-strong);
}

.sun-icon {
  display: none;
}

[data-theme='dark'] .sun-icon {
  display: block;
}

[data-theme='dark'] .moon-icon {
  display: none;
}

/* ==========================================================================
   Hero Section (Apple Keynote Minimalism)
   ========================================================================== */

.hero {
  padding: 88px 0 64px;
  text-align: center;
  background: radial-gradient(circle at 50% -10%, var(--accent-soft), transparent 52%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-secondary);
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  margin: 0 auto 22px;
  max-width: 900px;
  font-size: clamp(2.6rem, 6vw, 4.65rem);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 1.04;
}

.hero-title-muted {
  color: var(--ink-secondary);
}

.hero-subtitle {
  margin: 0 auto 36px;
  max-width: 680px;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-weight: 400;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.btn-full {
  width: 100%;
}

/* Metrics Strip */
.metrics-strip {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.metric-item {
  flex: 1;
  text-align: center;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.metric-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-top: 3px;
}

.metric-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 76px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.section-title {
  margin: 0;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.section-desc {
  margin: 0;
  max-width: 440px;
  font-size: 0.96rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Tier Badges
   ========================================================================== */

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tier-omega {
  background: linear-gradient(135deg, #1d1d1f 0%, #3a3a40 50%, #1d1d1f 100%);
  color: #f8d66d;
  border: 1px solid rgba(248, 214, 109, 0.45);
}

[data-theme='dark'] .tier-omega {
  background: linear-gradient(135deg, #272213 0%, #3d3316 100%);
  color: #ffe07d;
}

.tier-x {
  background: rgba(94, 92, 230, 0.14);
  color: #4f46e5;
  border: 1px solid rgba(94, 92, 230, 0.25);
}

[data-theme='dark'] .tier-x {
  color: #a5b4fc;
}

.tier-sss {
  background: rgba(0, 113, 227, 0.13);
  color: #0066cc;
  border: 1px solid rgba(0, 113, 227, 0.24);
}

[data-theme='dark'] .tier-sss {
  color: #60a5fa;
}

.tier-ss {
  background: rgba(6, 182, 212, 0.14);
  color: #0e7490;
  border: 1px solid rgba(6, 182, 212, 0.24);
}

[data-theme='dark'] .tier-ss {
  color: #67e8f9;
}

.tier-s {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.24);
}

[data-theme='dark'] .tier-s {
  color: #6ee7b7;
}

.tier-a {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

[data-theme='dark'] .tier-a {
  color: #fcd34d;
}

.tier-b {
  background: rgba(249, 115, 22, 0.13);
  color: #c2410c;
  border: 1px solid rgba(249, 115, 22, 0.24);
}

[data-theme='dark'] .tier-b {
  color: #fdba74;
}

.tier-c {
  background: rgba(236, 72, 153, 0.12);
  color: #be185d;
  border: 1px solid rgba(236, 72, 153, 0.24);
}

[data-theme='dark'] .tier-c {
  color: #f9a8d4;
}

.tier-d {
  background: rgba(100, 116, 139, 0.14);
  color: #334155;
  border: 1px solid rgba(100, 116, 139, 0.24);
}

[data-theme='dark'] .tier-d {
  color: #cbd5e1;
}

.tier-e {
  background: var(--bg-alt);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
}

.tier-f {
  background: var(--bg-alt);
  color: var(--ink-tertiary);
  border: 1px solid var(--border);
}

/* ==========================================================================
   Apex Spotlight Bento
   ========================================================================== */

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.spotlight-card {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.spotlight-card.spotlight-lead {
  grid-column: 1 / -1;
  background: linear-gradient(155deg, #111114 0%, #1d1d24 100%);
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.14);
  padding: 32px 34px;
}

.spotlight-card.spotlight-lead .muted,
.spotlight-card.spotlight-lead .spotlight-show,
.spotlight-card.spotlight-lead .spotlight-note {
  color: #a1a1a6;
}

.spotlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.spotlight-rank {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-tertiary);
}

.spotlight-card.spotlight-lead .spotlight-rank {
  color: #f8d66d;
}

.spotlight-name {
  margin: 0 0 4px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.15;
}

.spotlight-lead .spotlight-name {
  font-size: 1.75rem;
}

.spotlight-show {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}

.spotlight-note {
  margin: 0 0 22px;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.spotlight-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.spotlight-lead .spotlight-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.spotlight-score {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.spotlight-lead .spotlight-score {
  font-size: 2.45rem;
  color: #ffffff;
}

.spotlight-pillars {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-secondary);
}

.spotlight-lead .spotlight-pillars {
  color: #d1d1d6;
}

/* ==========================================================================
   Controls & Filters
   ========================================================================== */

.controls-panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 28px;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: var(--ink-tertiary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--ink);
  font-size: 0.96rem;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-clear {
  position: absolute;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  color: var(--ink-secondary);
  font-size: 1.1rem;
  cursor: pointer;
}

.filter-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.select-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 155px;
}

.select-group label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-tertiary);
}

.select-control {
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--ink);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select-control:focus {
  border-color: var(--accent);
}

.select-lg {
  height: 46px;
  font-size: 0.95rem;
  font-weight: 500;
}

.view-toggle {
  display: inline-flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  height: 40px;
}

.view-btn {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.view-btn.active {
  background: var(--ink);
  color: var(--bg);
}

.pill-rail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.filter-pill {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--ink-secondary);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.filter-pill.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ==========================================================================
   Character Grid & Table Views
   ========================================================================== */

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.char-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.char-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.char-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.char-rank {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-tertiary);
}

.char-name {
  margin: 4px 0 2px;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.char-meta {
  font-size: 0.79rem;
  color: var(--ink-secondary);
}

.char-score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.char-score {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.char-peak-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-tertiary);
}

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

.mini-bar-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-bar-track {
  height: 4px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 3px;
}

.mini-bar-lbl {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-tertiary);
}

/* Table View */
.character-table-wrap {
  display: block;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.registry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.registry-table th,
.registry-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.registry-table th {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-tertiary);
  background: var(--bg-alt);
}

.registry-table tbody tr {
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.registry-table tbody tr:hover {
  background: var(--bg-alt);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.pagination-info {
  font-size: 0.86rem;
  color: var(--ink-secondary);
}

.pagination-actions {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   Shows Directory
   ========================================================================== */

.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.show-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.show-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.show-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.show-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.show-count-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.show-stats-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Head-to-Head Comparator
   ========================================================================== */

.preset-matchups {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.compare-selectors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 16px;
  margin-bottom: 26px;
}

.compare-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.compare-picker .select-control {
  width: 100%;
  min-width: 0;
}

.compare-picker label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-tertiary);
}

.compare-vs {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--ink-tertiary);
  padding-bottom: 10px;
  text-align: center;
}

.compare-stage {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
}

.compare-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.compare-entity {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.compare-entity.right {
  text-align: right;
  align-items: flex-end;
}

.compare-entity h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.compare-big-score {
  font-family: var(--font-mono);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.compare-delta-box {
  text-align: center;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.compare-delta-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
}

.compare-delta-lbl {
  font-size: 0.75rem;
  color: var(--ink-secondary);
}

.compare-bars-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compare-bar-row {
  display: grid;
  grid-template-columns: 60px 1fr 140px 1fr 60px;
  align-items: center;
  gap: 12px;
}

.compare-bar-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.compare-track {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-track.left {
  display: flex;
  justify-content: flex-end;
}

.compare-fill-a {
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
}

.compare-fill-b {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.compare-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.compare-val.win {
  color: var(--accent);
}

.compare-val.right {
  text-align: right;
}

/* ==========================================================================
   Interactive Calculator
   ========================================================================== */

.calc-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  align-items: start;
}

.calc-inputs-card,
.calc-output-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.calc-output-card {
  position: sticky;
  top: 84px;
}

.calc-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.calc-group + .calc-group {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.calc-group-title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 650;
}

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

.slider-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.slider-name {
  font-size: 0.8rem;
  font-weight: 600;
}

.slider-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.slider-input {
  width: 100%;
  accent-color: var(--ink);
  cursor: pointer;
}

.slider-sub {
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--ink-tertiary);
}

.calc-score-header {
  text-align: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.calc-score-label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-tertiary);
}

.calc-score-number {
  font-family: var(--font-mono);
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.08;
  margin: 8px 0 10px;
}

.calc-tier-desc {
  margin: 10px 0 0;
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.calc-stages {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.84rem;
}

.stage-row-val {
  font-family: var(--font-mono);
  font-weight: 700;
}

.copy-toast {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--positive);
  min-height: 18px;
}

/* ==========================================================================
   Formula Specification Section
   ========================================================================== */

.formula-stages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.formula-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.stage-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.formula-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.formula-card p {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

.math-block {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  overflow-x: auto;
  line-height: 1.6;
}

.spec-table-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.spec-table-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.spec-table-header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.table-scroll {
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.spec-table th,
.spec-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-tertiary);
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.tier-spec-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tier-spec-range {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-tertiary);
}

.tier-spec-desc {
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Character Detail Modal
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.modal-name {
  margin: 6px 0 4px;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

.modal-score {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.modal-summary {
  margin: 0 0 22px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.modal-panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.modal-panel h4 {
  margin: 0 0 14px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-tertiary);
}

.pillar-row {
  margin-bottom: 11px;
}

.pillar-row:last-child {
  margin-bottom: 0;
}

.pillar-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.pillar-bar-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
}

.pillar-bar-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
}

.mod-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.mod-row:last-child {
  border-bottom: none;
}

.mod-pos {
  color: var(--positive);
}

.mod-neg {
  color: var(--negative);
}

.feats-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-secondary);
  font-size: 0.9rem;
}

.feats-list li {
  margin-bottom: 6px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.footer-logo {
  font-size: 1.2rem;
}

.footer-domain {
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.footer-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-tertiary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .brand-domain {
    display: none;
  }
  .spotlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spotlight-card.spotlight-lead {
    grid-column: 1 / -1;
  }
  .calc-layout {
    grid-template-columns: 1fr;
  }
  .calc-output-card {
    position: static;
  }
  .formula-stages-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .brand-domain,
  .nav-links {
    display: none;
  }
  .metrics-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 20px;
  }
  .metric-divider {
    display: none;
  }
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
  .spotlight-card.spotlight-lead {
    grid-column: span 1;
  }
  .compare-selectors,
  .compare-banner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .compare-entity.right {
    text-align: left;
    align-items: flex-start;
  }
  .compare-bar-row {
    grid-template-columns: 42px 1fr 90px 1fr 42px;
    gap: 6px;
  }
  .sliders-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-sheet {
    padding: 22px;
  }
}

/* ==========================================================================
   USPL Stage 5 Whole-Integer Scale + Deep Power Guides + Fight Odds Simulator
   ========================================================================== */

.spotlight-pl-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: 4px;
}

.spotlight-lead .spotlight-pl-label {
  color: #f8d66d;
}

.spotlight-score {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  word-break: break-word;
}

.spotlight-lead .spotlight-score {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.spotlight-mag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 3px;
}

.spotlight-lead .spotlight-mag {
  color: #f8d66d;
}

.char-power-tag {
  margin-top: 8px;
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--ink-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.char-score-block {
  margin-bottom: 10px;
}

.char-score {
  font-size: clamp(1.15rem, 1.8vw, 1.42rem);
  line-height: 1.15;
  word-break: break-all;
}

.char-score-sub {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-tertiary);
  margin-top: 3px;
}

.calc-score-number {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  word-break: break-all;
}

.calc-magnitude-pill {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.formula-card-wide {
  grid-column: 1 / -1;
}

.tier-spec-exact {
  font-size: 0.72rem;
  color: var(--ink-secondary);
}

/* Modal Deep Power Breakdown */
.modal-sheet {
  max-width: 920px;
}

.modal-pl-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-tertiary);
  margin-bottom: 4px;
}

.modal-score {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 4px;
}

.modal-mag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.power-thesis {
  margin: 0 0 16px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink);
}

.power-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.power-guide-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}

.pg-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 5px;
}

.power-guide-item p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-secondary);
  line-height: 1.48;
}

.power-weakness-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.pillar-explain {
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--ink-secondary);
  line-height: 1.35;
}

.mod-row-rich {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.mod-row-rich:last-child {
  border-bottom: none;
}

.mod-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.mod-row-desc {
  margin-top: 3px;
  font-size: 0.73rem;
  color: var(--ink-tertiary);
  line-height: 1.35;
}

/* Head-to-Head Combat Odds Simulator */
.compare-big-score {
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  word-break: break-all;
}

.compare-delta-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.compare-win-pill {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.compare-win-pill.win-a {
  background: var(--ink);
  color: var(--bg);
}

.compare-win-pill.win-b {
  background: var(--accent);
  color: #ffffff;
}

.outcome-bar-section {
  margin-bottom: 24px;
}

.outcome-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.outcome-bar-head h4,
.scenarios-section h4,
.tactical-section h4,
.compare-bars-wrap h4,
.odds-card h4,
.winpath-card h4 {
  margin: 0 0 12px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-tertiary);
}

.outcome-bar-head h4 {
  margin-bottom: 0;
}

.outcome-stacked-bar {
  display: flex;
  height: 36px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
}

.seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  transition: width 0.35s var(--ease);
}

.seg-a-kill { background: #1d1d1f; }
.seg-a-temp { background: #4b5563; }
.seg-draw   { background: #9ca3af; color: #111827; }
.seg-b-temp { background: #3b82f6; }
.seg-b-kill { background: #0055b3; }

[data-theme='dark'] .seg-a-kill { background: #f5f5f7; color: #000000; }
[data-theme='dark'] .seg-a-temp { background: #9ca3af; color: #000000; }

.outcome-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--ink-secondary);
}

.outcome-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.outcome-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.odds-cards-grid,
.winpaths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.odds-card,
.winpath-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.odds-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.odds-row:last-child {
  border-bottom: none;
}

.odds-row-highlight {
  margin-top: 4px;
  padding-top: 10px;
  font-weight: 600;
}

.scenarios-section,
.tactical-section,
.compare-bars-wrap {
  margin-bottom: 24px;
}

.compare-bars-wrap {
  margin-bottom: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

.scenario-title {
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.scenario-desc {
  font-size: 0.76rem;
  color: var(--ink-tertiary);
  margin-bottom: 12px;
}

.scenario-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

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

.tactical-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.tactical-title {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 5px;
}

.tactical-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-secondary);
  line-height: 1.48;
}

@media (max-width: 900px) {
  .compare-selectors,
  .compare-banner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .compare-entity.right {
    text-align: left;
    align-items: flex-start;
  }
  .power-guide-grid,
  .odds-cards-grid,
  .scenarios-grid,
  .tactical-grid,
  .winpaths-grid {
    grid-template-columns: 1fr;
  }
}

/* High-Scale Search Inputs for Head-to-Head Fighter Pickers */
.compare-search-input {
  width: 100%;
  min-width: 0;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  margin-bottom: 8px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.compare-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* ==========================================================================
   Streamlined UI & Multi-Fighter / Army Battle Builder (2v1, 100v1, Team)
   ========================================================================== */
.hero-metrics-3 {
  grid-template-columns: 1fr auto 1fr auto 1fr;
}
.filters-row-clean {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}
.mini-bars-4 {
  grid-template-columns: repeat(4, 1fr);
}
.shows-search-bar {
  max-width: 520px;
  margin-bottom: 20px;
}
.modal-bars-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}
.team-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.team-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.team-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.team-summary-line {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
}
.btn-xs {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 999px;
}
.team-vs-badge {
  align-self: center;
  font-size: 0.92rem;
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.team-roster-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.roster-slot {
  background: var(--bg-soft, var(--surface-alt, rgba(127, 127, 127, 0.06)));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}
.roster-slot-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.roster-slot-info {
  min-width: 0;
}
.roster-slot-name {
  display: block;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ink);
  line-height: 1.25;
}
.roster-slot-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}
.roster-remove-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}
.roster-remove-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.roster-slot-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.qty-btn {
  border: none;
  background: transparent;
  color: var(--ink);
  width: 30px;
  height: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.qty-btn:hover {
  background: rgba(127, 127, 127, 0.12);
}
.qty-input {
  width: 66px;
  border: none;
  background: transparent;
  color: var(--ink);
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 4px 2px;
}
.qty-input:focus {
  outline: none;
}
.qty-quick-pills {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
}
.qty-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.qty-pill:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.qty-pill.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.team-add-wrap {
  position: relative;
}
.team-add-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 4px);
  z-index: 30;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
}
.add-hit-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  background: transparent;
  border: none;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.add-hit-item:hover {
  background: rgba(0, 113, 227, 0.1);
}
.add-hit-pl {
  font-size: 0.78rem;
  color: var(--accent);
  white-space: nowrap;
}
.add-hit-empty {
  padding: 12px;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 900px) {
  .team-builder-grid {
    grid-template-columns: 1fr;
  }
  .team-vs-badge {
    justify-self: center;
  }
  .modal-bars-2col {
    grid-template-columns: 1fr;
  }
  .filters-row-clean {
    grid-template-columns: 1fr 1fr;
  }
}

/* Prevent mid-number wrapping on Billion-scale Power Levels */
.spotlight-score,
.compare-score,
.char-score {
  white-space: nowrap;
}
.spotlight-card:not(.spotlight-lead) .spotlight-score {
  font-size: clamp(1.1rem, 1.75vw, 1.48rem);
}

/* ==========================================================================
   Interactive Live Battle Arena, Teamwork Synergy & Collapsible Arrows (▸)
   ========================================================================== */
.compact-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.45;
}
.compact-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}
.compact-banner {
  padding: 20px 22px;
  margin-bottom: 18px;
}
.synergy-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 8px;
}
.synergy-pill.syn-pos {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}
[data-theme="dark"] .synergy-pill.syn-pos {
  color: #34d399;
}
.synergy-pill.syn-neg {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}
[data-theme="dark"] .synergy-pill.syn-neg {
  color: #f87171;
}
.synergy-pill.syn-neu {
  background: rgba(127, 127, 127, 0.14);
  color: var(--muted);
}

/* Interactive Live Arena */
.live-arena-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.arena-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.arena-mode-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(127, 127, 127, 0.08);
  padding: 4px;
  border-radius: 999px;
}
.mode-pill {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.mode-pill:hover {
  color: var(--ink);
}
.mode-pill.active {
  background: var(--ink);
  color: var(--bg);
}
.arena-cta-group {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.arena-hp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.arena-fighter-box {
  background: rgba(127, 127, 127, 0.06);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.arena-fighter-box.arena-hit {
  animation: arenaShake 0.32s ease;
  border-color: #ef4444;
}
.arena-fighter-box.arena-surge {
  border-color: #0071e3;
}
@keyframes arenaShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.arena-hp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.arena-fname {
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arena-hp-num {
  font-size: 0.82rem;
  font-weight: 700;
}
.arena-hp-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.18);
  overflow: hidden;
}
.arena-hp-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.arena-hp-fill.fill-a {
  background: linear-gradient(90deg, #0071e3, #38bdf8);
}
.arena-hp-fill.fill-b {
  background: linear-gradient(90deg, #f97316, #ef4444);
}
.arena-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 54px;
  max-height: 240px;
  overflow-y: auto;
}
.arena-idle {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px dashed var(--border);
}
.arena-beat {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.06);
  border-left: 3px solid var(--accent);
  font-size: 0.84rem;
  animation: fadeSlideIn 0.25s ease;
}
.arena-beat.beat-side-b {
  border-left-color: #f97316;
}
.arena-beat.beat-side-draw {
  border-left-color: #9ca3af;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.beat-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 3px;
}
.beat-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
}
.beat-detail {
  font-size: 0.8rem;
  color: var(--muted);
}
.batch-tally-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
  font-size: 0.84rem;
}
.arena-stamp {
  margin-top: 12px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  animation: fadeSlideIn 0.25s ease;
}
.arena-stamp.stamp-a {
  background: #0071e3;
  color: #fff;
}
.arena-stamp.stamp-b {
  background: #ea580c;
  color: #fff;
}

/* Compact 5-Way Odds Strip */
.odds-strip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.outcome-bar {
  display: flex;
  width: 100%;
  height: 28px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(127, 127, 127, 0.12);
}
.ob-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  transition: width 0.35s var(--ease);
}
.ob-a-kill, .dot-a-kill { background: #0055b3; }
.ob-a-temp, .dot-a-temp { background: #2b8cf0; }
.ob-draw,   .dot-draw   { background: #9ca3af; color: #111827; }
.ob-b-temp, .dot-b-temp { background: #f97316; }
.ob-b-kill, .dot-b-kill { background: #dc2626; }
.compact-legend {
  margin-top: 10px;
  font-size: 0.78rem;
  gap: 12px;
}
.compare-win-pill {
  background: rgba(127, 127, 127, 0.12);
  color: var(--ink);
}
.compare-win-pill.fav {
  background: #0071e3;
  color: #ffffff;
}
.odds-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.odds-fighter-card {
  background: rgba(127, 127, 127, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.odds-fighter-card h5 {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}
.odds-stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.odds-stat-line:last-child {
  border-bottom: none;
}
.odds-stat-line strong {
  color: var(--ink);
}
.odds-stat-line.highlight {
  padding-top: 8px;
  margin-top: 2px;
  font-weight: 700;
  color: var(--ink);
}
.odds-stat-line.highlight strong {
  color: #059669;
}
[data-theme="dark"] .odds-stat-line.highlight strong {
  color: #34d399;
}

/* Clean Collapsible Accordions with Small Arrows (▸) */
.accordion-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.uspl-accordion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.uspl-acc-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  user-select: none;
}
.uspl-acc-summary::-webkit-details-marker {
  display: none;
}
.uspl-acc-summary:hover {
  background: rgba(127, 127, 127, 0.05);
}
.acc-arrow {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted);
  transition: transform 0.18s ease;
}
.uspl-accordion[open] > .uspl-acc-summary .acc-arrow {
  transform: rotate(90deg);
  color: var(--accent);
}
.acc-hint {
  margin-left: auto;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
}
.uspl-acc-body {
  padding: 4px 16px 16px;
  border-top: 1px solid var(--border);
}
.combo-tag {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--accent);
}
.compact-tactical .tactical-card {
  padding: 12px 14px;
}
.compact-tactical .tactical-card p {
  font-size: 0.8rem;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .arena-hp-grid,
  .batch-tally-grid,
  .odds-duo-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Minimalist Word-Only Rankings & Lower-PL Style Upset Callout
   ========================================================================== */
.character-grid-minimal {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.char-card-minimal {
  padding: 16px 18px;
  gap: 10px;
  border-radius: 16px;
}
.char-card-minimal .char-min-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.char-card-minimal .char-rank {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-tertiary);
}
.char-card-minimal .char-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.char-min-power {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.15;
}
.char-row-power {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.94rem;
}
.upset-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--ink);
}
.upset-banner strong {
  color: #b45309;
  font-size: 0.86rem;
}
[data-theme="dark"] .upset-banner strong {
  color: #fbbf24;
}

/* ==========================================================================
   Account System, Google Sign-In, Rebuttals, Character Requests & Toast
   ========================================================================== */
.auth-nav-slot {
  display: inline-flex;
  align-items: center;
}
.user-account-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.user-name-label {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink);
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: rgba(0, 113, 227, 0.12);
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}
.nav-admin-btn:hover {
  background: rgba(0, 113, 227, 0.2);
}
.admin-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.3;
}
.modal-sheet-sm {
  max-width: 480px;
}
.modal-sheet-wide {
  max-width: 820px;
}
.auth-modal-head {
  margin-bottom: 16px;
}
.auth-modal-head h2 {
  margin: 6px 0 4px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.auth-tabs {
  display: inline-flex;
  gap: 6px;
  background: rgba(127, 127, 127, 0.1);
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.google-btn-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.btn-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}
.btn-google:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}
.google-chooser {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.google-chooser-head {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-secondary);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--ink-tertiary);
  font-size: 0.76rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.uspl-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-field label {
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--ink-secondary);
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrap .form-input {
  padding-right: 62px;
}
.pw-toggle-btn {
  position: absolute;
  right: 8px;
  border: none;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.pw-toggle-btn:hover {
  background: var(--accent-soft);
}
.form-error {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 600;
}
[data-theme="dark"] .form-error {
  color: #f87171;
}
.btn-disagree {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  font-weight: 650;
}
.btn-disagree:hover {
  background: rgba(239, 68, 68, 0.16);
}
[data-theme="dark"] .btn-disagree {
  color: #f87171;
}
.rules-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: var(--ink-secondary);
}
.rules-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.82rem;
}
.rules-box ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rules-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-secondary);
  cursor: pointer;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.uspl-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--ink);
  color: var(--bg);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 650;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

/* Admin Vault Cards */
.admin-head {
  margin-bottom: 16px;
}
.admin-head h2 {
  margin: 0 0 4px;
  font-size: 1.45rem;
}
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 64vh;
  overflow-y: auto;
}
.admin-item-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.admin-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.admin-meta-line {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  margin-top: 2px;
}
.admin-arg {
  margin: 8px 0 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink);
}
.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.status-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
}
.st-pending { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.st-approved, .st-added { background: rgba(16, 185, 129, 0.16); color: #059669; }
.st-dismissed, .st-rejected { background: rgba(127, 127, 127, 0.16); color: var(--muted); }

/* ==========================================================================
   Guess the Character — Wordle UI + Krillion Arcade Feel
   ========================================================================== */
.krillion-shell {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.krillion-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.krillion-mode-group {
  display: inline-flex;
  gap: 6px;
  background: rgba(127, 127, 127, 0.1);
  padding: 4px;
  border-radius: 999px;
}
.krillion-stats-pills {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.k-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--ink-secondary);
}
.k-pill strong {
  color: var(--ink);
  font-family: var(--font-mono);
}
.k-streak strong {
  color: #f97316;
}
.krillion-hints-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.krillion-hints-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.k-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.krillion-hint-ladder {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.k-hint-step {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}
.k-hint-latest {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.k-hint-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  white-space: nowrap;
}
.k-hint-txt {
  color: var(--ink);
  font-weight: 500;
}
.krillion-input-wrap {
  position: relative;
  margin-bottom: 18px;
}
.krillion-input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  border: 2px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.krillion-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.krillion-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  max-height: 290px;
  overflow-y: auto;
  padding: 6px;
}
.k-dd-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}
.k-dd-item:hover {
  background: var(--accent-soft);
}
.k-dd-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-secondary);
}
.krillion-result-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  margin-bottom: 18px;
}
.krillion-result-banner.k-win {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.krillion-result-banner.k-loss {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.k-res-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.k-res-title {
  margin: 2px 0;
  font-size: 1.35rem;
}
.k-res-meta {
  font-size: 0.85rem;
  color: var(--ink-secondary);
}
.k-res-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wordle-board-wrap {
  overflow-x: auto;
}
.wordle-header-row,
.wordle-row {
  display: grid;
  grid-template-columns: 1.35fr 1.25fr 0.75fr 0.85fr 1.05fr 1.25fr;
  gap: 8px;
  min-width: 640px;
}
.wordle-header-row {
  margin-bottom: 8px;
  padding: 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-tertiary);
  text-align: center;
}
.wordle-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.w-tile {
  min-height: 56px;
  padding: 8px 6px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}
.w-tile.w-empty {
  border: 2px dashed var(--border);
  background: transparent;
}
.w-tile.w-hit {
  background: #16a34a;
  color: #ffffff;
  border: 1px solid #15803d;
}
.w-tile.w-close {
  background: #d97706;
  color: #ffffff;
  border: 1px solid #b45309;
}
.w-tile.w-miss {
  background: #4b5563;
  color: #f9fafb;
  border: 1px solid #374151;
}
.wordle-row-new .w-tile {
  animation: tileFlipIn 0.42s ease both;
}
@keyframes tileFlipIn {
  0% { transform: rotateX(85deg); opacity: 0.2; }
  100% { transform: rotateX(0deg); opacity: 1; }
}
.wordle-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--ink-secondary);
}
.wordle-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.w-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}
.w-dot.w-hit { background: #16a34a; }
.w-dot.w-close { background: #d97706; }
.w-dot.w-miss { background: #4b5563; }


/* ==========================================================================
   Hardened Auth Security UI (Password Strength Meter, Checklist & Trust Bar)
   ========================================================================== */
.user-sec-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 2px 6px 2px 2px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.user-sec-trigger:hover {
  background: rgba(127, 127, 127, 0.14);
}
.pw-meter-wrap {
  margin-top: 8px;
}
.pw-meter-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.2);
  overflow: hidden;
}
.pw-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
  background: #ef4444;
}
.pw-meter-fill.pw-weak { background: #ef4444; }
.pw-meter-fill.pw-fair { background: #f59e0b; }
.pw-meter-fill.pw-strong { background: #22c55e; }
.pw-meter-fill.pw-great { background: #10b981; }
.pw-meter-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 0.75rem;
  color: var(--ink-tertiary, var(--muted));
}
.pw-rules-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.pw-rule {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink-tertiary, var(--muted));
  transition: all 0.15s ease;
}
.pw-rule.ok {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}
.auth-security-strip {
  margin-top: 16px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(127, 127, 127, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  color: var(--ink-secondary, var(--muted));
  line-height: 1.35;
}
.auth-security-strip svg {
  flex-shrink: 0;
  color: #16a34a;
}


/* ==========================================================================
   Launch Polish — UniversalScaleOfPowerLevels.com Ambient & Micro-Interactions
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -120px auto auto 50%;
  transform: translateX(-50%);
  width: 780px;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(0, 113, 227, 0.14) 0%, rgba(110, 86, 207, 0.08) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.char-card,
.show-card,
.spotlight-card {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.char-card:hover,
.show-card:hover,
.spotlight-card:hover {
  transform: translateY(-2px);
}
.brand-domain {
  letter-spacing: -0.01em;
}
