.game-container { max-width: 650px; margin: 0 auto; }
.scenario-card {
    background: #fff; border: 2px solid #dee2e6; border-radius: 12px;
    padding: 1.5rem; text-align: center; cursor: pointer;
    transition: all 0.25s ease; text-decoration: none; color: #333;
}
.scenario-card:hover { border-color: #004d99; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); color: #004d99; }
.scenario-card .sc-icon { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.scenario-card .sc-title { font-weight: 700; font-size: 0.95rem; }
.story-card {
    background: #f8f9fa; border-left: 4px solid #004d99;
    border-radius: 0 10px 10px 0; padding: 1.5rem;
    margin-bottom: 1.2rem; animation: fadeSlide 0.4s ease;
}
.story-text { font-size: 1.05rem; line-height: 1.7; margin: 0; }
.choice-btn {
    display: block; width: 100%; text-align: left; padding: 14px 18px;
    margin-bottom: 10px; border: 2px solid #dee2e6; border-radius: 10px;
    background: #fff; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s ease; line-height: 1.5;
}
.choice-btn:hover { border-color: #004d99; background: #e3f2fd; }
.choice-btn:disabled { cursor: default; }
.choice-btn.right { border-color: #2e7d32; background: #e8f5e9; }
.choice-btn.wrong-choice { border-color: #c62828; background: #ffebee; }
.story-feedback {
    padding: 14px 18px; border-radius: 10px;
    font-size: 0.9rem; margin-top: 12px; animation: fadeSlide 0.3s ease;
}
.story-feedback.correct { background: #e8f5e9; border: 2px solid #2e7d32; color: #1b5e20; }
.story-feedback.wrong { background: #ffebee; border: 2px solid #c62828; color: #b71c1c; }
.end-icon { font-size: 4rem; color: #2e7d32; }
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.hide { display: none !important; }
@media (max-width: 480px) {
    .story-text { font-size: 0.95rem; }
    .choice-btn { font-size: 0.88rem; padding: 12px 14px; }
}

/* Pausa per riflettere — appare dopo 2 errori consecutivi.
   Mini-recupero didattico: il bambino vede i punti chiave dello scenario
   prima di continuare. Cliccare "Riprendo!" chiude e si torna al gioco. */
.pausa-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.pausa-box {
  background: #fffbf0;
  border: 3px solid #b45309;
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  max-width: 480px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: pausaSlide .35s ease;
}
.pausa-box h3 { color: #b45309; margin: 0 0 .6rem; font-size: 1.2rem; }
.pausa-box p { margin: 0 0 .6rem; font-size: .95rem; }
.pausa-box ul { margin: 0 0 1rem 1.2rem; padding: 0; }
.pausa-box li { margin: .3rem 0; line-height: 1.45; font-weight: 500; }
.pausa-box button { width: 100%; padding: .7rem; font-weight: 700; }
@keyframes pausaSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .pausa-box { animation: none; }
}
