/* Plasma CyberGlass / Sweet. Menu-only overrides; no stream surface rules. */
@font-face {
    font-family: 'CyberGlass Oxanium';
    src: url('/assets/cyberglass/Oxanium-Regular.ttf') format('truetype');
    font-display: swap;
}

body:not(.streaming-active) {
    background: #000 url('/assets/cyberglass/green-circuit.svg') center / cover fixed;
}
body:not(.streaming-active)::before,
body:not(.streaming-active)::after { opacity: 0; }

:is(.app-header, #main-content, .app-footer) {
    --surface-0: #070914;
    --surface-1: #0d1020;
    --surface-2: #13162a;
    --surface-3: #1b2038;
    --surface-4: #282443;
    --surface-glass: #0d1020c4;
    --text-1: #e8ecff;
    --text-2: #a3adcf;
    --text-3: #8992b8;
    --accent-1: #30e7ff;
    --accent-strong: #95f3ff;
    --accent-deep: #12789e;
    --accent-soft: #30e7ff12;
    --accent-ring: #30e7ff66;
    --on-accent: #070914;
    --neon-cyan: #30e7ff;
    --neon-magenta: #a855f7;
    --border-1: #8992b82c;
    --border-2: #30e7ff66;
    --c-success: #45f5a1;
    --c-danger: #ff4d82;
    --c-warning: #ffd166;
    --font-ui: 'CyberGlass Oxanium', sans-serif;
    --radius-sm: 7px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --notch-lg: none;
    --notch-md: none;
    --notch-sm: none;
    --edge-accent: 0 0 0 1px #30e7ff88, 0 0 24px #30e7ff14;
    --glow-accent: drop-shadow(0 0 7px #a855f730);
    font-family: var(--font-ui);
    color: var(--text-1);
}
.app-header {
    margin: 12px 16px 0;
    border: 1px solid #a855f745;
    border-radius: 14px;
    background: linear-gradient(105deg, #13162aee, #0d1020d9);
    box-shadow: 0 8px 32px #0005, inset 0 1px #ffffff0d;
}
.app-header h1 {
    letter-spacing: 3px;
    background: linear-gradient(110deg, #e8ecff, #30e7ff 58%, #bf8aff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: none;
}
.app-header .btn-icon { border-radius: 9px; }
.app-footer { background: #070914aa; border-color: #a855f722; }
#main-content { padding-top: 38px; }
#main-content .hosts-view { max-width: 1100px; }
#main-content .hosts-header { margin: 18px 0 26px; }
#main-content .hosts-header h2 { letter-spacing: 4px; font-size: 1.35rem; }
#main-content .host-card {
    background: linear-gradient(130deg, #13162ad9, #070914d9);
    border: 1px solid #a855f74d;
    border-radius: 18px;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px #0006, inset 0 1px #e8ecff12;
    clip-path: none;
    animation: cg-menu-enter 600ms cubic-bezier(.16,1,.3,1) both;
}
#main-content .host-card-head { border-bottom: 1px solid #30e7ff22; }
#main-content .host-name { color: #e8ecff; letter-spacing: 1px; }
#main-content .app-card {
    border-radius: 12px;
    clip-path: none;
    background: linear-gradient(160deg, #1b20388c, #0d10208c);
    border: 1px solid #8992b82e;
    box-shadow: inset 0 1px #ffffff08;
    animation: cg-menu-enter 650ms cubic-bezier(.16,1,.3,1) both;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
#main-content .app-card:nth-child(2) { animation-delay: 70ms; }
#main-content .app-card:nth-child(3) { animation-delay: 140ms; }
#main-content .app-card:nth-child(4) { animation-delay: 210ms; }
#main-content .app-card:hover {
    transform: translateY(-6px);
    border-color: #30e7ff9c;
    box-shadow: 0 12px 28px #0006, 0 0 22px #a855f729, inset 0 1px #30e7ff33;
    filter: none;
}
#main-content .app-card:active { transform: translateY(-1px) scale(.97); }
#main-content .app-card-image { border-radius: 8px; background: #13162a; }
#main-content .app-card-name { color: #e8ecff; letter-spacing: .4px; }
#main-content .btn {
    clip-path: none;
    border-radius: 8px;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
#main-content .btn:hover { box-shadow: 0 0 18px #30e7ff24; }
#main-content a { color: #30e7ff; }
#main-content a:hover { color: #cfacff; }

/* RGB light lives on the edges, keeping the glass interiors quiet. */
:is(#main-content .btn, .app-header .btn-icon) {
    border: 1px solid transparent;
    background: linear-gradient(#0d1020, #0d1020) padding-box,
        linear-gradient(110deg, #29ff85, #30e7ff 35%, #a855f7 68%, #ff4d82) border-box;
    color: #e8ecff;
    box-shadow: -3px 0 12px #29ff8514, 3px 0 12px #a855f725;
}
:is(#main-content .btn, .app-header .btn-icon):hover {
    background: linear-gradient(#171c30, #0d1020) padding-box,
        linear-gradient(110deg, #ff4d82, #a855f7 35%, #30e7ff 68%, #29ff85) border-box;
    box-shadow: -4px 0 18px #30e7ff40, 4px 0 18px #ff4d8230;
}

/* Startup visuals only: existing lifecycle and reveal timing are preserved. */
.stream-startup-overlay {
    padding: 28px 34px;
    border: 1px solid #29ff854d;
    border-radius: 16px;
    background: #000e;
    box-shadow: 0 0 38px #29ff8514, inset 0 1px #8affb21a;
    font-family: 'CyberGlass Oxanium', sans-serif;
}
.startup-loader { width: 64px; height: 64px; }
.startup-loader::before { border-color: #29ff8520; }
.startup-loader-ring {
    background: conic-gradient(transparent 35%, #29ff85 65%, #30e7ff 82%, #a855f7 94%, #fff);
    animation-duration: 1.4s;
}
.startup-step.active { color: #c8ffdb; }
.startup-step.active .startup-step-dot {
    background: #29ff85;
    box-shadow: 0 0 12px #29ff8580, 0 0 0 4px #29ff8518;
}
.startup-step.done .startup-step-dot { background: #30e7ff; }
.stream-reveal .reveal-grid {
    background: linear-gradient(#000b, #000b),
        url('/assets/cyberglass/green-circuit.svg') center / cover;
}
.stream-reveal .reveal-beam {
    height: 4%;
    background: linear-gradient(transparent, #29ff8540 45%, #b4ffcf 50%, #29ff8540 55%, transparent);
    box-shadow: 0 0 24px #29ff8540;
}
.stream-reveal .reveal-glitch { background: none; }
.stream-reveal .reveal-brackets .rb { border-color: #29ff85; filter: drop-shadow(0 0 5px #29ff8555); }
.stream-reveal .reveal-text {
    font-family: 'CyberGlass Oxanium', sans-serif;
    color: #c8ffdb;
    text-shadow: -1px 0 #a855f7, 1px 0 #30e7ff, 0 0 16px #29ff8570;
}
.stream-reveal.playing .reveal-text { animation: cg-signal-in 900ms ease both; }
@keyframes cg-signal-in {
    0% { opacity: 0; transform: translateY(8px); letter-spacing: 12px; }
    25%, 65% { opacity: 1; transform: translateY(0); letter-spacing: 7px; }
    100% { opacity: 0; transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
    .startup-loader-ring, .stream-reveal.playing :is(.reveal-text, .reveal-grid, .reveal-beam, .reveal-brackets, .reveal-glitch) {
        animation: none;
    }
}
#main-content .update-banner {
    border-color: #8992b829;
    border-left-color: #a855f7;
    border-radius: 10px;
    background: #0d1020bf;
    backdrop-filter: blur(12px);
}
#main-content :is(input, select, textarea) { border-radius: 8px; }
#main-content :is(.settings-view, .admin-view, .login-view) {
    animation: cg-menu-enter 400ms ease both;
}
#main-content :is(.app-card, .btn, input, select):focus-visible {
    outline: 2px solid #30e7ff;
    outline-offset: 4px;
}
@keyframes cg-menu-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
    .app-header { margin: 8px 8px 0; border-radius: 10px; }
    .app-header h1 { letter-spacing: 1px; }
    #main-content { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    #main-content :is(.host-card, .app-card, .settings-view, .admin-view, .login-view) {
        animation: none;
        transition: none;
    }
}
