/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: system-ui, sans-serif;
    overflow: hidden;
}

/* Background */

.background-wrap {
    position: fixed;
    inset: -3%;
    z-index: -2;
    will-change: transform;
}

.background {
    position: absolute;
    inset: 0;
    animation: cameraDrift 28s ease-in-out infinite alternate;
    will-change: transform, filter;
}

.background-home {
    background: url("/assets/background.webp") center / cover no-repeat;
}

.background-supporter {
    background: url("/assets/background_supporter.webp") center / cover no-repeat;
}



/* Vignette overlay */
.background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0,0,0,0) 50%,
        rgba(0,0,0,0.4) 100%
    );
    pointer-events: none;
}

@keyframes cameraDrift {
    0% {
        transform: scale(1.06) translate(0px, 0px);
        filter: blur(0.2px);
    }
    50% {
        transform: scale(1.075) translate(-12px, -8px);
        filter: blur(0.45px);
    }
    100% {
        transform: scale(1.06) translate(9px, 6px);
        filter: blur(0.2px);
    }
}




/* Particle canvas */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.page {
    display: none;
}

.page.active {
    display: block;
}








/* =========================================================
   HOMEPAGE
========================================================= */

.home-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 5vh 0;
}

/* Logo wrapper: relative positioning + breathe animation */
.logo-wrap {
    width: clamp(400px, 80vw, 1000px);
    aspect-ratio: 1380 / 270;
    animation: logoBreathe 7.5s ease-in-out infinite;
}

/* Both stacked logo images */
.default-logo,
.hover-logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hover image hidden by default */
.hover-logo {
    opacity: 0;
    pointer-events: none;
}

/* Hover effect */
.logo-link:hover .default-logo {
    opacity: 0;
}

.logo-link:hover .hover-logo {
    opacity: 1;
    transform: scale(1.005); /* optional subtle hover scale */
}

/* Click / active effect */
.logo-link:active .hover-logo {
    transform: scale(0.97);
}

/* Breathe animation applied to wrapper */
@keyframes logoBreathe {
    0%   { transform: translateY(0px) scale(1); }
    50%  { transform: translateY(-6px) scale(1.01); }
    100% { transform: translateY(0px) scale(1); }
}

.bg-legibility {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;

    background:
        /* Top fade (logo) */
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.12) 0%,
            rgba(0,0,0,0.00) clamp(100px, 20vw, 1000px)
        ),

        /* Bottom fade (navigation) */
        linear-gradient(
            to top,
            rgba(255,255,255,0.15) 0%,
            rgba(0,0,0,0.00) clamp(166px, 33vw, 1660px)
        );
}

.nav-buttons {
    position: absolute;
    bottom: 5vh;
    display: inline-flex;
    gap: clamp(1.5rem, 4vw, 2rem);
    align-items: center;
    justify-content: center;
}

/* Shared link styling */
.nav-buttons a {
    font-family: "Exo", sans-serif;
    font-size: clamp(0.75rem, 2vw, 2rem);
    font-weight: 500;

    color: rgba(255,255,255,1.0);
    text-decoration: none;

    text-shadow: 
        0px 0px 6px rgba(0,0,0,1.0),
        0px 0px 0px rgba(0,0,0,0.0),
        0px 0px 32px rgba(0,0,0,0.6);

    transition: all 0.25s ease;
    position: relative;
}

.nav-buttons a:hover {
    color: #0099ff;
    text-shadow:
        0px 0px 6px rgba(0,0,0,1.0),
        0px 0px 6px rgba(0,153,255,0.0),
        0px 0px 32px rgba(0,0,0,0.6);
        
}

.nav-buttons a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.2rem;
    width: 0%;
    height: 2px;
    box-shadow: 0px 0px 6px rgba(0,0,0,1.0);
    background: #0099ff;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.nav-buttons a:hover::after {
    width: 50%;
}

.nav-buttons a {
    animation: navBreathe 5s ease-in-out infinite;
}

.nav-buttons a:nth-child(2) { animation-delay: 1s; }
.nav-buttons a:nth-child(3) { animation-delay: 2s; }
.nav-buttons a:nth-child(4) { animation-delay: 3s; }
.nav-buttons a:nth-child(5) { animation-delay: 4s; }

/* Nav item container */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    width: 10vw; /* universal size */
    text-align: center;
}

/* Nav images */
.nav-item img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin-bottom: 0.6rem;

    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Nav image wrapper */
.nav-img-wrap {
    position: relative;
    width: clamp(64px, 8vw, 120px); /* responsive width */
    height: clamp(64px, 8vw, 120px);
    margin-bottom: 0.2rem;
}

/* Default + hover images stacked */
.nav-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hover image hidden by default */
.nav-img-wrap .hover-img {
    opacity: 0;
    pointer-events: none;
}

/* Hover effect */
.nav-item:hover .default-img {
    transform: translateY(-4px) scale(1.04);
    opacity: 0;
}

.nav-item:hover .hover-img {
    transform: translateY(-4px) scale(1.04);
    opacity: 0.9;
}

/* Click effect */
.nav-item:active .hover-img {
    transform: translateY(-2px) scale(0.97);
}

.nav-buttons .nav-label {
    display: inline-block;
    transition: transform 0.12s ease;
    transform-origin: center;
}

/* Click feedback (text only) */
.nav-buttons a:active .nav-label {
    transform: scale(0.97);
}



.primary-nav {
    position: absolute;
    bottom: 22vh;
    width: 100%;
    display: flex;
    justify-content: center;
}

.start-button {
    font-family: "Exo", sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 500;
    text-decoration: none;
    color: white;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 1rem 3rem;
    border-radius: 999px;

    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.45);

    text-shadow:
        0 0 7px rgba(0,0,0,1),
        0 0 44px rgba(0,0,0,1);

    box-shadow:
        0 0 12px rgba(0,0,0,0.5),
        inset 0 0 8px rgba(0,0,0,0.3);

    transition: transform .18s ease, background .25s, border .25s;
}

.start-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.start-float {
    display: inline-block;
    animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
    0%   { transform: translateY(-6px); }
    50%  { transform: translateY(0px); }
    100% { transform: translateY(-6px); }
}

.start-button:hover,
.start-button:hover * {
    animation-play-state: paused;
}

.start-button:hover {
    background: rgba(0,153,255,0.5);
    border: 1px solid rgba(0,153,255,0.4);
    transform: scale(1.06);
}

.start-button:active {
    transform: scale(0.96);
}

.start-text {
    position: relative;
}

.start-text::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.4rem;
    width: 0%;
    height: 2px;
    background: white;
    transform: translateX(-50%);
    transition: width .25s;
    box-shadow: 0px 0px 6px rgba(0,0,0,1.0);
}

.start-button:hover .start-text::after {
    width: 65%;
}

.platforms {
    display: flex;
    gap: 0.9rem;
    margin-top: 0.35rem;
    opacity: 0.9;
}

.platforms img {
    width: clamp(14px, 1.2vw, 24px);
    animation: iconFloat 3.5s ease-in-out infinite;
}

.platforms img:nth-child(2){animation-delay:.4s}
.platforms img:nth-child(3){animation-delay:.8s}
.platforms img:nth-child(4){animation-delay:1.2s}

@keyframes iconFloat {
    0%,100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.platforms img {
    width: clamp(14px, 1.2vw, 24px);

    animation: iconFloat 3.5s ease-in-out infinite;

    /* force white */
    filter:
        brightness(0)
        invert(1)
        grayscale(1)
        contrast(200%);

    /* separation from white button */
    filter:
        brightness(0) invert(1) grayscale(1) contrast(200%)
        drop-shadow(0 1px 1px rgba(0,0,0,0.9))
        drop-shadow(0 0 4px rgba(0,0,0,0.7));
}

#footer-links {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 90;
}

#footer-links button {
    font-size: clamp(0.5rem, 1vw, 1rem);
    background: none;
    border: none;
    padding: 0;
    color: #ffffff;
    transition: color 0.2s ease;
    font-size: 14px;
    text-decoration: none;
    text-shadow: 
        0px 0px 6px rgba(0,0,0,1.0),
        0px 0px 0px rgba(0,0,0,0.0),
        0px 0px 32px rgba(0,0,0,0.6);
}

#footer-links button:hover {
    color: #0099ff;
}







    














/* =========================================================
   TOP-NAV - POS
========================================================= */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: clamp(70px, 8vh, 110px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-inline: 1.8rem;
    box-sizing: border-box;

    z-index: 10;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
}

.top-nav.hidden {
    pointer-events: none;
    opacity: 0;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 28px);
}

.nav-left > *,
.nav-right > * {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(14px, 5vh, 52px);
    margin: auto 0;
}

.nav-logo-wrap .nav-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 100%;
    object-fit: contain;
    transition: opacity .25s ease, transform .25s ease;
}

.nav-logo-wrap .nav-logo.hover {
    opacity: 0;
    pointer-events: none;
}

/* Hover effect */
.nav-logo-wrap:hover .nav-logo.default {
    opacity: 0;
}

.nav-logo-wrap:hover .nav-logo.hover {
    opacity: 1;
    transform: scale(1.01);
}

/* centered nav links */
.nav-center {
    position: absolute;
    left: 45%;
    transform: translateX(-50%);
    display: flex;
    width: 50%;
    white-space: nowrap;
}

/* =========================================================
   TOP-NAV - LINKS
========================================================= */

.top-nav a.nav-item {
    font-family: "Exo", sans-serif;
    font-size: clamp(.95rem, 1.1vw, 1.5rem);
    font-weight: 500;
    color: rgba(255,255,255,1.0);
    text-decoration: none;
    position: relative;
    transition: color .25s ease;
}

/* underline */
.top-nav .nav-item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.25rem;
    width: 0%;
    height: 2px;
    background: #0099ff;
    transform: translateX(-50%);
    transition: width .25s ease;
}

.top-nav .nav-item:hover {
    color: #0099ff;
}

.top-nav .nav-item:hover::after,
.top-nav .nav-item.active::after {
    width: 50%;
}

.top-nav .nav-item.active {
    color: #0099ff;
    pointer-events: none;
}


/* breathing animation */
@keyframes navBreathe {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.top-nav .nav-item {
    animation: navBreathe 5s ease-in-out infinite;
}

.top-nav .nav-item:nth-child(2){animation-delay:1s;}
.top-nav .nav-item:nth-child(3){animation-delay:2s;}
.top-nav .nav-item:nth-child(4){animation-delay:3s;}
.top-nav .nav-item:nth-child(5){animation-delay:4s;}
.top-nav .nav-item:nth-child(6){animation-delay:5s;}


/* =========================================================
   TOP-NAV ICON CONTROLS (AUDIO/HAMBURGER/LOGO)
========================================================= */

.nav-control {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.icon-wrap {
    position: relative;
    width: clamp(22px, 5vw, 60px);
    height: clamp(22px, 5vw, 60px);
}

.icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .25s ease, transform .25s ease;
}

.icon.hover {
    opacity: 0;
    pointer-events: none;
}

.nav-control.hamburger.active .icon.default { opacity: 0; }
.nav-control.hamburger.active .icon.hover   { opacity: 1; transform: scale(1.1); }

.nav-control.audio-toggle:hover .icon.default { transform: scale(1.1); }
.nav-control.audio-toggle:hover .icon.hover   { opacity: 1; transform: scale(1.1); }

/* shared */
.nav-control.audio-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* homepage-only */
/* Standalone audio button container */
.standalone-audio {
    position: fixed;
    top: 0;
    right: 2rem;      /* same as top-nav padding */
    z-index: 999;

    display: flex;
    align-items: center;       /* vertical centering */
    justify-content: center;

    height: clamp(70px, 8vh, 110px);   /* match top-nav height */
    width: auto;
}

/* Inner icon wrapper */
.standalone-audio .icon-wrap {
    width: clamp(22px, 5vw, 60px);
    height: clamp(22px, 5vw, 60px);
}

/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
    position: fixed;
    top: clamp(70px, 8vh, 110px);
    right: 1rem;
    z-index: 999;

    display: flex;
    flex-direction: column;
    gap: .6rem;

    padding: 1rem 1rem;
    border-radius: 14px;

    background: rgba(0,0,0,.7);
    backdrop-filter: blur(10px);

    transform: translateY(-10px) scale(.95);
    opacity: 0;
    pointer-events: none;
    transition: all .25s cubic-bezier(.2,.8,.2,1);
}

.mobile-menu.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.mobile-item {
    font-family: "Exo", sans-serif;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    text-align: center;
    padding: .4rem 4rem;
    border-radius: 8px;
    transition: background .2s, transform .15s;
    position: relative;
}



.mobile-item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.25rem;
    width: 0%;
    height: 2px;
    background: #0099ff;
    transform: translateX(-50%);
    transition: width .25s ease;
}

.mobile-item:hover::after {
    width: 50%;
}

.mobile-item:hover {
    background: rgba(255,255,255,.08);
}

.mobile-item:active {
    transform: scale(.95);
}


/* =========================================================
   RESPONSIVE RULES
========================================================= */

/* default: desktop */
.hamburger { display: none; }

/* mobile / tablet in portrait or below 850px width */
@media (max-width: 1919px), (max-width: 1200px) and (orientation: portrait) {
    .hamburger { display: flex; }
    .nav-center { display: none; }
}




















.container {
    position: fixed;
    inset: 0;
    
}

:root {
    --nav-h: clamp(70px, 8vh, 110px);
}

.top-nav-used {
    position: absolute;
    top: var(--nav-h);
    bottom: clamp(12px, 3vw, 40px); /* bottom safe margin */
    padding-top: clamp(12px, 3vw, 40px);
    left: clamp(12px, 3vw, 40px);
    right: clamp(12px, 3vw, 40px);

    display: flex;
    align-items: stretch;
}

.main-container {
    z-index: 5;
    width: 100%;
    height: 100%;
    overflow: hidden;

    padding: clamp(1.2rem, 2.5vw, 2.5rem);

    display: flex;
    flex-direction: column;
    
    background: rgba(0, 0, 0, 0.32);
    border-radius: 2rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);

    color: rgba(255,255,255,1.0);
    font-family: "Exo", sans-serif;
    text-shadow: 0px 0px 6px rgba(0,0,0,1.0);
}

.panel-header {
    flex: 0 0 auto;
    /*text-align: center;*/
    font-size: 1vw;
    margin-bottom: 0.6em;
}

.panel-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
}

.panel-footer {
    flex: 0 0 auto;
    text-align: center;
}

.panel p {
    font-size: clamp(1rem, 1.2vw + 0.8rem, 1.35rem);
    line-height: 1.65;
    max-width: 65ch;
}







.screenshots-carousel {
    width: 100%;
    position: absolute;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
}
.screenshots-mask {
    overflow: hidden;
    width: 100%;
    padding-block: 12px;
    margin-block: -12px;
}

.screenshots-track {
    display: flex;
    flex-wrap: nowrap; 
    gap: 1rem;
    width: max-content;
    will-change: transform;
    align-items: center;
}

.screenshot-item {
    flex: 0 0 auto;
    width: max-content;
}

.screenshot-sway {
    display: inline-block;
    animation: screenshotSway 8s ease-in-out infinite;
    will-change: transform;
}

.screenshot-sway img {
    display: block;
    max-width: none;
    width: clamp(150px, 15vw, 420px);
    border-radius: 0.6rem;
    box-shadow: 0 0 5px rgba(0,0,0,0.7);
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.screenshot-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Blurred state */
.screenshot-item.blurred img {
    filter: blur(18px) brightness(0.8);
    pointer-events: none;
}

/* Overlay texture */
.sensitive-overlay {
    position: absolute;
    inset: 0;
    background: url("../assets/sensitive_texture.webp") center / cover, rgba(255,255,255,0.33);
    backdrop-filter: blur(2px);

    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    cursor: pointer;
    border-radius: 0.6rem;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.sensitive-overlay:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.screenshot-item:not(.blurred) .sensitive-overlay {
    opacity: 0;
    pointer-events: none;
}

@keyframes screenshotSway {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

.screenshot-item:nth-child(2) .screenshot-sway { animation-delay: 1s; }
.screenshot-item:nth-child(3) .screenshot-sway { animation-delay: 2s; }
.screenshot-item:nth-child(4) .screenshot-sway { animation-delay: 3s; }
.screenshot-item:nth-child(5) .screenshot-sway { animation-delay: 4s; }
.screenshot-item:nth-child(6) .screenshot-sway { animation-delay: 5s; }
.screenshot-item:nth-child(7) .screenshot-sway { animation-delay: 6s; }
.screenshot-item:nth-child(8) .screenshot-sway { animation-delay: 7s; }
.screenshot-item:nth-child(9) .screenshot-sway { animation-delay: 8s; }





.lightbox {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.5), rgba(0,0,0,0.8));
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 999;
}

.lightbox-stage {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

/* Screenshot */
.lightbox-img {
    width: 66vw;
    height: auto;
    display: block;
    border-radius: 8px;

    /* cinematic separation */
    box-shadow:
        0 40px 120px rgba(0,0,0,.9),
        0 0 0 1px rgba(255,255,255,.08);

    transform: scale(.96);
    transition: transform .25s ease;
}

.lightbox.open .lightbox-img {
    transform: scale(1);
}

/* Close button image */
.lightbox-close {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(10%, -10%);
    width: clamp(25px, 6vw, 100px);
    height: clamp(25px, 6vw, 100px);
    cursor: pointer;
    z-index: 20;
    transition: transform .15s ease, filter .15s ease;
}

.lightbox-close:hover {
    transform: translate(10%, -10%) scale(1.05);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(25px, 8vw, 100px);
    cursor: pointer;
    opacity: .85;
    transition: transform .15s ease, opacity .15s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.05);
    opacity: 1;
}

/* outside image edges */
.lightbox-prev { left: -4rem; }
.lightbox-next { right: -4rem; }

.lightbox-dots {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    z-index: 10;
}

.lightbox-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.lightbox-dots .dot.active {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}


















.download-layout {
    flex: 1;
    min-height: 0;
    height: 100%;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* art slightly bigger than cards */
    gap: clamp(1rem, 2vw, 2rem);
}

.download-page {
    flex: 1;
    display: grid;
    grid-template-columns: 1.05fr 1.25fr;
    gap: clamp(16px, 2vw, 28px);
    height: 100%;
}



.title-underline {
    margin-top: 0rem;
    height: 3px;
    width: clamp(140px, 40%, 400px);
    background: linear-gradient(90deg,
        rgba(100,100,100,0.1),
        rgba(255,255,255,0.9),
        rgba(255,255,255,0.9),
        rgba(255,255,255,0.9),
        rgba(0,0,0,0.1)
    );
    border-radius: 4px;
}

.download-left {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.download-layout h1 {
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.04em;
}

.download-layout h2 {
    font-size: clamp(1.2rem, 2vw, 2rem);
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.04em;
    padding-top: clamp(12px, 1rem, 40px);
    padding-bottom: clamp(6px, 0.5rem, 20px);
}

.download-layout h3 {
    font-size: clamp(0.8rem, 1.5vw, 1.5rem);
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.04em;
    padding-top: clamp(12px, 1rem, 40px);
}

.download-layout h4 {
    font-size: clamp(0.9rem, 1.4vw, 1.4rem);
    font-weight:normal;
    letter-spacing: 0.01em;
    margin-left: 1.5rem;
    padding-top: clamp(12px, 1rem, 40px);
    padding-bottom: clamp(48px, 4rem, 160px);
    width: clamp(100px, 100%, 1000px);
}

.download-layout p {
    font-size: clamp(0.75rem, 1.25vw, 1.25rem);
    letter-spacing: 0.01em;
    margin-left: 1.5rem;
    width: clamp(100px, 100%, 1000px);
}

.download-right {
    display: grid;
    align-content: stretch;
    gap: clamp(0.9rem, 1.6vh, 1.6rem);
}

.character-stage {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.character-img {
    position: absolute;
    left: 30%;
    bottom: -3%;

    height: var(--char-scale, 110%);
    object-fit: contain;

    transform:
        translateX(calc(-50% + var(--base-x, -17%) + var(--parallax-x, 0px)))
        translateY(calc(var(--base-y, 2%) + var(--parallax-y, 0px)));

    transition: transform 0.18s ease-out;
    will-change: transform;
    filter: drop-shadow(0 0 32px rgba(0,0,0,0.3));
}

.supporter-btn {
    position: absolute;
    bottom: 1.2rem;
    max-width: 380px;
    max-height: 100px;
    width: 100%;
    height: 100%;
    left: 1.5rem;
    right: auto; 
    transform: none;


    border: none;
    border-radius: 999px;
    padding:
        clamp(0.65rem, 1.5vh, 1.5rem)
        clamp(1rem, 1.9vw, 1.9rem);
    cursor: pointer;
    font-size: clamp(1rem, 2.4vw, 1.8rem);
    text-shadow: 
        0px 0px 8px rgba(0,0,0,1.0),
        0px 0px 0px rgba(0,0,0,0.0),
        0px 0px 32px rgba(0,0,0,0.6);


    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);

    border: 1px solid rgba(255,255,255,0.05);
    color: white;
    box-shadow: 0 0px 40px rgba(0,0,0,0.5), inset 0 0px 40px rgba(0,0,0,0.5);

    gap: .6rem;
    transform: none;
    transition: transform .18s ease, background .15s;

}

.supporter-btn:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.05);
}




    













.download-card {
    position: relative;
    z-index: 0;
    min-height: 0;

    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    row-gap: .8rem;

    padding: clamp(1rem, 1vw, 3rem);
    border-radius: 1.4rem;

    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 8px 25px rgba(0,0,0,.6);
    transition: transform .18s ease, background .25s;
}

.download-card:hover {
    background: rgba(255,255,255,0.26);
    transform: scale(1.01);
}

.card-top {
    grid-column: 1;
    grid-row: 1;
}

.card-bottom {
    grid-column: 1;
    grid-row: 3;
    display: block;
    align-self: end;
}

.dl-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.dl-icon {
    width: 2vw;
    height: 2vw;
    filter:
        brightness(0)
        invert(1)
        grayscale(1)
        contrast(200%);
    filter:
        brightness(0) invert(1) grayscale(1) contrast(200%)
        drop-shadow(0 1px 1px rgba(0,0,0,0.9))
        drop-shadow(0 0 4px rgba(0,0,0,0.7));
}

.dl-info {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.dl-title {
    font-size: clamp(1rem, 3vw, 1.85rem);
    font-weight: 600;
}

.dl-meta {
    font-size: clamp(.8rem, .8vw, 1.2rem);
    font-weight: 300;
    opacity: 0.6;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}




.download-btn,
.mirror-btn {
    width: 100%;
    padding: .75rem 1rem;
}

.no-underline {
    text-decoration: none;
}

.dl-actions {
    grid-column: 2;
    grid-row: 1 / 4; /* span full card height */

    display: flex;
    flex-direction: column;
    justify-content: center;   /* <-- vertical centering */
    align-items: stretch;

    gap: clamp(1vh, 2rem, 2vh);
}

.dl-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: clamp(0.7rem, 0.9vw + 0.9vh, 2rem)
             clamp(0.7rem, 3.0vw, 8rem);
    cursor: pointer;
    font-size: clamp(1rem, 1.1vw + 1.1vh, 1.6rem);
    min-height: 36px;
    text-shadow: 
        0px 0px 6px rgba(0,0,0,1.0),
        0px 0px 0px rgba(0,0,0,0.0),
        0px 0px 32px rgba(0,0,0,0.6);

    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 0px 40px rgba(0,0,0,0.5), inset 0 0px 40px rgba(0,0,0,0.1);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: transform .18s ease, background .15s;
}

.dl-btn.primary {
    background: rgba(255,255,255,0.4);
}

.dl-btn.mirror {
    background: rgba(255,255,255,0.2);
}

.dl-btn.primary:hover {
    background: rgba(255,255,255,0.6);
    transform: scale(1.05);
}

.dl-btn.mirror:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.05);
}

.mirror-icon {
    width: 1.4rem;
    height: 1.4rem;
    object-fit: contain;

    /* keep original Google colors */
    filter: drop-shadow(0 0 6px rgba(0,0,0,.6));
}











@media (max-width: 1000px), (orientation: portrait) {
    .download-layout {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows:
            auto      /* title */
            1fr       /* cards area */
            auto;     /* character/footer */

        height: 100%;
    }

    .download-left {
        display: contents; /* lets children participate in parent grid */
    }

    .download-title {
        grid-row: 1;
        text-align: center;
    }

    .title-underline {
        margin-left: auto;
        margin-right: auto;
    }

    .supporter-btn {
        left: auto; 
        right: 1.5rem;
    }

    .download-right {
        grid-row: 2;

        display: flex;
        flex-direction: column;
        gap: 1rem;

        overflow-y: auto;
        padding: 10px;
        margin: -10px;
    }

    .download-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;

        padding: 1.2rem;
    }

    .dl-actions {
        min-width: clamp(200px, 26%, 300px);
        gap: clamp(.45em, .9em, 1.1em);
    }

    .dl-btn {
        flex: 1;
        padding: 1rem;
        font-size: 1rem;
    }
    .character-stage {
        grid-row: 3;
        height: 32vh;
        mask-image: linear-gradient(to top, black 60%, transparent);
    }

    .character-img {
        left: 36%;
        transform: translateX(-50%);
        height: 120%;
    }

    .download-card:hover {
        z-index: 3;
        transform: none;
    }

    .character-stage {
        height: 60vh;
        bottom: 0;
        top: auto;
        mask-image: linear-gradient(to top, black 60%, transparent);
    }

    .character-img {
        --base-x: 0%;
        --base-y: 6%;      /* vertical nudge to sit on "floor" */
        --char-scale: 120%;
    }
}

@media (orientation: landscape) {
    .character-img {
        --base-x: -17%;   /* ← horizontal art offset */
        --base-y: 2%;
        --char-scale: 110%;
    }
}



@media (max-height: 900px) and (orientation: landscape) {

    .download-right {
        grid-template-rows: repeat(3, minmax(140px, 1fr));
    }

    .download-card {
        height: 100%;                /* ← critical: follow row height */
        grid-template-columns: 1fr auto;
        grid-template-rows: 1fr;     /* single row that stretches */
        align-items: center;
        padding: .6rem 1rem;
    }

    /* hide metadata only */
    .card-bottom {
        display: none;
    }

    /* keep actions on the right */
    .dl-actions {
        grid-column: 2;
        grid-row: 1;

        height: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;

        gap: .5rem;
        min-width: clamp(200px, 26%, 300px);
    }

    /* buttons compress with height */
    .dl-btn {
        flex: 1;
        min-height: 0;

        font-size: clamp(.85rem, .55vw + .35vh, 1.05rem);
        padding: clamp(.35rem, 1.35vh, .7rem)
                 clamp(.7rem, 1.7vw, 1.1rem);
    }

    /* left content vertically centered */
    .dl-left {
        align-items: center;
        gap: .6rem;
    }

    .dl-title {
        font-size: clamp(.95rem, 1vw, 1.25rem);
    }

    .dl-icon {
        width: clamp(8px, 1.4vw, 24px);
        height: clamp(8px, 1.4vw, 24px);
    }
    .mirror-icon {
        width: 1.1rem;
        height: 1.1rem;
    }
}









.help-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;

    font-size: 1.2rem;
    font-weight: 600;

    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.18);
    color: white;

    backdrop-filter: blur(6px);
    cursor: pointer;

    transition: transform .15s ease, background .15s ease;
}

.help-btn:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.35);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(16px);

    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.modal-overlay-noalpha {
    position: fixed;
    inset: 0;
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(16px);

    transition: opacity .25s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

#genericModal.locked {
    backdrop-filter: blur(32px);
    background: rgba(0, 0, 0, 0.9);
}

.modal-box {
    width: min(700px, 50vw);
    padding: clamp(1.4rem, 2vw, 2rem);
    font-size: clamp(0.5rem, 1.5vw, 1.4rem);

    border-radius: 1.6rem;

    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 30px 80px rgba(0,0,0,0.65);
    text-shadow: 
        0px 0px 6px rgba(0,0,0,1.0),
        0px 0px 0px rgba(0,0,0,0.0),
        0px 0px 32px rgba(0,0,0,0.6);

    color: white;
    text-align: center; 

    transform: translateY(30px) scale(.96);
    transition: transform .25s ease;
}

.modal-box h2 {
    margin-bottom: 1.4rem;
    margin-top: 1rem;
}

.modal-box h3 {
    margin-bottom: 0.2rem;
    margin-top: 1.4rem;
}

.modal-box h4 {
    font-size: clamp(0.5rem, 1.5vw, 1.4rem);
    font-weight:normal;
    margin-bottom: 0.2rem;
    margin-top: 0.8rem;
    text-align: center; 
}

.modal-box h5 {
    font-size: clamp(0.55rem, 0.8vw, 1rem);
    font-weight:normal;
    font-style: italic;
    opacity: 0.5;
    text-align: center; 
    margin-top: -0.5rem;
    margin-bottom: -0.5rem;
}

.modal-box a {
    color: white;
    text-decoration: none;
    transition: color .15s ease;
}

.modal-box a:hover {
    color: #0099ff;
    text-decoration: none;
}

.modal-overlay.show .modal-box {
    transform: translateY(0) scale(1);
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 1rem;
}

.modal-footer button {
    margin-top: 1.8rem;
    border: none;
    border-radius: 999px;
    padding: 1rem 2rem;
    font-size: 1.4rem;
    text-shadow: 
        0px 0px 6px rgba(0,0,0,1.0),
        0px 0px 0px rgba(0,0,0,0.0),
        0px 0px 32px rgba(0,0,0,0.6);
    background: rgba(255,255,255,0.4);
    color: white;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}
.modal-footer button:hover {
    background: rgba(255,255,255,0.65);
    transform: scale(1.06);
}



.patreon-card {
    --tier-bg: url("/assets/patreon/blank.webp");
    left: 0.5vw;
    position: relative;
    overflow: hidden;
    height: clamp(63px, 7.2vh, 99px);
    width: clamp(1vw, 30rem, 30vw);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ffffff10;
    border-radius: 1rem;
    box-shadow: 0 0px 10px rgba(0,0,0,0.6), inset 0 0px 40px rgba(0,0,0,0.6);
}

/* Background layer */
.patreon-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.9) 0%,
            rgba(0,0,0,0.45) 30%,
            rgba(0,0,0,0.0) 90%
        ),
        var(--tier-bg);

    background-position: right;
    background-size: cover;
    background-repeat: no-repeat;

    opacity: 0.5;
    z-index: 0;
}

/* Keep content above background */
.patreon-card > * {
    position: relative;
    z-index: 1;
}

.patreon-data {
    font-size: clamp(.95rem, 1.1vw, 1.2rem);
    text-shadow: 
        0px 0px 6px rgba(0,0,0,1.0),
        0px 0px 0px rgba(0,0,0,0.0),
        0px 0px 32px rgba(0,0,0,0.6);
    color: white; 
    text-align: left;
}

.patreon-data-img {
    width: clamp(22px, 5vw, 60px);
    height: clamp(22px, 5vw, 60px);
    border-radius:50%;
    
}

.patreonprofile {
    transition: transform .25s ease, filter .25s ease;
}

.patreonprofile:hover {
    transform: scale(1.01);
    filter: brightness(1.1);
}

.patreonprofile:active {
    transform: scale(0.97);
}

.button-no-bg {
    background: none;
    border: none;
}

.horizontal-div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.download-card-supporter {
    position: relative;
    z-index: 0;
    min-height: 0;

    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    row-gap: .8rem;

    padding: clamp(1rem, 1vw, 3rem);
    border-radius: 1.4rem;

    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 8px 25px rgba(0,0,0,.6);
    transition: transform .18s ease, background .25s;
}

.download-card-supporter:hover {
    background: rgba(255,255,255,0.26);
    transform: scale(1.01);
}

.supporter-download-right {
    display: grid;
    align-content: stretch;
    gap: clamp(0.9rem, 1.6vh, 1.6rem);
}

.generic-btn {
    width: 30rem;
    border-radius: 999px;
    padding: 0.7rem;
    cursor: pointer;
    font-size: clamp(1rem, 1.8vh, 1.6rem);
    text-shadow: 
        0px 0px 6px rgba(0,0,0,1.0),
        0px 0px 0px rgba(0,0,0,0.0),
        0px 0px 32px rgba(0,0,0,0.6);

    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.3);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 0px 40px rgba(0,0,0,0.5), inset 0 0px 40px rgba(0,0,0,0.1);
    transition: transform .18s ease, background .15s;
}

.generic-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.02);
}

.center {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.authenticated-only {
    display: none;
}

.not-authenticated-only {
    display: none;
}

/* Show elements based on authentication status */
.authenticated .authenticated-only {
    display: block;
}

.not-authenticated .not-authenticated-only {
    display: block;
}







/* Mobile tweaks */
@media (pointer: coarse) {
    .background {
        animation: none;
        filter: none;
        transform: scale(1.03); /* static, still slightly zoomed */
    }
}

@media (hover: none) {
    .nav-buttons a:hover,
    .top-nav .nav-item:hover,
    .logo-link:hover {
        color: inherit;
        transform: none;
    }

    .nav-buttons a:hover::after,
    .top-nav .nav-item:hover::after {
        width: 0;
    }
}

