:root {
  --primary-color: #4285f4;
  --secondary-color: #34a853;
  --accent-color: #ea4335;
  --correct-color: #34a853;
  --incorrect-color: #ea4335;
  --light-bg: #f8f9fa;
  --dark-text: #202124;
  --light-text: #f8f9fa;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --disabled-color: #9aa0a6;
}

body {
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  background-color: #c5ceae;
  color: var(--dark-text);
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

.app-container {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  background-color: rgb(235, 238, 217);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.screen {
  transition: all 0.3s ease;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1,
header h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.student-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.student-info input {
  padding: 12px 20px;
  border: 2px solid #dfe1e5;
  border-radius: 24px;
  font-size: 16px;
  width: 80%;
  max-width: 400px;
  outline: none;
  transition: all 0.3s;
}

.student-info input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.start-btn {
  background-color: var(--primary-color);
  color: white;
  font-size: 18px;
  padding: 14px 32px;
}

.instructions {
  text-align: center;
  margin: 15px 0;
  font-size: 1.1em;
  color: var(--primary-color);
  font-weight: 500;
}

.btn:disabled {
  background-color: var(--disabled-color) !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.7;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

#player-name-display {
  color: var(--primary-color);
  margin: 0;
}

.score-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
}

.score-display span:last-child {
  background-color: white;
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 16px;
  min-width: 30px;
  text-align: center;
}

.game-container {
  margin: 20px 0;
}

.operations-container,
.answers-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
  justify-content: center;
}

.drop-zone,
.draggable {
  border: 2px solid #dfe1e5;
  border-radius: 8px;
  /* Reducido de 12px */
  padding: 8px 12px;
  /* Reducido de 12px 20px */
  text-align: center;
  font-size: 1em;
  /* Reducido de 1.2em */
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.drop-zone {
  width: 120px;
  /* Reducido de 160px */
  min-height: 50px;
  /* Reducido de 70px */
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}

.exponent {
  position: relative;
  font-size: 0.7em;
  top: -0.5em;
  margin-left: 1px;
}

.draggable {
  background: white;
  box-shadow: var(--shadow);
  min-width: 40px;
  /* Añadido para consistencia */
}

.draggable:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.correct {
  background-color: var(--correct-color) !important;
  color: white;
  border-color: var(--correct-color);
}

.incorrect {
  background-color: var(--incorrect-color) !important;
  color: white;
  border-color: var(--incorrect-color);
}

.feedback-container {
  margin: 25px 0;
  padding: 15px;
  border-radius: 12px;
  background-color: var(--light-bg);
  text-align: center;
}

#feedback {
  font-weight: bold;
  font-size: 1.1em;
  min-height: 24px;
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.verify-btn {
  background-color: var(--secondary-color);
  color: white;
}

.generate-btn {
  background-color: var(--accent-color);
  color: white;
}

@media (max-width: 768px) {
  .app-container {
    padding: 15px;
    margin: 10px;
  }

  .game-header {
    flex-direction: column;
    gap: 10px;
  }

  .drop-zone,
  .draggable {
    width: 100px;
    /* Reducido de 130px */
    padding: 6px 10px;
    /* Reducido de 10px 15px */
    font-size: 0.9em;
  }

  .game-controls {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 250px;
  }
}