/* ─────────────────────────────────────────────────────────
   Score panel – speech / slideshow / dialogue
   · Mobile   : fila 12, ancho completo (columnas 1→4)
   · Desktop ≥640px : columna 3, filas 1→11 (lado derecho)
───────────────────────────────────────────────────────── */

/* Mobile (default) */
#score-panel {
  grid-column: 1 / 4;
  grid-row: 12 / 15;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2vw 3vw;
  z-index: 10;
}

/* Desktop / tablet ≥ 640px */
@media (min-width: 640px) {
  #score-panel {
    grid-column: 3 / 4;
    grid-row: 1 / 11;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5vw 0.3vw;
  }
}

/* ── Tarjeta ── */
.score-card {
  background: rgba(10, 10, 10, 0.85);
  color: #f0f0f0;
  border-radius: 10px;
  padding: 3vw 3.5vw;
  width: 100%;
  max-width: 82vw;
  font-family: var(--paragraph-font, sans-serif);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .score-card {
    padding: 1vw 0.9vw;
    max-width: 17vw;
    font-size: 1.1vw;
  }
}

/* ── Título ── */
.score-title {
  font-size: 4.2vw;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1.2vw;
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .score-title {
    font-size: 1.35vw;
    margin-bottom: 0.7vw;
    padding-bottom: 0.5vw;
  }
}

/* ── Filas session / total ── */
.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8vw;
  font-size: 3.4vw;
}

@media (min-width: 640px) {
  .score-row {
    margin-bottom: 0.5vw;
    font-size: 1.05vw;
  }
}

.score-label {
  color: #aaa;
}

.score-val {
  font-weight: bold;
  color: #62e8ff;
}

.score-total {
  color: #ffdc62;
}

/* ── Barra de progreso ── */
.score-bar-wrap {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  height: 2.8vw;
  overflow: hidden;
  margin: 2vw 0 1.5vw;
}

@media (min-width: 640px) {
  .score-bar-wrap {
    height: 0.9vw;
    margin: 0.7vw 0 0.5vw;
  }
}

.score-bar {
  height: 100%;
  background: linear-gradient(to right, #00e0ff, #00ff88);
  border-radius: 6px;
  transition: width 0.5s ease;
  min-width: 2px;
}

/* ── Porcentaje ── */
.score-pct {
  text-align: center;
  font-size: 4.2vw;
  font-weight: bold;
  color: #00ff88;
}

@media (min-width: 640px) {
  .score-pct {
    font-size: 1.5vw;
  }
}

/* ── "Learned!" ── */
.score-learned-label {
  text-align: center;
  margin-top: 1.5vw;
  font-size: 3.5vw;
  font-weight: bold;
  color: #00ff88;
  animation: scorePulse 1.5s ease infinite;
}

@media (min-width: 640px) {
  .score-learned-label {
    margin-top: 0.6vw;
    font-size: 1.15vw;
  }
}

@keyframes scorePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

/* ── Borde verde al llegar a 100 pts ── */
.score-card.score-learned {
  border-color: #00ff88;
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.45);
}

/* ── Estrellas ── */
.score-stars {
  text-align: center;
  margin: 1.5vw 0 2vw;
  letter-spacing: 0.2em;
}

.score-star {
  color: rgba(255, 255, 255, 0.18);
  font-size: 5.5vw;
  font-family: Arial, sans-serif;
  background: transparent;
  -webkit-text-fill-color: currentColor;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.score-star.active {
  color: #ffd700;
  text-shadow: 0 0 7px rgba(255, 215, 0, 0.75);
}

@media (min-width: 640px) {
  .score-stars {
    margin: 0.5vw 0 0.7vw;
  }
  .score-star {
    font-size: 1.7vw;
  }
}
