/* ==========================================================================
   HERCARE 20 KM/H RUNNING & HYDRATION TRACK SIMULATION
   Athletic Track, 20 km/h Runner in Sportswear, Finish Table & Drinking Animation
   ========================================================================== */

.runner-track-wrapper {
  margin-top: 36px;
  background: #0E1017;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.1);
  position: relative;
  overflow: hidden;
}

.runner-track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.runner-track-title {
  font-family: 'Sora', var(--font-primary), sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
}

.runner-hud-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.runner-hud-pill {
  background: #161924;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.runner-hud-pill strong {
  color: #38BDF8;
}

.runner-canvas-container {
  width: 100%;
  height: 260px;
  background: radial-gradient(circle at 50% 30%, #151824 0%, #090B10 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.9);
}

#runner-track-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.runner-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.runner-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.runner-btn {
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.runner-btn-primary {
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
}

.runner-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

.runner-btn-secondary {
  background: #181B26;
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.runner-btn-secondary:hover {
  background: #222636;
  color: #FFFFFF;
}

.runner-status-toast {
  font-size: 0.8125rem;
  color: #34D399;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .runner-canvas-container {
    height: 220px;
  }
  .runner-controls-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .runner-btn-group {
    justify-content: center;
  }
}
