/* Participant Mobile View Styling
 * Focused on high readability while running through university corridors
 */

.participant-container {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Master Clock Banner */
.master-clock-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.clock-label-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clock-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-primary);
  box-shadow: 0 0 10px var(--orange-primary);
  animation: pulseOrange 1.5s infinite;
}

.clock-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.master-digits {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--orange-primary);
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(255, 153, 0, 0.4);
}

/* Team Info Strip */
.team-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.team-name-badge {
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.batch-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  background: var(--purple-dim);
  color: var(--purple-bright);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

/* Pre-Race Standby View */
.standby-card {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.standby-radar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px dashed var(--orange-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 30px rgba(255, 153, 0, 0.15);
  animation: rotateRadar 12s linear infinite;
}

@keyframes rotateRadar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.standby-radar::after {
  content: "";
  position: absolute;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid var(--purple-primary);
}

.standby-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-white);
}

.standby-instruction {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.6;
}

.status-pill-large {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 8px 18px;
  background: var(--orange-dim);
  border: 1px solid var(--orange-primary);
  color: var(--orange-primary);
  border-radius: 50px;
  font-weight: 700;
}

/* Active Destination Hero Card (F-09 & Section 6) */
.destination-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 6px solid var(--orange-primary);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.destination-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.endpoint-telemetry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.endpoint-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--purple-bright);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.live-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 6px;
  background: var(--status-green-dim);
  color: var(--status-green);
  border: 1px solid var(--status-green);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.room-hero-display {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem 0;
}

.room-hero-prefix {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.room-hero-number {
  font-family: var(--font-sans);
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-white);
  letter-spacing: -0.03em;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
}

.destination-action-prompt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.pulse-arrow {
  color: var(--orange-primary);
  font-size: 1.2rem;
  animation: pulseArrow 1.5s infinite;
}

@keyframes pulseArrow {
  0% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(6px); opacity: 1; }
  100% { transform: translateX(0); opacity: 0.6; }
}

/* Station Progress Tracker Dots */
.progress-tracker-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.progress-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-station-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-primary);
}

.station-dots-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 0.5rem;
}

.station-dots-track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--border-light);
  transform: translateY(-50%);
  z-index: 1;
}

.station-node {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-subtle);
  transition: all 0.3s ease;
}

.station-node.completed {
  background: var(--orange-primary);
  border-color: var(--orange-primary);
  color: #000;
  box-shadow: 0 0 14px rgba(255, 153, 0, 0.4);
}

.station-node.active {
  background: var(--bg-card-elevated);
  border-color: var(--orange-primary);
  color: var(--orange-primary);
  box-shadow: 0 0 18px rgba(255, 153, 0, 0.6), 0 0 0 4px var(--purple-dim);
  animation: activePulse 2s infinite;
}

@keyframes activePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Challenge Briefing Card */
.challenge-card {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.challenge-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.challenge-type-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--purple-dim);
  border: 1px solid var(--purple-primary);
  color: var(--purple-bright);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.challenge-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.challenge-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Sprint Alert Mode (Step 5) */
.sprint-alert-view {
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.15) 0%, rgba(139, 92, 246, 0.2) 100%), var(--bg-card);
  border: 2px solid var(--orange-primary);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 153, 0, 0.35);
  animation: sprintGlow 1.5s infinite alternate;
}

@keyframes sprintGlow {
  from { box-shadow: 0 0 20px rgba(255, 153, 0, 0.25); border-color: var(--orange-primary); }
  to { box-shadow: 0 0 45px rgba(255, 153, 0, 0.6), 0 0 25px rgba(139, 92, 246, 0.4); border-color: var(--orange-bright); }
}

.sprint-icon-flash {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: flashIcon 0.8s infinite alternate;
}

@keyframes flashIcon {
  from { transform: scale(0.9); }
  to { transform: scale(1.15); }
}

.sprint-headline {
  font-size: 1.85rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--orange-bright);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.sprint-target-box {
  background: #000;
  border: 1px solid var(--orange-primary);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.sprint-room-target {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-mono);
}

.sprint-subtext {
  font-size: 0.95rem;
  color: var(--text-white);
  line-height: 1.5;
}

/* Post-Race Finish Card */
.finish-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 230, 118, 0.4);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 0 35px rgba(0, 230, 118, 0.2);
}

.finish-badge-icon {
  font-size: 2.2rem;
  margin-bottom: 0.35rem;
}

.finish-status-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 12px;
  background: var(--status-green-dim);
  border: 1px solid var(--status-green);
  color: var(--status-green);
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.finish-headline-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  letter-spacing: 0.06em;
  font-weight: 700;
}

.official-time-display {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.85rem 0;
  text-shadow: 0 0 20px rgba(0, 230, 118, 0.35);
}

.finish-stats-pill-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.finish-stat-chip {
  background: #030509;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.chip-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-subtle);
}

.chip-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
}

.chip-val.status-green {
  color: var(--status-green);
}

/* ---------------- SLEEK SPLIT CARDS STACK ---------------- */
.splits-box {
  padding: 0.85rem 1rem;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: left;
}

.splits-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.splits-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-white);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.splits-sub-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--purple-bright);
}

.split-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.split-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #030509;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  gap: 0.5rem;
}

.split-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.split-step-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--purple-dim);
  color: var(--purple-bright);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 3px;
  padding: 2px 6px;
  flex-shrink: 0;
}

.split-room-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.split-status-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  margin-top: 1px;
}

.split-status-text.status-cleared {
  color: var(--status-green);
}

.split-status-text.status-timeout {
  color: var(--status-amber);
}

.split-card-timing {
  text-align: right;
  flex-shrink: 0;
}

.split-duration-digits {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--orange-primary);
}

/* Security Revocation / Disqualified Card */
.disqualified-card {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-xl);
  padding: 2rem 1.25rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.dq-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EF4444;
}

.dq-headline {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #EF4444;
}

.dq-reason-box {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  width: 100%;
  max-width: 480px;
  text-align: left;
}

/* ---------------- MOBILE PHONE BREAKPOINTS ---------------- */
@media (max-width: 480px) {
  .participant-container {
    gap: 0.85rem;
  }

  .master-digits {
    font-size: 1.45rem;
  }

  .master-clock-bar {
    padding: 0.65rem 0.85rem;
  }

  .team-meta-strip {
    padding: 0.5rem 0.75rem;
  }

  .destination-card {
    padding: 1.25rem 1rem;
  }

  .room-hero-number {
    font-size: 3.2rem;
  }

  .official-time-display {
    font-size: 2.3rem;
  }

  .finish-card {
    padding: 1.25rem 0.85rem;
  }
}

/* ---------------- STATION GAME BRIEFING & RULES STYLING ---------------- */
.station-timer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow-orange);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 16px rgba(255, 153, 0, 0.15);
}
.station-timer-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--orange-bright);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.station-timer-digits {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}
.station-timer-digits.overtime {
  color: #EF4444;
  animation: activePulse 1s infinite alternate;
}

.station-game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.15rem;
  margin-top: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  text-align: left;
}
.station-game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--orange-primary), var(--purple-primary));
}
.station-game-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.game-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.game-avatar-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--orange-dim);
  border: 1px solid var(--border-glow-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.game-title-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.game-tagline-text {
  font-size: 0.74rem;
  color: var(--orange-bright);
  font-family: var(--font-mono);
}
.game-time-capsule {
  padding: 3px 8px;
  background: rgba(255, 153, 0, 0.12);
  border: 1px solid var(--border-glow-orange);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--orange-primary);
  white-space: nowrap;
}
.game-short-desc {
  font-size: 0.88rem;
  color: var(--text-white);
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
}
.game-quick-rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding: 0;
}
.game-quick-rules-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.game-quick-rules-list li::before {
  content: "✔";
  position: absolute;
  left: 0.2rem;
  top: 0;
  color: var(--orange-primary);
  font-size: 0.75rem;
  font-weight: 900;
}
.game-quick-rules-list li strong {
  color: #fff;
}
.rules-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.rules-toggle-btn:hover {
  background: var(--purple-dim);
  border-color: var(--purple-primary);
  color: #fff;
}
.rules-expanded-drawer {
  margin-top: 0.75rem;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.rules-expanded-drawer.hidden {
  display: none;
}
.rules-drawer-section-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--orange-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

/* Pre-Race Games Preview */
.pre-race-games-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1rem;
  margin-top: 1.25rem;
  width: 100%;
  text-align: left;
}
.preview-tabs-row {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 0.85rem;
  scrollbar-width: none;
}
.preview-tabs-row::-webkit-scrollbar {
  display: none;
}
.preview-tab-btn {
  padding: 0.45rem 0.75rem;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}
.preview-tab-btn:hover, .preview-tab-btn.active {
  background: var(--orange-primary);
  color: #000;
  border-color: var(--orange-bright);
}



