/* ═══════════════════════════════════════════════════════
   RiskQuest Universal Game Stats Bar (compact, below game)
   ═══════════════════════════════════════════════════════ */

.rq-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 14px 24px;
  background: rgba(0, 0, 48, 0.4);
  border: 1px solid rgba(94, 190, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(77, 166, 255, 0.1);
  min-height: 52px;
}

/* ── Chart Cell ── */
.rq-stats__chart {
  position: relative;
  flex: 1.2;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(94, 190, 255, 0.08);
}

/* P/L + Timer header row (above the canvas) */
.rq-stats__chart-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 6px 10px 2px;
  flex-shrink: 0;
}

.rq-stats__chart-pl {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.rq-stats__chart-pl-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 7px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(94, 190, 255, 0.4);
}

.rq-stats__chart-pl-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #5ebeff;
  transition: color 0.3s ease;
}

.rq-stats__chart-pl-value--positive { color: #4caf50; text-shadow: 0 0 8px rgba(76,175,80,0.3); }
.rq-stats__chart-pl-value--negative { color: #f44336; text-shadow: 0 0 8px rgba(244,67,54,0.3); }
.rq-stats__chart-pl-value--neutral { color: rgba(94,190,255,0.4); }

/* ── Reset Timer ── */
.rq-stats__timer {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

/* Canvas area */
.rq-stats__chart-canvas {
  position: relative;
  flex: 1;
  padding: 0 10px 4px;
  min-height: 32px;
}

.rq-stats__chart-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 3px;
}

.rq-stats__no-data {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(94, 190, 255, 0.25);
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
}

/* ── Stat Cells ── */
.rq-stats__items {
  display: flex;
  flex: 1;
  align-items: stretch;
}

.rq-stats__cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 6px;
  border-right: 1px solid rgba(94, 190, 255, 0.05);
  min-width: 0;
}

.rq-stats__cell:last-child { border-right: none; }

.rq-stats__label {
  font-family: 'Orbitron', sans-serif;
  font-size: 6.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 2px;
  white-space: nowrap;
}

.rq-stats__value {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.rq-stats__value--positive { color: #4caf50; text-shadow: 0 0 5px rgba(76,175,80,0.15); }
.rq-stats__value--negative { color: #f44336; text-shadow: 0 0 5px rgba(244,67,54,0.15); }
.rq-stats__value--neutral { color: rgba(94,190,255,0.4); }
.rq-stats__value--accent { color: #5ebeff; }

/* ── Game-Specific Stats Row (above game) ── */
.rq-game-metrics {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
  margin: 14px 24px;
  background: rgba(0, 0, 48, 0.35);
  border: 1px solid rgba(94, 190, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.rq-game-metrics__cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-right: 1px solid rgba(94, 190, 255, 0.06);
}

.rq-game-metrics__cell:last-child { border-right: none; }

.rq-game-metrics__label {
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
  white-space: nowrap;
}

.rq-game-metrics__value {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #5ebeff;
  text-shadow: 0 0 8px rgba(94, 190, 255, 0.2);
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .rq-stats { margin: 10px 12px; min-height: 44px; }
  .rq-stats__chart { min-width: 110px; flex: 1; }
  .rq-stats__chart-header { padding: 4px 8px 1px; }
  .rq-stats__chart-canvas { padding: 0 8px 3px; }
  .rq-stats__chart-pl-value { font-size: 13px; }
  .rq-stats__chart-pl-label { font-size: 6px; }
  .rq-stats__timer { font-size: 8px; }
  .rq-stats__label { font-size: 5.5px; }
  .rq-stats__value { font-size: 10px; }
  .rq-stats__cell { padding: 5px 3px; }
  .rq-game-metrics { margin: 10px 12px; }
  .rq-game-metrics__label { font-size: 7px; }
  .rq-game-metrics__value { font-size: 13px; }
  .rq-game-metrics__cell { padding: 8px 6px; }
}

@media (max-width: 480px) {
  .rq-stats { margin: 6px 8px; }
  .rq-stats__chart { min-width: 90px; }
  .rq-stats__chart-pl-value { font-size: 11px; }
  .rq-stats__timer { font-size: 7px; }
  .rq-stats__value { font-size: 9px; }
  .rq-stats__label { font-size: 5px; }
  .rq-game-metrics { margin: 6px 8px; flex-wrap: wrap; }
  .rq-game-metrics__cell { min-width: 30%; padding: 6px 4px; }
  .rq-game-metrics__value { font-size: 12px; }
  .rq-game-metrics__label { font-size: 6px; }
}
