:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #edf0f7; background: #101829; font-synthesis: none; --muted: #a0abc1; --accent: #bdcef6; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; background: radial-gradient(ellipse at 50% 0, #202c47 0, #101829 55%); min-height: 100dvh; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #cedcfb; outline-offset: 5px; }
.shell { max-width: 510px; margin: auto; padding: max(22px, env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px)) 22px max(20px, env(safe-area-inset-bottom)); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 25px; }
.wordmark { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 2px; color: #d7e2f6; text-decoration: none; }
.gem { font-size: 28px; line-height: 24px; color: #bdcef6; }
.preview-label { font-size: 8px; letter-spacing: 1.6px; color: #93a2bd; white-space: nowrap; }
.call-card { position: relative; overflow: hidden; min-height: 410px; height: min(58dvh, 555px); border-radius: 27px; background: #1c2941; border: 1px solid #9fbce529; box-shadow: 0 28px 65px #040a1b50; isolation: isolate; }
.ambient { position: absolute; inset: 0; background: radial-gradient(ellipse at 45% 35%, #446296 0, #283e64 36%, #19253c 72%); z-index: -2; }
.ambient::after { content: ""; position: absolute; inset: 0; opacity: .17; background-image: repeating-linear-gradient(130deg, transparent 0, transparent 24px, #d3dff317 25px, transparent 26px); }
#portrait { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; opacity: .58; z-index: -1; }
#media { position: absolute; inset: 0; background: transparent; }
#media video { width: 100%; height: 100%; object-fit: cover; }
#media audio { display: none; }
.camera-preview { position: absolute; right: 14px; bottom: 66px; width: 92px; height: 120px; border: 1px solid #dce8ff80; border-radius: 14px; overflow: hidden; background: #101829; z-index: 3; }
.camera-preview video { width: 100%; height: 100%; object-fit: cover; }
.camera-preview.mirrored video { transform: scaleX(-1); }
.camera-controls { display: flex; gap: 10px; margin-top: 12px; }
.camera-controls button { flex: 1; min-height: 44px; }
#camera-status { color: #f0c8bd; }
.card-top, .card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; position: absolute; left: 19px; right: 19px; z-index: 2; }
.card-top { top: 19px; }
.card-bottom { bottom: 19px; font-size: 10px; color: #e2eaf7; text-shadow: 0 1px 8px #0a1026; }
.status-badge, #timer, .ai-label { background: #121d3399; backdrop-filter: blur(16px); border: 1px solid #d0e0ff24; border-radius: 20px; padding: 8px 11px; font-size: 10px; }
.status-badge { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #aebde0; }
.is-live .status-dot { background: #a9e0c4; box-shadow: 0 0 10px #a9e0c455; }
#timer { font-variant-numeric: tabular-nums; }
.ai-label { font-size: 9px; letter-spacing: .3px; padding: 6px 10px; }
.placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 55px 18px 40px; text-align: center; }
.orb { width: 118px; height: 118px; border: 1px solid #d0e0ff40; border-radius: 50%; display: grid; place-items: center; margin-bottom: 26px; background: radial-gradient(circle at 32% 25%, #a0bceb46, #48658a26 60%, #18263f60); box-shadow: 0 0 0 14px #d0e0ff05, inset 0 0 26px #d1e1ff0d; }
.orb span { font: 77px Georgia, serif; color: #d2e1ff; text-shadow: 0 0 35px #b7d0ff; }
.eyebrow { font-size: 8px; letter-spacing: 2.5px; color: #b0c0dd; margin: 0 0 12px; }
h1 { font: 400 clamp(34px, 9vw, 43px)/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.8px; margin: 0 0 17px; color: #f0f1f7; }
.intro { color: #c5cfe1; font-size: 13px; line-height: 1.8; margin: 0; }
.conversation-controls { padding: 22px 1px 19px; text-align: center; }
.status { font-size: 12px; line-height: 1.6; color: #bac6dc; min-height: 20px; margin: 0 0 17px; }
.status.error { color: #f0c8bd; }
.primary { border: 0; border-radius: 15px; min-height: 53px; width: 100%; color: #16253f; background: #c8d8f5; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 5px 18px #040a1b22; text-decoration: none; }
.primary:hover:not(:disabled) { background: #dce6fa; }
.primary > span:first-child { font-size: 19px; font-weight: 400; }
.call-note { margin: 12px 0 0; font-size: 10px; letter-spacing: .25px; color: #8d9bb5; }
.live-controls { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.secondary, .end-button { border-radius: 15px; min-height: 53px; font-size: 13px; border: 1px solid #abbddd29; }
.secondary { background: #243148; color: #dce5f7; }
.secondary[aria-pressed="true"] { background: #4c4050; }
.end-button { background: #e5b7b5; color: #401f29; border-color: transparent; }
.hear-button { position: absolute; z-index: 4; left: 50%; top: 48%; transform: translate(-50%, -50%); border-radius: 22px; border: 1px solid #c8d8f5; background: #152038ee; color: #f1f5ff; padding: 12px 22px; white-space: nowrap; }
footer { border-top: 1px solid #bbcbe218; }
details { padding: 16px 0; }
summary { font-size: 11px; color: #b0bed5; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
summary::-webkit-details-marker { display: none; }
details p { font-size: 11px; line-height: 1.75; color: #93a4bf; }
.footer-line { display: flex; justify-content: space-between; gap: 8px; color: #73839f; font-size: 9px; padding-top: 2px; }
.footer-line strong { font-weight: 500; color: #a3b4d1; }
@media (max-width: 360px) { .shell { padding-left: 15px; padding-right: 15px; } .wordmark { letter-spacing: 1.2px; font-size: 10px; } .preview-label { font-size: 7px; letter-spacing: 1px; } .call-card { min-height: 365px; } .orb { width: 95px; height: 95px; margin-bottom: 22px; } }
@media (min-width: 700px) { .shell { padding-top: 36px; } .call-card { height: 520px; } }
@media (max-height: 720px) { .masthead { padding-bottom: 18px; } .call-card { min-height: 280px; height: 50dvh; } .orb { width: 78px; height: 78px; margin-bottom: 17px; } .orb span { font-size: 54px; } .placeholder h1 { font-size: 32px; margin-bottom: 10px; } .intro { font-size: 12px; } .conversation-controls { padding-top: 15px; } }
@media (prefers-reduced-motion: no-preference) { .primary, .secondary { transition: background .2s; } }
.account{margin-top:1.2rem;padding:1rem;border:1px solid #ffffff18;border-radius:14px;text-align:left}.account>p:first-child{font-weight:600}.account button{margin:.4rem .2rem .4rem 0}.account details{margin:.6rem 0;font-size:.8rem}.account details p{white-space:pre-wrap;overflow-wrap:anywhere}.terms-check{display:flex;align-items:flex-start;gap:.5rem;font-size:.8rem;margin:.8rem 0}.terms-check input{margin-top:.2rem}.account [hidden]{display:none!important}
