* { box-sizing: border-box; }

:root {
    color: #16324f;
    background: #fbfdff;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
}

html, body { min-height: 100%; }

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background-color: #fbfdff;
    background-image: linear-gradient(rgba(29, 110, 143, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 110, 143, .055) 1px, transparent 1px);
    background-size: 42px 42px;
}

.ambient-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.shell, .launch-shell { position: relative; z-index: 1; }
.launch-shell { display: grid; place-items: center; width: 100%; min-height: 100vh; }

.launch-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 212px;
    height: 212px;
}

.launch-stage::before,
.launch-stage::after {
    position: absolute;
    border: 1px solid rgba(17, 119, 133, .18);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.launch-stage::before { inset: 2px; box-shadow: inset 0 0 32px rgba(15, 118, 110, .04); }
.launch-stage::after { inset: 22px; border-color: rgba(37, 99, 235, .20); animation: orbit-drift 7s linear infinite; }

.launch-message {
    position: absolute;
    top: -48px;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    color: #2d5976;
    font-size: 18px;
    font-family: "PingFang SC", "Microsoft YaHei", Inter, sans-serif;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: .12em;
    text-shadow: 0 1px 10px rgba(37, 99, 235, .10);
    white-space: nowrap;
    transform: translateX(-50%);
}

.launch-message::before,
.launch-message::after {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 1px;
    margin: 0;
    background: #0f766e;
    content: "";
    opacity: .65;
}

.launch-button {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border: 1px solid #0f766e;
    border-radius: 50%;
    color: #fff;
    background: #0f766e;
    box-shadow: 0 13px 28px rgba(15, 118, 110, .20), 0 0 0 10px rgba(15, 118, 110, .045);
    font: 650 14px/1 Inter, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
    letter-spacing: .12em;
    text-decoration: none;
    transition: color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.launch-button::before {
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(15, 118, 110, .35);
    border-radius: inherit;
    content: "";
    opacity: 0;
    transform: scale(.86);
    transition: opacity .22s ease, transform .22s ease;
}

.launch-button:hover { background: #0b665f; box-shadow: 0 17px 32px rgba(15, 118, 110, .28); transform: scale(1.045); }
.launch-button:focus-visible { outline: 3px solid rgba(37, 99, 235, .28); outline-offset: 5px; }
.launch-button.is-starting { color: transparent; background: transparent; box-shadow: none; pointer-events: none; transform: scale(.72); }
.launch-button.is-starting::before { opacity: 1; transform: scale(1.25); }

.launch-loader {
    position: absolute;
    width: 88px;
    height: 88px;
    border: 2px solid rgba(15, 118, 110, .15);
    border-top-color: #0f766e;
    border-radius: 50%;
    opacity: 0;
    transform: scale(.68) rotate(-45deg);
    transition: opacity .18s ease, transform .22s ease;
}

.launch-loader span {
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(37, 99, 235, .36);
    border-bottom-color: transparent;
    border-radius: 50%;
}

.launch-loader i { position: absolute; top: 8px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: #2563eb; transform: translateX(-50%); }
body.is-starting .launch-loader { opacity: 1; transform: scale(1) rotate(0); animation: spin .8s linear infinite; }
body.is-starting .launch-loader span { animation: spin-reverse 1.2s linear infinite; }
body.is-starting .launch-message { opacity: .42; transition: opacity .18s ease; }

.shell { width: min(344px, calc(100vw - 40px)); }
.status-panel { display: grid; justify-items: center; text-align: center; }

.route-effect {
    position: relative;
    width: 72px;
    height: 72px;
    border: 3px solid rgba(15, 118, 110, .14);
    border-top-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(15, 118, 110, .12);
    animation: route-spin .85s linear infinite;
}

.route-effect span,
.route-effect i,
.route-effect b { display: none; }

body.route-failed .route-effect { border: 3px solid rgba(220, 38, 38, .14); border-top: 3px solid #ef4444; box-shadow: 0 0 20px rgba(220, 38, 38, .12); }

.screen-reader { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.progress { display: none; }
.fallback { margin-top: 30px; }
.route-error { margin: 0 0 8px; color: #c2413a; font-size: 14px; font-weight: 650; letter-spacing: .08em; }
.fallback-button {
    display: inline-grid;
    place-items: center;
    min-width: 124px;
    min-height: 38px;
    padding: 9px 16px;
    border: 1px solid #10b981;
    border-radius: 2px;
    color: #fff;
    background: #0f9f7b;
    box-shadow: 0 0 18px rgba(16, 185, 129, .42), 0 8px 18px rgba(15, 159, 123, .18);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .06em;
    text-decoration: none;
    transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.fallback-button:hover { background: #078565; box-shadow: 0 0 24px rgba(16, 185, 129, .55), 0 11px 22px rgba(15, 159, 123, .24); transform: translateY(-1px); }
.fallback-button:focus-visible { outline: 3px solid rgba(16, 185, 129, .30); outline-offset: 3px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
@keyframes orbit-drift { to { transform: rotate(360deg); } }
@keyframes route-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 420px) {
    .shell { width: calc(100vw - 32px); }
    .launch-stage { transform: scale(.9); }
}
