body, html {
    margin: 0; padding: 0;
    width: 100%; height: 100%;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    background-color: #EBE5DA;
    color: #091A2A;
}

#ar-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
#ui-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; pointer-events: none; }

.screen {
    display: none; width: 100%; height: calc(100% - 70px);
    pointer-events: auto; padding: 20px;
    box-sizing: border-box; overflow-y: auto;
    background: #EBE5DA;
}
#screen-scanner { background: transparent; }
.screen.active { display: block; }

/* NAVEGACIÓN INFERIOR */
.bottom-nav {
    position: absolute; bottom: 0; width: 100%; height: 70px;
    background: #EBE5DA; border-top: 1px solid #ddd;
    display: flex; justify-content: space-around; align-items: center;
    pointer-events: auto;
}
.bottom-nav button {
    background: none; border: none; font-family: 'Inter', sans-serif;
    color: #666; font-size: 14px; font-weight: 600; cursor: pointer;
}
.bottom-nav button.active-nav { color: #E9530E; }


/* =========================================
   LA CASETERA 3D CSS (NEUMORFISMO)
========================================= */
.player-bg { background: linear-gradient(135deg, #A8A8B6 0%, #C3B4C5 50%, #C4AAB1 100%); }

.top-buttons { display: flex; justify-content: space-between; margin-bottom: 60px; font-size: 11px; font-weight: 600; }
.btn-ar-active { background: #4A4A5A; color: white; padding: 6px 15px; border-radius: 20px; display:flex; align-items:center; gap:5px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-eject { background: #D67443; color: white; padding: 6px 15px; border-radius: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); cursor:pointer; }

.deck-container {
    width: 320px; height: 210px;
    background: #2E2E2E; /* Gris oscuro */
    border-radius: 12px; margin: 0 auto;
    position: relative; padding: 22px;
    box-sizing: border-box;
    /* Sombras 3D ultra realistas */
    box-shadow: 
        0 30px 40px rgba(0,0,0,0.4), /* Sombra proyectada en el piso */
        inset 0 2px 2px rgba(255,255,255,0.1), /* Borde superior con luz */
        inset 0 -2px 5px rgba(0,0,0,0.4); /* Borde inferior sombreado */
    border: 1px solid #1A1A1A;
}

/* Tornillos de las esquinas */
.screw {
    position: absolute; width: 6px; height: 6px; background: #111; border-radius: 50%;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.8), 0 1px 1px rgba(255,255,255,0.1);
}
.screw.top-left { top: 10px; left: 10px; }
.screw.top-right { top: 10px; right: 10px; }
.screw.bottom-left { bottom: 10px; left: 10px; }
.screw.bottom-right { bottom: 10px; right: 10px; }

/* Textos y Ventilaciones */
.deck-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.deck-branding h3 { color: #E9530E; font-family: 'Playfair Display', serif; margin: 0; font-size: 20px; letter-spacing: 1px; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.deck-branding p { color: #888; font-family: 'Inter', sans-serif; font-size: 8px; margin: 0; letter-spacing: 1.5px; }

.deck-vents { display: flex; gap: 4px; margin-top: 5px; }
.deck-vents div {
    width: 2px; height: 16px; background: #111; border-radius: 2px;
    box-shadow: 1px 0 1px rgba(255,255,255,0.15); /* Efecto hundido */
}

/* Pantalla del medio (Vidrio ahumado) */
.deck-window {
    width: 100%; height: 75px; background: #0a0a0a; border-radius: 6px;
    box-shadow: inset 0 5px 15px rgba(0,0,0,1), 0 1px 1px rgba(255,255,255,0.15);
    margin-bottom: 20px; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.deck-window::after {
    content: ''; position: absolute; top: -20px; left: -20px; width: 150%; height: 60%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.06), transparent);
    transform: rotate(-10deg); pointer-events: none; /* Reflejo del vidrio */
}
#current-track { color: #888; font-size: 11px; margin: 0; text-align: center; font-weight: 300; letter-spacing: 1px; }

/* Botones Físicos */
.deck-buttons { display: flex; justify-content: center; gap: 10px; }
.deck-btn {
    width: 48px; height: 32px; background: #353535; border: none; border-radius: 5px;
    color: #666; font-size: 12px; cursor: pointer;
    box-shadow: 0 5px 8px rgba(0,0,0,0.5), inset 0 2px 2px rgba(255,255,255,0.1);
    transition: all 0.1s; display: flex; justify-content: center; align-items: center;
}
/* Efecto de "Hundirse" al hacer click */
.deck-btn:active {
    transform: translateY(3px); color: #E9530E;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5), inset 0 3px 6px rgba(0,0,0,0.6);
}


/* =========================================
   LA COLECCIÓN (CARDS)
========================================= */
.collection-header { text-align: center; margin-bottom: 30px; margin-top: 10px; }
.collection-header h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin: 0 0 5px 0; color: #091A2A; }
.collection-header p { font-size: 0.9rem; color: #666; margin: 0; }
.collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding-bottom: 20px; }

.cassette {
    border-radius: 12px; padding: 15px; color: white; display: flex; flex-direction: column;
    justify-content: flex-start; aspect-ratio: 4/5; transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.cassette:hover { transform: scale(1.03); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

.tape-window {
    width: 100%; height: 50%; background: rgba(255,255,255,0.15); border-radius: 8px; margin-bottom: 15px;
    display: flex; align-items: center; justify-content: space-between; padding: 0 10px; box-sizing: border-box;
}
.tape-lines { width: 50%; display: flex; flex-direction: column; gap: 4px; }
.tape-lines div { height: 1px; background: rgba(255,255,255,0.6); width: 100%; }
.tape-spools { display: flex; gap: 6px; }
.tape-spools .spool { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.6); }

.card-title { font-size: 16px; font-weight: 600; margin: 0 0 2px 0; }
.card-artist { font-size: 11px; font-weight: 300; margin: 0 0 10px 0; opacity: 0.9; }
.progress-bar { width: 100%; height: 2px; background: rgba(255,255,255,0.3); margin-bottom: 8px; }
.progress-fill { width: 80%; height: 100%; background: white; }
.card-mission { font-size: 9px; opacity: 0.8; margin: 0; }

.cassette.locked { background: #9A9A9A !important; pointer-events: none; }
.cassette.locked .tape-window { background: rgba(0,0,0,0.05); }
.cassette.locked .tape-lines div, .cassette.locked .spool { background: rgba(0,0,0,0.15); }
.cassette.locked .info-state { display: none; }
.cassette.locked .lock-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; color: rgba(255,255,255,0.8); }
.cassette.unlocked .lock-state { display: none; }
.cassette.unlocked .info-state { display: block; }
