/* Scoped to the first invitation inside Telegram. */
body.telegram-welcome-mode { background:#faf9f6; }
body.telegram-welcome-mode:has(#homeView.active) .shell { width:min(100%,700px); padding:calc(var(--app-safe-top,0px) + 8px) max(16px,var(--app-safe-right,0px)) calc(var(--app-safe-bottom,0px) + 12px) max(16px,var(--app-safe-left,0px)); }
body.telegram-welcome-mode .topbar,body.telegram-welcome-mode .footer { display:none; }
#homeView .telegram-welcome { display:flex; flex-direction:column; align-items:center; gap:12px; width:100%; text-align:center; }
.telegram-welcome-brand { display:flex; align-items:center; justify-content:center; height:42px; }
.telegram-welcome-brand img { width:108px; height:54px; object-fit:contain; }
.telegram-welcome-copy h1 { font-size:30px; font-weight:600; line-height:1.06; letter-spacing:-.04em; margin:0 0 10px; color:#302f2c; }
.telegram-welcome-copy p { font-size:14px; line-height:1.45; color:#77736d; margin:0; }
.telegram-welcome-stage { position:relative; width:min(100%,380px); margin:0; isolation:isolate; }
#homeView .telegram-welcome-start { display:flex; justify-content:center; align-items:center; gap:12px; width:min(100%,360px); min-height:44px; padding:10px 20px; border-radius:999px; border:1px solid #383532; color:white; background:#33302d; font-size:14px; font-weight:500; box-shadow:0 4px 14px #33302d12; transition:transform .16s ease,background .16s ease; }
#homeView .telegram-welcome-start:hover { background:#25221f; }
#homeView .telegram-welcome-start:active { transform:scale(.98); }
#homeView .telegram-welcome-start:focus-visible { outline:2px solid #b97460; outline-offset:3px; }
.welcome-start-arrow { display:grid; place-items:center; width:28px; height:28px; border:0; background:none; box-shadow:none; font:300 25px/1 var(--studio-font); }
.telegram-welcome .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
@media (min-width:700px) { .telegram-welcome-copy h1 { font-size:36px; }.telegram-welcome-brand { height:50px; }.telegram-welcome-stage { --welcome-reserve:290px; } }
@media (prefers-reduced-motion:reduce) { #homeView .telegram-welcome-start { transition:none; } }
