:root {
    --bg-color: #00060e;
    --bg-panel: rgba(0, 6, 14, 0.82);
    --bg-panel-solid: #010a14;
    --border-color: rgba(254, 232, 1, 0.22);
    --border-glow: rgba(254, 232, 1, 0.45);

    --color-cyan: #fee801;
    --color-green: #54c1e6;
    --color-yellow: #9a9f17;
    --color-red: #ff3a3a;
    --color-magenta: #39c4b6;
    --color-text: #e2e8f0;
    --color-text-dim: #6b7a5a;

    --glow-cyan: 0 0 12px rgba(254, 232, 1, 0.55);
    --glow-green: 0 0 12px rgba(84, 193, 230, 0.55);
    --glow-yellow: 0 0 12px rgba(154, 159, 23, 0.55);
    --glow-red: 0 0 12px rgba(255, 58, 58, 0.55);

    --font-heading: 'Orbitron', 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background: var(--bg-color);
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.55;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.0) 0,
            rgba(0, 0, 0, 0.0) 2px,
            rgba(0, 0, 0, 0.10) 3px,
            rgba(0, 0, 0, 0.0) 4px
        );
    pointer-events: none;
    mix-blend-mode: multiply;
    z-index: 9998;
    animation: scan-shift 8s linear infinite;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.75) 100%);
    pointer-events: none;
    z-index: 9997;
}

@keyframes scan-shift {
    from { transform: translateY(0); }
    to   { transform: translateY(4px); }
}

#three-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.app-shell {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(254,232,1,0.05) 0%, transparent 100%);
    backdrop-filter: blur(8px);
    z-index: 5;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--color-cyan);
    text-shadow: var(--glow-cyan);
    text-decoration: none;
}

.brand .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-green);
    box-shadow: var(--glow-green);
    animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.86); }
}

.nav {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav a {
    color: var(--color-text-dim);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 2px;
    padding: 0.45rem 0.9rem;
    border-radius: 3px;
    border: 1px solid transparent;
    transition: all 0.18s;
}

.nav a:hover, .nav a.active {
    color: var(--color-cyan);
    border-color: var(--border-color);
    background: rgba(254, 232, 1, 0.06);
    text-shadow: 0 0 6px var(--color-cyan);
}

.session-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background: rgba(254, 232, 1, 0.04);
    font-size: 0.78rem;
}

.session-chip .score {
    color: var(--color-yellow);
    font-weight: 700;
}

.session-chip .team {
    color: var(--color-cyan);
    font-weight: 700;
}

.session-chip button {
    background: transparent;
    border: none;
    color: var(--color-red);
    font-family: var(--font-mono);
    cursor: pointer;
    font-size: 0.72rem;
    padding: 0;
}

main {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.center-card {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 460px;
    padding: 2rem 2.25rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow:
        0 0 40px rgba(254, 232, 1, 0.08),
        0 0 0 1px rgba(254, 232, 1, 0.03) inset;
    backdrop-filter: blur(14px);
}

.center-card h2 {
    font-family: var(--font-heading);
    color: var(--color-cyan);
    text-shadow: var(--glow-cyan);
    font-size: 1.4rem;
    letter-spacing: 4px;
    margin-bottom: 1.4rem;
    text-align: center;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0.9rem;
}

.field label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--color-text-dim);
}

input[type="text"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--border-color);
    color: var(--color-text);
    padding: 0.7rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, textarea:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(254, 232, 1, 0.25);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 2px;
    padding: 0.7rem 1.4rem;
    border-radius: 3px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s;
    user-select: none;
}

.btn-primary {
    background: var(--color-cyan);
    color: #00060e;
}
.btn-primary:hover {
    background: #ffed4a;
    box-shadow: var(--glow-cyan);
    transform: translateY(-1px);
}

.btn-green {
    background: var(--color-green);
    color: #00060e;
}
.btn-green:hover {
    background: #7dd3e8;
    box-shadow: var(--glow-green);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}
.btn-outline:hover {
    background: rgba(254, 232, 1, 0.08);
    box-shadow: var(--glow-cyan);
}

.btn-danger {
    background: transparent;
    border-color: var(--color-red);
    color: var(--color-red);
}
.btn-danger:hover {
    background: rgba(255, 58, 58, 0.1);
    box-shadow: var(--glow-red);
}

.btn-block {
    width: 100%;
}

.flash {
    margin-top: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 3px;
    font-size: 0.82rem;
    border: 1px solid transparent;
}
.flash.error { background: rgba(255, 58, 58, 0.08); border-color: var(--color-red); color: var(--color-red); }
.flash.ok    { background: rgba(84, 193, 230, 0.08); border-color: var(--color-green); color: var(--color-green); }
.flash.warn  { background: rgba(154, 159, 23, 0.06); border-color: var(--color-yellow); color: var(--color-yellow); }

.tab-row {
    display: flex;
    gap: 4px;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-row .tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.6rem;
    color: var(--color-text-dim);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 0.74rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}

.tab-row .tab.active {
    color: var(--color-cyan);
    border-bottom-color: var(--color-cyan);
    text-shadow: var(--glow-cyan);
}

.muted-link {
    color: var(--color-text-dim);
    font-size: 0.78rem;
    text-align: center;
    display: block;
    margin-top: 1rem;
    text-decoration: none;
}
.muted-link:hover { color: var(--color-cyan); }

.glitch {
    position: relative;
    display: inline-block;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    overflow: hidden;
}
.glitch::before {
    color: var(--color-red);
    text-shadow: -2px 0 var(--color-red);
    clip-path: inset(0 0 70% 0);
    animation: glitch-top 2.6s infinite linear alternate-reverse;
}
.glitch::after {
    color: var(--color-cyan);
    text-shadow: 2px 0 var(--color-cyan);
    clip-path: inset(70% 0 0 0);
    animation: glitch-bot 2.4s infinite linear alternate-reverse;
}

@keyframes glitch-top {
    0%   { transform: translate(0,0); }
    20%  { transform: translate(-2px,-1px); }
    40%  { transform: translate(1px,1px); }
    100% { transform: translate(0,0); }
}
@keyframes glitch-bot {
    0%   { transform: translate(0,0); }
    20%  { transform: translate(2px,1px); }
    40%  { transform: translate(-1px,-1px); }
    100% { transform: translate(0,0); }
}

.toast-wrap {
    position: fixed;
    top: 60px;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    pointer-events: all;
    padding: 0.7rem 1rem;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 0.85rem;
    min-width: 240px;
    animation: toast-in 0.25s ease-out;
    backdrop-filter: blur(8px);
}
.toast.ok    { border-color: var(--color-green); color: var(--color-green); }
.toast.error { border-color: var(--color-red); color: var(--color-red); }
.toast.warn  { border-color: var(--color-yellow); color: var(--color-yellow); }
.toast.info  { border-color: var(--color-cyan); color: var(--color-cyan); }

@keyframes toast-in {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

.hidden { display: none !important; }

.text-cyan { color: var(--color-cyan); }
.text-green { color: var(--color-green); }
.text-yellow { color: var(--color-yellow); }
.text-red { color: var(--color-red); }
.text-magenta { color: var(--color-magenta); }
.text-dim { color: var(--color-text-dim); }

/* Glitch hover on buttons */
.btn:hover {
    animation: btn-glitch-hover 0.4s ease-out;
}
@keyframes btn-glitch-hover {
    0%, 100% { text-shadow: none; }
    20% { text-shadow: -2px 0 var(--color-red), 2px 0 var(--color-cyan); }
    40% { text-shadow: 2px 0 var(--color-red), -2px 0 var(--color-cyan); }
    60% { text-shadow: -1px 0 var(--color-magenta), 1px 0 var(--color-green); }
    80% { text-shadow: 1px 0 var(--color-red), -1px 0 var(--color-cyan); }
}

/* Ambient background pulse */
body::after {
    animation: scan-shift 8s linear infinite, bg-breathe 6s ease-in-out infinite;
}
@keyframes bg-breathe {
    0%, 100% { opacity: 0.10; }
    50% { opacity: 0.16; }
}

/* Cursor particle trail canvas */
#cursor-trail {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

/* Page transition wipe */
.page-wipe {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-color);
    pointer-events: none;
    transform: translateY(100%);
}
.page-wipe.active {
    animation: wipe-up 0.5s ease-in-out forwards;
}
@keyframes wipe-up {
    0%   { transform: translateY(100%); }
    40%  { transform: translateY(0); }
    100% { transform: translateY(0); }
}
.page-wipe-bar {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-cyan);
    box-shadow: var(--glow-cyan), 0 0 40px var(--color-cyan);
    transform: translateY(-50%) scaleX(0);
    animation: wipe-bar 0.5s 0.15s ease-out forwards;
}
@keyframes wipe-bar {
    0%   { transform: translateY(-50%) scaleX(0); }
    100% { transform: translateY(-50%) scaleX(1); }
}

/* Konami easter egg overlay */
.konami-overlay {
    position: fixed;
    inset: 0;
    z-index: 10002;
    background: rgba(5, 7, 10, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: konami-in 0.3s ease-out;
    cursor: pointer;
}
.konami-overlay .konami-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 6px;
    text-align: center;
    line-height: 1.5;
    animation: konami-glitch 0.5s steps(4) infinite;
}
.konami-overlay .konami-text .line1 {
    color: var(--color-red);
    text-shadow: 0 0 20px var(--color-red);
}
.konami-overlay .konami-text .line2 {
    color: var(--color-cyan);
    text-shadow: 0 0 20px var(--color-cyan);
    font-size: 0.6em;
    letter-spacing: 3px;
    margin-top: 0.5rem;
    display: block;
}
@keyframes konami-in {
    from { opacity: 0; transform: scale(1.1); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes konami-glitch {
    0%   { transform: translate(0); }
    25%  { transform: translate(-3px, 2px) skewX(-2deg); }
    50%  { transform: translate(3px, -1px) skewX(1deg); }
    75%  { transform: translate(-1px, 1px) skewX(-1deg); }
    100% { transform: translate(0); }
}

/* Custom cursors */
html { cursor: crosshair; }
a, button, [role="button"] { cursor: pointer; }
input, textarea { cursor: text; }

/* Floating ambient particles (CSS-only) */
.floating-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.floating-particles span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-cyan);
    border-radius: 50%;
    opacity: 0;
    animation: float-up linear infinite;
}
.floating-particles span:nth-child(odd) { background: var(--color-magenta); }
@keyframes float-up {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

/* Mobile responsive — landing page */
@media (max-width: 768px) {
    .topbar {
        padding: 0.6rem 0.8rem;
    }
    .brand {
        font-size: 0.82rem;
        letter-spacing: 2px;
    }
    .nav a {
        font-size: 0.68rem;
        padding: 0.35rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 0.5rem 0.6rem;
    }
    .brand {
        font-size: 0.72rem;
        letter-spacing: 1px;
        gap: 8px;
    }
    .brand .dot {
        width: 8px;
        height: 8px;
    }
}

/* ============================================================
 * Light theme ("daytime operations" mode)
 * ============================================================ */
[data-theme="light"] {
    --bg-color: #f0f2f5;
    --bg-panel: rgba(255, 255, 255, 0.92);
    --bg-panel-solid: #ffffff;
    --border-color: rgba(0, 40, 80, 0.15);
    --border-glow: rgba(0, 80, 160, 0.3);

    --color-cyan: #0066cc;
    --color-green: #0891b2;
    --color-yellow: #b45309;
    --color-red: #dc2626;
    --color-magenta: #0d9488;
    --color-text: #1e293b;
    --color-text-dim: #64748b;

    --glow-cyan: 0 0 8px rgba(0, 102, 204, 0.2);
    --glow-green: 0 0 8px rgba(8, 145, 178, 0.2);
    --glow-yellow: 0 0 8px rgba(180, 83, 9, 0.2);
    --glow-red: 0 0 8px rgba(220, 38, 38, 0.2);
}

/* CRT scanlines — nearly invisible in light mode */
[data-theme="light"] body::after {
    opacity: 0.02;
}

/* CRT vignette — transparent in light mode */
[data-theme="light"] body::before {
    background: transparent;
}

/* Default cursor in light mode */
[data-theme="light"] html {
    cursor: default;
}

/* Scrollbar thumb */
[data-theme="light"] .panel-body::-webkit-scrollbar-thumb {
    background: rgba(0, 40, 80, 0.2);
}

/* Inputs — white bg with subtle border */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] textarea {
    background: #ffffff;
    border-color: rgba(0, 40, 80, 0.2);
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 8px rgba(0, 102, 204, 0.2);
}

/* Primary button — cyan bg with white text */
[data-theme="light"] .btn-primary {
    background: var(--color-cyan);
    color: #ffffff;
}
[data-theme="light"] .btn-primary:hover {
    background: #0052a3;
    box-shadow: var(--glow-cyan);
}

/* Glitch pseudo-elements — hide RGB split on light bg */
[data-theme="light"] .glitch::before,
[data-theme="light"] .glitch::after {
    display: none;
}

/* Three.js backgrounds, cursor trail, particles — fade out */
[data-theme="light"] #three-bg,
[data-theme="light"] #matrix-bg,
[data-theme="light"] #cursor-trail,
[data-theme="light"] .floating-particles {
    opacity: 0.08;
}

/* --- Notepad ----------------------------------------------------------- */
.notepad-section { margin-top: 1rem; border-top: 1px solid var(--border-color); padding-top: 0.5rem; }
.notepad-header { font-family: var(--font-heading); font-size: 0.68rem; letter-spacing: 2px; color: var(--color-text-dim); cursor: pointer; padding: 0.3rem 0; }
.notepad-header:hover { color: var(--color-cyan); }
.notepad-body { margin-top: 0.4rem; }
.notepad-textarea {
    width: 100%; min-height: 90px; max-height: 240px; resize: vertical;
    background: rgba(0,0,0,0.35); border: 1px solid var(--border-color); border-radius: 4px;
    color: var(--color-text); font-family: var(--font-mono); font-size: 0.78rem;
    padding: 0.5rem; line-height: 1.5; box-sizing: border-box;
}
.notepad-textarea:focus { outline: none; border-color: var(--color-cyan); }
.notepad-status { font-size: 0.6rem; color: var(--color-green); height: 14px; margin-top: 2px; text-align: right; letter-spacing: 1px; }

/* --- Command palette --------------------------------------------------- */
.cmd-palette-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    display: flex; align-items: flex-start; justify-content: center; padding-top: 15vh;
}
.cmd-palette-overlay.hidden { display: none; }
.cmd-palette {
    width: 90%; max-width: 480px;
    background: var(--bg-panel-solid); border: 1px solid var(--border-color);
    border-radius: 8px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.cmd-input {
    width: 100%; border: none; border-bottom: 1px solid var(--border-color);
    background: transparent; color: var(--color-text);
    font-family: var(--font-mono); font-size: 0.9rem;
    padding: 0.8rem 1rem; box-sizing: border-box;
}
.cmd-input:focus { outline: none; }
.cmd-input::placeholder { color: var(--color-text-dim); }
.cmd-results { max-height: 300px; overflow-y: auto; }
.cmd-item {
    padding: 0.55rem 1rem; font-size: 0.8rem; color: var(--color-text);
    cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.03);
}
.cmd-item:hover, .cmd-item.selected { background: rgba(254,232,1,0.08); color: var(--color-cyan); }

/* --- Focus mode -------------------------------------------------------- */
body.focus-mode .console-grid { grid-template-columns: 1fr !important; }
body.focus-mode .scene-col { display: none !important; }
body.focus-mode .panel { max-height: none !important; border-left: none !important; }
body.focus-mode .node-list-mobile { display: none !important; }

/* --- Hack sequence overlay --------------------------------------------- */
.hack-seq-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0, 2, 8, 0.92); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.hack-seq-overlay.fade-out { opacity: 0; transition: opacity 0.4s ease; }
.hack-seq-overlay.flash { animation: hack-flash 0.15s ease; }
@keyframes hack-flash {
    0%, 100% { background: rgba(0,2,8,0.92); }
    50% { background: rgba(254,232,1,0.12); }
}
.hack-seq-container { width: 90%; max-width: 520px; }
.hack-phase.hidden { display: none; }
.hack-phase-label {
    font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 3px;
    color: var(--color-cyan); margin-bottom: 0.8rem;
    animation: blink-cursor 0.6s step-end infinite;
}
@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.hack-progress-bar {
    width: 100%; height: 4px; background: rgba(254,232,1,0.1);
    border: 1px solid var(--border-color); border-radius: 2px;
    overflow: hidden; margin-bottom: 1rem;
}
.hack-progress-fill {
    height: 100%; width: 0%; background: var(--color-cyan);
    transition: width 0.08s linear;
    box-shadow: 0 0 8px var(--color-cyan);
}
.hack-hex-dump {
    font-family: var(--font-mono); font-size: 0.6rem; line-height: 1.6;
    color: rgba(254,232,1,0.35); white-space: pre; overflow: hidden;
    max-height: 160px;
}
.hack-granted-text {
    font-family: var(--font-heading); font-size: 2.2rem; letter-spacing: 8px;
    color: #22ff44; text-align: center;
    text-shadow: 0 0 20px rgba(34,255,68,0.6), 0 0 60px rgba(34,255,68,0.25);
    animation: granted-pulse 0.5s ease;
}
@keyframes granted-pulse {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}
.hack-granted-sub {
    font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 3px;
    color: rgba(34,255,68,0.6); text-align: center; margin-top: 0.5rem;
}

/* --- Glitch effect ----------------------------------------------------- */
.glitch-overlay {
    position: fixed; inset: 0; z-index: 10001; pointer-events: none;
    mix-blend-mode: screen;
}
.glitch-overlay.glitch-fade { opacity: 0; transition: opacity 0.2s ease; }
.glitch-slice {
    position: absolute; left: 0; right: 0;
    background: rgba(255, 0, 0, 0.08);
    animation: glitch-tear 0.12s steps(2) infinite alternate;
}
@keyframes glitch-tear {
    0% { clip-path: inset(0 0 0 0); transform: translateX(0); }
    25% { transform: translateX(-8px); background: rgba(255,0,0,0.1); }
    50% { transform: translateX(12px); background: rgba(0,255,255,0.08); }
    75% { transform: translateX(-4px); background: rgba(255,0,255,0.06); }
    100% { transform: translateX(6px); }
}
.glitch-rgb {
    position: absolute; inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255,0,0,0.06) 33%,
        rgba(0,255,0,0.04) 33% 66%,
        rgba(0,0,255,0.06) 66%
    );
    animation: rgb-shift 0.08s steps(3) infinite;
}
@keyframes rgb-shift {
    0% { transform: translateX(-2px); }
    33% { transform: translateX(3px); }
    66% { transform: translateX(-1px); }
    100% { transform: translateX(2px); }
}
.glitch-static {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    opacity: 0.4;
    animation: static-flicker 0.05s steps(1) infinite;
}
@keyframes static-flicker {
    0% { opacity: 0.3; }
    25% { opacity: 0.5; }
    50% { opacity: 0.2; }
    75% { opacity: 0.45; }
    100% { opacity: 0.35; }
}
