/* =====================================================
   HIT N' BIT - DARK FANTASY ADVENTURE STYLESHEET
   =====================================================
   A mystical redesign capturing the duality of light and
   shadow in the magical world of Valoris.
   
   Color Palette:
   - Mystical: #7C3AED (Deep Purple), #A78BFA (Light Purple), #6366F1 (Mystic Blue)
   - Adventure: #F59E0B (Amber Gold), #EF4444 (Crimson), #EC4899 (Magenta)
   - Nature: #10B981 (Emerald), #34D399 (Light Jade)
   - Support: #1F2937 (Dark Slate), #111827 (Shadow), #F3F4F6 (Moonlight)
   ===================================================== */

/* Import Google Fonts for magical typography */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Philosopher:ital,wght@0,400;0,700;1,400&family=Poppins:wght@300;400;500;600&display=swap');

/* =====================================================
   CSS VARIABLES & ROOT
   ===================================================== */
:root {
    /* Mystical Color Palette */
    --deep-purple: #7C3AED;
    --light-purple: #A78BFA;
    --mystic-blue: #6366F1;
    --amber-gold: #F59E0B;
    --crimson: #EF4444;
    --magenta: #EC4899;
    --emerald: #10B981;
    --light-jade: #34D399;
    --dark-slate: #1F2937;
    --shadow: #111827;
    --moonlight: #F3F4F6;
    
    /* Magical Gradients */
    --mystic-gradient: linear-gradient(135deg, var(--deep-purple) 0%, var(--mystic-blue) 50%, var(--magenta) 100%);
    --dawn-gradient: linear-gradient(45deg, var(--amber-gold) 0%, var(--crimson) 100%);
    --nature-gradient: linear-gradient(180deg, var(--emerald) 0%, var(--light-jade) 100%);
    --shadow-gradient: linear-gradient(to bottom, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.98) 100%);
    --aurora-gradient: linear-gradient(90deg, var(--deep-purple) 0%, var(--mystic-blue) 33%, var(--magenta) 66%, var(--deep-purple) 100%);
    
    /* Typography */
    --font-mystical: 'Alagard', 'Cinzel Decorative', serif;
    --font-narrative: 'Philosopher', Georgia, serif;
    --font-modern: 'Poppins', Arial, sans-serif;
    
    /* Animations */
    --transition-magic: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-swift: all 0.3s ease-out;
}

/* =====================================================
   GLOBAL OVERRIDES & BODY
   ===================================================== */
body {
    background: var(--shadow) !important;
    color: var(--moonlight) !important;
    font-family: var(--font-narrative) !important;
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
}

/* Magical particles background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 10% 20%, var(--light-purple), transparent),
        radial-gradient(2px 2px at 30% 80%, var(--mystic-blue), transparent),
        radial-gradient(1px 1px at 50% 50%, var(--magenta), transparent),
        radial-gradient(2px 2px at 80% 10%, var(--light-purple), transparent);
    background-size: 200% 200%;
    animation: magicFloat 30s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes magicFloat {
    from { transform: translateY(0) rotate(0deg); }
    to { transform: translateY(-100vh) rotate(360deg); }
}

/* =====================================================
   NAVIGATION - MYSTICAL PORTAL
   ===================================================== */
.navbar {
    background: var(--shadow-gradient) !important;
    border-bottom: 2px solid var(--deep-purple);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3),
                0 0 40px rgba(167, 139, 250, 0.1) !important;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(17, 24, 39, 0.98) !important;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4),
                0 0 60px rgba(167, 139, 250, 0.2) !important;
}

.navbar__links a {
    color: var(--moonlight) !important;
    font-family: var(--font-mystical) !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    transition: var(--transition-swift) !important;
}

.navbar__links a::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--mystic-gradient);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.navbar__links a:hover {
    color: var(--light-purple) !important;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.8),
                 0 0 10px rgba(124, 58, 237, 0.6);
}

.navbar__links a:hover::before {
    transform: scaleX(1);
}

.navbar__links a::after {
    background: var(--mystic-gradient) !important;
    height: 3px !important;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.8);
}

/* =====================================================
   HERO SECTION - MAGICAL REALM
   ===================================================== */
.game-hero {
    position: relative;
}

.game-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

.game-hero__tagline {
    color: var(--light-purple) !important;
    font-family: var(--font-narrative) !important;
    font-size: 1.5em !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8),
                 0 0 30px rgba(167, 139, 250, 0.5) !important;
    font-weight: 600;
    font-style: italic;
}

/* Aurora effect for hero overlay */
.game-hero__overlay {
    background: linear-gradient(to bottom, 
        rgba(17, 24, 39, 0.3) 0%, 
        rgba(124, 58, 237, 0.2) 50%,
        rgba(17, 24, 39, 0.8) 100%) !important;
    animation: auroraShift 10s ease-in-out infinite;
}

@keyframes auroraShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; filter: hue-rotate(30deg); }
}

/* =====================================================
   HAMBURGER MENU - ENHANCED
   ===================================================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition-swift);
}

.hamburger i {
    color: var(--light);
    font-size: 24px;
    transition: var(--transition-swift);
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger:hover i {
    color: var(--royal-gold);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.navbar__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--shadow-gradient);
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 30px rgba(255, 107, 53, 0.3),
                0 0 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border: 2px solid transparent;
    border-image: var(--hero-gradient) 1;
}

.navbar__links.active li {
    margin-bottom: 10px;
}

.navbar__links.active a {
    font-size: 24px;
}
/* =====================================================
   BUTTONS - ENCHANTED ARTIFACTS
   ===================================================== */
.btn {
    background: var(--shadow-gradient) !important;
    color: var(--moonlight) !important;
    border: 2px solid var(--deep-purple) !important;
    font-family: var(--font-mystical) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 14px 35px !important;
    border-radius: 50px !important;
    position: relative;
    overflow: hidden;
    transition: var(--transition-magic) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5),
                inset 0 0 20px rgba(124, 58, 237, 0.2) !important;
}

/* Magical energy core */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.8) 0%, transparent 70%);
    transition: width 0.6s ease, height 0.6s ease;
    border-radius: 50%;
}

/* Mystical shimmer */
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(167, 139, 250, 0.3) 50%, 
        transparent 70%);
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.8s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05) !important;
    border-color: var(--light-purple) !important;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.5),
                0 0 40px rgba(167, 139, 250, 0.4),
                inset 0 0 30px rgba(124, 58, 237, 0.3) !important;
}

.btn:hover::before {
    width: 120%;
    height: 120%;
}

.btn:hover::after {
    transform: rotate(45deg) translateY(100%);
}

.btn--primary {
    background: var(--mystic-gradient) !important;
    border-color: var(--magenta) !important;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4),
                inset 0 0 20px rgba(99, 102, 241, 0.3) !important;
}

.btn--primary:hover {
    box-shadow: 0 12px 35px rgba(236, 72, 153, 0.6),
                0 0 50px rgba(167, 139, 250, 0.5),
                inset 0 0 40px rgba(99, 102, 241, 0.4) !important;
    border-color: var(--moonlight) !important;
}

/* Hero buttons with ethereal style */
.hero__btn {
    background: transparent !important;
    border: 3px solid var(--light-purple) !important;
    color: var(--moonlight) !important;
    backdrop-filter: blur(5px);
}

.hero__btn:hover {
    background: rgba(124, 58, 237, 0.2) !important;
    border-color: var(--magenta) !important;
    text-shadow: 0 0 15px rgba(236, 72, 153, 0.8);
}

/* =====================================================
   TYPOGRAPHY - MAGICAL SCRIPTURE
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mystical) !important;
    font-weight: 700;
    letter-spacing: 1px;
}

h2 {
    color: var(--light-purple) !important;
    text-align: center;
    font-size: 3em !important;
    margin-bottom: 45px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
                 0 0 40px rgba(167, 139, 250, 0.4);
    position: relative;
}

/* Magical underline */
h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--aurora-gradient);
    background-size: 200% 100%;
    animation: auroraFlow 3s linear infinite;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
}

@keyframes auroraFlow {
    from { background-position: 0% 50%; }
    to { background-position: 200% 50%; }
}

/* =====================================================
   FEATURE CARDS - ENCHANTED SCROLLS
   ===================================================== */
.feature-card {
    background: linear-gradient(135deg, 
        rgba(31, 41, 55, 0.8) 0%, 
        rgba(17, 24, 39, 0.9) 100%) !important;
    border: 2px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
    overflow: hidden;
    transition: var(--transition-magic) !important;
}

/* Magical border gradient */
.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--mystic-gradient);
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.4s ease;
    border-radius: 10px;
}

/* Energy swirl effect */
.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 60%);
    transform: rotate(0deg);
    transition: transform 1s ease;
    opacity: 0;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.03) !important;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.4),
                0 0 60px rgba(167, 139, 250, 0.3),
                inset 0 0 30px rgba(236, 72, 153, 0.1) !important;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover::after {
    opacity: 1;
    transform: rotate(180deg);
}

.feature-card i {
    color: var(--magenta) !important;
    font-size: 3.5em !important;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.6));
    transition: var(--transition-swift);
    display: inline-block;
}

.feature-card:hover i {
    transform: scale(1.2) rotate(15deg);
    filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.8));
    color: var(--light-purple) !important;
}

.feature-card h3 {
    color: var(--amber-gold) !important;
    font-size: 1.5em !important;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.feature-card p {
    color: var(--moonlight) !important;
    font-family: var(--font-narrative) !important;
    font-size: 1.1em;
    line-height: 1.8;
    opacity: 0.9;
}

/* =====================================================
   STORY SECTION - ANCIENT TOME
   ===================================================== */
.story-content {
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.05) 0%, 
        rgba(236, 72, 153, 0.05) 50%,
        rgba(99, 102, 241, 0.05) 100%);
    padding: 45px;
    border-radius: 20px;
    border: 1px solid rgba(167, 139, 250, 0.3);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4),
                0 5px 25px rgba(0, 0, 0, 0.6);
    position: relative;
}

/* Decorative corners */
.story-content::before,
.story-content::after {
    content: '✦';
    position: absolute;
    font-size: 30px;
    color: var(--amber-gold);
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.8));
}

.story-content::before {
    top: 15px;
    left: 15px;
}

.story-content::after {
    bottom: 15px;
    right: 15px;
}

.story-content p {
    font-family: var(--font-narrative) !important;
    font-size: 1.25em !important;
    line-height: 1.9;
    color: var(--moonlight);
    text-indent: 2em;
    margin-bottom: 25px;
}

/* =====================================================
   DETAIL CARDS - ADVENTURE LOGS
   ===================================================== */
.detail-card {
    background: linear-gradient(to right, 
        rgba(17, 24, 39, 0.9) 0%, 
        rgba(31, 41, 55, 0.8) 100%) !important;
    border-left: 5px solid transparent !important;
    background-image: 
        linear-gradient(to right, rgba(17, 24, 39, 0.9) 0%, rgba(31, 41, 55, 0.8) 100%),
        var(--aurora-gradient);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    position: relative;
    transition: var(--transition-swift) !important;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--aurora-gradient);
    background-size: 100% 200%;
    animation: auroraFlow 4s linear infinite;
}

.detail-card:hover {
    transform: translateX(10px);
    background: linear-gradient(to right, 
        rgba(124, 58, 237, 0.1) 0%, 
        rgba(236, 72, 153, 0.1) 100%) !important;
    box-shadow: -10px 10px 30px rgba(167, 139, 250, 0.3);
}

.detail-card h3 {
    color: var(--light-purple) !important;
    font-family: var(--font-mystical) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* =====================================================
   MEDIA SECTION - CRYSTAL GALLERY
   ===================================================== */
.media-item {
    border: 2px solid transparent;
    background: linear-gradient(var(--shadow), var(--dark-slate)) padding-box,
                var(--mystic-gradient) border-box;
    position: relative;
    overflow: hidden;
    transition: var(--transition-magic);
}

/* Crystal shine effect */
.media-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 40%, 
        rgba(167, 139, 250, 0.4) 50%, 
        transparent 60%);
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.8s ease;
}

.media-item:hover {
    transform: scale(1.05) rotate(-1deg) !important;
    border-width: 3px;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.4),
                0 0 60px rgba(236, 72, 153, 0.3),
                inset 0 0 30px rgba(167, 139, 250, 0.2) !important;
}

.media-item:hover::before {
    transform: rotate(45deg) translate(100%, 100%);
}

.media-overlay {
    background: radial-gradient(circle, 
        rgba(124, 58, 237, 0.9) 0%, 
        rgba(236, 72, 153, 0.7) 50%,
        rgba(99, 102, 241, 0.5) 100%) !important;
    backdrop-filter: blur(5px);
}

.media-overlay i {
    color: var(--moonlight) !important;
    font-size: 36px !important;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

/* =====================================================
   MODAL - MYSTICAL VIEWER
   ===================================================== */
#imageModal {
    background-color: rgba(17, 24, 39, 0.95) !important;
    backdrop-filter: blur(10px);
}

#modalImage {
    border: 2px solid var(--deep-purple);
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.5),
                0 0 100px rgba(167, 139, 250, 0.3);
}

.modal-nav {
    background: var(--mystic-gradient) !important;
    border: 2px solid var(--light-purple);
    transition: var(--transition-magic);
}

.modal-nav:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.8);
    border-color: var(--moonlight);
}

.modal-close:hover {
    color: var(--magenta) !important;
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.8);
}

.modal-info h3 {
    color: var(--light-purple) !important;
    font-family: var(--font-mystical);
}

/* =====================================================
   CTA SECTION - CALL TO ADVENTURE
   ===================================================== */
.game-cta {
    background: radial-gradient(ellipse at center, 
                    rgba(124, 58, 237, 0.15) 0%, 
                    transparent 50%),
                linear-gradient(135deg, var(--shadow) 0%, var(--dark-slate) 100%) !important;
    position: relative;
    overflow: hidden;
}

/* Mystical pattern overlay */
.game-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 40%);
    animation: mysticalPulse 8s ease-in-out infinite;
}

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

/* =====================================================
   SPECIAL EFFECTS - MAGICAL AURAS
   ===================================================== */

/* Spell cast effect */
@keyframes spellCast {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1.5) rotate(360deg);
        opacity: 0;
    }
}

/* Mystical glow effect */
@keyframes mysticalGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.6))
                drop-shadow(0 0 40px rgba(167, 139, 250, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.8))
                drop-shadow(0 0 60px rgba(99, 102, 241, 0.6));
    }
}

/* Crystal pulse effect */
@keyframes crystalPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(167, 139, 250, 0.5),
                    inset 0 0 20px rgba(124, 58, 237, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(236, 72, 153, 0.7),
                    inset 0 0 40px rgba(99, 102, 241, 0.5);
    }
}

/* Enhanced red glow becomes mystical aura */
.red-glow {
    position: relative;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.6),
                0 0 60px rgba(124, 58, 237, 0.4),
                0 0 90px rgba(167, 139, 250, 0.2),
                inset 0 0 30px rgba(236, 72, 153, 0.3) !important;
    border: 2px solid rgba(236, 72, 153, 0.6) !important;
    animation: mysticalGlow 3s ease-in-out infinite;
}

.red-glow::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: var(--aurora-gradient);
    background-size: 300% 100%;
    animation: auroraFlow 5s linear infinite;
    opacity: 0.3;
    filter: blur(20px);
    border-radius: inherit;
}

.red-glow:hover {
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.8),
                0 0 80px rgba(124, 58, 237, 0.6),
                0 0 120px rgba(167, 139, 250, 0.4),
                inset 0 0 40px rgba(236, 72, 153, 0.4) !important;
    border-color: var(--light-purple) !important;
    animation: crystalPulse 1.5s ease-in-out infinite;
}

/* Apply effects to elements */
.magic-effect {
    animation: mysticalGlow 2.5s ease-in-out infinite;
}

.crystal-effect {
    animation: crystalPulse 2s ease-in-out infinite;
}

/* =====================================================
   FOOTER - MYSTICAL FOUNDATION
   ===================================================== */
.footer {
    background: var(--shadow-gradient) !important;
    border-top: 2px solid var(--deep-purple);
    margin-top: 60px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--aurora-gradient);
    background-size: 200% 100%;
    animation: auroraFlow 6s linear infinite;
}

.footer__links a {
    color: var(--light-purple) !important;
    transition: var(--transition-swift);
    font-family: var(--font-narrative);
}

.footer__links a:hover {
    color: var(--magenta) !important;
    text-shadow: 0 0 15px rgba(236, 72, 153, 0.7);
}

/* =====================================================
   SCROLLBAR - ENCHANTED SCROLL
   ===================================================== */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: var(--shadow);
    border: 1px solid var(--dark-slate);
}

::-webkit-scrollbar-thumb {
    background: var(--mystic-gradient);
    border-radius: 7px;
    border: 1px solid var(--deep-purple);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--aurora-gradient);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

/* =====================================================
   SELECTION - MAGICAL HIGHLIGHT
   ===================================================== */
::selection {
    background: var(--deep-purple);
    color: var(--moonlight);
    text-shadow: none;
}

::-moz-selection {
    background: var(--deep-purple);
    color: var(--moonlight);
    text-shadow: none;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 768px) {
    h2 {
        font-size: 2.3em !important;
    }
    
    .btn {
        padding: 12px 28px !important;
        font-size: 14px !important;
    }
    
    .feature-card {
        margin-bottom: 25px;
    }
    
    .feature-card i {
        font-size: 3em !important;
    }
    
    .story-content {
        padding: 30px 20px;
    }
    
    .story-content p {
        font-size: 1.1em !important;
    }
}

@media (max-width: 480px) {
    .navbar__links a {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    h2 {
        font-size: 1.8em !important;
    }
    
    .btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
        letter-spacing: 1px !important;
    }
}
/* =====================================================
   HAMBURGER MENU RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .navbar__links {
        display: none;
        flex-direction: column;
        gap: 10px;
    }

    .hamburger {
        display: flex;
    }

    .navbar__links.active {
        display: flex;
    }

    .navbar__links.active a {
        font-size: 20px;
        padding: 12px 20px;
    }
}
/* =====================================================
   LOADING ANIMATIONS
   ===================================================== */
@keyframes shimmerLoad {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(167, 139, 250, 0.3) 50%, 
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmerLoad 2s infinite;
}

/* =====================================================
   ACCESSIBILITY ENHANCEMENTS
   ===================================================== */
.btn:focus,
.navbar__links a:focus,
.media-item:focus {
    outline: 3px solid var(--light-purple);
    outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 3px !important;
    }
    
    .feature-card,
    .detail-card {
        border: 2px solid var(--moonlight);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   SPECIAL GAME-SPECIFIC ELEMENTS
   ===================================================== */

/* Metroidvania map nodes effect */
.map-node {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--mystic-gradient);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
    animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 30px rgba(236, 72, 153, 0.8);
    }
}

/* Character ability icons */
.ability-icon {
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, transparent 70%);
    border: 2px solid var(--deep-purple);
    border-radius: 10px;
    padding: 10px;
    transition: var(--transition-magic);
}

.ability-icon:hover {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.6);
}

/* Quest marker effect */
.quest-marker {
    position: relative;
    color: var(--amber-gold);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

.quest-marker::before {
    content: '!';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: bold;
    animation: questBounce 1s ease-in-out infinite;
}

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

/* =====================================================
   FINAL TOUCHES
   ===================================================== */

/* Page transition fade-in */
body {
    animation: pageReveal 1s ease-out;
}

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

/* Hover state for all interactive elements */
a:not(.btn):hover,
button:not(.btn):hover {
    color: var(--light-purple) !important;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

/* Custom cursor for magical feel */
body {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="10" fill="%237C3AED" opacity="0.8"/><circle cx="16" cy="16" r="6" fill="%23A78BFA"/></svg>'), auto;
}

a, button {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="12" fill="%23EC4899" opacity="0.8"/><circle cx="16" cy="16" r="8" fill="%23F3F4F6"/></svg>'), pointer;
}