body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #1e1e2f, #121212);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  background: #1f1f2e;
  padding: 25px;
  border-radius: 16px;
  width: 320px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  animation: fadeIn 0.5s ease;
}

h2 {
  margin-bottom: 10px;
}

p {
  margin: 8px 0;
  font-size: 14px;
  color: #ccc;
}

input {
  width: 90%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 16px;
  background: #2a2a3d;
  color: white;
}

input::placeholder {
  color: #888;
}

input:focus {
  box-shadow: 0 0 0 2px #4f46e5;
}

button {
  width: 95%;
  padding: 12px;
  margin-top: 12px;
  border: none;
  border-radius: 8px;
  background: #4f46e5;
  color: white;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  background: #6366f1;
  transform: translateY(-1px);
}

button:disabled {
  background: #555;
  cursor: not-allowed;
}

#result {
  margin-top: 12px;
  font-weight: bold;
  min-height: 20px;
}

/* 🎯 states */
.win {
  color: #22c55e;
  animation: pop 0.3s ease;
}

.lose {
  color: #ef4444;
  animation: shake 0.3s ease;
}

.hidden {
  display: none;
}

/* ✨ animations */
@keyframes pop {
  0% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

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