/* ============================================
   MMA Fighter Manager — Components
   ============================================ */

/* --- Cards --- */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-light);
}

/* Interactive cards get lift effect */
.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-static {
  /* No hover effects */
}
.card-static:hover {
  transform: none;
  box-shadow: none;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-title-icon {
  font-size: 1.1rem;
}

.card-accent {
  border-color: var(--border-accent);
}

.card-accent::before {
  background: linear-gradient(90deg, transparent, var(--accent-red-glow), transparent);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
  color: white;
  box-shadow: 0 2px 12px var(--accent-red-glow);
}

.btn-primary:hover {
  box-shadow: 0 4px 20px var(--accent-red-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--glass-bg);
  border: var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-light);
}

.btn-orange {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
  color: var(--text-inverse);
  box-shadow: 0 2px 12px var(--accent-orange-glow);
}

.btn-orange:hover {
  box-shadow: 0 4px 20px var(--accent-orange-glow);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, var(--color-success), #27ae60);
  color: white;
  box-shadow: 0 2px 12px var(--color-success-glow);
}

.btn-danger {
  background: linear-gradient(135deg, var(--color-danger), #c0392b);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-xs);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-md);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* Advance Week Button */
.btn-advance-week {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
  color: white;
  font-weight: 700;
  font-size: var(--font-md);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(230, 57, 70, 0.3);
  letter-spacing: 0.02em;
  width: 100%;
  animation: glowPulse 3s ease-in-out infinite;
}

.btn-advance-week:hover {
  box-shadow: 0 6px 32px rgba(230, 57, 70, 0.5);
  transform: translateY(-2px);
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  font-size: var(--font-xs);
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.badge-available {
  background: rgba(46, 204, 113, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(46, 204, 113, 0.25);
}

.badge-injured {
  background: rgba(231, 76, 60, 0.15);
  color: var(--color-danger);
  border: 1px solid rgba(231, 76, 60, 0.25);
}

.badge-camp {
  background: rgba(244, 162, 97, 0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(244, 162, 97, 0.25);
}

.badge-champion {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.15));
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.badge-style {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.badge-win {
  background: rgba(46, 204, 113, 0.15);
  color: var(--color-success);
}

.badge-loss {
  background: rgba(231, 76, 60, 0.15);
  color: var(--color-danger);
}

/* --- Stat Bars --- */
.stat-bar-container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.stat-bar-label {
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--text-secondary);
  width: 90px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.stat-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: barFill 1s ease forwards;
}

.stat-bar-fill.stat-low {
  background: linear-gradient(90deg, #e74c3c, #e67e22);
}

.stat-bar-fill.stat-mid {
  background: linear-gradient(90deg, #f39c12, #f4a261);
}

.stat-bar-fill.stat-high {
  background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.stat-bar-fill.stat-elite {
  background: linear-gradient(90deg, var(--accent-red), var(--accent-orange));
}

.stat-bar-value {
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--text-primary);
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}

/* --- Radar Chart --- */
.radar-chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-md);
}

.radar-chart {
  width: 260px;
  height: 260px;
}

.radar-chart .radar-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.radar-chart .radar-axis {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.radar-chart .radar-area {
  fill: rgba(230, 57, 70, 0.2);
  stroke: var(--accent-red);
  stroke-width: 2;
  transition: all var(--transition-base);
}

.radar-chart .radar-area:hover {
  fill: rgba(230, 57, 70, 0.35);
}

.radar-chart .radar-point {
  fill: var(--accent-red);
  stroke: white;
  stroke-width: 1.5;
  r: 3.5;
  transition: r var(--transition-fast);
}

.radar-chart .radar-point:hover {
  r: 5;
}

.radar-chart .radar-label {
  fill: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  text-anchor: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
  padding: var(--space-xl);
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.25s ease;
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 1;
}

.modal-title {
  font-size: var(--font-xl);
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-xl);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

/* --- Modal Large (for fight details) --- */
.modal-lg {
  max-width: 1000px;
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease, fadeIn 0.3s ease;
  min-width: 300px;
  max-width: 450px;
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-message {
  font-size: var(--font-sm);
  flex: 1;
}

.toast-close {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
}

.toast-success { border-left: 3px solid var(--color-success); }
.toast-warning { border-left: 3px solid var(--color-warning); }
.toast-danger { border-left: 3px solid var(--color-danger); }
.toast-info { border-left: 3px solid var(--color-info); }

/* --- Fight Log --- */
.fight-log {
  font-family: var(--font-family);
}

.fight-log-round {
  margin-bottom: var(--space-lg);
}

.fight-log-round-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.fight-log-round-number {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
  color: white;
  font-weight: 800;
  font-size: var(--font-sm);
  padding: 2px 12px;
  border-radius: 20px;
}

.fight-log-round-title {
  font-weight: 700;
  font-size: var(--font-md);
  color: var(--text-primary);
}

.fight-log-event {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  border-left: 2px solid var(--border-subtle);
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-left: var(--space-sm);
  transition: border-color var(--transition-fast);
}

.fight-log-event:hover {
  border-left-color: var(--accent-red);
  color: var(--text-primary);
}

.fight-log-event.highlight {
  color: var(--accent-orange);
  font-weight: 600;
  border-left-color: var(--accent-orange);
}

.fight-log-event.finish {
  color: var(--accent-red);
  font-weight: 700;
  font-size: var(--font-base);
  border-left-color: var(--accent-red);
  padding: var(--space-md) var(--space-lg);
  background: rgba(230, 57, 70, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.fight-log-result {
  text-align: center;
  padding: var(--space-lg);
  margin-top: var(--space-md);
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  border: var(--glass-border);
}

.fight-log-result-method {
  font-size: var(--font-xl);
  font-weight: 800;
  color: var(--accent-red);
  margin-bottom: var(--space-xs);
}

.fight-log-result-detail {
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

/* --- Tables --- */
.table-container {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-subtle);
}

.table td {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.table tbody tr {
  transition: background var(--transition-fast);
}

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

.table tbody tr.highlighted {
  background: rgba(230, 57, 70, 0.06);
  border-left: 2px solid var(--accent-red);
}

/* --- Progress Ring --- */
.progress-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
}

.progress-ring-fill {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-ring-text {
  position: absolute;
  font-size: var(--font-sm);
  font-weight: 700;
}

/* --- Fighter Card --- */
.fighter-card {
  cursor: pointer;
}

.fighter-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.fighter-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xl);
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.fighter-card-info {
  flex: 1;
  min-width: 0;
}

.fighter-card-name {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.fighter-card-nickname {
  font-size: var(--font-xs);
  font-style: italic;
  color: var(--accent-yellow);
  font-weight: 600;
  margin-bottom: 3px;
  opacity: 0.9;
}

.fighter-modal-nickname {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--accent-yellow);
  font-weight: 600;
  margin-left: 6px;
  opacity: 0.85;
}

.fighter-detail-nickname {
  font-size: 1rem;
  font-style: italic;
  color: var(--accent-yellow);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
  opacity: 0.9;
}

.fighter-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.fighter-card-record {
  font-weight: 700;
  color: var(--text-secondary);
}

/* Potential bar on stat bars */
.stat-bar-track {
  position: relative;
}

.stat-bar-potential {
  position: absolute;
  top: 0;
  height: 100%;
  background: rgba(255, 214, 0, 0.18);
  border-radius: 0 2px 2px 0;
}

.stat-potential-hint {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
}



.fighter-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.fighter-mini-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.fighter-mini-stat-value {
  font-weight: 700;
  color: var(--text-secondary);
}

/* --- Morale Bar --- */
.morale-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: var(--space-sm);
}

.morale-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* --- Tab Navigation --- */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  padding: 3px;
  border: var(--glass-border);
  margin-bottom: var(--space-lg);
  overflow-x: auto;
}

.tab {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.tab.active {
  background: var(--accent-red);
  color: white;
}

/* --- Merged View Tabs (Équipe, Compétition) --- */
.merged-view-tabs {
  display: flex;
  gap: 2px;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  padding: 3px;
  border: var(--glass-border);
  margin-bottom: var(--space-lg);
  width: fit-content;
}

.merged-tab {
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: none;
  border: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.merged-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.merged-tab.active {
  background: var(--accent-yellow);
  color: #000;
  font-weight: 800;
}



/* --- Training Card --- */
.training-option {
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.training-option:hover {
  border-color: var(--border-light);
}

.training-option.selected {
  border-color: var(--accent-red);
  background: rgba(230, 57, 70, 0.06);
}

.training-option-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.training-option-name {
  font-weight: 700;
  font-size: var(--font-base);
  margin-bottom: var(--space-xs);
}

.training-option-desc {
  font-size: var(--font-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

.training-option-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.training-stat-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(46, 204, 113, 0.12);
  color: var(--color-success);
}

.training-stat-chip.risk {
  background: rgba(231, 76, 60, 0.12);
  color: var(--color-danger);
}

/* --- Metric Card (Dashboard) --- */
.metric-value {
  font-size: var(--font-3xl);
  font-weight: 900;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin: var(--space-sm) 0;
}

.metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-xs);
  font-weight: 600;
}

.metric-trend.up {
  color: var(--color-success);
}

.metric-trend.down {
  color: var(--color-danger);
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.3;
}

.empty-state-text {
  font-size: var(--font-base);
  margin-bottom: var(--space-lg);
}

/* --- Tooltip --- */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: var(--font-xs);
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  border: 1px solid var(--border-light);
  z-index: 100;
  margin-bottom: 6px;
}

.tooltip:hover::after {
  opacity: 1;
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-lg) 0;
}

/* --- Welcome Modal --- */
.welcome-content {
  text-align: center;
  padding: var(--space-xl) 0;
}

.welcome-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
}

.welcome-title {
  font-size: var(--font-3xl);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.welcome-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-base);
  margin-bottom: var(--space-xl);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-input-group {
  max-width: 350px;
  margin: 0 auto var(--space-xl);
  text-align: left;
}

.welcome-input-label {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  display: block;
}

.welcome-input {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--font-md);
  text-align: center;
  border-radius: var(--radius-md);
}

/* ─── Welcome Mode Selector ─── */
.welcome-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  max-width: 380px;
  margin: 0 auto var(--space-lg);
}

.welcome-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: var(--space-sm) var(--space-xs);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.welcome-mode-btn:hover {
  border-color: var(--accent-yellow);
  color: var(--text-primary);
}

.welcome-mode-btn.active {
  background: rgba(255, 214, 0, 0.08);
  border-color: var(--accent-yellow);
  color: var(--text-primary);
}

.welcome-mode-icon {
  font-size: 1.5rem;
}

.welcome-mode-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.welcome-mode-desc {
  font-size: 10px;
  color: var(--text-muted);
}

/* ─── League Code Display ─── */
.league-code-display {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(255, 214, 0, 0.08);
  border: 2px solid var(--accent-yellow);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-xl);
  cursor: pointer;
  margin-bottom: var(--space-md);
  transition: background var(--transition-fast);
}

.league-code-display:hover {
  background: rgba(255, 214, 0, 0.14);
}

.league-code-text {
  font-size: 2rem;
  font-weight: 900;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.15em;
  color: var(--accent-yellow);
}

.league-code-copy-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}



/* --- Fight Night Full Page --- */
.fight-night-active {
  display: none !important;
}

.fight-night-mode {
  margin-left: 0 !important;
  width: 100% !important;
}

.fight-night-mode::before {
  left: 0 !important;
}

.fight-night-mode .view-container {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow-y: auto;
  height: 100vh;
}

.fn-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-xl);
  animation: fadeIn 0.5s ease;
}

/* 📋 Game Plan Screen */
.game-plan-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 700px;
  padding: var(--space-md) var(--space-md) var(--space-xl);
}

.gp-header {
  text-align: center;
}

.gp-title {
  font-size: var(--font-2xl);
  font-weight: 900;
  color: #fff;
  margin-bottom: var(--space-lg);
  letter-spacing: 1px;
}

.gp-matchup {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  justify-content: center;
}

.gp-fighter {
  text-align: center;
}

.gp-fighter-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--font-xs);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto var(--space-xs);
}

.gp-fighter-name {
  font-weight: 700;
  font-size: var(--font-sm);
  color: var(--text-primary);
}

.gp-fighter-record {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.gp-vs {
  font-size: var(--font-xl);
  font-weight: 900;
  color: var(--accent-red);
  text-shadow: 0 0 10px rgba(230, 57, 70, 0.3);
}

/* Scouting Report */
.gp-scout {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.gp-scout-title {
  font-weight: 800;
  font-size: var(--font-md);
  margin-bottom: var(--space-xs);
  color: var(--accent-orange);
}

.gp-scout-style {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.gp-scout-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.gp-scout-label {
  font-size: var(--font-xs);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.gp-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-sm);
  padding: 2px 0;
}

.gp-stat-good .gp-stat-val {
  color: #2ecc71;
  font-weight: 700;
}

.gp-stat-bad .gp-stat-val {
  color: var(--accent-red);
  font-weight: 700;
}

.gp-coach-tip {
  font-size: var(--font-sm);
  color: var(--accent-orange);
  font-style: italic;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(255, 159, 28, 0.08);
  border-radius: 8px;
  border-left: 3px solid var(--accent-orange);
}

/* Recommendation badge */
.gp-rec {
  color: var(--accent-orange);
  font-size: 14px;
  margin-left: 2px;
}

.gp-option.gp-recommended {
  border-color: rgba(255, 159, 28, 0.4);
  background: rgba(255, 159, 28, 0.08);
}

.gp-axes {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.gp-axis-title {
  font-size: var(--font-xs);
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.gp-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.gp-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-md) var(--space-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.gp-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.gp-option.selected {
  background: rgba(244, 162, 97, 0.1);
  border-color: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 12px rgba(244, 162, 97, 0.15);
}

.gp-icon {
  font-size: var(--font-xl);
}

.gp-opt-name {
  font-weight: 700;
  font-size: var(--font-sm);
}

.gp-opt-desc {
  font-size: 10px;
  color: var(--text-muted);
}

.gp-option.selected .gp-opt-desc {
  color: var(--text-secondary);
}

.gp-start-btn {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--font-base);
  font-weight: 800;
  letter-spacing: 0.5px;
  position: sticky;
  bottom: var(--space-md);
  z-index: 100;
  width: 100%;
  max-width: 400px;
}

/* 🎮 QTE (Quick Time Events) */
.qte-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 200;
  animation: qte-fade-in 0.15s ease;
}

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

.qte-prompt {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qte-timer-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.qte-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 4;
}

.qte-ring-progress {
  fill: none;
  stroke: var(--accent-orange);
  stroke-width: 5;
  stroke-linecap: round;
}

.qte-button {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-red), #c1313d);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(230, 57, 70, 0.5), 0 0 60px rgba(230, 57, 70, 0.2);
  animation: qte-pulse 0.6s ease infinite alternate;
  transition: all 0.3s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

@keyframes qte-pulse {
  from { transform: scale(1); box-shadow: 0 0 30px rgba(230, 57, 70, 0.5); }
  to { transform: scale(1.08); box-shadow: 0 0 50px rgba(230, 57, 70, 0.7); }
}

.qte-button:active {
  transform: scale(0.9);
}

.qte-emoji {
  font-size: 28px;
  line-height: 1;
}

.qte-label {
  font-size: 11px;
  font-weight: 900;
  color: white;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* QTE Success */
.qte-button.qte-success {
  background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
  box-shadow: 0 0 40px rgba(46, 204, 113, 0.6) !important;
  animation: qte-success-pop 0.4s ease !important;
}

@keyframes qte-success-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1.1); }
}

/* QTE Fail */
.qte-button.qte-fail {
  background: linear-gradient(135deg, #555, #333) !important;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3) !important;
  animation: qte-fail-shake 0.4s ease !important;
  opacity: 0.6;
}

@keyframes qte-fail-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-4px); }
}

/* Pre-fight header */
.fn-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl) 0;
  background: linear-gradient(180deg, rgba(230, 57, 70, 0.08) 0%, transparent 100%);
  border-radius: var(--radius-xl);
}

.fn-event-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.5px;
}

.fn-event-sub {
  font-size: var(--font-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* Pre-fight cards */
.fn-fight-card {
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.03), rgba(8, 8, 16, 0.95), rgba(244, 162, 97, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.fn-fight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-red), transparent 30%, transparent 70%, var(--accent-orange));
}

.fn-fight-card.fn-cancelled {
  opacity: 0.35;
  filter: grayscale(0.5);
}

.fn-card-fighter {
  flex: 1;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.fn-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: var(--font-xl);
  color: white;
  margin-bottom: var(--space-sm);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 0, 0, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.fn-card-name {
  font-weight: 800;
  font-size: var(--font-xl);
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.fn-card-record {
  font-size: var(--font-sm);
  color: var(--text-muted);
  font-weight: 600;
}

.fn-card-ovr {
  font-size: var(--font-2xl);
  font-weight: 900;
  margin-top: var(--space-xs);
  background: linear-gradient(135deg, var(--accent-orange), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fn-card-style {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  padding: 2px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
}

/* Scouting profile */
.fn-scout {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  text-align: left;
  width: 100%;
  max-width: 200px;
}

.fn-scout-title {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: var(--space-xs);
}

.fn-scout-winrate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.fn-scout-pct {
  font-size: var(--font-lg);
  font-weight: 900;
}

.fn-scout-pct.high { color: var(--color-success); }
.fn-scout-pct.mid { color: var(--accent-orange); }
.fn-scout-pct.low { color: var(--accent-red); }

.fn-scout-label {
  font-size: var(--font-xs);
  color: var(--text-muted);
  font-weight: 600;
}

.fn-scout-finish {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: var(--space-xs);
}

.fn-scout-finish-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.fn-scout-type {
  font-size: 9px;
  color: var(--text-muted);
}

.fn-scout-val {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
}

.fn-scout-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  margin-bottom: var(--space-xs);
}

.fn-scout-stat {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.fn-scout-dots {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--accent-orange);
}

.fn-scout-streak {
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  color: var(--text-secondary);
}

/* Clickable fighter in offers */
.offer-fighter-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}

.offer-fighter-clickable:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.offer-scout-hint {
  font-size: 9px;
  font-weight: 800;
  color: var(--accent-orange);
  letter-spacing: 1px;
  margin-top: var(--space-xs);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.offer-opponent-clickable:hover .offer-scout-hint {
  opacity: 1;
}

/* Scout tendency grid (opponent detail modal) */
.scout-tendency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  text-align: center;
}

.scout-tendency-item {
  padding: var(--space-sm);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.scout-tendency-val {
  font-size: var(--font-lg);
  font-weight: 900;
  color: var(--text-primary);
}

.scout-tendency-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ========== MATCHMAKING ========== */
.offer-reason-badge {
  font-size: 9px;
  font-weight: 800;
  color: var(--accent-orange);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px var(--space-sm);
  margin-bottom: var(--space-xs);
}

.badge-pending {
  background: rgba(244, 162, 97, 0.1);
  color: var(--accent-orange);
  font-size: 9px;
  padding: 2px 6px;
}

.btn-xs {
  padding: 3px 8px;
  font-size: 11px;
}

.propose-target {
  text-align: center;
  margin-bottom: var(--space-md);
}

.propose-target-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.propose-target-fighter {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  justify-content: center;
}

.propose-divider {
  text-align: center;
  font-size: var(--font-xl);
  font-weight: 900;
  color: var(--text-muted);
  padding: var(--space-sm) 0;
}

.propose-select-label {
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.propose-candidates {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.propose-candidate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.propose-candidate:not(.disabled):hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-orange);
  transform: translateX(4px);
}

.propose-candidate.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.propose-candidate-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.propose-candidate-chance {
  text-align: right;
}

.propose-chance-val {
  font-size: var(--font-lg);
  font-weight: 900;
}

.propose-chance-val.high { color: var(--color-success); }
.propose-chance-val.mid { color: var(--accent-orange); }
.propose-chance-val.low { color: var(--accent-red); }

.summary-challenge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  font-weight: 600;
}

.summary-challenge.accepted {
  background: rgba(46, 204, 113, 0.06);
  color: var(--color-success);
}

.summary-challenge.refused {
  background: rgba(230, 57, 70, 0.06);
  color: var(--text-muted);
}

/* Confirm matchup modal */
.confirm-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

.confirm-fighter {
  text-align: center;
  flex: 1;
}

.confirm-fighter .fighter-mini-avatar {
  margin: 0 auto var(--space-sm);
}

.confirm-fighter-name {
  font-weight: 800;
  font-size: var(--font-md);
}

.confirm-vs {
  font-size: var(--font-2xl);
  font-weight: 900;
  color: var(--text-muted);
  flex-shrink: 0;
}

.confirm-details {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin: var(--space-md) 0;
}

.confirm-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
  font-size: var(--font-sm);
}

.confirm-detail-row + .confirm-detail-row {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.confirm-actions {
  text-align: center;
  padding-top: var(--space-md);
}

/* Event modal */
.event-modal {
  animation: eventAppear 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.event-modal-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.event-modal-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.event-modal-title {
  font-size: var(--font-xl);
  font-weight: 800;
}

.event-modal-fighter {
  color: var(--text-muted);
  font-size: var(--font-sm);
  margin-top: 2px;
}

.event-modal-desc {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.event-choices {
  margin-top: var(--space-md);
}

.event-choice-btn {
  text-align: left;
  font-weight: 600;
  transition: all 0.2s ease;
}

.event-choice-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.event-dismiss-btn {
  width: 100%;
  text-align: center;
  opacity: 0.6;
}

.fn-card-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-shrink: 0;
  padding: var(--space-xl) var(--space-md);
  min-width: 80px;
}

.fn-card-vs {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-red);
  letter-spacing: 4px;
  text-shadow: 0 0 30px rgba(230, 57, 70, 0.5), 0 0 60px rgba(230, 57, 70, 0.2);
}

.fn-card-wc {
  font-size: var(--font-xs);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fn-card-title {
  font-size: var(--font-sm);
  font-weight: 700;
  color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
  padding: 4px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 215, 0, 0.25);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.fn-start-area {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-2xl);
}

.fn-start-btn {
  font-size: var(--font-lg) !important;
  padding: var(--space-md) 3rem !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 800 !important;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
}

/* ============ LIVE FIGHT ============ */
.fn-live {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 10px);
  background: linear-gradient(180deg, rgba(8, 8, 16, 1) 0%, rgba(15, 15, 30, 1) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.fn-live-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-sm) var(--space-xl);
  background: linear-gradient(90deg, rgba(230, 57, 70, 0.15), rgba(15, 15, 30, 0.9), rgba(244, 162, 97, 0.15));
  border-bottom: 1px solid rgba(230, 57, 70, 0.15);
  flex-shrink: 0;
}

.fn-speed-controls {
  display: flex;
  gap: 2px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fn-speed-btn {
  padding: 3px 8px;
  font-size: 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.2s;
  line-height: 1;
}

.fn-speed-btn:hover {
  opacity: 0.7;
}

.fn-speed-btn.active {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.fn-live-event {
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.fn-live-round {
  font-size: var(--font-base);
  color: #fff;
  font-weight: 800;
  padding: 4px 20px;
  background: linear-gradient(135deg, var(--accent-red), rgba(230, 57, 70, 0.6));
  border-radius: var(--radius-md);
  letter-spacing: 0.5px;
}

.fn-live-title {
  font-size: 10px;
  font-weight: 800;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* 3-column main */
.fn-live-main {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Bottom stats must stay visible */
.fn-live-stats {
  flex-shrink: 0 !important;
  z-index: 2;
}

/* Fighter side panels */
.fn-live-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  position: relative;
}

.fn-panel-f1 {
  background: linear-gradient(135deg, rgba(244, 162, 97, 0.06), transparent);
  border-right: 1px solid rgba(244, 162, 97, 0.1);
}

.fn-panel-f2 {
  background: linear-gradient(225deg, rgba(230, 57, 70, 0.06), transparent);
  border-left: 1px solid rgba(230, 57, 70, 0.1);
}

.fn-panel-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: var(--font-lg);
  color: white;
  margin-bottom: var(--space-sm);
  position: relative;
}

.fn-panel-f1 .fn-panel-avatar {
  box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.3), 0 0 20px rgba(244, 162, 97, 0.15);
}

.fn-panel-f2 .fn-panel-avatar {
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.3), 0 0 20px rgba(230, 57, 70, 0.15);
}

.fn-panel-name {
  font-weight: 800;
  font-size: var(--font-base);
  color: var(--text-primary);
  word-break: break-word;
  line-height: 1.2;
  margin-bottom: 2px;
}

.fn-panel-record {
  font-size: var(--font-xs);
  color: var(--text-muted);
  font-weight: 600;
}

.fn-panel-ovr {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-top: var(--space-lg);
}

.fn-panel-f1 .fn-panel-ovr {
  background: linear-gradient(135deg, var(--accent-orange), #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fn-panel-f2 .fn-panel-ovr {
  background: linear-gradient(135deg, var(--accent-red), #ff6b7a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fn-panel-ovr-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.fn-panel-style {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  margin-top: var(--space-md);
  padding: 3px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* HP Bars */
.fn-hp-bar-wrap {
  width: 100%;
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.fn-hp-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fn-hp-fill {
  height: 100%;
  width: 100%;
  background: var(--color-success);
  border-radius: 4px;
  transition: width 0.6s ease, background 0.4s ease;
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.3);
}

.fn-hp-fill-f2 {
  float: right;
}

.fn-hp-fill.hp-critical {
  animation: hp-pulse 0.8s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
}

.fn-hp-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 30px;
  text-align: center;
}

@keyframes hp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Screen shake on big hits */
.fn-live.shake {
  animation: screen-shake 0.3s ease-in-out;
}

@keyframes screen-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3px, 1px); }
  40% { transform: translate(3px, -1px); }
  60% { transform: translate(-2px, 2px); }
  80% { transform: translate(2px, -1px); }
}

/* Center commentary */
.fn-live-center {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.fn-live-center .live-event-log {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg) var(--space-xl);
  max-height: none;
  min-height: 0;
}

/* Bottom stats */
.fn-live-stats {
  flex-shrink: 0;
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.3);
}

.fn-live-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.fn-live-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.fn-live-stat-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.fn-live-stat-val {
  font-size: var(--font-lg);
  font-weight: 900;
  min-width: 24px;
  text-align: center;
  line-height: 1;
}

.fn-live-stat-f1 {
  color: var(--accent-orange);
}

.fn-live-stat-f2 {
  color: var(--accent-red);
}

.fn-live-stat-val.stat-pop {
  animation: stat-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes stat-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.fn-stat-row {
  margin-bottom: 6px;
}

.fn-stat-bar-wrap {
  flex: 1;
}

.fn-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Continue button in results */
.fn-continue-btn {
  margin-top: var(--space-lg);
  width: 100%;
  text-transform: uppercase;
  font-weight: 800 !important;
  letter-spacing: 1px;
}

/* Mobile fight night */
@media (max-width: 768px) {
  .fn-page {
    padding: var(--space-md);
  }

  .fn-fight-card {
    flex-direction: column;
  }

  .fn-card-center {
    padding: var(--space-sm);
  }

  .fn-card-vs {
    font-size: 1.5rem;
  }

  .fn-card-avatar {
    width: 60px;
    height: 60px;
    font-size: var(--font-base);
  }

  .fn-live {
    height: calc(100vh - 5px);
    height: calc(100dvh - 5px);
  }

  .fn-live-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }

  .fn-live-panel {
    flex-direction: row;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
  }

  .fn-panel-f1 {
    border-right: none;
    border-bottom: 1px solid rgba(244, 162, 97, 0.1);
  }

  .fn-panel-f2 {
    border-left: none;
    border-top: 1px solid rgba(230, 57, 70, 0.1);
  }

  .fn-panel-avatar {
    width: 44px;
    height: 44px;
    font-size: var(--font-xs);
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .fn-panel-ovr {
    font-size: var(--font-xl);
    margin-top: 0;
  }

  .fn-panel-ovr-label,
  .fn-panel-style {
    display: none;
  }

  .fn-live-center .live-event-log {
    max-height: 40vh;
    max-height: 40dvh;
  }

  .fn-live-topbar {
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
  }

  .fn-live-event {
    font-size: 9px;
  }

  .fn-live-stats {
    padding: var(--space-sm) var(--space-md);
  }

  .fn-live-stats-grid {
    gap: var(--space-xs);
  }

  .fn-live-stat-val {
    font-size: var(--font-base);
  }

  .fn-live-stat-label {
    font-size: 8px;
  }

  .fn-hp-bar-wrap {
    display: none;
  }
}

/* --- Live Fight Replay --- */
.live-fight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.live-fight-container {
  width: 100%;
  max-width: 750px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.live-fight-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.08), rgba(244, 162, 97, 0.08));
  border-bottom: 1px solid var(--border-subtle);
}

.live-event-name {
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--text-secondary);
}

.live-round-indicator {
  font-size: var(--font-sm);
  color: var(--accent-orange);
  font-weight: 600;
  padding: 4px 14px;
  background: rgba(244, 162, 97, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(244, 162, 97, 0.2);
}

.live-fight-fighters {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.live-fighter {
  flex-shrink: 0;
  text-align: center;
  width: 100px;
}

.live-fighter-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-lg);
  font-weight: 800;
  color: white;
  margin: 0 auto var(--space-xs);
}

.live-f1 .live-fighter-avatar {
  box-shadow: 0 0 0 2px var(--accent-red);
}

.live-f2 .live-fighter-avatar {
  box-shadow: 0 0 0 2px var(--accent-orange);
}

.live-fighter-name {
  font-size: var(--font-xs);
  font-weight: 700;
  line-height: 1.2;
}

.live-fighter-record {
  font-size: 10px;
  color: var(--text-muted);
}

.live-fight-scoring {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
}

.live-score-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.live-score-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.live-dual-bar {
  display: flex;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.live-bar-f1 {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-orange), rgba(244, 162, 97, 0.7));
  border-radius: 3px 0 0 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 6px rgba(244, 162, 97, 0.3);
}

.live-bar-f2 {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(270deg, var(--accent-red), rgba(230, 57, 70, 0.7));
  border-radius: 0 3px 3px 0;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 6px rgba(230, 57, 70, 0.3);
}

.live-round-scores {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.live-round-chip {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  animation: pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.live-round-chip.f1-win {
  background: rgba(230, 57, 70, 0.15);
  color: var(--accent-red);
}

.live-round-chip.f2-win {
  background: rgba(244, 162, 97, 0.15);
  color: var(--accent-orange);
}

/* Event Log */
.live-event-log {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg) var(--space-xl);
  min-height: 200px;
  max-height: 340px;
}

.live-event-line {
  padding: 4px 0;
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  border-left: 2px solid transparent;
  padding-left: var(--space-md);
}

.live-event-line.live-highlight {
  color: var(--accent-orange);
  font-weight: 600;
  border-left-color: var(--accent-orange);
}

.live-event-line.live-finish {
  color: var(--accent-red);
  font-weight: 800;
  font-size: var(--font-base);
  border-left-color: var(--accent-red);
  padding: var(--space-sm) var(--space-md);
  background: rgba(230, 57, 70, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-sm) 0;
}

.live-round-separator {
  text-align: center;
  padding: var(--space-sm) 0;
  margin: var(--space-sm) 0;
  font-size: var(--font-xs);
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.live-round-end {
  text-align: center;
  padding: var(--space-xs) 0;
  margin: var(--space-xs) 0;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  font-style: italic;
}

/* 🎙️ AI Commentary Bubble */
.live-commentary {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-md) 0;
  background: linear-gradient(135deg, rgba(244, 162, 97, 0.06), rgba(230, 57, 70, 0.04));
  border: 1px solid rgba(244, 162, 97, 0.2);
  border-left: 3px solid var(--accent-orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
  overflow: hidden;
}

.live-commentary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244, 162, 97, 0.05), transparent 60%);
  pointer-events: none;
}

.live-commentary-icon {
  font-size: var(--font-lg);
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(244, 162, 97, 0.5));
  animation: pulse-glow 2s ease-in-out infinite;
}

.live-commentary-text {
  font-size: var(--font-sm);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.01em;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Result Card */
.live-result {
  text-align: center;
  padding: var(--space-xl);
  margin-top: var(--space-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.2));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.live-result-banner {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}

.live-result-banner.win {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(46, 204, 113, 0.06));
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.live-result-banner.loss {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.12), rgba(231, 76, 60, 0.04));
  color: var(--color-danger);
  border: 1px solid rgba(231, 76, 60, 0.3);
  text-shadow: 0 0 15px rgba(231, 76, 60, 0.3);
}

.live-result-winner {
  font-size: var(--font-xl);
  font-weight: 800;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.live-result-method {
  font-size: var(--font-base);
  color: var(--text-secondary);
  font-weight: 600;
}

/* ─── Full-screen fight result overlay ─── */
.fn-result-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fn-result-win {
  background: radial-gradient(ellipse at center, rgba(255, 214, 0, 0.15) 0%, rgba(0,0,0,0.92) 70%);
}

.fn-result-loss {
  background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.12) 0%, rgba(0,0,0,0.92) 70%);
}

.fn-result-inner {
  text-align: center;
  padding: var(--space-2xl);
  position: relative;
  z-index: 2;
}

.fn-result-label {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: var(--space-lg);
}

.fn-result-win .fn-result-label {
  color: var(--accent-yellow);
  text-shadow: 0 0 40px rgba(255, 214, 0, 0.5), 0 0 80px rgba(255, 214, 0, 0.2);
}

.fn-result-loss .fn-result-label {
  color: var(--accent-red);
  text-shadow: 0 0 40px rgba(220, 38, 38, 0.4);
}

.fn-result-name {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.fn-result-nickname {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-style: italic;
  color: var(--accent-yellow);
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: var(--space-md);
}

.fn-result-method {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-2xl);
}

.fn-result-btn {
  min-width: 200px;
}

/* ─── Confetti ─── */
.fn-confetti-piece {
  position: absolute;
  top: -20px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ─── Nickname in live fight panels ─── */
.fn-panel-nickname {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--accent-yellow);
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 2px;
}

.fn-card-nickname {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--accent-yellow);
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 2px;
}



.live-controls {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
}

/* Corner instruction used indicator */
.live-corner-used {
  text-align: center;
  padding: var(--space-xs) var(--space-md);
  margin: var(--space-sm) 0;
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--accent-orange);
  background: rgba(244, 162, 97, 0.06);
  border: 1px solid rgba(244, 162, 97, 0.15);
  border-radius: var(--radius-md);
}

/* Corner Instructions Panel */
.corner-instructions-panel {
  margin: var(--space-md) 0;
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(244, 162, 97, 0.04), rgba(230, 57, 70, 0.04));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.corner-header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.corner-title {
  font-size: var(--font-base);
  font-weight: 800;
  color: var(--text-primary);
}

.corner-subtitle {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.corner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.corner-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: var(--space-md) var(--space-sm);
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-primary);
  text-align: center;
}

.corner-btn:hover {
  border-color: var(--accent-orange);
  background: rgba(244, 162, 97, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 162, 97, 0.1);
}

.corner-btn:active {
  transform: translateY(0);
}

.corner-btn-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.corner-btn-name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.corner-btn-desc {
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.2;
}

@media (max-width: 600px) {
  .corner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Round Analysis Panel --- */
.round-analysis {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.round-analysis-title {
  font-size: var(--font-sm);
  font-weight: 800;
  color: var(--accent-orange);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.round-analysis-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--space-sm);
}

.analysis-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: var(--font-xs);
}

.analysis-stat-label {
  flex: 1;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.analysis-stat-val {
  width: 28px;
  text-align: center;
  font-weight: 800;
  color: var(--text-primary);
  font-size: var(--font-sm);
}

.analysis-stat-row .analysis-stat-val:first-child {
  color: var(--accent-orange);
}

.analysis-stat-row .analysis-stat-val:last-child {
  color: var(--accent-red);
}

.analysis-phase {
  text-align: center;
  font-size: var(--font-xs);
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-sm);
}

.analysis-condition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.analysis-condition-fighter {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.analysis-condition-name {
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
}

.analysis-bar-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.analysis-bar-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.analysis-bar-label {
  font-size: 10px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.analysis-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.analysis-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* --- Corner Recommendation Tags --- */
.corner-tag {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 3px;
}

.corner-tag-opportunity {
  background: rgba(46, 204, 113, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.corner-tag-risky {
  background: rgba(230, 57, 70, 0.12);
  color: var(--accent-red);
  border: 1px solid rgba(230, 57, 70, 0.25);
}

.corner-tag-safe {
  background: rgba(52, 152, 219, 0.12);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.25);
}

.corner-tag-wise {
  background: rgba(244, 162, 97, 0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(244, 162, 97, 0.25);
}

/* --- Scouting Modal --- */
.scout-modal {
  max-width: 680px;
  width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.scout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.scout-header-fighters {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.scout-your-fighter,
.scout-opponent {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.scout-vs {
  font-size: var(--font-xs);
  font-weight: 800;
  color: var(--text-muted);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  font-size: var(--font-base);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.scout-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg) var(--space-xl);
}

.scout-section {
  margin-bottom: var(--space-lg);
}

.scout-section-title {
  font-size: var(--font-sm);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.scout-profile-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.scout-profile-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-sm) var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  min-width: 100px;
}

.scout-stats-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scout-stat-row {
  display: grid;
  grid-template-columns: 55px 28px 1fr 28px 40px;
  gap: var(--space-sm);
  align-items: center;
  padding: 3px 0;
}

.scout-stat-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.scout-stat-val {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.scout-f1-val { color: var(--color-success); }
.scout-f2-val { color: var(--accent-orange); }

.scout-stat-bars {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scout-bar-container {
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
  overflow: hidden;
}

.scout-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

.scout-bar-yours { background: var(--color-success); }
.scout-bar-opp { background: var(--accent-orange); }

.scout-stat-diff {
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 1px 4px;
  border-radius: 4px;
}

.scout-stat-diff.advantage {
  color: var(--color-success);
  background: rgba(46, 204, 113, 0.1);
}

.scout-stat-diff.disadvantage {
  color: var(--color-danger);
  background: rgba(231, 76, 60, 0.1);
}

.scout-stat-diff.even { color: var(--text-muted); }

.scout-stat-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-sm);
}

.scout-legend-item {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.scout-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.scout-legend-dot.yours { background: var(--color-success); }
.scout-legend-dot.opp { background: var(--accent-orange); }

.scout-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.scout-col { margin-bottom: 0; }

.scout-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.scout-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.scout-tag.danger {
  background: rgba(231, 76, 60, 0.08);
  color: var(--color-danger);
  border: 1px solid rgba(231, 76, 60, 0.15);
}

.scout-tag.success {
  background: rgba(46, 204, 113, 0.08);
  color: var(--color-success);
  border: 1px solid rgba(46, 204, 113, 0.15);
}

.scout-recommendation {
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(244, 162, 97, 0.04), rgba(230, 57, 70, 0.04));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.scout-rec-text {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.scout-footer {
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

.scout-btn {
  font-size: 11px !important;
  padding: 4px 10px !important;
  flex-shrink: 0;
}

/* --- Draft / Fighter Selection Screen --- */
.draft-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.draft-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 10;
}

.draft-header-top {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.draft-logo {
  font-size: 2.5rem;
}

.draft-title {
  font-size: var(--font-2xl);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.draft-subtitle {
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-top: 2px;
}

.draft-counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: var(--space-md) var(--space-xl);
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
}

.draft-counter-current {
  font-size: var(--font-3xl);
  font-weight: 900;
  color: var(--accent-red);
  line-height: 1;
}

.draft-counter-sep {
  font-size: var(--font-xl);
  color: var(--text-muted);
  font-weight: 300;
}

.draft-counter-max {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--text-secondary);
}

.draft-counter-label {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-left: var(--space-sm);
}

.draft-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding: var(--space-2xl);
}

.draft-card {
  background: var(--glass-bg);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.draft-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.draft-card:hover {
  border-color: var(--border-light);
  background: var(--glass-bg-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.draft-card.selected {
  border-color: var(--color-success);
  background: rgba(46, 204, 113, 0.04);
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.15);
}

.draft-card.selected:hover {
  border-color: var(--color-success);
}

.draft-check {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 28px;
  height: 28px;
  background: var(--color-success);
  color: white;
  font-weight: 900;
  font-size: var(--font-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  z-index: 2;
  animation: pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.draft-card-top {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.draft-card-info {
  flex: 1;
  min-width: 0;
}

.draft-card-name {
  font-size: var(--font-base);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.draft-card-meta {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.draft-card-ovr {
  text-align: center;
  flex-shrink: 0;
}

.draft-ovr-value {
  font-size: var(--font-xl);
  font-weight: 900;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.draft-ovr-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.draft-card-badges {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.draft-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
}

.draft-card-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--space-md);
}

.draft-stat {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.draft-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  width: 50px;
  flex-shrink: 0;
}

.draft-stat-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.draft-stat-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

.draft-stat-value {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  width: 22px;
  text-align: right;
  flex-shrink: 0;
}

.draft-card-footer {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
}

.draft-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

@media (max-width: 1200px) {
  .draft-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .draft-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: var(--space-lg);
  }
  .draft-header {
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg);
  }
  .draft-footer {
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg);
  }
}

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

/* --- Game Over --- */
.game-over-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  animation: fadeIn 0.5s ease;
}

.game-over-content {
  text-align: center;
  animation: scaleIn 0.5s ease 0.3s both;
}

.game-over-title {
  font-size: var(--font-4xl);
  font-weight: 900;
  color: var(--accent-red);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.game-over-message {
  color: var(--text-secondary);
  font-size: var(--font-lg);
  margin-bottom: var(--space-xl);
}

/* --- Weekly Summary Overlay --- */
.summary-overlay {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.summary-modal {
  max-width: 640px;
}

.summary-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.summary-week-badge {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
}

.summary-week-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
}

.summary-week-number {
  font-size: var(--font-2xl);
  font-weight: 900;
  color: white;
  line-height: 1;
}

.summary-title {
  font-size: var(--font-xl);
  font-weight: 800;
}

.summary-subtitle {
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-top: 2px;
}

.summary-body {
  padding: var(--space-lg) var(--space-xl);
  max-height: 55vh;
  overflow-y: auto;
}

.summary-finance-bar {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  border: var(--glass-border);
  margin-bottom: var(--space-lg);
}

.summary-finance-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.summary-section {
  margin-bottom: var(--space-lg);
}

.summary-section-title {
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

.summary-fighter-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  transition: background var(--transition-fast);
}

.summary-fighter-row:hover {
  background: var(--glass-bg);
}

.summary-fighter-row.breakthrough-row {
  background: rgba(255, 214, 0, 0.05);
  border: 1px solid rgba(255, 214, 0, 0.2);
  animation: breakthroughPulse 0.6s ease;
}

@keyframes breakthroughPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 214, 0, 0.4); }
  50% { box-shadow: 0 0 20px 4px rgba(255, 214, 0, 0.15); }
  100% { box-shadow: none; }
}

.summary-breakthrough-badge {
  display: inline-block;
  background: var(--accent-yellow);
  color: #000;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  animation: statChipPop 0.4s ease;
}

.summary-fighter-info {
  flex: 1;
  min-width: 0;
}

.summary-fighter-name {
  font-size: var(--font-sm);
  font-weight: 600;
}

.summary-fighter-training {
  font-size: 11px;
  color: var(--text-muted);
}

.summary-fighter-gains {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 3px;
}

/* OVR Block */
.summary-ovr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
  min-width: 52px;
  text-align: center;
}

.summary-ovr-block.breakthrough {
  filter: drop-shadow(0 0 6px rgba(255, 214, 0, 0.5));
}

.summary-ovr-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-ovr-value {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.summary-ovr-arrow {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.summary-ovr-after {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}

.summary-ovr-delta {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.summary-ovr-delta.positive {
  background: rgba(46, 204, 113, 0.15);
  color: var(--color-success);
}

.summary-ovr-delta.negative {
  background: rgba(231, 76, 60, 0.15);
  color: var(--color-danger);
}

.summary-ovr-sub {
  font-size: 10px;
}

.summary-stat-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  animation: statChipPop 0.3s ease forwards;
  opacity: 0;
}

.summary-stat-chip.positive {
  background: rgba(46, 204, 113, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(46, 204, 113, 0.25);
}

.summary-stat-chip.negative {
  background: rgba(231, 76, 60, 0.15);
  color: var(--color-danger);
  border: 1px solid rgba(231, 76, 60, 0.25);
}

@keyframes statChipPop {
  0% { opacity: 0; transform: scale(0.6); }
  70% { transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

/* Staggered stat chip animations */
.summary-fighter-gains .summary-stat-chip:nth-child(1) { animation-delay: 0.1s; }
.summary-fighter-gains .summary-stat-chip:nth-child(2) { animation-delay: 0.2s; }
.summary-fighter-gains .summary-stat-chip:nth-child(3) { animation-delay: 0.3s; }
.summary-fighter-gains .summary-stat-chip:nth-child(4) { animation-delay: 0.4s; }
.summary-fighter-gains .summary-stat-chip:nth-child(5) { animation-delay: 0.5s; }
.summary-fighter-gains .summary-stat-chip:nth-child(6) { animation-delay: 0.6s; }
.summary-fighter-gains .summary-stat-chip:nth-child(7) { animation-delay: 0.7s; }

.summary-fighter-gains .summary-stat-chip:nth-child(8) { animation-delay: 0.8s; }

.summary-recovery-line {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-sm);
  color: var(--color-success);
}

.summary-next-event {
  text-align: center;
  padding: var(--space-md);
  font-size: var(--font-sm);
  color: var(--text-secondary);
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  border: var(--glass-border);
}

.summary-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

/* --- Milestone Celebration --- */
.milestone-section {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 165, 0, 0.03)) !important;
  border: 1px solid rgba(255, 215, 0, 0.2) !important;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
}

.milestone-title {
  color: #ffd700 !important;
  font-size: var(--font-md) !important;
}

.milestone-unlock {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 215, 0, 0.08);
  border-radius: var(--radius-sm);
  margin-top: var(--space-sm);
  border: 1px solid rgba(255, 215, 0, 0.15);
  opacity: 0;
  animation: milestonePopIn 0.5s ease forwards;
}

.milestone-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.milestone-label {
  font-size: var(--font-sm);
  font-weight: 700;
  color: #ffd700;
}

@keyframes milestonePopIn {
  0% { opacity: 0; transform: scale(0.5) translateY(10px); }
  60% { opacity: 1; transform: scale(1.1) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes animate-pop {
  0% { opacity: 0; transform: scale(0.5); }
  60% { transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

.animate-pop {
  animation: animate-pop 0.4s ease forwards;
  opacity: 0;
}

/* --- Win Celebration Glow --- */
.fight-result-win {
  animation: winCelebration 1.5s ease;
}

@keyframes winCelebration {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
  30% { box-shadow: 0 0 30px 10px rgba(46, 204, 113, 0.3); }
  60% { box-shadow: 0 0 15px 5px rgba(46, 204, 113, 0.15); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* --- Event Decision Modal --- */
.event-overlay {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
}

.event-modal {
  overflow: visible;
}

.event-modal-header {
  text-align: center;
  padding: var(--space-xl) var(--space-xl) var(--space-md);
}

.event-icon-wrapper {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(244, 162, 97, 0.15), rgba(230, 57, 70, 0.15));
  border: 1px solid rgba(244, 162, 97, 0.25);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  animation: pulse 2s ease infinite;
}

.event-icon {
  font-size: 2rem;
}

.event-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-orange);
  margin-bottom: var(--space-sm);
}

.event-title {
  font-size: var(--font-xl);
  font-weight: 800;
}

.event-body {
  padding: 0 var(--space-xl) var(--space-xl);
}

.event-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--font-base);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.event-choices {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.event-choice-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.event-choice-btn:hover {
  background: var(--glass-bg-hover);
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(244, 162, 97, 0.15);
}

.event-choice-btn:active {
  transform: translateY(0);
}

.event-choice-label {
  font-size: var(--font-base);
  font-weight: 700;
  margin-bottom: 4px;
}

.event-choice-desc {
  font-size: var(--font-xs);
  color: var(--text-muted);
  line-height: 1.4;
}

.event-result-chosen {
  text-align: center;
  font-weight: 700;
  font-size: var(--font-base);
  padding: var(--space-md);
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.event-result-effects {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.event-effect-line {
  padding: var(--space-sm) var(--space-md);
  background: var(--glass-bg);
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  text-align: center;
  animation: fadeInUp 0.3s ease both;
}

/* --- Animations for summary/events --- */
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 162, 97, 0.3); }
  50% { transform: scale(1.03); box-shadow: 0 0 20px 5px rgba(244, 162, 97, 0.15); }
}

.animate-scale-in {
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.animate-slide-in {
  animation: slideInLeft 0.4s ease both;
}

.animate-pop {
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   Fight Offer Cards
   ============================================ */

.offers-section {
  margin-bottom: var(--space-lg);
}

.offers-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md);
}

.offer-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all 0.2s ease;
}

.offer-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--color-primary);
  transform: translateY(-1px);
}

.offer-badge-title {
  position: absolute;
  top: -8px;
  right: var(--space-md);
  background: linear-gradient(135deg, #ffd700, #f4a261);
  color: #000;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--font-xs);
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.offer-matchup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.offer-fighter {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.offer-fighter-name {
  font-weight: 700;
  font-size: var(--font-sm);
  color: var(--text-primary);
}

.offer-fighter-meta {
  font-size: var(--font-xs);
  color: var(--text-secondary);
}

.offer-vs {
  font-size: var(--font-xl);
  font-weight: 900;
  color: var(--color-accent);
  flex-shrink: 0;
  text-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
}

.offer-details {
  display: flex;
  justify-content: space-around;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.offer-detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.offer-detail-icon {
  font-size: var(--font-lg);
}

.offer-detail-label {
  font-size: var(--font-xs);
  color: var(--text-secondary);
}

.offer-detail-value {
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.offer-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.offer-actions .btn {
  min-width: 120px;
}

/* ============================================
   Decline Reason Modal
   ============================================ */

.decline-reasons-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.decline-reason-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  color: var(--text-primary);
  width: 100%;
}

.decline-reason-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--color-accent);
  transform: translateX(4px);
}

.decline-reason-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.decline-reason-icon {
  font-size: var(--font-lg);
}

.decline-reason-label {
  font-weight: 700;
  font-size: var(--font-sm);
}

.decline-reason-desc {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  padding-left: calc(var(--font-lg) + var(--space-sm));
}

.decline-reason-effect {
  font-size: var(--font-xs);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-top: 2px;
  margin-left: calc(var(--font-lg) + var(--space-sm));
  width: fit-content;
}

.decline-reason-effect.negative {
  background: rgba(230, 57, 70, 0.12);
  color: var(--color-danger);
  border: 1px solid rgba(230, 57, 70, 0.2);
}

.decline-reason-effect.positive {
  background: rgba(46, 204, 113, 0.12);
  color: var(--color-success);
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.decline-reason-effect:not(.negative):not(.positive) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Mobile Responsive — Components
   ============================================ */

@media (max-width: 768px) {
  /* Offer cards */
  .offer-matchup {
    flex-direction: column;
    gap: var(--space-md);
  }

  .offer-vs {
    font-size: var(--font-lg);
  }

  .offer-details {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .offer-actions {
    flex-direction: column;
  }

  .offer-actions .btn {
    min-width: unset;
    width: 100%;
  }

  /* Fight sim */
  .fight-sim-container {
    padding: var(--space-md);
  }

  .fight-sim-vs {
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
  }

  .fight-sim-fighter-name {
    font-size: var(--font-base);
  }

  .fight-sim-vs-icon {
    font-size: var(--font-xl);
  }

  .fight-sim-events {
    max-height: 250px;
  }

  /* Corner instructions */
  .corner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
  }

  .corner-btn {
    padding: var(--space-sm);
    font-size: var(--font-xs);
  }

  /* Summary overlay */
  .summary-overlay .modal {
    margin: var(--space-sm);
  }

  /* Summary cards (dashboard) */
  .dashboard-summary-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .summary-card {
    padding: var(--space-md);
  }

  .summary-card-value {
    font-size: var(--font-lg);
  }

  /* Fight card mini */
  .fight-card-matchup {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }

  /* Draft */
  .draft-header-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .draft-title {
    font-size: var(--font-xl);
  }

  /* Scouting modal */
  .scout-stats-grid {
    grid-template-columns: 1fr;
  }

  .scout-matchup {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  /* Draft cards — full width, compact */
  .draft-grid {
    grid-template-columns: 1fr;
    padding: var(--space-sm);
    gap: var(--space-sm);
  }

  .draft-card {
    padding: var(--space-md);
  }

  .draft-card-stats {
    gap: var(--space-xs);
  }

  /* Dashboard summary 2 columns stays but smaller */
  .dashboard-summary-cards {
    gap: var(--space-xs);
  }

  .summary-card-label {
    font-size: var(--font-xs);
  }

  /* Offer cards */
  .offer-card {
    padding: var(--space-md);
  }

  .offer-fighter-name {
    font-size: var(--font-xs);
  }

  .offer-detail-label,
  .offer-detail-value {
    font-size: var(--font-xs);
  }

  /* Fight sim — tighter */
  .fight-sim-container {
    padding: var(--space-sm);
  }

  .fight-sim-events {
    max-height: 200px;
    font-size: var(--font-sm);
  }

  /* Corner — 2 columns on small phones */
  .corner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .corner-btn-title {
    font-size: var(--font-xs);
  }

  .corner-btn-desc {
    display: none;
  }

  /* Decline modal */
  .decline-reason-desc {
    font-size: 10px;
  }

  .decline-reason-effect {
    font-size: 10px;
  }

  /* Welcome/intro screen */
  .welcome-content {
    padding: var(--space-md);
  }

  .welcome-title {
    font-size: var(--font-xl);
  }

  /* Weekly summary */
  .summary-section {
    padding: var(--space-sm);
  }

  /* Training rows */
  .training-options-grid {
    grid-template-columns: 1fr;
  }

  .fight-camp-options {
    grid-template-columns: 1fr;
  }

  /* Buttons */
  .btn-lg {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-base);
  }
}

/* ========== SIDEBAR SEASON ========== */
.sidebar-season {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-orange);
  text-align: center;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* ========== SEASON OBJECTIVES (Dashboard) ========== */
.season-obj-list {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.season-obj-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.season-obj-row.completed {
  border-color: rgba(46, 204, 113, 0.2);
  background: rgba(46, 204, 113, 0.04);
}

.season-obj-icon {
  font-size: var(--font-lg);
  flex-shrink: 0;
}

.season-obj-info {
  flex: 1;
  min-width: 0;
}

.season-obj-name {
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.season-obj-reward {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.season-obj-status {
  font-size: var(--font-lg);
  flex-shrink: 0;
}

/* ========== SEASON SUMMARY MODAL ========== */
.season-modal {
  max-width: 550px !important;
}

.season-summary-header {
  text-align: center;
  padding: var(--space-xl) var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.season-summary-badge {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.season-summary-title {
  font-size: var(--font-2xl);
  font-weight: 900;
  color: var(--text-primary);
  margin: 0;
}

.season-summary-sub {
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.season-summary-body {
  padding: var(--space-lg);
}

.season-summary-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.season-stat-item {
  text-align: center;
}

.season-stat-val {
  font-size: var(--font-xl);
  font-weight: 900;
  color: var(--text-primary);
}

.season-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.season-summary-section-title {
  font-size: var(--font-sm);
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.season-summary-obj-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.season-summary-obj {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
}

.season-summary-obj.completed {
  border-color: rgba(46, 204, 113, 0.25);
  background: rgba(46, 204, 113, 0.06);
}

.season-summary-obj.failed {
  opacity: 0.6;
}

.season-summary-obj-icon {
  font-size: var(--font-lg);
  flex-shrink: 0;
}

.season-summary-obj-info {
  flex: 1;
}

.season-summary-obj-name {
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.season-summary-obj-status {
  font-size: 10px;
  font-weight: 700;
}

.season-summary-obj.completed .season-summary-obj-status {
  color: var(--color-success);
}

.season-summary-obj.failed .season-summary-obj-status {
  color: var(--text-muted);
}

.season-summary-obj-reward {
  font-size: var(--font-sm);
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
}

.season-summary-obj-reward.earned {
  color: var(--color-success);
}

.season-reward-banner {
  text-align: center;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(46, 204, 113, 0.04));
  border: 1px solid rgba(255, 215, 0, 0.2);
  font-size: var(--font-base);
  color: #ffd700;
  font-weight: 700;
}

.season-summary-footer {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}
