/* =====================================================================
   Rogue Division — Tournaments, War Games & 100-Player Tri-Match System
   ===================================================================== */

.rd-tourney-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(800px 300px at 50% 0%, rgba(255, 59, 83, 0.12), transparent 75%);
}

.rd-tourney-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  background: rgba(255, 59, 83, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 59, 83, 0.25);
  margin-bottom: 14px;
}

.rd-tourney-title {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 54px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 14px;
}

.rd-tourney-lede {
  color: var(--ink-dim);
  font-size: 17px;
  max-width: 760px;
  margin: 0 0 24px;
}

.rd-tourney-nav-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.rd-tourney-pill {
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--board-card);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rd-tourney-pill:hover,
.rd-tourney-pill.is-active {
  background: var(--board-card-hi);
  color: #fff;
  border-color: var(--signal);
  box-shadow: 0 0 15px rgba(255, 59, 83, 0.2);
}

/* Win Rule Banner */
.rd-win-rule-callout {
  background: linear-gradient(135deg, rgba(255, 59, 83, 0.15), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(255, 59, 83, 0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rd-win-rule-title {
  font-family: var(--display);
  font-size: 22px;
  color: #fff;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
}

.rd-win-rule-desc {
  color: var(--ink-dim);
  font-size: 14px;
  margin: 0;
  max-width: 680px;
}

.rd-point-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rd-point-chip {
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 12px;
}

.rd-point-chip strong {
  color: var(--signal-hi);
  font-family: var(--mono);
  font-size: 14px;
}

/* 3-Team Race HUD */
.rd-race-hud {
  background: var(--board-card);
  border: 1px solid var(--line-hi);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.rd-race-hud-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.rd-race-hud-target {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.rd-race-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.rd-race-team-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rd-race-team-card:hover {
  transform: translateY(-2px);
}

.rd-race-team-card.team-rdiv {
  border-color: rgba(255, 59, 83, 0.4);
  box-shadow: 0 0 20px rgba(255, 59, 83, 0.1);
}

.rd-race-team-card.team-iron {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.rd-race-team-card.team-ghsv {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.rd-race-team-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.rd-race-score-huge {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin: 12px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.rd-race-score-huge span.out-of {
  font-size: 20px;
  color: var(--ink-faint);
  font-weight: 400;
}

.rd-meter-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin: 12px 0 16px;
}

.rd-meter-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.rd-meter-fill::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 10px;
  background: #fff;
  opacity: 0.6;
  border-radius: 6px;
  box-shadow: 0 0 10px #fff;
}

.rd-team-telemetry-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

/* Event Feed */
.rd-combat-feed {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  max-height: 320px;
  overflow-y: auto;
}

.rd-combat-event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}

.rd-combat-event-row:last-child {
  border-bottom: none;
}

.rd-event-pts-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

/* 100-Player Scoreboard Table */
.rd-scoreboard-wrap {
  background: var(--board-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
}

.rd-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.rd-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.rd-table th {
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
}

.rd-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-dim);
}

.rd-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

/* Role Badges */
.rd-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.rd-role-medic { background: rgba(16, 185, 129, 0.15); color: var(--emerald-hi); border: 1px solid rgba(16, 185, 129, 0.3); }
.rd-role-driver { background: rgba(245, 158, 11, 0.15); color: var(--amber-hi); border: 1px solid rgba(245, 158, 11, 0.3); }
.rd-role-pilot { background: rgba(59, 130, 246, 0.15); color: var(--blue-hi); border: 1px solid rgba(59, 130, 246, 0.3); }
.rd-role-support { background: rgba(168, 85, 247, 0.15); color: var(--purple-hi); border: 1px solid rgba(168, 85, 247, 0.3); }
.rd-role-recon { background: rgba(6, 182, 212, 0.15); color: var(--cyan); border: 1px solid rgba(6, 182, 212, 0.3); }
.rd-role-assault { background: rgba(255, 59, 83, 0.15); color: var(--signal-hi); border: 1px solid rgba(255, 59, 83, 0.3); }

/* Leaderboard Podiums */
.rd-leaderboard-podium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0 36px;
}

.rd-podium-card {
  background: var(--board-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: transform 0.2s ease;
}

.rd-podium-card:hover {
  transform: translateY(-3px);
}

.rd-podium-rank-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.rd-podium-rank-1 { border-color: rgba(251, 191, 36, 0.4); box-shadow: 0 0 25px rgba(251, 191, 36, 0.15); }
.rd-podium-rank-1 .rd-podium-rank-badge { background: rgba(251, 191, 36, 0.2); color: #fbbf24; border: 1px solid #fbbf24; }

.rd-podium-rank-2 { border-color: rgba(203, 213, 225, 0.4); box-shadow: 0 0 20px rgba(203, 213, 225, 0.1); }
.rd-podium-rank-2 .rd-podium-rank-badge { background: rgba(203, 213, 225, 0.2); color: #cbd5e1; border: 1px solid #cbd5e1; }

.rd-podium-rank-3 { border-color: rgba(217, 119, 6, 0.4); box-shadow: 0 0 20px rgba(217, 119, 6, 0.1); }
.rd-podium-rank-3 .rd-podium-rank-badge { background: rgba(217, 119, 6, 0.2); color: #d97706; border: 1px solid #d97706; }

/* Interactive Score Simulator Panel */
.rd-score-sim-panel {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line-hi);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 24px;
}

.rd-sim-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

@media (max-width: 768px) {
  .rd-point-breakdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rd-race-teams-grid {
    grid-template-columns: 1fr;
  }
}

/* Profile Accolades & Specialization Mastery */
.rd-accolades-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.rd-accolade-ribbon-card {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.1);
  transition: transform 0.2s ease;
}

.rd-accolade-ribbon-card:hover {
  transform: translateY(-2px);
  border-color: #fbbf24;
}

.rd-accolade-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}

.rd-accolade-title {
  font-family: var(--display);
  font-size: 18px;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 2px;
}

.rd-accolade-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber-hi);
  margin: 0;
}

.rd-spec-mastery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.rd-spec-stat-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

.rd-spec-stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.rd-spec-stat-val {
  font-family: var(--display);
  font-size: 22px;
  color: #fff;
  margin-bottom: 4px;
}

.rd-spec-rank-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* =====================================================================
   Authentic Military Titanium Dog Tag & Silencer Bezel
   ===================================================================== */
.rd-dogtag-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 640px;
  margin: 0 0 24px;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.85));
}

.rd-dogtag-chain {
  position: absolute;
  top: -12px;
  left: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  z-index: 10;
}
.rd-chain-ball {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f1f5f9, #64748b 70%, #1e293b);
  box-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.rd-military-dogtag {
  position: relative;
  background: linear-gradient(135deg, #2d3340 0%, #1b1f28 35%, #303846 50%, #141720 75%, #242b37 100%);
  border-radius: 20px;
  padding: 22px 26px 22px 42px;
  border: 4px solid #090c12;
  outline: 2px solid #334155;
  box-shadow: 
    inset 0 3px 6px rgba(255, 255, 255, 0.22),
    inset 0 -4px 8px rgba(0, 0, 0, 0.95),
    0 12px 28px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  color: #cbd5e1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rd-military-dogtag:hover {
  transform: translateY(-2px);
  box-shadow: 
    inset 0 3px 6px rgba(255, 255, 255, 0.35),
    inset 0 -4px 8px rgba(0, 0, 0, 0.95),
    0 18px 42px rgba(0, 0, 0, 0.95),
    0 0 24px rgba(255, 59, 83, 0.2);
}

.rd-military-dogtag::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 85% 15%, rgba(255,255,255,0.08) 0%, transparent 60%),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255,255,255,0.015) 3px, rgba(255,255,255,0.015) 6px);
  pointer-events: none;
  z-index: 1;
}

.rd-dogtag-eyelet {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #090c12;
  border: 3px solid #64748b;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.95), 0 1px 2px rgba(255,255,255,0.3);
  z-index: 5;
}

.rd-stamped-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.12);
  padding-bottom: 10px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.rd-stamped-insignia {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.3), -1px -1px 0 rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rd-stamped-serial {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber-hi);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.9);
}

.rd-stamped-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.rd-stamped-photo {
  width: 84px;
  height: 102px;
  border-radius: 8px;
  background: #11151c;
  border: 2px solid #475569;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.85), 0 2px 6px rgba(0,0,0,0.5);
  object-fit: cover;
  display: block;
}

.rd-stamped-photo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 36px;
  color: rgba(255,255,255,0.7);
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.rd-stamped-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: 'Share Tech Mono', monospace, 'Courier New';
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rd-stamped-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #cbd5e1;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.18), -1px -1px 0 rgba(0,0,0,0.9);
}

.rd-stamped-num {
  color: var(--signal-hi);
  font-weight: 800;
  font-size: 11px;
}

.rd-stamped-callsign {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 1px 2px 0 rgba(255,255,255,0.35), -1px -1px 0 rgba(0,0,0,0.95);
  line-height: 1;
  margin-bottom: 2px;
}

.rd-stamped-val-highlight {
  color: #fff;
  font-weight: 700;
}

.rd-stamped-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  position: relative;
  z-index: 2;
}
