/* ============================================
   ChiffTown — Main Stylesheet
   A virtual town you actually want to visit.
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core palette — twilight town */
    --bg-deep: #0a0a1a;
    --bg-mid: #12122a;
    --bg-surface: #1a1a3e;
    --bg-card: rgba(255, 255, 255, 0.04);
    
    --text-primary: #f0eef6;
    --text-secondary: rgba(240, 238, 246, 0.65);
    --text-muted: rgba(240, 238, 246, 0.4);
    
    --accent-gold: #f4c542;
    --accent-amber: #f59e0b;
    --accent-warm: #ff8c42;
    
    /* Venue colors */
    --tavern: #d97706;
    --tavern-glow: rgba(217, 119, 6, 0.3);
    --nightclub: #00CED1;
    --nightclub-glow: rgba(0, 206, 209, 0.3);
    --cinema: #ef4444;
    --cinema-glow: rgba(239, 68, 68, 0.3);
    --games: #22c55e;
    --games-glow: rgba(34, 197, 94, 0.3);
    --lounge: #0891b2;
    --lounge-glow: rgba(8, 145, 178, 0.3);
    --adventure: #3b82f6;
    --adventure-glow: rgba(59, 130, 246, 0.3);
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px;
    
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-deep);
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* === Particle Canvas === */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05), var(--shadow-md);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.nav-logo:hover {
    transform: scale(1.03);
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #1a1a1a;
    box-shadow: 0 2px 12px rgba(244, 197, 66, 0.3);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-accent {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}

/* Auth Section */
.auth-section {
    position: relative;
}

.enter-btn {
    position: relative;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
    color: #1a1a1a;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition);
    overflow: hidden;
    font-family: inherit;
}

.enter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(244, 197, 66, 0.4);
}

.enter-btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    animation: glowSpin 3s linear infinite;
    pointer-events: none;
}

@keyframes glowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.enter-btn i {
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.enter-btn span {
    position: relative;
    z-index: 1;
}

/* User Menu */
.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    z-index: 1001;
    overflow: hidden;
    animation: menuSlide 0.25s ease;
    backdrop-filter: blur(30px);
}

@keyframes menuSlide {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.user-info {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.03);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 1.3rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.user-status {
    font-size: 0.78rem;
    color: #68d391;
    font-weight: 500;
}

.menu-divider {
    height: 1px;
    background: var(--glass-border);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.menu-item:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.menu-item i {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

.menu-item.sign-out {
    color: #f87171;
}

.menu-item.sign-out:hover {
    background: rgba(248, 113, 113, 0.1);
    color: #fca5a5;
}

.user-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 0.75rem;
}

.sign-in-btn, .enter-btn {
    font-family: inherit;
}

.enter-btn.signed-in, .sign-in-btn.signed-in {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    box-shadow: none;
}

.enter-btn.signed-in:hover, .sign-in-btn.signed-in:hover {
    background: var(--glass-hover);
    box-shadow: none;
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        #0a0a1a 0%,
        #0a1628 25%,
        #0d1f3c 45%,
        #102a4a 55%,
        #1a3a5c 65%,
        #1e4a6e 78%,
        #1a5276 88%,
        #1a6080 95%,
        #0a0a1a 100%
    );
}

.hero-map-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70%;
    background: url('/images/chifftown-map.png') center center / cover no-repeat;
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 20%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.9) 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 20%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.9) 100%);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-deep));
    z-index: 3;
    pointer-events: none;
}

.hero-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
}

.town-silhouette {
    width: 100%;
    height: auto;
    display: block;
}

/* Window animations handled by JavaScript for realistic on/off toggling */

@keyframes windowFlicker {
    0%, 100% { opacity: 1; }
    15% { opacity: 0.2; }
    30% { opacity: 0.9; }
    45% { opacity: 0.1; }
    60% { opacity: 1; }
    75% { opacity: 0.3; }
    90% { opacity: 1; }
}

@keyframes neonFlicker {
    0%, 100% { opacity: 1; }
    10% { opacity: 0.8; }
    20% { opacity: 1; }
    50% { opacity: 0.7; }
    52% { opacity: 1; }
    80% { opacity: 0.85; }
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 700px;
    padding: 0 2rem;
    margin-top: -5vh;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease both;
}

.hero-badge i {
    font-size: 0.75rem;
}

.hero-title {
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.15s both;
}

.title-line {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.title-main {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.title-accent {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(244, 197, 66, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--accent-gold);
}

.stat-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 28px;
    background: var(--glass-border);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeInUp 0.8s ease 0.6s both, ctaBounce 2s ease-in-out 1.5s infinite;
    transition: color var(--transition-fast);
}

.hero-cta:hover {
    color: var(--accent-gold);
}

.hero-cta i {
    font-size: 0.75rem;
    animation: ctaArrow 2s ease-in-out infinite;
}

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

@keyframes ctaArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

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

/* === Interactive City Map === */
.city-map-section {
    position: relative;
    padding: 6rem 0;
    background: var(--bg-deep);
    z-index: 1;
}

.venues-section > .container {
    max-width: 100%;
    padding: 0 1rem;
}

.interactive-map-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.city-map-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.interactive-map-container:hover .city-map-image {
    transform: scale(1.02);
}

/* Hotspot base styles */
.map-hotspot {
    position: absolute;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    z-index: 2;
    border: 2px solid rgba(201, 168, 76, 0.25);
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.1), inset 0 0 15px rgba(201, 168, 76, 0.05);
}

.map-hotspot:hover {
    transform: scale(1.08) translateY(-4px);
    z-index: 10;
    border-color: rgba(201, 168, 76, 0.6);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.3), inset 0 0 20px rgba(201, 168, 76, 0.1);
}

/* Active state for occupied venues */
.map-hotspot.active .hotspot-glow {
    animation: activePulse 2s ease-in-out infinite;
    opacity: 0.6 !important;
}

@keyframes activePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

.occupancy-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.5));
    border: 1px solid rgba(34, 197, 94, 0.6);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    color: #22c55e;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

/* Mobile responsive hotspots */
@media (max-width: 768px) {
    .map-hotspot {
        /* Larger touch targets on mobile */
        min-width: 80px;
        min-height: 80px;
    }
    
    .hotspot-label {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        bottom: -40px;
    }
    
    /* Show tooltips by default on mobile */
    .map-hotspot .hotspot-label {
        opacity: 0.7;
        transform: translateX(-50%) translateY(0);
    }
    
    .map-hotspot:hover .hotspot-label,
    .map-hotspot:active .hotspot-label {
        opacity: 1;
    }
}

/* Smooth transitions for all interactive elements */
.map-hotspot,
.hotspot-glow,
.hotspot-label {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bounce animation on click */
@keyframes bounceClick {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
}

.map-hotspot:active {
    animation: bounceClick 0.3s ease;
}

.hotspot-glow {
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    opacity: 0.35;
    transition: opacity 0.4s ease;
    animation: hotspotPulse 3s ease-in-out infinite;
    pointer-events: none;
}

.map-hotspot:hover .hotspot-glow {
    opacity: 0.9;
}

@keyframes hotspotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.hotspot-label {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    color: #e9c46a;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.85;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border: 1px solid rgba(201, 168, 76, 0.2);
    letter-spacing: 0.3px;
}

.map-hotspot:hover .hotspot-label {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
    color: #fff;
    border-color: rgba(201, 168, 76, 0.5);
    box-shadow: 0 6px 25px rgba(0,0,0,0.5), 0 0 15px rgba(201, 168, 76, 0.2);
}

/* Hotspot Positions & Colors - Isometric Layout */
/* The Rustic Tavern - tall skyscraper center-left */
.tavern-hotspot {
    left: 19%;
    top: 5%;
    width: 13%;
    height: 40%;
    background: rgba(217, 119, 6, 0.0);
}
.tavern-hotspot .hotspot-glow {
    background: radial-gradient(ellipse, rgba(217, 119, 6, 0.3) 0%, transparent 70%);
    box-shadow: 0 0 50px rgba(217, 119, 6, 0.3);
}
.tavern-hotspot:hover {
    background: rgba(217, 119, 6, 0.15);
}

/* Neon Pulse - nightclub far left */
.nightclub-hotspot {
    left: 2%;
    top: 18%;
    width: 16%;
    height: 55%;
    background: rgba(0, 206, 209, 0.0);
}
.nightclub-hotspot .hotspot-glow {
    background: radial-gradient(ellipse, rgba(0, 206, 209, 0.3) 0%, transparent 70%);
    box-shadow: 0 0 50px rgba(0, 206, 209, 0.3);
}
.nightclub-hotspot:hover {
    background: rgba(0, 206, 209, 0.15);
}

/* Starlight Cinema - art deco center-left bottom */
.cinema-hotspot {
    left: 30%;
    top: 35%;
    width: 18%;
    height: 38%;
    background: rgba(239, 68, 68, 0.0);
}
.cinema-hotspot .hotspot-glow {
    background: radial-gradient(ellipse, rgba(239, 68, 68, 0.3) 0%, transparent 70%);
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.3);
}
.cinema-hotspot:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* Pixel Palace - arcade center-right */
.arcade-hotspot {
    left: 33%;
    top: 0%;
    width: 14%;
    height: 32%;
    background: rgba(34, 197, 94, 0.0);
}
.arcade-hotspot .hotspot-glow {
    background: radial-gradient(ellipse, rgba(34, 197, 94, 0.3) 0%, transparent 70%);
    box-shadow: 0 0 50px rgba(34, 197, 94, 0.3);
}
.arcade-hotspot:hover {
    background: rgba(34, 197, 94, 0.15);
}

/* Velvet Sky - glass lounge far right */
.lounge-hotspot {
    left: 50%;
    top: 55%;
    width: 18%;
    height: 35%;
    background: rgba(8, 145, 178, 0.0);
}
.lounge-hotspot .hotspot-glow {
    background: radial-gradient(ellipse, rgba(8, 145, 178, 0.3) 0%, transparent 70%);
    box-shadow: 0 0 50px rgba(8, 145, 178, 0.3);
}
.lounge-hotspot:hover {
    background: rgba(8, 145, 178, 0.15);
}

/* Adventure Guild - castle on mountain upper right */
.adventure-hotspot {
    left: 72%;
    top: 0%;
    width: 16%;
    height: 42%;
    background: rgba(59, 130, 246, 0.0);
}
.adventure-hotspot .hotspot-glow {
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.3);
}
.adventure-hotspot:hover {
    background: rgba(59, 130, 246, 0.15);
}

/* Good News 24 - removed from new map, hidden */
.billboard-hotspot {
    display: none;
}
.billboard-hotspot .hotspot-glow {
    background: radial-gradient(ellipse, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
    box-shadow: 0 0 50px rgba(251, 191, 36, 0.3);
}
.billboard-hotspot:hover {
    background: rgba(251, 191, 36, 0.12);
}

/* Your Apartment - residential building bottom right */
/* Apartment - hidden on new map (no apartment building visible) */
.apartment-hotspot {
    display: none;
}
.apartment-hotspot .hotspot-glow {
    background: radial-gradient(ellipse, rgba(244, 197, 66, 0.3) 0%, transparent 70%);
    box-shadow: 0 0 50px rgba(244, 197, 66, 0.3);
}
.apartment-hotspot:hover {
    background: rgba(244, 197, 66, 0.15);
}

/* The Golden Dice - right of center top area */
.casino-hotspot {
    left: 52%;
    top: 8%;
    width: 16%;
    height: 42%;
    background: rgba(201, 168, 76, 0.0);
}
.casino-hotspot .hotspot-glow {
    background: radial-gradient(ellipse, rgba(201, 168, 76, 0.3) 0%, transparent 70%);
    box-shadow: 0 0 50px rgba(201, 168, 76, 0.3);
}
.casino-hotspot:hover {
    background: rgba(201, 168, 76, 0.15);
}

.hotspot-building-img {
    position: absolute;
    width: 80%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}
.apartment-hotspot:hover .hotspot-building-img {
    transform: translate(-50%, -52%);
    filter: drop-shadow(0 8px 20px rgba(244, 197, 66, 0.4));
}

/* Wellness Centre - bottom left area */
.wellness-hotspot {
    left: 70%;
    top: 35%;
    width: 15%;
    height: 35%;
    background: rgba(42, 157, 143, 0.0);
}
.wellness-hotspot .hotspot-glow {
    background: radial-gradient(ellipse, rgba(42, 157, 143, 0.3) 0%, transparent 70%);
    box-shadow: 0 0 50px rgba(42, 157, 143, 0.3);
}
.wellness-hotspot:hover {
    background: rgba(42, 157, 143, 0.15);
}

/* Merchant Block - far right */
.merchant-hotspot {
    left: 86%;
    top: 40%;
    width: 13%;
    height: 45%;
    background: rgba(180, 160, 120, 0.0);
}
.merchant-hotspot .hotspot-glow {
    background: radial-gradient(ellipse, rgba(180, 160, 120, 0.3) 0%, transparent 70%);
    box-shadow: 0 0 50px rgba(180, 160, 120, 0.3);
}
.merchant-hotspot:hover {
    background: rgba(180, 160, 120, 0.15);
}

/* ── Gen 4: Eastern District Hotspots ── */
/* Starfire Observatory — far upper right, near the mountain */
.hotspot-observatory {
    left: 69%;
    top: 10%;
    width: 10%;
    height: 26%;
    background: rgba(99, 102, 241, 0.0);
}
.hotspot-observatory .hotspot-glow {
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.3);
}
.hotspot-observatory:hover { background: rgba(99, 102, 241, 0.12); }

/* The Chronos Club — right side */
.hotspot-chronos {
    left: 79%;
    top: 40%;
    width: 8%;
    height: 22%;
    background: rgba(20, 184, 166, 0.0);
}
.hotspot-chronos .hotspot-glow {
    background: radial-gradient(ellipse, rgba(20, 184, 166, 0.3) 0%, transparent 70%);
    box-shadow: 0 0 50px rgba(20, 184, 166, 0.3);
}
.hotspot-chronos:hover { background: rgba(20, 184, 166, 0.12); }

/* The Aetherium Lab — far right */
.hotspot-aetherium {
    left: 87%;
    top: 44%;
    width: 8%;
    height: 22%;
    background: rgba(124, 58, 237, 0.0);
}
.hotspot-aetherium .hotspot-glow {
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.25);
}
.hotspot-aetherium:hover { background: rgba(124, 58, 237, 0.12); }

/* Hall of Fame — lower right area */
.hotspot-hall-of-fame {
    left: 74%;
    top: 62%;
    width: 9%;
    height: 20%;
    background: rgba(201, 168, 76, 0.0);
}
.hotspot-hall-of-fame .hotspot-glow {
    background: radial-gradient(ellipse, rgba(201, 168, 76, 0.35) 0%, transparent 70%);
    box-shadow: 0 0 50px rgba(201, 168, 76, 0.3);
}
.hotspot-hall-of-fame:hover { background: rgba(201, 168, 76, 0.15); }

/* Responsive map */
@media (max-width: 768px) {
    .city-map-section {
        padding: 4rem 0;
    }
    
    .hotspot-label {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        bottom: -35px;
    }
}

/* === Venues Section === */
.venues-section {
    position: relative;
    padding: 6rem 0;
    background: var(--bg-deep);
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(244, 197, 66, 0.08);
    border: 1px solid rgba(244, 197, 66, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.section-badge i {
    font-size: 0.7rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Venues Grid */
.venues-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Venue Card — Base */
.venue-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--glass-border);
}

.venue-card:hover {
    transform: translateY(-6px) scale(1.01);
}

.venue-card.locked {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.venue-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform 0.6s ease;
}

.venue-card:hover .venue-bg {
    transform: scale(1.05);
}

.venue-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.venue-card:hover .venue-glow {
    opacity: 1;
}

.venue-content {
    position: relative;
    z-index: 5;
    padding: 1.8rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.venue-icon-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.venue-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    transition: transform var(--transition-bounce), box-shadow var(--transition);
    position: relative;
    z-index: 2;
}

.venue-card:hover .venue-icon {
    transform: scale(1.1) rotate(-3deg);
}

.venue-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.venue-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.venue-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.venue-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(74, 222, 128, 0.5); }
    50% { opacity: 0.6; box-shadow: 0 0 4px rgba(74, 222, 128, 0.3); }
}

.venue-enter {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition);
}

.venue-card:hover .venue-enter {
    opacity: 1;
    transform: translateX(0);
}

.venue-enter i {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.venue-card:hover .venue-enter i {
    transform: translateX(3px);
}

/* Access lock indicator */
.access-lock {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.1);
    animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* === Venue Themes === */

/* TAVERN */
.venue-card.tavern .venue-bg {
    background: linear-gradient(135deg, #451a03 0%, #78350f 40%, #92400e 70%, #b45309 100%);
}
.venue-card.tavern .venue-glow {
    background: radial-gradient(ellipse at 30% 80%, var(--tavern-glow) 0%, transparent 70%);
}
.venue-card.tavern .venue-icon {
    background: linear-gradient(135deg, #d97706, #b45309);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}
.venue-card.tavern:hover {
    box-shadow: 0 8px 40px var(--tavern-glow), var(--shadow-md);
}
.venue-card.tavern:hover .venue-icon {
    box-shadow: 0 4px 25px rgba(217, 119, 6, 0.6);
}

/* Candle flame animations */
.venue-flame {
    position: absolute;
    width: 6px;
    height: 10px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(ellipse, #ffd700, #ff8c00, transparent);
    opacity: 0.8;
    animation: flameFlicker 0.8s ease-in-out infinite alternate;
    z-index: 1;
}
.flame-1 { top: -8px; left: 8px; animation-delay: -0.2s; }
.flame-2 { top: -6px; right: 8px; animation-delay: -0.5s; width: 5px; height: 8px; }

@keyframes flameFlicker {
    0% { transform: scaleY(1) scaleX(1) translateY(0); opacity: 0.8; }
    50% { transform: scaleY(1.15) scaleX(0.85) translateY(-1px); opacity: 1; }
    100% { transform: scaleY(0.9) scaleX(1.1) translateY(1px); opacity: 0.7; }
}

/* NIGHTCLUB */
.venue-card.nightclub .venue-bg {
    background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 40%, #102a4a 70%, #0a1628 100%);
}
.venue-card.nightclub .venue-glow {
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 206, 209, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
}
.venue-card.nightclub .venue-icon {
    background: linear-gradient(135deg, #00CED1, #3b82f6);
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.4);
}
.venue-card.nightclub:hover {
    box-shadow: 0 8px 40px var(--nightclub-glow), 0 0 60px rgba(59, 130, 246, 0.15), var(--shadow-md);
}
.venue-card.nightclub:hover .venue-icon {
    box-shadow: 0 4px 25px rgba(0, 206, 209, 0.6);
}

/* Neon lines */
.neon-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    opacity: 0.3;
}
.neon-line {
    position: absolute;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, #00CED1, #3b82f6, transparent);
    animation: neonScan 4s linear infinite;
}
.neon-line:nth-child(1) { top: 25%; animation-delay: 0s; }
.neon-line:nth-child(2) { top: 50%; animation-delay: -1.3s; opacity: 0.6; }
.neon-line:nth-child(3) { top: 75%; animation-delay: -2.7s; opacity: 0.4; }

@keyframes neonScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* CINEMA */
.venue-card.cinema .venue-bg {
    background: linear-gradient(135deg, #1c1917 0%, #292524 40%, #44403c 60%, #292524 100%);
}
.venue-card.cinema .venue-glow {
    background: radial-gradient(ellipse at 50% 30%, rgba(239, 68, 68, 0.15) 0%, transparent 60%);
}
.venue-card.cinema .venue-icon {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}
.venue-card.cinema:hover {
    box-shadow: 0 8px 40px var(--cinema-glow), var(--shadow-md);
}
.venue-card.cinema:hover .venue-icon {
    box-shadow: 0 4px 25px rgba(239, 68, 68, 0.6);
}

/* GAMES / ARCADE */
.venue-card.games .venue-bg {
    background: linear-gradient(135deg, #052e16 0%, #064e3b 40%, #065f46 70%, #052e16 100%);
}
.venue-card.games .venue-glow {
    background: radial-gradient(ellipse at 60% 70%, rgba(34, 197, 94, 0.2) 0%, transparent 60%);
}
.venue-card.games .venue-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}
.venue-card.games:hover {
    box-shadow: 0 8px 40px var(--games-glow), var(--shadow-md);
}
.venue-card.games:hover .venue-icon {
    box-shadow: 0 4px 25px rgba(34, 197, 94, 0.6);
}

/* LOUNGE */
.venue-card.lounge .venue-bg {
    background: linear-gradient(135deg, #0a1a2e 0%, #0d2a4a 40%, #103a5c 70%, #0a1a2e 100%);
}
.venue-card.lounge .venue-glow {
    background: radial-gradient(ellipse at 40% 60%, rgba(8, 145, 178, 0.2) 0%, transparent 60%);
}
.venue-card.lounge .venue-icon {
    background: linear-gradient(135deg, #0891b2, #20B2AA);
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.4);
}
.venue-card.lounge:hover {
    box-shadow: 0 8px 40px var(--lounge-glow), var(--shadow-md);
}
.venue-card.lounge:hover .venue-icon {
    box-shadow: 0 4px 25px rgba(8, 145, 178, 0.6);
}

/* ADVENTURE */
.venue-card.adventure .venue-bg {
    background: linear-gradient(135deg, #0c2d48 0%, #145374 40%, #1e6091 70%, #0c2d48 100%);
}
.venue-card.adventure .venue-glow {
    background: radial-gradient(ellipse at 50% 40%, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
}
.venue-card.adventure .venue-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.venue-card.adventure:hover {
    box-shadow: 0 8px 40px var(--adventure-glow), var(--shadow-md);
}
.venue-card.adventure:hover .venue-icon {
    box-shadow: 0 4px 25px rgba(59, 130, 246, 0.6);
}

/* === Features Section === */
.features-section {
    padding: 6rem 0;
    background: var(--bg-mid);
    position: relative;
    z-index: 1;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--glass-hover);
    transform: translateY(-4px);
    border-color: rgba(244, 197, 66, 0.15);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 14px;
    background: rgba(244, 197, 66, 0.08);
    border: 1px solid rgba(244, 197, 66, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-gold);
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    background: rgba(244, 197, 66, 0.12);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(244, 197, 66, 0.15);
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === About Section === */
.about-section {
    padding: 6rem 0;
    background: var(--bg-deep);
    position: relative;
    z-index: 1;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-badge {
    margin-bottom: 1.25rem;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
}

.about-card:hover {
    background: var(--glass-hover);
    transform: translateY(-3px);
}

.about-card-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem;
    border-radius: 12px;
    background: rgba(244, 197, 66, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent-gold);
}

.about-card span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* === Footer === */
.footer {
    background: rgba(5, 5, 15, 0.95);
    border-top: 1px solid var(--glass-border);
    padding: 3.5rem 0 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.footer-logo i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 0.6rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.social-links a:hover {
    background: rgba(244, 197, 66, 0.1);
    border-color: rgba(244, 197, 66, 0.2);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.footer-links h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* === Auth Modal === */
.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.25s ease;
}

.auth-modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalSlide 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-modal-header {
    background: linear-gradient(135deg, rgba(244, 197, 66, 0.12), rgba(245, 158, 11, 0.08));
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.auth-modal-header h2 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.auth-modal-header h2 i {
    color: var(--accent-gold);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.close-modal:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.auth-modal-body {
    padding: 1.5rem;
}

.auth-toggle {
    display: flex;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 3px;
    margin-bottom: 1.5rem;
    gap: 3px;
}

.auth-toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-family: inherit;
}

.auth-toggle-btn.active {
    background: rgba(244, 197, 66, 0.1);
    color: var(--accent-gold);
}

.auth-toggle-btn:hover:not(.active) {
    background: rgba(255,255,255,0.03);
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    font-family: inherit;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(244, 197, 66, 0.3);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(244, 197, 66, 0.08);
}

.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
    color: #1a1a1a;
    border: none;
    padding: 0.8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(244, 197, 66, 0.3);
}

.auth-divider {
    text-align: center;
    margin: 1.25rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--glass-border);
}

.auth-divider span {
    background: var(--bg-surface);
    padding: 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    position: relative;
}

.guest-signin-btn {
    width: 100%;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 0.8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}

.guest-signin-btn:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.15);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* Checkbox */
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 400 !important;
    color: var(--text-secondary) !important;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.checkbox-label:hover input ~ .checkmark {
    border-color: rgba(244, 197, 66, 0.3);
}

.checkbox-label input:checked ~ .checkmark {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
    border-color: var(--accent-gold);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #1a1a1a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

/* Notifications */
.notification {
    position: fixed;
    top: 90px;
    right: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 2001;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 320px;
    font-size: 0.9rem;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification i {
    font-size: 1rem;
    flex-shrink: 0;
}

.notification.notification-success { border-left: 3px solid #4ade80; }
.notification.notification-success i { color: #4ade80; }
.notification.notification-info { border-left: 3px solid #60a5fa; }
.notification.notification-info i { color: #60a5fa; }
.notification.notification-error { border-left: 3px solid #f87171; }
.notification.notification-error i { color: #f87171; }
.notification.notification-warning { border-left: 3px solid #fbbf24; }
.notification.notification-warning i { color: #fbbf24; }

/* Access Message */
.access-message {
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.access-message-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.access-message-content i {
    font-size: 2rem;
    color: var(--accent-gold);
}

.access-message-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.access-message-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .venues-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .container { padding: 0 1.25rem; }
    
    .hero-content {
        padding: 0 1.25rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .venues-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .venue-card {
        min-height: 260px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .about-visual {
        grid-template-columns: 1fr 1fr;
    }
    
    .notification {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .enter-btn span { display: none; }
    .hero-content { margin-top: -10vh; }
    .title-main { font-size: 2.8rem; }
    
    .venues-section,
    .features-section,
    .about-section {
        padding: 4rem 0;
    }
    
    .about-visual {
        grid-template-columns: 1fr;
    }
}

/* === Animation helpers (for GSAP) === */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-fade {
    opacity: 0;
}

/* === Pulse animation for Enter button === */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 197, 66, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(244, 197, 66, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 197, 66, 0); }
}

/* For the room-card compatibility (used by main-home.js) */
.room-card {
    cursor: pointer;
}

/* Venue card background images */
.venue-card.tavern .venue-bg {
    background-image: url('images/venue-bar.png');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}
.venue-card.nightclub .venue-bg {
    background-image: url('images/venue-nightclub.png');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}
.venue-card.cinema .venue-bg {
    background-image: url('images/venue-cinema.png');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}
.venue-card.games .venue-bg {
    background-image: url('images/venue-arcade.png');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}
.venue-card.lounge .venue-bg {
    background-image: url('images/venue-lounge.png');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}
.venue-card.adventure .venue-bg {
    background-image: url('images/venue-adventure.png');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}
.venue-card:hover .venue-bg {
    opacity: 0.55;
    transition: opacity 0.4s ease;
}

/* Map Controls */
.map-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.fullscreen-btn {
    background: linear-gradient(135deg, var(--accent-gold, #f4c542), #b45309);
    color: #0a0a1a;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fullscreen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 197, 66, 0.3);
}

/* Fullscreen map mode */
.interactive-map-container.fullscreen-map {
    position: fixed;
    inset: 0;
    z-index: 9999;
    border-radius: 0;
    max-width: 100vw;
    width: 100vw;
    height: 100vh;
    background: #0a0a1a url('/images/chifftown-map-wide.webp') center center / contain no-repeat;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* Real browser fullscreen */
.interactive-map-container:fullscreen,
.interactive-map-container:-webkit-full-screen {
    background: #0a0a1a;
    width: 100%;
    height: 100%;
}

.interactive-map-container:fullscreen .city-map-image,
.interactive-map-container:-webkit-full-screen .city-map-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.interactive-map-container.fullscreen-map .city-map-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* === Hero Inline Stats === */
.hero-inline-stats {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: 'Inter', sans-serif;
}

.inline-stat {
    font-size: 0.8rem;
    color: rgba(240, 234, 214, 0.4);
    letter-spacing: 0.3px;
}

.inline-num {
    color: rgba(233, 196, 106, 0.7);
    font-weight: 600;
}

.inline-dot {
    color: rgba(240, 234, 214, 0.2);
    font-size: 0.8rem;
}

/* === Fullscreen HUD === */
.fs-hud {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    padding: 0.6rem 1rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
    align-items: center;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    pointer-events: auto;
}

.interactive-map-container.fullscreen-map .fs-hud,
.interactive-map-container:fullscreen .fs-hud,
.interactive-map-container:-webkit-full-screen .fs-hud {
    display: flex;
}

.hud-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hud-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(233, 196, 106, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(233, 196, 106, 0.8);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.hud-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hud-username {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f0ead6;
    letter-spacing: 0.3px;
}

.hud-xp-bar {
    width: 120px;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.hud-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #2a9d8f, #e9c46a);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 6px rgba(42, 157, 143, 0.5);
}

.hud-xp-text {
    font-size: 0.6rem;
    color: rgba(240, 234, 214, 0.5);
}

.hud-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hud-currency {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 0.3rem 0.7rem;
}

.hud-coin, .hud-gem {
    font-size: 0.9rem;
}

.hud-coin-amount, .hud-gem-amount {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e9c46a;
}

.hud-gems .hud-gem-amount {
    color: #7dd3fc;
}

.fs-exit-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(240, 234, 214, 0.7);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.fs-exit-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Mobile HUD adjustments */
@media (max-width: 600px) {
    .fs-hud {
        padding: 0.4rem 0.6rem;
    }
    .hud-xp-bar { width: 80px; }
    .hud-avatar { width: 28px; height: 28px; font-size: 0.7rem; }
    .hud-username { font-size: 0.7rem; }
    .hud-currency { padding: 0.2rem 0.5rem; }
    .hud-coin-amount, .hud-gem-amount { font-size: 0.7rem; }
}

.fullscreen-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    background: rgba(10, 10, 26, 0.8);
    color: #f4c542;
    border: 1px solid rgba(244, 197, 66, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: none;
}

.interactive-map-container.fullscreen-map ~ .fullscreen-close {
    display: block;
}

/* Venue Quick List */
.venue-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
}

.venue-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.venue-item:hover {
    background: rgba(244, 197, 66, 0.08);
    border-color: rgba(244, 197, 66, 0.2);
    transform: translateY(-3px);
}

.venue-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.venue-name {
    color: #ededed;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.venue-desc {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

/* === Events Banner === */
.events-banner {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(135deg, rgba(244, 197, 66, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    border-bottom: 1px solid rgba(244, 197, 66, 0.3);
    backdrop-filter: blur(10px);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.events-ticker {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-gold);
}

.events-ticker i {
    font-size: 1.1rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.events-ticker span {
    flex: 1;
}

/* ============================================
   AMBIENT ANIMATIONS — Clouds, Birds, Smoke
   ============================================ */

/* Floating Clouds */
.ambient-cloud {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    opacity: 0.12;
    filter: blur(1px);
}

.ambient-cloud svg {
    fill: rgba(200, 210, 230, 0.6);
    width: 100%;
    height: 100%;
}

.cloud-1 { top: 8%; width: 120px; height: 50px; animation: cloudDrift 45s linear infinite; }
.cloud-2 { top: 15%; width: 90px; height: 38px; animation: cloudDrift 60s linear infinite; animation-delay: -20s; opacity: 0.08; }
.cloud-3 { top: 5%; width: 150px; height: 55px; animation: cloudDrift 70s linear infinite; animation-delay: -35s; opacity: 0.06; }

@keyframes cloudDrift {
    0% { transform: translateX(-200px); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

/* Flying Birds */
.ambient-bird {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    width: 20px;
    height: 8px;
}

.bird-wing {
    position: absolute;
    width: 10px;
    height: 2px;
    background: rgba(180, 190, 210, 0.5);
    border-radius: 50%;
    top: 3px;
}

.bird-wing-left {
    left: 0;
    transform-origin: right center;
    animation: wingFlap 0.6s ease-in-out infinite alternate;
}

.bird-wing-right {
    right: 0;
    transform-origin: left center;
    animation: wingFlap 0.6s ease-in-out infinite alternate-reverse;
}

@keyframes wingFlap {
    0% { transform: rotate(-25deg); }
    100% { transform: rotate(25deg); }
}

.bird-1 { top: 12%; animation: birdFly 25s linear infinite; }
.bird-2 { top: 8%; animation: birdFly 30s linear infinite; animation-delay: -10s; }
.bird-3 { top: 18%; animation: birdFly 35s linear infinite; animation-delay: -18s; }

@keyframes birdFly {
    0% { transform: translateX(-40px) translateY(0); }
    25% { transform: translateX(25vw) translateY(-8px); }
    50% { transform: translateX(50vw) translateY(4px); }
    75% { transform: translateX(75vw) translateY(-6px); }
    100% { transform: translateX(calc(100vw + 40px)) translateY(0); }
}

/* Chimney Smoke */
.chimney-smoke {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.smoke-puff {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(180, 190, 210, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: smokeRise 4s ease-out infinite;
}

.smoke-puff:nth-child(2) { animation-delay: -1.3s; left: 4px; }
.smoke-puff:nth-child(3) { animation-delay: -2.6s; left: -3px; }

@keyframes smokeRise {
    0% { transform: translateY(0) scale(0.5); opacity: 0.4; }
    50% { transform: translateY(-25px) translateX(8px) scale(1.2); opacity: 0.2; }
    100% { transform: translateY(-50px) translateX(15px) scale(1.8); opacity: 0; }
}

/* ============================================
   ENHANCED TOOLTIPS
   ============================================ */

.venue-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(10, 10, 30, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    min-width: 180px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(201, 168, 76, 0.1);
}

.venue-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(201, 168, 76, 0.3);
}

.map-hotspot:hover .venue-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.tooltip-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.3rem;
}

.tooltip-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.tooltip-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.45rem;
}

.tooltip-visitors {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #4ade80;
    font-weight: 600;
}

.tooltip-visitors i {
    font-size: 0.65rem;
}

.tooltip-status {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.tooltip-status .status-dot {
    width: 5px;
    height: 5px;
}

/* ============================================
   BUILDING LOCK INDICATORS
   ============================================ */

.map-hotspot.locked-building {
    opacity: 0.45;
    filter: grayscale(0.5) brightness(0.7);
    cursor: not-allowed;
}

.map-hotspot.locked-building:hover {
    transform: scale(1.02);
    filter: grayscale(0.4) brightness(0.75);
}

.lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.lock-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}

.lock-level {
    position: absolute;
    bottom: -18px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ============================================
   VISITOR COUNTER BADGES
   ============================================ */

.visitor-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(10, 10, 30, 0.85);
    border: 1px solid rgba(74, 222, 128, 0.4);
    backdrop-filter: blur(8px);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #4ade80;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.visitor-badge.has-visitors {
    opacity: 1;
    transform: scale(1);
}

.visitor-badge i {
    font-size: 0.55rem;
}

/* ============================================
   PARALLAX LAYERS
   ============================================ */

.parallax-layer {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ============================================
   MAP AMBIENT CONTAINER
   ============================================ */

.map-ambient-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* ============================================
   TOWN CLOCK — Navbar Time Widget
   ============================================ */
.town-clock {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    cursor: default;
    user-select: none;
}
.town-clock:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(201, 168, 76, 0.2);
}
.clock-icon {
    font-size: 0.9rem;
    line-height: 1;
}
.clock-time {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}
.clock-phase {
    color: rgba(201, 168, 76, 0.7);
    font-weight: 500;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Day/Night body tint */
body.time-dawn { --sky-tint: rgba(42, 100, 120, 0.08); }
body.time-day { --sky-tint: rgba(30, 80, 120, 0.05); }
body.time-dusk { --sky-tint: rgba(120, 60, 20, 0.08); }
body.time-night { --sky-tint: rgba(5, 5, 30, 0.1); }

body.time-dawn .hero-map-bg,
body.time-day .hero-map-bg,
body.time-dusk .hero-map-bg,
body.time-night .hero-map-bg {
    filter: brightness(var(--map-brightness, 1));
}

/* ============================================
   TOWN PULSE — Live Events Ticker
   ============================================ */
.town-pulse {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    padding: 8px 0;
    overflow: hidden;
}
.town-pulse-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
    padding: 0 2rem;
}
.pulse-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}
.pulse-item .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2dd4bf;
    animation: pulse-glow 2s ease-in-out infinite;
}
.pulse-item .pulse-dot.gold { background: #c9a84c; }
.pulse-item strong { color: rgba(255, 255, 255, 0.85); font-weight: 600; }

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Venue card glow on hover — enhanced */
.venue-item::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(45, 212, 191, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}
.venue-item {
    position: relative;
    overflow: visible;
}
.venue-item:hover::before {
    opacity: 1;
}

/* Venue occupancy indicator */
.venue-occupancy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: rgba(45, 212, 191, 0.8);
    font-weight: 600;
    margin-top: 4px;
}
.venue-occupancy .occ-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2dd4bf;
    animation: pulse-glow 2s ease-in-out infinite;
}
.venue-occupancy.empty { color: rgba(255,255,255,0.25); }
.venue-occupancy.empty .occ-dot { background: rgba(255,255,255,0.2); animation: none; }

@media (max-width: 768px) {
    .town-clock { display: none; }
    .town-pulse { font-size: 0.72rem; }
}

/* === How It Works Section === */
.how-it-works-section {
    padding: 6rem 0;
    background: var(--bg-mid);
    position: relative;
    z-index: 1;
}
.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}
.hiw-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.hiw-step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}
.hiw-step:hover {
    background: var(--glass-hover);
    transform: translateY(-4px);
    border-color: rgba(244, 197, 66, 0.2);
}
.hiw-num {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(244, 197, 66, 0.3);
}
.hiw-icon {
    width: 60px;
    height: 60px;
    margin: 0.75rem auto 1.25rem;
    border-radius: 16px;
    background: rgba(244, 197, 66, 0.08);
    border: 1px solid rgba(244, 197, 66, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-gold);
    transition: all var(--transition);
}
.hiw-step:hover .hiw-icon {
    background: rgba(244, 197, 66, 0.15);
    transform: scale(1.07);
}
.hiw-step h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}
.hiw-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.hiw-arrow {
    display: flex;
    align-items: center;
    color: rgba(244, 197, 66, 0.35);
    font-size: 1.25rem;
    padding-top: 3.5rem;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .hiw-steps { flex-direction: column; align-items: center; gap: 2rem; }
    .hiw-arrow { display: none; }
    .hiw-step { max-width: 100%; width: 100%; }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 80px 0;
    background: rgba(201, 168, 76, 0.03);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.testimonial-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 16px;
    padding: 32px 28px;
    margin: 0;
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.testimonial-card:hover {
    border-color: rgba(201,168,76,0.4);
    transform: translateY(-4px);
}
.testimonial-card::before {
    content: '\201C';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: rgba(201,168,76,0.25);
    position: absolute;
    top: 12px;
    left: 20px;
    line-height: 1;
}
.testimonial-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 20px;
    padding-top: 16px;
}
.testimonial-footer {
    font-size: 0.82rem;
    color: rgba(201,168,76,0.7);
    font-style: normal;
}
.testimonial-footer cite {
    font-style: normal;
}
@media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ===================================
   COMPARISON SECTION
   =================================== */
.comparison-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(10,10,26,0) 0%, rgba(15,10,35,0.6) 50%, rgba(10,10,26,0) 100%);
}
.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.2);
    background: rgba(255,255,255,0.03);
}
.comparison-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1.5fr;
    background: rgba(201,168,76,0.08);
    border-bottom: 1px solid rgba(201,168,76,0.2);
}
.comparison-header > div {
    padding: 14px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.comparison-header .comp-winner {
    color: #c9a84c;
    background: rgba(201,168,76,0.06);
}
.comparison-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1.5fr;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}
.comparison-row:hover {
    background: rgba(255,255,255,0.03);
}
.comparison-row.comp-last {
    border-bottom: none;
}
.comparison-row > div {
    padding: 16px 18px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.comp-feature {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}
.comp-ct {
    background: rgba(201,168,76,0.04);
    font-weight: 600;
}
.comp-yes { color: #6ee7b7; }
.comp-no { color: rgba(255,100,100,0.7); }
.comp-partial { color: rgba(255,200,80,0.8); }
.comp-other { color: rgba(255,255,255,0.5); }
@media (max-width: 700px) {
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1.5fr 1.5fr 0 0;
    }
    .comp-other-col:last-child,
    .comp-other:last-child { display: none; }
    .comparison-header .comp-other-col:nth-child(3),
    .comparison-row .comp-other:nth-child(3) { display: none; }
}
