body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #74ebd5, #9face6);
  color: #333;
  transition: background 0.3s ease;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

html.dark body {
  background: linear-gradient(to right, #1f1f1f, #3a3a3a);
  color: #f0f0f0;
}

.container {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  text-align: center;
  width: 320px;
}

html.dark .container {
  background-color: #2c2c2c;
}

h1 {
  margin-bottom: 1rem;
}

input {
  padding: 0.5rem;
  margin: 0.5rem 0;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  padding: 0.5rem 1rem;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0.5rem;
}

button:hover {
  background-color: #357ab8;
}

.hidden {
  display: none;
}

#feedback {
  margin-top: 1rem;
  font-weight: bold;
}

#attempts {
  font-size: 0.9rem;
  color: #666;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4a90e2;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}