
/* COREENAPP — BLOC 4 : NOMBRES */

#numbersScreen {
  width: 100%;
}

.numbers-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 22px 16px 65px;
}

.numbers-header {
  text-align: center;
  margin: 16px 0 26px;
}

.numbers-badge {
  display: inline-block;
  background: #f3e8ff;
  color: #7e22ce;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.numbers-header h1 {
  font-size: clamp(26px, 5vw, 38px);
  color: #6b21a8;
  margin: 15px 0 8px;
}

.numbers-header p {
  color: #7b688a;
  font-size: 16px;
}

.numbers-card {
  background: #fff;
  border: 2px solid #f0ddff;
  border-radius: 26px;
  padding: clamp(18px, 4vw, 32px);
  box-shadow: 0 12px 36px rgba(121, 53, 171, .09);
}

.numbers-card h2 {
  text-align: center;
  color: #6b21a8;
  font-size: 23px;
  margin: 6px 0 20px;
}

.numbers-intro {
  line-height: 1.7;
  font-size: 17px;
  color: #4b4254;
  margin-bottom: 24px;
}

.numbers-examples {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.numbers-example {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 16px;
  border-radius: 16px;
  background: #faf5ff;
  border: 1px solid #ead5ff;
}

.numbers-example-label {
  min-width: 95px;
  flex: 1;
  font-size: 16px;
  font-weight: 800;
  color: #5b426a;
}

.numbers-example-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 2;
  gap: 4px;
}

.numbers-example-main strong {
  font-size: 24px;
  color: #7e22ce;
}

.numbers-example-main small {
  color: #8c7b97;
  font-size: 13px;
}

.numbers-listen {
  flex: 0 0 47px;
  width: 47px;
  height: 47px;
  border: none;
  border-radius: 14px;
  background: #e9d5ff;
  font-size: 23px;
  cursor: pointer;
}

.numbers-primary,
.numbers-secondary {
  display: block;
  width: 100%;
  border: none;
  border-radius: 17px;
  padding: 17px 20px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 15px;
}

.numbers-primary {
  background: linear-gradient(120deg, #9333ea, #ec4899);
  color: white;
}

.numbers-secondary {
  background: #f3e8ff;
  color: #7e22ce;
}

.numbers-steps {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.numbers-steps span {
  padding: 8px 13px;
  background: #f3f0f5;
  color: #93849c;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.numbers-steps span.active {
  background: #e9d5ff;
  color: #7e22ce;
}

.numbers-counter {
  text-align: center;
  font-weight: 800;
  color: #9d4edd;
}

.numbers-progress {
  background: #f3e8ff;
  height: 11px;
  border-radius: 99px;
  overflow: hidden;
  margin: 12px 0 25px;
}

.numbers-progress > div {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  transition: width .3s;
}

.numbers-question {
  text-align: center;
  font-size: clamp(28px, 7vw, 46px);
  font-weight: 900;
  color: #7e22ce;
  padding: 25px 10px;
  margin: 12px 0 25px;
  border-radius: 18px;
  background: #faf5ff;
}

.numbers-audio-button {
  display: block;
  margin: 25px auto 10px;
  background: #f3e8ff;
  color: #7e22ce;
  border: 2px solid #d8b4fe;
  border-radius: 20px;
  padding: 24px 35px;
  font-size: 21px;
  font-weight: 800;
  cursor: pointer;
}

.numbers-hint {
  text-align: center;
  color: #8b7b95;
  margin-bottom: 22px;
}

.numbers-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.numbers-option {
  background: white;
  border: 2px solid #e9d5ff;
  border-radius: 17px;
  padding: 19px 10px;
  min-height: 75px;
  font-size: clamp(16px, 3.5vw, 23px);
  font-weight: 800;
  color: #6b21a8;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.numbers-option:active {
  transform: scale(.98);
}

.numbers-option.correct {
  border-color: #22c55e;
  background: #dcfce7;
  color: #166534;
}

.numbers-option.wrong {
  border-color: #ef4444;
  background: #fee2e2;
  color: #991b1b;
}

.numbers-feedback {
  min-height: 28px;
  text-align: center;
  font-weight: 800;
  margin: 20px 0 0;
}

.numbers-feedback.success { color: #15803d; }
.numbers-feedback.error { color: #b45309; }

.numbers-finish {
  text-align: center;
}

.numbers-trophy {
  font-size: 76px;
  margin: 18px 0;
}

.numbers-finish p {
  font-size: 19px;
  line-height: 1.6;
}

@media (max-width: 520px) {
  .numbers-options {
    grid-template-columns: 1fr 1fr;
  }
  .numbers-example-label {
    min-width: 65px;
    font-size: 13px;
  }
  .numbers-example-main strong {
    font-size: 20px;
  }
  .numbers-card {
    border-radius: 20px;
  }
}
