* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0C0C0E;
  color: #F7F5F0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen { display: none; width: 100%; }
.screen.active { display: flex; justify-content: center; }

.card {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 400px;
  width: 100%;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #C4A265;
}

.subtitle {
  color: #888;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

input {
  display: block;
  width: 100%;
  padding: 1rem;
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 0.5rem;
  background: #1a1a1e;
  border: 1px solid #333;
  border-radius: 12px;
  color: #F7F5F0;
  margin-bottom: 1rem;
  outline: none;
}

input:focus { border-color: #C4A265; }

button {
  display: block;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: #C4A265;
  color: #0C0C0E;
  transition: opacity 0.2s;
}

button:hover { opacity: 0.85; }
button.danger { background: #c44040; color: #fff; }

.error { color: #c44040; margin-top: 0.5rem; font-size: 0.85rem; }
.hidden { display: none; }

/* Status indicator */
.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0;
  font-size: 1.1rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0D9488;
  animation: pulse 2s ease-in-out infinite;
}

.status.speaking .status-dot { background: #C4A265; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Timer */
#timer {
  font-size: 2.5rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2rem;
  color: #888;
}

/* Connecting pulse */
.pulse-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #C4A265;
  margin: 2rem auto;
  animation: ring-pulse 1.5s ease-in-out infinite;
}

@keyframes ring-pulse {
  0% { transform: scale(0.8); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.3; }
}
