/* ============================================
   MUNDO MICROSCOPICO -
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #0a0a12;
    font-family: 'Segoe UI', Arial, sans-serif;
}

#game-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#micro-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: block;
}

/* === BOTON VOLVER === */
#btn-volver {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 20;
    padding: 8px 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    backdrop-filter: blur(5px);
}
#btn-volver:hover { background: rgba(255,255,255,0.15); }

/* === PANEL DE HISTORIA === */
#story-panel {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.8);
    border: 2px solid rgba(200,150,255,0.3);
    border-radius: 16px;
    padding: 12px 24px;
    max-width: 520px;
    width: 85%;
    backdrop-filter: blur(5px);
    text-align: center;
}

#story-title {
    font-size: 16px;
    font-weight: bold;
    color: #c89eff;
    margin-bottom: 6px;
}

#story-text {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    margin-bottom: 10px;
}

.story-btn {
    padding: 8px 20px;
    border: 2px solid rgba(200,150,255,0.4);
    border-radius: 15px;
    background: rgba(200,150,255,0.15);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.story-btn:hover { background: rgba(200,150,255,0.3); transform: scale(1.03); }

/* === MUESTRAS === */
#samples-panel {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.7);
    border: 2px solid rgba(100,200,150,0.3);
    border-radius: 18px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    backdrop-filter: blur(5px);
}

#samples-panel h3 {
    font-size: 14px;
    color: #8fdfb0;
    text-align: center;
    margin-bottom: 5px;
}

.sample-btn {
    padding: 10px 16px;
    border: 2px solid rgba(100,200,150,0.3);
    border-radius: 12px;
    background: rgba(100,200,150,0.1);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.sample-btn:hover { background: rgba(100,200,150,0.25); transform: scale(1.03); }
.sample-btn.active { background: rgba(100,200,150,0.35); border-color: #8fdfb0; }

/* === INFO === */
#info-panel {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.7);
    border: 2px solid rgba(200,150,255,0.3);
    border-radius: 18px;
    padding: 18px;
    max-width: 260px;
    backdrop-filter: blur(5px);
}

#micro-title {
    font-size: 17px;
    font-weight: bold;
    color: #c89eff;
    margin-bottom: 8px;
}

#micro-text {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 10px;
}

.micro-fun {
    font-size: 12px;
    color: #f1c40f;
    font-style: italic;
    line-height: 1.5;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 12px;
}

/* === ZOOM === */
#zoom-panel {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

#zoom-slider {
    width: 150px;
    accent-color: #c89eff;
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
    #story-panel { padding: 15px 20px; }
    #story-text { font-size: 14px; }
    #info-panel { max-width: 200px; }
}