:root {
    --slate-950: #020617;
    --slate-400: #94a3b8;
    --white: #ffffff;
    --border-white: rgba(255, 255, 255, 0.15);
    --status-green: #4ade80;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 24px;
    background: var(--slate-950) url('../images/clouds.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    color: var(--white);
}

.container {
    background-color: rgba(2, 6, 23, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
}

.header-asset {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: pixelated;
    border-bottom: 1px solid var(--border-white);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.content {
    padding: 40px;
    text-align: center;
}

h1 {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    margin: 0 0 40px 0;
    color: var(--white);
    text-transform: uppercase;
}

.btn-primary {
    display: block;
    border: 1px solid var(--white);
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 16px;
    transition: all 0.2s ease;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    outline: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.btn-primary:focus-visible,
.link-item:focus-visible,
.spectrum-link-item:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.9);
    outline-offset: 4px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    border-top: 1px solid var(--border-white);
    padding-top: 30px;
}

.link-item {
    color: var(--slate-400);
    text-decoration: none;
    font-size: 0.75rem;
    transition: 0.2s;
    text-transform: uppercase;
}

.link-item:hover {
    color: var(--white);
}

.radio-embed {
    width: 100%;
    min-height: 150px;
    height: 150px;
    margin-top: 30px;
    border: 0;
    display: block;
}

.node-info {
    margin-top: 25px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-green {
    color: var(--status-green);
    font-weight: bold;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.system-manifest {
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 15px 0 15px;
    font-size: 0.52rem;
    font-style: italic;
    line-height: 1.4;
    text-align: center;
    color: rgba(148, 163, 184, 0.4);
    letter-spacing: 0.03em;
}

.spectrum-link-wrapper {
    margin-top: 18px;
}

.spectrum-link-item {
    display: block;
    transition: transform 0.2s ease;
}

.pixel-spectrum {
    display: block;
    width: 100%;
    height: 32px;
}

.grey-bar {
    fill: rgba(148, 163, 184, 0.4);
    transition: fill 0.3s ease;
}

.blue-bar {
    fill: rgba(59, 130, 246, 0.5);
    transition: fill 0.3s ease;
}

.spectrum-link-item:hover {
    transform: scale(1.02);
}

.spectrum-link-item:hover .bar {
    animation: bounce 0.8s infinite ease-in-out;
    transform-origin: bottom;
}

.spectrum-link-item:hover .grey-bar {
    fill: #ffffff;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.spectrum-link-item:hover .blue-bar {
    fill: #60a5fa;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.7));
}

@keyframes bounce {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}

.bar {
    transform-box: fill-box;
    transform-origin: bottom;
}

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

@media (max-width: 520px) {
    body {
        padding: 16px;
        align-items: flex-start;
        background-attachment: scroll;
    }

    .content {
        padding: 32px 24px;
    }

    h1 {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .btn-primary {
        margin-bottom: 32px;
    }
}

@media (max-width: 360px) {
    .content {
        padding: 28px 20px;
    }

    h1 {
        font-size: 0.88rem;
        letter-spacing: 0.08em;
    }

    .footer-links {
        gap: 22px;
    }
}
