:root{color-scheme:dark;--bg:#090909;--surface:#171717;--line:#30302e;--white:#f4f3ef;--muted:#999994;--serif:Georgia,"Times New Roman","Songti SC",STSong,serif;font-family:Arial,"PingFang SC",sans-serif;background:var(--bg);color:var(--white)}
*{box-sizing:border-box}body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 55% 48%,#27272788,transparent 65%),linear-gradient(115deg,transparent 40%,#ffffff04 40.1%,#ffffff02 53%,transparent 53.1%),#090909}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit;background:transparent;border:1px solid var(--line)}button:disabled{opacity:.3;cursor:not-allowed}button:hover:not(:disabled){background:#ffffff0b;border-color:#777}button:focus-visible,a:focus-visible,textarea:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid #eee;outline-offset:5px}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.icons{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}
.masthead{height:90px;padding:22px 3%;display:flex;align-items:center;gap:25px}.brand{font-family:var(--serif);font-size:32px;letter-spacing:-1.5px;font-weight:600;white-space:nowrap}.spark{font:40px var(--serif);vertical-align:-3px;margin-right:6px}.tagline,.eyebrow{font-size:9px;font-weight:600;letter-spacing:2.4px;color:var(--muted)}.tagline{border-left:1px solid var(--line);padding-left:24px}nav{margin-left:auto;display:flex;gap:12px;align-items:center}.icon-button{width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:25px}.icon-button[aria-pressed=true]{background:#f4f3ef;color:#111;border-color:#eee}.connection{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:1.2px;margin-right:15px}.connection i{width:5px;height:5px;background:#999;border-radius:50%;box-shadow:0 0 8px #fff5}body[data-live=true] .connection i{background:#e6e6dc;box-shadow:0 0 9px #fff9}#clock{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums;letter-spacing:0}
.stage{min-height:calc(100svh - 140px);display:flex;align-items:center;justify-content:center;flex-direction:column;padding:clamp(38px,8vh,130px) 24px 20px;gap:clamp(28px,5.5vh,75px)}.screen{position:relative;width:min(54vw,1160px);max-width:100%;aspect-ratio:16/9;max-height:53svh;background:#030303;border-radius:7px;overflow:hidden;box-shadow:0 24px 70px #0006;flex-shrink:0}.screen video{width:100%;height:100%;object-fit:contain;display:block}.preview-label{position:absolute;top:14px;left:14px;padding:6px 9px;background:#0009;border-radius:4px;color:#deded8;font-size:10px;letter-spacing:1px}.screen:fullscreen{width:100%;max-height:none;height:100%;border-radius:0}.resume{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);border-radius:24px;padding:12px 20px;background:#111d;white-space:nowrap}
.voice-stage{text-align:center;width:min(900px,100%)}.transcript-state{color:#999993;font-size:9px;font-weight:600;letter-spacing:2.7px;margin:0 0 20px;text-transform:uppercase}.transcript{font-family:var(--serif);font-size:clamp(30px,3.4vw,68px);line-height:1.35;font-weight:400;letter-spacing:-1px;margin:0 0 32px;overflow-wrap:anywhere;max-height:190px;overflow:auto;text-wrap:pretty}.voice-pill{min-width:330px;display:inline-flex;align-items:center;gap:21px;padding:13px 15px;border-radius:60px;background:linear-gradient(#ffffff06,#ffffff02);box-shadow:inset 0 0 0 3px #ffffff02;text-align:left}.voice-copy{display:grid;gap:7px;flex:1}.voice-copy strong{font-size:13px;font-weight:500}.voice-copy small{font-size:10px;color:var(--muted)}.voice-badge{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#ffffff05;border:1px solid #ffffff06;font-size:8px;letter-spacing:.5px;color:var(--muted)}.wave{display:flex;align-items:center;justify-content:center;gap:3px;width:42px;height:42px;--level:0}.wave i{display:block;width:2px;height:calc(6px + var(--level)*20px);background:#ddd;border-radius:3px}.wave i:nth-child(2n){height:calc(14px + var(--level)*15px)}.wave i:nth-child(3){height:calc(22px + var(--level)*14px)}.voice-pill[aria-pressed=true]{border-color:#777}.voice-pill[aria-pressed=true] .voice-badge{color:#fff;background:#ffffff12}.privacy{font-size:10px;color:#878780;margin:14px 0 18px}.stage-actions{display:flex;justify-content:center;align-items:center;gap:25px}.text-button{padding:6px 0;border:0;font-size:11px;color:#aaa}.text-button#start{color:#eae9e2}#status{font-size:11px;line-height:1.6;color:#a09f98;max-width:620px;margin:14px auto 0;min-height:18px}.command{display:flex;border:1px solid var(--line);border-radius:12px;padding:7px;margin:15px auto 0;max-width:600px;background:#111}.command textarea{resize:none;background:transparent;border:0;margin:0;flex:1;min-width:0}.command button{width:42px;border:0;font-size:22px}.footer{display:flex;justify-content:space-between;gap:20px;padding:18px 3%;color:#7d7d76;font-size:8px;letter-spacing:1.8px}
dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(520px,100%);height:100dvh;max-height:100dvh;border:0;border-left:1px solid var(--line);padding:30px;background:#141414;color:var(--white);max-width:100%;overflow:auto}dialog::backdrop{background:#0009;backdrop-filter:blur(7px)}.drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.drawer-heading h1{font-family:var(--serif);font-size:28px;margin:12px 0}.muted,.notice,details p{font-size:12px;line-height:1.8;color:#aaa99f}.muted{margin-bottom:26px}label{display:block;font-size:12px;color:#bebdb4}textarea,input,select{background:#1c1c1b;color:var(--white);border:1px solid #373733;border-radius:7px;padding:12px;width:100%;margin:9px 0 18px;font-size:13px;line-height:1.7}textarea{resize:vertical}#dropzone{border:1px dashed #50504a;border-radius:9px;padding:23px 16px;text-align:center;font-size:12px;color:#aaa;cursor:pointer;margin-bottom:18px}#dropzone.dragging{background:#343430;border-color:white}#imagePreview{max-width:100%;max-height:150px;display:block;margin:12px auto 0;object-fit:contain}.settings,.metrics{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.check{display:flex;align-items:center;gap:8px}.check input{width:auto;margin:0}h2{font-size:14px;margin:26px 0 18px}.metrics{gap:1px;background:var(--line);border:1px solid var(--line);border-radius:8px;overflow:hidden}.metrics>div{background:#141414;padding:15px;font-size:11px;color:var(--muted)}.metrics strong{display:block;color:var(--white);font-size:18px;font-weight:400;margin-top:8px}.toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.toolbar button,.toolbar a,#removeImage{padding:10px 12px;border:1px solid var(--line);border-radius:6px;font-size:11px}details{font-size:12px;line-height:1.7}summary{cursor:pointer}#events{padding:0;list-style:none;font-size:11px;line-height:1.8;color:var(--muted)}#events li{padding:9px 0;border-bottom:1px solid var(--line)}#events strong{display:block;color:var(--white);font-weight:500}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1800px){.stage{padding-top:130px}.voice-pill{min-width:365px;padding:16px}.voice-copy strong{font-size:15px}.voice-copy small,.privacy{font-size:11px}}
@media(max-height:1050px) and (min-width:761px){.stage{padding-top:30px;gap:25px}.screen{width:min(54vw,calc((100svh - 500px)*16/9));max-height:48svh}.transcript{margin-bottom:20px;font-size:36px;max-height:110px}.transcript-state{margin-bottom:12px}.voice-pill{padding:9px 14px}.privacy{margin:12px 0}.stage-actions{gap:24px}}
@media(max-width:760px){.masthead{height:76px;padding:14px 18px;gap:10px}.brand{font-size:24px;letter-spacing:-1px}.spark{font-size:30px;margin-right:2px}.tagline{display:none}nav{gap:7px}.icon-button{width:35px;height:35px}svg{width:16px;height:16px}.connection{position:absolute;top:81px;left:20px;font-size:9px}.stage{min-height:calc(100svh - 120px);padding:64px 16px 25px;justify-content:flex-start;gap:42px}.screen{width:100%;max-height:44svh}.transcript-state{font-size:8px;margin-bottom:18px}.transcript{font-size:32px;line-height:1.5;margin-bottom:27px;max-height:160px}.voice-pill{min-width:0;width:min(330px,100%);gap:15px}.privacy{font-size:9px}.stage-actions{gap:24px}#status{font-size:10px;padding:0 12px}.footer{padding:15px 20px;font-size:7px;line-height:1.7;letter-spacing:1px}.footer>a{white-space:nowrap}dialog{padding:24px}.preview-label{font-size:8px;top:10px;left:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
body[data-mode=girlfriend]{background:radial-gradient(ellipse at 50% 28%,#3a243088,transparent 58%),linear-gradient(160deg,#140e12,#090909 55%)}
body[data-mode=girlfriend] .screen{width:min(42vw,420px);aspect-ratio:9/16;max-height:62svh}
body[data-mode=girlfriend] .tagline{color:#e2c4c8}
@media(max-width:760px){body[data-mode=girlfriend] .screen{width:min(88vw,360px);max-height:52svh}}
.transcript[data-long=true]{font-size:clamp(28px,2.5vw,48px);line-height:1.35;max-height:4.05em}
.mode-link{padding:9px 13px;border:1px solid #ffffff40;border-radius:999px;color:#e9e5e1;font-size:11px;white-space:nowrap;background:#ffffff0a;transition:background .2s,border-color .2s}
.mode-link:hover{background:#ffffff1d;border-color:#ffffff85}
body[data-live=true] .mode-link{display:none}
.default-director-poster{display:none;position:absolute;inset:0;z-index:1;pointer-events:none}
.default-director-poster img{display:block;width:100%;height:100%;object-fit:cover}
body:not([data-mode=girlfriend]) .call-curtain{position:absolute;inset:0;z-index:2;overflow:hidden;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .35s ease,visibility 0s linear .35s}
body:not([data-mode=girlfriend]) .screen[data-call-phase=dialing] .call-curtain,
body:not([data-mode=girlfriend]) .screen[data-call-phase=ending] .call-curtain,
body:not([data-mode=girlfriend]) .screen[data-call-phase=ended] .call-curtain,
body:not([data-mode=girlfriend]) .screen[data-call-phase=error] .call-curtain{opacity:1;visibility:visible;transition:opacity .18s ease,visibility 0s}
body:not([data-mode=girlfriend]) .screen[data-call-phase=ending] .call-curtain img,
body:not([data-mode=girlfriend]) .screen[data-call-phase=ended] .call-curtain img,
body:not([data-mode=girlfriend]) .screen[data-call-phase=error] .call-curtain img{filter:brightness(.56) saturate(.84)}
body:not([data-mode=girlfriend]) .call-curtain img{display:block;width:100%;height:100%;object-fit:cover;filter:brightness(.8) saturate(.95)}
body:not([data-mode=girlfriend]) .call-curtain-shade{position:absolute;inset:0;background:linear-gradient(180deg,#05050520 10%,transparent 38%,#050505ba 100%)}
body:not([data-mode=girlfriend]) .call-hud{position:absolute;left:20px;right:20px;bottom:16%;display:flex;align-items:center;flex-direction:column;gap:7px;text-align:center;color:#fff;font-family:"PingFang SC",Arial,sans-serif;text-shadow:0 2px 12px #000b}
body:not([data-mode=girlfriend]) .call-hud strong{font-size:clamp(20px,3vw,29px);font-weight:600}
body:not([data-mode=girlfriend]) .call-hud>span:last-child{font-size:12px;color:#fff9}
body:not([data-mode=girlfriend]) .director-signal{display:grid;place-items:center;width:48px;height:48px;margin-bottom:8px;border:1px solid #ffffff9c;border-radius:50%;background:#ffffff22;box-shadow:0 0 0 7px #ffffff16;backdrop-filter:blur(10px)}
body:not([data-mode=girlfriend]) .director-signal svg{width:23px;height:23px}
body:not([data-mode=girlfriend]) .director-signal::after{content:"";position:absolute;inset:-8px;border:1px solid #ffffff6e;border-radius:50%;animation:calling-ring 2.4s ease-out infinite}
@keyframes calling-ring{0%{transform:scale(.8);opacity:.8}100%{transform:scale(1.65);opacity:0}}
@media(prefers-reduced-motion:reduce){body:not([data-mode=girlfriend]) .director-signal::after{animation:none;opacity:.25}}
.screen-drop-hint{position:absolute;inset:18px;border:1px dashed #f4f3efaa;border-radius:7px;background:#080808c7;display:grid;place-items:center;opacity:0;pointer-events:none;font:clamp(16px,2vw,28px) var(--serif);transition:opacity .15s}.screen.dragging .screen-drop-hint{opacity:1}.screen.dragging{box-shadow:0 0 0 3px #f4f3ef55,0 24px 70px #0006}
@media(max-width:380px){.masthead{padding-inline:14px}.brand{font-size:22px}nav{gap:5px}.icon-button{width:32px;height:32px}}
