@import url('https://fonts.googleapis.com/css2?family=Rye&family=Eczar:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #120a05; }
::-webkit-scrollbar-thumb { background: #8b5a2b; border-radius: 3px; }

/* Configuración de Fondo Estático en lugar de la animación giratoria */
.bg-spinning-swirl {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
    transform: none !important;
    animation: none !important;
}

/* Tipografía Estilo Country / Viejo Oeste */
.font-country {
    font-family: 'Rye', cursive, serif !important;
}

.font-country-sub {
    font-family: 'Eczar', serif !important;
}

/* Colores y Resplandores Temáticos Country (Tonos Café/Madera/Cuero) */
.glow-orange { box-shadow: 0 0 20px rgba(217, 119, 6, 0.25); }
.glow-fuchsia, .glow-brown { box-shadow: 0 0 20px rgba(139, 90, 43, 0.35); }
.glow-gold { 
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.3); 
    border-color: rgba(234, 179, 8, 0.6) !important; 
}
.glow-red { box-shadow: 0 0 15px rgba(220, 38, 38, 0.8); border-color: #dc2626 !important; background-color: #dc2626 !important; color: #000000 !important; }
.glow-green { box-shadow: 0 0 25px rgba(16, 185, 129, 0.6); border-color: #10b981 !important; color: #10b981 !important; }

.force-white-icon { filter: brightness(0) invert(1); object-fit: contain; }

#global-loading-overlay {
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease-in-out;
}

.dynamic-color-mask {
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Transición para elementos transformados */
.art-beatstar-transform {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-radius 0.4s ease, box-shadow 0.4s ease;
}

/* =========================================================
   FORMA DE PÚA DE GUITARRA PARA ARTE Y REPRODUCTOR
   ========================================================= */
.art-pick-shape,
.art-circle-shape,
.art-container-circular {
    clip-path: path('M 50,0 C 80,0 100,20 95,50 C 88,80 60,98 50,100 C 40,98 12,80 5,50 C 0,20 20,0 50,0 Z') !important;
    border-radius: 0 !important;
    transform: scale(1.05);
}

/* Ajustes de bordes por edición para Country Star */
.border-edition-standard {
    border: 2px solid #8b5a2b !important;
}

.border-edition-deluxe {
    border: 2px solid #eab308 !important;
}

/* Animaciones y Barra de Progreso de Notificaciones */
@keyframes slideUpOut {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-20px); opacity: 0; }
}

@keyframes slideDownIn {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.anim-notif-leave { animation: slideUpOut 0.35s ease-in forwards; }
.anim-notif-enter { animation: slideDownIn 0.35s ease-out forwards; }

@keyframes notifProgress {
    from { width: 0%; }
    to { width: 100%; }
}

.notif-progress-bar {
    width: 0%;
    height: 100%;
    background: #ffffff;
    animation: notifProgress 10s linear infinite;
}

/* Ajustes Generales de Modales */
#beatstar-edition-modal > div,
#download-custom-modal > div,
#thanks-custom-modal > div,
#confirm-delete-modal > div,
#boogie-auth-modal > div,
#boogie-exit-modal > div {
    max-height: 88vh !important;
    overflow-y: auto !important;
}

/* Ajustes Responsive y Móvil */
@media (orientation: landscape) and (max-height: 600px) {
    #footer-boogie-admin-box { display: none !important; }
    
    #beatstar-edition-modal .bg-\[\#1c1008\]\/95,
    #download-custom-modal .bg-\[\#1c1008\],
    #thanks-custom-modal .bg-\[\#1c1008\],
    #confirm-delete-modal .bg-\[\#1c1008\],
    #boogie-auth-modal .bg-\[\#1c1008\] {
        max-height: 94vh !important;
        overflow-y: auto !important;
        padding: 0.75rem 1.25rem !important;
        width: 95% !important;
        max-width: 620px !important;
    }

    #thanks-custom-modal .aspect-video {
        max-height: 68vh !important;
        width: auto !important;
        margin: 0 auto !important;
    }
}

@media (min-width: 768px) {
    #download-custom-modal #download-modal-btn-close {
        top: 1.25rem !important;
        right: 1.25rem !important;
        width: 2.25rem !important;
        height: 2.25rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: rgba(43, 26, 14, 0.8) !important;
        border: 1px solid rgba(139, 90, 43, 0.5) !important;
        border-radius: 9999px !important;
        color: #e4e4e7 !important;
        font-size: 1.125rem !important;
        transition: all 0.2s ease !important;
        z-index: 50 !important;
    }

    #download-custom-modal #download-modal-btn-close:hover {
        background-color: #8b5a2b !important;
        border-color: #d97706 !important;
        color: #ffffff !important;
        transform: scale(1.1) !important;
    }

    #footer-boogie-admin-box { display: flex !important; }
}

@media screen and (max-width: 640px) and (orientation: portrait) {
    html { zoom: 1 !important; height: 100%; }
    body { min-height: 100dvh !important; display: flex !important; flex-direction: column !important; }
    main, #view-home, #view-levels, #view-cosmetics { flex: 1 0 auto !important; width: 100% !important; }
    footer { margin-top: auto !important; width: 100% !important; flex-shrink: 0 !important; }
}