/* ==========================================================================
   CHILD PATHSHALA - TURBO RACE / SPEEDRUN STUDIO ENGINE
   Theme: High-octane Speedway, Neon Turbo, Responsive Vector Stage
   ========================================================================== */

:root {
  --rc-bg: #070d18;
  --rc-panel: #0f172a;
  --rc-border: #1e293b;
  --rc-cyan: #06b6d4;
  --rc-neon: #00f0ff;
  --rc-turbo: #ff4500;
  --rc-gold: #f59e0b;
  --rc-green: #10b981;
  --rc-purple: #8b5cf6;
}

.rc-wrapper {
  background: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #070d18 70%);
  border-radius: 24px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  padding: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, sans-serif;
  position: relative;
  overflow: hidden;
}

/* Speed lines effect in background */
.rc-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  background: repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(6, 182, 212, 0.03) 40px, rgba(6, 182, 212, 0.03) 80px);
  pointer-events: none;
}

/* Top Dashboard HUD */
.rc-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.rc-hud-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rc-hud-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.rc-hud-data {
  display: flex;
  flex-direction: column;
}

.rc-hud-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.rc-hud-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  font-feature-settings: "tnum";
}

.rc-hud-val.speed { color: var(--rc-neon); text-shadow: 0 0 10px rgba(0, 240, 255, 0.5); }
.rc-hud-val.time { color: var(--rc-gold); }
.rc-hud-val.score { color: #4ade80; }
.rc-hud-val.streak { color: var(--rc-turbo); }

/* Interactive Vector Race Track Stage */
.rc-track-stage {
  background: linear-gradient(180deg, #020617 0%, #0f172a 40%, #1e293b 100%);
  border-radius: 18px;
  border: 1px solid #334155;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 4px 20px rgba(0,0,0,0.6);
  margin-bottom: 1.5rem;
}

.rc-track-svg-box {
  width: 100%;
  height: 150px;
  display: block;
}

/* Road animation */
@keyframes rcRoadDash {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -40; }
}

.rc-road-dash {
  stroke-dasharray: 20, 20;
  animation: rcRoadDash 0.35s linear infinite;
}

.rc-road-dash.turbo {
  animation-duration: 0.15s;
}

/* Speedometer & Nitro Boost Bar */
.rc-boost-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0.75rem;
  padding: 0 0.5rem;
}

.rc-boost-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--rc-neon);
  white-space: nowrap;
}

.rc-boost-track {
  flex-grow: 1;
  height: 10px;
  background: rgba(0,0,0,0.5);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.rc-boost-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #06b6d4, #ff4500, #facc15);
  border-radius: 999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(255, 69, 0, 0.6);
}

.rc-boost-alert {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffedd5;
  background: linear-gradient(90deg, #ea580c, #f97316);
  padding: 2px 8px;
  border-radius: 6px;
  animation: rcPulse 0.5s ease infinite alternate;
}

@keyframes rcPulse {
  0% { transform: scale(0.96); opacity: 0.8; }
  100% { transform: scale(1.04); opacity: 1; }
}

/* Question Banner */
.rc-question-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.rc-question-text {
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 800;
  margin: 0;
  color: #fff;
  letter-spacing: -0.01em;
}

.rc-question-sub {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-top: 0.35rem;
  font-weight: 600;
}

/* Response Options Grid (Tactile Triggers) */
.rc-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

@media (max-width: 580px) {
  .rc-options-grid {
    grid-template-columns: 1fr;
  }
}

.rc-option-btn {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #334155;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}

.rc-option-btn:hover:not(:disabled) {
  border-color: var(--rc-neon);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 240, 255, 0.25);
}

.rc-option-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.rc-opt-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
}

.rc-opt-label {
  flex-grow: 1;
  text-align: center;
}

/* Feedback states */
.rc-option-btn.correct {
  background: linear-gradient(180deg, #059669 0%, #064e3b 100%);
  border-color: #34d399;
  box-shadow: 0 0 25px rgba(52, 211, 153, 0.5);
  transform: scale(1.02);
}

.rc-option-btn.wrong {
  background: linear-gradient(180deg, #dc2626 0%, #7f1d1d 100%);
  border-color: #f87171;
  box-shadow: 0 0 25px rgba(248, 113, 113, 0.4);
  animation: rcShake 0.3s ease;
}

@keyframes rcShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Podium & Results Screen */
.rc-podium-wrap {
  text-align: center;
  padding: 1.5rem 1rem;
  animation: rcFadeIn 0.4s ease;
}

@keyframes rcFadeIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.rc-trophy-icon {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  animation: rcPulse 0.8s ease infinite alternate;
}

.rc-podium-title {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
  color: #fde047;
}

.rc-stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 540px;
  margin: 1.5rem auto;
}

.rc-summary-box {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 0.85rem;
}

.rc-summary-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.rc-summary-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
}
