:root {
    --bg: #06111f;
    --bg2: #072a58;
    --orange: #ff7a00;
    --orange2: #ffb01c;
    --blue: #1687ff;
    --cyan: #35d1ff;
    --text: #f6f9ff;
    --muted: #9eb3cc;
    --line: rgba(255, 255, 255, .12)
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: radial-gradient(circle at 8% 45%, rgba(255, 105, 0, .18), transparent 28%), radial-gradient(circle at 92% 35%, rgba(0, 119, 255, .28), transparent 34%), linear-gradient(135deg, #050c16, #07172d 54%, #05245a);
    color: var(--text)
}

body {
    min-height: 100vh;
    overflow: hidden
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none
}

.page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 18px;
    position: relative;
    z-index: 2
}

.connect-box {
    width: min(720px, 94vw);
    text-align: center
}

.radar {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    position: relative
}

.ring,
.spinner {
    position: absolute;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%)
}

.r1 {
    width: 146px;
    height: 146px;
    border: 1px solid rgba(43, 151, 255, .28)
}

.r2 {
    width: 116px;
    height: 116px;
    border: 1px solid rgba(255, 132, 23, .32)
}

.r3 {
    width: 86px;
    height: 86px;
    border: 1px solid rgba(57, 163, 255, .22)
}

.spinner {
    width: 140px;
    height: 140px;
    border-top: 3px solid var(--orange);
    border-right: 3px solid transparent;
    border-bottom: 3px solid var(--blue);
    border-left: 3px solid transparent;
    animation: spin 1.9s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 122, 0, .32))
}

.spinner:after {
    content: "";
    position: absolute;
    right: 17px;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 14px var(--cyan)
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg)
    }
}

.core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: linear-gradient(145deg, #ff9f18, #ff6900);
    display: grid;
    place-items: center;
    font-size: 31px;
    box-shadow: 0 0 25px rgba(255, 116, 0, .38)
}

h1 {
    font-size: 42px;
    margin: 0;
    font-weight: 900;
    letter-spacing: 2px
}

h1 span {
    color: #ff9b17
}

#subtitle {
    color: var(--muted);
    font-size: 17px;
    margin: 12px 0 0
}

.steps {
    width: min(620px, 100%);
    margin: 34px auto 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: relative
}

.steps:before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 16px;
    height: 2px;
    background: rgba(255, 255, 255, .11)
}

.step {
    position: relative;
    z-index: 2;
    color: rgba(226, 236, 249, .42);
    font-size: 13px
}

.dot {
    width: 32px;
    height: 32px;
    margin: 0 auto 9px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #10223b;
    border: 2px solid rgba(255, 255, 255, .15);
    font-weight: 800
}

.step.done {
    color: #dce8f8
}

.step.done .dot {
    background: var(--orange);
    border-color: #ff9a21;
    box-shadow: 0 0 14px rgba(255, 122, 0, .28)
}

.step.active {
    color: #fff
}

.step.active .dot {
    background: #0c6dcc;
    border-color: #45adff;
    box-shadow: 0 0 0 5px rgba(22, 135, 255, .1), 0 0 16px rgba(22, 135, 255, .4)
}

.progress-row {
    width: min(620px, 100%);
    margin: 33px auto 0;
    display: flex;
    align-items: center;
    gap: 16px
}

.progress-track {
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
    flex: 1
}

.progress-bar {
    height: 100%;
    width: 8%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffad18, #ff7600 32%, #6c79ef 63%, #1687ff 82%, #37d2ff);
    box-shadow: 0 0 14px rgba(255, 122, 0, .22);
    transition: width .42s ease
}

.progress-row strong {
    width: 52px;
    text-align: left;
    font-size: 20px
}

.status {
    font-size: 17px;
    margin-top: 19px;
    color: #eaf1fb
}

.current {
    min-height: 20px;
    margin-top: 9px;
    color: rgba(194, 211, 232, .5);
    font-size: 14px;
    word-break: break-all
}

.retry {
    margin-top: 20px;
    border: 0;
    border-radius: 999px;
    padding: 11px 22px;
    background: linear-gradient(90deg, #ff7a00, #ff9f1a);
    color: #fff;
    font-weight: 800;
    cursor: pointer
}

.hidden {
    display: none !important
}

.success-icon {
    width: 86px;
    height: 86px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(145deg, #16a2ff, #0b6dcd);
    box-shadow: 0 0 32px rgba(23, 139, 255, .35)
}

.speed-glow {
    position: fixed;
    width: 58vw;
    height: 58vw;
    border-radius: 50%;
    pointer-events: none;
    opacity: .7
}

.speed-glow.left {
    left: -40vw;
    top: 25vh;
    border: 2px solid rgba(255, 122, 0, .2);
    box-shadow: 0 0 80px rgba(255, 100, 0, .12)
}

.speed-glow.right {
    right: -40vw;
    top: 20vh;
    border: 2px solid rgba(22, 135, 255, .22);
    box-shadow: 0 0 80px rgba(22, 135, 255, .14)
}

.earth {
    position: fixed;
    left: 50%;
    bottom: -45vw;
    transform: translateX(-50%);
    width: 115vw;
    height: 72vw;
    border-radius: 50%;
    border-top: 2px solid rgba(53, 172, 255, .42);
    box-shadow: 0 -8px 45px rgba(0, 134, 255, .13);
    background: radial-gradient(ellipse at 50% 0%, rgba(11, 67, 129, .3), transparent 65%)
}

@media(max-width:640px) {
    body {
        overflow: auto
    }
    .page {
        min-height: 100dvh;
        padding-top: 24px
    }
    .radar {
        width: 125px;
        height: 125px
    }
    .r1 {
        width: 122px;
        height: 122px
    }
    .r2 {
        width: 98px;
        height: 98px
    }
    .r3 {
        width: 74px;
        height: 74px
    }
    .spinner {
        width: 116px;
        height: 116px
    }
    .core {
        width: 54px;
        height: 54px;
        border-radius: 18px;
        font-size: 27px
    }
    h1 {
        font-size: 34px
    }
    .steps {
        margin-top: 28px
    }
    .step {
        font-size: 11px
    }
    .dot {
        width: 29px;
        height: 29px
    }
    .steps:before {
        top: 14px
    }
    .progress-row {
        margin-top: 28px
    }
    .earth {
        width: 160vw;
        height: 95vw;
        bottom: -60vw
    }
}