@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

*, *::before, *::after { 
    box-sizing: border-box !important; 
}

body {
    background-color: #050508;
    background-image: linear-gradient(rgba(10, 10, 15, 0.85), rgba(5, 5, 8, 0.95)), url('https://cerbero.504.es/imagenes/fondo.jpg');
    background-size: cover;
    background-position: center;
    color: #e0dbcd;
    font-family: 'Cinzel', 'Georgia', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 15px;
}

.vault-wrapper {
    position: relative;
    max-width: 460px;
    width: 100%;
    padding: 25px 15px;
}

.corner-switch {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a1a26 0%, #0d0d13 100%);
    border: 2px solid #555577;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
    -webkit-tap-highlight-color: transparent;
}

.corner-switch img {
    width: 65%;
    height: 65%;
    object-fit: contain;
    filter: grayscale(80%) opacity(0.6);
    transition: all 0.2s ease;
}

.corner-switch.active {
    border-color: #c5a059;
    background: linear-gradient(135deg, #3d2f14 0%, #1c1508 100%);
    transform: scale(0.92) translateY(2px);
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.8), 0 0 12px rgba(197, 160, 89, 0.5);
}

.corner-switch.active img {
    filter: grayscale(0%) opacity(1) drop-shadow(0 0 6px rgba(197, 160, 89, 0.8));
}

.switch-a { top: 0; left: 0; }
.switch-b { top: 0; right: 0; }
.switch-c { bottom: 0; left: 0; }
.switch-d { bottom: 0; right: 0; }

.container {
    text-align: center;
    background: rgba(12, 12, 18, 0.94);
    padding: 25px 15px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(197, 160, 89, 0.25), inset 0 0 20px rgba(0,0,0,0.7);
    border: 2px solid #c5a059;
    width: 100%;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 26px;
    letter-spacing: 4px;
    color: #c5a059;
    text-shadow: 0 0 15px rgba(197, 160, 89, 0.6);
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

p {
    font-size: 11px;
    color: #a0a0b8;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.preview-slots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.slot {
    width: 55px;
    height: 55px;
    border: 2px dashed #44445c;
    border-radius: 12px;
    background: rgba(5, 5, 8, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.slot img { width: 80%; height: 80%; object-fit: contain; }

.slot.filled {
    border: 2px solid #c5a059;
    background: linear-gradient(135deg, #221c11 0%, #0f0d08 100%);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
    font-size: 22px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.glyph-btn {
    background: linear-gradient(135deg, #161622 0%, #0a0a0f 100%);
    border: 1px solid #323246;
    border-radius: 12px;
    padding: 8px 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 75px;
}

.glyph-container { 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 24px; 
}

.glyph-container img { width: 100%; height: 100%; object-fit: contain; }
.glyph-name { font-size: 9px; color: #8e8eaf; text-transform: uppercase; }

.main-guardian-logo {
    width: 85px;
    display: block;
    margin: 0 auto 10px auto;
    filter: drop-shadow(0 0 12px rgba(197, 160, 89, 0.5));
}

#status-message {
    margin-top: 10px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    color: #c5a059;
}

.modal-guardian {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 3, 5, 0.95);
    align-items: center; justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: linear-gradient(135deg, #14141f 0%, #09090e 100%);
    border: 2px solid #c0392b;
    padding: 25px;
    border-radius: 20px;
    max-width: 380px; 
    text-align: center;
}

.btn-reintentar {
    background: #c0392b; 
    color: white; 
    border: none; 
    padding: 10px 20px;
    font-family: 'Cinzel', serif; 
    border-radius: 8px; 
    cursor: pointer;
}