::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050507;
}
::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #AA7C11;
}

.skewed-card {
    transform: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.skewed-card-inner {
    transform: none;
}
.skewed-card:hover {
    transform: translateY(-8px) scale(1.02);
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
.scanline-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, #00E5FF, transparent);
    animation: scanline 4s linear infinite;
    pointer-events: none;
}
header.is-top .glass-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#leaderboard-list::-webkit-scrollbar {
    width: 6px;
}
#leaderboard-list::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 4px;
}
#leaderboard-list::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}
body.dark-mode #leaderboard-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.heart-glow {
    stroke-dasharray: 350;
    stroke-dashoffset: 350;
    animation: drawHeart 3s ease-in-out infinite alternate, glowHeart 1.5s ease-in-out infinite alternate;
}

@keyframes drawHeart {
    0% { stroke-dashoffset: 350; }
    100% { stroke-dashoffset: 0; }
}

@keyframes glowHeart {
    0% { filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.5)); }
    100% { filter: drop-shadow(0 0 12px rgba(212, 175, 55, 1)); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}


.shine-effect {
    position: relative;
    overflow: hidden;
}
.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(212, 175, 55, 0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: 1;
    pointer-events: none;
}
.shine-effect:hover::before {
    left: 125%;
}


@keyframes float-vertical-once {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.animate-float-vertical {
    animation: float-vertical-once 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1 forwards;
    opacity: 0;
}

@keyframes redHeartPulse {
    0%, 30% { 
        opacity: 0; 
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(227, 27, 35, 0)); 
    }
    35% { 
        opacity: 1; 
        transform: scale(1.15);
        filter: drop-shadow(0 0 20px rgba(227, 27, 35, 0.9)); 
    }
    45% { 
        opacity: 1; 
        transform: scale(1.05);
        filter: drop-shadow(0 0 10px rgba(227, 27, 35, 0.6)); 
    }
    55% { 
        opacity: 1; 
        transform: scale(1.25);
        filter: drop-shadow(0 0 30px rgba(227, 27, 35, 1)); 
    }
    80% { 
        opacity: 1; 
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(227, 27, 35, 0.8)); 
    }
    100% { 
        opacity: 0; 
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(227, 27, 35, 0)); 
    }
}
.heart-red-pulse {
    animation: redHeartPulse 3.5s infinite;
    transform-origin: 50px 50px;
}


@keyframes socialAttentionOnce {
    0% { 
        background-color: rgba(253, 251, 247, 0.75); 
        color: var(--base-color); 
        transform: translateX(0);
    }
    15%, 85% { 
        background-color: var(--base-color); 
        color: #fff; 
        transform: translateX(12px);
    }
    100% {
        background-color: rgba(253, 251, 247, 0.75); 
        color: var(--base-color); 
        transform: translateX(0);
    }
}
.social-attention-wave {
    animation: socialAttentionOnce 2.5s ease-in-out 1 forwards;
}


.scattered-gallery {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}
.scattered-photo {
    position: relative;
    width: 220px;
    height: 280px;
    background: #fff;
    padding: 12px 12px 50px 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid #eaeaea;
}
.scattered-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.scattered-photo:hover {
    transform: translateY(-8px) scale(1.02) !important;
    z-index: 40 !important;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}
.scattered-photo.active {
    transform: scale(1.5) !important;
    z-index: 50 !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}


@media (max-width: 768px) {
    .scattered-gallery {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 20px 10px;
        gap: 20px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .scattered-gallery::-webkit-scrollbar {
        display: none;
    }
    .scattered-photo {
        flex: 0 0 85%;
        width: auto;
        height: 350px;
        scroll-snap-align: center;
        padding: 10px 10px 40px 10px;
    }
    .scattered-photo.active {
        transform: scale(1.05) !important;
    }
}

.heart-particle {
    position: absolute;
    bottom: -50px;
    z-index: 99;
    animation: flyUp linear forwards;
    filter: drop-shadow(0 0 8px rgba(227, 27, 35, 0.6));
}
@keyframes flyUp {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translateY(-120vh) rotate(360deg) scale(1.5); opacity: 0; }
}
.easter-egg-blink {
    animation: easterEggBlink 0.4s infinite alternate ease-in-out;
}
@keyframes easterEggBlink {
    0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)); }
    100% { transform: scale(1.15); filter: drop-shadow(0 0 40px rgba(212, 175, 55, 1)); }
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    filter: blur(10px);
}
@keyframes cyber-progress {
    0% { transform: scaleX(0); }
    50% { transform: scaleX(0.7); }
    100% { transform: scaleX(1); }
}
.animate-cyber-progress {
    animation: cyber-progress 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.animate-pulse-fast {
    animation: pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

body.dark-mode {
    background-color: #0a0a0c !important;
    color: #e5e5e5 !important;
}
body.dark-mode .bg-white,
body.dark-mode .bg-sandDark,
body.dark-mode .glass-panel,
body.dark-mode .bg-white\/95,
body.dark-mode #cartDrawer,
body.dark-mode footer {
    background-color: rgba(20, 20, 25, 0.85) !important;
    border-color: rgba(212, 175, 55, 0.15) !important;
    color: #e5e5e5 !important;
}
body.dark-mode .text-neutral-800,
body.dark-mode .text-black {
    color: #ffffff !important;
}
body.dark-mode .text-neutral-600,
body.dark-mode .text-neutral-500,
body.dark-mode .text-neutral-400 {
    color: #a3a3a3 !important;
}
body.dark-mode .bg-sandDark\/50 {
    background-color: rgba(30, 30, 35, 0.8) !important;
}
body.dark-mode .bg-gradient-to-r.from-white {
    background-image: linear-gradient(to right, #0a0a0c, rgba(10, 10, 12, 0.9), transparent) !important;
}
body.dark-mode .bg-gradient-to-l.from-white {
    background-image: linear-gradient(to left, #0a0a0c, rgba(10, 10, 12, 0.9), transparent) !important;
}
body.dark-mode #drone-canvas {
    opacity: 1;
}
body.dark-mode img:not(.lang-btn img),
body.dark-mode .scattered-photo {
    filter: grayscale(0.3) brightness(0.7) contrast(1.2);
}

body.dark-mode #safety .bg-gradient-to-br {
    background: rgba(20, 20, 25, 0.85) !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
}
body.dark-mode #hero-section {
    background-size: auto 90% !important;
    background-position: center bottom !important;
}
body.dark-mode .dark-mode-overlay {
    background: rgba(10, 10, 15, 0.65) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
body.dark-mode .bg-gradient-to-t.from-\[\#FDFBF7\] {
    background-image: linear-gradient(to top, #0a0a0c, rgba(10, 10, 12, 0.8), transparent) !important;
}


.spotlights-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    overflow: hidden;
}
body.dark-mode .spotlights-container {
    opacity: 1;
}
.spotlight {
    position: absolute;
    bottom: -10%;
    width: 200px;
    height: 150vh;
    background: linear-gradient(to top, rgba(212, 175, 55, 0.6) 0%, rgba(212, 175, 55, 0.1) 50%, transparent 80%);
    transform-origin: bottom center;
    filter: blur(25px);
    mix-blend-mode: screen;
}
.spotlight.left {
    left: 5%;
    animation: sweep-left 6s ease-in-out infinite alternate;
}
.spotlight.right {
    right: 5%;
    animation: sweep-right 7s ease-in-out infinite alternate;
}

@keyframes sweep-left {
    0% { transform: rotate(10deg); }
    100% { transform: rotate(50deg); }
}
@keyframes sweep-right {
    0% { transform: rotate(-10deg); }
    100% { transform: rotate(-50deg); }
}

#game-modal {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}
body.dark-mode #game-modal {
    background-color: rgba(10, 10, 15, 0.95);
}
#leaderboard-view .bg-sandDark\/50 {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
}
#leaderboard-view .text-neutral-800 {
    color: #ffffff !important;
}


.social-icons-container {
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.social-icons-container.social-hidden {
    transform: translateX(-150px) scale(0.5) rotate(-45deg);
    opacity: 0;
    pointer-events: none;
}
body[dir="rtl"] .social-icons-container.social-hidden {
    transform: translateX(150px) scale(0.5) rotate(45deg);
}

#bottom-dock {
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding-bottom: env(safe-area-inset-bottom);
}
#bottom-dock.dock-hidden {
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
}


body.dark-mode #logo-svg text,
body.dark-mode #logo-svg text tspan {
    fill: #E31B23 !important;
    transition: fill 0.5s ease;
}

#cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}

#privacy-modal.show {
    display: flex;
    opacity: 1;
}
#privacy-modal.show #privacy-modal-content {
    transform: scale(1);
}
#hero-section {
    background-position: 38% 0% !important;
}