/* Full viewport encounter. No card frame, no scrolling to a second screen. */
body:has(#companion-welcome[open]) #trial-login{display:none}
.companion-welcome::backdrop{background:#29271f}
.companion-welcome{position:fixed;inset:0;margin:0;padding:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;overflow:hidden;background:#29271f;color:#fff;box-shadow:none}
.companion-welcome .welcome-layout{position:relative;display:block;width:100%;height:100%;min-height:0;isolation:isolate;background:#29271f}
.companion-welcome .welcome-scene{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;min-height:0;padding:0;background:#29271f}
.companion-welcome .welcome-film{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;border-radius:0;box-shadow:none;background:url('welcome-first.jpg') center/cover}
.companion-welcome #welcome-video{width:100%;height:100%;object-fit:cover;object-position:50% 35%;background:transparent}
.welcome-film:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(#171c2038,transparent 18%,transparent 62%,#141c228a);z-index:1}
.companion-welcome .welcome-ai-label{z-index:3;top:calc(18px + env(safe-area-inset-top));left:20px;background:#1c241d65;backdrop-filter:blur(10px);font-size:10px;letter-spacing:.8px}
.welcome-shortcut{position:absolute;top:calc(14px + env(safe-area-inset-top));right:16px;z-index:5;border:1px solid #ffffff50;border-radius:24px;padding:11px 15px;background:#1b282452;color:white;font:inherit;font-size:12px;cursor:pointer;backdrop-filter:blur(8px)}
.companion-welcome .welcome-play{z-index:3;top:auto;bottom:calc(92px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);border-radius:40px;padding:13px 23px;font-size:15px;background:#173b2ac9;box-shadow:0 6px 24px #15231c33;max-width:90%;white-space:normal}
.companion-welcome .welcome-play small{font-size:11px;margin-top:3px}
.companion-welcome .welcome-film-controls{position:absolute;bottom:calc(17px + env(safe-area-inset-bottom));left:18px;right:18px;z-index:3;width:auto;max-width:none;min-height:44px;gap:10px}
.companion-welcome .welcome-film-controls button{color:white;border-radius:24px;padding:8px 12px;background:#23312650;backdrop-filter:blur(8px)}
.companion-welcome .welcome-film-controls p{color:white;text-shadow:0 1px 8px #111;font-size:11px}
.companion-welcome .welcome-copy{position:absolute;z-index:4;bottom:0;left:0;right:0;padding:28px max(24px,calc((100vw - 470px)/2)) calc(14px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#14251edb 18%,#14251ef5);max-height:70dvh;overflow-y:auto;overscroll-behavior:contain;color:#fff;animation:welcome-rise .45s ease-out}
.companion-welcome .welcome-copy h1,.companion-welcome .welcome-line,.companion-welcome .welcome-value,.companion-welcome .welcome-eyebrow{display:none}
.companion-welcome #welcome-form{outline:none;border:0}
.companion-welcome #welcome-form>label{display:block;color:#fff;font-size:25px;font-weight:400;line-height:1.3;margin:0 0 14px;letter-spacing:1px}
.companion-welcome .welcome-name-row{gap:8px}.companion-welcome .welcome-name-row input{border:1px solid #ffffff65;background:#fffef9f5;color:#253b2e;border-radius:13px;height:48px;font-size:16px}
.companion-welcome .welcome-name-row button{background:#faf6e6e8;color:#203b2c;border-radius:13px}
.companion-welcome #welcome-enter{min-height:46px;background:#edf1df;color:#203e2c;border:0;border-radius:14px;margin:5px 0;font-size:15px}
.companion-welcome #welcome-skip{color:#eeefdd;margin:3px auto 7px;min-height:34px;font-size:12px}
.companion-welcome #welcome-error{color:#ffd8ad;margin:4px 0;min-height:0}
.companion-welcome .voice-opt{color:#fff;font-size:12px}.companion-welcome .voice-opt span{color:#d5dbd1}
.companion-welcome .welcome-data{font-size:10px;color:#d1d8cf;margin-top:8px;line-height:1.6}.welcome-data summary{cursor:pointer;min-height:24px}.companion-welcome .welcome-privacy{color:#d1d8cf;margin-top:5px;font-size:10px}
.companion-welcome.welcome-answer .welcome-film-controls{top:calc(57px + env(safe-area-inset-top));bottom:auto}.companion-welcome.welcome-answer .welcome-film-controls p{visibility:hidden}
.companion-welcome.welcome-answer #welcome-play{display:none}.companion-welcome.welcome-answer #welcome-direct{visibility:hidden}
@keyframes welcome-rise{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@media(min-aspect-ratio:3/4){.companion-welcome .welcome-film:before{content:'';position:absolute;inset:0;backdrop-filter:blur(28px);background:#222a2265}.companion-welcome #welcome-video{position:relative;object-fit:contain;z-index:1}}
@media(max-height:540px){.companion-welcome .welcome-copy{max-height:85dvh;padding-top:18px}.companion-welcome #welcome-form>label{font-size:19px}.companion-welcome .welcome-name-row input{height:40px}.companion-welcome #welcome-enter{min-height:40px}}
@media(prefers-reduced-motion:reduce){.companion-welcome .welcome-copy{animation:none}}
