body {
    background: #000;
    color: #e0e0e0;
    font-family: 'VT323', monospace;
    font-size: 18px;
    margin: 0;
    padding: 20px;
}

#container {
    max-width: 900px;
    margin: auto;
    background: rgba(5,5,5,0.95);
    border: 4px double #555;
    padding: 10px;
    position: relative;
}

/* CRT EFFECT */
.crt {
    pointer-events: none;
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.03) 0px,
            rgba(0,0,0,0.03) 2px
        );
    mix-blend-mode: overlay;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.15; }
    100% { opacity: 0.25; }
}

/* HEADER */
h1 {
    font-family: 'Press Start 2P';
    font-size: 22px;
    color: #ff00ff;
    text-align: center;
}

/* GLITCH */
.glitch {
    position: relative;
}
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    width: 100%;
}
.glitch::before {
    color: #0f0;
    animation: glitch 1.5s infinite;
}
.glitch::after {
    color: #f0f;
    animation: glitch 2s infinite reverse;
}

@keyframes glitch {
    0% { clip-path: inset(0 0 80% 0); }
    50% { clip-path: inset(40% 0 20% 0); }
    100% { clip-path: inset(80% 0 0 0); }
}

/* TICKER */
.ticker {
    overflow: hidden;
    border: 1px solid #333;
    margin: 10px 0;
}
.ticker-text {
    white-space: nowrap;
    animation: scroll 15s linear infinite;
}
@keyframes scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* LAYOUT */
#layout {
    display: flex;
    gap: 15px;
}
@media (max-width: 700px) {
    #layout { flex-direction: column; }
}

#left-column { width: 280px; }
#right-column { flex: 1; }

/* WINDOWS */
.win-box {
    border: 2px solid #ba55d3;
    background: #000;
    margin-bottom: 15px;
    box-shadow: 4px 4px 0 #4b0082;
}
.chaos {
    transform: rotate(-0.5deg);
}

.win-header {
    background: linear-gradient(90deg,#4b0082,#ba55d3);
    color: #fff;
    font-family: 'Press Start 2P';
    font-size: 12px;
    padding: 4px;
}

.win-content { padding: 10px; }

.center { text-align: center; }

.profile-pic {
    width: 140px;
    border: 2px solid #0f0;
    image-rendering: pixelated;
}

.name { font-size: 24px; color: #ff00ff; }

.status-tag {
    border: 1px solid #0f0;
    padding: 2px 8px;
    display: inline-block;
    margin-top: 5px;
}

a {
    color: #0f0;
    text-decoration: none;
}
a:hover {
    color: #ff00ff;
    text-decoration: underline;
}

.grid-2 {
    display: flex;
    justify-content: space-between;
}
@media (max-width: 500px) {
    .grid-2 { flex-direction: column; gap: 10px; }
}

.pixel-title {
    color: #0f0;
    border-bottom: 1px solid #0f0;
}

.pixel-list {
    list-style: none;
    padding: 0;
}
.pixel-list li::before {
    content: "> ";
    color: #ff00ff;
}

textarea {
    width: 100%;
    background: #000;
    color: #0f0;
    border: 1px solid #0f0;
    font-family: 'VT323';
}

.retro-btn {
    background: #ba55d3;
    border: 2px outset #ff00ff;
    color: white;
    margin-top: 5px;
}
.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stamps img {
    margin: 3px;
    border: 1px solid #555;
}
.stamps img:hover {
    transform: scale(1.1);
    border-color: #0f0;
}

footer {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 10px;
}

.visitor-counter {
    font-family: 'Press Start 2P';
    font-size: 10px;
    color: yellow;
}

.tiny { font-size: 12px; }
.faded { opacity: 0.5; }.audio-player {
    width: 100%;
    max-width: 240px;
}

/* STAMPS */
.stamps img {
    margin: 4px;
    border: 1px solid #555;
    image-rendering: pixelated;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stamps img:hover {
    transform: scale(1.15) rotate(-1deg);
    box-shadow: 0 0 10px #0f0;
    border-color: #0f0;
}

/* TEXTAREA FIX */
textarea {
    width: 100%;
    box-sizing: border-box;
}

/* BUTTON FEEDBACK */
.retro-btn:hover {
    background: #ff00ff;
}
