* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
  color: #f5f5f5;
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.5px;
}

.subtitle {
  margin: 8px 0 40px;
  color: #999;
}

.mic-button {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: none;
  background: #d83a3a;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(216, 58, 58, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.2s ease;
}

.mic-button:hover {
  transform: scale(1.03);
}

.mic-button:active {
  transform: scale(0.97);
}

.mic-button.active {
  background: #2a9d4a;
  box-shadow: 0 8px 24px rgba(42, 157, 74, 0.5);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(42, 157, 74, 0.5);
  }
  50% {
    box-shadow: 0 8px 32px rgba(42, 157, 74, 0.9);
  }
}

.status {
  margin-top: 24px;
  font-size: 16px;
  color: #ccc;
  min-height: 24px;
}

.transcript {
  margin-top: 48px;
  text-align: left;
  background: #181818;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #2a2a2a;
}

.transcript h2 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
}

#transcript {
  font-size: 14px;
  line-height: 1.5;
  max-height: 320px;
  overflow-y: auto;
}

#transcript .turn {
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 8px;
}

#transcript .turn.user {
  background: #1f2d3d;
}

#transcript .turn.ai {
  background: #2d2218;
}

#transcript .turn.system {
  color: #888;
  font-style: italic;
  background: transparent;
  padding: 4px 0;
}

#transcript .turn .who {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 2px;
}
