/* ═══════════════════════════════════════════════════════════════════════
   IGLify Wrapped — Spotify-Wrapped style 6-slide reveal
   Dark mode, full-bleed slides, vinyl-record vibe.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Design tokens — match IGLify main design system */
  --bg-deep: #0a0a0a;
  --bg-elev-1: #161616;
  --bg-elev-2: #1f1f1f;
  --fg-primary: #f5f5f5;
  --fg-secondary: #b8b8b8;
  --fg-tertiary: #6e6e6e;

  /* Side-accent: T orange / CT blue (per design_system.md) */
  --t-orange: #ff7a3d;
  --t-orange-soft: rgba(255, 122, 61, 0.15);
  --ct-blue: #5fb3ff;
  --ct-blue-soft: rgba(95, 179, 255, 0.15);

  /* Role colors */
  --role-awp: #ffd166;
  --role-star: #ff7a3d;
  --role-entry: #ef476f;
  --role-anchor: #5fb3ff;
  --role-support: #06d6a0;
  --role-igl: #b388ff;

  --font-sans: 'Onest', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --slide-pad: clamp(1.5rem, 4vw, 3rem);
}

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

/* HTML `hidden` attribute must win over any class-level `display`. Without
   this, `.wrapped-slides { display: flex }` overrides `hidden`, causing the
   slides to appear on the intro page (and block clicks on intro buttons). */
[hidden] {
  display: none !important;
}

html, body {
  height: 100%;
  background: var(--bg-deep);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrapped-body {
  background:
    radial-gradient(ellipse at top, rgba(255, 122, 61, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom, rgba(95, 179, 255, 0.06), transparent 50%),
    var(--bg-deep);
  min-height: 100vh;
  position: relative;
}

/* ─────────────────────────────────────────────────────────────────────────
   INTRO: drag-drop upload
   ───────────────────────────────────────────────────────────────────────── */

.wrapped-intro {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: var(--slide-pad);
  max-width: 720px;
  margin: 0 auto;
}

.wrapped-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.wrapped-back {
  color: var(--fg-tertiary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.wrapped-back:hover { color: var(--fg-primary); }

.wrapped-logo {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.3em;
  background: linear-gradient(135deg, var(--t-orange), var(--ct-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Auth pill in header — populated by wrapped.js after /api/me. */
.wrapped-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 80px;        /* keeps logo centered even when empty */
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-size: 12px;
}
.wrapped-auth a {
  color: var(--fg-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}
.wrapped-auth a:hover { color: var(--fg-primary); }
.auth-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--bg-elev-2);
}
.auth-nick { color: var(--fg-secondary); font-weight: 600; }
.auth-logout {
  font-size: 11px; opacity: 0.6;
  padding-left: 8px;
  border-left: 1px solid var(--bg-elev-2);
}

/* Sign-in hint on intro hero — only visible when logged out. */
.intro-auth-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-elev-1);
  border: 1px solid var(--bg-elev-2);
  border-radius: 10px;
  margin: 0 auto;
  max-width: 540px;
  font-size: 13px;
  color: var(--fg-tertiary);
  font-family: var(--font-mono);
}
.intro-auth-hint .auth-hint-icon { font-size: 16px; }
.intro-auth-hint .auth-hint-link {
  color: var(--ct-blue);
  font-weight: 600;
  text-decoration: none;
}
.intro-auth-hint .auth-hint-link:hover { text-decoration: underline; }

/* History slide — list of past Wrappeds. */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 600px;
  margin: 1.5rem auto;
}
.history-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elev-1);
  border: 1px solid var(--bg-elev-2);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: default;
  transition: background 0.15s;
}
.history-item:hover { background: var(--bg-elev-2); }
.history-date {
  color: var(--fg-tertiary);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.history-main { display: flex; flex-direction: column; gap: 2px; }
.history-pro { color: var(--fg-primary); font-weight: 700; font-size: 14px; }
.history-meta { color: var(--fg-secondary); font-size: 11px; }
.history-role {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  padding: 4px 8px;
  background: var(--bg-elev-2);
  border-radius: 6px;
}
.history-empty {
  text-align: center;
  color: var(--fg-tertiary);
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 2rem 0;
}

.intro-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.intro-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #b8b8b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--fg-secondary);
  max-width: 36em;
}

/* Nick form — SECONDARY (less accurate fallback) */
.nick-form-secondary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0.92;
}

.nick-row {
  display: flex;
  align-items: stretch;
  background: var(--bg-elev-1);
  border: 1px solid var(--bg-elev-2);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
.nick-row:focus-within {
  border-color: var(--t-orange);
  background: var(--bg-elev-2);
}

.nick-prefix {
  padding: 0.75rem 0.875rem;
  color: var(--fg-tertiary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--bg-deep);
  border-right: 1px solid var(--bg-elev-2);
}

.nick-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 0.75rem 0.875rem;
  min-width: 0;
}
.nick-input::placeholder { color: var(--fg-tertiary); }

.nick-btn-inline {
  background: var(--bg-elev-2);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-left: 1px solid var(--bg-elev-2);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.nick-btn-inline:hover { background: var(--t-orange); color: #000; }
.nick-btn-inline:disabled { opacity: 0.5; cursor: wait; }

.nick-note {
  color: var(--fg-tertiary);
  font-size: 0.8125rem;
  padding-left: 0.25rem;
}

.intro-or {
  text-align: center;
  color: var(--fg-tertiary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin: 0.25rem 0;
}

.upload-zone {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  background: var(--bg-elev-1);
  transition: all 0.3s ease;
  cursor: pointer;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--t-orange);
  background: var(--t-orange-soft);
  transform: translateY(-2px);
}

.upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.upload-icon {
  font-size: 3rem;
  color: var(--t-orange);
  line-height: 1;
}

.upload-text strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.upload-text span {
  color: var(--fg-tertiary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.upload-btn {
  background: var(--t-orange);
  color: #000;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.upload-btn:hover { transform: scale(1.03); }
.upload-btn:active { transform: scale(0.98); }

.intro-demo-link {
  text-align: center;
  color: var(--fg-tertiary);
  font-size: 0.9375rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--ct-blue);
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.intro-footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--fg-tertiary);
  font-size: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   SLIDES: full-bleed, fade-in animations
   ───────────────────────────────────────────────────────────────────────── */

.wrapped-slides {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--slide-pad);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  background: var(--bg-deep);
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-content {
  max-width: 600px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.slide-eyebrow {
  color: var(--fg-tertiary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.1s forwards;
}

.slide.active .slide-eyebrow,
.slide.active .slide-title,
.slide.active .slide-title-big,
.slide.active .recap-matches,
.slide.active .role-name,
.slide.active .role-tagline,
.slide.active .role-silhouette,
.slide.active .role-votes,
.slide.active .pro-nick,
.slide.active .pro-meta,
.slide.active .pro-runnerup,
.slide.active .weapon-bars,
.slide.active .stats-grid,
.slide.active .share-actions,
.slide.active .slide-footer-text,
/* Tier 1 + Tier 2/4 additions */
.slide.active .best-round-hero,
.slide.active .best-round-meta,
.slide.active .best-round-victims,
.slide.active .longest-hero,
.slide.active .longest-detail,
.slide.active .topwow-metric,
.slide.active .topwow-value-row,
.slide.active .topwow-line,
.slide.active .signature-card,
.slide.active .side-cards,
.slide.active .pistol-hero,
.slide.active .nemesis-name,
.slide.active .nemesis-detail,
.slide.active .multikill-grid {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}
.slide.active .slide-title,
.slide.active .slide-title-big,
.slide.active .role-name,
.slide.active .pro-nick,
.slide.active .nemesis-name { animation-delay: 0.3s; }

.slide.active .role-silhouette,
.slide.active .recap-matches,
.slide.active .weapon-bars,
.slide.active .stats-grid,
.slide.active .best-round-hero,
.slide.active .longest-hero,
.slide.active .topwow-value-row,
.slide.active .side-cards,
.slide.active .pistol-hero,
.slide.active .nemesis-detail,
.slide.active .multikill-grid,
.slide.active .signature-card { animation-delay: 0.5s; }

.slide.active .role-votes,
.slide.active .role-tagline,
.slide.active .pro-meta,
.slide.active .best-round-meta,
.slide.active .best-round-victims,
.slide.active .longest-detail,
.slide.active .topwow-line,
.slide.active .slide-footer-text { animation-delay: 0.8s; }

.slide.active .pro-runnerup,
.slide.active .share-actions { animation-delay: 1.1s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.slide-title-big {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}
.slide-title-big small {
  display: block;
  font-size: 0.4em;
  color: var(--fg-tertiary);
  font-weight: 400;
  margin: 0.5em 0;
}

.slide-footer-text {
  color: var(--fg-secondary);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}
.slide-footer-text strong {
  color: var(--t-orange);
  font-size: 1.5em;
}

/* Loading slide */
.loading-indicator {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-spinner {
  width: 80px;
  height: 80px;
  border: 4px solid var(--bg-elev-2);
  border-top-color: var(--t-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transition: opacity 0.3s;
}
.loading-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--role-support);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 0 40px rgba(6, 214, 160, 0.6);
}
.loading-indicator.done .loading-spinner {
  opacity: 0;
  animation: none;
}
.loading-indicator.done .loading-check {
  opacity: 1;
  transform: scale(1);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Upload progress (visible only during upload phase before server has
   the bytes). Hides when XHR upload completes — pollJob takes over. */
.upload-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
  margin: 1rem auto 1.5rem;
  font-family: var(--font-mono);
}
.upload-progress-bar {
  height: 10px;
  background: var(--bg-elev-1);
  border: 1px solid var(--bg-elev-2);
  border-radius: 5px;
  overflow: hidden;
}
.upload-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ct-blue), var(--role-awp));
  border-radius: 5px;
  transition: width 0.18s ease-out;
}
/* Stacked: percentage on its own line (big, prominent), speed+ETA on
   the line below as a quiet secondary row. */
.upload-progress-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: var(--fg-tertiary);
  letter-spacing: 0.05em;
}
.upload-progress-pct {
  color: var(--fg-primary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.upload-progress-meta-sub {
  display: flex;
  gap: 1rem;
  font-size: 11px;
  color: var(--fg-tertiary);
}
.upload-progress-speed { color: var(--fg-secondary); }
.upload-progress-eta { color: var(--fg-tertiary); }

.loading-list {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--fg-secondary);
}
.loading-list li.done { color: var(--role-support); }
.loading-list li.pending { color: var(--fg-tertiary); }
.loading-list li.fun-line {
  color: var(--fg-secondary);
  font-style: italic;
  opacity: 0.85;
  /* Subtle fade-in each time message rotates */
  animation: funLineFade 0.4s ease;
}
@keyframes funLineFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 0.85; transform: none; }
}

/* Recap slide */
.recap-matches {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 400px;
}
.recap-matches li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elev-1);
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}
.recap-matches .map { color: var(--fg-secondary); }
.recap-matches .kd { color: var(--fg-primary); font-weight: 600; }
.recap-matches .ratio { color: var(--t-orange); font-weight: 700; }

/* Role slide */
.role-name {
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 0.9;
  color: var(--t-orange);
  text-shadow: 0 0 60px rgba(255, 122, 61, 0.3);
}
.role-name.role-awp     { color: var(--role-awp); text-shadow: 0 0 60px rgba(255, 209, 102, 0.3); }
.role-name.role-star    { color: var(--role-star); text-shadow: 0 0 60px rgba(255, 122, 61, 0.4); }
.role-name.role-entry   { color: var(--role-entry); text-shadow: 0 0 60px rgba(239, 71, 111, 0.3); }
.role-name.role-anchor  { color: var(--role-anchor); text-shadow: 0 0 60px rgba(95, 179, 255, 0.3); }
.role-name.role-support { color: var(--role-support); text-shadow: 0 0 60px rgba(6, 214, 160, 0.3); }
.role-name.role-igl     { color: var(--role-igl); text-shadow: 0 0 60px rgba(179, 136, 255, 0.3); }

.role-tagline {
  color: var(--fg-secondary);
  font-size: 1.125rem;
}

.role-silhouette {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid currentColor;
  opacity: 0.4;
}
.silhouette-placeholder {
  width: 100px;
  height: 130px;
  background: linear-gradient(180deg, var(--fg-tertiary) 0%, transparent 100%);
  clip-path: polygon(50% 0%, 60% 15%, 75% 35%, 75% 100%, 25% 100%, 25% 35%, 40% 15%);
  opacity: 0.5;
}

.role-votes {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--fg-tertiary);
}
.role-votes li {
  padding: 0.25rem 0.625rem;
  background: var(--bg-elev-1);
  border-radius: 0.375rem;
}

/* Pro Match slide */
.pro-nick {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, var(--t-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 0.95;
}

.pro-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--fg-secondary);
}
.pro-meta .pro-role {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--bg-elev-2);
  color: var(--fg-primary);
  font-weight: 600;
}
.pro-meta .pro-sim strong {
  color: var(--t-orange);
  font-weight: 700;
  font-size: 1.25em;
}

.pro-runnerup {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 400px;
}
.pro-runnerup li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0.875rem;
  background: var(--bg-elev-1);
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--fg-secondary);
}
.pro-runnerup .rank {
  color: var(--fg-tertiary);
  font-weight: 700;
}
.pro-runnerup .nick {
  color: var(--fg-primary);
  font-weight: 600;
  text-align: left;
}
.pro-runnerup .sim {
  color: var(--t-orange);
}

/* Weapon Style slide */
.weapon-bars {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
  max-width: 400px;
}
.weapon-bar {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  gap: 0.875rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}
.weapon-bar .label {
  color: var(--fg-secondary);
  text-align: left;
}
.weapon-bar .track {
  height: 10px;
  background: var(--bg-elev-2);
  border-radius: 999px;
  overflow: hidden;
}
.weapon-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--t-orange), var(--ct-blue));
  border-radius: 999px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.weapon-bar .pct {
  color: var(--fg-primary);
  text-align: right;
  font-weight: 600;
}

/* Stats Grid slide */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  width: 100%;
  max-width: 480px;
}
.stat-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--bg-elev-2);
  border-radius: 0.875rem;
  padding: 1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-card.highlight {
  border-color: var(--t-orange);
  background: var(--t-orange-soft);
}
.stat-card .label {
  color: var(--fg-tertiary);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stat-card .value {
  color: var(--fg-primary);
  font-size: 1.5rem;
  font-weight: 700;
}
.stat-card .diff {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--role-support);
}
.stat-card .diff.below { color: var(--fg-tertiary); }

.share-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}
.share-btn {
  background: var(--bg-elev-2);
  color: var(--fg-primary);
  border: 1px solid var(--bg-elev-2);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.125rem;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: all 0.2s;
}
.share-btn:hover {
  background: var(--bg-elev-1);
  border-color: var(--t-orange);
  transform: translateY(-1px);
}
.share-btn.primary {
  background: var(--t-orange);
  color: #000;
  border-color: var(--t-orange);
}
.share-btn.primary:hover { background: #ff8d54; }

/* ─────────────────────────────────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────────────────────────────────── */

.slide-nav {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.nav-arrow {
  background: var(--bg-elev-1);
  color: var(--fg-primary);
  border: 1px solid var(--bg-elev-2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  transition: all 0.2s;
}
.nav-arrow:hover {
  background: var(--bg-elev-2);
  border-color: var(--t-orange);
}
.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nav-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: min(60vw, 360px);
}
.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg-tertiary);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.nav-dot.active {
  background: var(--t-orange);
  width: 24px;
  border-radius: 999px;
}

/* ─────────────────────────────────────────────────────────────────────────
   Slide: Best Round
   ───────────────────────────────────────────────────────────────────────── */

.best-round-hero {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
}
.best-round-kills {
  font-family: var(--font-mono);
  font-size: clamp(6rem, 22vw, 14rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--t-orange);
  text-shadow: 0 0 60px rgba(255, 122, 61, 0.4);
}
.best-round-label {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--fg-secondary);
  font-weight: 500;
}
.best-round-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--fg-secondary);
  margin-bottom: 1.5rem;
}
.bm-map {
  text-transform: lowercase;
  color: var(--fg-primary);
  font-weight: 600;
}
.bm-sep { opacity: 0.4; }
.bm-num strong {
  color: var(--t-orange);
  font-weight: 700;
}
.best-round-victims {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}
.best-round-victims li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg-elev-1);
  border: 1px solid var(--bg-elev-2);
  border-radius: 999px;
  color: var(--fg-secondary);
}
.best-round-victims li::before {
  content: '× ';
  color: var(--t-orange);
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────────────────
   Slide: Longest Kill
   ───────────────────────────────────────────────────────────────────────── */

.longest-hero {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  justify-content: center;
  margin: 1.5rem 0 2rem;
}
.longest-distance {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--role-awp);
  text-shadow: 0 0 60px rgba(255, 209, 102, 0.4);
}
.longest-unit {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--fg-secondary);
  font-weight: 500;
}
.longest-detail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
  margin: 0 auto 1.5rem;
  background: var(--bg-elev-1);
  border: 1px solid var(--bg-elev-2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.longest-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--bg-elev-2);
  font-family: var(--font-mono);
}

/* Longest Kill mini-map (shooter → victim arrow). Hidden until we have
   positions in the payload AND a baseline for the map. Slightly smaller
   than the Position Heatmap canvas — it's an accent, not the main viz. */
.longest-mapwrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 360px;
  margin: 0 auto 1.25rem;
}
#longestMapCanvas {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  background: #0a0a14;
  border: 1px solid var(--bg-elev-2);
  border-radius: 12px;
  image-rendering: auto;
}
.longest-mapwrap-legend {
  display: flex;
  gap: 1.2rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}
.longest-mapwrap-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lmw-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
}
.lmw-dot--shooter { background: var(--role-awp); box-shadow: 0 0 6px rgba(255,209,102,0.6); }
.lmw-dot--victim  { background: var(--role-entry); }
.longest-row:last-child { border-bottom: none; }
.ld-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}
.ld-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-primary);
}

/* ─────────────────────────────────────────────────────────────────────────
   Slide: Top Wow Stat
   ───────────────────────────────────────────────────────────────────────── */

.topwow-metric {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  text-align: center;
  color: var(--fg-primary);
  margin: 1rem 0 1.5rem;
  letter-spacing: -0.02em;
}
.topwow-value-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.topwow-value {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ct-blue);
  text-shadow: 0 0 60px rgba(95, 179, 255, 0.35);
}
.topwow-vs {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--fg-secondary);
  background: var(--ct-blue-soft);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(95, 179, 255, 0.3);
}
.topwow-line {
  text-align: center;
  font-size: 1rem;
  color: var(--fg-secondary);
  max-width: 520px;
  margin: 0.5rem auto 0;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────────────────
   Slide: Signature Card
   ───────────────────────────────────────────────────────────────────────── */

.signature-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1f 100%);
  border: 1px solid var(--t-orange-soft);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  max-width: 380px;
  margin: 1rem auto 1.5rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.sig-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.sig-brand {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t-orange);
  font-weight: 700;
}
.sig-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-tertiary);
}
.sig-nick {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  color: var(--fg-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  word-break: break-word;
}
.sig-role-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--bg-elev-2);
}
.sig-role-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}
.sig-pro {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 800;
  color: var(--t-orange);
  letter-spacing: -0.02em;
  line-height: 1;
}
.sig-sim {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--fg-secondary);
  margin-top: 0.25rem;
}
.sig-sim strong {
  color: var(--ct-blue);
  font-weight: 700;
}
.sig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.sig-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid var(--bg-elev-2);
}
.sig-stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}
.sig-stat-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg-primary);
}
.sig-footer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--fg-tertiary);
  padding-top: 0.5rem;
  border-top: 1px solid var(--bg-elev-2);
}

/* ─────────────────────────────────────────────────────────────────────────
   Slide: Side Preference
   ───────────────────────────────────────────────────────────────────────── */

.side-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 480px;
  margin: 1.5rem auto;
}
.side-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--bg-elev-2);
}
.side-card.side-t {
  background: linear-gradient(135deg, rgba(255, 122, 61, 0.18), rgba(255, 122, 61, 0.04));
  border-color: rgba(255, 122, 61, 0.35);
  box-shadow: 0 4px 32px rgba(255, 122, 61, 0.12);
}
.side-card.side-ct {
  background: linear-gradient(135deg, rgba(95, 179, 255, 0.18), rgba(95, 179, 255, 0.04));
  border-color: rgba(95, 179, 255, 0.35);
  box-shadow: 0 4px 32px rgba(95, 179, 255, 0.12);
}
.side-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}
.side-card.side-t .side-name { color: var(--t-orange); }
.side-card.side-ct .side-name { color: var(--ct-blue); }
.side-wr {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--fg-primary);
}
.side-wr-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  margin-top: -0.25rem;
}
.side-detail {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-secondary);
  text-align: center;
}

/* ─────────────────────────────────────────────────────────────────────────
   Slide: Pistol King
   ───────────────────────────────────────────────────────────────────────── */

.pistol-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
}
.pistol-record {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: var(--role-support);
  text-shadow: 0 0 60px rgba(6, 214, 160, 0.4);
  letter-spacing: -0.02em;
}
.pistol-pct {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--fg-secondary);
  background: rgba(6, 214, 160, 0.12);
  border: 1px solid rgba(6, 214, 160, 0.3);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   Slide: Nemesis
   ───────────────────────────────────────────────────────────────────────── */

.nemesis-name {
  font-size: clamp(2.5rem, 9vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--role-entry);
  text-align: center;
  text-shadow: 0 0 60px rgba(239, 71, 111, 0.4);
  margin: 1.5rem 0 1rem;
  word-break: break-word;
}
.nemesis-detail {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.nemesis-count {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--fg-primary);
}
.nemesis-label {
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  color: var(--fg-secondary);
}

/* ─────────────────────────────────────────────────────────────────────────
   Slide: Multikill Tier
   ───────────────────────────────────────────────────────────────────────── */

.multikill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 560px;
  margin: 1.5rem auto;
}
.mk-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 0.5rem;
  background: var(--bg-elev-1);
  border: 1px solid var(--bg-elev-2);
  border-radius: 14px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mk-cell.has-count {
  background: linear-gradient(135deg, rgba(179, 136, 255, 0.16), rgba(179, 136, 255, 0.03));
  border-color: rgba(179, 136, 255, 0.4);
  box-shadow: 0 4px 24px rgba(179, 136, 255, 0.15);
}
.mk-cell.tier-5k {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.22), rgba(255, 209, 102, 0.04));
  border-color: var(--role-awp);
  box-shadow: 0 4px 32px rgba(255, 209, 102, 0.3);
  animation: ace-pulse 2s ease-in-out infinite;
}
@keyframes ace-pulse {
  0%, 100% { box-shadow: 0 4px 32px rgba(255, 209, 102, 0.3); }
  50% { box-shadow: 0 4px 48px rgba(255, 209, 102, 0.6); }
}
.mk-tier {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  font-weight: 700;
}
.mk-cell.has-count .mk-tier { color: var(--role-igl); }
.mk-cell.tier-5k .mk-tier { color: var(--role-awp); }
.mk-count {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--fg-primary);
}
.mk-cell:not(.has-count) .mk-count { color: var(--fg-tertiary); opacity: 0.4; }

/* ─────────────────────────────────────────────────────────────────────────
   Slide: Reaction Time / Time-to-First-Frag (v0.7.47+)
   ───────────────────────────────────────────────────────────────────────── */

.reaction-hero {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  justify-content: center;
  margin: 1.5rem 0 1rem;
}
.reaction-mean {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--role-support);
  text-shadow: 0 0 60px rgba(6, 214, 160, 0.4);
}
.reaction-unit {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--fg-secondary);
  font-weight: 500;
}
.reaction-fastest {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1rem auto;
  padding: 10px 16px;
  background: var(--bg-elev-1);
  border: 1px solid var(--bg-elev-2);
  border-radius: 10px;
  max-width: 460px;
  font-family: var(--font-mono);
}
.rf-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}
.rf-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--role-awp);
  flex-shrink: 0;
}
.rf-detail {
  font-size: 11px;
  color: var(--fg-secondary);
  margin-left: auto;
}

/* ─────────────────────────────────────────────────────────────────────────
   Slide: Best Clutch (v0.7.49+)
   Highest succeeded 1vN clutch across demos, with weapon/victim breakdown.
   ───────────────────────────────────────────────────────────────────────── */

.clutch-hero {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
}
.clutch-vn {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 20vw, 12rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--role-awp);
  text-shadow: 0 0 60px rgba(255, 209, 102, 0.45);
  letter-spacing: -0.04em;
}
.clutch-unit {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--fg-secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.clutch-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 480px;
  margin: 1rem auto;
  padding: 12px 16px;
  background: var(--bg-elev-1);
  border: 1px solid var(--bg-elev-2);
  border-radius: 10px;
  font-family: var(--font-mono);
}
.clutch-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  font-size: 12px;
}
.cl-label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}
.cl-value {
  color: var(--fg-primary);
  font-weight: 600;
  text-align: right;
}

/* ─────────────────────────────────────────────────────────────────────────
   Slide: Position Quality (v0.7.48+)
   % time spent in pro-baseline hotspots, broken down by round phase.
   ───────────────────────────────────────────────────────────────────────── */

.position-hero {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.5rem 0 1rem;
}
.position-pct {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--role-entry);
  text-shadow: 0 0 60px rgba(239, 71, 111, 0.4);
}
.position-unit {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--fg-secondary);
  font-weight: 500;
}
.position-phases {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 540px;
  margin: 1.25rem auto 1rem;
}
.position-phase {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
}
.pp-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}
.pp-bar {
  height: 8px;
  background: var(--bg-elev-1);
  border-radius: 4px;
  overflow: hidden;
}
.pp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--role-entry), rgba(239, 71, 111, 0.4));
  border-radius: 4px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pp-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-secondary);
  text-align: right;
}

/* ─────────────────────────────────────────────────────────────────────────
   Slide: Position Heatmap (v0.7.49+)
   Canvas-rendered pro-density heatmap with user trail overlay.
   ───────────────────────────────────────────────────────────────────────── */

.heatmap-canvas-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 1rem auto;
  max-width: 540px;
}
#heatmapCanvas {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  background: #0a0a0a;
  border: 1px solid var(--bg-elev-2);
  border-radius: 12px;
  image-rendering: pixelated;
}
.heatmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}
.hl-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.hl-dot--cold { background: #2a1a4a; }
.hl-dot--mid  { background: #ef4060; }
.hl-dot--hot  { background: #ffd166; box-shadow: 0 0 8px rgba(255, 209, 102, 0.7); }
.hl-dot--user-t  { background: #ef476f; border: 1px solid #fff; }
.hl-dot--user-ct { background: #5fb3ff; border: 1px solid #fff; }

/* ─────────────────────────────────────────────────────────────────────────
   Slide: Crosshair Discipline (v0.7.48+)
   Pre-engagement pitch deviation; lower = closer to head-level pre-aim.
   ───────────────────────────────────────────────────────────────────────── */

.crosshair-hero {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.5rem 0 1rem;
}
.crosshair-pitch {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--role-awp);
  text-shadow: 0 0 60px rgba(255, 209, 102, 0.4);
}
.crosshair-unit {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.8vw, 1.4rem);
  color: var(--fg-secondary);
  font-weight: 500;
}
.crosshair-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 540px;
  margin: 1.25rem auto 1rem;
}
.ch-row {
  display: grid;
  grid-template-columns: 110px 1fr 50px;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
}
.ch-row-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}
.ch-bar {
  height: 8px;
  background: var(--bg-elev-1);
  border-radius: 4px;
  overflow: hidden;
}
.ch-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ch-fill--head { background: linear-gradient(90deg, var(--role-support), rgba(6, 214, 160, 0.4)); }
.ch-fill--low  { background: linear-gradient(90deg, var(--role-awp), rgba(255, 209, 102, 0.4)); }
.ch-fill--high { background: linear-gradient(90deg, var(--role-anchor), rgba(95, 179, 255, 0.4)); }
.ch-row-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-secondary);
  text-align: right;
}

/* ─────────────────────────────────────────────────────────────────────────
   Slide: Consistency (v0.7.46+)
   ───────────────────────────────────────────────────────────────────────── */

.consistency-hero {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0 1rem;
}
.consistency-cv {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: var(--role-anchor);
  text-shadow: 0 0 60px rgba(95, 179, 255, 0.35);
}
.consistency-unit {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--fg-tertiary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.consistency-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 80px;
  max-width: 480px;
  margin: 1rem auto;
  padding: 0 0.5rem;
}
.consistency-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.consistency-bar .bar-fill {
  width: 100%;
  background: linear-gradient(180deg, rgba(95, 179, 255, 0.9), rgba(95, 179, 255, 0.5));
  border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.consistency-bar .bar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-tertiary);
}

/* ─────────────────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .role-silhouette { width: 140px; height: 140px; }
  .stats-grid { grid-template-columns: 1fr; }
  .share-actions { flex-direction: column; width: 100%; }
  .share-btn { width: 100%; }
  .signature-card { padding: 1.5rem 1.25rem; }
  .side-cards { grid-template-columns: 1fr; }
  .multikill-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Respect users' reduced-motion preference — disable count-ups + fades. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
