* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #1e3a8a, #6d28d9);
  color: #fff;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 32px;
  width: 360px;
  max-width: 90vw;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

h1 {
  margin: 0 0 24px;
  font-size: 28px;
  text-align: center;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  opacity: 0.8;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  margin-bottom: 16px;
}

button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: #22c55e;
  color: #062e10;
  transition: transform 0.05s, filter 0.15s;
}

button:hover {
  filter: brightness(1.08);
}

button:active {
  transform: scale(0.98);
}

button.danger {
  background: #ef4444;
  color: #fff;
}

.controls {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.controls button {
  flex: 1;
}

.hint {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 14px;
  line-height: 1.4;
}

.status {
  text-align: center;
  margin-bottom: 16px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

ul li::before {
  content: "🔊";
}

ul li.speaking {
  outline: 2px solid #22c55e;
}

.hidden {
  display: none;
}
