/* ==========================================================================
   🎨 1️⃣ DESIGN SYSTEM — "ANCIENT EXPEDITION CORE"
   ========================================================================== */

:root {
    /* Core Backgrounds */
    --bg-primary: #050b11;       /* Deep Expedition Night */
    --bg-secondary: #0d1a24;     /* Ancient Stone Blue */
    --bg-tertiary: #132533;      /* Lost Temple Surface */
    
    /* Glassmorphism Settings */
    --glass-bg: rgba(13, 26, 36, 0.85);
    --glass-blur: 20px;
    --glass-border: 1px solid rgba(255, 200, 120, 0.15);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 80px rgba(255, 180, 80, 0.1);

    /* Treasure Accents */
    --accent-gold-gradient: linear-gradient(135deg, #ffbf47, #ffe08a);
    --accent-gold-glow: rgba(255, 191, 71, 0.45);
    
    --accent-emerald-gradient: linear-gradient(135deg, #00b894, #55efc4);
    --accent-emerald-glow: rgba(0, 184, 148, 0.35);

    --accent-torch-gradient: linear-gradient(135deg, #ff6b35, #ff9f43);
    --accent-torch-glow: rgba(255, 107, 53, 0.35);

    --premium-blend-gradient: linear-gradient(135deg, #ffbf47, #00b894, #ff6b35);

    /* Typography Colors */
    --text-primary: #f9f5ea;
    --text-secondary: #d7ccb8;
    --text-muted: #8e8474;

    /* Transition Dynamics */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   RESET & SYSTEM BASICS
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    font-size: 16px;
    text-align: center; /* Globally center text */
}

h1, h2, h3, h4, h5, h6, .brand-text {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
    text-align: center;
}

p {
    text-align: center;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    display: inline-block;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
    border: 2px solid var(--bg-primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ffbf47;
}

/* Particle Background & Glowing Lights */
#expedition-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.torch-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
}
.torch-glow-left {
    background: radial-gradient(circle, var(--accent-torch-glow) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}
.torch-glow-right {
    background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
}

/* ==========================================================================
   🧭 2️⃣ HEADER — SLIM & FLUID ABSOLUTE NAVIGATION
   ========================================================================== */
.floating-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 11, 17, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 200, 120, 0.1);
    padding: 15px 40px;
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Centered alignment for header contents */
    align-items: center;
    flex-wrap: wrap;
    gap: 15px 40px;
}

/* Logo Area */
.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.compass-emblem {
    width: 32px;
    height: 32px;
    position: relative;
}
.compass-svg {
    width: 100%;
    height: 100%;
    animation: spinCompass 25s linear infinite;
}
.torch-flicker-core {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(#ffbf47, #ff6b35);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #ffbf47;
    animation: flickerCore 1.5s infinite alternate;
}

.brand-text {
    font-size: 1.15rem;
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 191, 71, 0.2);
}

/* Center Panel Links */
.navigation-panel {
    display: flex;
    justify-content: center;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 200, 120, 0.05);
    justify-content: center;
}
.nav-item {
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 191, 71, 0.12);
    box-shadow: inset 0 0 8px rgba(255, 191, 71, 0.05);
}

/* Actions Right */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* CTA Buttons */
.cta-button {
    background: var(--accent-gold-gradient);
    color: #050b11;
    border: none;
    border-radius: 22px;
    padding: 8px 18px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px var(--accent-gold-glow);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 191, 71, 0.6);
}
.cta-button:active {
    transform: translateY(1px);
}
.shine-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shineEffect 4s infinite;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    align-items: center;
    justify-content: center;
}
.mobile-menu-toggle .bar {
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Mobile Menu Panel */
.mobile-explorer-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 60vh;
    background: var(--bg-secondary);
    z-index: 99;
    padding: 100px 30px 40px;
    border-bottom: var(--glass-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.mobile-explorer-menu.active {
    top: 0;
}
.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    align-items: center;
    width: 100%;
}
.mobile-nav-links a {
    font-size: 1.3rem;
    font-family: 'Cinzel', serif;
    color: var(--text-secondary);
}
.mobile-nav-links a:hover {
    color: #ffbf47;
}

/* ==========================================================================
   🌄 3️⃣ HERO SECTION — CENTRALLY ALIGNED LOSS WORLD GATEWAY
   ========================================================================== */
.hero-gateway {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,11,17,0.4) 0%, var(--bg-primary) 98%),
                radial-gradient(circle, rgba(5,11,17,0.2) 0%, rgba(5,11,17,0.9) 100%);
    z-index: 3;
}

.hero-bg-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}
.hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) contrast(1.15) saturate(0.8);
    animation: zoomPulse 40s infinite alternate;
}
.cinematic-fog {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle, rgba(26,47,59,0.3) 0%, transparent 60%);
    top: -50%;
    left: -50%;
    animation: fogDrift 35s linear infinite;
    opacity: 0.6;
    mix-blend-mode: color-dodge;
}

.hero-content-center {
    width: 90%;
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-center-card {
    background: rgba(5, 11, 17, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    padding: 50px 40px;
    border-radius: 32px;
    box-shadow: var(--glass-shadow);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.expedition-badge-alert {
    display: inline-block;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.4);
    color: #ff9f43;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 0.1em;
    text-align: center;
}

.hero-main-headline {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: center;
}
.highlight-gold {
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 191, 71, 0.35));
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    max-width: 750px;
    line-height: 1.7;
    text-align: center;
}

.hero-disclaimer {
    background: rgba(0, 0, 0, 0.45);
    border-left: 3px solid #ff6b35;
    border-right: 3px solid #ff6b35; /* Symmetric centered accent borders */
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'IBM Plex Mono', monospace;
    margin: 0 auto 30px;
    max-width: 750px;
    text-align: center;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    margin-bottom: 45px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}
.primary-gold-button {
    font-size: 1rem;
    padding: 14px 30px;
    border-radius: 30px;
}
.secondary-stone-button {
    background: var(--glass-bg);
    border: var(--glass-border);
    color: var(--text-primary);
    box-shadow: none;
    font-size: 1rem;
    padding: 14px 30px;
    border-radius: 30px;
}
.secondary-stone-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 191, 71, 0.3);
    color: #ffbf47;
}

/* Explorer stats inside hero */
.explorer-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 30px;
    width: 100%;
    max-width: 700px;
    justify-content: center;
    align-items: center;
}
.stat-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-number {
    font-size: 1.8rem;
    font-family: 'Cinzel', serif;
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Divider styling */
.home-section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 60px 0;
}
.divider-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 191, 71, 0.3), transparent);
}
.divider-gem {
    font-size: 1.4rem;
    margin: 0 20px;
    text-shadow: 0 0 10px #ffbf47;
}

/* ==========================================================================
   🎬 NEW & IMPROVED WIDESCREEN THEATRE SHOWCASE SECTION
   ========================================================================== */
.theatre-showcase {
    position: relative;
    max-width: 1240px;
    width: 95%;
    margin: 40px auto;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}
.theatre-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.theatre-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.25) contrast(1.1);
    transition: var(--transition-smooth);
}
.theatre-gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(5, 11, 17, 0.4) 0%, rgba(5, 11, 17, 0.85) 100%);
    z-index: 2;
}
.theatre-content-card {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.theatre-content-card h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}
.theatre-content-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: center;
}
.theatre-showcase:hover .theatre-bg-img {
    transform: scale(1.05);
}

.game-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #ff9f43;
    background: rgba(255, 107, 53, 0.15);
    padding: 4px 12px;
    border-radius: 12px;
    text-align: center;
}

/* ==========================================================================
   🎮 4️⃣ MAIN GAME SECTION — GAME-ADVENTURER-SLOT
   ========================================================================== */
#view-game {
    padding-top: 100px;
    min-height: 100vh;
}

.view-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.category-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: #00b894;
    text-transform: uppercase;
    text-align: center;
}
.view-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    margin: 10px 0;
    text-align: center;
}
.view-intro {
    color: var(--text-secondary);
    text-align: center;
}

.game-container-wrapper {
    position: relative;
    max-width: 1240px;
    width: 95%;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 24px;
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    z-index: 10;
}

.game-ambient-lights .light-emitter {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
    pointer-events: none;
}
.light-emitter.emerald {
    background-color: #00b894;
    top: -50px;
    left: -50px;
}
.light-emitter.amber {
    background-color: #ffbf47;
    bottom: -50px;
    right: -50px;
}

.game-header-bar {
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 200, 120, 0.08);
    flex-wrap: wrap;
    gap: 15px;
}
@media (max-width: 768px) {
    .game-header-bar {
        justify-content: center;
    }
}
.game-status-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
}
.status-indicator-dot {
    width: 8px;
    height: 8px;
    background: #00b894;
    border-radius: 50%;
    box-shadow: 0 0 10px #55efc4;
}
.status-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #55efc4;
}

.game-controls-right {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.game-control-btn {
    background: var(--glass-bg);
    border: var(--glass-border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.game-control-btn:hover {
    background: rgba(255, 191, 71, 0.1);
    border-color: #ffbf47;
    color: #ffbf47;
}

.game-iframe-holder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #04080c;
    position: relative;
}
.game-iframe-holder iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.game-footer-bar {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}
.disclaimer-scroller {
    display: inline-block;
    animation: scrollText 20s linear infinite;
}
.scroller-item {
    display: inline-block;
    padding-right: 50px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: 'IBM Plex Mono', monospace;
}

.game-extended-info {
    max-width: 1240px;
    width: 95%;
    margin: 40px auto 80px;
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}
.info-text-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.info-text-card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    text-align: center;
}
.info-text-card p {
    text-align: center;
}

/* ==========================================================================
   💠 5️⃣ FEATURES SECTION — TREASURE DISCOVERY GRID
   ========================================================================== */
.features-grid-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    position: relative;
}
.features-grid {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-card {
    position: relative;
    background: var(--bg-tertiary);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.card-glow-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(255, 191, 71, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
}
.card-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
    text-align: center;
}
.card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    text-align: center;
}
.card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}
.card-border-sparkle {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--accent-gold-gradient);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

/* Feature card states */
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.feature-card:hover .card-glow-bg {
    opacity: 1;
}
.feature-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}
.feature-card:hover .card-border-sparkle {
    transform: scaleX(1);
}

/* ==========================================================================
   🏆 STATS / SOCIAL PROOF
   ========================================================================== */
.metrics-section {
    padding: 60px 0;
    background: var(--bg-primary);
}
.metrics-grid {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    justify-items: center;
}
.metric-block {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.metric-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: block;
    text-align: center;
}
.metric-num {
    font-size: 2rem;
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}
.metric-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.1em;
    text-align: center;
}

/* ==========================================================================
   🏔️ VIEW: EXPEDITIONS
   ========================================================================== */
#view-expeditions {
    padding-top: 100px;
    min-height: 100vh;
}
.expeditions-showcase-grid {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
}
.expedition-post {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    border: var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.expedition-post:hover {
    transform: translateY(-6px);
}
.post-img-holder {
    height: 230px;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.expedition-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.expedition-post:hover .expedition-post-img {
    transform: scale(1.05);
}
.expedition-difficulty {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
}
.expedition-difficulty.easy { background: rgba(0, 184, 148, 0.85); }
.expedition-difficulty.medium { background: rgba(255, 191, 71, 0.85); color: #000; }
.expedition-difficulty.extreme { background: rgba(255, 107, 53, 0.85); }

.post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}
.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    text-align: center;
}
.post-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
}

/* ==========================================================================
   💎 VIEW: TREASURES
   ========================================================================== */
#view-treasures {
    padding-top: 100px;
    min-height: 100vh;
}
.treasures-flex-row {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto 80px;
    display: flex;
    gap: 30px;
}
.treasure-main-display {
    flex: 1.2;
    background: var(--bg-secondary);
    border-radius: 24px;
    border: var(--glass-border);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.display-canvas-card {
    width: 100%;
    height: 380px;
    background: #04080c;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.main-display-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.display-glow-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid rgba(255, 191, 71, 0.5);
    box-shadow: 0 0 40px rgba(255, 191, 71, 0.3);
    animation: pulseGlowRing 4s infinite alternate;
}

.display-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.display-details h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    text-align: center;
}
.display-details p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: center;
}
.stat-badge-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.stat-badge {
    background: rgba(255,191,71,0.08);
    border: 1px solid rgba(255,191,71,0.25);
    color: #ffbf47;
    padding: 6px 14px;
    border-radius: 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    text-align: center;
}

/* Sidebar List */
.treasures-sidebar-list {
    flex: 0.8;
    background: var(--bg-tertiary);
    border-radius: 20px;
    border: var(--glass-border);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.treasures-sidebar-list h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 10px;
    text-align: center;
    width: 100%;
}
.treasure-item-card {
    display: flex;
    flex-direction: column; /* Stacked and centered layout */
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    width: 100%;
    text-align: center;
}
.treasure-item-card .text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.treasure-item-card:hover, .treasure-item-card.active {
    background: rgba(255, 191, 71, 0.08);
    border-color: rgba(255, 191, 71, 0.3);
}
.icon-avatar {
    font-size: 1.6rem;
    text-align: center;
}
.treasure-item-card h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
    text-align: center;
}
.treasure-item-card p {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   📖 VIEW: ABOUT
   ========================================================================== */
#view-about {
    padding-top: 100px;
    min-height: 100vh;
}
.about-split-layout {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}
.about-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.about-text-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}
.about-text-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: center;
}
.about-text-content h3 {
    font-size: 1.3rem;
    margin: 25px 0 12px;
    text-align: center;
}

.about-image-showcase {
    position: relative;
    display: flex;
    justify-content: center;
}
.about-visual-media {
    width: 100%;
    border-radius: 24px;
    border: var(--glass-border);
}
.about-floating-card {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%); /* Centered floating layout */
    background: var(--bg-tertiary);
    border: var(--glass-border);
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.about-floating-card h4 {
    color: #ffbf47;
}

/* ==========================================================================
   📞 VIEW: CONTACT
   ========================================================================== */
#view-contact {
    padding-top: 100px;
    min-height: 100vh;
}
.contact-split-layout {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}

.contact-form-side {
    background: var(--bg-secondary);
    border-radius: 24px;
    border: var(--glass-border);
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.expedition-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    align-items: center;
    text-align: center;
}
.form-group label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}
.form-group input, .form-group select, .form-group textarea {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 200, 120, 0.15);
    border-radius: 10px;
    padding: 12px 18px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    width: 100%;
    text-align: center; /* Center input placeholder and user text value */
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #ffbf47;
    box-shadow: 0 0 15px rgba(255, 191, 71, 0.2);
}

.hidden-success-toast {
    display: none;
    background: rgba(0, 184, 148, 0.15);
    border: 1px solid rgba(0, 184, 148, 0.4);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    color: var(--text-primary);
}
.hidden-success-toast h4 {
    color: #55efc4;
    margin-bottom: 8px;
    font-size: 1.2rem;
    text-align: center;
}

.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}
.info-block-glass {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}
.info-block-glass h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}
.info-block-glass p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}
.info-block-glass a {
    color: #ffbf47;
}

.map-placeholder-glass {
    height: 230px;
    background: linear-gradient(135deg, rgba(8,16,24,0.9), rgba(17,32,44,0.8));
    border-radius: 20px;
    border: var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
}
.map-placeholder-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,191,71,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}
.map-coordinates-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    color: #ffbf47;
    letter-spacing: 0.15em;
    z-index: 2;
    text-align: center;
}
.map-placeholder-glass span {
    font-size: 0.75rem;
    color: var(--text-muted);
    z-index: 2;
    text-align: center;
}

/* ==========================================================================
   ⚖️ LEGAL VIEWS
   ========================================================================== */
#view-terms, #view-privacy, #view-cookies, #view-responsible {
    padding-top: 100px;
    min-height: 100vh;
}
.legal-text-container-glass {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 80px;
    background: var(--bg-secondary);
    border-radius: 24px;
    border: var(--glass-border);
    padding: 40px;
    text-align: center;
}
.legal-text-container-glass h2 {
    font-size: 1.4rem;
    margin: 25px 0 12px;
    color: #ffbf47;
    text-align: center;
}
.legal-text-container-glass p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: center;
}

/* ==========================================================================
   🏆 HOW TO PLAY MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 16, 24, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-card {
    background: var(--bg-secondary);
    border: var(--glass-border);
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    padding: 35px;
    position: relative;
    box-shadow: var(--glass-shadow);
    text-align: center;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
}
.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 12px;
    justify-content: center;
}
.modal-header h2 {
    font-size: 1.4rem;
    text-align: center;
}
.modal-icon {
    font-size: 1.8rem;
}
.guide-step {
    display: flex;
    flex-direction: column; /* Stacked layout to center properly */
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    text-align: center;
}
.step-num {
    background: var(--accent-gold-gradient);
    color: #000;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-family: 'IBM Plex Mono', monospace;
    flex-shrink: 0;
    font-size: 0.85rem;
    margin: 0 auto;
}
.guide-step h4 {
    margin-bottom: 4px;
    font-size: 1rem;
    text-align: center;
}
.guide-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}
.text-alert {
    background: rgba(255,107,53,0.1);
    border: 1px solid rgba(255,107,53,0.3);
    padding: 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 25px;
    text-align: center;
}

/* ==========================================================================
   📄 FOOTER SYSTEM
   ========================================================================== */
.expedition-footer {
    position: relative;
    background: #02070c;
    border-top: 1px solid rgba(255, 200, 120, 0.08);
    padding: 60px 0 30px;
}
.footer-top-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 191, 71, 0.08) 0%, transparent 75%);
    pointer-events: none;
}
.footer-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 35px;
    margin-bottom: 40px;
    justify-items: center;
}

.brand-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
}
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.footer-compass {
    font-size: 1.3rem;
}
.footer-brand-name {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}
.brand-subtext {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
}
.helsinki-stamp {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-align: center;
}

.col-title {
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffbf47;
    text-align: center;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
}
.footer-links-list a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    display: block;
}
.footer-links-list a:hover {
    color: #ffbf47;
}

.contact-card-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
}

.footer-divider-line {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin-bottom: 25px;
}

.footer-bottom-bar {
    text-align: center;
}
.disclaimer-long {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 1100px;
    margin: 0 auto 20px;
    text-align: center;
}
.copyright-row {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'IBM Plex Mono', monospace;
    text-align: center;
}

/* ==========================================================================
   🏠 VIEW-STATE SWITCHING MECHANISM
   ========================================================================== */
.active-view {
    display: block;
    animation: fadeInView 0.6s ease-out forwards;
}
.inactive-view {
    display: none;
}

/* ==========================================================================
   🎞️ PREMIUM ANIMATIONS
   ========================================================================== */
@keyframes fadeInView {
    from {
        opacity: 0;
        transform: translateY(15px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

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

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

@keyframes flickerCore {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.85; }
}

@keyframes shineEffect {
    0% { left: -100%; }
    20%, 100% { left: 100%; }
}

@keyframes zoomPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

@keyframes fogDrift {
    0% { transform: translate(-10%, -10%) rotate(0deg); }
    100% { transform: translate(10%, 10%) rotate(360deg); }
}

@keyframes hoverFloating {
    from { transform: translateY(0px) rotate(0deg); }
    to { transform: translateY(-15px) rotate(3deg); }
}

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

@keyframes pulseGlowRing {
    0% { transform: scale(0.9); opacity: 0.4; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

/* ==========================================================================
   📱 8️⃣ RESPONSIVE BREAKPOINTS & MOBILE SYSTEMS
   ========================================================================== */
@media (max-width: 1200px) {
    .floating-header {
        padding: 15px 20px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .floating-header {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        background: rgba(5, 11, 17, 0.95);
        padding: 15px 20px;
    }
    .hero-content-center {
        width: 95%;
    }
    .hero-center-card {
        padding: 40px 20px;
    }
    .navigation-panel {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .expeditions-showcase-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    .treasures-flex-row {
        flex-direction: column;
    }
    .about-split-layout {
        grid-template-columns: 1fr;
    }
    .contact-split-layout {
        grid-template-columns: 1fr;
    }
    .theatre-showcase {
        height: auto;
        min-height: 400px;
    }
    .theatre-content-card {
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .cta-button {
        width: 100%;
        text-align: center;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    .explorer-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}