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

body {
    background: #000;
    font-family: 'IBM Plex Mono', monospace;
    color: #33ff33;
    overflow-x: hidden;
    min-height: 100vh;
}

/* CRT Monitor Effect */
#root {
    position: relative;
}

#root::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 3px
    );
}

#root::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.4) 100%);
}

/* Text glow effect */
.glow {
    text-shadow: 0 0 5px #33ff33, 0 0 10px #33ff3355;
}

.glow-amber {
    text-shadow: 0 0 5px #ffb000, 0 0 10px #ffb00055;
    color: #ffb000;
}

/* Blinking cursor */
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.cursor-blink {
    animation: blink 1s infinite;
}

/* Screen flicker */
@keyframes flicker {
    0% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
    97% { opacity: 1; }
}

.screen-flicker {
    animation: flicker 4s infinite;
}

/* Typewriter effect */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

/* Input styling */
input[type="text"],
input[type="password"],
textarea {
    background: transparent;
    border: none;
    color: #33ff33;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    outline: none;
    caret-color: #33ff33;
    text-shadow: 0 0 5px #33ff33;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
    color: #33ff3355;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #33ff33;
    border: 1px solid #000;
}

/* Button hover */
.retro-btn:hover {
    background: #33ff33;
    color: #000;
    cursor: pointer;
}

.retro-btn {
    transition: all 0.1s;
    border: 1px solid #33ff33;
    padding: 2px 8px;
    color: #33ff33;
    background: transparent;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
}

/* Loading bar animation */
@keyframes loading-bar {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loading-bar {
    animation: loading-bar 3s linear;
}

/* Post box borders */
.post-box {
    border: 1px solid #33ff33;
    position: relative;
}

.post-box::before {
    content: '┌' attr(data-top) '┐';
}

/* Mobile responsive */
@media (max-width: 640px) {
    body {
        font-size: 11px;
    }
    
    .retro-btn {
        font-size: 10px;
        padding: 1px 4px;
    }
}