/* RESET E BASE */
body {
    margin: 0;
    padding-top: 50px; /* Spazio per banner */
    padding-bottom: 150px; /* Spazio per console */
    font-family: 'Roboto', sans-serif;
    color: #333;
    overflow-x: hidden;
    cursor: none; /* Mouse vero nascosto */
}

/* 1. SFONDO RIPETUTO (Tiling pattern) */
.bg-pattern {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Immagine di caricamento che si ripete all'infinito */
    background-image: url('https://media.giphy.com/media/3oEjI6SIIHBdRxXI40/giphy.gif'); 
    background-size: 50px 50px;
    opacity: 0.1; /* Appena visibile per dare fastidio */
    z-index: -1;
    pointer-events: none;
}

/* 2. CURSORE PERSONALIZZATO (Più visibile ma brutto) */
#fakeCursor {
    position: fixed;
    width: 32px;
    height: 32px;
    /* Un cursore Windows 95 pixelato */
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/6/6e/Aero_link_cursor.svg/396px-Aero_link_cursor.svg.png') no-repeat;
    background-size: contain;
    z-index: 999999;
    pointer-events: none;
    /* Filtro per invertirlo quando passa su cose scure */
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.5));
}

#cursorTrail {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transition: all 0.2s ease-out; /* Lagghissimo */
}

/* 3. LAYOUT A 3 COLONNE (PIENO) */
.main-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 10px;
}

#main-container {
    flex: 2;
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 10px 10px 0 #000; /* Ombra netta anni 90 */
    min-width: 300px;
}

.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
}

/* Stile Box Laterali */
.ad-box, .poll-box, .chat-window {
    background: #e0e0e0;
    border: 2px outset #fff;
    padding: 10px;
    font-family: 'Verdana', sans-serif;
    font-size: 0.8rem;
}

.pixel-ad { background: #000080; color: white; text-align: center; }
.error-box { background: #ffcccc; border: 1px solid red; color: red; }

/* 4. ELEMENTI FASTIDIOSI DEL FORM */
.glitch {
    position: relative;
    color: black;
    font-size: 2rem;
    font-weight: bold;
    animation: glitch 1s infinite;
}
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.jiggle:hover {
    animation: jiggle 0.2s infinite;
}
@keyframes jiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

/* Status Bar finta */
.loading-bar { width: 100%; height: 10px; background: #ccc; margin-bottom: 5px; }
.loading-progress { width: 99%; height: 100%; background: blue; animation: loadStuck 10s forwards; }
@keyframes loadStuck { 0% { width: 0; } 80% { width: 90%; } 100% { width: 99%; } }

/* 5. CONSOLE NERD IN BASSO */
.console-log {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: black;
    color: #0f0;
    font-family: 'VT323', monospace;
    padding: 10px;
    overflow-y: hidden;
    z-index: 1000;
    border-top: 5px solid #333;
    opacity: 0.9;
}

/* 6. BANNER SUPERIORE */
.top-banner-sticky {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 40px;
    background: red; color: yellow;
    display: flex; justify-content: center; align-items: center;
    font-weight: bold;
    z-index: 2000;
}
.blink-text { animation: blinker 0.5s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

/* 7. CLICK BLOCKER (MALE PURO) */
.click-blocker {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: transparent; /* Invisibile */
    z-index: 99999;
    /* Blocca i click al centro dello schermo a caso */
}

/* 8. COOKIE OVERLAY */
.cookie-overlay {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.8);
    display: flex; justify-content: center; align-items: center;
    z-index: 10000;
}
.cookie-box {
    background: white; padding: 20px; width: 400px;
    border: 5px solid red;
    box-shadow: 20px 20px 0 black;
}
.vendor-list {
    height: 100px; overflow-y: scroll; border: 1px solid #ccc; margin: 10px 0;
}

/* Captcha Grid */
.captcha-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; height: 100px; margin: 10px 0; }
.c-img { border: 1px solid #ccc; cursor: help; }