/* =========================================================
   YUZUTSU — GAME PAGE
   ========================================================= */

@font-face {
    font-family: "Yuzutsu Body";
    src: url("../assets/fonts/NotoSans-Regular.ttf")
        format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Yuzutsu Body";
    src: url("../assets/fonts/NotoSans-SemiBold.ttf")
        format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


/* ---------------------------------------------------------
   VARIABLES
   --------------------------------------------------------- */

:root {
    --color-text: #ffffff;
    --color-muted: rgba(255, 255, 255, 0.76);
    --color-border: rgba(255, 255, 255, 0.18);
    --color-panel: rgba(8, 10, 13, 0.48);
    --color-panel-strong: rgba(8, 10, 13, 0.68);
    --color-overlay-top: rgba(7, 9, 12, 0.66);
    --color-overlay-bottom: rgba(7, 9, 12, 0.84);
    --color-focus: #f0b34f;

    --page-width: 1600px;
    --page-padding: clamp(1.25rem, 4vw, 4rem);
    --section-gap: clamp(3.5rem, 7vw, 7rem);

    --transition-fast: 180ms ease;
    --transition-medium: 400ms cubic-bezier(0.22, 1, 0.36, 1);
}


/* ---------------------------------------------------------
   RESET
   --------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;

    min-height: 100vh;
    margin: 0;

    background-color: #111820;
    color: var(--color-text);

    font-family:
        "Yuzutsu Body",
        "Noto Sans",
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.7;

    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
iframe {
    border: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* ---------------------------------------------------------
   BACKGROUND
   --------------------------------------------------------- */

body::before {
    content: "";

    position: fixed;
    inset: -1.5rem;

    z-index: -2;

    background:
        linear-gradient(
            to bottom,
            var(--color-overlay-top),
            var(--color-overlay-bottom)
        ),
        url("../assets/images/yuzutsu/yuzutsu-bg.png")
        center center / cover no-repeat;

    transform: scale(1.035);
}

body::after {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -1;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(255, 255, 255, 0.05),
            transparent 42%
        ),
        linear-gradient(
            to bottom,
            transparent 60%,
            rgba(0, 0, 0, 0.22)
        );

    pointer-events: none;
}


/* ---------------------------------------------------------
   ACCESSIBILITY
   --------------------------------------------------------- */

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 5px;
}


/* ---------------------------------------------------------
   FIXED HEADER CONTROLS
   --------------------------------------------------------- */

.game-header {
    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding:
        clamp(1.25rem, 3vw, 2.5rem)
        var(--page-padding);

    pointer-events: none;
}

.home-button,
.press-kit-button {
    display: block;

    pointer-events: auto;

    text-decoration: none;

    transition:
        transform var(--transition-medium),
        opacity var(--transition-fast),
        filter var(--transition-fast);
}


/* Home button */

.home-button {
    width: clamp(3.75rem, 6vw, 5rem);
    aspect-ratio: 1;
}

.home-button img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* Press Kit button */

.press-kit-button {
    width: clamp(145px, 15vw, 210px);
}

.press-kit-button img {
    width: 100%;
    height: auto;
}


/* Shared hover */

.home-button:hover,
.press-kit-button:hover {
    transform: translateY(-2px) scale(1.035);
    filter: brightness(1.08);
}

.home-button:active,
.press-kit-button:active {
    transform: scale(0.97);
}


/* ---------------------------------------------------------
   MAIN PAGE
   --------------------------------------------------------- */

.game-page {
    width: min(
        calc(100% - (var(--page-padding) * 2)),
        var(--page-width)
    );

    margin-inline: auto;

    padding:
        clamp(8rem, 13vw, 12rem)
        0
        0;
}


/* ---------------------------------------------------------
   GAME HERO
   --------------------------------------------------------- */

.game-hero {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    margin-bottom: clamp(3rem, 5vw, 5rem);
}

.game-logo {
    width: min(720px, 78vw);
    height: auto;

    filter:
        drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35))
        drop-shadow(0 24px 60px rgba(0, 0, 0, 0.28));
}


/* Steam image CTA */

.steam-cta {
    display: block;

    width: clamp(220px, 24vw, 310px);

    margin-top: clamp(1.75rem, 3vw, 2.75rem);

    text-decoration: none;

    transition:
        transform var(--transition-medium),
        filter var(--transition-fast);
}

.steam-cta__image,
.steam-cta__icon {
    width: 100%;
    height: auto;
}

.steam-cta:hover {
    transform: translateY(-3px) scale(1.025);
    filter:
        brightness(1.08)
        drop-shadow(0 14px 22px rgba(0, 0, 0, 0.25));
}

.steam-cta:active {
    transform: scale(0.98);
}


/* ---------------------------------------------------------
   THREE-COLUMN CONTENT
   --------------------------------------------------------- */

.game-content {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: clamp(2rem, 4vw, 3.5rem);

    align-items: start;
}

.game-content__left,
.game-content__middle,
.game-content__right {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.game-content__left {
    gap: clamp(1.75rem, 3vw, 3rem);
}

.game-content__middle {
    gap: clamp(2rem, 3vw, 3rem);
}

.game-content__right {
    gap: clamp(1rem, 2vw, 1.5rem);
}


/* ---------------------------------------------------------
   TRAILER
   --------------------------------------------------------- */

.trailer-section {
    width: 100%;
}

.trailer-frame {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background-color: #080a0d;
    border: 1px solid var(--color-border);
    border-radius: 3px;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.25),
        0 45px 100px rgba(0, 0, 0, 0.24);
}

.trailer-frame iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
}


/* ---------------------------------------------------------
   TEXT BLOCKS
   --------------------------------------------------------- */

.short-description,
.long-description {
    width: 100%;
    height: auto;
    min-height: 0;

    padding:
        clamp(1.35rem, 2.5vw, 2rem)
        clamp(1.5rem, 3vw, 2.5rem);

    overflow: visible;

    background-color: rgba(8, 10, 13, 0.36);

    border: 1px solid var(--color-border);
    border-radius: 3px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.16);
}

.long-description {
    padding:
        clamp(1.75rem, 3vw, 2.75rem)
        clamp(1.6rem, 3vw, 2.75rem);
}

/* Shared paragraph settings */
.short-description p,
.long-description p {
    margin: 0 0 1.25rem;

    color: var(--color-muted);

    line-height: 1.85;

    white-space: normal;
    overflow-wrap: break-word;
}

.short-description p:last-child,
.long-description p:last-child {
    margin-bottom: 0;
}

/* Short description (keep larger) */
.short-description p {
    color: rgba(255, 255, 255, 0.9);

    font-size: clamp(1.02rem, 1.4vw, 1.15rem);
    font-weight: 600;
}

/* Long description (slightly smaller) */
.long-description p {
    font-size: clamp(0.92rem, 1.05vw, 1rem);
}

/* ---------------------------------------------------------
   FEATURE LIST
   --------------------------------------------------------- */

.features-title {
    margin:
        2rem 0
        1rem;

    color: white;

    font-family:
        "Yuzutsu Body",
        "Noto Sans",
        Arial,
        sans-serif;

    font-size: clamp(1.15rem, 1.5vw, 1.35rem);
    font-weight: 700;
}

.feature-list {
    margin: 0;
    padding-left: 1.4rem;

    list-style-type: disc;

    color: var(--color-muted);

    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
    line-height: 1.85;
}

.feature-list li {
    margin-bottom: 1rem;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list strong {
    color: white;
    font-weight: 700;
}

/* ---------------------------------------------------------
   SCREENSHOT GALLERY
   --------------------------------------------------------- */

.gallery {
    width: 88%;
    max-width: 430px;
    margin-inline: auto;
}

.gallery-preview {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 0.85rem;
    padding: 0;
    overflow: hidden;
    background-color: #080a0d;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    cursor: zoom-in;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
    transition:
        transform var(--transition-medium),
        filter var(--transition-fast),
        border-color var(--transition-fast);
}

.gallery-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        opacity 180ms ease,
        transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-preview.is-changing img {
    opacity: 0.35;
    transform: scale(0.985);
}

.gallery-preview:hover {
    transform: translateY(-3px);
    filter: brightness(1.06);
    border-color: rgba(255, 255, 255, 0.38);
}

.gallery-preview:hover img {
    transform: scale(1.015);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.4rem, 0.8vw, 0.65rem);
}

.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    background-color: #080a0d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    cursor: pointer;
    opacity: 0.62;
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.18);
    transition:
        transform var(--transition-medium),
        opacity var(--transition-fast),
        filter var(--transition-fast),
        border-color var(--transition-fast);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover {
    opacity: 0.9;
    filter: brightness(1.07);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.35);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item.is-active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.78);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18),
        0 8px 18px rgba(0, 0, 0, 0.2);
}


/* ---------------------------------------------------------
   LIGHTBOX
   --------------------------------------------------------- */

.lightbox {
    position: fixed;
    inset: 0;

    z-index: 2000;

    display: grid;
    place-items: center;

    padding: clamp(1rem, 4vw, 4rem);

    background-color: rgba(0, 0, 0, 0.9);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity var(--transition-medium),
        visibility var(--transition-medium);
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox__image {
    max-width: min(92vw, 1500px);
    max-height: 86vh;

    object-fit: contain;

    border: 1px solid rgba(255, 255, 255, 0.24);

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.55);

    transform: scale(0.96);

    transition: transform var(--transition-medium);
}

.lightbox.is-open .lightbox__image {
    transform: scale(1);
}

.lightbox__close {
    position: absolute;
    top: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);

    width: 3.25rem;
    height: 3.25rem;

    display: grid;
    place-items: center;

    padding: 0;

    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        transform var(--transition-medium),
        background-color var(--transition-fast);
}

.lightbox__close:hover {
    transform: rotate(5deg) scale(1.05);
    background-color: rgba(255, 255, 255, 0.18);
}

/* ---------------------------------------------------------
   SHARED SECTION LAYOUT
   --------------------------------------------------------- */

.section-container {
    width: min(
        calc(100% - (var(--page-padding) * 2)),
        1400px
    );

    margin-inline: auto;
}

.section-title {
    margin: 0;

    font-size: clamp(1.5rem, 3vw, 2.35rem);
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   ABOUT AND CONTACT
   --------------------------------------------------------- */

.studio-info {
    width: 100vw;

    padding:
        clamp(5rem, 10vw, 9rem)
        0;

    margin-top: clamp(5rem, 8vw, 8rem);
    margin-left: calc(50% - 50vw);

    background-color: #000000;
}

.studio-info__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(260px, 0.8fr);

    gap: clamp(4rem, 10vw, 9rem);
    align-items: start;
}

.studio-info .section-title {
    margin-bottom: 2rem;
}

.about p,
.contact p {
    margin-top: 0;

    color: #ffffff;

    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.85;
}


/* ---------------------------------------------------------
   CONTACT
   --------------------------------------------------------- */

.contact__email {
    display: inline-block;

    margin-top: 0.25rem;

    font-size: clamp(1rem, 1.7vw, 1.2rem);
    font-weight: 700;

    text-decoration-thickness: 1px;
    text-underline-offset: 0.35em;

    transition:
        color var(--transition-fast),
        text-decoration-color var(--transition-fast);
}

.contact__email:hover {
    color: var(--color-focus);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;

    margin-top: 2.5rem;
}

.social-links a {
    position: relative;

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;

    text-decoration: none;
    text-transform: uppercase;
}

.social-links a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -0.35rem;

    width: 100%;
    height: 1px;

    background-color: currentColor;

    transform: scaleX(0);
    transform-origin: right;

    transition: transform var(--transition-medium);
}

.social-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.site-footer {
    padding:
        2rem
        var(--page-padding);

    text-align: center;

    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
    margin: 0;

    color: rgba(255, 255, 255, 0.55);

    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 1250px) {
    .game-content {
        grid-template-columns:
            minmax(0, 1.1fr)
            minmax(320px, 0.9fr);

        gap: clamp(2rem, 4vw, 4rem);
    }

    .game-content__right {
        grid-column: 1 / -1;
    }

    .gallery {
        width: min(100%, 900px);
        max-width: 900px;
    }

    .gallery-preview {
        width: min(100%, 760px);
        margin-inline: auto;
        margin-bottom: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 950px) {
    .game-content {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .game-content__right {
        grid-column: auto;
    }

    .gallery {
        width: min(100%, 760px);
        max-width: 760px;
    }

    .gallery-preview {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .game-logo {
        width: min(680px, 84vw);
    }

    .studio-info__grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 650px) {
    :root {
        --page-padding: 1.15rem;
    }

    .game-header {
        padding-top: 1rem;
    }

    .home-button {
        width: 3.5rem;
    }

    .press-kit-button {
        width: min(38vw, 155px);
    }

    .game-page {
        padding-top: 7.5rem;
    }

    .game-hero {
        margin-bottom: 4rem;
    }

    .game-logo {
        width: min(88vw, 560px);
    }

    .steam-cta {
        width: min(72vw, 280px);

        margin-top: 1.75rem;
    }

    .game-content {
        gap: 3rem;
    }

    .gallery {
        width: 100%;
        max-width: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .short-description,
    .long-description {
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
    }

    .site-footer {
        padding-block: 1.5rem;
    }
}


/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}