.game-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  padding: 40px;
  max-width: 600px;
  width: 100%;
  backdrop-filter: blur(15px);
  animation: gameStart 0.8s ease-out;
}

@keyframes gameStart {
  from {
    transform: scale(0.9) translateY(30px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.game-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.score-box,
.question-box,
.timer-box {
  background: linear-gradient(135deg, #4299e1, #3182ce);
  color: white;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(66, 153, 225, 0.3);
}

.score-box {
  background: linear-gradient(135deg, #48bb78, #38a169);
  box-shadow: 0 5px 15px rgba(72, 187, 120, 0.3);
}

.timer-box {
  background: linear-gradient(135deg, #ed8936, #dd6b20);
  box-shadow: 0 5px 15px rgba(237, 137, 54, 0.3);
}

.timer-box.warning {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.header-label {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 5px;
}

.header-value {
  font-size: 1.8rem;
  font-weight: bold;
}

.question-area {
  background: rgba(128, 90, 213, 0.1);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-bottom: 30px;
  border: 2px solid rgba(128, 90, 213, 0.2);
}
.question-area.correct{
  background: rgba(106, 213, 90, 0.1);
  border: 2px solid rgba(106, 213, 90, 0.1);
}
.question-area.incorrect{
  background: rgba(213, 90, 90, 0.1);
  border: 2px solid rgba(213, 90, 90, 0.1);
}

.question {
  font-size: 3rem;
  color: #4a5568;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.question-hint {
  color: #718096;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.answer-input {
  font-size: 2rem;
  padding: 15px;
  border: 3px solid #e2e8f0;
  border-radius: 15px;
  text-align: center;
  width: 200px;
  margin: 0 auto;
  transition: all 0.3s ease;
  background: white;
}

.answer-input:focus {
  outline: none;
  border-color: #805ad5;
  box-shadow: 0 0 20px rgba(128, 90, 213, 0.3);
  transform: scale(1.05);
}

.submit-btn {
  background: linear-gradient(135deg, #805ad5, #553c9a);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 5px 20px rgba(128, 90, 213, 0.4);
}

.submit-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(128, 90, 213, 0.6);
}

.progress-container {
  background: #e2e8f0;
  height: 8px;
  border-radius: 10px;
  margin: 20px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #48bb78, #38a169);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.feedback {
  padding: 15px;
  border-radius: 12px;
  margin-top: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  opacity: 0;
  transform: scale(1.03);
  transition: all 0.3s ease;
}

.feedback.show {
  opacity: 1;
  transform: translateY(0);
}

.feedback.correct {
  background: linear-gradient(135deg, #c6f6d5, #9ae6b4);
  color: #2d5016;
  border-left: 5px solid #48bb78;
}

.feedback.incorrect {
  background: linear-gradient(135deg, #fed7d7, #feb2b2);
  color: #742a2a;
  border-left: 5px solid #e53e3e;
}

.game-over {
  text-align: center;
  animation: gameEnd 0.8s ease-out;
}

@keyframes gameEnd {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.final-score {
  font-size: 3rem;
  color: #805ad5;
  font-weight: bold;
  margin: 20px 0;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.score-message {
  font-size: 1.3rem;
  color: #4a5568;
  margin-bottom: 30px;
}

.restart-btn,
.home-btn {
  padding: 15px 30px;
  margin: 10px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.restart-btn {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
  box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

.home-btn {
  background: linear-gradient(135deg, #4299e1, #3182ce);
  color: white;
  box-shadow: 0 5px 15px rgba(66, 153, 225, 0.4);
}

.restart-btn:hover,
.home-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@media (max-width: 370px) {
  /* Umumiy container */
  .game-container {
    padding: 20px;
    border-radius: 20px;
  }

  /* Header grid */
  .game-header {
    gap: 10px;
    margin-bottom: 20px;
  }

  .score-box,
  .question-box,
  .timer-box {
    padding: 10px;
    border-radius: 12px;
  }

  .header-label {
    font-size: 0.75rem;
  }

  .header-value {
    font-size: 1.2rem;
  }

  /* Progress */
  .progress-container {
    height: 6px;
    margin: 15px 0;
  }

  /* Question card */
  .question-area {
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
  }

  .question {
    font-size: 1.8rem;
  }

  .question-hint {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }

  /* Input */
  .answer-input {
    font-size: 1.4rem;
    padding: 10px;
    width: 140px;
    border-radius: 12px;
  }

  /* Button */
  .submit-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    border-radius: 30px;
    margin-top: 15px;
  }

  /* Feedback */
  .feedback {
    padding: 10px;
    font-size: 0.9rem;
    margin-top: 15px;
  }

  /* Game over */
  .final-score {
    font-size: 2rem;
  }

  .score-message {
    font-size: 0.95rem;
  }

  .restart-btn,
  .home-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    border-radius: 20px;
  }
}

