/* Importar la fuente pixelada */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
    --font-retro: 'VT323', monospace;
    --color-bg: #0d0d0d;
    --color-monitor-bg: #1a1a1a;
    --color-text-green: #33ff33;
    --color-text-amber: #ffb000;
    --color-border: #33ff33;
    --color-container: #2b2b2b;
}

body {
    font-family: var(--font-retro);
    background-color: var(--color-bg);
    color: var(--color-text-green);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#game-container {
    width: 100%;
    max-width: 800px;
    background: var(--color-container);
    border: 2px solid var(--color-border);
    padding: 15px;
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.2);
}

/* --- Modales (Intro y Fin) --- */
.modal-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 13, 13, 0.95);
    display: flex; justify-content: center; align-items: center;
    z-index: 100; text-align: center; padding: 20px;
}
.modal-content h1 { color: var(--color-text-amber); font-size: 2.5em; }
.modal-content p { font-size: 1.5em; line-height: 1.6; }
.modal-content button {
    background: transparent; color: var(--color-text-green);
    border: 2px solid var(--color-text-green); padding: 10px 20px;
    font-family: var(--font-retro); font-size: 1.5em; cursor: pointer;
}
.modal-content button:hover { background: var(--color-text-green); color: var(--color-bg); }
.hidden { display: none; }

/* --- Interfaz de Juego --- */
.game-header {
    display: flex; justify-content: space-between;
    padding: 10px; border-bottom: 2px solid var(--color-border);
    font-size: 1.8em;
}

.game-area {
    display: grid; grid-template-columns: 3fr 1fr;
    gap: 20px; padding: 20px 0;
}

#workbench {
    min-height: 300px;
    position: relative;
    background: var(--color-monitor-bg);
    border: 2px dashed var(--color-border);
}

/* --- Disquetes y Zonas de Arrastre --- */
.floppy-disk {
    width: 100px; height: 100px;
    position: absolute;
    background-color: #555;
    border: 1px solid #aaa;
    cursor: grab;
    display: flex; flex-direction: column; justify-content: space-between;
}
.floppy-disk:active { cursor: grabbing; }
.floppy-disk-label {
    background: #eee; color: #333;
    font-size: 1em; text-align: center;
    padding: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.floppy-disk-shutter { height: 30px; background: #888; border-top: 1px solid #aaa; }

.drop-zones { display: flex; flex-direction: column; gap: 20px; }
.drop-zone {
    flex-grow: 1;
    border: 3px dashed #777;
    display: flex; justify-content: center; align-items: center;
    text-align: center; font-size: 1.5em;
    transition: all 0.2s;
}
.drop-zone.drag-over { background: rgba(51, 255, 51, 0.2); border-style: solid; }

/* --- Monitor de PC --- */
.pc-monitor {
    background: var(--color-monitor-bg);
    border: 2px solid var(--color-border);
    padding: 10px;
    font-size: 1.5em;
    height: 50px;
    overflow: hidden;
}
#monitor-text.infected {
    color: #ff3333;
    animation: text-flicker 0.2s infinite;
}
@keyframes text-flicker { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.back-button {
    display: inline-block;
    padding: 10px 15px;
    margin-top: 10px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}