:root {
    color-scheme: dark;
    --bg: #070911;
    --panel: rgba(12, 17, 29, .82);
    --line: rgba(128, 236, 255, .18);
    --cyan: #76efff;
    --violet: #a47cff;
    --text: #eefaff;
    --muted: #91a3b8;
}

* {
    box-sizing: border-box;
}

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

body {
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 35%, rgba(85, 45, 170, .16), transparent 37%),
        linear-gradient(145deg, #05070c, var(--bg) 55%, #090612);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
}

#particles,
.grid,
.glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

#particles {
    width: 100%;
    height: 100%;
    opacity: .55;
}

.grid {
    opacity: .22;
    background-image:
        linear-gradient(rgba(118,239,255,.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(118,239,255,.09) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.glow {
    filter: blur(90px);
    opacity: .22;
}

.glow-a {
    width: 340px;
    height: 340px;
    left: 8%;
    top: 12%;
    background: #4deaff;
}

.glow-b {
    width: 390px;
    height: 390px;
    left: auto;
    top: auto;
    right: 5%;
    bottom: 4%;
    background: #8d50ff;
}

.shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.panel {
    position: relative;
    width: min(680px, 100%);
    padding: 45px 42px 30px;
    text-align: center;
    background:
        linear-gradient(145deg, rgba(21,29,46,.88), rgba(7,10,18,.92));
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow:
        0 35px 90px rgba(0,0,0,.55),
        inset 0 1px rgba(255,255,255,.05);
    backdrop-filter: blur(18px);
}

.panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg,
        rgba(118,239,255,.48), transparent 32%,
        transparent 68%, rgba(164,124,255,.4));
    filter: blur(1px);
}

.eyebrow,
.node-label,
.address,
footer {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .2em;
}

.eyebrow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--cyan);
    font-size: 11px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 15px var(--cyan);
    animation: blink 2s ease-in-out infinite;
}

.rune-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 30px auto 24px;
    display: grid;
    place-items: center;
}

.rune {
    position: relative;
    z-index: 2;
    font-family: Georgia, serif;
    font-size: 78px;
    color: #f4fdff;
    text-shadow:
        0 0 14px var(--cyan),
        0 0 42px rgba(118,239,255,.6),
        0 0 80px rgba(164,124,255,.5);
}

.ring {
    position: absolute;
    border: 1px solid rgba(118,239,255,.45);
    border-radius: 50%;
}

.ring-one {
    inset: 8px;
    animation: rotate 11s linear infinite;
}

.ring-one::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    top: 8px;
    left: 26px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 16px var(--cyan);
}

.ring-two {
    inset: 24px;
    border-color: rgba(164,124,255,.45);
    border-style: dashed;
    animation: rotate-reverse 15s linear infinite;
}

.node-label {
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 11px;
}

h1 {
    margin: 0;
    font-size: clamp(38px, 8vw, 72px);
    line-height: 1;
    letter-spacing: .07em;
    background: linear-gradient(90deg, #fff, var(--cyan), #fff, var(--violet));
    background-size: 220% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: shimmer 8s linear infinite;
}

.message {
    max-width: 520px;
    margin: 22px auto 15px;
    color: #b8c7d8;
    line-height: 1.7;
    font-size: 15px;
}

.address {
    color: rgba(118,239,255,.64);
    font-size: 10px;
    overflow-wrap: anywhere;
}

.actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.button {
    appearance: none;
    min-width: 145px;
    padding: 13px 18px;
    border: 1px solid rgba(118,239,255,.25);
    border-radius: 9px;
    background: rgba(255,255,255,.035);
    color: var(--text);
    font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .13em;
    text-decoration: none;
    cursor: pointer;
    transition: .2s ease;
}

.button:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    background: rgba(118,239,255,.09);
    box-shadow: 0 10px 30px rgba(76,220,255,.12);
}

.button.primary {
    color: #061018;
    border-color: transparent;
    background: linear-gradient(90deg, var(--cyan), #b8f8ff);
}

.hidden {
    display: none;
}

footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
    color: #68778c;
    font-size: 9px;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    to { transform: rotate(-360deg); }
}

@keyframes blink {
    50% { opacity: .3; transform: scale(.7); }
}

@keyframes shimmer {
    to { background-position: 220% center; }
}

@media (max-width: 600px) {
    .panel {
        padding: 34px 19px 24px;
    }

    .rune-wrap {
        width: 125px;
        height: 125px;
        margin-top: 24px;
    }

    .rune {
        font-size: 64px;
    }

    .actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

    #particles {
        display: none;
    }
}
