/* Limpieza de elementos viejos */
.menu-footer, .footer-links {
    display: none !important;
}

:root {
    --hub-primary: #00ffd093;
    --hub-secondary: #ff00ff;
    --hub-bg-glass: rgba(5, 15, 30, 0.6);
    
    /* DEFINICIÓN DE LA FORMA */
    --hex-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);

/* 1. VALORES POR DEFECTO (Para Tablets/Laptops normales) */
  --center-size: clamp(320px, 45vmin, 560px);
  --hex-size:   clamp(78px, 13vmin, 120px);
  --gap-size:   clamp(10px, 4vmin, 32px);
        --orbit-offset: 0px;    /* Ajuste fino: negativo acerca, positivo aleja */
        --orbit-distance: calc((var(--center-size) / 2) + (var(--hex-size) / 2) + (var(--gap-size)) + var(--orbit-offset));

    /* AJUSTES DEL BOTÓN JUGAR */
    --btn-play-bottom: 90px;
    --btn-play-padding: 14px 60px;
    --btn-play-font-size: 24px;
}

.main-menu-hub {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 100;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Ajuste del Logo para el Hub */
.logo-container {
    position: absolute;
    top: 5vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    margin-bottom: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-title {
    font-size: 3rem;
    letter-spacing: 12px;
    margin: 0;
    color: white;
    text-shadow: 0 0 20px var(--hub-primary);
    font-weight: 900;
}

.game-subtitle {
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--hub-primary);
    opacity: 0.8;
    margin-top: 5px;
}

/* =========================================
   1. EL CONTENEDOR CENTRAL (PORTAL)
========================================= */
.hub-center-container {
    position: relative;
    width: var(--center-size);
    height: var(--center-size);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    overflow: visible;
}


/* EL ANILLO ORBITAL GRANDE (Nuevo) */
/* Esto crea el gran círculo que conecta todas las armas */

/* EL PORTAL CENTRAL VISIBLE */
.hub-character-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;

    /* Estilo de Portal de Vidrio Brillante */
    /* Borde principal Cian */
    border: 3px solid var(--hub-primary);
    /* Efecto de doble anillo con outline */
    outline: 4px solid rgba(0, 255, 208, 0.2);
    outline-offset: 4px;
    
    /* Fondo complejo: Brillo interno + fondo oscuro */
    background: 
        radial-gradient(circle at center, transparent 30%, rgba(0, 255, 208, 0.15) 80%),
        linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,15,30,0.8) 100%);
    
    /* Fuerte resplandor externo e interno */
    box-shadow: 
        0 0 40px var(--hub-primary),
        inset 0 0 40px rgba(0, 255, 208, 0.4);
        
    backdrop-filter: blur(2px);
}

/* EL ANILLO MAGENTA INTERNO (Nuevo) */
/* Crea el detalle del círculo rosado dentro del portal */
.hub-character-preview::after {
    content: '';
    position: absolute;
    top: 15%; left: 15%; right: 15%; bottom: 15%;
    border-radius: 50%;
    border: 2px solid var(--hub-secondary);
    box-shadow: 0 0 15px var(--hub-secondary), inset 0 0 10px var(--hub-secondary);
    opacity: 0.6;
    pointer-events: none;
}

.hub-character-preview:hover {
    transform: scale(1.02);
    box-shadow: 
        0 0 60px var(--hub-primary),
        inset 0 0 50px rgba(0, 255, 208, 0);
}

/* Contenedores de Slots Individuales */
#slot-triangle-container,
#slot-square-container,
#slot-pentagon-container,
#slot-circle-container,
#slot-rectangle-container,
#slot-basic-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    z-index: 200;
    pointer-events: none; /* El contenedor invisible NO atrapa el clic */
}

/* =========================================
   2. LOS CONTENEDORES INVISIBLES (Sin cambios visuales)
========================================= */
#slot-triangle-container,
#slot-square-container,
#slot-pentagon-container,
#slot-circle-container,
#slot-rectangle-container,
#slot-basic-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    z-index: 200;
    pointer-events: none;
}

/* =========================================
   3. EL BOTÓN HEXAGONAL: NÚCLEO DE ENERGÍA ESTABILIZADO
========================================= */

/* Definimos la forma del hexágono en una variable para reutilizarla */
:root {
    --hex-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Posicionamiento del botón (Sin cambios en la lógica orbital) */
.orbital-slot {
    position: absolute;
    top: 50%; left: 50%;
    
    /* Usamos las variables maestras */
    width: var(--hex-size);
    height: var(--hex-size);
    
    pointer-events: auto !important;
    cursor: pointer;
    z-index: 200;
    
    /* AQUI ESTÁ EL ARREGLO: Usamos --orbit-distance */
    transform: 
        translate(-50%, -50%)
        rotate(var(--angle)) 
        translate(var(--orbit-distance)) /* <--- Esto conecta con la fórmula del root */
        rotate(calc(var(--angle) * -1));
    
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* El contenedor principal */
.hex-container {
    position: relative;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Importante: para que los efectos de luz no se salgan de control */
    filter: drop-shadow(0 0 10px rgba(204, 0, 255, 0.993));
}

/* CAPA 1: El "Cristal Oscuro" Central */
.hex-border {
    position: absolute;
    inset: 2px; /* Un poco más pequeño que el contenedor */
    
    /* Fondo tecnológico oscuro y profundo */
    background: linear-gradient(145deg, rgba(5, 15, 25, 0.9), rgba(0, 5, 10, 1));
    clip-path: var(--hex-path);
    
    /* Borde interno sutil para profundidad */
    box-shadow: inset 0 0 15px rgba(0, 255, 208, 0.1);
    z-index: 1;
}

/* CAPA 2: El Marco de Luz Sólida (Usando ::after en el container) */
/* Esto crea el borde nítido y brillante que querías */
.hex-container::after {
    content: '';
    position: absolute;
    inset: 0; /* Ocupa todo el espacio */
    
    /* Un borde grueso y sólido del color principal */
    background: var(--hub-primary);
    /* Recortamos el centro para dejar solo el marco */
    clip-path: polygon(
        50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%, /* Exterior */
        50% 2% , 98% 26%, 98% 74%, 50% 98%, 2% 74%, 2% 26%   /* Interior (crea el hueco) */
    );
    
    /* Hacemos que el marco brille intensamente */
    filter: drop-shadow(0 0 5px var(--hub-primary));
    z-index: 2;
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* CAPA 3: El Campo de Energía Trasero (Usando ::before en el container) */
/* Crea un halo suave detrás del botón */
.hex-container::before {
    content: '';
    position: absolute;
    inset: -5%; /* Ligeramente más grande que el botón */
    background: var(--hub-primary);
    clip-path: var(--hex-path);
    opacity: 0.15; /* Muy sutil en reposo */
    filter: blur(10px); /* Difuminado para parecer energía */
    z-index: 0;
    transition: all 0.5s ease;
}

/* --- EFECTOS DE HOVER --- */

/* Al pasar el mouse, el botón crece y "palpita" */
.orbital-slot:hover {
    transform: 
        translate(-50%, -50%)
        rotate(var(--angle)) 
        translate(var(--orbit-distance)) 
        rotate(calc(var(--angle) * -1))
        scale(1.15); /* Escala un poco más agresiva */
    z-index: 210; /* Asegura que quede por encima de los otros */
}

/* El marco de luz se vuelve blanco puro y súper brillante */
.orbital-slot:hover .hex-container::after {
    background: #c509ac79;
    filter: drop-shadow(0 0 15px var(--hub-primary));
    opacity: 1;
}

/* El campo de energía trasero se intensifica */
.orbital-slot:hover .hex-container::before {
    opacity: 0.5;
    inset: -10%; /* Se expande */
    filter: blur(15px);
}

/* El interior se ilumina un poco */
.orbital-slot:hover .hex-border {
    background: linear-gradient(145deg, rgba(0, 255, 208, 0.2), rgba(5, 15, 25, 0.9));
}


/* Contenido interno */
.hex-content {
    position: relative;
    z-index: 10; /* Aseguramos que el icono esté MUY por encima */
    width: 65%; height: 65%; /* Un poco más pequeño para que respire dentro del nuevo marco grueso */
    display: flex;
    justify-content: center;
    align-items: center;
}

.slot-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 255, 208, 0.5));
    pointer-events: none;
    transition: transform 0.3s ease;
}

/* Ajuste específico para iconos PNG que suelen ser más pesados visualmente */
.orbital-slot.basic .slot-icon {
    max-width: 180%;
    max-height: 180%;
}

.slot-label {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 5px #000;
    opacity: 0.8;
}

/* Dock Inferior */
.hub-bottom-dock {
    position: absolute;
    bottom: 15px;
    display: flex;
    gap: 25px;
    padding: 5px 30px;
    background: linear-gradient(90deg, transparent, var(--hub-bg-glass), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    z-index: 300; /* Dock siempre encima */
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #fff;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.dock-item:hover {
    opacity: 1;
    transform: translateY(-5px);
    color: var(--hub-primary);
}

.dock-icon {
    font-size: 24px;
}

.dock-label {
    font-size: 10px;
    text-transform: uppercase;
}

/* Pop-over de Mejora */
.upgrade-popover {
    position: absolute;
    background: var(--hub-bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--hub-primary);
    padding: 15px;
    border-radius: 10px;
    width: 200px;
    z-index: 1000;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 208, 0.2);
    padding-bottom: 5px;
}

.popover-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--hub-primary);
}

.btn-upgrade {
    width: 100%;
    background: var(--hub-primary);
    color: #000;
    border: none;
    padding: 8px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.btn-upgrade:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
}

/* Popover de Gestión de Armas */
.weapon-management-popover {
    width: 240px;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: translate(-50%, -90%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -110%) scale(1); opacity: 1; }
}

.upgrade-section {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.upgrades-container-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.upgrades-container-grid.single-column {
    grid-template-columns: 1fr;
}

.upgrade-section.small {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 208, 0.1);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.upgrade-section.small h5 {
    margin: 0 0 8px 0;
    color: var(--hub-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upgrade-section.small p {
    margin: 2px 0;
    font-size: 11px;
}

.upgrade-section.small .btn-upgrade {
    padding: 5px;
    font-size: 10px;
    margin-top: 8px;
}

.upgrade-cost {
    font-weight: bold;
    color: #ffd700;
    margin: 5px 0;
}

.variant-selector h4 {
    font-size: 12px;
    color: var(--hub-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.variant-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.variant-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variant-item:hover {
    background: rgba(0, 255, 208, 0.1);
    border-color: rgba(0, 255, 208, 0.3);
}

.variant-item.active {
    background: rgba(0, 255, 208, 0.2);
    border-color: var(--hub-primary);
    box-shadow: 0 0 10px rgba(0, 255, 208, 0.3);
}

.variant-item.locked {
    filter: grayscale(1) opacity(0.6);
}

.variant-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.variant-name {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ccc;
}

.lock-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
    background: #333;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #555;
}

/* Contenedor de Desbloqueo */
.unlock-variant-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px 10px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px dashed rgba(0, 255, 208, 0.3);
    text-align: center;
}

.unlock-icon-large {
    font-size: 40px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 208, 0.5));
}

.unlock-msg {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.btn-unlock-variant {
    width: 100%;
    background: linear-gradient(135deg, #00ffd0 0%, #008c72 100%);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 15px rgba(0, 255, 208, 0.3);
    transition: all 0.2s ease;
}

.btn-unlock-variant:hover:not(.disabled) {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.btn-unlock-variant.disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

.unlock-label {
    font-size: 10px;
    opacity: 0.8;
}

.unlock-price {
    font-size: 16px;
}

.not-enough-gems {
    font-size: 10px;
    color: #ff4444;
    margin-top: 8px;
    font-weight: bold;
}

.variant-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.variant-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 5px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.variant-item:hover {
    background: rgba(0, 255, 208, 0.1);
}

.variant-item.active {
    border-color: var(--hub-primary);
    background: rgba(0, 255, 208, 0.2);
}

.variant-icon {
    font-size: 18px;
}

.variant-name {
    font-size: 9px;
    margin-top: 2px;
}

.max-level-text {
    color: var(--hub-primary);
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px;
}

.btn-close-popover {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

/* Botón Jugar Hub - Rediseño Moderno y Sorprendente */
.btn-start-hub {
    position: fixed;
    bottom: var(--btn-play-bottom);
    left: 50%;
    transform: translateX(-50%);
    
    /* Estilo Base: Glassmorphism + Neon */
    background: linear-gradient(135deg, rgba(0, 255, 208, 0.2), rgba(0, 255, 208, 0.8));
    color: #000;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: var(--btn-play-padding);
    font-size: var(--btn-play-font-size);
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    pointer-events: auto;
    z-index: 110;
    
    text-transform: uppercase;
    letter-spacing: 4px;
    overflow: hidden; /* Para el efecto de brillo */
    
    /* Súper Resplandor */
    box-shadow: 
        0 0 20px rgba(0, 255, 208, 0.4),
        0 0 40px rgba(0, 255, 208, 0.2),
        inset 0 0 15px rgba(255, 255, 255, 0.5);
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efecto de Brillo "Shimmer" que recorre el botón */
.btn-start-hub::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transition: all 0.6s;
    animation: btn-shimmer 3s infinite;
}

@keyframes btn-shimmer {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.btn-start-hub:hover {
    transform: translateX(-50%) scale(1.1) translateY(-5px);
    background: linear-gradient(135deg, rgba(0, 255, 208, 0.4), rgba(0, 255, 208, 1));
    box-shadow: 
        0 0 30px var(--hub-primary),
        0 0 60px rgba(0, 255, 208, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.8);
    letter-spacing: 6px;
}

.btn-start-hub:active {
    transform: translateX(-50%) scale(0.95);
}

/* Ajustes para elementos existentes */
#btn-settings {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 120;
    background: var(--hub-bg-glass);
    border: 1px solid var(--hub-primary);
    color: var(--hub-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

#btn-settings:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px var(--hub-primary);
}

/* OCULTAR MENÚ ANTIGUO PARA EVITAR SOBREPOSICIÓN */
#main-menu .menu-buttons,
#main-menu .footer,
#main-menu .game-subtitle,
#main-menu .btn-icon-only:not(#btn-settings),
#main-menu .btn,
#main-menu a.btn,
#main-menu .logo-container + .menu-buttons,
#main-menu .logo-container ~ .btn,
#main-menu .logo-container ~ a.btn {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
    position: absolute !important;
    visibility: hidden !important;
}

/* Ajustar Logo para que no estorbe al Hub */
#main-menu .logo-container {
    position: fixed !important;
    top: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1100 !important;
    pointer-events: none !important;
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: auto !important;
}

#main-menu .game-title {
    font-size: 3rem !important;
    margin-top: -5px !important;
    text-shadow: 0 0 20px var(--hub-primary) !important;
    white-space: nowrap !important;
}

#logo-canvas {
    max-width: 120px !important;
    max-height: 120px !important;
}

/* Variantes */
.variant-selector {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.variant-selector h4 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: var(--hub-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.variant-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.variant-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variant-item:hover {
    background: rgba(0, 255, 208, 0.1);
    border-color: var(--hub-primary);
}

.variant-item.active {
    background: rgba(0, 255, 208, 0.2);
    border-color: var(--hub-primary);
    box-shadow: 0 0 10px rgba(0, 255, 208, 0.2);
}

.variant-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.variant-name {
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Popover de Gestión de Armas */
.weapon-management-popover {
    width: 280px !important;
}

/* =========================================
   MEDIA QUERIES: AJUSTES ESPECÍFICOS
========================================= */

/* =========================================
   AJUSTES PARA MÓVILES (Pantallas chicas)
========================================= */
@media (max-width: 800px) {
    :root {
        /* Hacemos el centro más grande para que se vea bien la skin */
        --center-size: 70vw; 
        
        /* Hacemos los botones un poco más chicos para que quepan */
        --hex-size: 16vw;
        
        /* Reducimos el aire para que todo quede compacto y no se salga de la pantalla */
       --gap-size: max(8px, calc(var(--center-size) * 0.06));

        /* Ajuste fino: negativo acerca los hexágonos al centro solo en móviles */
        --orbit-offset: -45px;
        
        /* NOTA: No redefinimos --orbit-distance, se recalcula solo con los nuevos valores */

        /* AJUSTES DEL BOTÓN JUGAR EN MÓVIL */
        --btn-play-bottom: 100px;
        --btn-play-padding: 2px 45px;
        --btn-play-font-size: 19px;
    }

    .hub-bottom-dock {
        bottom: 40px;
        gap: 50px;
        padding: 5px 20px;
        border-radius: 60px;
        background: linear-gradient(90deg, transparent, rgba(5, 20, 40, 0.8), transparent);
        border: 1px solid rgba(0, 255, 208, 0.1);
    }
    
    .dock-label {
        display: none; /* Opcional: Ocultar texto en dock si estorba mucho en móviles muy chicos */
    }

    /* Ajuste del Título para móviles */
    #main-menu .game-title {
        font-size: 1.8rem !important;
        letter-spacing: 6px !important;
    }

    .game-subtitle {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
        /* Ajuste de posición del botón Jugar en PC */
    .btn-start-hub {
        bottom: 90px;
    }

    /* Centrar Popovers (Modales) en Móvil */
    .upgrade-popover, 
    .weapon-management-popover {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 85vw !important;
        max-width: 320px;
        margin: 0 !important;
        z-index: 2000 !important; /* Por encima de todo */
        animation: modalFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
        background: rgba(5, 15, 30, 0.95) !important; /* Más opaco en móvil */
        backdrop-filter: blur(15px) !important;
    }

    @keyframes modalFadeIn {
        from { opacity: 0; transform: translate(-50%, -45%) scale(0.9); }
        to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    }
}

/* =========================================
   AJUSTES PARA PC GAMER (Pantallas Grandes)
========================================= */
@media (min-width: 1024px) {
    :root {
        /* Ponemos límites máximos (px) para que en un monitor 4K no se vea gigante */
        --center-size: 550px; 
        --hex-size: 150px;
        --gap-size: 10px; /* Más aire para elegancia */

                /* AJUSTES DEL BOTÓN JUGAR EN PC */
        --btn-play-bottom: 190px;
        --btn-play-padding: 16px 100px;
        --btn-play-font-size: 28px;
    }

    .hub-center-container {
        /* Efecto de flotación exclusivo de PC */
        animation: float-hub 6s ease-in-out infinite;
    }

    .hub-bottom-dock {
        bottom: 60px;
        gap: 80px;
        padding: 20px 60px;
        border-radius: 60px;
        background: linear-gradient(90deg, transparent, rgba(5, 20, 40, 0.8), transparent);
        border: 1px solid rgba(0, 255, 208, 0.1);
    }
    
    .logo-container {
        top: 8vh;
        transform: translateX(-50%) scale(1.3);
    }

    /* Ajuste de posición del botón Jugar en PC */
    .btn-start-hub {
        bottom: 190px;
    }
}