:root {
  --bg: #0b0d0d;
  --panel: #141717;
  --panel-2: #1b1f1f;
  --line: #2a2f2f;
  --ink: #f3f3f1;
  --muted: #9ca2a2;
  --steel: #c9cdcd;
  --live: #3ddc84;
  --think: #f2b544;
  --stop: #e5484d;
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #1c2121 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--ink);
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.shell { min-height: 100%; display: flex; flex-direction: column; padding-inline: 16px; max-width: 1180px; margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px 10px; }
.logo { height: 34px; width: auto; display: block; }
.desk { display: flex; align-items: center; gap: 8px; font: 600 13px/1 "Barlow Semi Condensed", Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.desk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(61, 220, 132, .15); }

.stage { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; padding-block: 12px 24px; }
.call { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.screen { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: #050606; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .22s ease; }
.loop.on { opacity: 1; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.7) 100%); }
.nameplate { position: absolute; left: 18px; top: 16px; display: flex; flex-direction: column; line-height: 1.2; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.nameplate strong { font: 700 22px/1.1 "Barlow Semi Condensed", Inter, sans-serif; letter-spacing: .02em; }
.nameplate span { font-size: 12.5px; color: var(--steel); }

.chip { position: absolute; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(10, 12, 12, .72); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); font: 600 12.5px/1 Inter, sans-serif; letter-spacing: .02em; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.chip.talking .chip-dot { animation: pulse 1s ease-in-out infinite; }
.chip.thinking .chip-dot { background: var(--think); animation: pulse .8s ease-in-out infinite; }
.chip.connecting .chip-dot { background: var(--steel); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.caption { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(86%, 760px); margin: 0; text-align: center; font: 500 clamp(15px, 2vw, 19px)/1.4 Inter, sans-serif; text-wrap: balance; text-shadow: 0 2px 10px rgba(0,0,0,.85); opacity: 0; transition: opacity .3s ease; }
.caption.show { opacity: 1; }

.controls { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.talk { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 30px; border-radius: 999px; border: 0; cursor: pointer; background: var(--ink); color: #0b0d0d; font: 700 18px/1 "Barlow Semi Condensed", Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(255,255,255,.08); transition: transform .12s ease, background .2s ease, color .2s ease; }
.talk svg { width: 22px; height: 22px; fill: currentColor; }
.talk:hover { transform: translateY(-1px); }
.talk:focus-visible { outline: 3px solid var(--live); outline-offset: 3px; }
.talk.live { background: var(--stop); color: #fff; }
.talk[disabled] { opacity: .6; cursor: progress; transform: none; }
.hint { margin: 0; color: var(--muted); max-width: 52ch; font-size: 14px; }
.hint.error { color: #ffb3b5; }
.you { margin: 0; min-height: 1.5em; color: var(--steel); font-size: 14px; max-width: 60ch; overflow-wrap: anywhere; }
.you b { color: var(--muted); font-weight: 500; }

.tips { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tips h2 { margin: 0 0 10px; font: 700 15px/1.2 "Barlow Semi Condensed", Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.tips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tips li { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; color: var(--ink); }
.fine { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

.foot { padding-block: 8px 20px; text-align: center; font-size: 12.5px; color: var(--muted); }
.foot a { color: var(--steel); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .tips { order: 2; }
}
@media (max-width: 520px) {
  .top { padding-block: 12px 6px; }
  .logo { height: 26px; }
  .screen { aspect-ratio: 4 / 5; }
  .nameplate strong { font-size: 19px; }
  .talk { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .loop, .caption { transition: none; }
  .chip-dot { animation: none !important; }
}
