/**
 * SISTEMA INTEGRAL TAROT FRACTAL
 * Módulo Tirada Manual: Mini-Mesa Superior Interactiva, Selector Físico y Ojo 3D
 * tarot-fractal.es
 */

/* =============================================================================
   1. CONTENEDOR DE LA PANTALLA DE TIRADA MANUAL
   ============================================================================= */
.tirada-manual-wrapper {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
    animation: fadeInView 0.5s ease-out;
}

/* =============================================================================
   2. MINI-MESA SUPERIOR INTERACTIVA (3 CARTAS EN FILA)
   ============================================================================= */
.mini-mesa-manual-fila {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.mini-carta-manual-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mini-carta-manual-col:hover {
    transform: translateY(-3px);
}

.mini-carta-manual-marco {
    width: 100%;
    aspect-ratio: 0.62;
    border-radius: 8px;
    overflow: hidden;
    background: #071B36;
    border: 1.5px solid rgba(241, 196, 15, 0.5);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* RESALTADO DORADO DE LA CARTA EN EDICIÓN */
.mini-carta-manual-col.editando .mini-carta-manual-marco {
    border: 3px solid var(--color-amarillo-vivo) !important;
    box-shadow: 0 0 16px rgba(255, 235, 59, 0.6);
}

.mini-carta-manual-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.mini-carta-manual-label {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    text-align: center;
}

.mini-carta-manual-col.editando .mini-carta-manual-label {
    color: var(--color-amarillo-vivo);
    font-weight: 800;
}

/* =============================================================================
   3. CAJA DEL FORMULARIO DE EDICIÓN
   ============================================================================= */
.manual-form-card {
    width: 100%;
    background: rgba(9, 33, 68, 0.92);
    border: 1.5px solid var(--color-dorado);
    border-radius: 14px;
    padding: 16px;
    box-sizing: border-box;
    margin-bottom: 18px;
}

.manual-selector-tipo-fila {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.btn-tipo-arcano {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    background: #071B36;
    border: none;
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tipo-arcano.activo {
    background: #13386E;
    border: 1px solid var(--color-dorado);
    color: var(--color-dorado);
}

/* SELECTORES DROPDOWN DE ARCANOS */
.manual-select-custom {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border-radius: 8px;
    background: #071B36;
    border: 1px solid rgba(241, 196, 15, 0.4);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
    margin-bottom: 14px;
}

.manual-select-custom:focus {
    outline: none;
    border-color: var(--color-dorado);
}

/* BOTONES DE PALOS (MENORES) CON BLOQUEO VISUAL */
.manual-palos-fila {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.btn-palo-carta {
    height: 38px;
    border-radius: 6px;
    background: #071B36;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-palo-carta.seleccionado {
    background: #13386E;
    border: 1px solid var(--color-dorado);
    color: var(--color-dorado);
}

.btn-palo-carta.deshabilitado {
    opacity: 0.35 !important;
    cursor: not-allowed;
    background: #06152B;
    color: rgba(255, 255, 255, 0.3);
}

/* CONMUTADOR TÁCTIL NORMAL / INVERTIDA */
.manual-orientacion-toggle-box {
    width: 100%;
    background: #071B36;
    border-radius: 10px;
    padding: 12px 14px;
    box-sizing: border-box;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.manual-orientacion-toggle-box.normal {
    border: 1.5px solid #2ECC71;
    color: #2ECC71;
}

.manual-orientacion-toggle-box.invertida {
    border: 1.5px solid #FF4D4D;
    color: #FF4D4D;
}

/* BOTÓN SIGUIENTE O PROCESAR */
.btn-manual-accion {
    width: 100%;
    height: 52px;
    background: var(--color-dorado-suave);
    border: none;
    border-radius: 12px;
    color: #000000;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 20px;
    transition: transform 0.15s ease, background 0.2s ease;
}

.btn-manual-accion:hover {
    background: var(--color-dorado);
    transform: scale(1.01);
}

/* CONTENEDOR DEL OJO MÍSTICO EN LA BASE (140PX) */
.manual-ojo-box {
    width: 140px;
    height: 135px;
    margin: 10px auto;
}
