/* Fonts */
@font-face {
    font-family: 'JuliusSansOne';
    src: url('assets/JuliusSansOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    background: #1a1a2e;
}

/* Page wrapper */
.page-wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Logo - top right, much bigger */
.brand-logo {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 156px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    z-index: 100;
}

/* Burger menu button - top left on mobile */
.burger-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    cursor: pointer;
    padding: 12px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: fixed;
    top: 80px;
    left: 20px;
    right: 20px;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    z-index: 99;
    flex-direction: column;
    gap: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-mobile.open {
    display: flex;
}

.nav-btn-mobile {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 18px 24px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.nav-btn-mobile:hover,
.nav-btn-mobile:active {
    background: rgba(255,215,0,0.3);
    border-color: #FFD700;
}

/* Main content */
.main-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Background */
.background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg_2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    z-index: 1;
}

/* Parallax clouds */
.parallax-clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.parallax-cloud {
    position: absolute;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Flying bats */
.flying-bat {
    position: absolute;
    background-repeat: no-repeat;
    background-position: 0 0;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    pointer-events: none;
    z-index: 5;
}

/* Center content - title and buttons */
.center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    text-align: center;
    z-index: 10;
}

.brand-title {
    font-family: 'JuliusSansOne', sans-serif;
    font-size: 72px;
    color: #FFD700;
    text-shadow:
        -3px -3px 0 #000,
        3px -3px 0 #000,
        -3px 3px 0 #000,
        3px 3px 0 #000,
        -3px 0 0 #000,
        3px 0 0 #000,
        0 -3px 0 #000,
        0 3px 0 #000,
        6px 6px 15px rgba(0,0,0,0.5);
    letter-spacing: 4px;
    margin-bottom: 120px;
    white-space: nowrap;
}

/* Desktop Navigation - centered */
.nav-desktop {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.nav-btn {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.4);
    padding: 16px 40px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255,215,0,0.95);
    color: #000;
    border: 2px solid #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,215,0,0.4);
}

/* Platform - always full width */
.platform-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 120px;
    height: 15vh;
    max-height: 200px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    z-index: 3;
    object-fit: cover;
    object-position: top center;
}

/* Character - 20% smaller (96 * 0.8 = 77) */
.character {
    position: absolute;
    width: 77px;
    height: 77px;
    bottom: 100px;
    left: 12%;
    background-image: url('assets/Pink_Monster_Idle_4.png');
    background-size: 308px 77px;
    background-position: 0 0;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    z-index: 10;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.popup.visible {
    display: flex;
}

.popup-content {
    position: relative;
    background: rgba(26, 26, 46, 0.98);
    border: 2px solid rgba(255,215,0,0.4);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
    animation: popupIn 0.3s ease;
}

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

.popup-close-x {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: rgba(255,215,0,0.6);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.popup-close-x:hover {
    color: #FFD700;
}

.popup-content h2 {
    font-family: 'JuliusSansOne', sans-serif;
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 28px;
    letter-spacing: 2px;
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
}

.popup-content p,
.popup-content div {
    color: #fff;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 15px;
}

.popup-content a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.popup-content a:hover {
    color: #fff;
    text-decoration: underline;
}

.popup-close {
    background: rgba(0,0,0,0.7);
    color: #FFD700;
    border: 2px solid rgba(255,215,0,0.6);
    padding: 14px 40px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: rgba(255,215,0,0.95);
    color: #000;
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,215,0,0.4);
}

/* Social links in popup */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.social-link:hover {
    background: rgba(255,215,0,0.95);
    color: #000;
    border-color: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,215,0,0.4);
}

/* Game card in popup */
.game-card {
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(255,215,0,0.4);
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
    color: white;
    text-align: left;
    backdrop-filter: blur(10px);
}

.game-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.game-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.game-card h3 {
    font-size: 22px;
    margin-bottom: 0;
}

.game-card h3.game-title {
    font-family: 'JuliusSansOne', sans-serif;
    font-size: 26px;
    color: #FFD700;
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
    letter-spacing: 2px;
    margin: 0;
}

.game-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.4), transparent);
    margin: 15px 0;
}

.game-card p {
    color: #fff;
    margin-bottom: 15px;
    font-size: 14px;
}

.game-card .badge {
    display: inline-block;
    background: rgba(255,215,0,0.2);
    border: 1px solid rgba(255,215,0,0.4);
    color: #FFD700;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
}

.game-card .download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background: rgba(255,215,0,0.9);
    color: #000;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.game-card .download-btn:hover {
    background: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,215,0,0.4);
}

/* Footer */
.site-footer {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.site-footer .heart {
    color: #ff6b6b;
    font-style: normal;
}

/* Mobile responsive */
@media (max-width: 900px) {
    .brand-title {
        font-size: 48px;
        letter-spacing: 2px;
    }

    .nav-btn {
        font-size: 16px;
        padding: 14px 30px;
    }

    .brand-logo {
        width: 130px;
    }

    .game-card h3.game-title {
        font-size: 22px;
        letter-spacing: 1px;
    }
}

@media (max-width: 768px) {
    .brand-logo {
        width: 90px;
        top: 15px;
        right: 15px;
    }

    .burger-btn {
        display: flex;
        top: 15px;
        left: 15px;
    }

    .nav-desktop {
        display: none;
    }

    .brand-title {
        font-size: 36px;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }

    .center-content {
        transform: translate(-50%, -70%);
    }

    .character {
        width: 64px;
        height: 64px;
        background-size: 256px 64px;
        bottom: 80px;
        left: 10%;
    }

    .popup-content {
        padding: 30px 25px;
    }

    .popup-content h2 {
        font-size: 24px;
    }

    .platform-img {
        min-height: 80px;
        height: 12vh;
    }

    .site-footer {
        bottom: 5px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 28px;
    }

    .brand-logo {
        width: 70px;
        top: 12px;
        right: 12px;
    }

    .burger-btn {
        width: 42px;
        height: 42px;
        padding: 10px;
        top: 12px;
        left: 12px;
    }

    .character {
        width: 51px;
        height: 51px;
        background-size: 204px 51px;
        bottom: 55px;
        left: 8%;
    }

    .platform-img {
        min-height: 60px;
        height: 10vh;
    }

    .site-footer {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .brand-title {
        font-size: 24px;
    }

    .brand-logo {
        width: 60px;
        top: 10px;
        right: 10px;
    }

    .burger-btn {
        width: 38px;
        height: 38px;
        padding: 8px;
        top: 10px;
        left: 10px;
    }

    .nav-mobile {
        top: 58px;
        left: 10px;
        right: 10px;
    }

    .nav-btn-mobile {
        padding: 14px 20px;
        font-size: 16px;
    }

    .character {
        bottom: 50px;
        left: 5%;
    }
}

/* Landscape mobile - shorter screens */
@media (max-height: 500px) {
    .platform-img {
        min-height: 50px;
        height: 8vh;
        max-height: 80px;
    }

    .character {
        bottom: 40px;
    }

    .center-content {
        transform: translate(-50%, -55%);
    }

    .brand-title {
        margin-bottom: 15px;
    }

    .site-footer {
        display: none;
    }
}
