/* =========================================
   THE NIGHTSHIFT
   AELION STUDIOS
   Game Page Styles
   ========================================= */


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

:root {
    --burgundy: #64272B;
    --burgundy-light: #713036;
    --burgundy-dark: #4D1D21;
    --burgundy-deep: #351317;

    --ink: #27272A;

    --sand: #D6B878;
    --sand-light: #E4CC96;

    --cream: #F4EBDD;
    --muted: #C9BFB0;

    --line: rgba(244, 235, 221, 0.16);
    --dark-line: rgba(39, 39, 42, 0.16);

    --font-pixel: "Pixelify Sans", monospace;
    --font-body: "Inter", sans-serif;

    --max-width: 1400px;
}


/* =========================================
   RESET
   ========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--burgundy-dark);
    color: var(--cream);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

::selection {
    background: var(--sand);
    color: var(--ink);
}

section {
    position: relative;
    width: 100%;
}


/* =========================================
   NAVBAR
   ========================================= */

.game-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;

    padding: 0 5vw;

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

    z-index: 1000;

    background: rgba(77, 29, 33, 0.94);

    border-bottom: 1px solid rgba(228, 204, 150, 0.15);

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

.studio-link,
.game-logo,
.game-nav a {
    font-family: var(--font-pixel);
    text-transform: uppercase;
}

.studio-link {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--sand);

    transition: opacity 0.25s ease;
}

.studio-link:hover {
    opacity: 0.7;
}

.game-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;

    color: var(--cream);
}

.game-nav {
    display: flex;
    gap: 28px;
}

.game-nav a {
    position: relative;

    font-size: 0.62rem;
    letter-spacing: 0.08em;

    color: var(--cream);

    transition: color 0.25s ease;
}

.game-nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -6px;

    width: 0;
    height: 2px;

    background: var(--sand);

    transition: width 0.25s ease;
}

.game-nav a:hover {
    color: var(--sand);
}

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


/* =========================================
   GENERAL
   ========================================= */

.section-label {
    font-family: var(--font-pixel);

    font-size: 0.65rem;
    letter-spacing: 0.08em;

    color: var(--sand);

    text-transform: uppercase;
}

.small-note {
    display: block;

    font-family: var(--font-pixel);
    font-size: 0.62rem;

    letter-spacing: 0.1em;

    color: var(--sand);

    text-transform: uppercase;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 120px 5vw 80px;

    background:
        radial-gradient(
            circle at center,
            var(--burgundy-light) 0%,
            var(--burgundy) 52%,
            var(--burgundy-dark) 100%
        );

    overflow: hidden;
}


/* Pixel atmosphere */

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.075;

    background-image:
        linear-gradient(
            rgba(244, 235, 221, 0.3) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(244, 235, 221, 0.3) 1px,
            transparent 1px
        );

    background-size: 32px 32px;

    pointer-events: none;
}


/* Dark vignette */

.hero::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            ellipse at center,
            transparent 35%,
            rgba(39, 19, 21, 0.28) 100%
        );

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 1000px;
}

.eyebrow {
    margin-bottom: 28px;

    font-family: var(--font-pixel);
    font-size: 0.7rem;

    letter-spacing: 0.1em;

    color: var(--sand);
}

.hero h1 {
    font-family: var(--font-pixel);

    font-size: clamp(4.5rem, 12vw, 11rem);

    font-weight: 600;

    line-height: 0.78;
    letter-spacing: -0.04em;

    color: var(--cream);

    text-shadow:
        4px 4px 0 rgba(39, 39, 42, 0.18);

    margin-bottom: 45px;
}

.hero-subtitle {
    font-family: var(--font-pixel);

    font-size: clamp(0.85rem, 1.5vw, 1.1rem);

    line-height: 1.9;

    color: var(--muted);

    margin-bottom: 45px;
}


/* =========================================
   BUTTON
   ========================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 190px;

    padding: 15px 25px;

    border: 2px solid var(--sand);

    background: transparent;

    color: var(--sand);

    font-family: var(--font-pixel);
    font-size: 0.68rem;

    text-transform: uppercase;
    letter-spacing: 0.06em;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.button:hover {
    background: var(--sand);
    color: var(--ink);

    transform: translateY(-3px);
}


/* =========================================
   SCROLL INDICATOR
   ========================================= */

.scroll-indicator {
    position: absolute;

    bottom: 35px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 10px;

    font-family: var(--font-pixel);
    font-size: 0.55rem;

    color: rgba(244, 235, 221, 0.55);
}

.scroll-line {
    width: 1px;
    height: 35px;

    background: var(--sand);

    opacity: 0.7;
}


/* =========================================
   INTRO / THE HOTEL
   ========================================= */

.intro {
    min-height: 85vh;

    display: grid;

    grid-template-columns: 0.35fr 1fr;

    gap: 80px;

    padding: 150px 8vw;

    background: var(--cream);

    color: var(--ink);
}

.intro .section-label {
    color: var(--burgundy);
}

.intro-content {
    max-width: 850px;
}

.intro-content h2 {
    max-width: 800px;

    font-family: var(--font-pixel);

    font-size: clamp(2.5rem, 6vw, 6rem);

    font-weight: 600;

    line-height: 0.95;

    margin-bottom: 60px;
}

.intro-copy {
    max-width: 620px;
}

.intro-content p {
    font-size: 1rem;

    line-height: 1.9;

    color: #55555A;

    margin-bottom: 20px;
}

.intro-content .quiet-line {
    margin-top: 45px;

    font-family: var(--font-pixel);

    color: var(--ink);
}

.intro-content .accent-text {
    font-family: var(--font-pixel);

    color: var(--burgundy);

    margin-top: 35px;
}


/* =========================================
   GAMEPLAY
   ========================================= */

.gameplay {
    padding: 150px 8vw;

    background: var(--burgundy);

    color: var(--cream);
}

.gameplay-intro {
    display: grid;

    grid-template-columns: 1fr 0.7fr;

    gap: 100px;

    margin: 55px 0 90px;
}

.gameplay-title h2 {
    font-family: var(--font-pixel);

    font-size: clamp(3rem, 7vw, 7rem);

    line-height: 0.84;

    margin-top: 25px;
}

.gameplay-description {
    max-width: 480px;

    padding-top: 30px;
}

.gameplay-description p {
    font-size: 0.95rem;

    line-height: 1.9;

    color: var(--muted);

    margin-bottom: 20px;
}

.gameplay-description .accent-text {
    font-family: var(--font-pixel);

    color: var(--sand);

    margin-top: 35px;
}


/* Shift cards */

.shift-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    border-top: 1px solid rgba(228, 204, 150, 0.25);
    border-bottom: 1px solid rgba(228, 204, 150, 0.25);
}

.shift-item {
    min-height: 300px;

    padding: 35px 28px;

    border-right: 1px solid rgba(228, 204, 150, 0.25);

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.shift-item:last-child {
    border-right: none;
}

.shift-item:hover {
    background: var(--burgundy-light);

    transform: translateY(-5px);
}

.shift-number {
    display: block;

    font-family: var(--font-pixel);

    font-size: 0.7rem;

    color: var(--sand);

    margin-bottom: 60px;
}

.shift-item h3 {
    font-family: var(--font-pixel);

    font-size: 1.4rem;

    margin-bottom: 20px;
}

.shift-item p {
    font-size: 0.78rem;

    line-height: 1.8;

    color: var(--muted);
}


/* =========================================
   STORY / AFTER MIDNIGHT
   ========================================= */

.story {
    padding: 150px 8vw;

    background: var(--sand);

    color: var(--ink);
}

.story .section-label {
    color: var(--burgundy);
}

.story-layout {
    display: grid;

    grid-template-columns: 1fr 0.8fr;

    gap: 100px;

    margin-top: 70px;
}

.story-title h2 {
    font-family: var(--font-pixel);

    font-size: clamp(3rem, 7vw, 7rem);

    line-height: 0.88;

    margin-top: 25px;
}

.story-text {
    padding-top: 15px;
}

.story-text p {
    font-size: 1rem;

    line-height: 1.9;

    color: #454449;

    margin-bottom: 25px;
}

.story-text .short-line {
    font-family: var(--font-pixel);

    font-size: 1.15rem;

    color: var(--ink);

    margin: 35px 0;
}

.story-text .accent-text {
    font-family: var(--font-pixel);

    color: var(--burgundy);

    margin-top: 45px;
}


/* =========================================
   NIGHT 01 / FIRST SHIFT
   ========================================= */

.game-feature {
    display: grid;

    grid-template-columns: 1.3fr 0.7fr;

    min-height: 650px;

    background: var(--burgundy-dark);
}

.feature-image {
    position: relative;

    min-height: 600px;

    background:
        linear-gradient(
            135deg,
            #743238,
            #3E171B
        );

    overflow: hidden;
}


/* Subtle pixel grid */

.feature-image::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.06;

    background-image:
        linear-gradient(
            rgba(244, 235, 221, 0.4) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(244, 235, 221, 0.4) 1px,
            transparent 1px
        );

    background-size: 24px 24px;
}

.image-placeholder {
    position: absolute;
    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    font-family: var(--font-pixel);

    font-size: 1rem;

    color: rgba(244, 235, 221, 0.35);

    letter-spacing: 0.08em;
}

.feature-content {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 70px;
}

.feature-number {
    font-family: var(--font-pixel);

    font-size: 0.7rem;

    color: var(--sand);

    margin-bottom: 25px;
}

.feature-content h2 {
    font-family: var(--font-pixel);

    font-size: clamp(3rem, 5vw, 5.5rem);

    line-height: 0.9;

    margin-bottom: 35px;
}

.feature-content > p {
    max-width: 400px;

    font-size: 0.88rem;

    line-height: 1.9;

    color: var(--muted);

    margin-bottom: 20px;
}


/* Register warning */

.feature-warning {
    margin-top: 35px;

    padding-top: 25px;

    border-top: 1px solid rgba(228, 204, 150, 0.25);
}

.feature-warning span {
    display: block;

    font-family: var(--font-pixel);

    font-size: 0.6rem;

    letter-spacing: 0.1em;

    color: var(--sand);

    margin-bottom: 10px;
}

.feature-warning p {
    font-family: var(--font-pixel);

    font-size: 0.85rem;

    color: var(--cream);
}


/* =========================================
   MYSTERY
   ========================================= */

.mystery {
    padding: 150px 8vw;

    background: var(--cream);

    color: var(--ink);
}

.mystery .section-label {
    color: var(--burgundy);
}

.mystery-header {
    max-width: 1000px;

    margin: 65px 0 90px;
}

.mystery-header h2 {
    font-family: var(--font-pixel);

    font-size: clamp(3.5rem, 8vw, 8rem);

    line-height: 0.84;

    margin-top: 25px;
}


/* Mystery lines */

.mystery-content {
    max-width: 1000px;

    margin-left: auto;

    border-top: 1px solid var(--dark-line);
}

.mystery-line {
    display: grid;

    grid-template-columns: 80px 1fr;

    align-items: center;

    min-height: 100px;

    border-bottom: 1px solid var(--dark-line);

    transition:
        padding 0.3s ease,
        background 0.3s ease;
}

.mystery-line:hover {
    padding-left: 15px;

    background: rgba(100, 39, 43, 0.035);
}

.mystery-line span {
    font-family: var(--font-pixel);

    font-size: 0.65rem;

    color: var(--burgundy);
}

.mystery-line p {
    font-size: 0.9rem;

    color: #55555A;
}


/* Ending */

.mystery-ending {
    max-width: 1000px;

    margin: 90px 0 0 auto;

    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 40px;
}

.mystery-ending p {
    font-family: var(--font-pixel);

    font-size: clamp(1.2rem, 2vw, 1.8rem);

    color: var(--burgundy);
}

.mystery-ending span {
    font-family: var(--font-pixel);

    font-size: 0.62rem;

    letter-spacing: 0.08em;

    color: #777277;
}


/* =========================================
   SCREENSHOTS
   ========================================= */

.screenshots {
    padding: 150px 8vw;

    background: var(--burgundy);

    color: var(--cream);
}

.screenshots-header {
    display: flex;

    align-items: end;

    justify-content: space-between;

    margin: 55px 0 70px;
}

.screenshots-header h2 {
    font-family: var(--font-pixel);

    font-size: clamp(3rem, 7vw, 7rem);

    line-height: 0.9;

    margin-top: 20px;
}

.screenshots-header p {
    max-width: 260px;

    font-size: 0.8rem;

    line-height: 1.8;

    color: var(--muted);
}

.screenshot-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.screenshot {
    min-height: 350px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--burgundy-light);

    border: 1px solid rgba(228, 204, 150, 0.2);

    font-family: var(--font-pixel);

    font-size: 0.65rem;

    color: rgba(244, 235, 221, 0.35);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.screenshot:hover {
    transform: translateY(-5px);

    border-color: var(--sand);
}

.screenshot-large {
    min-height: 500px;
}

.screenshot-wide {
    grid-column: span 2;

    min-height: 420px;
}


/* =========================================
   FINAL CTA
   ========================================= */

.final-cta {
    min-height: 80vh;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 120px 5vw;

    background: var(--ink);

    color: var(--cream);
}

.final-cta .small-note {
    margin-bottom: 25px;
}

.final-cta .eyebrow {
    margin-bottom: 35px;
}

.final-cta h2 {
    max-width: 1100px;

    font-family: var(--font-pixel);

    font-size: clamp(3.5rem, 9vw, 9rem);

    line-height: 0.82;

    margin-bottom: 35px;
}

.cta-subtext {
    font-family: var(--font-pixel);

    font-size: 0.8rem;

    color: var(--muted);

    margin-bottom: 45px;
}


/* =========================================
   FOOTER
   ========================================= */

.game-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 35px 5vw;

    background: var(--ink);

    border-top: 1px solid rgba(244, 235, 221, 0.12);
}

.footer-left {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.footer-left p,
.footer-right a {
    font-family: var(--font-pixel);

    font-size: 0.68rem;

    letter-spacing: 0.06em;
}

.footer-left p {
    color: var(--sand);
}

.footer-left span {
    font-size: 0.65rem;

    color: #88888D;
}

.footer-right a {
    color: var(--cream);

    transition: color 0.25s ease;
}

.footer-right a:hover {
    color: var(--sand);
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1000px) {

    .game-nav {
        gap: 18px;
    }

    .gameplay-intro {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .shift-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shift-item:nth-child(2),
    .shift-item:nth-child(4) {
        border-right: none;
    }

    .shift-item:nth-child(3),
    .shift-item:nth-child(4),
    .shift-item:nth-child(5) {
        border-top: 1px solid rgba(228, 204, 150, 0.25);
    }

    .story-layout {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .game-feature {
        grid-template-columns: 1fr;
    }

    .feature-image {
        min-height: 500px;
    }

    .mystery-ending {
        display: block;
    }

    .mystery-ending span {
        display: block;

        margin-top: 20px;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    /* NAVBAR */

    .game-navbar {
        height: 68px;

        padding: 0 6vw;
    }

    .game-logo {
        position: static;

        transform: none;

        font-size: 0.72rem;
    }

    .game-nav {
        display: none;
    }

    .studio-link {
        font-size: 0.62rem;
    }


    /* HERO */

    .hero {
        padding: 110px 6vw 90px;
    }

    .hero h1 {
        font-size: 18vw;

        line-height: 0.82;
    }

    .scroll-indicator {
        display: none;
    }


    /* GENERAL SECTIONS */

    .intro,
    .gameplay,
    .story,
    .mystery,
    .screenshots {
        padding: 100px 6vw;
    }


    /* INTRO */

    .intro {
        display: block;
    }

    .intro .section-label {
        margin-bottom: 60px;
    }

    .intro-content h2 {
        font-size: 12vw;

        margin-bottom: 45px;
    }


    /* GAMEPLAY */

    .gameplay-intro {
        margin: 40px 0 60px;

        gap: 40px;
    }

    .gameplay-title h2 {
        font-size: 13vw;
    }

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

    .shift-item,
    .shift-item:nth-child(2),
    .shift-item:nth-child(4) {
        border-right: none;

        border-bottom: 1px solid rgba(228, 204, 150, 0.25);
    }

    .shift-item:last-child {
        border-bottom: none;
    }

    .shift-item:nth-child(3),
    .shift-item:nth-child(4),
    .shift-item:nth-child(5) {
        border-top: none;
    }


    /* STORY */

    .story-title h2 {
        font-size: 13vw;
    }


    /* FEATURE */

    .feature-content {
        padding: 60px 6vw;
    }

    .feature-content h2 {
        font-size: 14vw;
    }


    /* MYSTERY */

    .mystery-header {
        margin: 45px 0 60px;
    }

    .mystery-header h2 {
        font-size: 13vw;
    }

    .mystery-line {
        grid-template-columns: 45px 1fr;

        min-height: 90px;
    }

    .mystery-line p {
        font-size: 0.8rem;
    }

    .mystery-ending {
        margin-top: 65px;
    }


    /* SCREENSHOTS */

    .screenshots-header {
        display: block;

        margin: 45px 0 55px;
    }

    .screenshots-header h2 {
        font-size: 13vw;

        margin-bottom: 20px;
    }

    .screenshots-header p {
        max-width: 300px;
    }

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

    .screenshot,
    .screenshot-large,
    .screenshot-wide {
        grid-column: auto;

        min-height: 280px;
    }


    /* FINAL CTA */

    .final-cta {
        min-height: 70vh;

        padding: 100px 6vw;
    }

    .final-cta h2 {
        font-size: 14vw;

        margin-bottom: 30px;
    }


    /* FOOTER */

    .game-footer {
        flex-direction: column;

        align-items: flex-start;

        gap: 25px;

        padding: 30px 6vw;
    }
}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 450px) {

    .hero h1 {
        font-size: 20vw;
    }

    .hero-subtitle {
        font-size: 0.75rem;
    }

    .button {
        min-width: 175px;

        padding: 14px 20px;

        font-size: 0.6rem;
    }

    .shift-item {
        min-height: 260px;

        padding: 30px 20px;
    }

    .feature-image {
        min-height: 350px;
    }

    .mystery-line {
        grid-template-columns: 35px 1fr;
    }
}