/* --- BBC RAGNAWORLD HEADER REDESIGN --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap');

/* --- BBC RAGNAWORLD FONT IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Montserrat:wght@400;500;600;700&display=swap');


/* --- THE PRONTERA PAVEMENT --- */
html::after {
    background-image: url('../img/bg.jpeg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    /* opacity: 0.1; */
}

body {
    background: transparent !important;
    min-height: 100vh;
}

/* --- THE VISIBILITY FIX --- */
/* This forces all main sections to be transparent so the pavement shows */
main, 
.main-content, 
.features-section, 
.community-section,
#wrapper {
    background: transparent !important;
    border: none !important;
}

html::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
    /* This creates a very fine marble/stone grain */
    opacity: 0.1;
     background-image: url('../img/bg.jpeg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    /* background-image: url('../img/bg.jpeg'); */
    /* background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); */
}

/* Apply Montserrat as the global default */
body {
    font-family: 'Montserrat', sans-serif !important;
}

/* Apply Cinzel specifically to your majestic headers */
h1, h2, h3, .majestic-title {
    font-family: 'Cinzel', serif !important;
}

:root {
    --bbc-blue-dark: #1a3a5a;   /* Trustworthy Deep Blue */
    --bbc-gold: #d4af37;        /* Warm Gold */
    --bbc-sky: #e3f2fd;         /* Soft Sky Blue */
    --bbc-text: #2c3e50;        /* Charcoal Text */
    --bbc-white: #ffffff;
    --bbc-font-nav: 'Montserrat', sans-serif;
}

/* 1. The Header Container */
header.sticky-top {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--bbc-sky) !important; /* Soft sky blue border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 1rem 0 !important;
}

/* 2. Navigation Links */
.nav-link {
    font-family: var(--bbc-font-nav) !important;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--bbc-text) !important;
    text-transform: none; /* Friendly, not shouting */
    transition: all 0.3s ease;
    margin: 0 5px;
}

.nav-link:hover {
    color: var(--bbc-gold) !important;
    transform: translateY(-1px);
}

header, .navbar {
    /* Change from fixed or sticky to absolute */
    /* position: sticky !important;  */
    top: 0;
    left: 0;
    width: 100%;
    
    /* Ensure it sits on top of the hero background image */
    z-index: 1050; 
    
    /* Keep your existing styling */
    background-color: #ffffff !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
/* 3. Buttons Redo (Replacing Cyber/Outline-Light) */

/* --- BBC RAGNAWORLD PHYSICAL BUTTONS --- */

/* 1. Base Physical Properties for both buttons */
.btn-outline-light, .btn-cyber {
    font-family: var(--bbc-font-nav) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px !important; /* Slightly squarer for a 'block' feel */
    border: none !important;
    position: relative;
    overflow: hidden;
    transition: all 0.1s ease; /* Faster transition for tactile feel */
    
    /* The Emboss Effect (Depth) */
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3), /* Top highlight */
        0 4px 0 rgba(0, 0, 0, 0.15),           /* Bottom shadow (depth) */
        0 8px 15px rgba(0, 0, 0, 0.1);         /* Soft drop shadow */
}

/* 2. Login / Account Button (The Light Gray/Stone Button) */
.btn-outline-light {
    background: #f0f0f0 !important;
    color: var(--bbc-blue-dark) !important;
    border: 1px solid #d1d1d1 !important;
}

/* 3. Register / Logout Button (The Primary Action Button) */
.btn-cyber {
    background: var(--bbc-blue-dark) !important;
    color: #ffffff !important;
}

/* 4. The Shine Effect (Minimal Hover) */
.btn-outline-light::after, .btn-cyber::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%
    );
    transform: rotate(30deg);
}

.btn-outline-light:hover::after, .btn-cyber:hover::after {
    left: 150%;
    transition: left 0.6s ease;
}

/* 5. THE "PHYSICAL PRESS" ANIMATION */
.btn-outline-light:active, .btn-cyber:active {
    transform: translateY(3px) !important; /* Moves down */
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2), /* Internal shadow like it's pushed in */
        0 1px 0 rgba(0, 0, 0, 0.1) !important; /* Bottom depth shrinks */
}

/* 6. Specific Hover Color Shifts (Subtle) */
.btn-outline-light:hover { background: #e8e8e8 !important; }
.btn-cyber:hover { background: #1e466d !important; }


/* --- BBC RAGNAWORLD STATUS BAR --- */

.dev-alert-bar {
    background-color: #fff9db !important; /* Soft sunbeam yellow */
    border-bottom: 1px solid rgba(212, 175, 55, 0.3) !important; /* Subtle gold border */
    color: #856404 !important; /* Muted brown-gold for readability */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 10px 0 !important;
}

/* Redoing the Pulse to be a "Soft Sun" effect */
.pulse-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--bbc-gold);
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    animation: soft-pulse 2s infinite;
}

@keyframes soft-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Customizing the Close Button for White Theme */
.dev-alert-bar .btn-close {
    filter: none !important; /* Remove the white-invert filter */
    opacity: 0.5;
    transition: opacity 0.3s;
}

.dev-alert-bar .btn-close:hover {
    opacity: 1;
}

/* Bold text color alignment */
.dev-alert-bar strong {
    color: var(--bbc-blue-dark); /* Navy blue for the label to show confidence */
    font-weight: 700;
}

/* --- BBC RAGNAWORLD TICKER BAR (STATIC DESKTOP) --- */

/* --- BBC RAGNAWORLD TICKER BAR --- */

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8) !important; /* Frosted glass white */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2); /* Subtle gold line */
    padding: 12px 0;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.ticker-item {
    display: flex;
    align-items: center;
    padding: 0 40px; /* Spaced out for a calm feel */
    position: relative;
    white-space: nowrap;
}

/* Elegant Dividers between stats */
.ticker-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    height: 15px;
    width: 1px;
    background-color: rgba(26, 58, 90, 0.15); /* Soft Blue divider */
}

.ticker-label {
    color: var(--bbc-blue-dark); /* Confident Navy */
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-right: 10px;
    text-transform: uppercase;
}

.ticker-value {
    color: var(--bbc-gold); /* Warm Gold */
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Specific Override for Server Status color if it's set in inline style */
.ticker-value[style*="color:#2ea043"] {
    color: #2a7a39 !important; /* A slightly more natural, deep forest green */
    text-shadow: 0 0 10px rgba(46, 160, 67, 0.1);
}

/* --- THE MOVEMENT ANIMATION --- */
.ticker-move {
    display: flex;
    width: fit-content;
    animation: ticker-slide 30s linear infinite; /* Slow and calm movement */
}

@keyframes ticker-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-move:hover {
    animation-play-state: paused; /* Allows users to read at their own pace */
}

.ticker-wrap {
    width: 100%;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 15px 0;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center; /* Centers the stats on desktop */
}

/* 1. Desktop Layout: No Animation */
@media (min-width: 992px) {
    .ticker-move {
        animation: none !important; /* Stops the movement */
        display: flex;
        justify-content: center;
        width: 100%;
        gap: 0; /* Gap is handled by ticker-item padding */
    }

    /* Hide the duplicate set used for looping on desktop */
    .ticker-set {
        display: none !important;
    }
}

/* 2. Mobile Layout: Keep the Scroll */
@media (max-width: 991px) {
    .ticker-move {
        display: flex;
        width: fit-content;
        animation: ticker-slide 20s linear infinite;
    }
    
    .ticker-item {
        padding: 0 25px;
    }
}

/* 3. Item Styling */
.ticker-item {
    display: flex;
    align-items: center;
    padding: 0 40px;
    position: relative;
}

/* Divider lines for desktop clarity */
@media (min-width: 992px) {
    .ticker-item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        height: 18px;
        width: 1px;
        background-color: rgba(26, 58, 90, 0.15);
    }
}

.ticker-label {
    color: var(--bbc-blue-dark);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1.2px;
    margin-right: 8px;
}

.ticker-value {
    color: var(--bbc-gold);
    font-weight: 800;
    font-size: 1.05rem;
}

/* --- THE MOVEMENT KEYFRAMES (Mobile Only) --- */
@keyframes ticker-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- BBC RAGNAWORLD FEATURES SECTION --- */

.features-section {
    /* padding: 60px 0; */
    background: transparent; /* Let the pavement show through */
}

.feature-box {
    position: relative;
    height: 100%;
    min-height: 380px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    
    /* Physical 'Stone Tablet' lift */
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* .feature-box:hover {
    transform: translateY(-8px);
    border-color: var(--bbc-gold) !important;
    box-shadow: 0 20px 40px rgba(26, 58, 90, 0.1);
} */

/* Titles: Majestic & Trustworthy */
.feature-content h3 {
    font-family: 'Cinzel', serif !important;
    font-weight: 700;
    color: var(--bbc-blue-dark);
    font-size: 1.8rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

/* Lists: Clean & Natural */
.feature-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.feature-content li {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--bbc-text);
    padding: 8px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* Custom Gold Diamond Bullets */
.feature-content li::before {
    content: "◆";
    color: var(--bbc-gold);
    font-size: 0.8rem;
    margin-right: 12px;
    opacity: 0.8;
}

/* Character Art Positioning */
.feature-image {
    position: absolute;
    bottom: -10px;
    right: -20px;
    height: 50%;
    width: auto;
    object-fit: contain;
    opacity: 0.4;
    z-index: 1;
    filter: drop-shadow(-10px 10px 20px rgba(0,0,0,0.1));
    transition: transform 0.4s ease;
}

/* .feature-box:hover .feature-image {
    transform: scale(1.05) translateX(-5px);
} */

/* Mobile Adjustments */
@media (max-width: 768px) {
    .feature-box {
        padding: 30px;
        min-height: auto;
    }
    .feature-image {
        opacity: 0.2; /* Fade art more on mobile so text remains clear */
        right: -40px;
    }
}

/* --- FIXED HEIGHT FEATURE BOXES --- */

.feature-box {
    position: relative;
    height: 450px !important; /* Strictly controlled height */
    width: 100%;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    
    /* Physical Emboss Effect */
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    
    overflow: hidden; /* Keeps character art from spilling out */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Ensure the text container doesn't get buried by the image */
.feature-content {
    /* max-width: 65%;  */
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

/* Scrollable list if content exceeds 350px */
.feature-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto; /* Safety for long lists */
    scrollbar-width: none; /* Hides scrollbar for Firefox */
}

.feature-content ul::-webkit-scrollbar {
    display: none; /* Hides scrollbar for Chrome/Safari */
}

/* Title Styling */
.feature-content h3 {
    font-family: 'Cinzel', serif !important;
    font-weight: 700;
    color: var(--bbc-blue-dark);
    font-size: 1.6rem;
    margin-bottom: 15px;
    flex-shrink: 0; /* Prevents title from squishing */
}

/* Image Scaling for Fixed Height */
.feature-image {
    position: absolute;
    bottom: -5px;
    right: -15px;
    height: 70%; /* Makes character slightly larger than the box for depth */
    width: auto;
    object-fit: contain;
    pointer-events: none; /* Allows clicks to pass through to the box */
    z-index: 1;
    filter: drop-shadow(-10px 10px 20px rgba(0,0,0,0.1));
    transition: transform 0.5s ease;
}

/* Interactive Lift */
/* .feature-box:hover {
    transform: translateY(-8px);
    border-color: var(--bbc-gold) !important;
} */

/* .feature-box:hover .feature-image {
    transform: scale(1.03) translateX(-5px);
} */

/* --- BBC RAGNAWORLD MAJESTIC FOOTER --- */

footer.container {
    padding: 60px 0 !important;
    margin-top: 80px !important;
    border-top: 1px solid rgba(212, 175, 55, 0.3) !important; /* Gold divider */
    color: var(--bbc-text) !important;
    background: transparent !important;
}

/* Brand Name */
footer p {
    font-family: 'Cinzel', serif !important;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--bbc-blue-dark) !important;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* Legal Text */
footer small {
    display: block;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500;
    font-size: 0.8rem;
    color: rgba(44, 62, 80, 0.6) !important; /* Muted Charcoal */
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* --- MASSIVE HERO CONFIG --- */
.massive-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* --- 1. THE HERO ADJUSTMENT --- */
.massive-hero {
    min-height: 100vh;
    /* Ensure the hero doesn't cut off content */
    margin-bottom: -150px; 
}

/* --- 2. THE DEEP OVERLAP CONTAINERS --- */
.main-content-wrapper {
    position: relative;
    z-index: 50;
    /* Pulling the entire body content up significantly */
    margin-top: -300px; 
    padding-bottom: 100px;
}

/* The Ticker/Stats Card - The first layer of overlap */
.stats-overlap-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px); /* Heavy blur for high-end glass feel */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 2px solid var(--bbc-gold);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    margin-bottom: 40px;
}

/* The Feature Boxes - The second layer of overlap */
.feature-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 15px;
    transform: translateY(50px); /* Staggers the boxes for more depth */
    transition: transform 0.5s ease;
}

/* .feature-box:hover {
    transform: translateY(30px) scale(1.02);
} */

/* --- THE DEEP OVERLAP --- */
.stats-overlap-card {
    position: relative;
    /* This pulls the card UP by 350px. Adjust this number to go even higher */
    margin-top: -350px !important; 
    z-index: 999; /* Ensures it sits ABOVE the hero image */
    
    /* Center the card and set a specific width */
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    
    /* Glassmorphism Styling (to look good against the Hero) */
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Ensure the Section AFTER the Hero doesn't have a background covering this */
.main-content-wrapper, .features-section {
    background: transparent !important;
    position: relative;
    z-index: 1000;
}

/* Ensure the Hero image can be seen behind the card */
.massive-hero {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Gradient Overlay to make text pop while keeping the "Light" feel */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0) 50%, 
        rgba(255,255,255,0.9) 100%); /* Fades to white for the overlap */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--bbc-blue-dark);
    transform: translateY(-50px); /* Lift text slightly above center */
}

/* --- THE OVERLAP LOGIC --- */
.overlap-container {
    position: relative;
    z-index: 100;
    margin: -80px auto 0; /* THE MAGIC: Negative margin pulls this UP */
    padding: 0 20px;
}

.stats-overlap-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* --- TYPOGRAPHY --- */
.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 0;
    letter-spacing: -2px;
}

.btn-hero {
    font-family: 'Montserrat', sans-serif;
    padding: 15px 40px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    background: var(--bbc-blue-dark);
    color: white;
    transition: 0.3s;
    display: inline-flex;       /* Use flex for internal alignment */
    align-items: center;        /* Vertically centers text */
}

.btn-hero:hover {
    background: var(--bbc-gold);
    transform: scale(1.05);
}

/* --- HERO LAYOUT --- */
.hero-section {
    position: relative;
    text-align: center;
    background: transparent;
    padding-bottom: 100px; /* Space for the overlap to sit in */
}

.hero-image-container {
    width: 100%;
    /* max-width: 1200px; */
    margin: 0 auto;
    /* padding-top: 40px; */
}

.hero-center-img {
    width: 100%;
    height: auto;
    /* border-radius: 20px; */
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    /* Subtle bottom fade to blend with buttons */
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* --- BUTTONS --- */
.hero-action-area {
    /* margin-top: -60px; Pulls buttons slightly onto the image bottom */
    position: relative;
    z-index: 10;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-hero {
    min-width: 220px; /* Ensures matched size */
    padding: 18px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: inline-flex;       /* Use flex for internal alignment */
    align-items: center;        /* Vertically centers text */
}

.btn-primary-bbc {
    background: #1a3a5a; /* Deep Blue */
    color: white;
    border: 2px solid #1a3a5a;
}

.btn-secondary-bbc {
    background: #d4af37; /* Warm Gold */
    color: white;
    border: 2px solid #d4af37;
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    filter: brightness(1.1);
}

.btn-hero {
    /* 1. Resetting base properties */
    display: inline-flex;       /* Use flex for internal alignment */
    align-items: center;        /* Vertically centers text */
    justify-content: center;    /* Horizontally centers text */
    text-align: center;
    
    /* 2. Sizing */
    min-width: 220px;           /* Keeps both buttons identical size */
    height: 60px;               /* Fixed height ensures vertical centering is easy to see */
    padding: 0 30px;            /* Padding only on sides since height is fixed */
    
    /* 3. Typography Fixes */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;             /* Prevents line-height from pushing text down */
    
    /* 4. Visuals */
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Specific button colors to ensure they remain opaque */
.btn-primary-bbc {
    background: #1a3a5a !important;
    color: #ffffff !important;
    border: 2px solid #1a3a5a;
}

.btn-secondary-bbc {
    background: #d4af37 !important;
    color: #ffffff !important;
    border: 2px solid #d4af37;
}

/* --- THE OVERLAPPING STATS BAR --- */

.stats-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 100px; /* Pill shape for "Inviting" feel */
    padding: 25px 40px;
    display: flex;
    flex-wrap: wrap; /* Allows many stats to wrap on mobile */
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.stat-block {
    display: flex;
    flex-direction: column;
    padding: 0 15px;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
}

.stat-value {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a3a5a;
}

/* --- 1. THE MASSIVE BACKGROUND --- */
.adventure-hero-bg {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Very tall */
    /* background-image: url('YOUR_LANDSCAPE_BACKGROUND_URL'); */
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed; /* Parallax Effect */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding-top: 100px; */
}

/* Add a light overlay so the background doesn't overwhelm the center art */
.adventure-hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(255,255,255,0.8));
    z-index: 1;
}

/* --- 2. THE CENTER ART --- */
.hero-foreground-container {
    position: relative;
    z-index: 10; /* Above the background overlay */
    text-align: center;
}

.hero-center-piece img {
    max-width: 600px; /* Adjust based on your character art size */
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.2));
    animation: float 4s ease-in-out infinite; /* Adds that "Adventure" life */
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- 3. THE BUTTONS --- */
.hero-action-area {
    margin-top: 0px;
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 100; /* Highest layer */
}

/* --- 4. THE OVERLAPPING STATS --- */
.stats-overlap-wrapper {
    width: 100%;
    /* This pulls the bar up onto the background image area */
    /* margin: - auto 0;  */
    position: relative;
    z-index: 50; /* Above background, but below buttons */
    margin-top: 40px;
}

.stats-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    padding: 25px 40px;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* The Master Container */
.hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 85vh;
    overflow: visible; /* Important: let the stats overlap the bottom */
}

/* THE BACKGROUND ONLY - This is what fades */
.hero-background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    
    /* background-image: url('YOUR_LANDSCAPE_URL'); */
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;

    /* Only the image will fade to transparent here */
    -webkit-mask-image: linear-gradient(to bottom, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 70%, 
        rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 70%, 
        rgba(0,0,0,0) 100%);
}

/* THE CONTENT - This stays 100% solid */
.hero-foreground {
    position: relative;
    z-index: 10; /* Higher than the background layer */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
}

.hero-main-art {
    max-width: 450px;
    height: auto;
    /* Optional shadow to help it sit 'on' the background */
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.3));
}

.hero-btns {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    z-index: 20;
}

@media (max-width: 768px) {
    /* 1. Fix Header Overlap: 
          Push the foreground down so it starts below the absolute header */
    .hero-foreground {
        padding-top: 160px !important; /* Increase this if your header is taller */
        display: flex;
        flex-direction: column;
        align-items: center; /* Ensures everything is mathematically centered */
        text-align: center;
        width: 100%;
    }

    /* 2. Center the Art Box */
    .center-art-box {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .hero-main-art {
        max-width: 80% !important; /* Scaled for mobile width */
        height: auto;
        display: block;
        margin: 0 auto; /* Horizontal centering */
    }

    /* 3. Single Column Buttons */
    .hero-btns {
        display: flex;
        flex-direction: column !important; /* FORCES SINGLE COLUMN */
        align-items: center;
        width: 100%;
        padding: 0 20px;
        gap: 15px; /* Space between the stacked buttons */
        margin-top: 10px;
    }

    .btn-hero {
        width: 100%; /* Buttons take full available width */
        max-width: 280px; /* But don't let them get TOO wide on tablets */
        min-width: unset !important; /* Reset the desktop min-width */
        height: 55px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 4. Center the Stats Overlap */
    .stats-overlap {
        margin: 30px auto 0 !important;
        width: 90%;
        display: flex;
        justify-content: center;
    }

    .stats-bar-inner {
        flex-direction: column;
        width: 100%;
        border-radius: 20px;
        padding: 20px;
        align-items: center;
    }
}

/* Overlapping Stats */
.stats-overlap {
    margin-top: 40px; /* Adjust this to control how much it sits on the image */
    width: 90%;
}

.stats-bar-inner {
    background: white;
    border-radius: 50px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
}

@media (max-width: 768px) {
    /* 1. Reset the background zoom issue */
    .hero-background-layer {
        background-attachment: scroll !important; /* Disables the mobile zoom bug */
        background-position: center top !important; /* Focuses on the sky/high noon area */
        background-size: cover; /* Ensures it fills the screen without stretching */
        
        /* Adjust the fade for mobile so it doesn't cut off too high */
        -webkit-mask-image: linear-gradient(to bottom, 
            rgba(0,0,0,1) 0%, 
            rgba(0,0,0,1) 85%, 
            rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to bottom, 
            rgba(0,0,0,1) 0%, 
            rgba(0,0,0,1) 85%, 
            rgba(0,0,0,0) 100%);
    }

    /* 2. Ensure the wrapper doesn't crop the height weirdly */
    .hero-wrapper {
        min-height: 100vh; /* Ensures the background covers the full mobile view */
        display: flex;
        flex-direction: column;
    }

    /* 3. Center Art Scaling Fix */
    .hero-main-art {
        max-width: 70% !important; /* Slightly smaller to prevent crowding */
        margin-top: 10px;
    }
}


/* --- DESKTOP STYLES (Keep existing horizontal look) --- */
@media (min-width: 992px) {
    .nav-sidebar {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }
    .nav-links {
        display: flex;
        list-style: none;
        margin: 0 0 0 30px;
        padding: 0;
    }
    .mobile-nav-toggle { display: none; }
    .sidebar-auth { display: flex; gap: 10px; }
}

/* --- MOBILE SIDEBAR STYLES --- */
@media (max-width: 991px) {
    .nav-sidebar {
        position: fixed;
        top: 0;
        right: -300px; /* Hidden by default */
        width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        z-index: 2000;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        display: flex;
        flex-direction: column;
        padding: 100px 30px 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .nav-sidebar.active { right: 0; }

    .nav-links {
        flex-direction: column;
        list-style: none;
        padding: 0;
        gap: 20px;
    }

    .nav-link {
        font-size: 1.2rem;
        color: #1a3a5a !important;
        font-weight: 700;
    }

    .sidebar-auth {
        margin-top: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* HAMBURGER BUTTON */
    .mobile-nav-toggle {
        background: none;
        border: none;
        cursor: pointer;
        z-index: 2100;
        width: 30px;
        height: 24px;
        position: relative;
    }

    .mobile-nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: #1a3a5a;
        margin-bottom: 5px;
        transition: 0.3s;
    }

    /* Overlay effect */
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        display: none;
        z-index: 1999;
    }
    .sidebar-overlay.active { display: block; }
}

@media (max-width: 991px) {
    /* --- Hamburger to X Animation --- */
    .mobile-nav-toggle span {
        transition: all 0.3s ease-in-out;
        transform-origin: left;
    }

    .mobile-nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg);
        background: #d4af37; /* Changes to Gold when open */
    }

    .mobile-nav-toggle.open span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .mobile-nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg);
        background: #d4af37;
    }

    /* --- The Dimming Overlay --- */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7); /* Deep dimming */
        backdrop-filter: blur(4px);    /* Soft blur for the background */
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease;
        z-index: 1999;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* --- THE 3D PILL BASE --- */
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Typography Alignment */
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    
    /* Shape & Size */
    min-width: 240px;
    height: 64px;
    padding: 0 35px;
    border-radius: 50px; /* Forces the Pill Shape */
    border: none;
    position: relative;
    cursor: pointer;
    color: #ffffff !important;
    
    /* Snappy transition for 3D feel */
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- PRIMARY (BLUE) 3D PILL --- */
.btn-primary-bbc {
    background-color: #1a3a5a;
    /* Bottom layer is a darker blue for depth */
    box-shadow: 0 6px 0px 0px #0a1829, 0 10px 20px rgba(0,0,0,0.3);
}

.btn-primary-bbc:hover {
    background-color: #234c75;
    transform: translateY(-2px);
    box-shadow: 0 8px 0px 0px #0a1829, 0 12px 25px rgba(0,0,0,0.4);
}

/* Disabled state for the 3D BBC Button */
.btn-primary-bbc:disabled,
.btn-primary-bbc.disabled {
    background: #cccccc !important; /* Flat gray */
    /* border-bottom: 6px solid #999999 !important; Shorter, flatter shadow */
    color: #666666 !important;
    cursor: not-allowed !important; /* Shows the 'circle-slash' icon */
    transform: none !important; /* Prevent any movement */
    box-shadow: 0 6px 0px 0px #666666, 0 10px 20px rgba(0,0,0,0.3) !important;
    /* text-shadow: none !important; */
    pointer-events: none; /* Physical block against clicks */
    filter: grayscale(1); /* Desaturates any remaining color */
    /* opacity: 0.7; */
}

/* --- SECONDARY (GOLD) 3D PILL --- */
.btn-secondary-bbc {
    background-color: #d4af37;
    /* Bottom layer is a dark bronze for depth */
    box-shadow: 0 6px 0px 0px #8e7320, 0 10px 20px rgba(0,0,0,0.3);
}

.btn-secondary-bbc:hover {
    background-color: #e5bd3d;
    transform: translateY(-2px);
    box-shadow: 0 8px 0px 0px #8e7320, 0 12px 25px rgba(0,0,0,0.4);
}

/* --- CLICK INTERACTION --- */
.btn-hero:active {
    transform: translateY(4px); /* Pushes down towards the shadow */
    box-shadow: 0 2px 0px 0px rgba(0,0,0,0.2), 0 4px 10px rgba(0,0,0,0.2);
}

/* Mobile Responsive adjustment for fonts */
@media (max-width: 768px) {
    .btn-hero {
        font-size: 0.95rem;
        min-width: 200px;
        height: 58px;
    }
}

/* THE ANIMATION CLASS */
.hero-float-slow {
    /* Adjust '4s' to '6s' if you want it even slower */
    animation: float-action 5s ease-in-out infinite;
    display: inline-block; /* Ensures the transform applies correctly */
    will-change: transform; /* Optimizes performance for smoother movement */
}

/* THE KEYFRAMES */
@keyframes float-action {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px); /* Moves up 15 pixels */
    }
    100% {
        transform: translateY(0px);
    }
}

/* Styling the Offcanvas for Mobile */
@media (max-width: 991px) {
    .offcanvas {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 300px !important;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 15px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    /* Custom Cinzel utility if not globally defined */
    .cinzel {
        font-family: 'Cinzel', serif;
    }
}

/* Ensure the hamburger icon doesn't look blue on tap */
.navbar-toggler:focus {
    box-shadow: none;
}

/* --- RED 3D CIRCLE BUTTON (Enlarged) --- */
.btn-circle-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Size increased to 100px to exceed the 64px height of the pills */
    width: 120px; 
    height: 120px;
    border-radius: 50%;
    
    /* Everything else remains the same */
    font-family: 'Cinzel', serif;
    font-weight: 700;
    /* font-size: 0.75rem; */
    text-align: center;
    text-transform: uppercase;
    line-height: 1.1;
    background-color: #b32424;
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 6px 0px 0px #6b1212, 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.15s ease;
}

.btn-circle-red:hover {
    background-color: #d12b2b;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 0px 0px #6b1212, 0 12px 25px rgba(0,0,0,0.4);
}

.btn-circle-red:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0px 0px rgba(0,0,0,0.2);
}

.btn-circle-red::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    animation: treasure-glint 4s infinite;
}

/* --- WHITE 3D CIRCLE BUTTON --- */
.btn-circle-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Size & Shape */
    width: 120px; 
    height: 120px;
    border-radius: 50%;
    
    /* Typography - Dark text for contrast on white */
    font-family: 'Cinzel', serif;
    font-weight: 800;
    text-align: center;
    font-size: 1.10rem;
    text-transform: uppercase;
    line-height: 1.1;
    color: #1a3a5a !important; /* Deep Blue text to match your primary theme */
    
    /* 3D Styling */
    background-color: #ffffff;
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    
    /* Light Grey 3D Depth */
    
    box-shadow: 0 6px 0px 0px #d1d1d1, 0 10px 20px rgba(0,0,0,0.2);

    transition: all 0.15s ease;
}

.btn-circle-white:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 0px 0px #d1d1d1, 0 12px 25px rgba(0,0,0,0.3);
}

.btn-circle-white:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0px 0px rgba(0,0,0,0.1);
}

/* Updated Shine for White Background (Darker Glint) */
.btn-circle-white::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    /* We use a slightly blueish/grey tint for the shine so it's visible on white */
    background: linear-gradient(
        120deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(200, 220, 255, 0.2) 30%, 
        rgba(200, 220, 255, 0.6) 50%, 
        rgba(200, 220, 255, 0.2) 70%, 
        rgba(255, 255, 255, 0) 100%
    );
    animation: treasure-glint 4s infinite;
}

.btn-circle-white:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 0px 0px #d1d1d1, 
        0 12px 25px rgba(0,0,0,0.3);
}

.btn-circle-white:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0px 0px rgba(0,0,0,0.1);
}

.btn-circle-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px; 
    height: 120px;
    border-radius: 50%;
    
    /* 1. THE GOLD RIM: Use a thicker, multi-layered border for a 'Coin' look */
    border: 4px solid #d4af37;
    
    /* 2. THE TEXTURE: A subtle radial gradient for a 3D dome effect */
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #fcfcfc 50%, #e0e0e0 100%);
    
    font-family: 'Cinzel', serif;
    font-weight: 900; /* Extra bold for the centerpiece */
    font-size: 1.2rem;
    color: #1a3a5a !important;
    text-transform: uppercase;
    line-height: 1.1;
    position: relative;
    overflow: hidden;
    text-decoration: none;

    /* 3. THE DEPTH: Inset shadow makes the 'marble' look seated in the gold */
    box-shadow: 
        inset 0 0 10px rgba(0,0,0,0.05), 
        0 8px 0px 0px #b5942e,  /* Darker Gold underside */
        0 15px 25px rgba(0,0,0,0.3);
        
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* THE HOVER: Make it glow like it's charging with energy */
.btn-circle-white:hover {
    transform: translateY(-5px) scale(1.08);
    /* background: #ffffff; */
    border-color: #f3cf65;
    box-shadow: 
        inset 0 0 15px rgba(212, 175, 55, 0.3), 
        0 10px 0px 0px #b5942e, 
        0 20px 35px rgba(212, 175, 55, 0.4);
}

.btn-circle-white span {
    position: relative;
    z-index: 2;
    /* Soft 'letterpress' effect */
    text-shadow: 1px 1px 0px rgba(255,255,255,0.5);
}

/* --- GREEN 3D CIRCLE (Standard Style) --- */
.btn-circle-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Size & Shape */
    width: 120px; 
    height: 120px;
    border-radius: 50%;
    
    /* Colors to match your theme */
    background-color: #28a745; /* Standard bootstrap-style green or your preferred hex */
    color: #ffffff !important;
    
    /* Typography */
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.1;
    
    /* Base Styles */
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    
    /* Standard 3D Depth (Matches the other buttons) */
    /* Bottom shadow is a darker shade of the green (#1e7e34) */
    box-shadow: 0 6px 0px 0px #1e7e34, 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.15s ease;
}

/* Hover State */
.btn-circle-green:hover {
    background-color: #218838;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 0px 0px #1e7e34, 0 12px 25px rgba(0,0,0,0.4);
}

/* Active/Press State */
.btn-circle-green:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0px 0px rgba(0,0,0,0.2);
}

/* Continuous Shimmer (Kept for the 'treasure' effect) */
.btn-circle-green::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: continuous-shimmer 3s infinite;
    z-index: 1;
}

.btn-circle-green span {
    position: relative;
    z-index: 2;
}

/* --- IVORY 3D CIRCLE (Standard Style) --- */
.btn-circle-ivory {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Size & Shape */
    width: 120px; 
    height: 120px;
    border-radius: 50%;
    
    /* Ivory Palette */
    background-color: #FFFFF0; /* Classic Ivory */
    color: #1a3a5a !important; /* Deep Blue text for contrast */
    
    /* Typography */
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.1;
    
    /* Base Styles */
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    
    /* 3D Depth: Bottom shadow is a warm 'Bone/Tan' shade (#E6E6D1) */
    box-shadow: 0 6px 0px 0px #E6E6D1, 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.15s ease;
}

/* Hover State */
.btn-circle-ivory:hover {
    background-color: #fdfdf5;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 0px 0px #E6E6D1, 0 12px 25px rgba(0,0,0,0.3);
}

/* --- MOBILE SYNC (Transforms Circle to Hero Shape) --- */
@media (max-width: 768px) {
    .btn-circle-ivory {
        /* Remove circle dimensions */
        width: 100% !important; 
        max-width: 280px; /* Adjust to match your other buttons' width */
        height: 50px !important;
        
        /* Change shape to matched Rounded Rectangle/Pill */
        border-radius: 50px; /* Or 50px if your hero buttons are pills */
        
        /* Flatten the gradient slightly for a wider look */
        /* background: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 100%); */
        
        /* Adjust text flow */
        font-size: 0.9rem;
        padding: 0 20px;
        
    box-shadow: 0 6px 0px 0px #E6E6D1, 0 10px 20px rgba(0,0,0,0.2);
    }
    
    /* Adjust internal text break for mobile */
    .btn-circle-ivory br {
        display: none; /* Turns 'Top\nUp' into 'Top Up' on one line */
    }
    
    .btn-circle-ivory span::after {
        content: " "; /* Adds space between words when <br> is hidden */
    }

    .btn-circle-ivory:hover {
    /* background-color: #234c75; */
    transform: translateY(-2px);
    /* box-shadow: 0 8px 0px 0px #0a1829, 0 12px 25px rgba(0,0,0,0.4); */
}
}

/* Active State */
.btn-circle-ivory:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0px 0px rgba(0,0,0,0.1);
}

/* Continuous Shimmer (Slightly warmer glint for Ivory) */
.btn-circle-ivory::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: continuous-shimmer 3s infinite;
    z-index: 1;
}

.btn-circle-ivory span {
    position: relative;
    z-index: 2;
}

/* --- PORING PINK 3D CIRCLE --- */
.btn-circle-poring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Size & Shape */
    width: 120px; 
    height: 120px;
    border-radius: 50%;
    
    /* THE PORING GRADIENT: A 'bubble' look with a highlight at the top-left */
    background: #ff80bf;
    
    /* Typography - White text with a soft pink glow for readability */
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.1;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(163, 20, 91, 0.4);
    
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    
    
        box-shadow: 0 6px 0px 0px #c72c7b, 0 10px 20px rgba(0,0,0,0.2);
    
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* THE SQUISH EFFECT ON HOVER */
.btn-circle-poring:hover {
    /* Slight growth and a lighter pink body */
    background: radial-gradient(circle at 35% 35%, #ffcce6 0%, #ff99cc 45%, #ff66b3 100%);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 
        inset 0 6px 8px rgba(255, 255, 255, 0.7),
        0 8px 0px 0px #a61e63, 
        0 15px 25px rgba(255, 77, 166, 0.3); /* Pink-tinted glow */
}

/* THE "POUNCE" ON CLICK */
.btn-circle-poring:active {
    transform: translateY(4px) scale(0.95);
    box-shadow: 0 2px 0px 0px #a61e63;
}

/* THE AUTOMATIC TREASURE SHIMMER (Pink Tinted) */
.btn-circle-poring::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    animation: continuous-shimmer 3s infinite;
}

/* --- SKY BLUE 3D CIRCLE --- */
.btn-circle-sky {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Size & Shape */
    width: 120px; 
    height: 120px;
    border-radius: 50%;
    
    /* THE SKY GRADIENT: Light azure to a deep sky blue */
    background: #40c4ff;
    
    /* Typography - Deep navy for crisp readability */
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.1;
    color: #004d61 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    
        box-shadow: 0 6px 0px 0px #0091ea, 0 10px 20px rgba(0,0,0,0.2);
    

    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* THE HOVER: Brightens like sunlight hitting ice */
.btn-circle-sky:hover {
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #b3e5fc 45%, #81d4fa 100%);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 
        inset 0 6px 10px rgba(255, 255, 255, 1),
        0 8px 0px 0px #007bbd, 
        0 15px 25px rgba(0, 184, 212, 0.3); /* Cyan-tinted glow */
}

/* THE CLICK: "Crackling Ice" feel */
.btn-circle-sky:active {
    transform: translateY(4px) scale(0.98);
    box-shadow: 0 2px 0px 0px #007bbd;
}

/* THE CONTINUOUS SHIMMER (Bright White) */
.btn-circle-sky::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.7) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    animation: continuous-shimmer 3s infinite;
}

.sticky-social-bar {
    position: fixed;
    right: 20px; /* Distance from right edge */
    top: 50%;
    transform: translateY(-50%); /* Perfect vertical center */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between buttons */
    z-index: 9999; /* Stay above everything */
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white !important;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
    
    /* 3D Depth Shadow */
    box-shadow: 0 4px 0px 0px rgba(0, 0, 0, 0.2);
}

/* Brand Colors */
.facebook { background-color: #1877F2; box-shadow: 0 4px 0px 0px #0d52a8; }
.discord  { background-color: #5865F2; box-shadow: 0 4px 0px 0px #3d46a6; }
.contact  { background-color: #343a40; box-shadow: 0 4px 0px 0px #1a1d20; }

/* Hover Effects */
.social-btn:hover {
    transform: translateX(-5px); /* Pops out toward the left */
    filter: brightness(1.1);
}

.social-btn:active {
    transform: translateX(-2px) translateY(2px);
    box-shadow: 0 1px 0px 0px rgba(0,0,0,0.2);
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .sticky-social-bar {
        right: 10px;
    }
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Container: Thinner and centered */
.stats-container-slim {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px; /* Pill shape */
    padding: 8px 30px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

/* Individual Stat Item: Forced Inline */
.stat-item-slim {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between label and value */
    /* font-family: 'Cinzel', serif; */
}

/* Vertical Divider */
.stat-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Mobile: Stack items if the screen is too narrow */
@media (max-width: 576px) {
    .stats-container-slim {
        flex-direction: column;
        gap: 5px;
        padding: 12px 20px;
        border-radius: 20px;
    }
    .stat-divider {
        display: none;
    }
}

/* Base styling for Stat Buttons */
.stat-btn {
    cursor: default;
    background-color: #ffffff; /* White background to match your circle button style */
    color: #1a3a5a !important;
    border: 2px solid #d4af37;
    overflow: visible; /* Allow label to peek out */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 0px 0px #b5942e;
}

/* THE REVEAL LABEL: Hidden by default */
.stat-reveal {
    position: absolute;
    right: 55px; /* Sits to the left of the circle */
    background: #1a3a5a;
    color: #d4af37;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Arrow for the label */
.stat-reveal::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #1a3a5a;
}

/* HOVER EFFECT: Show the label */
.stat-btn:hover .stat-reveal {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Specific color for the Server Status Icon */
.status i {
    color: #28a745; /* Green icon for 'Online' */
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.social-divider {
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin: 5px 0;
}

/* THE BADGE BASE */
.status-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #ffffff; /* Contrast ring against the white button */
    z-index: 3;
}

/* ONLINE STATE (Green) */
.status-indicator.online {
    background-color: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.8);
    animation: status-pulse-green 2s infinite;
}

/* OFFLINE STATE (Red) */
.status-indicator.offline {
    background-color: #dc3545;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.8);
    animation: status-pulse-red 2s infinite;
}

/* ANIMATIONS: Subtle breathing glow */
@keyframes status-pulse-green {
    0% { box-shadow: 0 0 0px rgba(40, 167, 69, 0.7); }
    50% { box-shadow: 0 0 10px rgba(40, 167, 69, 1); }
    100% { box-shadow: 0 0 0px rgba(40, 167, 69, 0.7); }
}

@keyframes status-pulse-red {
    0% { box-shadow: 0 0 0px rgba(220, 53, 69, 0.7); }
    50% { box-shadow: 0 0 10px rgba(220, 53, 69, 1); }
    100% { box-shadow: 0 0 0px rgba(220, 53, 69, 0.7); }
}

.player-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d4af37; /* Gold */
    color: #1a3a5a;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- UNIFIED CIRCLE BUTTON BASE --- */
.social-btn, .stat-btn {
    /* Exact Dimensions */
    width: 50px !important;
    height: 50px !important;
    
    /* Layout */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    
    /* Reset Defaults */
    padding: 0;
    margin: 0;
    text-decoration: none;
    position: relative;
    box-sizing: border-box; /* Crucial: Keeps 2px border INSIDE the 50px width */
    
    /* Transition */
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

/* --- STAT BUTTON SPECIFICS (White with Gold Border) --- */
.stat-btn {
    background-color: #ffffff;
    border: 2px solid #d4af37;
    color: #1a3a5a !important;
    box-shadow: 0 4px 0px 0px #b5942e;
}

/* --- SOCIAL BUTTON SPECIFICS (Flat Brand Colors) --- */
.facebook { 
    background-color: #1877F2; 
    border: 2px solid #1877F2; /* Added border to match size exactly */
    box-shadow: 0 4px 0px 0px #0d52a8; 
}

.discord { 
    background-color: #5865F2; 
    border: 2px solid #5865F2; /* Added border to match size exactly */
    box-shadow: 0 4px 0px 0px #3d46a6; 
}

/* --- ICON ALIGNMENT --- */
.social-btn i, .stat-btn i {
    font-size: 1.4rem; /* Ensures all icons are roughly the same visual scale */
    line-height: 1;
}

/* --- UNIFIED HOVER/ACTIVE --- */
.social-btn:hover, .stat-btn:hover {
    transform: translateX(-5px);
    filter: brightness(1.1);
}

.social-btn:active, .stat-btn:active {
    transform: translateX(-2px) translateY(2px);
    box-shadow: 0 1px 0px 0px rgba(0,0,0,0.2);
}


/* THE UNDERLAY IMAGE */
.fixed-background-underlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Replace with your secondary image path */
    background-image: url('path-to-your-secondary-image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    /* Very low opacity as requested */
    opacity: 0; 
    z-index: -2; /* Sits behind everything */
    
    /* Smooth transition for fading in */
    transition: opacity 1.5s ease-in-out;
}

/* THE HERO SECTION (must be higher z-index) */
.hero-section {
    position: relative;
    z-index: 1;
    background: url('../img/bg.jpeg') center/cover no-repeat;
    /* Ensure the hero has its own background or it will be transparent */
}

/* CONTENT AREA */
.page-content {
    position: relative;
    z-index: 1;
    background: transparent; /* Allows the underlay to show through */
}

/* This class will be added via JS when the user scrolls */
.fixed-background-underlay.is-visible {
    opacity: 0.1; /* Adjust this to your 'very low' preference */
}



/* --- HIDE THE SLIPPERY "/" SEPARATORS --- */
#submenu {
    font-size: 0; /* Hides the "/" text */
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#submenu .sub-menu-item {
    font-size: 0.85rem; /* Bring font back */
    font-family: 'Cinzel', serif;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 5px;
    color: #d4af37 !important;
    transition: all 0.3s ease;
}

#submenu .sub-menu-item.current-sub-menu {
    background: #d4af37;
    color: #1a3a5a !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* --- THE LOGIN CARD --- */
.module-card {
    max-width: 450px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px !important;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border-top: 5px solid #d4af37;
    text-align: center;
}

.module-card h2 {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    color: #1a3a5a;
    margin-bottom: 10px;
}

/* --- SUBMENU: Now constrained to card width --- */
#submenu {
    font-size: 0;
    margin: 0 auto 25px auto;
    display: flex;
    flex-wrap: wrap; /* Allows tabs to drop to next line on small screens */
    justify-content: center;
    gap: 8px;
    max-width: 450px; /* Matches the login card width */
}

#submenu .sub-menu-item {
    font-size: 0.75rem; /* Slightly smaller for better fit */
    font-family: 'Cinzel', serif;
    text-decoration: none;
    padding: 8px 12px;
    background: rgba(26, 58, 90, 0.05); /* Light blue tint */
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    color: #1a3a5a !important; /* Darker text for readability */
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevents text inside buttons from breaking */
}

#submenu .sub-menu-item.current-sub-menu {
    background: #d4af37;
    color: #ffffff !important;
    border-color: #b5942e;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

/* --- THE LOGIN CARD: Clean centered layout --- */
.module-card {
    max-width: 450px;
    width: 95%; /* Responsive safety margin */
    margin: 20px auto;
    background: #ffffff;
    padding: 30px !important;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-top: 5px solid #d4af37;
    /* Remove any default float/alignment from FluxCP */
    float: none !important; 
    overflow: hidden; /* Prevents internal elements from spilling out */
}

/* Mobile Tweak: If the screen is tiny, stack the menu items */
@media (max-width: 480px) {
    #submenu .sub-menu-item {
        flex: 1 1 40%; /* Each button takes up roughly half the row */
        text-align: center;
    }
}

/* --- RE-SKINNING THE TABLE --- */
.generic-form-table {
    width: 100%;
}

.generic-form-table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.generic-form-table th {
    text-align: left;
    padding-bottom: 8px;
}

.generic-form-table th label {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

/* --- MODERN INPUTS --- */
.generic-form-table input[type="text"],
.generic-form-table input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.generic-form-table input:focus {
    border-color: #d4af37;
    outline: none;
}

/* --- THE 3D LOGIN BUTTON --- */
.generic-form-table input[type="submit"],
.generic-form-table button[type="submit"]  {
    width: 100%;
    background: #1a3a5a;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 0px #0d2135;
    transition: all 0.2s ease;
}

.generic-form-table input[type="submit"]:hover,
.generic-form-table button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0px #0d2135;
    background: #244a71;
}

.generic-form-table input[type="submit"]:active,
.generic-form-table button[type="submit"]:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0px #0d2135;
}

/* --- SUBMENU: Widened to match card --- */
#submenu {
    font-size: 0;
    margin: 0 auto 20px auto;
    display: flex;
    flex-wrap: nowrap; /* Keep them in one row on desktop */
    justify-content: center;
    gap: 12px;
    max-width: 600px; /* Increased Width */
}

/* --- THE LOGIN CARD: Wider & More Robust --- */
.module-card {
    max-width: 600px; /* Widened from 450px to 600px */
    width: 90%; 
    margin: 60px auto;
    background: #ffffff;
    padding: 50px !important; /* Increased padding for more white space */
    border-radius: 15px;
    box-shadow: 
        0 10px 0px rgba(212, 175, 55, 0.1), /* Subtle gold base shadow */
        0 20px 40px rgba(0,0,0,0.15);
    border-top: 6px solid #d4af37;
    float: none !important;
    box-sizing: border-box; /* Crucial for width calculations */
}

/* --- INTERNAL FORM ADJUSTMENTS --- */
.generic-form-table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px; /* More vertical space between inputs */
}

.generic-form-table input[type="text"],
.generic-form-table input[type="password"] {
    width: 100%;
    padding: 14px 20px; /* Larger hit area for inputs */
    border: 2px solid #f0f0f0;
    background-color: #fafafa;
    border-radius: 10px;
    font-size: 1.1rem; /* Slightly larger text for the wide card */
}

/* Mobile: Shrink back down for phones */
@media (max-width: 650px) {
    .module-card {
        width: 95%;
        padding: 25px !important;
    }
    
    #submenu {
        flex-wrap: wrap;
    }
    
    #submenu .sub-menu-item {
        flex: 1 1 40%;
        font-size: 0.7rem;
    }
}

.hero-teaser-container {
    text-align: center;
    padding: 20px 20px;
    margin-top: 20px;
}

.coming-soon-text {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 800;
    color: #f5f5f5; /* Solid Ivory */
    text-transform: uppercase;
    letter-spacing: 10px;
    margin-bottom: 30px;
    /* Dark shadow ensures readability on any background */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 
                 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Social Links Box */
.social-links-box {
    display: inline-block;
    background: rgba(0, 0, 0, 0.7); /* Dark semi-transparent back */
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.follow-us {
    display: block;
    font-size: 0.75rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-family: sans-serif;
}

.links-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.social-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.social-link i {
    margin-right: 5px;
    color: #d4af37;
}

.social-link:hover {
    color: #d4af37 !important;
}

.sep {
    color: rgba(255, 255, 255, 0.3);
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .coming-soon-text {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }
    .social-links-box {
        padding: 12px 20px;
    }
}