* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* HEADER */
.header {
  text-align: center;
  margin-bottom: 40px;
  margin-top: 20px;
}

.header h1 {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header h1 span {
  color: #e94560;
}

.header p {
  color: #a0aec0;
  font-size: 1rem;
  margin-top: 8px;
}

/* GAME AREA */
.game-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* CARD CONTAINER */
.card-container {
  width: 380px;
  height: 560px;
  perspective: 1200px;
  cursor: pointer;
}

.card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: 20px;
}

.card.flipped {
  transform: rotateY(180deg);
}

/* FACES DA CARTA */
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

/* FRENTE */
.card-front {
  background: linear-gradient(145deg, #e94560, #c0392b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(233, 69, 96, 0.4), 0 0 0 3px rgba(255,255,255,0.1);
}

.card-front-inner {
  text-align: center;
}

.card-logo {
  font-size: 6rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.card-hint-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* VERSO */
.card-back {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  transform: rotateY(180deg);
  border: 2px solid rgba(233, 69, 96, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.card-back-inner {
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: thin;
  scrollbar-color: #e94560 transparent;
}

.card-back-inner::-webkit-scrollbar {
  width: 4px;
}
.card-back-inner::-webkit-scrollbar-thumb {
  background: #e94560;
  border-radius: 2px;
}

/* LOADING */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: #a0aec0;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(233,69,96,0.2);
  border-top-color: #e94560;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* CONTEÚDO DA CARTA */
.carta-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.categoria-badge {
  display: inline-block;
  background: #e94560;
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  align-self: flex-start;
  margin-bottom: 4px;
}

.dicas-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dicas-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.4;
  border-left: 2px solid transparent;
  transition: border-color 0.2s;
}

.dicas-list li:hover {
  border-left-color: #e94560;
}

.dica-num {
  color: #e94560;
  font-weight: 700;
  font-size: 0.75rem;
  min-width: 22px;
  padding-top: 1px;
}

.dica-texto {
  color: #cbd5e0;
}

/* BOTÃO VER RESPOSTA */
.btn-resposta {
  margin-top: 8px;
  background: transparent;
  border: 1.5px solid #e94560;
  color: #e94560;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  align-self: center;
}

.btn-resposta:hover {
  background: #e94560;
  color: #fff;
}

/* RESPOSTA */
.resposta-box {
  background: rgba(233, 69, 96, 0.12);
  border: 1px solid rgba(233, 69, 96, 0.5);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  font-size: 1.1rem;
  color: #fff;
}

.resposta-box strong {
  display: block;
  color: #e94560;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* BOTÃO NOVA CARTA */
.btn-nova-carta {
  background: linear-gradient(135deg, #e94560, #c0392b);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 6px 24px rgba(233, 69, 96, 0.4);
  transition: all 0.2s;
}

.btn-nova-carta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.5);
}

.btn-nova-carta:active {
  transform: translateY(0);
}

/* UTILITÁRIOS */
.hidden {
  display: none !important;
}

/* RESPONSIVO */
@media (max-width: 440px) {
  .card-container {
    width: 320px;
    height: 500px;
  }
  .header h1 {
    font-size: 2rem;
  }
}