* {
  box-sizing: border-box;
  font-family: "Baloo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, #ffe4c4 0, transparent 55%),
              radial-gradient(circle at top right, #c4f1ff 0, transparent 55%),
              radial-gradient(circle at bottom left, #e1ffc4 0, transparent 50%),
              radial-gradient(circle at bottom right, #ffd3e6 0, transparent 50%),
              #f5f8ff;
  padding: 10px;
}

.game-shell {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 26px;
  padding: 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.game-container {
  background: linear-gradient(180deg, #fffdf8, #f8f5ff);
  width: 100%;
  max-width: 480px;
  padding: 20px 20px 26px;
  border-radius: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
}

.game-container::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe9c4, transparent 70%);
  top: -80px;
  left: -40px;
  opacity: 0.7;
  pointer-events: none;
}

.game-container::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, #d4e4ff, transparent 70%);
  bottom: -80px;
  right: -40px;
  opacity: 0.6;
  pointer-events: none;
}

h1 {
  margin: 0 0 2px;
  text-align: center;
  font-size: 1.85rem;
  color: #2c2c50;
  position: relative;
  z-index: 1;
}

.title-badge {
  display: inline-block;
  background: #ffcf4b;
  color: #5c3b00;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-bottom: 6px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.subtitle {
  text-align: center;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: #5b6480;
  position: relative;
  z-index: 1;
}

.screen {
  display: none;
  position: relative;
  z-index: 1;
}

.screen.active {
  display: block;
}

.input-group {
  margin: 18px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 0.9rem;
  color: #404664;
}

input[type="text"] {
  padding: 10px 12px;
  border-radius: 999px;
  border: 2px solid #d2d7ff;
  font-size: 1rem;
  outline: none;
  background: #ffffff;
  transition: border 0.15s;
}

input[type="text"]:focus {
  border-color: #ff8b5c;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ff8b5c, #ff5c7b);
  color: #fff;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.12s ease;
  box-shadow: 0 4px 0 rgba(211, 92, 80, 0.85);
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 6px 0 rgba(211, 92, 80, 0.85);
}

button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(211, 92, 80, 0.9);
}

.btn-secondary {
  background: linear-gradient(135deg, #6b8bff, #715cff);
  box-shadow: 0 4px 0 rgba(81, 94, 191, 0.9);
}

.btn-ghost {
  background: #ffffffdd;
  color: #4a4f73;
  box-shadow: 0 3px 0 rgba(0,0,0,0.1);
  border-radius: 999px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: #3a3f61;
}

.lives {
  font-size: 1.2rem;
}

.level-label {
  font-weight: 700;
  color: #ff6b35;
  font-size: 0.95rem;
}

.level-tags {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  background: #ffe9d6;
  color: #cc4a12;
}

.badge span {
  margin-left: 3px;
}

.player-label {
  font-size: 0.8rem;
  color: #6b7293;
  margin-top: 4px;
  text-align: center;
}

.question-counter {
  font-size: 0.85rem;
  color: #6b7293;
  text-align: right;
  margin-bottom: 8px;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 12px 10px 14px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff4d7;
  top: -40px;
  right: -20px;
  opacity: 0.6;
}

.emoji-display {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.2rem;
  margin: 4px 0 6px;
}

.question-text {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 4px;
  color: #343453;
  font-weight: 600;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.option-btn {
  width: 100%;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.12);
  background: #f0f3ff;
  color: #333;
  border: 2px solid transparent;
  justify-content: center;
  padding-inline: 14px;
  font-size: 0.95rem;
}

.option-btn.correct {
  background: #80d88a;
  color: #fff;
  border-color: #37a84b;
  box-shadow: 0 3px 0 rgba(23, 111, 41, 0.85);
}

.option-btn.incorrect {
  background: #ff9191;
  color: #fff;
  border-color: #e03636;
  box-shadow: 0 3px 0 rgba(160, 32, 32, 0.85);
}

.feedback {
  margin-top: 10px;
  min-height: 24px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.feedback.ok {
  color: #2e7d32;
}

.feedback.bad {
  color: #c62828;
}

.center {
  text-align: center;
  margin-top: 16px;
}

.stats {
  font-size: 0.95rem;
  margin: 10px 0;
  text-align: center;
  color: #404664;
}

.little-note {
  font-size: 0.8rem;
  color: #7b82a2;
  margin-top: 4px;
  text-align: center;
}

@media (max-width: 480px) {
  body {
    padding: 0;
  }
  .game-shell {
    border-radius: 0;
    box-shadow: none;
  }
  .game-container {
    border-radius: 0;
    max-width: none;
    height: 100vh;
  }
}
