/* ==========================================================================
   PLAYBOTS ARENA — MINIMAL, CLEAN, CLASS D ONLY
   ========================================================================== */
.playbots-header {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.playbots-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.playbots-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--royal-gold);
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.playbots-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--royal-gold);
  box-shadow: 0 0 6px var(--royal-gold);
  display: inline-block;
}

.playbots-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 900;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.5px;
}

.playbots-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 640px;
  line-height: 1.45;
}

.playbots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.playbot-card {
  background: linear-gradient(165deg, rgba(16, 20, 30, 0.94) 0%, rgba(10, 12, 19, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.playbot-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.72), 0 0 26px rgba(245, 158, 11, 0.16);
}

.playbot-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.playbot-class-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94A3B8;
  font-family: var(--font-mono, monospace);
}

.playbot-elo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--royal-gold);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
}

.playbot-avatar-frame {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.playbot-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.playbot-card:hover .playbot-avatar-img {
  transform: scale(1.05);
}

.playbot-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.playbot-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0;
}

.playbot-style-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 10px;
  border-radius: 9999px;
}

.playbot-skill-meter {
  width: 78%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-top: 4px;
}

.playbot-skill-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.playbot-card-footer {
  width: 100%;
  margin-top: auto;
  padding-top: 4px;
}

.playbot-play-btn {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Light Theme Support */
html.light-theme .playbot-card,
body.light-theme .playbot-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

html.light-theme .playbot-card:hover,
body.light-theme .playbot-card:hover {
  border-color: #CBD5E1 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

html.light-theme .playbot-name,
body.light-theme .playbot-name,
html.light-theme .playbots-title,
body.light-theme .playbots-title {
  color: #0F172A !important;
}

html.light-theme .playbot-style-pill,
body.light-theme .playbot-style-pill {
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
  color: #475569 !important;
}


/* 1. Header & Controls */
.academy-rivals-header {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.academy-rivals-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.academy-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #F87171;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.academy-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #DC2626;
  box-shadow: 0 0 6px #DC2626;
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.academy-title {
  font-family: var(--font-heading, inherit);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 900;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.academy-subtitle {
  font-size: 0.86rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.45;
}

/* Academy Tier Filter Tabs */
.academy-tier-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

.academy-tier-tabs::-webkit-scrollbar {
  display: none;
}

.academy-tier-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(18, 22, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  font-family: var(--font-main, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.academy-tier-tab:hover {
  background: rgba(28, 34, 46, 0.9);
  border-color: rgba(255, 255, 255, 0.16);
  color: #F1F5F9;
}

.academy-tier-tab.active {
  background: #141822;
  border-color: rgba(212, 175, 55, 0.45);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(212, 175, 55, 0.06);
}

.academy-tier-tab .tier-count-chip {
  padding: 1px 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #CBD5E1;
}

.academy-tier-tab.active .tier-count-chip {
  background: rgba(212, 175, 55, 0.2);
  color: var(--royal-gold, #D4AF37);
}

.tier-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748B;
  display: inline-block;
  flex-shrink: 0;
}

.academy-tier-tab.tier-elite .tier-indicator-dot { background: #DC2626; box-shadow: 0 0 4px #DC2626; }
.academy-tier-tab.tier-class-a .tier-indicator-dot { background: #F59E0B; box-shadow: 0 0 4px #F59E0B; }
.academy-tier-tab.tier-class-b .tier-indicator-dot { background: #6366F1; box-shadow: 0 0 4px #6366F1; }
.academy-tier-tab.tier-class-c .tier-indicator-dot { background: #10B981; box-shadow: 0 0 4px #10B981; }
.academy-tier-tab.tier-class-d .tier-indicator-dot { background: #94A3B8; }

/* 2. Time Control Bar */
.academy-tc-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 20, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.academy-tc-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748B;
  font-family: var(--font-mono, monospace);
  flex-shrink: 0;
}

.academy-tc-bar .bot-tc-selector-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 !important;
}

.academy-tc-bar .btn-bot-tc {
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.academy-tc-bar .btn-bot-tc:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.15);
}

.academy-tc-bar .btn-bot-tc.active {
  background: #14171E;
  border-color: rgba(212, 175, 55, 0.5);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(212, 175, 55, 0.08);
}

.academy-tc-bar .btn-bot-tc.active svg {
  color: var(--royal-gold, #D4AF37);
}

/* 3. Academy Rivals Grid Gallery */
.academy-rivals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

/* Character Card */
.academy-rival-card {
  position: relative;
  background: #11141C;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.academy-rival-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease;
}

.academy-rival-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 0, 0, 0.4);
}

/* Tier Specific Accents on Top Border */
.academy-rival-card.card-tier-elite::before { background: linear-gradient(90deg, #DC2626, #F59E0B); }
.academy-rival-card.card-tier-class-a::before { background: linear-gradient(90deg, #F59E0B, #DC2626); }
.academy-rival-card.card-tier-class-b::before { background: linear-gradient(90deg, #6366F1, #38BDF8); }
.academy-rival-card.card-tier-class-c::before { background: linear-gradient(90deg, #10B981, #065F46); }
.academy-rival-card.card-tier-class-d::before { background: linear-gradient(90deg, #94A3B8, #475569); }

/* Card Header: Tier & ELO */
.rival-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rival-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.rival-tier-badge.badge-elite {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #FCA5A5;
}

.rival-tier-badge.badge-class-a {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FDE68A;
}

.rival-tier-badge.badge-class-b {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #C7D2FE;
}

.rival-tier-badge.badge-class-c {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #A7F3D0;
}

.rival-tier-badge.badge-class-d {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #E2E8F0;
}

.rival-elo-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 800;
  color: #FFFFFF;
}

.rival-elo-chip svg {
  color: var(--royal-gold, #D4AF37);
  width: 13px;
  height: 13px;
}

/* Portrait Frame */
.rival-portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #0A0C10;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rival-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.academy-rival-card:hover .rival-portrait-img {
  transform: scale(1.04);
}

.rival-portrait-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(10, 12, 16, 0.85) 100%);
  pointer-events: none;
}

.rival-status-indicator {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.60rem;
  font-weight: 700;
  color: #CBD5E1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.rival-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 5px #10B981;
}

/* Character Body Info */
.rival-body-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rival-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.rival-name {
  font-family: var(--font-heading, inherit);
  font-size: 1.12rem;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
}

.rival-moniker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #D4AF37;
  text-transform: uppercase;
}

.rival-style-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.rival-style-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.67rem;
  font-weight: 600;
  color: #94A3B8;
}

.rival-style-chip svg {
  width: 11px;
  height: 11px;
  color: #CBD5E1;
}

.rival-quote-snippet {
  font-size: 0.74rem;
  color: #94A3B8;
  font-style: italic;
  line-height: 1.35;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  padding-left: 8px;
  border-left: 2px solid rgba(212, 175, 55, 0.35);
}

/* Card Action Footer */
.rival-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.rival-btn-duel {
  flex: 1 1 auto;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.22), rgba(212, 175, 55, 0.16));
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #FFFFFF;
  font-family: var(--font-main, sans-serif);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.rival-btn-duel:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.35), rgba(212, 175, 55, 0.28));
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25), 0 0 10px rgba(212, 175, 55, 0.2);
  transform: translateY(-1px);
}

.rival-btn-duel svg {
  width: 14px;
  height: 14px;
  color: var(--royal-gold, #D4AF37);
}

.rival-btn-dossier {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rival-btn-dossier:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.rival-btn-dossier svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   INTERACTIVE ACADEMY RIVAL DOSSIER MODAL
   ========================================================================== */
.academy-dossier-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100010;
  background: rgba(6, 8, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: dossier-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dossier-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.academy-dossier-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  background: #10131B;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(220, 38, 38, 0.15);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
}

.academy-dossier-card::-webkit-scrollbar {
  width: 5px;
}
.academy-dossier-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.dossier-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 1.1rem;
  line-height: 1;
}

.dossier-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #EF4444;
}

/* Dossier Grid Layout */
.dossier-hero {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.dossier-portrait-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.45);
  background: #0A0C10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.dossier-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier-meta-column {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dossier-name {
  font-family: var(--font-heading, inherit);
  font-size: 1.45rem;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.15;
}

.dossier-moniker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #D4AF37;
  text-transform: uppercase;
}

.dossier-stats-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.dossier-stat-pill {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.70rem;
  font-weight: 700;
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dossier-stat-pill.stat-elo {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
  color: #FDE68A;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
}

/* Dossier Quote Box */
.dossier-quote-box {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.08);
  border-left: 3px solid #DC2626;
  border-top: 1px solid rgba(220, 38, 38, 0.15);
  border-right: 1px solid rgba(220, 38, 38, 0.15);
  border-bottom: 1px solid rgba(220, 38, 38, 0.15);
  color: #E2E8F0;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.45;
}

/* Dossier Bio Details */
.dossier-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dossier-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #64748B;
  font-family: var(--font-mono, monospace);
}

.dossier-section-desc {
  font-size: 0.80rem;
  color: #CBD5E1;
  line-height: 1.45;
  margin: 0;
}

/* Dossier Time Control Selector */
.dossier-tc-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.dossier-tc-btn {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94A3B8;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.dossier-tc-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.dossier-tc-btn.active {
  background: #14171E;
  border-color: rgba(212, 175, 55, 0.5);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(212, 175, 55, 0.08);
}

.dossier-tc-btn.active svg {
  color: var(--royal-gold, #D4AF37);
}

/* Dossier Play Match CTA */
.dossier-cta-btn {
  width: 100%;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-family: var(--font-main, sans-serif);
  font-size: 0.90rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.dossier-cta-btn:hover {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  box-shadow: 0 8px 26px rgba(220, 38, 38, 0.6);
  transform: translateY(-2px);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (< 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .academy-rivals-header {
    margin-bottom: 14px;
    gap: 12px;
  }

  .academy-title {
    font-size: 1.45rem;
  }

  .academy-subtitle {
    font-size: 0.78rem;
  }

  .academy-tc-bar {
    padding: 6px 10px;
    margin-bottom: 16px;
  }

  .academy-tc-label {
    display: none;
  }

  .academy-tc-bar .btn-bot-tc {
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  .academy-rivals-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Compact Horizontal Card on Mobile */
  .academy-rival-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .rival-portrait-frame {
    aspect-ratio: 16 / 9;
    max-height: 180px;
  }

  .rival-name {
    font-size: 1.05rem;
  }

  .rival-moniker {
    font-size: 0.68rem;
  }

  .rival-btn-duel {
    min-height: 38px;
    font-size: 0.75rem;
  }

  .academy-dossier-card {
    padding: 16px;
    gap: 14px;
  }

  .dossier-hero {
    gap: 12px;
  }

  .dossier-portrait-wrap {
    width: 90px;
    height: 90px;
  }

  .dossier-name {
    font-size: 1.25rem;
  }

  .dossier-tc-chips {
    grid-template-columns: repeat(2, 1fr);
  }
}
