* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pergunta {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 24px 0;
}

.scoreChip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 18px;
  border-radius: 10px;
  background: #f4f4f8;
  transition: background 0.2s ease, transform 0.2s ease;
}

.scoreChip.active {
  background: #6c63ff;
  transform: translateY(-2px);
}

.scoreChip.active .scoreName,
.scoreChip.active .scoreValue {
  color: #fff;
}

.scoreName {
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scoreValue {
  font-size: 1.3rem;
  font-weight: 700;
  color: #16213e;
}

.scoreDivider {
  color: #aaa;
  font-size: 1.2rem;
}

.turnIndicator {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6c63ff;
  padding: 10px 24px 0;
}

.respostas {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.categoryBadge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c63ff;
  background: #ecebff;
  padding: 4px 10px;
  border-radius: 20px;
}

.PERGUNTA {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #16213e;
  margin-bottom: 10px;
  line-height: 1.4;
}

.A, .B, .C, .D {
  background: #f4f4f8;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.A:hover, .B:hover, .C:hover, .D:hover {
  background: #e8e8f5;
  border-color: #6c63ff;
  transform: translateY(-2px);
}

.A:active, .B:active, .C:active, .D:active {
  transform: translateY(0);
}

.correct {
  animation: correctPulse 0.5s ease forwards;
  border-color: #4caf50;
  pointer-events: none;
}

.wrong {
  animation: wrongShake 0.4s ease;
  background: #ff5c5c !important;
  color: #fff;
  border-color: #ff5c5c;
  pointer-events: none;
}

/* ─── Start Screen ─────────────────────────────── */
.startScreen {
  background: #ffffff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: winFadeIn 0.6s ease;
}

.startScreen h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: #16213e;
  margin-bottom: 12px;
}

.startScreen p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 28px;
}

.playerInputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.playerInputs input {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid #e0e0ec;
  outline: none;
  width: 180px;
  transition: border-color 0.2s ease;
}

.playerInputs input:focus {
  border-color: #6c63ff;
}

.playerInputs .vs {
  font-weight: 700;
  color: #999;
}

.startBtn {
  background: #6c63ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 36px;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.startBtn:hover {
  background: #5a52e0;
  transform: translateY(-2px);
}

.startBtn:active {
  transform: translateY(0);
}

/* ─── Win Screen ───────────────────────────────── */
.winScreen {
  display: none;
  background: #ffffff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: winFadeIn 0.6s ease;
}

.winScreen.show {
  display: block;
}

.winScreen h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: #16213e;
  margin-bottom: 12px;
}

.winScreen p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 28px;
}

@keyframes correctPulse {
  0% {
    transform: scale(1);
    background: #f4f4f8;
  }
  40% {
    transform: scale(1.03);
    background: #4caf50;
    color: #fff;
  }
  100% {
    transform: scale(1);
    background: #4caf50;
    color: #fff;
  }
}

@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

@keyframes winFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .respostas {
    padding: 16px;
    gap: 10px;
  }

  .PERGUNTA {
    font-size: 1.15rem;
  }

  .A, .B, .C, .D {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .startScreen, .winScreen {
    padding: 36px 22px;
  }

  .startScreen h1, .winScreen h1 {
    font-size: 1.7rem;
  }

  .playerInputs input {
    width: 140px;
  }
}
