.vc-stage { background: #000; aspect-ratio: 16 / 10; }
.vc-screen { --bg1: #1f2a44; --bg2: #0c0f18; --ink: #fff; --sub: rgba(255, 255, 255, .72); --bar: rgba(30, 32, 40, .72);
  position: absolute; inset: 0; container-type: size; overflow: hidden; color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-align: center; }
.vc-screen[data-theme="light"] { --bg1: #eef1f6; --bg2: #cfd7e4; --ink: #151821; --sub: rgba(21, 24, 33, .65); --bar: rgba(255, 255, 255, .8); }
.vc-screen[data-theme="sunset"] { --bg1: #ff8a5b; --bg2: #6a3093; }
.vc-screen p { margin: 0; }
.vc-bg { position: absolute; inset: -40px; background: linear-gradient(160deg, var(--bg1), var(--bg2)); background-size: cover; background-position: center; }
.vc-bg.photo { filter: blur(28px) brightness(.6); transform: scale(1.1); }
.vc-screen[data-theme="light"] .vc-bg.photo { filter: blur(28px) brightness(1.1) saturate(.8); }
.vc-ring, .vc-call, .vc-ended { position: absolute; inset: 0; display: none; }
.vc-screen[data-phase="wait"] { background: #000; }
.vc-screen[data-phase="wait"] .vc-bg { display: none; }
.vc-screen[data-phase="ring"] .vc-ring { display: grid; grid-template-rows: auto auto auto auto 1fr; justify-items: center; align-content: start; padding: 7cqh 16px max(6cqh, env(safe-area-inset-bottom)); gap: 1.6cqh; }
.vc-screen[data-phase="call"] .vc-call, .vc-screen[data-phase="connecting"] .vc-call { display: block; }
.vc-screen[data-phase="ended"] .vc-ended { display: grid; place-content: center; justify-items: center; gap: 2cqh; }
.vc-top { font-size: clamp(11px, 2.6cqmin, 20px); color: var(--sub); letter-spacing: .02em; }
.vc-av-wrap { position: relative; width: clamp(64px, 26cqmin, 220px); aspect-ratio: 1; margin: 3cqh 0 1cqh; }
.vc-av { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: #5b6cff center / cover no-repeat; color: #fff;
  font-weight: 600; font-size: clamp(22px, 10cqmin, 90px); box-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.vc-pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); animation: vc-pulse 2s ease-out infinite; }
.vc-screen[data-theme="light"] .vc-pulse { border-color: rgba(40, 60, 120, .35); }
.vc-pulse.p2 { animation-delay: 1s; }
@keyframes vc-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.55); opacity: 0; } }
.vc-name { font-size: clamp(20px, 7.5cqmin, 64px); font-weight: 600; line-height: 1.1; max-width: 90%; overflow-wrap: anywhere; }
.vc-name.sm { font-size: clamp(14px, 3.6cqmin, 30px); }
.vc-sub { font-size: clamp(12px, 3cqmin, 24px); color: var(--sub); }
.vc-actions { align-self: end; display: flex; gap: clamp(56px, 30cqw, 260px); }
.vc-act { display: grid; justify-items: center; gap: 8px; font-size: clamp(11px, 2.4cqmin, 18px); color: var(--sub); }
.vc-btn { width: clamp(52px, 15cqmin, 84px); aspect-ratio: 1; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; }
.vc-btn svg { width: 50%; height: 50%; }
.vc-btn.no { background: #ec3b3b; }
.vc-btn.yes { background: #22b455; animation: vc-nudge 1.6s ease-in-out infinite; }
@keyframes vc-nudge { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-8%); } 80% { transform: translateY(0); } 90% { transform: translateY(-4%); } }
.vc-btn:focus-visible, .vc-cb:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.vc-main { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2cqh; background: #000 center / cover no-repeat; }
.vc-main.photo { animation: vc-live 9s ease-in-out infinite alternate; }
.vc-main.photo .vc-av, .vc-main.photo .vc-camoff { display: none; }
@keyframes vc-live { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.06) translate(-1%, .6%); } }
.vc-main:not(.photo) { background: linear-gradient(160deg, var(--bg1), var(--bg2)); }
.vc-av.big { position: relative; width: clamp(70px, 24cqmin, 200px); aspect-ratio: 1; }
.vc-camoff { font-size: clamp(11px, 2.4cqmin, 18px); padding: 4px 12px; border-radius: 99px; background: rgba(0, 0, 0, .35); color: #fff; }
.vc-talk { position: absolute; left: 50%; bottom: 20cqh; transform: translateX(-50%); display: flex; gap: 4px; align-items: center; height: 26px; }
.vc-talk i { width: 4px; height: 20%; border-radius: 3px; background: #fff; opacity: .85; transition: height .12s; }
.vc-head { position: absolute; left: 0; right: 0; top: 0; padding: max(14px, env(safe-area-inset-top)) 16px 26px; background: linear-gradient(rgba(0, 0, 0, .5), transparent); color: #fff; }
.vc-timer { font-size: clamp(11px, 2.4cqmin, 18px); opacity: .85; font-variant-numeric: tabular-nums; }
.vc-self { position: absolute; right: 14px; top: max(64px, 13cqh); width: clamp(64px, 20cqmin, 190px); aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden;
  background: #2a2d36; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .15); }
.vc-self video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.vc-self-l { position: absolute; left: 6px; bottom: 5px; font-size: 11px; color: #fff; text-shadow: 0 1px 2px #000; }
.vc-bar { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: clamp(10px, 3cqw, 22px);
  padding: 10px 16px; border-radius: 999px; background: var(--bar); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vc-cb { width: clamp(40px, 10cqmin, 58px); aspect-ratio: 1; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .16); color: #fff; }
.vc-screen[data-theme="light"] .vc-cb { background: rgba(0, 0, 0, .08); color: #151821; }
.vc-cb svg { width: 52%; height: 52%; }
.vc-cb .vc-slash { display: none; }
.vc-cb[aria-pressed="true"] { background: #fff; color: #151821; }
.vc-cb[aria-pressed="true"] .vc-slash { display: inline; }
.vc-cb#vc-spk[aria-pressed="true"] .vc-slash { display: none; }
.vc-cb.end { background: #ec3b3b !important; color: #fff !important; }
.vc-screen[data-phase="connecting"] .vc-talk { display: none; }
.vc-ended .btn { margin-top: 2cqh; }
.linkish { font: inherit; background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; }
.linkish[hidden] { display: none; }
.px-under { margin-top: 12px; }
.panel select, .panel input[type="text"] { width: 100%; margin-top: 6px; }
.panel input[type="file"] { font: inherit; font-size: .85rem; max-width: 100%; margin-top: 6px; }
.px-exit { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 10px; z-index: 7; display: none; align-items: center; gap: 4px;
  font: 600 13px/1 system-ui, sans-serif; padding: 8px 12px; border-radius: 999px; border: 0; background: rgba(0, 0, 0, .35); color: #fff;
  opacity: .5; cursor: pointer; transition: opacity .3s; }
.px-exit span { font-size: 17px; line-height: 13px; }
.is-full .px-exit { display: inline-flex; }
.is-full.st-idle:not(.px-show) .px-exit { opacity: 0; pointer-events: none; }
.tool-stage.is-full .fs-btn { display: none; }
.vc-stage:not(.is-full) .fs-btn { bottom: auto; top: 12px; }
@media (max-width: 560px) { .vc-stage:not(.is-full) { aspect-ratio: 3 / 4; } }
@media (prefers-reduced-motion: reduce) { .vc-pulse, .vc-btn.yes, .vc-main.photo { animation: none; } }
