body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #2b1748, #090814 70%);
  color: #fff;
  font-family: "Yu Gothic", sans-serif;
  text-align: center;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 16px;
}

h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

#guide-text {
  color: #ddd;
  margin-bottom: 24px;
}

button {
  background: linear-gradient(135deg, #8e44ad, #c039ff);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(192, 57, 255, 0.5);
}

button:hover {
  transform: translateY(-2px);
}

.hidden {
  display: none;
}

#deck-area {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card-back {
  width: 90px;
  height: 140px;
  border-radius: 10px;
  background: linear-gradient(135deg, #21103d, #6d3bbd);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 15px rgba(255,255,255,0.25);
  cursor: pointer;
  animation: shuffle 0.8s infinite alternate;
}

.card-back:nth-child(2n) {
  animation-delay: 0.2s;
}

.card-back:nth-child(3n) {
  animation-delay: 0.4s;
}

.card-back:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 0 25px rgba(255,255,255,0.7);
}

@keyframes shuffle {
  from {
    transform: translateY(0) rotate(-3deg);
  }
  to {
    transform: translateY(-8px) rotate(3deg);
  }
}

#result-area {
  margin-top: 32px;
}

#result-image {
  width: 280px;
  max-width: 80%;
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(255,255,255,0.4);
  transition: transform 0.5s;
}

#result-title {
  margin-top: 24px;
}

#result-message {
  line-height: 1.8;
  color: #f0e6ff;
}

#retry-button {
  margin-top: 32px;
  margin-bottom: 40px;
}
