/* The welcome is editorial; the camera controls stay compact and readable. */
:root { --f: ui-rounded, 'Avenir Next', 'Trebuchet MS', system-ui, sans-serif !important; --green:#173f34 !important; --gold:#f0ca79 !important; --red:#b83e4b !important; --cream:#faf5e9 !important; --panel:rgba(16,42,34,.85) !important; }
button { transition:background .18s,transform .18s,box-shadow .18s; min-height:44px; }
button:active:not(:disabled) { transform:translateY(1px); }
button:disabled { opacity:.55; cursor:wait; }
button:focus-visible,a:focus-visible,input:focus-visible { outline:3px solid #d69236; outline-offset:4px; }
.icon { width:22px;height:22px;display:inline-block;flex:none;vertical-align:middle; }
#gate { display:block;overflow:auto;overscroll-behavior:contain;background:#f8f3e8;color:#173f34;padding:0;text-align:left; }
#gate .welcome-nav { max-width:1280px;margin:auto;padding:30px 48px;display:flex;align-items:center;justify-content:space-between;gap:16px; }
.wordmark { color:#173f34;text-decoration:none;font-size:25px;font-weight:800;letter-spacing:-1px;display:flex;align-items:center;gap:7px; }
.brand-star { font-size:30px;color:#aa7031; }.wordmark-dot{margin-left:-7px;color:#a36c31}
.nav-note { font:italic 16px Georgia,serif; color:#69746b; }
.welcome-main { max-width:1280px;margin:auto;padding:18px 48px 38px;display:grid;grid-template-columns:1.12fr 1fr;gap:62px;align-items:center; }
.welcome-art { margin:0;position:relative;align-self:stretch;min-height:520px;border-radius:150px 150px 30px 30px;overflow:hidden;box-shadow:0 16px 44px #45372214; background:#423a28; }
.welcome-art img { width:100%;height:100%;position:absolute;object-fit:cover;object-position:55% 50%; }
.welcome-art::after { content:'';position:absolute;inset:65% 0 0;background:linear-gradient(transparent,#172c2070);pointer-events:none; }
.welcome-art figcaption { position:absolute;z-index:1;bottom:48px;left:24px;right:24px;text-align:center;color:#fff7e8;font:italic 23px Georgia,serif; text-shadow:0 1px 8px #0005; }
.welcome-art figcaption span { color:#efc77c;margin-right:7px; }
.art-label { position:absolute;bottom:20px;left:0;right:0;text-align:center;color:#fff9e4d9;font-size:10px;z-index:1;letter-spacing:.03em; }
.eyebrow { display:block;color:#806137;font-size:10px;font-weight:800;letter-spacing:2px;margin-bottom:20px; }
#gate h1 { font:normal clamp(38px,4.3vw,62px)/1.06 Georgia,'Times New Roman',serif;letter-spacing:-2.8px;margin:0 0 22px; }
#gate h1 em { color:#a0613b;font-weight:normal; }
#gate .welcome-intro { font-size:16px;line-height:1.65;margin:0 0 27px;max-width:390px;color:#55655b; }
.welcome-actions { display:flex;flex-wrap:wrap;gap:10px; }
#gate .go,#gate .ghost { display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:15px 20px;font-size:14px;border-radius:12px;min-height:52px; }
#gate .go { background:#173f34;color:#fff8e8;box-shadow:0 6px 14px #173f3418; }
#gate .go:hover { background:#255947; }
#gate .ghost { margin:0;border:1px solid #cbd0bd;background:transparent;color:#173f34; }
#gate .ghost:hover { background:#eee9d9; }
.demo-link { display:block;background:none;color:#536658;padding:14px 0 8px;font-size:12px;text-align:left;text-decoration:underline;text-underline-offset:4px; }
#gate .note { margin:8px 0;max-width:none;font-size:12px;color:#536658;min-height:1em; }
#gate .note:empty { display:none; }
.welcome-facts { display:flex;gap:20px;flex-wrap:wrap;padding-top:22px;margin-top:10px;border-top:1px solid #dfe0d1;font-size:11px;font-weight:700;color:#506252; }
.welcome-facts>span {display:flex;align-items:center;gap:6px;}.welcome-facts .icon{width:16px;height:16px;color:#94703e;}
#gate .privacy-note {font-size:11px;line-height:1.65;color:#687369;margin:14px 0 0;max-width:400px;}
.welcome-steps { list-style:none;padding:24px 0;margin:0 auto;max-width:1184px;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #d9dccc;border-bottom:1px solid #d9dccc; }
.welcome-steps li {display:flex;align-items:center;gap:16px;padding:8px 28px;border-right:1px solid #d9dccc;}.welcome-steps li:last-child{border:0;}
.step-number {font:italic 25px Georgia,serif;color:#a18155;}.welcome-steps strong{font-size:13px;font-weight:750;}
#gate .welcome-steps p{font-size:11px;color:#6c796c;margin:5px 0 0;}.welcome-steps .icon{margin-left:auto;color:#a18155;width:23px;}
.welcome-footer {max-width:1280px;margin:auto;padding:24px 48px 28px;display:flex;justify-content:space-between;gap:20px;color:#748071;font-size:10px;line-height:1.6;}.welcome-footer a{color:inherit;}
#diag { background:#ecebdc;border:1px solid #d8d7bd;padding:16px;border-radius:14px;margin-top:12px; }
#gate #diagHead {font-weight:800;font-size:14px;margin:0 0 7px;color:#804e2e;}#gate #diagBody{font-size:12px;line-height:1.5;margin:0 0 14px;}
#gate #diag .go,#gate #diag .ghost {font-size:12px;padding:10px;margin:3px 0;min-height:44px;}
.boot-error{padding:20px;background:#eed3bb;color:#573b27;}
body.nocam #feed { display:none; }
body.nocam {background:radial-gradient(ellipse at 50% 45%,#487561,#152e24 72%);}
.top {flex-wrap:wrap;gap:10px;}.chip{max-width:calc(100vw - 30px);min-width:0;}.chip #elfName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:110px;}
.tools {gap:5px;}.ic{width:44px;height:44px;}.ic .icon{width:20px;height:20px;}.ic:hover{background:#37624e;}.ic[aria-pressed="true"]:hover{background:#e4e8d8;}
.chip .dot {background:#e5c78b;color:#173f34;}.chip .dot .icon{width:18px;}
.bar {border-radius:25px;padding:9px;box-shadow:0 10px 32px #0003;}.tab{font-size:11px;gap:6px;min-height:53px;}.tab b{display:flex;align-items:center;justify-content:center;height:23px;}.tab .icon{width:21px;height:21px;}
.tip{font-size:12px;line-height:1.5;font-weight:500;margin:0;}.sheet{background:#1b4438;max-height:60dvh;padding:12px 18px calc(18px + env(safe-area-inset-bottom,0px));}.sheet.closed{visibility:hidden;pointer-events:none;}
.sheet h3{margin-bottom:12px;}.grid{gap:8px;}.grid button{min-height:66px;gap:6px;border-radius:14px;}.segs button{min-height:40px;font-size:12px;}.talkrow input{font-size:16px;}.speech-note{font-size:11px;line-height:1.5;color:#c5d2bd;}
#workshop,#preview{background:#173f34;}.stagebox{flex-shrink:0;background:radial-gradient(ellipse,#4e7860,#204b3b);border:1px solid #92a78a66;box-shadow:inset 0 0 60px #12251a44;}.stagebox canvas{touch-action:none;}
#workshop header,#preview header{border-bottom:1px solid #e7d39c38;}#workshop header h2,#preview header h2{font:24px Georgia,serif;}.wsbody{min-height:0;}.wsbody h4{font-size:12px;letter-spacing:.04em;}.sw button{width:42px;height:42px;min-height:42px;}.presets button{min-height:44px;}.pair button{min-height:44px;}.wsbody .save{font-size:16px;}
#preview .ghost{border:1px solid #ffffff30;}.say{font-size:14px;}.recTime{top:calc(100px + env(safe-area-inset-top,0px));}
@media(min-width:761px){.sheet{max-width:560px;margin:auto;bottom:104px;border-radius:24px;max-height:65vh;}#workshop .stagebox,#workshop .wsbody{width:min(620px,calc(100% - 32px));margin-left:auto;margin-right:auto;}.hud.top{padding-left:24px;padding-right:24px;}.welcome-main{min-height:590px;}}
@media(max-width:1100px) and (min-width:761px){.welcome-main{gap:30px;padding:10px 32px 30px;}.welcome-art{min-height:520px;border-radius:110px 110px 26px 26px;}.welcome-steps{margin:0 32px;}.welcome-steps li{padding:6px 16px;gap:10px;}.welcome-steps .icon{display:none;}.welcome-footer{padding:22px 32px;}}
@media(max-width:760px){#gate .welcome-nav{padding:18px 24px;}.wordmark{font-size:23px;}.nav-note{font-size:12px;}.welcome-main{display:flex;flex-direction:column;gap:26px;padding:0 24px 26px;}.welcome-art{width:100%;height:255px;min-height:0;border-radius:80px 80px 22px 22px;}.welcome-art img{object-position:55% 55%;}.welcome-art figcaption{font-size:19px;bottom:31px;}.art-label{bottom:13px;font-size:8px;}.welcome-copy{width:100%;}.eyebrow{font-size:9px;letter-spacing:1.4px;margin-bottom:13px;}#gate h1{font-size:43px;letter-spacing:-1.8px;margin-bottom:14px;}#gate .welcome-intro{font-size:14px;margin-bottom:20px;max-width:34rem;line-height:1.6;}.welcome-actions{gap:8px;}#gate .go,#gate .ghost{padding:13px 14px;font-size:12px;min-height:50px;}.welcome-actions .icon{width:18px;height:18px;}.welcome-facts{padding-top:16px;margin-top:5px;gap:16px;}.welcome-steps{grid-template-columns:1fr;margin:0 24px;padding:8px 0;}.welcome-steps li{padding:17px 2px;border:0;border-bottom:1px solid #d9dccc;}.welcome-steps strong{font-size:14px;}#gate .welcome-steps p{font-size:12px;}.welcome-footer{flex-direction:column;gap:8px;padding:20px 24px 26px;}.top{align-items:center;}.tools{margin-left:auto;}.sheet{max-height:64dvh;}}
@media(max-width:430px){.top{padding-left:10px;padding-right:10px;}.tools{gap:4px;}.tools .ic{width:39px;height:44px;}.chip{padding:5px 8px 5px 5px;font-size:12px;gap:5px;}.chip #elfName{max-width:58px;}.chip .dot{width:22px;height:22px;}.say{top:calc(110px + env(safe-area-inset-top,0px));}}
@media(max-width:360px){.tools{width:100%;justify-content:space-between;}.welcome-main{padding-left:18px;padding-right:18px;}#gate .welcome-nav{padding:16px 18px;}.nav-note{display:none;}#gate h1{font-size:38px;}.welcome-actions{flex-direction:column;}.welcome-art{height:215px;}.scan.found{padding-top:130px;}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}
