:root {
  --bg: #0a0a0a;
  --surface: #171717;
  --line: #2a2a2a;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --cta: #d4af37;
  --cta-text: #171717;
  --danger: #e11d48;
  --ok: #4ade80;
  --focus: #f5e6a8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

body {
  min-height: 100dvh;
}

.app {
  min-height: 100dvh;
  max-width: 420px;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cta);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.status {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.detail {
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.room-code {
  margin: -8px 0 0;
  color: var(--cta);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screen[hidden],
[hidden] {
  display: none !important;
}

.screen-row {
  flex-direction: row;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 16px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--cta);
  color: var(--cta-text);
}

.btn-locked {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost[aria-pressed="true"] {
  background: #262626;
  color: var(--muted);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

#remote-audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
