@font-face{font-family:Manrope;src:url('/assets/manrope-cyrillic.woff2') format('woff2');font-style:normal;font-weight:400 800;font-display:swap;unicode-range:U+0400-052F,U+2116}
@font-face{font-family:Manrope;src:url('/assets/manrope-latin.woff2') format('woff2');font-style:normal;font-weight:400 800;font-display:swap;unicode-range:U+0000-024F,U+2000-206F,U+20AC,U+2122}

:root {
    color-scheme: dark;
    --bg: #0b0912;
    --surface: #0e0c1b;
    --card: #171327;
    --text: #f4f1fc;
    --muted: #a49ac9;
    --line: #302547;
    --accent: #b697f7;
    --purple: #8548f7;
    --success: #a3d9c2;
    --ease-out: cubic-bezier(.22,1,.36,1);
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #eeeaf6;
    --surface: #f7f4fc;
    --card: #ffffff;
    --text: #211930;
    --muted: #72628b;
    --line: #dfd4ef;
    --accent: #7244b9;
    --success: #33765f;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: var(--bg); color: var(--text); font: 14px/1.5 Manrope,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; -webkit-font-smoothing: antialiased; }
a,button,select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; }
button,select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .57; }
button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.setup-shell { position: relative; isolation: isolate; overflow: hidden; width: calc(100% - 24px); max-width: 562px; min-height: calc(100svh - 24px); margin: 12px auto; padding: calc(40px + max(env(safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px))) 34px calc(22px + max(env(safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px))); border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(ellipse at 55% 25%,#6133bc0b,transparent 62%),var(--surface); }
.setup-shell::before,.setup-shell::after { content: ''; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; background: linear-gradient(130deg,#7250be1c,#3c296e10); }
.setup-shell::before { width: 400px; height: 400px; left: -229px; top: -260px; }
.setup-shell::after { width: 480px; height: 480px; right: -260px; bottom: -326px; }
.identity { text-align: center; }
.brand-emblem { display: grid; place-items: center; width: 130px; height: 130px; margin: 0 auto 12px; border: 1px solid #493368a6; border-radius: 30px; background: linear-gradient(140deg,#7f5ed51e,#3d256010); box-shadow: inset 0 1px 1px #dccbff08; animation: logo-in 360ms var(--ease-out) both; }
.brand-emblem img { width: 108px; height: 108px; object-fit: contain; }
.wordmark { font-size: 35px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.4; }
.wordmark span { color: var(--purple); }
.tagline { margin: 4px 0 0; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 2.45px; font-weight: 600; }
.heading { margin-top: 31px; text-align: center; }
h1 { margin: 0; font-size: 34px; line-height: 1.3; letter-spacing: -.8px; font-weight: 800; }
.heading p { margin: 5px 0 0; color: var(--muted); font-size: 16px; }
.entrance-copy { animation: copy-in 240ms var(--ease-out) 80ms both; }
.device { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; max-width: 100%; margin: 18px auto 23px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 10px; }
.device select { min-width: 0; max-width: 192px; min-height: 25px; padding: 0 3px; border: 0; border-radius: 4px; background: transparent; color: var(--text); font-size: 11px; font-weight: 600; }
.device option { background: var(--surface); color: var(--text); }

.step { padding: 24px 23px 14px; background: linear-gradient(120deg,#8259d407,transparent 65%),var(--card); border: 1px solid var(--line); border-radius: 21px; box-shadow: 0 7px 28px #00000008; animation: card-in 280ms var(--ease-out) both; }
.step-one { animation-delay: 160ms; }
.step-two { animation-delay: 250ms; transition: border-color 240ms var(--ease-out),box-shadow 240ms var(--ease-out); }
.step-heading { display: flex; align-items: center; gap: 16px; min-height: 57px; margin-bottom: 20px; }
.step-number { display: grid; place-items: center; flex-shrink: 0; width: 51px; height: 51px; border-radius: 50%; background: linear-gradient(145deg,#974bff,#6323e9); color: white; font-size: 24px; font-weight: 800; box-shadow: inset 0 1px 2px #ffffff14; }
.step-copy { flex: 1; min-width: 0; }
h2 { margin: 0; font-size: 19px; line-height: 1.35; letter-spacing: -.3px; font-weight: 800; }
.step-copy p { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.step-icon { display: grid; place-items: center; flex-shrink: 0; width: 58px; height: 61px; border-radius: 16px; border: 1px solid #8760c821; background: linear-gradient(145deg,#aa86ff0c,#aa86ff14); color: var(--accent); }
.step-icon svg { width: 34px; height: 34px; }
.button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 53px; padding: 13px 10px; border: 0; border-radius: 13px; background: linear-gradient(110deg,#8146f5,#692be9); color: #fff; text-align: center; text-decoration: none; font-size: 16px; line-height: 1.4; font-weight: 800; box-shadow: inset 0 1px #ffffff10,0 3px 20px #7333ec0d; transition: filter 140ms ease-out,transform 100ms ease-out; }
@media (hover:hover) and (pointer:fine) { .button:not(:disabled):hover { filter: brightness(1.09); } }
.button:not(:disabled):active { transform: scale(.98); }
.install-details { margin-top: 9px; }
.install-details summary { display: flex; justify-content: center; align-items: center; gap: 5px; list-style: none; cursor: pointer; min-height: 27px; color: var(--muted); font-size: 10px; }
.install-details summary::-webkit-details-marker { display: none; }
.install-details summary span { color: var(--accent); }
.install-details p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 9px 0 12px; }
.alternative-links { display: grid; gap: 6px; }
.alternative-links a { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); text-decoration: none; font-size: 11px; }
.ready-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 28px; padding: 3px 8px; margin: 0 auto; border: 0; background: none; color: var(--accent); font-size: 10px; }
.step-connector { width: 1px; height: 34px; margin: 0 auto; overflow: hidden; background: var(--line); }
.step-connector span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 240ms var(--ease-out); }
.step-two-ready .step-connector span { transform: scaleY(1); }
.step-two-ready .step-two { border-color: #a179e9; box-shadow: 0 0 0 1px #9870ed0c; }
.step-extras { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 30px; margin-top: 8px; }
.status { color: var(--success); font-size: 10px; }
.status[data-state="info"],.status[data-state="error"] { color: var(--muted); }
.copy-button { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; min-height: 30px; border: 0; padding: 4px 0 4px 5px; background: none; color: var(--muted); font-size: 10px; }
.copy-button svg { width: 13px; height: 13px; }
.connection-note { margin: 20px 0 0; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.7; }
footer { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 17px; color: var(--muted); font-size: 10px; }
footer a { text-decoration: none; }
.notice { margin: 0 0 18px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 11px; }
.notice a { color: var(--accent); }
.toast { position: fixed; z-index: 5; bottom: max(24px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; padding: 12px 17px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 30px #0004; background: var(--card); color: var(--text); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity 140ms ease-out; }
.toast.visible { opacity: 1; }

@keyframes logo-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes copy-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width:480px) {
    .setup-shell { padding-left: 20px; padding-right: 20px; padding-top: calc(28px + max(env(safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px))); border-radius: 20px; }
    .brand-emblem { width: 105px; height: 105px; border-radius: 25px; margin-bottom: 10px; }
    .brand-emblem img { width: 89px; height: 89px; }
    .wordmark { font-size: 29px; }
    .tagline { font-size: 8px; letter-spacing: 1.6px; }
    .heading { margin-top: 24px; }
    h1 { font-size: 28px; }
    .heading p { font-size: 13px; }
    .device { margin-top: 14px; margin-bottom: 19px; }
    .step { padding: 18px 15px 11px; border-radius: 18px; }
    .step-heading { gap: 10px; margin-bottom: 16px; min-height: 47px; }
    .step-number { width: 41px; height: 41px; font-size: 21px; }
    h2 { font-size: 15px; }
    .step-copy p { font-size: 10px; margin-top: 5px; }
    .step-icon { width: 44px; height: 48px; border-radius: 13px; }
    .step-icon svg { width: 28px; height: 28px; }
    .button { min-height: 49px; padding: 12px 8px; font-size: 14px; border-radius: 11px; }
    .step-connector { height: 28px; }
}
@media (max-width:350px) {
    .setup-shell { width: calc(100% - 16px); margin: 8px auto; padding-left: 12px; padding-right: 12px; }
    .step { padding-left: 12px; padding-right: 12px; }
    .step-heading { gap: 8px; }
    .step-number { width: 35px; height: 35px; font-size: 19px; }
    .step-icon { width: 35px; height: 41px; }
    .step-icon svg { width: 25px; height: 25px; }
    h2 { font-size: 14px; }
    .tagline { letter-spacing: 1px; }
}
@media (prefers-reduced-motion:reduce) {
    *,*::before,*::after { animation: none !important; transition: none !important; }
    .button:not(:disabled):active { transform: none; }
}
