/* Navbar dell'Hub come menu di navigazione (tab cliccabili) */
.hub-nav { gap: 4px; }
.hud-tab {
    font-family: inherit;
    background: transparent;
    border: none;
    color: var(--hud-neon-pink);
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 0.72rem;
    cursor: pointer;
    padding: 2px 3px;
    text-shadow: 0 0 8px var(--hud-neon-pink);
    transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.15s ease;
}
.hud-tab:hover { transform: translateY(-1px); }
.hud-tab.active-tab {
    color: var(--hud-light);
    text-shadow: 0 0 8px var(--hud-purple);
}
.hud-tab.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-shadow: none;
    pointer-events: none;
}

/* Struttura della Card Hangar (bordo animato in components.css) */
.hub-card {
    padding: 25px 20px;
    z-index: 1;
}

/* Pulsante-pannello pulito (niente PNG) */
.btn-pannello {
    font-family: inherit;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--testo);
    cursor: pointer;
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: rgba(112, 56, 248, 0.14);
    border: 1px solid var(--accent);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn-pannello:hover {
    background: rgba(112, 56, 248, 0.32);
    box-shadow: 0 0 14px rgba(112, 56, 248, 0.5);
}

.hub-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hub-header-title {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--hud-light);
    text-shadow: 0 0 10px rgba(255, 150, 0, 0.9);
    margin: 0;
}

/* Radar centrale */
.radar-dot {
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 200, 255, 1);
}

/* Badge Boss sul cerchio centrale: etichetta + countdown live */
#btn-boss .btn-content {
    flex-direction: column;
    gap: 2px;
}
.boss-btn-label {
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    color: var(--hud-light);
    text-shadow: 0 0 8px var(--hud-purple);
}
.boss-btn-timer {
    font-size: 0.72rem;
    font-weight: bold;
    color: #ffd23f;
    text-shadow: 0 0 8px rgba(255, 210, 63, 0.7);
}
/* Evento IN CORSO: rosso, pulsante */
.btn-circle.boss-attivo { animation: bossPulse 1.6s ease-in-out infinite; }
.btn-circle.boss-attivo .boss-btn-label {
    color: #ff5c7a;
    text-shadow: 0 0 10px var(--hud-neon-pink);
}
.btn-circle.boss-attivo .btn-circle-bg {
    opacity: 1;
    filter: drop-shadow(0 0 25px rgba(255, 0, 85, 0.9)) drop-shadow(0 0 10px rgba(255, 0, 85, 0.8));
}
@keyframes bossPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
    .btn-circle.boss-attivo { animation: none; }
}

/* Box Statistiche */
.stats-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border: 1px dashed rgba(112, 56, 248, 0.4);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-label {
    color: rgba(224, 208, 255, 0.9);
}

.stat-value {
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 6px rgba(0, 200, 255, 0.8);
}

.stat-value.green {
    color: #00ff82;
    text-shadow: 0 0 6px rgba(0, 255, 130, 0.8);
}

/* Avviso temporaneo (toast) — es. salita di livello */
.hub-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
    background: rgba(10, 5, 20, 0.95);
    border: 1px solid #00ff82;
    color: #00ff82;
    font-family: var(--font-main);
    font-weight: bold;
    letter-spacing: 2px;
    padding: 12px 22px;
    z-index: 200;
    box-shadow: 0 0 18px rgba(0, 255, 130, 0.5);
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
.hub-toast.visibile {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================
   NICKNAME — overlay di identificazione al primo avvio
   (token del gioco, non lo stile NetWire di social)
   ================================================---------- */
#view-nick {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(2, 0, 8, 0.96);
}
.nk-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--accent);
    box-shadow: 0 0 30px rgba(112, 56, 248, 0.4);
    clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
}
.nk-logo {
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: var(--accent-2);
    text-shadow: 0 0 8px var(--accent-2);
}
.nk-titolo {
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: var(--testo-tenue);
    text-shadow: 0 0 12px var(--accent);
}
.nk-intro {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(224, 208, 255, 0.8);
    margin: 0;
}
.nk-form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.nk-campo {
    background: var(--surface-scura);
    border: 1px solid var(--accent);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}
.nk-campo input {
    width: 100%;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--testo);
    font-family: inherit;
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-align: center;
    padding: 12px;
}
.nk-btn {
    font-family: inherit;
    font-size: 0.95rem;
    letter-spacing: 2px;
    color: var(--accent-2);
    background: rgba(0, 200, 255, 0.12);
    border: 1px solid var(--accent-2);
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.nk-btn:hover { background: rgba(0, 200, 255, 0.25); }
