/* GTA San Andreas Custom Styles */

/* Custom Font Loading */
@font-face {
    font-family: 'GTA';
    src: url('../font/gta.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Alternative font loading for better compatibility */
@font-face {
    font-family: 'GTA';
    src: url('../../assets/font/gta.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* H1 Elements with Custom GTA Font */
h1 {
    font-family: 'GTA', 'Orbitron', monospace !important;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Force GTA font for all H1 elements and font-gta class */
h1,
.font-gta {
    font-family: 'GTA', 'Orbitron', monospace !important;
}

/* Font loading indicator */
.font-gta-loaded {
    font-family: 'GTA', 'Orbitron', monospace !important;
}

/* Fallback styling if GTA font fails to load */
h1:not(.font-gta-loaded) {
    font-family: 'Orbitron', monospace !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Font loading success indicator */
.gta-font-loaded h1 {
    font-family: 'GTA', 'Orbitron', monospace !important;
    transition: all 0.3s ease;
}

/* Font loading animation */
@keyframes fontLoad {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.font-gta-loaded {
    animation: fontLoad 0.5s ease-out;
}

/* Hero Section Specific Styles */
.hero-title {
    font-family: 'GTA', 'Orbitron', monospace !important;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.9);
    font-weight: 900;
    letter-spacing: 3px;
}

/* Character Money Effects */
.character-money {
    animation: moneyFloat 3s ease-in-out infinite;
}

@keyframes moneyFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Mobile Game Style Borders */
.mobile-border {
    /* Border removed */
}

/* Promotional Panel Hover Effects */
.promo-panel {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.promo-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.promo-panel:hover::before {
    left: 100%;
}

.promo-panel:hover {
    transform: translateY(-5px);
}

/* Character Card Effects */
.character-card {
    position: relative;
    overflow: hidden;
}

.character-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.character-card:hover::after {
    transform: translateX(100%);
}

/* Bottom Navigation Icons */
.nav-icon {
    transition: all 0.3s ease;
    position: relative;
}

.nav-icon:hover {
    transform: scale(1.1);
    background-color: #FFD700 !important;
}

.nav-icon:hover i {
    color: #000 !important;
}

/* Original button styling with NVIDIA-inspired colors. */
.play-button {
    background: linear-gradient(135deg, #76b900, #609900) !important;
    border: 3px solid #4f7a00;
    box-shadow: 0 8px 25px rgba(118, 185, 0, 0.4);
    position: relative;
    overflow: hidden;
    font-family: 'Orbitron', monospace !important;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.play-button:hover::before {
    left: 100%;
}

.play-button:hover {
    background: linear-gradient(135deg, #609900, #4f7a00) !important;
    box-shadow: 0 12px 35px rgba(118, 185, 0, 0.6);
    transform: translateY(-2px) scale(1.05);
}

.play-button:active {
    transform: translateY(1px) scale(1.02);
}

/* Hero Character Scroll Animation */
.hero-character {
    transition: all 0.3s ease-out;
    transform-origin: center bottom;
}

.hero-character.scrolled {
    transform: translateX(-125%) translateY(25%) scale(1.3);
}

/* Custom Scrollbar */
/* Hide scrollbar but keep scroll functionality */
::-webkit-scrollbar {
    width: 0px;
    /* Hide scrollbar width */
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

/* For Firefox */
html {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* For Internet Explorer and Edge */
html::-webkit-scrollbar {
    display: none;
}

/* For all elements that might have scrollbars */
* {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Glitch Effect Animation */
@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

/* GTA Button Styles */
.gta-button {
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Orbitron', monospace;
}

.gta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.gta-button:hover::before {
    left: 100%;
}

.gta-button:hover {
    animation: glitch 0.3s ease-in-out;
}

/* Navigation Link Styles */
.nav-link {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Character Card Hover Effects */
.character-card {
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.6s;
}

.character-card:hover::before {
    left: 100%;
}

.character-card:hover {
    /* Removed glow effect */
}

/* Mission Item Styles */
.mission-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mission-item:hover {
    transform: translateX(10px);
}

/* Vehicle Card Styles */
.vehicle-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-10px);
}

.vehicle-card i {
    transition: all 0.3s ease;
}

.vehicle-card:hover i {
    transform: scale(1.2);
}

/* Loading Screen Animation */
#loading-screen {
    animation: fadeIn 0.5s ease-in;
    transition: opacity 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Text Glow Effect - Removed */
.text-glow {
    /* Glow effect removed */
}

/* Background Pattern */
.bg-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(118, 185, 0, 0.1) 0%, transparent 50%);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .text-6xl {
        font-size: 3rem;
    }

    .text-8xl {
        font-size: 4rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

/* Focus Styles for Accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #76B900;
    outline-offset: 2px;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* Audio Controls */
.audio-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 30;
}

.audio-btn {
    background: rgba(0, 0, 0, 0.8);
    color: #FFD700;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-btn:hover {
    background: #FFD700;
    color: #000;
    transform: scale(1.1);
}

/* Particle Effect Background */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    animation: float 6s infinite linear;
    opacity: 0.6;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Intro collage: the four silhouettes follow the supplied layout. */
#loading-screen { background: #000; animation: none; overflow: hidden; }
.intro-collage { position: absolute; width: 70%; height: min(54svh, 48vw); top: 53%; left: 15%; transform: translateY(-50%); }
.intro-panel { position: absolute; overflow: hidden; animation: intro-from-corner 1.1s cubic-bezier(.16, 1, .3, 1) both; }
.intro-panel:nth-child(2) { animation-delay: .1s; }
.intro-panel:nth-child(3) { animation-delay: .2s; }
.intro-panel:nth-child(4) { animation-delay: .3s; }
@keyframes intro-from-corner {
    from { transform: translate(100vw, 70svh) rotate(12deg); opacity: 0; }
    to { transform: translate(0, 0) rotate(0); opacity: 1; }
}
.intro-panel:nth-child(1) { left: 0; top: 7.4%; width: 26.5%; height: 82.5%; clip-path: polygon(0 2.5%, 96% 0, 100% 100%, 16% 98%); }
.intro-panel:nth-child(2) { left: 27%; top: 0; width: 17.2%; height: 100%; clip-path: polygon(0 0, 100% 2%, 76% 98.2%, 5.5% 100%); }
.intro-panel:nth-child(3) { left: 41.9%; top: 3.6%; width: 45.3%; height: 92.4%; clip-path: polygon(8.5% 0, 100% 3.3%, 96% 96.5%, 0 100%); }
.intro-panel:nth-child(4) { left: 87.2%; top: 11.8%; width: 12.8%; height: 76%; clip-path: polygon(12.3% 0, 100% 5.8%, 72.6% 92.7%, 0 100%); }
.intro-panel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s ease, filter .6s ease; }
.intro-panel:hover img { transform: scale(1.045); filter: brightness(1.08); }

/* Section Transitions */
section { opacity: 1; }

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Selection */
::selection {
    background: #FFD700;
    color: #000;
}

::-moz-selection {
    background: #FFD700;
    color: #000;
}

/* Uiverse.io Button Styling */
button {
    font-size: 18px;
    background-color: #76B900;
    color: #fff;
    text-shadow: 0 2px 0 rgb(0 0 0 / 25%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 0;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: unset;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 900;
    transition: all 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
}

button:before {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
    z-index: -1;
    background-color: #76B900 !important;
    box-shadow: 0 -4px rgb(50 76 0 / 50%) inset,
        0 4px rgb(166 224 62 / 99%) inset, -4px 0 rgb(166 224 62 / 50%) inset,
        4px 0 rgb(50 76 0 / 50%) inset;
}

button:after {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
}

button:hover:before {
    box-shadow: 0 -4px rgb(0 0 0 / 50%) inset, 0 4px rgb(255 255 255 / 20%) inset,
        -4px 0 rgb(255 255 255 / 20%) inset, 4px 0 rgb(0 0 0 / 50%) inset;
}

button:hover:after {
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
}

button:active {
    transform: translateY(4px);
}

button:active:after {
    box-shadow: 0 0px 0 0 rgb(0 0 0 / 15%);
}

/* Video Gallery with Parallelogram Clipping Mask */
.video-container {
    position: relative;
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: scale(1.05);
}

.parallelogram-clip {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    /* Jajar genjang clipping mask - kemiringan ke kanan */
    clip-path: polygon(0% 0%, 80% 0%, 100% 100%, 20% 100%);
    transition: all 0.3s ease;
    transform: scale(0.8);
    transform-origin: center;
}

.parallelogram-clip:hover {
    clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 15% 100%);
    transform: scale(0.82);
}

.parallelogram-clip video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* Responsive adjustments for video gallery */
@media (max-width: 768px) {
    .parallelogram-clip {
        aspect-ratio: 1/1;
        clip-path: polygon(0% 0%, 75% 0%, 100% 100%, 25% 100%);
        transform: scale(0.8);
    }

    .parallelogram-clip:hover {
        clip-path: polygon(0% 0%, 80% 0%, 100% 100%, 20% 100%);
        transform: scale(0.82);
    }
}

/* Footer Social Buttons */
.social-button {
    width: 48px;
    height: 48px;
    background-color: #76B900;
    color: #fff;
    text-shadow: 0 2px 0 rgb(0 0 0 / 25%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 0;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: unset;
    padding: 0;
    text-decoration: none;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    transition: all 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
}

.social-button:before {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
    z-index: -1;
    background-color: #76B900 !important;
    box-shadow: 0 -4px rgb(50 76 0 / 50%) inset,
        0 4px rgb(166 224 62 / 99%) inset, -4px 0 rgb(166 224 62 / 50%) inset,
        4px 0 rgb(50 76 0 / 50%) inset;
}

.social-button:after {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
}

.social-button:hover:before {
    box-shadow: 0 -4px rgb(0 0 0 / 50%) inset, 0 4px rgb(255 255 255 / 20%) inset,
        -4px 0 rgb(255 255 255 / 20%) inset, 4px 0 rgb(0 0 0 / 50%) inset;
}

.social-button:hover:after {
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
}

.social-button:active {
    transform: translateY(4px);
}

.social-button:active:after {
    box-shadow: 0 0px 0 0 rgb(0 0 0 / 15%);
}

/* CALL $PENGO Button */
.call-pengo-button {
    font-size: 18px;
    background-color: #76B900;
    color: #fff;
    text-shadow: 0 2px 0 rgb(0 0 0 / 25%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 0;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: unset;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    transition: all 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
}

.call-pengo-button:before {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
    z-index: -1;
    background-color: #76B900 !important;
    box-shadow: 0 -4px rgb(50 76 0 / 50%) inset,
        0 4px rgb(166 224 62 / 99%) inset, -4px 0 rgb(166 224 62 / 50%) inset,
        4px 0 rgb(50 76 0 / 50%) inset;
}

.call-pengo-button:after {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
}

.call-pengo-button:hover:before {
    box-shadow: 0 -4px rgb(0 0 0 / 50%) inset, 0 4px rgb(255 255 255 / 20%) inset,
        -4px 0 rgb(255 255 255 / 20%) inset, 4px 0 rgb(0 0 0 / 50%) inset;
}

.call-pengo-button:hover:after {
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
}

.call-pengo-button:active {
    transform: translateY(4px);
}

.call-pengo-button:active:after {
    box-shadow: 0 0px 0 0 rgb(0 0 0 / 15%);
}

/* Copy CA Button */
.copy-ca-button {
    width: 32px;
    height: 32px;
    background-color: #76B900;
    color: #fff;
    text-shadow: 0 2px 0 rgb(0 0 0 / 25%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 0;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: unset;
    padding: 0.5rem;
    text-decoration: none;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    transition: all 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
    margin-left: 8px;
}

.copy-ca-button:before {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
    z-index: -1;
    background-color: #76B900 !important;
    box-shadow: 0 -4px rgb(50 76 0 / 50%) inset,
        0 4px rgb(166 224 62 / 99%) inset, -4px 0 rgb(166 224 62 / 50%) inset,
        4px 0 rgb(50 76 0 / 50%) inset;
}

.copy-ca-button:after {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
}

.copy-ca-button:hover:before {
    box-shadow: 0 -4px rgb(0 0 0 / 50%) inset, 0 4px rgb(255 255 255 / 20%) inset,
        -4px 0 rgb(255 255 255 / 20%) inset, 4px 0 rgb(0 0 0 / 50%) inset;
}

.copy-ca-button:hover:after {
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
}

.copy-ca-button:active {
    transform: translateY(4px);
}

.copy-ca-button:active:after {
    box-shadow: 0 0px 0 0 rgb(0 0 0 / 15%);
}

/* Footer CA Box with Font Secondary */
.footer-ca-box {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
}

/* Responsive Footer Styles */

/* Tablet Layout Styles */
.copy-ca-button-tablet {
    width: 28px;
    height: 28px;
    background-color: #76B900;
    color: #fff;
    text-shadow: 0 2px 0 rgb(0 0 0 / 25%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 0;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: unset;
    padding: 0.4rem;
    text-decoration: none;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    transition: all 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
    margin-left: 6px;
}

.copy-ca-button-tablet:before {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
    z-index: -1;
    background-color: #76B900 !important;
    box-shadow: 0 -4px rgb(50 76 0 / 50%) inset,
        0 4px rgb(166 224 62 / 99%) inset, -4px 0 rgb(166 224 62 / 50%) inset,
        4px 0 rgb(50 76 0 / 50%) inset;
}

.copy-ca-button-tablet:after {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
}

.copy-ca-button-tablet:hover:before {
    box-shadow: 0 -4px rgb(0 0 0 / 50%) inset, 0 4px rgb(255 255 255 / 20%) inset,
        -4px 0 rgb(255 255 255 / 20%) inset, 4px 0 rgb(0 0 0 / 50%) inset;
}

.copy-ca-button-tablet:hover:after {
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
}

.copy-ca-button-tablet:active {
    transform: translateY(4px);
}

.copy-ca-button-tablet:active:after {
    box-shadow: 0 0px 0 0 rgb(0 0 0 / 15%);
}

.call-pengo-button-tablet {
    font-size: 16px;
    background-color: #76B900;
    color: #fff;
    text-shadow: 0 2px 0 rgb(0 0 0 / 25%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 0;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: unset;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    transition: all 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
}

.call-pengo-button-tablet:before {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
    z-index: -1;
    background-color: #76B900 !important;
    box-shadow: 0 -4px rgb(50 76 0 / 50%) inset,
        0 4px rgb(166 224 62 / 99%) inset, -4px 0 rgb(166 224 62 / 50%) inset,
        4px 0 rgb(50 76 0 / 50%) inset;
}

.call-pengo-button-tablet:after {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
}

.call-pengo-button-tablet:hover:before {
    box-shadow: 0 -4px rgb(0 0 0 / 50%) inset, 0 4px rgb(255 255 255 / 20%) inset,
        -4px 0 rgb(255 255 255 / 20%) inset, 4px 0 rgb(0 0 0 / 50%) inset;
}

.call-pengo-button-tablet:hover:after {
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
}

.call-pengo-button-tablet:active {
    transform: translateY(4px);
}

.call-pengo-button-tablet:active:after {
    box-shadow: 0 0px 0 0 rgb(0 0 0 / 15%);
}

/* Mobile Layout Styles */
.social-button-mobile {
    width: 40px;
    height: 40px;
    background-color: #76B900;
    color: #fff;
    text-shadow: 0 2px 0 rgb(0 0 0 / 25%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 0;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: unset;
    padding: 0;
    text-decoration: none;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    transition: all 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
}

.social-button-mobile:before {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
    z-index: -1;
    background-color: #76B900 !important;
    box-shadow: 0 -4px rgb(50 76 0 / 50%) inset,
        0 4px rgb(166 224 62 / 99%) inset, -4px 0 rgb(166 224 62 / 50%) inset,
        4px 0 rgb(50 76 0 / 50%) inset;
}

.social-button-mobile:after {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
}

.social-button-mobile:hover:before {
    box-shadow: 0 -4px rgb(0 0 0 / 50%) inset, 0 4px rgb(255 255 255 / 20%) inset,
        -4px 0 rgb(255 255 255 / 20%) inset, 4px 0 rgb(0 0 0 / 50%) inset;
}

.social-button-mobile:hover:after {
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
}

.social-button-mobile:active {
    transform: translateY(4px);
}

.social-button-mobile:active:after {
    box-shadow: 0 0px 0 0 rgb(0 0 0 / 15%);
}

.footer-ca-box-mobile {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
}

.copy-ca-button-mobile {
    width: 24px;
    height: 24px;
    background-color: #76B900;
    color: #fff;
    text-shadow: 0 2px 0 rgb(0 0 0 / 25%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 0;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: unset;
    padding: 0.3rem;
    text-decoration: none;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    transition: all 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
    margin-left: 4px;
}

.copy-ca-button-mobile:before {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
    z-index: -1;
    background-color: #76B900 !important;
    box-shadow: 0 -4px rgb(50 76 0 / 50%) inset,
        0 4px rgb(166 224 62 / 99%) inset, -4px 0 rgb(166 224 62 / 50%) inset,
        4px 0 rgb(50 76 0 / 50%) inset;
}

.copy-ca-button-mobile:after {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
}

.copy-ca-button-mobile:hover:before {
    box-shadow: 0 -4px rgb(0 0 0 / 50%) inset, 0 4px rgb(255 255 255 / 20%) inset,
        -4px 0 rgb(255 255 255 / 20%) inset, 4px 0 rgb(0 0 0 / 50%) inset;
}

.copy-ca-button-mobile:hover:after {
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
}

.copy-ca-button-mobile:active {
    transform: translateY(4px);
}

.copy-ca-button-mobile:active:after {
    box-shadow: 0 0px 0 0 rgb(0 0 0 / 15%);
}

.call-pengo-button-mobile {
    font-size: 14px;
    background-color: #76B900;
    color: #fff;
    text-shadow: 0 2px 0 rgb(0 0 0 / 25%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 0;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: unset;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    transition: all 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
}

.call-pengo-button-mobile:before {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
    z-index: -1;
    background-color: #76B900 !important;
    box-shadow: 0 -4px rgb(50 76 0 / 50%) inset,
        0 4px rgb(166 224 62 / 99%) inset, -4px 0 rgb(166 224 62 / 50%) inset,
        4px 0 rgb(50 76 0 / 50%) inset;
}

.call-pengo-button-mobile:after {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
    transition: 0.7s cubic-bezier(0, 0.8, 0.26, 0.99);
}

.call-pengo-button-mobile:hover:before {
    box-shadow: 0 -4px rgb(0 0 0 / 50%) inset, 0 4px rgb(255 255 255 / 20%) inset,
        -4px 0 rgb(255 255 255 / 20%) inset, 4px 0 rgb(0 0 0 / 50%) inset;
}

.call-pengo-button-mobile:hover:after {
    box-shadow: 0 4px 0 0 rgb(0 0 0 / 15%);
}

.call-pengo-button-mobile:active {
    transform: translateY(4px);
}

.call-pengo-button-mobile:active:after {
    box-shadow: 0 0px 0 0 rgb(0 0 0 / 15%);
}

/* AOS Custom Styles */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Custom AOS animations for GTA theme */
[data-aos="fade-up"] {
    transform: translateY(30px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="fade-left"] {
    transform: translateX(30px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

/* Enhanced video container animations */
.video-container[data-aos] {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-container[data-aos].aos-animate {
    transform: scale(1);
}

/* Footer animations with GTA style */
footer [data-aos] {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Disable AOS on preloader elements */
#loading-screen [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

#loading-screen [data-aos].aos-animate {
    opacity: 1 !important;
    transform: none !important;
}

/* Inu keeps the existing city backdrop and fixed footer. */
[hidden] { display: none !important; }
.inu-wordmark { font-family: GTA, Impact, sans-serif; color: white; text-align: center; line-height: .86; text-transform: uppercase; text-shadow: 3px 3px 0 #111, -2px -2px 0 #111, 2px -2px 0 #111, -2px 2px 0 #111; }
.inu-wordmark span, .inu-wordmark strong { display: block; font-weight: normal; }
.inu-wordmark span { font-size: .40em; letter-spacing: .01em; }
.inu-wordmark strong { font-size: 1em; }
.entry-wordmark { position: absolute; z-index: 10; top: 4%; left: 50%; transform: translateX(-50%); font-size: clamp(64px, 7vw, 104px); }
.home-wordmark { position: absolute; top: 26px; left: 32px; z-index: 20; font-size: clamp(65px, 8vw, 110px); text-decoration: none; }
#home { position: sticky; top: 0; height: 100svh; min-height: 600px; background: linear-gradient(#688da0, #a9c2ba 45%, #174e60); }
#home::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0003, transparent 35%, #09101180); }
#intro-flight { position: absolute; inset: 0; z-index: 15; pointer-events: none; }
#intro-flight canvas { display: block; }
.inu-stage { position: absolute; inset: 0; width: 100%; height: 100%; }
#model-view, #model-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#model-view canvas { display: block; width: 100%; height: 100%; }
.meme-section { position: relative; z-index: 22; width: 50%; margin-left: auto; padding: 40px 32px 135px; }
.meme-section::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: #10192666; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); mask-image: linear-gradient(to right, transparent 15%, #0003 40%, #000a 65%, #000 88%), linear-gradient(to bottom, transparent, #000 18%, #000 85%, transparent); mask-composite: intersect; opacity: 0; transition: opacity .6s ease; }
body.viewing-memes .meme-section::before { opacity: 1; }
.meme-grid { display: grid; grid-template-columns: 1fr; gap: 48px; width: min(100%, 440px); margin-left: auto; padding: 18px 0; }
.meme-card { display: block; padding: 0; font-weight: 400; text-transform: none; letter-spacing: normal; min-width: 0; overflow: hidden; background: #111a27; text-align: left; border: 1px solid #ffffff24; border-radius: 8px; transition: transform .85s cubic-bezier(.16,1,.3,1), opacity .6s; transform: translate(100px, 140px) rotate(9deg) scale(.92); opacity: 0; }
.meme-card::before, .meme-card::after, #meme-dialog button::before, #meme-dialog button::after { content: none; }
#meme-dialog button { font-weight: 400; text-transform: none; letter-spacing: normal; }
.meme-card.arrived, .meme-card:focus-visible { transform: translate(0, 0) rotate(-3deg); opacity: 1; }
.meme-card.arrived:hover { transform: translateY(-4px) rotate(0deg); }
.meme-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
[aria-disabled='true'] { opacity: .4; cursor: default; pointer-events: none; }
button:disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 3px solid #76B900; outline-offset: 4px; }
#meme-dialog { padding: 20px; border: 0; background: transparent; color: white; max-width: min(92vw, 850px); max-height: 94svh; }
#meme-dialog::backdrop { background: #03080d33; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
#dialog-image { display: block; max-height: 74svh; max-width: 100%; width: auto; margin: auto; object-fit: contain; }
.dialog-close { position: absolute; top: 24px; right: 24px; width: 36px; height: 36px; background: #111d; border-radius: 50%; font-size: 25px; }
@media(max-width: 767px) {
    #home { min-height: 570px; }
    .home-wordmark { left: 20px; top: 20px; font-size: 77px; }
    .meme-section { width: 100%; padding: 30px 16px 170px; }

    .meme-grid { gap: 36px; padding: 18px 10px; }
    #meme-dialog { padding: 10px; }

}
@media(prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .meme-card, [data-aos] { opacity: 1 !important; transform: none !important; }
}

#loading-screen .intro-enter { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); padding: 10px 23px; min-width: 100px; border: 1px solid #76b900; border-radius: 6px; font-size: 12px; line-height: 1.4; letter-spacing: .14em; box-shadow: 0 3px 12px #76b9002b; }
#loading-screen .intro-enter::before, #loading-screen .intro-enter::after { content: none; }
#loading-screen .intro-enter:hover { transform: translateX(-50%) translateY(-2px); }

/* Dark lettering keeps the green buttons readable. */
#loading-screen .intro-enter, footer :is([data-link], button) { color: #0b0d08; }
footer .footer-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
footer button .footer-icon { width: 16px; height: 16px; }
footer .dex-icon { filter: brightness(0); }
footer [data-link="buy"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
footer [data-link="buy"] img { flex-shrink: 0; }

footer [data-ca] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
footer :is(.footer-ca-box, .footer-ca-box-mobile) { min-width: 0; max-width: 100%; }
footer [title="Copy CA Address"] { flex-shrink: 0; }
@media(min-width: 640px) { footer .footer-ca-box { max-width: 52%; } }
