/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: #080818;
}

:root {
    --primary-color: #8b5cf6;
    --secondary-color: #ec4899;
    --accent-color: #06b6d4;
    --bg-dark: #080818;
    --bg-darker: #0f0f2a;
    --text-light: #f8fafc;
    --text-gray: #cbd5e1;
    --card-bg: rgba(15, 15, 42, 0.88);
    --border-color: rgba(139, 92, 246, 0.3);
    --section-overlay: rgba(8, 8, 24, 0.26);
    --heading-shadow: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
    --text-shadow-soft: 0 1px 6px rgba(0, 0, 0, 0.35);
}

body {
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global section overlay - all content sits above the background grid clearly */
main > section {
    position: relative;
    z-index: 1;
}

main > section::before {
    content: '';
    position: absolute;
    inset: -2rem;
    background: var(--section-overlay);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: -1;
    border-radius: 24px;
    pointer-events: none;
}

/* Animated Background */
.stars-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.9) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 40%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 40% 8%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 55% 55%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.9) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 80% 70%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 35%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 75%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(2px 2px at 50% 90%, rgba(168,85,247,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 35% 60%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 65% 80%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 5% 50%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 95% 10%, rgba(255,255,255,0.9) 0%, transparent 100%),
        radial-gradient(1px 1px at 45% 25%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 20% 95%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 75% 45%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(2px 2px at 30% 30%, rgba(168,85,247,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 85%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 5%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 3% 3%, rgba(255,255,255,0.9) 0%, transparent 100%);
    background-size: 600px 600px;
    animation: starDrift 80s linear infinite;
}

.mages-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.mage-card {
    position: absolute;
    width: clamp(120px, 15vw, 220px);
    opacity: 0.42;
    filter: brightness(0.7) saturate(1.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.2), 0 0 22px rgba(168, 85, 247, 0.16);
    animation: mageFloat 14s ease-in-out infinite;
}

.mage-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 8, 24, 0.06), rgba(8, 8, 24, 0.28));
}

.mage-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.mage-card-1 { top: 11%; left: 2%; transform: rotate(-10deg); }
.mage-card-2 { top: 8%; right: 3%; transform: rotate(9deg); }
.mage-card-3 { top: 34%; left: 8%; transform: rotate(-8deg); }
.mage-card-4 { top: 38%; right: 8%; transform: rotate(11deg); }
.mage-card-5 { bottom: 11%; left: 5%; transform: rotate(-12deg); }
.mage-card-6 { bottom: 12%; right: 4%; transform: rotate(8deg); }

@keyframes starDrift {
    0%   { background-position: 0 0; }
    100% { background-position: 600px 600px; }
}

@keyframes mageFloat {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -14px; }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 10, 40, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
    animation: logoFloat 3s ease-in-out infinite, logoGlow 2.5s ease-in-out infinite alternate;
    transform-origin: center;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.7)) drop-shadow(0 0 18px rgba(236, 72, 153, 0.45));
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo-img:hover {
    animation-play-state: paused;
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.95)) drop-shadow(0 0 28px rgba(236, 72, 153, 0.7)) drop-shadow(0 0 42px rgba(6, 182, 212, 0.4));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-5px); }
}

@keyframes logoGlow {
    0%   { filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.6)) drop-shadow(0 0 14px rgba(236, 72, 153, 0.35)); }
    50%  { filter: drop-shadow(0 0 12px rgba(236, 72, 153, 0.8)) drop-shadow(0 0 24px rgba(139, 92, 246, 0.5)) drop-shadow(0 0 36px rgba(6, 182, 212, 0.3)); }
    100% { filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.7)) drop-shadow(0 0 22px rgba(139, 92, 246, 0.5)) drop-shadow(0 0 8px rgba(236, 72, 153, 0.4)); }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-light);
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    margin-top: -80px;
    position: relative;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
}

.glitch {
    font-family: 'Pacifico', cursive;
    font-weight: 400;
    text-transform: none;
    position: relative;
    color: var(--text-light);
    animation: glitch 3s infinite;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.4),
                 0 0 60px rgba(139, 92, 246, 0.2),
                 2px 2px 4px rgba(0, 0, 0, 0.3),
                 -2px -2px 4px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    gap: 0.1rem;
    align-items: baseline;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}

.letter {
    display: inline-block;
    animation: glitch 3s infinite;
}

/* ETH - Bigger */
.letter-e {
    font-size: 5.5rem;
}

.letter-t {
    font-size: 5.3rem;
}

.letter-h {
    font-size: 5.1rem;
}

/* ER - Smaller */
.letter-e2 {
    font-size: 2rem;
}

.letter-r {
    font-size: 1.8rem;
}

/* MAGES - Continuously Bigger */
.letter-m {
    font-size: 2rem;
}

.letter-a {
    font-size: 2.8rem;
}

.letter-g {
    font-size: 3.6rem;
}

.letter-e3 {
    font-size: 4.4rem;
}

.letter-s {
    font-size: 5.2rem;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-2px, -2px);
    }
}

.tagline {
    font-size: 2rem;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

/* Cycling animated taglines */
.cycling-text {
    position: relative;
    height: 2.2rem;
    margin: 1rem 0 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cycle-item {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    white-space: nowrap;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.35));
    animation: cycleText 6s ease-in-out infinite;
}

.cycle-1 { animation-delay: 0s; }
.cycle-2 { animation-delay: 2s; }
.cycle-3 { animation-delay: 4s; }

@keyframes cycleText {
    0%                { opacity: 0;   transform: translateX(-50%) translateY(10px); }
    6%                { opacity: 1;   transform: translateX(-50%) translateY(0); }
    27%               { opacity: 1;   transform: translateX(-50%) translateY(0); }
    33.33%            { opacity: 0;   transform: translateX(-50%) translateY(-10px); }
    100%              { opacity: 0;   transform: translateX(-50%) translateY(10px); }
}

/* Gallery Section */
.gallery-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 2rem;
}

.gallery-section h2 {
    font-family: 'Pacifico', cursive;
    font-size: 3.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1rem;
    text-transform: none;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

#counter {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 120px;
    text-align: center;
}

.gallery-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.main-display {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.main-display img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 8px 40px rgba(139, 92, 246, 0.15);
}

.image-info {
    margin-top: 2rem;
    text-align: center;
}

.image-info h3 {
    font-family: 'Pacifico', cursive;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 0.05rem;
}

.traits-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.trait-badge {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
}

.trait-badge strong {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item .item-number {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ── Whitelist CTA Section ───────────────────────────────────────── */
.whitelist-cta-section {
    position: relative;
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.whitelist-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.whitelist-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
    width: 100%;
    background: rgba(15, 10, 40, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 24px;
    padding: 2.5rem 2rem;
}

.whitelist-cta-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #a855f7;
    font-weight: 600;
    margin-bottom: 1rem;
}

.whitelist-cta-heading {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.whitelist-cta-gradient {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.whitelist-cta-sub {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2.25rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.whitelist-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #7c3aed 100%);
    background-size: 200% auto;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.55), 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: background-position 0.4s ease, box-shadow 0.3s ease, transform 0.2s ease;
    animation: ctaGlow 2.5s ease-in-out infinite;
}

.whitelist-cta-btn:hover {
    background-position: right center;
    box-shadow: 0 0 48px rgba(168, 85, 247, 0.85), 0 6px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.whitelist-cta-btn:active {
    transform: translateY(0);
}

.whitelist-cta-note {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #475569;
}

@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 0 24px rgba(168, 85, 247, 0.55), 0 4px 20px rgba(0,0,0,0.4); }
    50%       { box-shadow: 0 0 48px rgba(168, 85, 247, 0.85), 0 4px 24px rgba(0,0,0,0.4); }
}

/* ── Games CTA Section ───────────────────────────────────────────── */
.games-cta-section {
    position: relative;
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.games-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(236, 72, 153, 0.13) 0%, transparent 70%);
    pointer-events: none;
}

.games-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
    width: 100%;
    background: rgba(15, 10, 40, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(236, 72, 153, 0.25);
    border-radius: 24px;
    padding: 2.5rem 2rem;
}

.games-cta-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #ec4899;
    font-weight: 600;
    margin-bottom: 1rem;
}

.games-cta-heading {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.games-cta-gradient {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 55%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.games-cta-sub {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2.25rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.games-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #06b6d4 100%);
    background-size: 200% auto;
    box-shadow: 0 0 24px rgba(236, 72, 153, 0.45), 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: background-position 0.4s ease, box-shadow 0.3s ease, transform 0.2s ease;
    animation: gamesCtaGlow 2.5s ease-in-out infinite;
}

.games-cta-btn:hover {
    background-position: right center;
    box-shadow: 0 0 42px rgba(236, 72, 153, 0.7), 0 6px 28px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.games-cta-btn:active {
    transform: translateY(0);
}

.games-cta-note {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #64748b;
}

@keyframes gamesCtaGlow {
    0%, 100% { box-shadow: 0 0 24px rgba(236, 72, 153, 0.45), 0 4px 20px rgba(0,0,0,0.4); }
    50%       { box-shadow: 0 0 42px rgba(236, 72, 153, 0.7), 0 4px 24px rgba(0,0,0,0.4); }
}

/* About Section */
.about-section {
    max-width: 1400px;
    margin: 8rem auto;
    padding: 2rem;
}

.about-content h2 {
    font-family: 'Pacifico', cursive;
    font-size: 3.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1rem;
    text-transform: none;
    filter: var(--heading-shadow);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: rgba(15, 10, 40, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.25);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: 0.05rem;
    text-shadow: var(--text-shadow-soft);
}

.about-card p {
    color: var(--text-gray);
    line-height: 1.8;
    font-weight: 500;
}

/* Roadmap Section */
.roadmap-section {
    max-width: 1400px;
    margin: 8rem auto;
    padding: 2rem;
}

.roadmap-section h2 {
    font-family: 'Pacifico', cursive;
    font-size: 3.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 5rem;
    color: var(--text-light);
    text-shadow: var(--text-shadow-soft);
    filter: var(--heading-shadow);
}

.roadmap-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    position: relative;
}

.roadmap-connector {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin-top: 42px;
    max-width: 80px;
    position: relative;
}

.roadmap-connector::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary-color);
}

.roadmap-phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 220px;
    flex-shrink: 0;
    background: rgba(15, 10, 40, 0.7);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(168, 85, 247, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.26);
    position: relative;
    /* initial hidden state — dropped below */
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.roadmap-phase.phase-visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger each phase */
.roadmap-phase:nth-child(1) { transition-delay: 0s; }
.roadmap-phase:nth-child(3) { transition-delay: 0.15s; }
.roadmap-phase:nth-child(5) { transition-delay: 0.30s; }
.roadmap-phase:nth-child(7) { transition-delay: 0.45s; }

.roadmap-phase:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2);
}

.roadmap-phase.phase-visible:hover {
    transform: translateY(-8px);
}

.phase-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    flex-shrink: 0;
}

.phase-title {
    font-family: 'Pacifico', cursive;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
    padding-bottom: 0.8rem;
    width: 100%;
    text-shadow: var(--text-shadow-soft);
}

.phase-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.phase-items li {
    font-size: 0.92rem;
    color: var(--text-gray);
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    padding-left: 1rem;
    font-weight: 500;
}

.phase-items li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
}

.phase-items li:last-child {
    border-bottom: none;
}

@media (max-width: 900px) {
    .roadmap-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .roadmap-connector {
        width: 3px;
        height: 40px;
        max-width: none;
        margin-top: 0;
        background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    }

    .roadmap-connector::after {
        right: 50%;
        top: auto;
        bottom: -6px;
        transform: translateX(50%);
    }

    .roadmap-phase {
        width: 100%;
        max-width: 380px;
    }
}

/* Rarity Section */
.rarity-section {
    max-width: 1400px;
    margin: 8rem auto;
    padding: 2rem;
}

.rarity-section h2 {
    font-family: 'Pacifico', cursive;
    font-size: 3.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1rem;
    text-transform: none;
    filter: var(--heading-shadow);
}

.trait-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.trait-card {
    background: rgba(15, 10, 40, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.trait-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.trait-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    text-shadow: var(--text-shadow-soft);
    font-weight: 700;
}

.trait-card p {
    color: var(--text-gray);
    font-weight: 500;
}

/* Footer */
footer {
    background: rgba(15, 10, 40, 0.72);
    border-top: 1px solid rgba(168, 85, 247, 0.25);
    margin-top: 8rem;
    padding: 3rem 2rem 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Pacifico', cursive;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 0.05rem;
    text-transform: none;
    font-weight: 400;
}

.footer-section p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-link {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 900px)
═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 900px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .roadmap-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .roadmap-connector {
        width: 3px;
        height: 40px;
        max-width: none;
        margin-top: 0;
        background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    }

    .roadmap-connector::after {
        right: 50%;
        top: auto;
        bottom: -6px;
        transform: translateX(50%);
    }

    .roadmap-phase {
        width: 100%;
        max-width: 420px;
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 768px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Nav ── */
    .nav-toggle {
        display: flex;
    }

    nav {
        padding: 1rem 1.25rem;
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(8, 8, 24, 0.99);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow: hidden;
    }

    .nav-links.open {
        display: flex;
        animation: navDrop 0.25s ease;
    }

    @keyframes navDrop {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .nav-links a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
        font-size: 1.05rem;
    }

    .nav-links a:last-child { border-bottom: none; }
    .nav-links a::after { display: none; }

    /* ── Section overlay fix ── */
    main > section::before {
        inset: -1rem;
    }

    /* ── Section spacing ── */
    .about-section,
    .roadmap-section,
    .rarity-section {
        margin: 4rem auto;
        padding: 1.25rem;
    }

    /* ── Hero title ── */
    .letter-e  { font-size: 3.2rem; }
    .letter-t  { font-size: 3.1rem; }
    .letter-h  { font-size: 2.9rem; }
    .letter-e2 { font-size: 1.2rem; }
    .letter-r  { font-size: 1.1rem; }
    .letter-m  { font-size: 1.2rem; }
    .letter-a  { font-size: 1.7rem; }
    .letter-g  { font-size: 2.2rem; }
    .letter-e3 { font-size: 2.7rem; }
    .letter-s  { font-size: 3.1rem; }

    .tagline {
        font-size: 1.2rem;
        margin: 1rem 0;
    }

    /* ── Cycling text — avoid overflow ── */
    .cycle-item {
        font-size: 0.95rem;
        white-space: normal;
        text-align: center;
        width: 90vw;
        left: 5vw;
        transform: translateX(0) translateY(10px);
    }

    @keyframes cycleText {
        0%     { opacity: 0;   transform: translateX(0) translateY(10px); }
        6%     { opacity: 1;   transform: translateX(0) translateY(0); }
        27%    { opacity: 1;   transform: translateX(0) translateY(0); }
        33.33% { opacity: 0;   transform: translateX(0) translateY(-10px); }
        100%   { opacity: 0;   transform: translateX(0) translateY(10px); }
    }

    .cycling-text {
        height: 3rem;
        margin: 0.75rem 0 2rem;
    }

    /* ── Section headings ── */
    .about-content h2,
    .roadmap-section h2,
    .rarity-section h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    /* ── About grid ── */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 1.75rem;
    }

    /* ── Trait grid ── */
    .trait-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .trait-card {
        padding: 1.25rem;
    }

    .trait-card h3 {
        font-size: 1.1rem;
    }

    /* ── Logo ── */
    .logo-img {
        height: 42px;
    }

    /* ── Footer ── */
    footer {
        padding: 2rem 1.25rem 1rem;
        margin-top: 4rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* ── Background cards ── */
    .mage-card {
        width: clamp(92px, 24vw, 150px);
        opacity: 0.28;
    }

    /* ── Whitelist CTA ── */
    .whitelist-cta-section {
        padding: 3rem 1rem;
    }

    .games-cta-section {
        padding: 3rem 1rem;
    }

    .whitelist-cta-inner {
        padding: 1.5rem 1.25rem;
    }

    .games-cta-inner {
        padding: 1.5rem 1.25rem;
    }

    .whitelist-cta-btn {
        display: flex;
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.9rem 1rem;
        gap: 0.5rem;
    }

    /* hide decorative emoji so button text fits on narrow screens */
    .whitelist-cta-btn > span {
        display: none;
    }

    .whitelist-cta-note {
        font-size: 0.8rem;
    }

    .games-cta-btn {
        display: flex;
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.9rem 1rem;
        gap: 0.5rem;
    }

    .games-cta-btn > span {
        display: none;
    }

    .games-cta-note {
        font-size: 0.8rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  (≤ 420px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 420px) {

    .letter-e  { font-size: 2.4rem; }
    .letter-t  { font-size: 2.3rem; }
    .letter-h  { font-size: 2.1rem; }
    .letter-e2 { font-size: 0.95rem; }
    .letter-r  { font-size: 0.85rem; }
    .letter-m  { font-size: 0.95rem; }
    .letter-a  { font-size: 1.35rem; }
    .letter-g  { font-size: 1.75rem; }
    .letter-e3 { font-size: 2.1rem; }
    .letter-s  { font-size: 2.4rem; }

    .tagline { font-size: 1rem; }

    .about-content h2,
    .roadmap-section h2,
    .rarity-section h2 {
        font-size: 1.8rem;
    }

    .trait-categories {
        grid-template-columns: 1fr;
    }

    .roadmap-section h2 {
        margin-bottom: 1.5rem;
    }

    .logo-img {
        height: 36px;
    }

    .mage-card-3,
    .mage-card-4,
    .mage-card-5,
    .mage-card-6 {
        display: none;
    }

    /* ── Whitelist CTA (extra-narrow) ── */
    .whitelist-cta-section {
        padding: 2.5rem 0.75rem;
    }

    .games-cta-section {
        padding: 2.5rem 0.75rem;
    }

    .whitelist-cta-inner {
        padding: 1.25rem 1rem;
    }

    .games-cta-inner {
        padding: 1.25rem 1rem;
    }

    .whitelist-cta-btn {
        font-size: 0.875rem;
    }

    .games-cta-btn {
        font-size: 0.875rem;
    }
}
