* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #111;
    color: #eee;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: hidden; 
    /* Permitimos el scroll vertical para que la cámara pueda bajar */
    overflow-y: auto; 
}

/* El lienzo gigante donde caen las canicas */
#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1; 
}

/* Estilos de los paneles de Interfaz (Ahora son fijos a la cámara) */
.ui-panel {
    position: fixed; /* Fundamental para que no se pierdan al hacer scroll */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: #222;
    border: 3px solid #555;
    padding: 40px;
    text-align: center;
    box-shadow: 15px 15px 0px rgba(0,0,0,0.8);
    max-width: 500px;
    transition: opacity 0.4s ease;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    display: none; /* Oculta completamente para no interferir con clics */
}

h1, h2 {
    color: #ffcc00;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

p {
    margin-bottom: 20px;
    line-height: 1.5;
}

input {
    width: 100%;
    padding: 15px;
    margin-bottom: 25px;
    background: #000;
    color: #0f0;
    border: 2px solid #555;
    font-family: inherit;
    font-size: 18px;
    text-align: center;
}

input:focus {
    outline: none;
    border-color: #ffcc00;
}

button {
    background: #ffcc00;
    color: #000;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    width: 100%;
}

button:hover {
    background: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000;
}

#unlocked-content {
    margin: 20px 0;
    padding: 20px;
    background: #000;
    border: 1px dashed #0f0;
    text-align: left;
    color: #ccc;
}
/* Estilos para los botones del panel de cámara */
#camera-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cam-btn {
    background: #444;
    color: #fff;
    padding: 8px;
    font-size: 12px;
    border: 1px solid #777;
    cursor: pointer;
    transition: all 0.2s;
}

.cam-btn.active {
    background: #0f0; /* Verde brillante para la cámara activa */
    color: #000;
    border-color: #0f0;
    font-weight: bold;
}

.cam-btn:hover:not(.active) {
    background: #666;
}
