* {
    box-sizing: border-box;
}
body {
    margin: 0;
    min-height: 100vh;
    background: #fffaf0;
    font-family: 'Baloo 2', cursive;
    color: #f3e22b;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.title {
    font-size: 50px;
    margin-bottom: 30px;
    text-align: center;
    background-color: #a7a1a1;
    padding: 20px;
    border: 2px solid #eeca2b;
    border-radius: 15px;
    width: fit-content;
    margin: 0 auto 30px auto;
    color: #eeca2b;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pregunta {
    font-size: 1.6rem;
    margin: 0 auto 25px auto;
    min-height: 100px;
    color: #eeca2b;
    display: none; /* Oculta la pregunta al principio */
    width: 90%;
    max-width: 600px;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    box-sizing: border-box;
    padding: 10px;
    background-color: #a7a1a1;
    border: 2px solid #eeca2b;
    border-radius: 15px;
    text-align: center; /* para que el texto quede alineado a la izquierda */
}

.pregunta.titulo-style {
    display: block;            /* para que el bloque tenga ancho y margin funcione */
    font-size: 1.8rem;
    margin: 0 auto 30px auto;  /* centrado horizontal con margen automático */
    text-align: center;        /* centro del texto */
    width: 90%;
    max-width: 600px;
    color: #eeca2b;
    min-height: 80px;
    box-sizing: border-box;
    padding: 20px;
    background-color: #a7a1a1;
    border: 2px solid #eeca2b;
    border-radius: 15px;
}

.opciones {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.opcion-btn {
    background: #fffaf0;
    border: 3px solid #eeca2b;
    color: #eeca2b;
    font-weight: 700;
    padding: 14px 20px;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 0 8px #eeca2baa;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    text-align: center;
}

.opcion-btn:hover {
    background: #eeca2b;
    color: #fffaf0;
    box-shadow: 0 0 18px #eeca2bcc;
}

.resultado {
    min-height: 40px;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 1px 1px 6px #eeca2b;
    margin-bottom: 15px;
    color: #eeca2b;
}

.final {
    color: #a8f07a;
}

.btn {
    background: #fffaf0;
    color: #eeca2b;
    border: 3px solid #eeca2b;
    border-radius: 15px;
    padding: 14px 40px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    align-self: center;
    box-shadow: 0 0 12px #eeca2bcc;
    transition: background 0.3s, color 0.3s;
    margin-top: 20px;
}

.btn:hover {
    background: #eeca2b;
    color: #fffaf0;
    box-shadow: 0 0 24px #eeca2bd9;
}

.game-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    height: 700px;
    background: rgba(229, 221, 221, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px #aaa;
}

.quiz-panel {
    flex: 2;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow-y: auto;
}

.prizes-panel {
    flex: 1;
    background: #f5f5f5;
    padding: 30px 20px;
    border-left: 3px solid #eeca2b;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
}

.prizes-panel h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-shadow: 1px 1px 8px #eeca2b;
    color: #eeca2b;
}

.prizes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-weight: 700;
}

.prizes-list li {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 12px;
    text-align: right;
    font-size: 1.1rem;
    color: #eeca2b;
    box-shadow: 0 0 5px transparent;
    transition: all 0.3s;
    user-select: none;
}

.prizes-list li.current {
    background: #eeca2b;
    color: #fffaf0;
    box-shadow: 0 0 15px #eeca2bcc;
    font-size: 1.25rem;
    font-weight: 900;
}

.prizes-list li.achieved {
    color: #a8f07a;
    text-shadow: 1px 1px 3px #000;
}


.opcion-btn.correcta {
    background-color: #4CAF50; /* verde */
    color: white;
}

.opcion-btn.incorrecta {
    background-color: #f44336; /* rojo */
    color: white;
}


/*MEDIA*/
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .title {
    font-size: 2rem;
    padding: 10px;
    min-height: auto;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .pregunta,
  .pregunta.titulo-style {
    font-size: 1.1rem;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    margin: 0 auto 20px auto;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    display: block;
    min-height: auto;
  }

  .opciones {
    gap: 10px;
  }

  .opcion-btn {
    font-size: 1rem;
    padding: 10px 15px;
    border-width: 2px;
  }

  .game-container {
    flex-direction: column;
    height: auto;
    width: 100%;
  }

  .quiz-panel,
  .prizes-panel {
    flex: none;
    width: 100%;
    max-height: none;
    padding: 20px 15px;
    box-sizing: border-box;
  }

  .prizes-panel {
    border-left: none;
    border-top: 3px solid #eeca2b;
    margin-top: 20px;
  }

  .prizes-panel h2 {
    font-size: 1.3rem;
  }

  .prizes-list li {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 1.05rem;
  }
}


