:root {
    --amber: #ffb000;
    --amber-dim: #945d00;
    --amber-glow: rgba(255, 176, 0, 0.4);
    --bg: #060606;
    --crt-curve: radial-gradient(circle, transparent 0%, rgba(0,0,0,0.4) 100%);
}

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

* {
    box-sizing: border-box;
    cursor: crosshair;
}

body {
    background-color: var(--bg);
    color: var(--amber);
    font-family: 'Share Tech Mono', monospace;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    text-shadow: 0 0 5px var(--amber-glow);
}

/* CRT Effects */
.screen {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.screen::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 100;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.screen::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: var(--crt-curve);
    z-index: 101;
    pointer-events: none;
}

.scanline {
    width: 100%;
    height: 100px;
    z-index: 102;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(255, 176, 0, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.1;
    position: absolute;
    bottom: 100%;
    animation: scanline 6s linear infinite;
}

@keyframes scanline {
    0% { bottom: 100%; }
    100% { bottom: -100px; }
}

/* Layout */
.ui-frame {
    position: absolute;
    top: 20px; left: 20px; right: 20px; bottom: 20px;
    border: 1px solid var(--amber-dim);
    z-index: 50;
    pointer-events: none;
    display: grid;
    grid-template-rows: 60px 1fr 120px;
}

.ui-header {
    border-bottom: 1px solid var(--amber-dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: rgba(255, 176, 0, 0.02);
}

.ui-main {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
}

.ui-footer {
    border-top: 1px solid var(--amber-dim);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px 20px;
}

/* Components */
.sidebar {
    border-right: 1px solid var(--amber-dim);
    padding: 20px;
    font-size: 0.75rem;
}

.sidebar-right {
    border-left: 1px solid var(--amber-dim);
    border-right: none;
}

.title-box h1 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 5px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    border-bottom: 1px dashed rgba(255, 176, 0, 0.2);
}

.label { color: var(--amber-dim); }
.value { font-weight: bold; }

.center-display {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#bg-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.3;
}

.manifesto-box {
    position: relative;
    z-index: 60;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--amber);
    padding: 30px;
    box-shadow: 0 0 30px rgba(255, 176, 0, 0.1);
}

.manifesto-box h2 {
    margin-top: 0;
    border-bottom: 1px solid var(--amber);
    display: inline-block;
    padding-bottom: 5px;
}

.terminal {
    background: rgba(0,0,0,0.5);
    padding: 10px;
    font-size: 0.8rem;
    height: 100%;
    overflow: hidden;
}

.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.noise {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 200;
}
