/* ============================================================
   MODERN HOME PAGE — CHESS KINGDOM V2
   Game HUD Header, 3D Building Hotspots, Quick Hub & Mobile Nav
   ============================================================ */

/* ---------- GAME HUD HEADER V2 ---------- */
.modern-hud-header {
    background: linear-gradient(180deg, rgba(13, 11, 28, 0.95) 0%, rgba(20, 16, 42, 0.88) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 8px 16px;
}

.hud-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Left: Logo & View Switcher */
.hud-brand-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hud-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
}

.hud-logo-img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.4));
    transition: transform 0.25s ease;
}

.hud-logo:hover .hud-logo-img {
    transform: scale(1.08) rotate(-3deg);
}

.hud-logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

.hud-logo-subtitle {
    font-size: 0.65rem;
    color: var(--rpg-gold);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* View Mode Switcher Toggle */
.view-mode-toggle {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px solid rgba(255, 215, 0, 0.3);
    border-radius: 24px;
    padding: 3px;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
}

.view-mode-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.view-mode-btn.active {
    background: var(--rpg-gold-gradient);
    color: #2D1400;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.5);
    transform: scale(1.02);
}

/* Center: RPG Resource Badges */
.hud-resources {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hud-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 4px 12px 4px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
    cursor: default;
}

.hud-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.2);
}

.hud-pill-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hud-pill-val {
    font-size: 0.9rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hud-pill--stars .hud-pill-val { color: #FFE066; }
.hud-pill--coins .hud-pill-val { color: #FFB84D; }
.hud-pill--elo .hud-pill-val { color: #6EE7B7; }
.hud-pill--streak .hud-pill-val { color: #FF7675; }

/* Right: User Knight Badge & Quick Actions */
.hud-actions-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hud-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 215, 0, 0.3);
    padding: 3px 12px 3px 4px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hud-user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--rpg-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
}

.hud-avatar-ring {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.hud-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #1A103C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.hud-user-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
    max-width: 130px;
}

.hud-user-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.hud-user-rank {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--rpg-gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
}

.hud-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.hud-btn:hover {
    transform: translateY(-3px) scale(1.08);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.hud-btn-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #E74C3C;
    color: #FFFFFF;
    font-size: 0.62rem;
    font-weight: 900;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 9px;
    text-align: center;
    border: 2px solid #0D0B1C;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.6);
}

/* ---------- 3D MAP VIEW ENHANCEMENTS ---------- */
.modern-map-wrapper {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 60px);
    overflow: hidden;
}

/* 3D Landmark Hotspots — Tách Layer Sprite & Hiệu Ứng Hover Reveal */
.modern-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 20;
    transition: z-index 0.2s ease;
    /* Clickable trigger area */
    width: var(--hotspot-w, clamp(90px, 12vw, 160px));
    height: var(--hotspot-h, clamp(90px, 12vw, 160px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modern-hotspot:hover,
.modern-hotspot.active-touch {
    z-index: 70;
}

/* Layer Sprite độc lập đặt đè lên toà nhà */
.hotspot-sprite {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: var(--sprite-w, clamp(120px, 16vw, 220px));
    height: auto;
    max-width: none;
    pointer-events: none;
    user-select: none;
    opacity: 0; /* Ẩn lúc bình thường để bản đồ sạch sẽ, giữ nguyên vẻ đẹp gốc */
    transition: opacity 0.26s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.3s ease;
    will-change: opacity, transform, filter;
}

/* Khi rà chuột: Công trình bừng sáng hào quang & nhấc bổng */
.modern-hotspot:hover .hotspot-sprite,
.modern-hotspot.active-touch .hotspot-sprite {
    opacity: 1;
    transform: translate(-50%, -55%) scale(1.08);
    filter: drop-shadow(0 0 18px var(--glow-color, #ffd700))
            drop-shadow(0 0 35px var(--glow-color, rgba(255, 215, 0, 0.6)))
            drop-shadow(0 12px 24px rgba(0, 0, 0, 0.75))
            brightness(1.18);
}

/* Thẻ Tên Công Trình — Ẩn mặc định, bay lên khi hover */
.hotspot-beacon {
    position: absolute;
    bottom: var(--beacon-y, calc(100% - 15px));
    left: 50%;
    transform: translateX(-50%) translateY(12px) scale(0.85);
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.25s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 80;
    white-space: nowrap;
}

.modern-hotspot:hover .hotspot-beacon,
.modern-hotspot.active-touch .hotspot-beacon {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.hotspot-card {
    background: rgba(14, 10, 32, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid var(--glow-color, rgba(255, 215, 0, 0.6));
    border-radius: 20px;
    padding: 5px 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 16px var(--glow-color, rgba(255, 215, 0, 0.35));
    white-space: nowrap;
    user-select: none;
    transition: all 0.25s ease;
}

.modern-hotspot:hover .hotspot-card,
.modern-hotspot.active-touch .hotspot-card {
    background: rgba(24, 16, 52, 0.96);
    border-color: #FFFFFF;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8), 0 0 24px var(--glow-color, rgba(255, 215, 0, 0.7));
}

.hotspot-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hotspot-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.modern-hotspot:hover .hotspot-icon,
.modern-hotspot.active-touch .hotspot-icon {
    transform: scale(1.15) rotate(2deg);
}

.hotspot-label {
    font-size: 0.86rem;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
    letter-spacing: 0.3px;
}

.hotspot-pillar {
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--glow-color, #FFD700) 0%, transparent 100%);
    box-shadow: 0 0 8px var(--glow-color, #FFD700);
    opacity: 0.8;
}

.hotspot-lock {
    background: rgba(231, 76, 60, 0.3);
    border: 1px solid rgba(231, 76, 60, 0.7);
    color: #FFA3A3;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
}

/* Activity Gate Locked State (100 attendance points required) */
.building--activity-locked {
    filter: saturate(0.4) brightness(0.75);
    transition: filter 0.35s ease;
}

.building--activity-locked .hotspot-sprite {
    filter: grayscale(0.75) brightness(0.65) drop-shadow(0 0 12px rgba(231, 76, 60, 0.5)) !important;
}

.building--activity-locked:hover .hotspot-sprite,
.building--activity-locked.active-touch .hotspot-sprite {
    filter: grayscale(0.5) brightness(0.8) drop-shadow(0 0 20px rgba(231, 76, 60, 0.8)) !important;
}

.hotspot-lock--activity {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.45), rgba(192, 57, 43, 0.65)) !important;
    border: 1.2px solid #ff7675 !important;
    color: #ffeaa7 !important;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.6);
    animation: actLockGlow 2.5s ease-in-out infinite;
}

.realm-hotspot--activity-locked {
    opacity: 0.85;
}

.realm-hotspot-lock--activity {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.45), rgba(192, 57, 43, 0.65)) !important;
    border: 1.2px solid #ff7675 !important;
    color: #ffeaa7 !important;
    font-weight: 800;
    font-size: 0.62rem;
    padding: 2px 7px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    animation: actLockGlow 2.5s ease-in-out infinite;
}

@keyframes actLockGlow {
    0%, 100% {
        box-shadow: 0 0 6px rgba(231, 76, 60, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 14px rgba(231, 76, 60, 0.85);
        transform: scale(1.05);
    }
}

/* ---------- QUICK HUB MODE (GRID/DASHBOARD VIEW) ---------- */
.quick-hub-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: hubFadeIn 0.35s ease forwards;
}

@keyframes hubFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hub Hero Banner: Tháp Kỳ Vương Spotlight */
.hub-tower-hero {
    background: linear-gradient(135deg, rgba(30, 20, 70, 0.95) 0%, rgba(15, 10, 40, 0.9) 100%), url('/images/bg-tower.png') center/cover no-repeat;
    background-blend-mode: overlay;
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(108, 92, 231, 0.3);
    position: relative;
    overflow: hidden;
}

.hub-tower-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(255, 215, 0, 0.15), transparent 70%);
    pointer-events: none;
}

.hub-tower-content {
    max-width: 650px;
    z-index: 2;
}

.hub-tower-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--rpg-gold-gradient);
    color: #2D1400;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.4);
}

.hub-tower-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hub-tower-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 20px;
}

.hub-tower-progress-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 14px 18px;
    max-width: 480px;
    margin-bottom: 20px;
}

.hub-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}

.hub-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    overflow: hidden;
}

.hub-progress-fill {
    height: 100%;
    background: var(--rpg-gold-gradient);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    transition: width 0.6s ease;
}

.hub-tower-cta {
    background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
    border: none;
    color: #261100;
    font-size: 1.1rem;
    font-weight: 900;
    padding: 14px 34px;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 165, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.5px;
}

.hub-tower-cta:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 32px rgba(255, 165, 0, 0.7);
}

.hub-tower-graphic {
    font-size: 8rem;
    filter: drop-shadow(0 0 35px rgba(255, 215, 0, 0.4));
    animation: rpgFloatGlow 4s ease-in-out infinite;
    user-select: none;
}

/* Hub Section Grids */
.hub-section-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.hub-section-title span {
    font-size: 1.4rem;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.hub-card {
    background: var(--rpg-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    min-height: 160px;
}

.hub-card:hover:not(.locked) {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--card-glow, rgba(255, 215, 0, 0.6));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px var(--card-glow, rgba(255, 215, 0, 0.25));
    background: var(--rpg-bg-card-hover);
}

.hub-card.locked {
    opacity: 0.65;
    filter: grayscale(0.4);
    cursor: not-allowed;
}

.hub-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.hub-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hub-card-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hub-card-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.hub-card-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin-bottom: 16px;
}

.hub-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hub-card-action {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--rpg-gold);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---------- SMART QUEST CAPSULE ---------- */
.smart-quest-capsule {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 800;
}

.quest-capsule-btn {
    background: linear-gradient(135deg, rgba(22, 18, 44, 0.95), rgba(40, 25, 75, 0.9));
    border: 1.5px solid rgba(255, 215, 0, 0.4);
    backdrop-filter: blur(14px);
    border-radius: 30px;
    padding: 8px 18px 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 215, 0, 0.2);
    transition: all 0.25s ease;
    color: #FFFFFF;
}

.quest-capsule-btn:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: var(--rpg-gold);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.35);
}

.quest-capsule-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: beaconPulse 1.5s infinite;
}

.quest-capsule-text {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

/* ---------- MOBILE BOTTOM NAVIGATION ---------- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(13, 11, 28, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1.5px solid rgba(255, 215, 0, 0.25);
    z-index: 1000;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mob-nav-item.active {
    color: var(--rpg-gold);
    transform: translateY(-2px);
}

.mob-nav-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.mob-nav-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    .smart-quest-capsule {
        bottom: 76px;
        left: 12px;
    }

    .hud-resources {
        display: none; /* Hide top resources on small phones, show in profile or drawer */
    }

    .quick-hub-container {
        padding-bottom: 90px;
    }

    .hub-tower-hero {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .hub-tower-title {
        font-size: 1.6rem;
        justify-content: center;
    }

    .hub-tower-graphic {
        font-size: 5rem;
    }
}

/* ===== SKY ISLANDS ATMOSPHERIC EFFECTS ===== */
.sky-ambience-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

/* Drifting Cloud Layers */
.sky-cloud {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.18) 50%, transparent 80%);
    filter: blur(14px);
    border-radius: 50%;
    opacity: 0.6;
    animation: driftCloud linear infinite;
    pointer-events: none;
}

.sky-cloud--1 {
    width: 320px;
    height: 90px;
    top: 15%;
    left: -320px;
    animation-duration: 48s;
}

.sky-cloud--2 {
    width: 450px;
    height: 120px;
    top: 65%;
    left: -450px;
    animation-duration: 62s;
    animation-delay: -20s;
    opacity: 0.4;
}

.sky-cloud--3 {
    width: 260px;
    height: 80px;
    bottom: 5%;
    left: -260px;
    animation-duration: 38s;
    animation-delay: -10s;
    opacity: 0.5;
}

@keyframes driftCloud {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 500px)); }
}

/* Warm Sunbeams / God Rays Effect */
.sky-sunbeams {
    position: absolute;
    top: -50px;
    left: 0;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at 10% 10%, rgba(255, 240, 180, 0.18) 0%, rgba(255, 220, 120, 0.08) 40%, transparent 70%);
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Ambient lighting polish */

