/* Player Menu Hub — additive draft styles
   Link after styles.css or paste into styles.css when integrating. */

/* Legacy floating pause button — removed from UI.
   Hidden DOM stub remains for script.js compatibility. */
#pause-btn,
button.pause-btn {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.player-hub-header h2 {
    color: #d4af37;
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.55);
}

.player-card {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 2px solid #6b0000;
    background: linear-gradient(135deg, rgba(42, 22, 22, 0.9) 0%, rgba(24, 12, 18, 0.95) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.player-card-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.player-card-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.05rem, 3.2vw, 1.35rem);
    color: #ffd700;
    font-weight: 700;
}

.player-card-class {
    color: #c9b8a0;
    font-size: 0.9rem;
    margin-top: 2px;
}

.player-card-power {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1.5px solid #d4af37;
    background: rgba(212, 175, 55, 0.12);
}

.player-card-resources {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.hub-res {
    text-align: center;
    padding: 6px 4px;
    border-radius: 8px;
    background: rgba(139, 0, 0, 0.18);
    border: 1px solid #8b0000;
    font-size: 0.85rem;
}

.hub-res-label {
    color: #aaa;
    margin-right: 2px;
}

.player-hub-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.player-hub-tab {
    min-height: 44px !important;
    padding: 10px 8px !important;
    border-radius: 12px !important;
    border: 2px solid #6b0000 !important;
    background: linear-gradient(135deg, #2a1a1a 0%, #3a2020 100%) !important;
    color: #e0e0e0 !important;
    font-size: 0.95rem !important;
    font-weight: 700;
}

.player-hub-tab.active {
    border-color: #d4af37 !important;
    background: linear-gradient(135deg, #3a2820 0%, #4a3020 100%) !important;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
    color: #ffd700 !important;
}

.player-hub-panel {
    display: none;
}

.player-hub-panel.active {
    display: block;
    animation: fadeIn 0.25s ease-in;
}

.hub-skills-header {
    margin-bottom: 12px;
    text-align: center;
}

.hub-skills-note {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 8px;
    font-style: italic;
}

.hub-skill-tree-content {
    max-height: min(55vh, 560px);
}

.hub-settings .pause-section {
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .player-card-resources {
        grid-template-columns: repeat(2, 1fr);
    }

    .player-hub-tab {
        font-size: 0.85rem !important;
        padding: 8px 4px !important;
    }
}
