/* =========================================
   Gaijin Games - Final Fantasy Menu Style
   Cohesive Blue/Purple/Cyan Theme
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* =========================================
   LOADING SCREEN
   ========================================= */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A2332 0%, #2A4A6A 50%, #1A2332 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loading-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 24px auto;
    animation: pulse-logo 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 184, 230, 0.6));
}

@keyframes pulse-logo {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(0, 184, 230, 0.6));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(0, 184, 230, 0.8));
    }
}

.loading-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 32px;
    text-shadow: 0 0 10px rgba(0, 184, 230, 0.5);
    letter-spacing: 4px;
}

.loading-bar {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00B8E6, #00E5FF, #00B8E6);
    background-size: 200% 100%;
    animation: shimmer 1s ease-in-out infinite;
    border-radius: 2px;
    transition: width 0.3s ease-out;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.loading-status {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    transition: opacity 0.15s ease;
    min-height: 1.5em;
}

@keyframes blink-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

:root {
    /* Core Brand Colors - Blue/Cyan Focus */
    --brand-cyan: #00B8E6;
    --brand-blue: #0077B6;
    --brand-deep: #1A2332;
    
    /* FF Menu Window - Deep Blue */
    --ff-window-top: #2A4A6A;
    --ff-window-bottom: #1A2332;
    --ff-window-gradient: linear-gradient(180deg, var(--ff-window-top) 0%, var(--ff-window-bottom) 100%);
    --ff-border: #FFFFFF;
    --ff-border-inner: rgba(255, 255, 255, 0.25);
    
    /* Accent Colors */
    --accent-gold: #FFD700;
    --accent-purple: #9B7ED9;
    --accent-pink: #FFB7C5;
    --accent-cyan: #00E5FF;
    --accent-green: #4ADE80;
    
    /* Background Tones - Soft & Warm */
    --bg-cream: #FDFBF7;
    --bg-cream-warm: #FBF8F3;
    --bg-soft-blue: #F5F9FC;
    --bg-soft-purple: #F9F7FC;
    
    /* Text */
    --text-dark: #1A2332;
    --text-light: #FFFFFF;
    --text-muted: #8BA4B8;
    --text-gold: #FFD700;
    --text-cyan: #00E5FF;
    
    /* Effects */
    --shadow-window: 0 8px 32px rgba(26, 35, 50, 0.25);
    --shadow-soft: 0 4px 16px rgba(26, 35, 50, 0.1);
    --glow-cyan: 0 0 20px rgba(0, 184, 230, 0.4);
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.4);
    --glow-purple: 0 0 20px rgba(155, 126, 217, 0.4);
    
    /* Spacing */
    --window-padding: 24px;
    --window-border: 4px;
    --window-radius: 12px;
    
    /* Typography */
    --font-pixel: 'Press Start 2P', monospace;
    
    /* Z-index */
    --z-bg: 0;
    --z-particles: 5;
    --z-content: 10;
    --z-nav: 1000;
}

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

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

@media (min-height: 700px) and (min-width: 769px) {
    html {
        scroll-snap-type: y mandatory;
    }
}

/* Helper class to stop snapping when looking at details */
html.no-snap {
    scroll-snap-type: none !important;
}

/* Modal scroll lock handled via JavaScript inline styles */

body {
    font-family: var(--font-pixel);
    font-size: 11px;
    line-height: 2;
    color: var(--text-dark);
    background: var(--bg-cream);
}

/* Swipe hint - hidden by default on desktop */
.swipe-hint {
    display: none;
    overflow-x: hidden;
}

/* Full-page sections */
.page-section {
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .page-section {
        height: auto;
        min-height: 100dvh;
    }
}

/* Custom Cursor */
body, a, button {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpolygon fill='%231A2332' stroke='%23FFF' stroke-width='1' points='4,4 4,20 10,16 14,22 18,20 14,14 20,14'/%3E%3C/svg%3E") 4 4, auto;
}

a:hover, button:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpolygon fill='%2300E5FF' stroke='%231A2332' stroke-width='1' points='4,4 4,20 10,16 14,22 18,20 14,14 20,14'/%3E%3C/svg%3E") 4 4, pointer;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* =========================================
   FF WINDOW COMPONENT
   ========================================= */
.ff-window {
    background: var(--ff-window-gradient);
    border: var(--window-border) solid var(--ff-border);
    border-radius: var(--window-radius);
    box-shadow: var(--shadow-window);
    padding: var(--window-padding);
    position: relative;
}

.ff-window::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 2px solid var(--ff-border-inner);
    border-radius: calc(var(--window-radius) - 4px);
    pointer-events: none;
}

/* =========================================
   CONTAINER & TYPOGRAPHY
   ========================================= */
.container {
    width: 100%;
    max-width: min(1100px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(12px, 2.5vw, 24px);
    position: relative;
    z-index: var(--z-content);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-pixel);
    font-weight: normal;
    text-transform: uppercase;
}

.section-header {
    text-align: center;
    margin-top: clamp(10px, 3vh, 60px);
    margin-bottom: clamp(12px, 2vh, 48px);
}

.section-title {
    font-size: clamp(10px, 1.5vw, 14px);
    color: var(--text-dark);
    margin-bottom: clamp(8px, 1.2vw, 12px);
    letter-spacing: clamp(1px, 0.2vw, 2px);
}

.section-title::before,
.section-title::after {
    content: ' ══ ';
    color: var(--brand-cyan);
}

.eyebrow {
    font-size: clamp(6px, 1vw, 8px);
    color: var(--brand-cyan);
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.4vw, 4px);
    margin-bottom: clamp(6px, 0.8vw, 8px);
    display: block;
}

/* =========================================
   NAVIGATION
   ========================================= */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: 16px 24px;
    transition: all 0.3s ease;
}

.nav-header.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(26, 35, 50, 0.1);
    border-bottom: 2px solid var(--brand-cyan);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    color: var(--text-light);
}

.nav-header.scrolled .nav-logo {
    color: var(--text-dark);
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 184, 230, 0.5));
    transition: transform 0.6s ease;
}

.nav-logo:hover .logo-icon {
    transform: rotate(360deg);
}

.logo-text {
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    font-size: 20px;
}

.nav-header.scrolled .logo-text {
    text-shadow: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 9px;
    color: var(--text-light);
    padding: 10px 18px;
    position: relative;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.nav-header.scrolled .nav-link {
    color: var(--text-dark);
    text-shadow: none;
}

.nav-link::before {
    content: '▶';
    position: absolute;
    left: 4px;
    opacity: 0;
    color: var(--accent-cyan);
    font-size: 7px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    animation: pointer-blink 0.5s infinite;
}

@keyframes pointer-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.nav-cta {
    font-size: 7px;
    padding: 8px 14px;
}

.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--text-light);
    transition: all 0.2s ease;
}

.nav-header.scrolled .hamburger,
.nav-header.scrolled .hamburger::before,
.nav-header.scrolled .hamburger::after {
    background: var(--text-dark);
}

.hamburger { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.hamburger::before, .hamburger::after { content: ''; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    background: var(--ff-window-gradient);
    border: var(--window-border) solid var(--ff-border);
    border-radius: var(--window-radius);
    padding: 20px;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-window);
}

.mobile-menu.active { display: flex; }

.mobile-link {
    font-size: 10px;
    color: var(--text-light);
    padding: 14px 14px 14px 32px;
    position: relative;
}

.mobile-link::before {
    content: '▶';
    position: absolute;
    left: 10px;
    opacity: 0;
    color: var(--accent-cyan);
    font-size: 8px;
}

.mobile-link:hover::before { opacity: 1; }
.mobile-link:hover,
.mobile-link.active { color: var(--accent-cyan); }

.mobile-cta { margin-top: 16px; }

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: block; }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    font-family: var(--font-pixel);
    font-size: clamp(8px, 1.2vw, 10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1vw, 10px);
    padding: clamp(10px, 1.6vw, 16px) clamp(20px, 3.2vw, 32px);
    background: var(--ff-window-gradient);
    border: clamp(2px, 0.3vw, 3px) solid var(--ff-border);
    border-radius: clamp(6px, 0.8vw, 8px);
    color: var(--text-light);
    position: relative;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-soft);
}

.btn::before {
    content: '';
    position: absolute;
    top: 3px; left: 3px; right: 3px; bottom: 3px;
    border: 1px solid var(--ff-border-inner);
    border-radius: 4px;
    pointer-events: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-window);
}

.btn:active { transform: translateY(-1px); }

.btn-primary {
    border-color: var(--brand-cyan);
    box-shadow: var(--shadow-soft), var(--glow-cyan);
}

.btn-primary:hover {
    box-shadow: var(--shadow-window), 0 0 30px rgba(0, 184, 230, 0.5);
    color: var(--accent-cyan);
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2300E5FF' d='M4 0l16 12-7 2 4 8-3 1-4-8-6 5z'/%3E%3C/svg%3E") 4 4, pointer;
}

.btn-secondary {
    border-color: var(--brand-cyan);
    box-shadow: var(--shadow-soft), var(--glow-cyan);
}

.btn-secondary:hover {
    box-shadow: var(--shadow-window), 0 0 30px rgba(0, 184, 230, 0.5);
    color: var(--accent-cyan);
}

.btn-disabled {
    background: linear-gradient(180deg, #5A6A7A 0%, #3A4A5A 100%);
    border-color: #6A7A8A;
    color: #8A9AAA;
    box-shadow: none;
}

.btn-disabled:hover { transform: none; color: #8A9AAA; }

.btn-lg { font-size: 12px; padding: 20px 40px; }
.btn-block { width: 100%; }

/* =========================================
   HERO - Dramatic Gradient (Video Ready)
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #1A2332; /* Fallback */
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100dvh;
        padding: 100px 0 60px;
    }
}

.hero-video-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;
    z-index: 2;
}

.video-pause-btn {
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    background: linear-gradient(180deg, rgba(42, 74, 106, 0.8) 0%, rgba(26, 35, 50, 0.8) 100%);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-pause-btn:hover {
    background: linear-gradient(180deg, rgba(42, 74, 106, 0.95) 0%, rgba(26, 35, 50, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.video-pause-btn .pause-icon,
.video-pause-btn .play-icon {
    font-size: 12px;
    letter-spacing: -2px;
}

/* Stars */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 200%; height: 200%;
    background-image: 
        radial-gradient(2px 2px at 100px 50px, white, transparent),
        radial-gradient(2px 2px at 200px 150px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 300px 100px, white, transparent),
        radial-gradient(2px 2px at 400px 200px, rgba(0, 229, 255, 0.8), transparent),
        radial-gradient(1px 1px at 500px 50px, white, transparent),
        radial-gradient(2px 2px at 50px 300px, rgba(155, 126, 217, 0.8), transparent),
        radial-gradient(1px 1px at 150px 400px, white, transparent),
        radial-gradient(2px 2px at 250px 250px, rgba(255, 215, 0, 0.6), transparent),
        radial-gradient(1px 1px at 350px 350px, white, transparent);
    background-size: 550px 500px;
    animation: stars-drift 100s linear infinite;
    opacity: 0.7;
    z-index: 2;
}

@keyframes stars-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-550px, -500px); }
}

/* Particles */
.particles-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 3;
}

.particle { position: absolute; pointer-events: none; }

.petal {
    width: 10px; height: 10px;
    background: var(--accent-pink);
    border-radius: 50% 0 50% 0;
    opacity: 0.6;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

.sparkle {
    width: 4px; height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-gold);
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.hero-content {
    position: relative;
    z-index: var(--z-content);
    text-align: center;
    padding: clamp(20px, 4vh, 40px);
    max-width: 800px;
}

.hero-box {
    background: linear-gradient(180deg, rgba(42, 74, 106, 0.75) 0%, rgba(26, 35, 50, 0.75) 100%);
    border: clamp(2px, 0.3vw, 3px) solid rgba(255, 255, 255, 0.6);
    border-radius: clamp(8px, 1.5vw, 12px);
    padding: clamp(20px, 4vw, 40px) clamp(24px, 5vw, 50px);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    max-width: 90vw;
}

.hero-box::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    pointer-events: none;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 2vh, 20px);
    margin-bottom: clamp(24px, 4vh, 48px);
}

.hero-logo-icon {
    width: clamp(50px, 10vh, 100px);
    height: clamp(50px, 10vh, 100px);
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 184, 230, 0.6));
    animation: logo-glow 4s ease-in-out infinite alternate;
}

@keyframes logo-glow {
    0% { filter: drop-shadow(0 0 20px rgba(0, 184, 230, 0.5)); }
    100% { filter: drop-shadow(0 0 40px rgba(0, 184, 230, 0.8)) drop-shadow(0 0 60px rgba(155, 126, 217, 0.5)); }
}

.hero-logo-text {
    font-size: clamp(12px, 2.5vw, 20px);
    color: var(--text-light);
    text-shadow: 
        3px 3px 0 rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 184, 230, 0.5);
    letter-spacing: 6px;
}

.hero-title {
    font-size: clamp(10px, 1.8vw, 14px);
    color: #FFFFFF;
    margin-bottom: clamp(12px, 2vw, 20px);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    line-height: 2;
}

@keyframes title-glow {
    0% { text-shadow: 2px 2px 0 rgba(0,0,0,0.5), 0 0 10px rgba(255, 215, 0, 0.3); }
    100% { text-shadow: 2px 2px 0 rgba(0,0,0,0.5), 0 0 30px rgba(255, 215, 0, 0.6); }
}

.hero-subtitle {
    font-size: clamp(7px, 1vh, 9px);
    color: var(--accent-cyan);
    margin-bottom: clamp(24px, 4vh, 48px);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 2vh, 20px);
}

.press-start-btn {
    font-size: clamp(10px, 1.5vw, 14px);
    padding: clamp(14px, 2.2vw, 22px) clamp(32px, 5.2vw, 52px);
    animation: button-pulse 2s ease-in-out infinite;
}

@keyframes button-pulse {
    0%, 100% { box-shadow: var(--shadow-soft), 0 0 20px rgba(0, 184, 230, 0.3); }
    50% { box-shadow: var(--shadow-window), 0 0 40px rgba(0, 184, 230, 0.6); }
}

.press-start-btn::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid var(--brand-cyan);
    border-radius: 12px;
    opacity: 0;
    animation: border-pulse 2s ease-in-out infinite;
}

@keyframes border-pulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.03); }
}

.press-start {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    animation: blink 1.2s infinite;
    margin-top: 20px;
    letter-spacing: 3px;
}

@keyframes blink {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 11px; }
    .hero-logo-text { font-size: 16px; }
    .hero-logo-icon { width: 80px; height: 80px; }
    .press-start-btn { font-size: 11px; padding: 18px 36px; }
    
    /* Enable scroll-snap on mobile for full-page sections */
    html {
        scroll-snap-type: y mandatory;
    }
    
    .about-section,
    .games-section,
    .token-section,
    .community-section {
        min-height: 100dvh;
        height: 100dvh;
        padding: 70px 0 80px; /* Top for navbar, bottom for mobile nav */
        justify-content: center;
        overflow: hidden;
    }
    
    .hero {
        min-height: 100dvh;
        height: 100dvh;
        padding: 60px 0 80px;
    }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
    height: 100vh;
    height: 100dvh;
    padding: clamp(40px, 5vh, 80px) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
}


/* About Tabs */
.about-tabs {
    display: flex;
    justify-content: center;
    gap: clamp(8px, 1vh, 12px);
    margin-bottom: clamp(12px, 2vh, 28px);
}

.about-tab {
    font-family: var(--font-pixel);
    font-size: clamp(8px, 1.2vh, 10px);
    color: var(--text-muted);
    background: var(--ff-window-gradient);
    border: 3px solid var(--ff-border);
    border-radius: 8px;
    padding: clamp(10px, 1.5vh, 14px) clamp(18px, 3vw, 28px);
    transition: all 0.2s ease;
    position: relative;
    width: 160px;
    text-align: center;
}

.about-tab::before {
    content: '';
    position: absolute;
    top: 3px; left: 3px; right: 3px; bottom: 3px;
    border: 1px solid var(--ff-border-inner);
    border-radius: 4px;
    pointer-events: none;
}

.about-tab:hover {
    color: var(--text-light);
}

.about-tab.active {
    color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

/* Tab Panels */
.about-panel {
    display: none;
}

.about-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Philosophy Tab */
.about-intro {
    max-width: min(700px, 90vw);
    margin: 0 auto clamp(8px, 1.5vh, 28px);
    padding: clamp(10px, 1.5vh, 28px);
    text-align: center;
    background-image: url('../assets/aboutUs-banner.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.about-intro-text {
    font-size: clamp(7px, 1.2vh, 9px);
    color: var(--text-light);
    line-height: 2;
    position: relative;
    z-index: 1;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(10px, 1.5vh, 18px);
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-card {
    padding: clamp(8px, 1.5vh, 24px);
    text-align: center;
    transition: all 0.2s ease;
}

.philosophy-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-window), var(--glow-cyan);
}

.philosophy-icon {
    font-size: clamp(18px, 3vh, 28px);
    margin-bottom: clamp(6px, 1vh, 14px);
}

.philosophy-title {
    font-size: clamp(7px, 1.2vh, 9px);
    color: var(--accent-cyan);
    margin-bottom: clamp(6px, 1vh, 12px);
}

.philosophy-desc {
    font-size: clamp(6px, 1vh, 8px);
    color: var(--text-muted);
    line-height: clamp(1.6, 0.3vh + 1.4, 2.2);
}

/* Party/Team Tab */
.party-intro {
    text-align: center;
    margin-bottom: 28px;
}

.party-intro-text {
    font-size: 9px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 2.2;
}

.party-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.party-member {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.party-member:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-window), var(--glow-gold);
}

.member-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.member-name {
    font-size: 8px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-role {
    font-size: 7px;
    color: var(--text-muted);
}

.member-class {
    font-size: 7px;
    color: var(--accent-gold);
    padding: 4px 10px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 4px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .party-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .about-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .about-tab {
        width: 200px;
        text-align: center;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .party-grid {
        grid-template-columns: 1fr;
    }
}

.ornate-divider {
    text-align: center;
    margin: 28px 0;
    color: var(--accent-gold);
    font-size: 10px;
    letter-spacing: 10px;
}

/* Continue Prompt - Fixed floating navigation */
.continue-prompt {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.continue-prompt.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.continue-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 9px;
    color: var(--accent-gold);
    padding: 14px 20px;
    transition: all 0.3s ease;
    position: relative;
    background: var(--ff-window-gradient);
    border: 3px solid var(--ff-border);
    border-radius: 8px;
    box-shadow: var(--shadow-window), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.continue-btn::before {
    content: '';
    position: absolute;
    top: 3px; left: 3px; right: 3px; bottom: 3px;
    border: 1px solid var(--ff-border-inner);
    border-radius: 4px;
    pointer-events: none;
}

.continue-btn span {
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.continue-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-window), var(--glow-gold);
}

.continue-btn:hover span { 
    animation: none;
    opacity: 1;
}

/* Responsive adjustments for continue button */
@media (max-width: 600px) {
    .continue-prompt {
        bottom: 16px;
        right: 16px;
    }
    
    .continue-btn {
        padding: 12px 16px;
        font-size: 8px;
    }
}

/* =========================================
   GAMES SECTION
   ========================================= */
.games-section {
    height: 100vh;
    height: 100dvh;
    padding: clamp(40px, 5vh, 80px) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
}



/* Section page indicator */
.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-cyan), var(--accent-purple));
    margin: 20px auto 0;
    border-radius: 2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 2.5vh, 28px);
}

.game-card {
    background: linear-gradient(180deg, rgba(42, 74, 106, 0.85) 0%, rgba(26, 35, 50, 0.85) 100%);
    border: clamp(2px, 0.3vw, 3px) solid var(--ff-border);
    border-radius: clamp(8px, 1vw, 12px);
    backdrop-filter: blur(8px);
    overflow: hidden;
    box-shadow: var(--shadow-window);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 2px solid var(--ff-border-inner);
    border-radius: calc(var(--window-radius) - 4px);
    pointer-events: none;
    z-index: 1;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-window), var(--glow-cyan);
}

.game-card:active {
    transform: translateY(-5px);
}

.game-image {
    position: relative;
    height: 170px;
    overflow: hidden;
    border-bottom: 3px solid var(--ff-border-inner);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 7px;
    padding: 6px 14px;
    background: var(--ff-window-bottom);
    border: 2px solid;
    border-radius: 6px;
    z-index: 2;
    letter-spacing: 1px;
}

.game-badge-live {
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
    animation: live-glow 2s ease-in-out infinite;
}

@keyframes live-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(74, 222, 128, 0.4); }
    50% { box-shadow: 0 0 25px rgba(74, 222, 128, 0.7); }
}

.game-badge-dev {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.game-content {
    padding: 24px;
}

.game-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.game-logo img {
    height: 36px;
    width: auto;
    filter: brightness(1.2);
    object-fit: contain;
}

.game-name {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 1.5px;
    margin: 0;
}

.game-description {
    font-size: 9px;
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 2.4;
}

.game-hint {
    display: block;
    text-align: center;
    font-size: 8px;
    color: var(--accent-gold);
    padding-top: 16px;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.game-card:hover .game-hint {
    opacity: 1;
    animation: pointer-blink 0.5s infinite;
}

/* Game Detail View - In-Section */
.game-detail-view {
    display: none;
    animation: fadeIn 0.4s ease;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.game-detail-view.active {
    display: block;
}

/* Helper class to stop snapping when looking at details */
.no-snap {
    scroll-snap-type: none !important;
}

.games-select-view.hidden {
    display: none;
}

/* Unified Game Panel - Single cohesive container */
.game-panel {
    overflow: hidden;
    border-radius: clamp(8px, 1.2vw, 12px);
    padding: 0; /* Override ff-window padding */
    background: linear-gradient(180deg, rgba(42, 74, 106, 0.85) 0%, rgba(26, 35, 50, 0.85) 100%);
    backdrop-filter: blur(8px);
    max-width: 95vw;
    margin: 0 auto;
}

.game-panel::before {
    display: none; /* Remove inner border from ff-window */
}

/* Panel Header - Game title bar */
.game-panel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.game-back-btn {
    font-family: var(--font-pixel);
    font-size: 8px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.game-back-btn:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: var(--glow-gold);
}

.game-panel-title {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.game-detail-logo {
    height: 36px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.game-detail-badge {
    font-size: 7px;
    padding: 5px 12px;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    border-radius: 4px;
    animation: pulse-glow 2s ease infinite;
    white-space: nowrap;
}

.game-detail-badge.sealed {
    border-color: var(--text-muted);
    color: var(--text-muted);
    animation: none;
}

.game-panel-meta {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.meta-tag {
    font-size: 7px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Panel Content - Vertical stacked layout */
.game-panel-content {
    display: flex;
    flex-direction: column;
}

/* Gallery section - Full width */
.game-panel-gallery {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 40, 0.7) 100%);
    overflow: hidden;
}

/* Image viewer with arrows */
.game-image-viewer {
    display: flex;
    align-items: center;
    position: relative;
    padding: 12px 0;
}

.gallery-arrow {
    font-family: var(--font-pixel);
    font-size: 14px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    flex-shrink: 0;
}

.gallery-arrow:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: var(--glow-gold);
}

.gallery-prev {
    margin-left: 16px;
}

.gallery-next {
    margin-right: 16px;
}

.game-main-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    min-height: 320px;
    height: 45vh;
    max-height: 420px;
    overflow: hidden;
}

.game-main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.game-thumbs-row {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    margin: 12px 16px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) rgba(0, 0, 0, 0.3);
}

.game-thumb {
    flex: 0 0 90px;
    aspect-ratio: 16/9;
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.game-thumb:hover,
.game-thumb.active {
    opacity: 1;
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Description section - Below gallery */
.game-panel-description {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.15) 100%);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.game-detail-desc {
    flex: 1;
    font-size: 10px;
    color: var(--text-light);
    line-height: 2;
    margin: 0;
}

.btn-play {
    flex-shrink: 0;
    padding: 14px 28px;
    font-size: 10px;
    white-space: nowrap;
}

/* Features section - Bottom */
.game-panel-features {
    padding: 20px 28px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.features-header {
    font-size: 9px;
    color: var(--accent-gold);
    margin-bottom: 16px;
    text-align: center;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.detail-feature {
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border-left: 3px solid var(--accent-cyan);
    transition: all 0.2s ease;
}

.detail-feature:hover {
    background: rgba(0, 184, 230, 0.1);
    transform: translateX(4px);
}

.detail-feature-title {
    font-size: 8px;
    color: var(--accent-cyan);
    margin-bottom: 6px;
}

.detail-feature-desc {
    font-size: 8px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Responsive adjustments for game detail */
@media (max-width: 800px) {
    .game-panel-header {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .game-panel-title {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .game-back-btn {
        order: 1;
    }
    
    .game-panel-meta {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .game-detail-logo {
        height: 28px;
    }
    
    .game-image-viewer {
        padding: 12px 0;
    }
    
    .game-main-image {
        min-height: 220px;
        height: 35vh;
        max-height: 300px;
        padding: 0 10px;
    }
    
    .gallery-arrow {
        padding: 14px 10px;
        font-size: 12px;
    }
    
    .gallery-prev {
        margin-left: 8px;
    }
    
    .gallery-next {
        margin-right: 8px;
    }
    
    .game-thumbs-row {
        padding: 12px 16px;
        margin: 8px 12px;
        justify-content: flex-start;
    }
    
    .game-panel-description {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 16px 20px;
    }
    
    .game-panel-features {
        padding: 16px 20px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   TOKEN SECTION
   ========================================= */
.token-section {
    height: 100vh;
    height: 100dvh;
    padding: clamp(40px, 5vh, 80px) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
}


/* Token Layout - 3 Card Grid */
.token-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 2.4vw, 24px);
    max-width: min(1200px, 95vw);
    margin: 0 auto;
}

.token-card {
    background: linear-gradient(180deg, rgba(42, 74, 106, 0.85) 0%, rgba(26, 35, 50, 0.85) 100%);
    border: clamp(2px, 0.3vw, 3px) solid var(--ff-border);
    border-radius: clamp(8px, 1vw, 12px);
    backdrop-filter: blur(8px);
    padding: clamp(16px, 2.5vw, 28px);
    box-shadow: var(--shadow-window);
    position: relative;
}

.token-card::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 2px solid var(--ff-border-inner);
    border-radius: calc(var(--window-radius) - 4px);
    pointer-events: none;
}

.token-card-title {
    font-size: 10px;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    text-align: center;
}

/* Presale Card */
.presale-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.presale-badge {
    font-size: 9px;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    letter-spacing: 3px;
}

.presale-amount {
    font-size: clamp(20px, 3.5vw, 32px);
    color: var(--text-light);
    font-weight: bold;
    text-shadow: 0 0 20px rgba(0, 184, 230, 0.5);
    margin-bottom: 4px;
}

.presale-subtitle {
    font-size: 8px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.presale-timeline {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.timeline-label {
    font-size: 7px;
    color: var(--text-muted);
}

.timeline-value {
    font-size: 10px;
    color: var(--text-light);
}

/* Info Card */
.info-card .token-intro {
    font-size: 8px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
}

.token-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.token-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 18px;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-title {
    font-size: 8px;
    color: var(--text-light);
}

.feature-desc {
    font-size: 6px;
    color: var(--text-muted);
}

/* Tokenomics Card */
.tokenomics-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tokenomics-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tokenomics-label {
    font-size: 8px;
    color: var(--text-muted);
}

.tokenomics-value {
    font-size: 9px;
    color: var(--accent-cyan);
}

.token-intro {
    font-size: 9px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 2.4;
}

.token-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.token-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-label {
    font-size: 7px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.stat-value {
    font-size: 14px;
    color: var(--accent-cyan);
}

.stat-soon {
    color: var(--accent-gold);
    animation: blink 1.5s infinite;
}

.token-uses {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.use-item {
    font-size: 8px;
    color: var(--text-light);
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.use-item:hover {
    background: rgba(0, 184, 230, 0.15);
    border-color: var(--brand-cyan);
}

.token-cta {
    margin-top: 8px;
}

/* Token Tabs */
.token-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.token-tab {
    background: linear-gradient(180deg, rgba(42, 74, 106, 0.6) 0%, rgba(26, 35, 50, 0.6) 100%);
    border: 2px solid var(--ff-border);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 32px;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 180px;
    text-align: center;
}

.token-tab::before {
    content: '';
    position: absolute;
    top: 2px; left: 2px; right: 2px; bottom: 2px;
    border: 1px solid var(--ff-border-inner);
    border-radius: 5px;
    pointer-events: none;
}

.token-tab:hover {
    background: linear-gradient(180deg, rgba(42, 74, 106, 0.85) 0%, rgba(26, 35, 50, 0.85) 100%);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.token-tab.active {
    background: linear-gradient(180deg, rgba(0, 255, 255, 0.15) 0%, rgba(0, 128, 128, 0.15) 100%);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4), inset 0 0 20px rgba(0, 255, 255, 0.1);
}

/* Token Panels */
.token-panel {
    display: none;
}

.token-panel.active {
    display: block;
}

/* Roadmap Selection & Trees */
.roadmap-selection,
.roadmap-tree {
    display: none;
}

.roadmap-selection.active,
.roadmap-tree.active {
    display: block;
}

/* Roadmap tree wrapper */
.roadmap-tree {
    position: relative;
}

/* Game Path Selection */
.roadmap-selection {
    padding: 40px 20px;
    text-align: center;
}

.selection-header {
    background: linear-gradient(180deg, rgba(42, 74, 106, 0.95) 0%, rgba(26, 35, 50, 0.95) 100%);
    border: 3px solid var(--ff-border);
    border-radius: 12px;
    padding: 24px 40px;
    margin: 0 auto 40px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.selection-header::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid var(--ff-border-inner);
    border-radius: 9px;
    pointer-events: none;
}

.selection-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    margin-bottom: 12px;
}

.selection-subtitle {
    font-size: 11px;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.game-paths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.game-path {
    background: linear-gradient(180deg, rgba(42, 74, 106, 0.8) 0%, rgba(26, 35, 50, 0.8) 100%);
    border: 3px solid var(--ff-border);
    border-radius: 16px;
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-path::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0) 0%, rgba(0, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-path:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
    transform: translateY(-8px);
}

.game-path:hover::before {
    opacity: 1;
}

/* Logo wrapper for consistent height */
.path-logo-wrap {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.path-logo {
    height: 100px;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3));
    transition: all 0.3s ease;
}

.path-logo.hoardable {
    height: 70px;
}

.path-logo-wrap .path-icon {
    font-size: 64px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3));
}

.game-path:hover .path-logo {
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.6));
    transform: scale(1.05);
}

.game-path:hover .path-icon {
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.6));
    transform: scale(1.05);
}

/* Locked game paths */
.game-path.locked {
    cursor: not-allowed;
}

.game-path.locked:hover {
    transform: none;
    border-color: var(--ff-border);
    box-shadow: none;
}

.game-path.locked::before {
    opacity: 0 !important;
}

.game-path.locked:hover .path-logo,
.game-path.locked:hover .path-icon {
    transform: none;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3));
}

.path-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}

.path-desc {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    line-height: 1.6;
    flex-grow: 1;
}

.path-status {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #000;
    font-size: 8px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    margin-top: auto;
    letter-spacing: 1px;
}

.path-status.upcoming {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #0088cc 100%);
    color: #000;
}

.path-status.secret {
    background: linear-gradient(135deg, #666 0%, #333 100%);
    color: var(--accent-gold);
}

/* Roadmap Tree Wrapper */
.roadmap-tree-inner {
    background: linear-gradient(180deg, rgba(42, 74, 106, 0.6) 0%, rgba(26, 35, 50, 0.8) 100%);
    border: 2px solid var(--ff-border);
    border-radius: 16px;
    margin: 20px auto;
    overflow: hidden;
    position: relative;
    width: 900px;
    max-width: calc(100vw - 40px);
    transition: width 0.1s ease;
}

/* Resize handles */
.resize-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    cursor: ew-resize;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.resize-handle:hover,
.resize-handle.active {
    opacity: 1;
}

.resize-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 80px;
    background: var(--accent-cyan);
    border-radius: 3px;
    box-shadow: 0 0 15px var(--accent-cyan);
}

.resize-handle-left {
    left: -25px;
}

.resize-handle-left::before {
    right: 10px;
}

.resize-handle-right {
    right: -25px;
}

.resize-handle-right::before {
    left: 10px;
}

.roadmap-tree-inner.resizing {
    transition: none !important;
}

/* Back Button - Top Left Corner */
.tree-back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 20;
    background: linear-gradient(180deg, rgba(26, 35, 50, 0.95) 0%, rgba(15, 20, 30, 0.95) 100%);
    border: 2px solid var(--ff-border);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
}

.tree-back-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.tree-back-btn::before {
    content: '◄';
    font-size: 12px;
}

/* Roadmap Header */
.roadmap-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    padding-top: 80px; /* Space for back button */
}

.roadmap-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.roadmap-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.4));
}

.roadmap-logo.hoardable-logo {
    height: 55px;
}

.roadmap-icon {
    font-size: 50px;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.4));
}

.roadmap-title-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 18px;
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    margin: 0;
}

.header-spacer {
    display: none;
}

/* Roadmap Skill Tree */
.roadmap-container {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 30px 20px 40px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) rgba(0, 0, 0, 0.3);
    cursor: grab;
    user-select: none;
    position: relative;
}

.roadmap-container::after {
    content: '← DRAG TO EXPLORE →';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    pointer-events: none;
    animation: dragHintPulse 3s ease-in-out infinite;
}

@keyframes dragHintPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.roadmap-container.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.roadmap-container.dragging::after {
    opacity: 0;
}

.roadmap-container::-webkit-scrollbar {
    height: 8px;
}

.roadmap-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.roadmap-container::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 4px;
}

.skill-tree {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    min-width: max-content;
    padding: 20px 80px;
}

.skill-node {
    position: relative;
    width: 380px;
    flex-shrink: 0;
    opacity: 1;
    transition: all 0.5s ease;
}

.skill-node.completed .node-icon {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    animation: pulseGreen 2s ease-in-out infinite;
}

.skill-node:not(.completed):not(.legendary) .node-icon {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.4) 0%, rgba(0, 136, 204, 0.4) 100%);
}

.skill-node:not(.completed):not(.legendary) .node-content {
    background: linear-gradient(180deg, rgba(42, 74, 106, 0.7) 0%, rgba(26, 35, 50, 0.7) 100%);
}

.skill-node.legendary .node-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    animation: pulseLegendary 2s ease-in-out infinite;
}

/* Node Connector Line */
.node-connector {
    position: absolute;
    left: 100%;
    top: 50%;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, rgba(0, 255, 255, 0.3) 100%);
    transform: translateY(-50%);
    z-index: -1;
}

.skill-node:last-child .node-connector {
    display: none;
}

.skill-node:not(.completed) .node-connector {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
}

/* Node Icon */
.node-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #0088cc 100%);
    border: 4px solid var(--ff-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.skill-node:hover .node-icon {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.8);
}

/* Node Content */
.node-content {
    background: linear-gradient(180deg, rgba(42, 74, 106, 0.95) 0%, rgba(26, 35, 50, 0.95) 100%);
    border: 2px solid var(--ff-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.skill-node:hover .node-content {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
}

.skill-node.completed:hover .node-content {
    border-color: #00ff88;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.3);
}

.skill-node.legendary:hover .node-content {
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

.node-content::before {
    content: '';
    position: absolute;
    top: 2px; left: 2px; right: 2px; bottom: 2px;
    border: 1px solid var(--ff-border-inner);
    border-radius: 10px;
    pointer-events: none;
}

.node-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: var(--accent-cyan);
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.node-quarter {
    font-family: monospace;
    font-size: 10px;
    color: var(--accent-gold);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.node-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    flex: 1;
}

.node-features li {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    padding-left: 4px;
    line-height: 1.5;
}

.node-features li:last-child {
    margin-bottom: 0;
}

/* Roadmap Legend */
.roadmap-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--ff-border);
    background: rgba(255, 255, 255, 0.1);
}

.legend-dot.completed {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.legend-dot.active {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #0088cc 100%);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    animation: pulseCyan 1.5s ease-in-out infinite;
}

.legend-dot.legendary {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* Animations */
@keyframes pulseGreen {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 255, 136, 0.9);
    }
}

@keyframes pulseLegendary {
    0%, 100% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 215, 0, 1);
    }
}

@keyframes pulseCyan {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    }
}

/* Feature Detail Modal */
.feature-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.feature-modal.active {
    display: flex;
}

.feature-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.feature-modal-content {
    position: relative;
    background: linear-gradient(180deg, rgba(42, 74, 106, 0.98) 0%, rgba(26, 35, 50, 0.98) 100%);
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 60px rgba(0, 255, 255, 0.4);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    animation: modalSlideIn 0.3s ease-out;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.feature-modal-content::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    pointer-events: none;
}

.feature-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(26, 35, 50, 0.95);
    border: 2px solid var(--accent-cyan);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.feature-modal-close:hover {
    color: var(--accent-cyan);
    transform: rotate(90deg);
}

.feature-modal-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.feature-modal-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
}

.feature-modal-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    color: var(--accent-cyan);
    text-align: center;
    margin-bottom: 24px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    line-height: 1.6;
}

.feature-modal-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    text-align: left;
}

.feature-modal-description strong {
    color: var(--accent-gold);
}

.feature-modal-description ul {
    margin: 16px 0;
    padding-left: 24px;
}

.feature-modal-description li {
    margin-bottom: 8px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Make feature list items clickable */
.node-features li {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpolygon fill='%2300E5FF' stroke='%231A2332' stroke-width='1' points='4,4 4,20 10,16 14,22 18,20 14,14 20,14'/%3E%3C/svg%3E") 4 4, pointer;
    transition: all 0.2s ease;
    padding: 4px 8px;
    margin: 0 -8px 8px;
    border-radius: 4px;
}

.node-features li:hover {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-cyan);
    transform: translateX(4px);
}

/* No details class - removes interactivity */
.node-features.no-details li {
    cursor: default;
    padding: 4px 0;
    margin: 0 0 8px;
}

.node-features.no-details li:hover {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    transform: none;
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .feature-modal-content {
        max-width: 95%;
    }
    
    .feature-modal-body {
        padding: 30px 24px;
    }
    
    .feature-modal-icon {
        font-size: 48px;
    }
    
    .feature-modal-title {
        font-size: 12px;
    }
    
    .feature-modal-description {
        font-size: 11px;
    }
}

@media (max-width: 900px) {
    .token-layout {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    
    .token-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .token-card {
        padding: 24px 20px;
    }
    
    .presale-amount {
        font-size: 24px;
    }
    
    .presale-timeline {
        flex-direction: column;
        gap: 12px;
    }
}

/* =========================================
   COMMUNITY SECTION
   ========================================= */
.community-section {
    height: 100vh;
    height: 100dvh;
    padding: clamp(40px, 5vh, 100px) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    position: relative;
    overflow: hidden;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 2vh, 22px);
    margin-bottom: clamp(28px, 5vh, 56px);
}

.social-card {
    background: var(--ff-window-gradient);
    border: clamp(2px, 0.3vw, 3px) solid var(--ff-border);
    border-radius: clamp(8px, 1vw, 12px);
    padding: clamp(16px, 2.8vw, 28px);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 2px solid var(--ff-border-inner);
    border-radius: calc(var(--window-radius) - 4px);
    pointer-events: none;
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-window), var(--glow-gold);
}

.social-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.social-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 10px currentColor);
}

.social-discord .social-icon { color: #5865F2; }
.social-twitter .social-icon { color: #1DA1F2; }
.social-telegram .social-icon { color: #0088CC; }
.social-youtube .social-icon { color: #FF0000; }

/* Social card backgrounds */
.social-discord {
    background: linear-gradient(180deg, 
        rgba(30, 35, 60, 0.5) 0%,
        rgba(30, 35, 60, 0.3) 100%
    ), url('../assets/social/discord.png');
    background-size: cover;
    background-position: center;
}

.social-twitter {
    background: linear-gradient(180deg, 
        rgba(30, 35, 60, 0.5) 0%,
        rgba(30, 35, 60, 0.3) 100%
    ), url('../assets/social/twitter.png');
    background-size: cover;
    background-position: center;
}

.social-telegram {
    background: linear-gradient(180deg, 
        rgba(30, 35, 60, 0.5) 0%,
        rgba(30, 35, 60, 0.3) 100%
    ), url('../assets/social/telegram.png');
    background-size: cover;
    background-position: center;
}

.social-youtube {
    background: linear-gradient(180deg, 
        rgba(30, 35, 60, 0.5) 0%,
        rgba(30, 35, 60, 0.3) 100%
    ), url('../assets/social/youtube.png');
    background-size: cover;
    background-position: center;
}

.social-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.social-flavor {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.social-action {
    font-size: 12px;
    color: var(--accent-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

/* Paint reveal effect */
.paint-section {
    position: relative;
}

.paint-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.paint-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    background-size: cover;
    background-position: center;
}

/* Base layer - background image with white gradient overlay (always visible) */
.paint-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* White gradient overlay on the base background */
.paint-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(253, 251, 247, 0.75) 0%,
        rgba(249, 247, 252, 0.65) 30%,
        rgba(249, 247, 252, 0.65) 70%,
        rgba(253, 251, 247, 0.75) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.about-section::before {
    background-image: url('../assets/Harbor_City.png');
}

.games-section::before {
    background-image: url('../assets/yumi_splashart_fn.png');
}

.token-section::before {
    background-image: url('../assets/Vault.png');
}

.community-section::before {
    background-image: url('../assets/community-bg.png');
}

.about-section .paint-bg {
    background-image: url('../assets/Harbor_City.png');
}

.games-section .paint-bg {
    background-image: url('../assets/yumi_splashart_fn.png');
}

.token-section .paint-bg {
    background-image: url('../assets/Vault.png');
}

.community-section .paint-bg {
    background-image: url('../assets/community-bg.png');
}


/* Floating orbs effect */
.paint-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease;
}

.paint-orbs.active {
    opacity: 1;
}

/* Ensure content is above paint layers */
.paint-section > .container {
    position: relative;
    z-index: 5;
}

/* Text color change when painted over */
.eyebrow.paint-revealed,
.section-title.paint-revealed {
    color: var(--text-light) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 1),
        rgba(255, 255, 255, 0.8) 40%,
        rgba(200, 220, 255, 0.4) 70%,
        transparent);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9),
                0 0 12px rgba(255, 255, 255, 0.6),
                0 0 20px rgba(200, 220, 255, 0.4);
    animation: rise-orb linear infinite, sparkle 1.5s ease-in-out infinite;
    bottom: -20px;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes rise-orb {
    0% {
        bottom: -20px;
        margin-left: 0;
    }
    100% {
        bottom: 120%;
        margin-left: var(--drift, 20px);
    }
}

/* Newsletter */
.newsletter {
    max-width: 540px;
    margin: 0 auto;
    background: var(--ff-window-gradient);
    border: var(--window-border) solid var(--ff-border);
    border-radius: var(--window-radius);
    padding: clamp(20px, 4vh, 40px);
    text-align: center;
    box-shadow: var(--shadow-window);
    position: relative;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.newsletter.highlight {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-window), 0 0 40px rgba(0, 255, 255, 0.6), 0 0 80px rgba(0, 255, 255, 0.3);
    animation: highlightPulse 1.5s ease-out;
}

@keyframes highlightPulse {
    0% {
        box-shadow: var(--shadow-window), 0 0 60px rgba(0, 255, 255, 0.8), 0 0 100px rgba(0, 255, 255, 0.5);
    }
    50% {
        box-shadow: var(--shadow-window), 0 0 40px rgba(0, 255, 255, 0.6), 0 0 80px rgba(0, 255, 255, 0.3);
    }
    100% {
        box-shadow: var(--shadow-window);
        border-color: var(--ff-border);
    }
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 2px solid var(--ff-border-inner);
    border-radius: calc(var(--window-radius) - 4px);
    pointer-events: none;
}

.newsletter-title {
    font-size: 12px;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.newsletter-subtitle {
    font-size: 8px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.form-group {
    display: flex;
    gap: 14px;
}

.form-input {
    flex: 1;
    font-family: var(--font-pixel);
    font-size: 9px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: var(--text-light);
    outline: none;
    transition: all 0.2s ease;
}

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

.form-input:focus {
    border-color: var(--brand-cyan);
    box-shadow: var(--glow-cyan);
}

.form-success {
    display: none;
    margin-top: 18px;
    font-size: 9px;
    color: var(--accent-green);
}

.form-success.show {
    display: block;
    animation: blink 0.5s 3;
}

@media (max-width: 1024px) {
    .social-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .social-grid { grid-template-columns: 1fr; }
    .form-group { flex-direction: column; }
}

/* =========================================
   PARTNERS SECTION
   ========================================= */
/* Partners & Footer combine as the credits page */
.partners-section {
    padding: 40px 0 20px;
    background: var(--ff-window-gradient);
    scroll-snap-align: start;
}

.partners-section .section-header {
    margin-bottom: 32px;
}

.partners-section .eyebrow {
    color: var(--accent-gold);
}

/* End/Credits button style */
.end-btn {
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-soft), var(--glow-purple);
}

.end-btn:hover {
    box-shadow: var(--shadow-window), 0 0 30px rgba(155, 126, 217, 0.5);
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 48px;
}

.partner-logo {
    opacity: 0.6;
    filter: brightness(1.5) grayscale(50%);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    filter: brightness(1.5) grayscale(0%);
    transform: scale(1.1);
}

.partner-logo img {
    height: 36px;
    width: auto;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--ff-window-gradient);
    padding: 48px 0 32px;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    margin-bottom: 52px;
}

.footer-title {
    font-size: 9px;
    color: var(--accent-gold);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 8px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    padding: 5px 0 5px 20px;
    position: relative;
}

.footer-links a::before {
    content: '▶';
    position: absolute;
    left: 0;
    font-size: 6px;
    opacity: 0;
    color: var(--accent-gold);
    transition: opacity 0.2s ease;
}

.footer-links a:hover { color: var(--text-light); }
.footer-links a:hover::before { opacity: 1; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    font-size: 8px;
    color: var(--text-muted);
}

.footer-email {
    font-size: 8px;
    color: var(--accent-cyan);
}

.footer-email:hover { text-shadow: var(--glow-cyan); }

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.15);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================
   ANIMATIONS
   ========================================= */
.animate-fade-in {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeIn 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.3s; }
.animate-delay-2 { animation-delay: 0.6s; }
.animate-delay-3 { animation-delay: 0.9s; }
.animate-delay-4 { animation-delay: 1.2s; }

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-delay-1 { transition-delay: 0.2s; }
.scroll-reveal-delay-2 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* =========================================
   UTILITY & CLEANUP
   ========================================= */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-overlay,
.hero-pattern,
.hero-border-top,
.diagram-arrow svg {
    display: none;
}

/* =========================================
   TABLET RESPONSIVE (iPad, tablets)
   768px - 1024px
   ========================================= */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Enable scroll-snap on tablets */
    html {
        scroll-snap-type: y mandatory;
    }
    
    /* Keep desktop navigation, no bottom nav */
    .mobile-bottom-nav {
        display: none !important;
    }
    
    /* Full viewport sections on tablet with snap */
    .about-section,
    .games-section,
    .token-section,
    .community-section {
        min-height: 100vh;
        min-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        padding: 60px 0;
        overflow: hidden;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    
    .footer {
        scroll-snap-align: start;
    }
    
    /* Hero adjustments */
    .hero-box {
        padding: 36px 40px;
        max-width: 600px;
    }
    
    .hero-title {
        font-size: 14px;
    }
    
    .hero-subtitle {
        font-size: 10px;
    }
    
    .hero-logo-text {
        font-size: 22px;
    }
    
    /* Section headers */
    .section-title {
        font-size: 16px;
    }
    
    .eyebrow {
        font-size: 10px;
    }
    
    /* Philosophy grid - 2x2 on tablet */
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 700px;
    }
    
    .philosophy-card {
        padding: 20px;
    }
    
    .philosophy-title {
        font-size: 10px;
    }
    
    .philosophy-desc {
        font-size: 8px;
    }
    
    /* Party/Team grid - 3 columns on tablet */
    .party-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .party-member {
        padding: 16px;
    }
    
    /* Games grid - 2 columns on tablet (no carousel) */
    .games-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        overflow: visible;
        padding: 0 20px;
    }
    
    .game-card {
        flex: none;
        width: 100%;
    }
    
    /* Third game card spans full width centered */
    .games-grid .game-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }
    
    .game-image img {
        height: 180px;
    }
    
    .game-content {
        padding: 16px;
    }
    
    .game-name {
        font-size: 12px;
    }
    
    .game-description {
        font-size: 9px;
    }
    
    /* Game detail - better layout */
    .game-panel-content {
        gap: 16px;
    }
    
    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Token cards - horizontal layout */
    .token-layout {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        overflow: visible;
    }
    
    .token-card {
        flex: none;
        width: 100%;
        padding: 20px;
    }
    
    .presale-amount {
        font-size: 32px;
    }
    
    .token-card-title {
        font-size: 11px;
    }
    
    /* Social cards - 2x2 grid */
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .social-card {
        padding: 24px;
    }
    
    .social-name {
        font-size: 12px;
    }
    
    /* Newsletter */
    .newsletter {
        max-width: 500px;
    }
    
    /* About intro */
    .about-intro {
        max-width: 600px;
        padding: 24px;
    }
    
    .about-intro-text {
        font-size: 9px;
    }
    
    /* Hide swipe hints on tablet (no carousel) */
    .swipe-hint {
        display: none !important;
    }
    
    /* Footer grid */
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Continue prompt positioning */
    .continue-prompt {
        bottom: 24px;
    }
    
    /* Larger touch targets for tablet */
    .btn {
        min-height: 48px;
        padding: 14px 28px;
    }
    
    .about-tab {
        padding: 14px 24px;
        font-size: 10px;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 11px;
    }
}

/* =========================================
   MOBILE BOTTOM NAVIGATION
   ========================================= */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(42, 74, 106, 0.98) 0%, rgba(26, 35, 50, 0.98) 100%);
    border-top: 3px solid var(--ff-border);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.mobile-bottom-nav::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    /* Hide desktop nav elements on mobile */
    .nav-cta {
        display: none !important;
    }
    
    /* Add padding to bottom of page for nav */
    body {
        padding-bottom: 80px;
    }
    
    /* Position continue button above mobile nav */
    .continue-prompt {
        bottom: 90px;
        right: 16px;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-size: 8px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--accent-cyan);
}

.mobile-nav-item.active {
    background: rgba(0, 184, 230, 0.1);
}

.mobile-nav-icon {
    width: 20px;
    height: 20px;
}

.mobile-nav-item span {
    font-family: var(--font-pixel);
    font-size: 7px;
    font-size: 6px;
    letter-spacing: 0.5px;
}

/* =========================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ========================================= */
@media (max-width: 768px) {
    /* Hero adjustments */
    .hero-box {
        padding: 24px 20px;
        margin: 0 16px;
    }
    
    .hero-logo-text {
        font-size: 14px !important;
    }
    
    .hero-title {
        font-size: 11px !important;
        line-height: 1.8;
    }
    
    .hero-subtitle {
        font-size: 7px !important;
    }
    
    .press-start-btn {
        font-size: 10px !important;
        padding: 16px 32px !important;
    }
    
    .press-start {
        font-size: 7px !important;
    }
    
    .video-pause-btn {
        bottom: 16px;
        left: 16px;
        width: 36px;
        height: 36px;
    }
    
    /* Section headers */
    .section-header {
        margin-bottom: 24px;
    }
    
    .section-title {
        font-size: 12px !important;
    }
    
    .eyebrow {
        font-size: 8px !important;
    }
    
    /* Game cards grid */
    .games-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 0 16px 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .games-grid::-webkit-scrollbar {
        display: none;
    }
    
    .game-card {
        flex: 0 0 calc(100% - 32px);
        scroll-snap-align: center;
        padding: 20px;
    }
    
    /* Game detail view */
    .game-panel {
        margin: 0 16px;
    }
    
    .game-panel-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .game-panel-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .game-image-viewer {
        padding: 8px;
    }
    
    .gallery-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .game-thumbs-row {
        gap: 6px;
        padding: 8px;
    }
    
    .game-thumb {
        width: 50px;
        height: 35px;
    }
    
    .game-panel-description {
        padding: 16px;
    }
    
    .game-panel-features {
        padding: 16px;
    }
    
    .features-list {
        grid-template-columns: 1fr !important;
    }
    
    /* About section */
    .about-intro {
        padding: 20px;
        margin: 0 16px 24px;
    }
    
    .about-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 16px;
    }
    
    .about-tab {
        padding: 10px 16px;
        font-size: 8px;
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
    
    .about-panel {
        overflow: hidden;
        width: 100%;
        position: relative;
    }
    
    .philosophy-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 0 16px 12px;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .philosophy-grid::-webkit-scrollbar {
        display: none;
    }
    
    .philosophy-card {
        flex: 0 0 100%;
        scroll-snap-align: start;
        padding: 16px;
        box-sizing: border-box;
    }
    
    .party-grid {
        padding: 0 16px;
    }
    
    .party-member {
        padding: 16px;
    }
    
    /* Token section */
    .token-layout {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 0 16px 12px;
        max-width: 100% !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .token-layout::-webkit-scrollbar {
        display: none;
    }
    
    .token-card {
        flex: 0 0 calc(100% - 32px);
        scroll-snap-align: center;
    }
    
    .presale-amount {
        font-size: 28px;
    }
    
    /* Token tabs mobile */
    .token-tabs {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 20px;
        padding: 0 16px;
    }
    
    .token-tab {
        flex: 1;
        padding: 10px 16px;
        font-size: 8px;
    }
    
    /* Roadmap mobile */
    .selection-header {
        padding: 16px 20px;
        margin-bottom: 24px;
    }
    
    .selection-title {
        font-size: 10px;
    }
    
    .selection-subtitle {
        font-size: 8px;
    }
    
    .game-paths {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    
    .game-path {
        padding: 24px 20px;
    }
    
    .path-logo-wrap {
        height: 70px;
    }
    
    .path-logo-wrap .path-icon {
        font-size: 48px;
    }
    
    .path-logo {
        height: 70px;
    }
    
    .path-logo.hoardable {
        height: 50px;
    }
    
    .path-name {
        font-size: 10px;
    }
    
    .path-desc {
        font-size: 8px;
    }
    
    .roadmap-tree-inner {
        margin: 10px;
        border-radius: 12px;
    }
    
    .roadmap-header {
        padding: 16px;
        padding-top: 60px;
    }
    
    .tree-back-btn {
        top: 10px;
        left: 10px;
        padding: 8px 14px;
        font-size: 8px;
    }
    
    .tree-back-btn::before {
        font-size: 10px;
    }
    
    .roadmap-title {
        gap: 10px;
    }
    
    .roadmap-logo {
        height: 60px;
    }
    
    .roadmap-logo.hoardable-logo {
        height: 45px;
    }
    
    .roadmap-icon {
        font-size: 40px;
    }
    
    .roadmap-title-text {
        font-size: 12px;
    }
    
    .header-spacer {
        width: 36px;
    }
    
    .path-logo-wrap {
        height: 60px;
    }
    
    .path-logo {
        height: 60px;
    }
    
    .path-logo.hoardable {
        height: 42px;
    }
    
    /* Smaller edge fades on mobile */
    .roadmap-container::after {
        font-size: 6px;
        bottom: 4px;
    }
    
    .roadmap-container {
        padding: 20px 0;
    }
    
    .skill-tree {
        gap: 40px;
        padding: 10px 40px;
    }
    
    .skill-node {
        width: 240px;
    }
    
    .node-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .node-connector {
        width: 40px;
    }
    
    .node-content {
        padding: 16px;
        min-height: 220px;
    }
    
    .node-title {
        font-size: 10px;
    }
    
    .node-quarter {
        font-size: 9px;
    }
    
    .node-features li {
        font-size: 8px;
    }
    
    .roadmap-legend {
        gap: 16px;
        margin-top: 24px;
    }
    
    .legend-item {
        font-size: 9px;
    }
    
    .legend-dot {
        width: 12px;
        height: 12px;
    }
    
    /* Social cards */
    .social-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 0 16px 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .social-grid::-webkit-scrollbar {
        display: none;
    }
    
    .social-card {
        flex: 0 0 calc(100% - 32px);
        scroll-snap-align: center;
        padding: 20px;
    }
    
    /* Swipe indicator */
    .swipe-hint {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding: 8px 0;
        color: var(--text-muted);
        font-family: var(--font-pixel);
        font-size: 8px;
        animation: swipe-pulse 2s ease-in-out infinite;
    }
    
    .swipe-hint::before {
        content: '◀';
        font-size: 10px;
    }
    
    .swipe-hint::after {
        content: '▶';
        font-size: 10px;
    }
    
    @keyframes swipe-pulse {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 1; }
    }
    
    /* Carousel Dot Indicators */
    .carousel-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 12px 0 4px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .carousel-dot.active {
        background: var(--brand-cyan);
        border-color: var(--brand-cyan);
        box-shadow: 0 0 8px var(--brand-cyan);
        transform: scale(1.2);
    }
    
    .carousel-dot:hover:not(.active) {
        background: rgba(255, 255, 255, 0.5);
        transform: scale(1.1);
    }
    
    /* Hide swipe hint when dots are present */
    .carousel-dots + .swipe-hint,
    .carousel-dots ~ .swipe-hint {
        display: none !important;
    }
    
    /* Newsletter */
    .newsletter {
        margin: 0 16px;
        padding: 24px 20px;
    }
    
    /* Footer - full height on mobile */
    .footer {
        min-height: 100dvh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 70px 0 100px;
        scroll-snap-align: start;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        text-align: left;
    }
    
    .footer-column {
        padding: 0 16px;
    }
    
    .footer-title {
        font-size: 10px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 0 16px;
    }
    
    /* Loading screen */
    .loading-logo {
        width: 80px;
        height: 80px;
    }
    
    .loading-text {
        font-size: 16px;
    }
    
    .loading-bar {
        width: 200px;
    }
}

/* =========================================
   LANDSCAPE PHONE MODE
   When phone is rotated, disable snap and allow scroll
   ========================================= */
@media (max-width: 900px) and (orientation: landscape),
       (max-height: 500px) {
    /* Disable scroll snap in landscape - content may overflow */
    html {
        scroll-snap-type: none !important;
    }
    
    /* Allow sections to size to content */
    .hero,
    .about-section,
    .games-section,
    .token-section,
    .community-section,
    .footer {
        height: auto !important;
        min-height: auto !important;
        padding: 40px 0 !important;
        scroll-snap-align: none !important;
        overflow: visible !important;
    }
    
    .hero {
        min-height: 100vh !important;
        padding: 30px 0 !important;
    }
    
    /* Smaller hero content in landscape */
    .hero-box {
        padding: 16px 24px;
        margin: 0 20px;
    }
    
    .hero-logo-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .hero-logo-text {
        font-size: 14px !important;
    }
    
    .hero-title {
        font-size: 10px !important;
        margin-bottom: 8px;
    }
    
    .hero-subtitle {
        font-size: 7px !important;
        margin-bottom: 12px;
    }
    
    .press-start-btn {
        font-size: 9px !important;
        padding: 12px 24px !important;
    }
    
    .press-start {
        font-size: 6px !important;
    }
    
    /* Compact section headers */
    .section-header {
        margin-bottom: 16px !important;
    }
    
    .section-title {
        font-size: 11px !important;
    }
    
    .eyebrow {
        font-size: 7px !important;
        margin-bottom: 4px !important;
    }
    
    /* Compact about section */
    .about-intro {
        padding: 12px !important;
        margin-bottom: 16px !important;
    }
    
    .about-intro-text {
        font-size: 7px !important;
        line-height: 1.8 !important;
    }
    
    .about-tabs {
        margin-bottom: 12px !important;
    }
    
    .about-tab {
        padding: 8px 12px !important;
        font-size: 7px !important;
    }
    
    /* Philosophy cards - horizontal row */
    .philosophy-grid {
        gap: 12px !important;
    }
    
    .philosophy-card {
        padding: 12px !important;
        min-width: 200px !important;
    }
    
    .philosophy-icon {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }
    
    .philosophy-title {
        font-size: 8px !important;
    }
    
    .philosophy-desc {
        font-size: 6px !important;
    }
    
    /* Compact game cards */
    .game-card {
        padding: 12px !important;
    }
    
    .game-image img {
        height: 100px !important;
    }
    
    .game-name {
        font-size: 10px !important;
    }
    
    .game-description {
        font-size: 7px !important;
    }
    
    /* Token section compact */
    .token-card {
        padding: 12px !important;
    }
    
    .presale-amount {
        font-size: 24px !important;
    }
    
    .token-card-title {
        font-size: 9px !important;
    }
    
    /* Social cards compact */
    .social-card {
        padding: 16px !important;
    }
    
    .social-name {
        font-size: 10px !important;
    }
    
    /* Hide bottom nav in landscape */
    .mobile-bottom-nav {
        display: none !important;
    }
    
    /* Adjust continue prompt */
    .continue-prompt {
        bottom: 12px !important;
    }
    
    .continue-btn {
        padding: 8px 16px !important;
        font-size: 8px !important;
    }
    
    /* Footer compact */
    .footer {
        padding: 30px 0 !important;
    }
    
    .footer-grid {
        gap: 16px !important;
    }
    
    .footer-title {
        font-size: 8px !important;
    }
    
    .footer-links li {
        margin-bottom: 4px !important;
    }
    
    .footer-links a {
        font-size: 7px !important;
    }
}
