:root {
  --bg: #0f1215;
  --surface: #1a1f24;
  --text: #f2f4f5;
  --muted: #a7b0b8;
  --accent: #f4c430;      /* warm yellow, a nod to the Colombian flag */
  --accent-ink: #1b1600;
  --danger: #e5484d;
  --caption-bg: rgba(10, 12, 14, 0.82);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[hidden] { display: none !important; }

.lobby { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.card { max-width: 420px; width: 100%; background: var(--surface); border-radius: 20px; padding: 28px 24px; }
.badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); margin-bottom: 16px; }
h1 { font-size: 1.4rem; line-height: 1.25; margin: 0 0 12px; }
p { margin: 0 0 12px; color: var(--muted); }
.note { font-size: 0.92rem; border-left: 3px solid var(--accent); padding-left: 12px; }
.note strong { color: var(--text); }
.error { color: #ff9b9e; margin-top: 12px; }
button.primary { width: 100%; margin-top: 8px; padding: 14px 18px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 1rem; cursor: pointer; }
button.primary:disabled { opacity: 0.6; cursor: progress; }

.call { position: fixed; inset: 0; background: #000; overflow: hidden; }
#remote { width: 100%; height: 100%; object-fit: cover; background: #000; }
#local { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; width: 28vw; max-width: 160px;
  aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255,255,255,0.25);
  transform: scaleX(-1); background: #111; }

.status { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 16px; padding: 6px 12px;
  border-radius: 999px; background: var(--caption-bg); font-size: 0.85rem; color: var(--muted); }
.status.translating { color: var(--accent); }

.captions { position: absolute; left: 16px; right: 16px; bottom: calc(110px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.line { margin: 0; max-width: 640px; padding: 8px 14px; border-radius: 12px; background: var(--caption-bg);
  text-align: center; transition: opacity 0.4s; }
.line:empty { opacity: 0; }
.line.theirs { color: var(--text); font-size: 1.12rem; }
.line.mine { color: var(--muted); font-size: 0.9rem; }

.controls { position: absolute; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; gap: 20px; }
.round { width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255,255,255,0.16); color: #fff; cursor: pointer; backdrop-filter: blur(8px); }
.round[aria-pressed="true"] { background: #fff; color: #000; }
.round.hang { background: var(--danger); }
