:root {
    --red: #e0002a;
    --red-dark: #6f0012;
    --black: #030303;
    --ink: #090a0c;
    --panel: #111316;
    --panel-soft: #17191d;
    --line: rgba(244, 239, 232, 0.13);
    --line-red: rgba(224, 0, 42, 0.42);
    --white: #f4efe8;
    --smoke: #c8c0b6;
    --muted: #8c8780;
    --max: 1180px;
    --wide: 1480px;
    --header-height: 76px;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("Assets/Fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(3, 3, 3, 0), var(--black) 740px),
        var(--black);
    color: var(--white);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: 0;
    line-height: 0.98;
    text-transform: uppercase;
}

h1 {
    max-width: 980px;
    margin-bottom: 18px;
    font-size: clamp(2.55rem, 4.95vw, 4.5rem);
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4.1vw, 4rem);
}

h3 {
    margin-bottom: 14px;
    font-size: clamp(1.35rem, 2.3vw, 2.3rem);
}

p {
    color: var(--smoke);
}

section {
    scroll-margin-top: var(--header-height);
}

.nav {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: var(--header-height);
    padding: 12px clamp(18px, 4vw, 46px);
    background: rgba(3, 3, 3, 0.72);
    border-bottom: 1px solid rgba(224, 0, 42, 0.22);
    backdrop-filter: blur(18px);
    transition: background 180ms ease, border-color 180ms ease;
}

.nav.scrolled {
    background: rgba(3, 3, 3, 0.94);
    border-color: rgba(224, 0, 42, 0.48);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: clamp(16px, 2.4vw, 34px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu a,
.footer a,
.scroll-cue {
    color: var(--smoke);
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.nav-menu a:hover,
.footer a:hover,
.scroll-cue:hover {
    color: var(--red);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 24px;
    border: 1px solid var(--red);
    background: var(--red);
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
    background: #ff123d;
    border-color: #ff123d;
    transform: translateY(-2px);
}

.button-secondary {
    background: rgba(3, 3, 3, 0.34);
    border-color: rgba(244, 239, 232, 0.46);
}

.button-secondary:hover {
    background: rgba(244, 239, 232, 0.12);
    border-color: var(--white);
}

.button-small {
    min-height: 40px;
    padding: 11px 16px;
    white-space: nowrap;
}

.legal-back {
    justify-self: end;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(244, 239, 232, 0.24);
    background: rgba(3, 3, 3, 0.46);
    color: var(--white);
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 24px) clamp(20px, 5vw, 80px) clamp(34px, 5vw, 60px);
    overflow: hidden;
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(1.28) saturate(1.06) contrast(1.04);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(3, 3, 3, 0.78) 0%, rgba(3, 3, 3, 0.48) 42%, rgba(3, 3, 3, 0.08) 100%),
        linear-gradient(0deg, rgba(3, 3, 3, 0.58) 0%, rgba(3, 3, 3, 0.04) 50%, rgba(3, 3, 3, 0.46) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    width: min(100%, var(--max));
    margin: 0 auto;
}

.hero-main {
    min-width: 0;
}

.hero-steam {
    align-self: center;
    width: 100%;
    transform: translateY(clamp(150px, 16.5vw, 220px));
}

.hero-logo {
    width: min(680px, 92vw);
    margin-bottom: clamp(24px, 4vw, 44px);
}

.hero-copy {
    max-width: 820px;
    margin-bottom: 20px;
    color: var(--white);
    font-size: clamp(1.08rem, 1.8vw, 1.34rem);
}

.scroll-cue {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 28px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
    animation: scrollPulse 1.9s ease-in-out infinite;
}

.scroll-cue::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--red);
    font-size: 1.12rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

main {
    position: relative;
    background:
        linear-gradient(180deg, var(--black), var(--ink) 38%, var(--black) 100%);
}

main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(244, 239, 232, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 239, 232, 0.028) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, transparent, #000 9%, #000 88%, transparent);
}

.media-section,
.survival-loop,
.screenshots {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
    padding: clamp(34px, 4.8vw, 60px) 0;
}

.section-heading {
    max-width: 780px;
    margin-bottom: clamp(20px, 3vw, 34px);
}

.section-heading-centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading-centered p {
    margin-left: auto;
    margin-right: auto;
}

.section-heading p {
    max-width: 620px;
}

.video-frame,
.steam-widget,
.loop-card,
.gallery figure {
    background: rgba(17, 19, 22, 0.88);
    border: 1px solid var(--line);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
}

.video-frame {
    aspect-ratio: 16 / 9;
    border-color: var(--line-red);
    width: min(100%, 980px);
    margin: 0 auto;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.survival-loop {
    width: min(calc(100% - 40px), var(--wide));
}

.loop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.loop-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    overflow: hidden;
}

.loop-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid var(--line-red);
}

.loop-copy {
    position: relative;
    padding: 22px;
}

.loop-copy h3 {
    min-height: 2.05em;
    font-size: clamp(1.35rem, 2.3vw, 2.3rem);
}

.loop-copy p {
    font-size: 1rem;
    line-height: 1.6;
}

.loop-copy p:last-child {
    margin-bottom: 0;
}

.steam-widget {
    width: 100%;
    min-height: 190px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.steam-widget iframe {
    width: 100%;
    height: 190px;
    border: 0;
}

.screenshots {
    width: min(calc(100% - 28px), var(--wide));
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.gallery figure {
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease, filter 260ms ease;
}

.gallery figure:hover img {
    transform: scale(1.035);
    filter: brightness(1.12);
}

.footer {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(36px, 7vw, 90px);
    padding: clamp(48px, 7vw, 86px) clamp(20px, 5vw, 80px) 28px;
    background: #020202;
    border-top: 1px solid rgba(224, 0, 42, 0.28);
}

.footer-brand img {
    width: min(360px, 100%);
    margin-bottom: 20px;
}

.presskit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 8px;
    padding: 15px 24px;
    background: var(--red);
    border: 1px solid var(--red);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
    box-shadow: 0 18px 42px rgba(224, 0, 42, 0.22);
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.presskit-button:hover,
.presskit-button:focus-visible {
    background: #ff123d;
    border-color: #ff123d;
    color: var(--white);
    transform: translateY(-2px);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer h2 {
    margin-bottom: 16px;
    color: var(--red);
    font-size: 0.8rem;
    line-height: 1.2;
}

.footer a {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-bottom: 10px;
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 28px;
    border-top: 1px solid rgba(244, 239, 232, 0.1);
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-bottom a {
    margin: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 520ms ease, transform 520ms ease;
}

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

.legal-page {
    min-height: 100svh;
    padding: calc(var(--header-height) + 56px) clamp(20px, 5vw, 80px) 70px;
    background:
        linear-gradient(135deg, rgba(224, 0, 42, 0.18), transparent 38%),
        var(--black);
}

.legal-content {
    width: min(100%, 900px);
    margin: 0 auto;
}

.legal-content h1 {
    font-size: clamp(2.6rem, 7vw, 5.5rem);
}

.legal-content h2 {
    margin-top: 36px;
    color: var(--red);
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.15;
}

.legal-content a {
    color: var(--red);
}

.notice {
    padding: 18px;
    background: rgba(224, 0, 42, 0.14);
    border: 1px solid rgba(224, 0, 42, 0.45);
    color: var(--white);
}

.language-switch-row {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 8px 10px;
    border: 1px solid rgba(244, 239, 232, 0.16);
    background: rgba(3, 3, 3, 0.34);
}

.language-switch-label {
    color: var(--smoke);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.language-switch-input {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.language-switch-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.language-switch-track {
    position: relative;
    display: block;
    width: 42px;
    height: 22px;
    border: 1px solid rgba(224, 0, 42, 0.54);
    background: rgba(224, 0, 42, 0.16);
}

.language-switch-track::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: var(--white);
    transition: transform 180ms ease;
}

.language-switch-input input:checked + .language-switch-track::before {
    transform: translateX(20px);
}

.language-switch-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.language-switch-hit:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

.screenshot-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 64px clamp(16px, 4vw, 48px);
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: min(100%, 1500px);
    max-height: calc(100svh - 96px);
    object-fit: contain;
    border: 1px solid var(--line-red);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.72);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(244, 239, 232, 0.28);
    background: rgba(3, 3, 3, 0.84);
    color: var(--white);
    font-weight: 900;
    cursor: pointer;
}

@keyframes scrollPulse {
    0%, 100% {
        transform: translate(-50%, 0);
        opacity: 0.58;
    }

    50% {
        transform: translate(-50%, 10px);
        opacity: 1;
    }
}

@media (max-width: 1240px) {
    .gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .nav-menu {
        position: fixed;
        top: calc(var(--header-height) + 10px);
        right: 14px;
        left: auto;
        width: min(300px, calc(100vw - 28px));
        transform: translateY(-10px);
        display: grid;
        align-content: start;
        justify-content: stretch;
        justify-items: stretch;
        gap: 4px;
        height: auto;
        max-height: calc(100svh - var(--header-height) - 24px);
        padding: 8px;
        overflow-y: auto;
        background: rgba(3, 3, 3, 0.94);
        border: 1px solid rgba(224, 0, 42, 0.34);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.68);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        backdrop-filter: blur(18px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu li {
        border-bottom: 0;
    }

    .nav-menu a {
        display: block;
        padding: 15px 14px;
        border: 0;
        background: transparent;
        font-size: 0.98rem;
        line-height: 1.1;
        text-align: right;
    }

    .nav-menu a:hover,
    .nav-menu a:focus-visible {
        background: rgba(224, 0, 42, 0.18);
    }

    .footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .hero-content {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 18px;
    }

    .hero-steam {
        width: min(100%, 640px);
        padding-bottom: 0;
        transform: none;
    }

    .scroll-cue {
        display: none;
    }
}

@media (max-width: 780px) {
    :root {
        --header-height: 68px;
    }

    .nav {
        gap: 10px;
        padding: 10px 14px;
    }

    .brand {
        max-width: calc(100vw - 84px);
        font-size: 0.92rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .hero {
        min-height: 100svh;
        align-items: center;
        padding: calc(var(--header-height) + 34px) 20px 42px;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(3, 3, 3, 0.68) 0%, rgba(3, 3, 3, 0.62) 52%, rgba(3, 3, 3, 0.86) 100%);
    }

    .hero-logo {
        width: min(470px, 96vw);
        margin-bottom: 20px;
    }

    .hero-copy {
        max-width: 34rem;
        margin-bottom: 12px;
        padding: 10px 12px;
        background: linear-gradient(90deg, rgba(3, 3, 3, 0.7), rgba(3, 3, 3, 0.42) 72%, rgba(3, 3, 3, 0));
        border-radius: 4px;
        color: var(--white);
        font-size: 0.98rem;
        font-weight: 650;
        line-height: 1.52;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.92);
    }

    .media-section,
    .survival-loop,
    .screenshots {
        width: min(calc(100% - 28px), var(--max));
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .loop-grid,
    .gallery,
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .loop-grid {
        align-items: start;
    }

    .loop-card {
        grid-template-rows: auto auto;
        min-height: 0;
    }

    .loop-copy h3 {
        min-height: 0;
    }

    .steam-widget iframe {
        height: 210px;
    }

    .presskit-button {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
