/* ═══════════════════════════════════════════════════════════════════
   HUB SCREEN - Station Map / Desktop Overview
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────
   SEASON BANNER - Shows active season info
   ───────────────────────────────────────────────────────────────────── */

.hub-season-banner {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 140, 0, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    margin: var(--spacing-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 50;
}

.hub-season-banner:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 140, 0, 0.2) 100%);
    border-color: var(--color-gold);
    transform: translateY(-1px);
}

.hub-season-banner:active {
    transform: translateY(0);
}

.season-banner-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    animation: trophy-pulse 2s infinite;
}

@keyframes trophy-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.season-banner-info {
    flex: 1;
}

.season-banner-name {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-gold);
}

.season-banner-time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.season-banner-arrow {
    font-size: 1rem;
    color: var(--color-gold);
    opacity: 0.7;
}

/* Desktop positioning */
@media (min-width: 900px) {
    .hub-season-banner {
        position: absolute;
        top: var(--spacing-md);
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        max-width: 300px;
        width: auto;
        margin: 0;
    }

    .hub-season-banner:hover {
        transform: translateX(-50%) translateY(-1px);
    }
}

/* ─────────────────────────────────────────────────────────────────────
   MOBILE MAP - Touch Pannable Map
   ───────────────────────────────────────────────────────────────────── */

.hub-mobile-map {
    position: relative;
    width: 100%;
    height: calc(100vh - 60px);
    overflow: hidden;
    background: linear-gradient(180deg,
        rgba(10, 10, 20, 1) 0%,
        rgba(20, 25, 40, 1) 50%,
        rgba(15, 20, 35, 1) 100%
    );
}

.mobile-map-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
}

.mobile-map-container {
    position: absolute;
    width: 600px;
    height: 600px;
    transition: transform 0.1s ease-out;
}

.mobile-map-bg {
    position: absolute;
    inset: 0;
}

.mobile-map-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 60%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}

/* Fog Overlay */
.mobile-map-fog {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.fog-layer {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
}

.fog-layer.fog-1 {
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(100, 120, 150, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(80, 100, 140, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(90, 110, 145, 0.3) 0%, transparent 40%);
    animation: fog-drift-1 20s ease-in-out infinite;
}

.fog-layer.fog-2 {
    background:
        radial-gradient(ellipse 90% 70% at 70% 70%, rgba(120, 140, 170, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 50% 90% at 30% 30%, rgba(100, 120, 160, 0.3) 0%, transparent 50%);
    animation: fog-drift-2 25s ease-in-out infinite;
}

.fog-layer.fog-3 {
    background:
        radial-gradient(ellipse 100% 80% at 40% 60%, rgba(130, 150, 180, 0.25) 0%, transparent 45%),
        radial-gradient(ellipse 60% 100% at 60% 40%, rgba(110, 130, 165, 0.2) 0%, transparent 45%);
    animation: fog-drift-3 30s ease-in-out infinite;
}

@keyframes fog-drift-1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(3%, 2%); }
    50% { transform: translate(5%, 0%); }
    75% { transform: translate(2%, -2%); }
}

@keyframes fog-drift-2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2%, 3%); }
    50% { transform: translate(-4%, 1%); }
    75% { transform: translate(-1%, -1%); }
}

@keyframes fog-drift-3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(2%, -2%); }
    66% { transform: translate(-2%, 2%); }
}

/* Hidden buildings (when not connected) */
.mobile-building.hidden,
.hub-map-station.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Fog Clearing Animation */
.mobile-map-fog.fog-clearing,
.hub-map-fog.fog-clearing {
    animation: fog-clear 1.5s ease-out forwards;
}

.mobile-map-fog.fog-clearing .fog-layer.fog-1,
.hub-map-fog.fog-clearing .fog-layer.fog-1 {
    animation: fog-split-left 1.5s ease-out forwards;
}

.mobile-map-fog.fog-clearing .fog-layer.fog-2,
.hub-map-fog.fog-clearing .fog-layer.fog-2 {
    animation: fog-split-right 1.5s ease-out forwards;
}

.mobile-map-fog.fog-clearing .fog-layer.fog-3,
.hub-map-fog.fog-clearing .fog-layer.fog-3 {
    animation: fog-fade-up 1.5s ease-out forwards;
}

@keyframes fog-clear {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fog-split-left {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(-100%, 0); opacity: 0; }
}

@keyframes fog-split-right {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(100%, 0); opacity: 0; }
}

@keyframes fog-fade-up {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(0, -50%); opacity: 0; }
}

/* Center content fading */
.mobile-map-center.center-fading,
.hub-map-center.center-fading {
    animation: center-fade-out 1s ease-out forwards;
}

@keyframes center-fade-out {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* Mobile Map Center (when not connected) */
.mobile-map-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
}

.mobile-map-logo {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

.mobile-map-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    letter-spacing: 3px;
    margin-bottom: var(--spacing-xs);
}

.mobile-map-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    letter-spacing: 1px;
}

.mobile-map-connect-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: bold;
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(153, 69, 255, 0.4);
}

/* Mobile Buildings */
.mobile-building {
    position: absolute;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 10;
}

.mobile-building:active {
    transform: scale(1.1);
}

.building-icon {
    font-size: 3rem;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.building-icon-large {
    font-size: 4rem;
}

.building-name {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--color-text-primary);
    margin-top: var(--spacing-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

/* Building Positions (village layout) */
.building-arena {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.building-market {
    top: 15%;
    left: 20%;
}

.building-missions {
    top: 20%;
    right: 15%;
}

.building-hall {
    bottom: 20%;
    left: 18%;
}

.building-tournaments {
    bottom: 15%;
    right: 18%;
}

/* Locked building */
.mobile-building.locked {
    opacity: 0.5;
}

.mobile-building.locked .building-icon {
    filter: grayscale(0.8) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.building-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    z-index: 15;
}

/* Quest marker on buildings */
.mobile-building.has-quest .building-icon {
    animation: building-pulse 2s infinite;
}

.mobile-building .quest-marker {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-danger);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 1s infinite;
    box-shadow: 0 0 8px var(--color-danger);
}

@keyframes building-pulse {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8)); }
}

/* Mobile Account Menu */
.mobile-account-menu {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    z-index: 100;
}

.mobile-account-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mobile-account-btn.has-quest {
    border-color: var(--color-gold);
    animation: quest-pulse 2s infinite;
}

.mobile-account-btn .menu-btn-quest-marker {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-danger);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: quest-bounce 1s infinite;
}

.mobile-account-icon {
    font-size: 1.3rem;
    color: var(--color-text-primary);
}

.mobile-account-dropdown {
    position: absolute;
    top: calc(100% + var(--spacing-xs));
    right: 0;
    width: 200px;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.mobile-account-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-account-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    position: relative;
}

.mobile-account-item:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.mobile-account-item:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.mobile-account-item:active {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-account-item .item-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.mobile-account-item .item-label {
    font-size: 0.9rem;
    color: var(--color-text-primary);
}

.mobile-account-connect {
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.2) 0%, rgba(20, 241, 149, 0.2) 100%);
}

.mobile-account-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: var(--spacing-xs) 0;
}

/* Center Button */
.mobile-center-btn {
    position: absolute;
    bottom: var(--spacing-lg);
    right: var(--spacing-sm);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 50;
}

.mobile-center-btn:active {
    background: rgba(255, 215, 0, 0.3);
}

/* Pan Hint */
.mobile-pan-hint {
    position: absolute;
    bottom: calc(var(--spacing-lg) + 60px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    z-index: 50;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Hide mobile map on desktop */
@media (min-width: 900px) {
    .hub-mobile-map {
        display: none;
    }
}

/* ─────────────────────────────────────────────────────────────────────
   LEGACY MOBILE MENU (kept for reference, now hidden)
   ───────────────────────────────────────────────────────────────────── */

/* Mobile: Simple menu */
.hub-mobile {
    display: none; /* Now using mobile map instead */
    padding: var(--spacing-md);
}

.hub-welcome {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.hub-logo {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.hub-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.hub-subtitle {
    color: var(--color-text-muted);
    margin-top: var(--spacing-xs);
}

.hub-menu {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.hub-menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--color-bg-panel);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hub-menu-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--color-gold);
}

.hub-menu-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
    border-radius: var(--radius-md);
}

.hub-menu-info {
    flex: 1;
}

.hub-menu-title {
    font-weight: bold;
    margin-bottom: var(--spacing-xs);
}

.hub-menu-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.hub-menu-arrow {
    color: var(--color-text-muted);
}

/* Quest marker on mobile menu items */
.hub-menu-item.has-quest {
    border-color: var(--color-gold);
    background: linear-gradient(135deg, var(--color-bg-panel) 0%, rgba(255, 215, 0, 0.1) 100%);
}

.hub-menu-icon .quest-marker {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--color-danger);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 1s infinite;
}

.hub-menu-icon {
    position: relative;
}

/* Mobile Menu Sections */
.hub-menu-section {
    margin-bottom: var(--spacing-lg);
}

.hub-menu-section-title {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-xs);
}

.hub-menu-item-connect {
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.2) 0%, rgba(20, 241, 149, 0.2) 100%);
    border-color: rgba(153, 69, 255, 0.5);
}

/* Desktop: Station map */
@media (min-width: 1200px) {
    .hub-mobile {
        display: none;
    }

    .hub-desktop {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto auto;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
        padding-bottom: calc(var(--spacing-xl) * 3);
        max-width: 1400px;
        margin: 0 auto;
        position: relative;
        min-height: calc(100vh - 120px);
    }

    .hub-station {
        background: var(--color-bg-panel);
        border-radius: var(--radius-xl);
        padding: var(--spacing-lg);
        cursor: pointer;
        transition: transform var(--transition-normal), box-shadow var(--transition-normal);
        border: 2px solid transparent;
    }

    .hub-station:hover {
        transform: scale(1.02);
        box-shadow: var(--shadow-lg);
        border-color: var(--color-gold);
    }

    .hub-station-header {
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .hub-station-icon {
        font-size: 2.5rem;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--color-bg-dark);
        border-radius: var(--radius-lg);
    }

    .hub-station-title {
        font-size: 1.25rem;
        font-weight: bold;
        color: var(--color-gold);
    }

    .hub-station-content {
        min-height: 100px;
    }

    /* Station types */
    .hub-station.play {
        grid-column: 2;
        grid-row: 2;
        background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
        border-color: rgba(255, 68, 68, 0.3);
    }

    .hub-station.shop {
        grid-column: 1;
        grid-row: 1;
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
        border-color: rgba(255, 215, 0, 0.3);
    }

    .hub-station.collection {
        grid-column: 3;
        grid-row: 1;
        background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(33, 150, 243, 0.1) 100%);
        border-color: rgba(74, 158, 255, 0.3);
    }

    .hub-station.deck {
        grid-column: 1;
        grid-row: 2;
        background: linear-gradient(135deg, rgba(156, 39, 176, 0.1) 0%, rgba(103, 58, 183, 0.1) 100%);
        border-color: rgba(156, 39, 176, 0.3);
    }

    .hub-station.profile {
        grid-column: 3;
        grid-row: 2;
        background: linear-gradient(135deg, rgba(68, 255, 68, 0.1) 0%, rgba(0, 200, 100, 0.1) 100%);
        border-color: rgba(68, 255, 68, 0.3);
    }

    /* Center info panel */
    .hub-center-info {
        grid-column: 2;
        grid-row: 1;
        background: var(--color-bg-dark);
        border-radius: var(--radius-xl);
        padding: var(--spacing-lg);
        text-align: center;
    }

    .hub-center-info h1 {
        font-size: 2rem;
        color: var(--color-gold);
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        margin-bottom: var(--spacing-md);
    }

    .hub-wallet-info {
        display: flex;
        justify-content: center;
        gap: var(--spacing-lg);
        margin-top: var(--spacing-md);
    }

    .hub-wallet-stat {
        text-align: center;
    }

    .hub-wallet-stat-value {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--color-gold);
    }

    .hub-wallet-stat-label {
        font-size: 0.75rem;
        color: var(--color-text-muted);
    }
}

/* Mobile: hide desktop view */
@media (max-width: 1199px) {
    .hub-desktop {
        display: none;
    }
}

/* Help Section (Mobile) */
.hub-help-section {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.hub-help-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hub-help-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-text-primary);
}

.hub-help-icon {
    font-size: 1rem;
}

/* Quick stats for hub */
.hub-quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.hub-stat {
    background: var(--color-bg-dark);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
}

.hub-stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-gold);
}

.hub-stat-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* ─────────────────────────────────────────────────────────────────────
   STARTER PACK BANNER
   ───────────────────────────────────────────────────────────────────── */

.starter-banner {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(139, 195, 74, 0.2) 100%);
    border: 2px solid var(--color-success);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: var(--color-success); }
    50% { border-color: rgba(76, 175, 80, 0.5); }
}

.starter-banner-icon {
    font-size: 2.5rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.starter-banner-content {
    flex: 1;
}

.starter-banner-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-success);
}

.starter-banner-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Unlock Progress Banner */
.starter-unlock-banner {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--color-bg-panel);
    border: 1px solid var(--color-purple);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.unlock-progress {
    flex: 1;
}

.unlock-progress-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-success);
    margin-bottom: 2px;
}

.unlock-progress-sublabel {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xs);
}

.unlock-progress-bar {
    height: 8px;
    background: var(--color-bg-dark);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

.unlock-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-purple) 0%, var(--color-cyan) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.unlock-progress-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Desktop starter banner adjustment */
@media (min-width: 1200px) {
    .desktop-starter-banner {
        grid-column: 1 / -1;
        max-width: 800px;
        margin: 0 auto var(--spacing-lg);
    }

    .starter-banner,
    .starter-unlock-banner {
        max-width: 600px;
        margin: 0 auto var(--spacing-lg);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   HUB MAP SYSTEM - Interactive Map with Stations
   ═══════════════════════════════════════════════════════════════════ */

.hub-map {
    display: none;
}

/* Desktop: Show map view */
@media (min-width: 900px) {
    .hub-mobile {
        display: none;
    }

    .hub-map {
        display: block;
        position: relative;
        width: 100%;
        height: calc(100vh - 100px);
        min-height: 600px;
        max-height: 900px;
        overflow: hidden;
    }

    /* Map Background */
    .hub-map-bg {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,
            rgba(10, 10, 20, 1) 0%,
            rgba(20, 25, 40, 1) 50%,
            rgba(15, 20, 35, 1) 100%
        );
        overflow: hidden;
    }

    /* Grid pattern overlay */
    .hub-map-grid {
        position: absolute;
        inset: 0;
        background-image:
            radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 70%),
            linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
            linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
        background-size: 100% 100%, 50px 50px, 50px 50px;
    }

    /* Desktop Fog Overlay */
    .hub-map-fog {
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        overflow: hidden;
    }

    .hub-map-fog .fog-layer {
        position: absolute;
        width: 200%;
        height: 200%;
        top: -50%;
        left: -50%;
    }

    .hub-map-fog .fog-layer.fog-1 {
        background:
            radial-gradient(ellipse 80% 60% at 20% 80%, rgba(100, 120, 150, 0.4) 0%, transparent 50%),
            radial-gradient(ellipse 60% 80% at 80% 20%, rgba(80, 100, 140, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 70% 50% at 50% 50%, rgba(90, 110, 145, 0.3) 0%, transparent 40%);
        animation: fog-drift-1 20s ease-in-out infinite;
    }

    .hub-map-fog .fog-layer.fog-2 {
        background:
            radial-gradient(ellipse 90% 70% at 70% 70%, rgba(120, 140, 170, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 50% 90% at 30% 30%, rgba(100, 120, 160, 0.3) 0%, transparent 50%);
        animation: fog-drift-2 25s ease-in-out infinite;
    }

    .hub-map-fog .fog-layer.fog-3 {
        background:
            radial-gradient(ellipse 100% 80% at 40% 60%, rgba(130, 150, 180, 0.25) 0%, transparent 45%),
            radial-gradient(ellipse 60% 100% at 60% 40%, rgba(110, 130, 165, 0.2) 0%, transparent 45%);
        animation: fog-drift-3 30s ease-in-out infinite;
    }

    /* Center Title Area */
    .hub-map-center {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 5;
        pointer-events: none;
    }

    .hub-map-logo {
        font-size: 4rem;
        margin-bottom: var(--spacing-sm);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    }

    .hub-map-title {
        font-size: 2.5rem;
        font-weight: bold;
        color: var(--color-gold);
        text-shadow:
            0 0 20px rgba(255, 215, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 0.3);
        letter-spacing: 4px;
        margin-bottom: var(--spacing-xs);
    }

    .hub-map-subtitle {
        font-size: 1rem;
        color: var(--color-text-muted);
        margin-bottom: var(--spacing-md);
        letter-spacing: 2px;
    }

    .hub-map-stats {
        margin-top: var(--spacing-md);
        display: flex;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-md);
    }

    .hub-map-stat {
        font-size: 1rem;
        color: var(--color-gold);
        font-weight: bold;
    }

    .hub-map-stat-divider {
        color: rgba(255, 215, 0, 0.3);
    }

    .hub-map-connect {
        margin-top: var(--spacing-md);
        color: var(--color-text-muted);
        font-size: 0.9rem;
    }

    /* Connect Wallet Button in Map Center */
    .hub-map-center {
        pointer-events: auto;
    }

    .hub-map-connect-btn {
        margin-top: var(--spacing-lg);
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: 1.1rem;
        font-weight: bold;
        background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
        border: none;
        border-radius: var(--radius-lg);
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(153, 69, 255, 0.4);
    }

    .hub-map-connect-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(153, 69, 255, 0.6);
    }

    .hub-map-connect-btn:active {
        transform: scale(0.98);
    }

    /* Account Menu (Top Right) */
    .hub-account-menu {
        position: absolute;
        top: var(--spacing-md);
        right: var(--spacing-md);
        z-index: 100;
    }

    .hub-account-btn {
        width: 48px;
        height: 48px;
        border-radius: var(--radius-md);
        background: var(--color-bg-panel);
        border: 1px solid rgba(255, 255, 255, 0.2);
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .hub-account-btn:hover {
        background: var(--color-bg-dark);
        border-color: var(--color-gold);
    }

    .hub-account-btn.has-quest {
        border-color: var(--color-gold);
        animation: quest-pulse 2s infinite;
    }

    .hub-account-btn .menu-btn-quest-marker {
        position: absolute;
        top: -4px;
        right: -4px;
        background: var(--color-danger);
        color: white;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        font-size: 12px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: quest-bounce 1s infinite;
    }

    .hub-account-icon {
        font-size: 1.4rem;
        color: var(--color-text-primary);
    }

    .hub-account-dropdown {
        position: absolute;
        top: calc(100% + var(--spacing-xs));
        right: 0;
        width: 220px;
        background: var(--color-bg-panel);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: var(--radius-md);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.2s ease;
    }

    .hub-account-dropdown.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hub-account-item {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) var(--spacing-md);
        cursor: pointer;
        transition: background 0.15s ease;
        position: relative;
    }

    .hub-account-item:first-child {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .hub-account-item:last-child {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .hub-account-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .hub-account-item .item-icon {
        font-size: 1.2rem;
        width: 28px;
        text-align: center;
    }

    .hub-account-item .item-label {
        font-size: 0.9rem;
        color: var(--color-text-primary);
    }

    .hub-account-item.has-quest .item-label {
        color: var(--color-gold);
    }

    .menu-quest-marker {
        position: absolute;
        right: var(--spacing-md);
        background: var(--color-danger);
        color: white;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        font-size: 11px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hub-account-connect {
        background: linear-gradient(135deg, rgba(153, 69, 255, 0.2) 0%, rgba(20, 241, 149, 0.2) 100%);
    }

    .hub-account-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: var(--spacing-xs) 0;
    }

    /* Map Stations */
    .hub-map-station {
        position: absolute;
        cursor: pointer;
        text-align: center;
        transition: transform 0.3s ease, filter 0.3s ease;
        z-index: 10;
    }

    .hub-map-station:hover {
        transform: scale(1.15);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }

    .hub-map-station:hover .station-label {
        opacity: 1;
        transform: translateY(0);
    }

    .station-building {
        font-size: 3.5rem;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
        transition: transform 0.2s ease;
    }

    .station-building-large {
        font-size: 5rem;
    }

    .hub-map-station:hover .station-building {
        transform: translateY(-5px);
    }

    .station-label {
        font-size: 0.85rem;
        font-weight: bold;
        color: var(--color-text-primary);
        margin-top: var(--spacing-xs);
        opacity: 0.7;
        transform: translateY(5px);
        transition: all 0.3s ease;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    }

    /* Station Positions (5 stations - Village Layout) */

    /* Center - The Arena (Main/Largest Building) */
    .station-arena {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .station-arena:hover {
        transform: translate(-50%, -50%) scale(1.15);
    }
    .station-arena .station-building-large {
        font-size: 5rem;
    }

    /* Top Left - Card Market */
    .station-market {
        top: 18%;
        left: 22%;
    }

    /* Top Right - Missions */
    .station-missions {
        top: 22%;
        right: 20%;
    }

    /* Bottom Left - Hall of Fame */
    .station-hall {
        bottom: 18%;
        left: 25%;
    }

    /* Bottom Right - Tournaments */
    .station-tournaments {
        bottom: 22%;
        right: 22%;
    }

    /* Locked Stations */
    .hub-map-station.locked {
        cursor: not-allowed;
        opacity: 0.5;
    }

    .hub-map-station.locked:hover {
        transform: none;
        filter: none;
    }

    .hub-map-station.locked .station-building {
        filter: grayscale(0.8) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    }

    .hub-map-station.locked:hover .station-building {
        transform: none;
    }

    .station-lock {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 2rem;
        z-index: 15;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    }

    /* Quest marker on stations */
    .hub-map-station.has-quest .station-building {
        animation: station-pulse 2s infinite;
    }

    .hub-map-station .quest-marker {
        position: absolute;
        top: -5px;
        right: -5px;
        background: var(--color-danger);
        color: white;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        font-size: 14px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: bounce 1s infinite;
        box-shadow: 0 0 10px var(--color-danger);
    }

    @keyframes station-pulse {
        0%, 100% {
            filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
        }
        50% {
            filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
        }
    }

    /* Help Buttons */
    .hub-map-help {
        position: absolute;
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
        display: flex;
        gap: var(--spacing-sm);
        z-index: 20;
    }

    .hub-map-help-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--color-bg-panel);
        border: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .hub-map-help-btn:hover {
        background: var(--color-bg-dark);
        border-color: var(--color-gold);
        transform: scale(1.1);
    }
}

/* Tablet: Slightly smaller stations */
@media (min-width: 900px) and (max-width: 1199px) {
    .station-building {
        font-size: 2.5rem;
    }

    .station-building-large {
        font-size: 4rem;
    }

    .hub-map-title {
        font-size: 2rem;
    }

    .hub-map-logo {
        font-size: 3rem;
    }

    .hub-account-dropdown {
        width: 200px;
    }
}

/* ─────────────────────────────────────────────────────────────────────
   AUDIO CONTROLS — Fixed bottom-right overlay
   ───────────────────────────────────────────────────────────────────── */

.hub-audio-controls {
    position: fixed;
    bottom: 72px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 100;
}

.hub-audio-btn {
    background: rgba(20, 25, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    backdrop-filter: blur(4px);
}
.hub-audio-btn:hover {
    background: rgba(30, 35, 55, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}
