:root {
  color-scheme: dark;
  --bg: #050505;
  --ink: #f5f5f0;
  --quiet: #777772;
  --line: #20201e;
  --accent: #d9ff38;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.room {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px 28px;
  overflow: hidden;
}

.topline, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: .01em;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.06em;
}

.brand span { color: var(--accent); }
.room-label { color: var(--quiet); margin: 0 auto 0 14px; }
.connection-state { margin: 0; color: var(--quiet); }
.connection-state::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 7px 1px 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 90%, transparent);
}

.voice-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  isolation: isolate;
}

.aura {
  position: absolute;
  z-index: -1;
  width: min(51vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  transform: scale(.58);
  background: radial-gradient(circle, rgb(217 255 56 / 12%) 0, rgb(217 255 56 / 4%) 29%, transparent 66%);
  transition: opacity .5s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}

.room.live .aura { opacity: 1; transform: scale(1); }
.room.speaking .aura { transform: scale(1.07); }

.presence { margin: 0 0 12px; font-size: clamp(27px, 4vw, 47px); letter-spacing: -.065em; font-weight: 490; }
.hint { margin: 0 0 41px; color: var(--quiet); font-size: 13px; }

.microphone {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  color: #1c1c19;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgb(217 255 56 / 0%), 0 20px 55px rgb(217 255 56 / 13%);
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}

.microphone:hover { transform: scale(1.04); }
.microphone:focus-visible { outline: 2px solid white; outline-offset: 5px; }
.microphone svg { width: 29px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.microphone svg path:first-child { fill: currentColor; stroke: none; }

.room.live .microphone {
  color: var(--ink);
  background: transparent;
  border-color: #353532;
  box-shadow: 0 0 0 8px rgb(217 255 56 / 8%), 0 20px 55px rgb(217 255 56 / 9%);
}

.room.live.muted .microphone { color: #777772; box-shadow: none; }
.room.live.muted .microphone svg path:first-child { opacity: .35; }

.footer { color: var(--quiet); }
.footer span:last-child { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 560px) {
  .room { padding: 20px; }
  .room-label { display: none; }
  .connection-state { margin-left: auto; }
  .voice-stage { min-height: 360px; }
  .aura { width: 115vw; }
  .footer { font-size: 11px; }
}
