:root {
    --bg-color: #080808;
    --thread-bg: rgba(20, 20, 20, 0.9);
    --neon-green: #00ff41;
    --neon-pink: #ff00cc; /* Softer but still neon pink */
    --neon-purple: #bc13fe;
    --neon-blue: #00f2ff;
    --text-color: #ffb7ff; /* Soft pink text color */
    --header-text: #fff;
    --quote-color: #ff66cc; /* Pinkish greentext */
    --border-color: #333;
    --sparkle-color: #fff;
}

@font-face {
    font-family: 'Graffiti';
    src: url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'VT323', monospace;
    font-size: 20px;
    line-height: 1.2;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
}

/* CRT Overlay */
body::before {
    content: " ";
    display: block;
    position: fixed;
    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: 9999;
    pointer-events: none;
    background-size: 100% 2px, 3px 100%;
}

/* Flicker Animation */
@keyframes flicker {
  0% { opacity: 0.97; }
  5% { opacity: 0.95; }
  10% { opacity: 0.9; }
  15% { opacity: 0.95; }
  20% { opacity: 0.98; }
  25% { opacity: 0.95; }
  30% { opacity: 0.9; }
  100% { opacity: 1; }
}

.container {
    animation: flicker 0.15s infinite;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Scanline */
.scanline {
    width: 100%;
    height: 10px;
    background: rgba(0, 255, 65, 0.1);
    position: fixed;
    top: 0;
    z-index: 10000;
    pointer-events: none;
    animation: scanline 6s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

/* Header & Glitch */
header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.glitch-text {
    font-size: 120px;
    color: #fff;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    font-weight: 900;
    font-style: italic;
    text-shadow: 
        -2px -2px 0 var(--neon-pink),
        2px 2px 0 var(--neon-blue);
    letter-spacing: -5px;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: var(--neon-pink);
    z-index: -1;
    animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.glitch-text::after {
    color: var(--neon-blue);
    z-index: -2;
    animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
}

@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

.subtitle {
    font-family: 'Permanent Marker', cursive;
    font-size: 30px;
    color: var(--neon-pink);
    transform: rotate(-3deg);
    display: block;
    margin-top: -20px;
    text-shadow: 2px 2px #000;
}

/* Ticker */
.ticker-wrap {
    background: #000;
    border: 3px solid var(--neon-green);
    margin: 30px 0;
    transform: skewX(-10deg);
    box-shadow: 10px 10px 0 var(--neon-pink);
    overflow: hidden;
}

.ticker {
    display: flex;
    animation: ticker 20s linear infinite;
    padding: 15px 0;
}

.ticker-item {
    font-weight: bold;
    font-size: 24px;
    white-space: nowrap;
    padding: 0 40px;
    color: var(--neon-green);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Main Post */
.thread {
    background: var(--thread-bg);
    border: 2px solid var(--neon-green);
    padding: 30px;
    position: relative;
    box-shadow: 15px 15px 0 rgba(0, 255, 65, 0.1);
}

.thread::before {
    content: "SYSTEM_OVERRIDE_ACTIVE";
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--neon-green);
    color: #000;
    padding: 2px 10px;
    font-size: 14px;
    font-weight: bold;
}

.post-header {
    margin-bottom: 25px;
    border-bottom: 2px solid var(--neon-green);
    padding-bottom: 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.name { color: #fff; background: #117743; padding: 2px 8px; }
.tripcode { color: var(--neon-pink); font-weight: bold; }
.number { color: var(--neon-blue); }

.post-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

.main-image {
    width: 100%;
    border: 4px solid #fff;
    box-shadow: 8px 8px 0 var(--neon-pink);
    transition: transform 0.2s;
    filter: sepia(0.3) contrast(1.2);
}

.main-image:hover {
    transform: scale(1.02) rotate(1deg);
    filter: none;
}

.text-body {
    font-size: 22px;
}

.greentext {
    color: var(--quote-color);
    text-shadow: 1px 1px 0 #000;
}

/* CA Box */
.ca-container {
    margin-top: 30px;
    background: #000;
    border: 2px solid var(--neon-pink);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    position: relative;
}

.ca-container::after {
    content: "VERIFIED_ON_CHAIN";
    position: absolute;
    bottom: -12px;
    left: 10px;
    font-size: 12px;
    color: var(--neon-pink);
    background: #000;
    padding: 0 5px;
}

#ca-address {
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
    font-size: 18px;
    word-break: break-all;
}

#copy-btn {
    background: var(--neon-pink);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-family: 'VT323', monospace;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 4px 4px 0 var(--neon-blue);
    transition: 0.1s;
}

#copy-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--neon-blue);
}

/* Links */
.pink-link {
    display: block;
    margin-top: 30px;
    font-family: 'Permanent Marker', cursive;
    font-size: 40px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    background: var(--neon-pink);
    padding: 10px;
    transform: rotate(-1deg);
    transition: 0.2s;
    box-shadow: 6px 6px 0 #000;
}

.pink-link:hover {
    transform: scale(1.05) rotate(1deg);
    background: var(--neon-green);
    color: #000;
}

/* Replies */
.replies {
    margin-top: 40px;
}

.post.reply {
    background: rgba(30, 30, 30, 0.8);
    border-left: 5px solid var(--neon-pink);
    padding: 20px;
    margin-bottom: 15px;
    margin-left: 40px;
}

.quote { color: var(--neon-blue); text-decoration: underline; }

@media (max-width: 800px) {
    .post-content { grid-template-columns: 1fr; }
    .glitch-text { font-size: 60px; }
    .container { padding: 10px; }
    .post.reply { margin-left: 10px; }
}
