/* =========================================================
   OG VIBES
   SPLASH PAGE V2
   ========================================================= */

:root {
    --bg: #030616;
    --bg-deep: #01040d;
    --panel: #070b1b;
    --panel-soft: #0b1026;

    --purple: #7928ff;
    --purple-bright: #a855f7;
    --violet: #b44cff;

    --blue: #147dff;
    --cyan: #20d9ff;

    --orange: #ff6a00;

    --white: #f5f3f7;
    --muted: #a5a8bb;

    --border: rgba(65, 163, 255, 0.42);
    --border-soft: rgba(65, 163, 255, 0.18);

    --font-main:
        "Courier New",
        Courier,
        monospace;

    --page-width: 1500px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(90, 40, 180, 0.20),
            transparent 38%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(0, 150, 255, 0.08),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #05091c 0%,
            #020511 48%,
            #01030b 100%
        );

    color: var(--white);

    font-family: var(--font-main);

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

.hidden {
    display: none !important;
}


/* =========================================================
   PAGE
   ========================================================= */

.site-shell {
    width: min(
        calc(100% - 48px),
        var(--page-width)
    );

    margin: 0 auto;

    padding: 26px 0 20px;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    min-height: 255px;

    display: grid;

    grid-template-columns:
        minmax(280px, 0.85fr)
        minmax(430px, 1.55fr)
        minmax(180px, 0.55fr);

    position: relative;

    border-bottom:
        1px solid var(--border);
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    display: flex;

    align-items: center;

    gap: 30px;

    padding:
        15px 30px
        30px 10px;

    z-index: 2;
}


/*
   TEMPORARY LOGO

   We will replace this entire thing with
   the real OG Vibes logo image.
*/

.brand-logo {
    display: flex;

    flex-direction: column;

    line-height: 0.72;

    transform: rotate(-4deg);
}

.brand-og {
    color: var(--white);

    font-family:
        Arial Black,
        Impact,
        sans-serif;

    font-size:
        clamp(
            4.5rem,
            7vw,
            7.5rem
        );

    font-weight: 900;

    letter-spacing: -0.12em;

    text-shadow:
        0 0 25px
        rgba(45, 140, 255, 0.15);
}

.brand-vibes {
    color: var(--orange);

    font-family:
        Arial Black,
        Impact,
        sans-serif;

    font-size:
        clamp(
            2.8rem,
            4.6vw,
            5rem
        );

    font-style: italic;

    font-weight: 900;

    letter-spacing: -0.06em;

    margin-left: 10px;
}

.brand-description {
    min-width: 175px;

    border-left:
        2px solid var(--purple-bright);

    padding-left: 20px;

    font-size: 0.78rem;

    letter-spacing: 0.16em;

    line-height: 1.55;

    color: #dddced;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-scene {
    min-height: 255px;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 55%,
            rgba(130, 50, 255, 0.30),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #08082c 0%,
            #10144d 40%,
            #071126 100%
        );
}

.hero-city {
    position: absolute;

    inset: 0;

    opacity: 0.9;

    background:
        linear-gradient(
            to top,
            rgba(2, 4, 15, 1),
            rgba(2, 4, 15, 0)
            70%
        );
}


/* Temporary skyline */

.hero-city::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 72%;

    background:
        linear-gradient(
            90deg,

            #06091d 0 7%,
            transparent 7% 10%,

            #0a1030 10% 17%,
            transparent 17% 20%,

            #080d26 20% 28%,
            transparent 28% 31%,

            #101348 31% 38%,
            transparent 38% 42%,

            #070a22 42% 50%,
            transparent 50% 54%,

            #101445 54% 61%,
            transparent 61% 65%,

            #080c29 65% 72%,
            transparent 72% 76%,

            #10143d 76% 85%,
            transparent 85% 89%,

            #070a20 89% 100%
        );

    clip-path: polygon(
        0 100%,
        0 40%,
        7% 40%,
        7% 10%,
        15% 10%,
        15% 55%,
        24% 55%,
        24% 25%,
        34% 25%,
        34% 48%,
        43% 48%,
        43% 4%,
        51% 4%,
        51% 52%,
        62% 52%,
        62% 20%,
        70% 20%,
        70% 58%,
        81% 58%,
        81% 32%,
        91% 32%,
        91% 50%,
        100% 50%,
        100% 100%
    );
}


/* City lights */

.hero-city::after {
    content: "";

    position: absolute;

    inset:
        30px 25px 55px;

    opacity: 0.75;

    background-image:
        radial-gradient(
            circle,
            #3ad9ff 0 1.5px,
            transparent 2px
        ),
        radial-gradient(
            circle,
            #d052ff 0 1.5px,
            transparent 2px
        );

    background-position:
        0 0,
        16px 14px;

    background-size:
        32px 28px;
}


/* =========================================================
   HERO DESK
   ========================================================= */

.hero-desk {
    position: absolute;

    left: 50%;
    bottom: 0;

    width: 70%;
    height: 88%;

    transform:
        translateX(-50%);

    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex-direction: column;
}


/* GO LIVE sign */

.hero-sign {
    position: relative;

    padding:
        10px 34px;

    margin-bottom: 15px;

    background: #0a0611;

    border:
        3px solid
        var(--purple-bright);

    box-shadow:
        0 0 8px
        rgba(168, 85, 247, 0.85),

        0 0 25px
        rgba(168, 85, 247, 0.40),

        0 0 50px
        rgba(45, 120, 255, 0.18),

        inset 0 0 12px
        rgba(168, 85, 247, 0.25);

    color: #ffffff;

    font-weight: 900;

    font-size:
        clamp(
            1.3rem,
            2vw,
            2rem
        );

    letter-spacing: 0.08em;

    text-shadow:
        0 0 10px
        var(--violet);
}


/* Monitors */

.hero-monitors {
    height: 70px;

    display: flex;

    align-items: flex-end;

    gap: 7px;
}

.hero-monitors span {
    display: block;

    width: 95px;
    height: 60px;

    border:
        3px solid #16245d;

    background:
        linear-gradient(
            135deg,
            #174f9b,
            #522eac
        );

    box-shadow:
        0 0 15px
        rgba(32, 217, 255, 0.15),

        inset 0 0 18px
        rgba(120, 90, 255, 0.35);
}

.hero-monitors span:nth-child(2) {
    width: 115px;
    height: 70px;
}


/* Character */

.hero-character {
    width: 68px;
    height: 62px;

    display: flex;

    align-items: flex-start;

    justify-content: center;

    padding-top: 8px;

    margin-top: -14px;

    border-radius:
        45% 45%
        15% 15%;

    background: #050817;

    border-top:
        8px solid
        var(--orange);

    color: var(--orange);

    font-weight: 900;

    font-size: 0.8rem;

    position: relative;

    z-index: 2;
}


/* =========================================================
   SOCIAL NAVIGATION
   ========================================================= */

.social-nav {
    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 10px;

    padding:
        25px 0
        25px 25px;
}

.social-link {
    min-height: 43px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        7px 12px;

    border:
        1px solid
        var(--border);

    border-radius: 3px;

    background:
        rgba(7, 11, 27, 0.45);

    color: #ebeafa;

    font-size: 0.72rem;

    text-transform: uppercase;

    letter-spacing: 0.12em;

    transition:
        border-color 150ms ease,
        background 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}

.social-link:hover {
    border-color:
        var(--purple-bright);

    background:
        rgba(120, 40, 255, 0.10);

    box-shadow:
        0 0 18px
        rgba(120, 40, 255, 0.12);

    transform:
        translateX(-3px);
}

.social-icon {
    width: 28px;
    height: 28px;

    display: grid;

    place-items: center;

    color: var(--cyan);

    font-size: 1rem;

    font-weight: 900;
}


/* =========================================================
   GAME
   ========================================================= */

.game-section {
    margin-top: 12px;
}

.game-hud {
    min-height: 52px;

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    padding:
        0 16px;

    border-bottom:
        1px solid
        var(--border);

    letter-spacing: 0.12em;
}

.hud-score,
.hud-lives {
    display: flex;

    align-items: center;

    gap: 20px;

    font-weight: 700;
}

.hud-score #score {
    color: var(--cyan);

    font-size: 1.2rem;

    text-shadow:
        0 0 10px
        rgba(32, 217, 255, 0.45);
}

.hud-lives {
    justify-content: flex-end;
}

.hud-lives #lives {
    color: var(--purple-bright);

    letter-spacing: 0.3em;

    text-shadow:
        0 0 10px
        rgba(168, 85, 247, 0.45);
}

.hud-label {
    color: var(--white);

    font-size: 0.9rem;
}

.game-objective {
    font-size: 0.92rem;

    font-weight: 700;

    letter-spacing: 0.18em;

    text-align: center;
}


/* =========================================================
   CANVAS
   ========================================================= */

.game-container {
    position: relative;

    width: 100%;

    overflow: hidden;

    border:
        1px solid
        var(--border);

    border-radius: 4px;

    background: #030713;

    box-shadow:
        0 0 30px
        rgba(35, 115, 255, 0.06),

        0 30px 70px
        rgba(0, 0, 0, 0.45);
}

#game-canvas {
    width: 100%;
    height: auto;

    display: block;

    background: #050916;

    image-rendering: pixelated;

    touch-action: none;
}


/* =========================================================
   WIN / GAME OVER
   ========================================================= */

.game-message {
    position: absolute;

    inset: 0;

    display: grid;

    place-items: center;

    background:
        rgba(1, 3, 12, 0.76);

    backdrop-filter:
        blur(3px);

    z-index: 10;
}

.message-content {
    width:
        min(
            90%,
            470px
        );

    padding: 35px;

    text-align: center;

    background:
        rgba(5, 7, 22, 0.96);

    border:
        1px solid
        var(--purple-bright);

    box-shadow:
        0 0 40px
        rgba(120, 40, 255, 0.20),

        0 20px 70px
        rgba(0, 0, 0, 0.55);
}

.message-small {
    display: block;

    margin-bottom: 12px;

    color: var(--cyan);

    font-size: 0.72rem;

    letter-spacing: 0.22em;
}

.message-content strong {
    display: block;

    margin-bottom: 25px;

    color: var(--white);

    font-size:
        clamp(
            2rem,
            6vw,
            4rem
        );

    letter-spacing: 0.08em;

    text-shadow:
        0 0 20px
        rgba(168, 85, 247, 0.40);
}

.secondary-button {
    min-width: 190px;

    padding:
        14px 24px;

    cursor: pointer;

    border:
        1px solid
        var(--purple-bright);

    background:
        rgba(120, 40, 255, 0.10);

    color: #ffffff;

    font-weight: 900;

    letter-spacing: 0.14em;

    transition:
        background 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}

.secondary-button:hover {
    border-color:
        var(--cyan);

    background:
        rgba(32, 217, 255, 0.10);

    transform:
        translateY(-2px);

    box-shadow:
        0 0 24px
        rgba(32, 217, 255, 0.20);
}


/* =========================================================
   CONTROLS
   ========================================================= */

.game-controls {
    min-height: 100px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;
}

.desktop-controls {
    display: flex;

    align-items: center;

    gap: 25px;

    color: var(--muted);

    font-size: 0.72rem;

    letter-spacing: 0.14em;
}

.control-keys {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 3px;
}

.control-keys > div {
    display: flex;

    gap: 3px;
}

.key {
    width: 28px;
    height: 28px;

    display: inline-grid;

    place-items: center;

    border:
        1px solid
        rgba(65, 163, 255, 0.60);

    border-radius: 3px;

    color: #e6f6ff;

    background: #080d22;

    box-shadow:
        inset 0 -3px 0
        rgba(0, 0, 0, 0.35),

        0 0 8px
        rgba(32, 217, 255, 0.06);
}

.mobile-controls {
    display: none;
}


/* =========================================================
   ABOUT
   ========================================================= */

.splash-info {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        auto;

    align-items: center;

    gap: 50px;

    padding:
        45px 20px;

    border-top:
        1px solid
        var(--border-soft);

    border-bottom:
        1px solid
        var(--border-soft);
}

.section-label {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--cyan);

    font-size: 0.72rem;

    letter-spacing: 0.24em;
}

.splash-copy h2 {
    max-width: 750px;

    margin-bottom: 16px;

    font-size:
        clamp(
            1.5rem,
            3vw,
            2.5rem
        );

    line-height: 1.2;

    letter-spacing: 0.04em;
}

.splash-copy p {
    max-width: 720px;

    color: var(--muted);

    font-size: 0.84rem;

    line-height: 1.8;
}


/* =========================================================
   ACTION LINKS
   ========================================================= */

.splash-actions {
    min-width: 240px;

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.primary-link,
.secondary-link {
    display: block;

    padding:
        14px 20px;

    text-align: center;

    font-size: 0.72rem;

    letter-spacing: 0.12em;

    transition:
        border-color 150ms ease,
        background 150ms ease,
        box-shadow 150ms ease;
}

.primary-link {
    border:
        1px solid
        var(--purple-bright);

    color: #ffffff;

    background:
        rgba(120, 40, 255, 0.08);
}

.primary-link:hover {
    background:
        rgba(120, 40, 255, 0.16);

    box-shadow:
        0 0 20px
        rgba(120, 40, 255, 0.12);
}

.secondary-link {
    border:
        1px solid
        var(--border);

    color: #ffffff;
}

.secondary-link:hover {
    border-color:
        var(--cyan);

    background:
        rgba(32, 217, 255, 0.06);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 18px;

    color: #9296ad;

    font-size: 0.66rem;

    letter-spacing: 0.2em;
}

.footer-divider {
    color: var(--purple-bright);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .site-header {
        grid-template-columns:
            minmax(260px, 0.9fr)
            minmax(400px, 1.4fr);
    }

    .social-nav {
        grid-column:
            1 / -1;

        flex-direction: row;

        padding:
            14px 0 18px;

        justify-content: center;

        flex-wrap: wrap;
    }

    .social-link {
        min-width: 130px;
    }

}


@media (max-width: 820px) {

    .site-shell {
        width:
            min(
                calc(100% - 24px),
                var(--page-width)
            );

        padding-top: 12px;
    }

    .site-header {
        display: block;
    }

    .brand {
        justify-content: center;

        padding:
            20px 10px 28px;
    }

    .hero-scene {
        min-height: 220px;

        border-top:
            1px solid
            var(--border);
    }

    .social-nav {
        display: grid;

        grid-template-columns:
            repeat(5, 1fr);

        gap: 6px;
    }

    .social-link {
        min-width: 0;

        justify-content: center;

        padding: 8px;
    }

    .social-link span:last-child {
        display: none;
    }

    .game-hud {
        grid-template-columns:
            1fr 1fr;

        height: auto;

        min-height: 52px;

        padding:
            10px 12px;
    }

    .game-objective {
        grid-column:
            1 / -1;

        grid-row: 2;

        margin-top: 9px;

        font-size: 0.7rem;
    }

    .hud-score,
    .hud-lives {
        font-size: 0.75rem;
    }

    .desktop-controls {
        display: none;
    }

    .mobile-controls {
        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 7px;
    }

    .mobile-control-row {
        display: flex;

        gap: 7px;
    }

    .move-button {
        width: 54px;
        height: 48px;

        display: grid;

        place-items: center;

        border:
            1px solid
            var(--border);

        border-radius: 4px;

        background: #080d22;

        color: var(--white);

        font-size: 1.25rem;

        cursor: pointer;

        touch-action: manipulation;
    }

    .move-button:active {
        border-color:
            var(--purple-bright);

        background:
            rgba(120, 40, 255, 0.25);
    }

    .game-controls {
        min-height: 135px;
    }

    .splash-info {
        grid-template-columns: 1fr;

        gap: 30px;

        padding:
            40px 10px;
    }

    .splash-actions {
        width: 100%;
    }

}


@media (max-width: 540px) {

    .site-shell {
        width:
            calc(100% - 14px);
    }

    .brand {
        flex-direction: column;

        gap: 20px;
    }

    .brand-description {
        width:
            min(
                100%,
                310px
            );

        text-align: left;
    }

    .brand-og {
        font-size: 5.2rem;
    }

    .brand-vibes {
        font-size: 3.2rem;
    }

    .hero-scene {
        min-height: 190px;
    }

    .hero-desk {
        width: 95%;
    }

    .hero-monitors span {
        width: 70px;
        height: 50px;
    }

    .hero-monitors span:nth-child(2) {
        width: 82px;
        height: 58px;
    }

    .hero-sign {
        padding:
            8px 20px;
    }

    .game-hud {
        padding:
            9px 7px;
    }

    .hud-score,
    .hud-lives {
        gap: 8px;
    }

    .hud-label {
        font-size: 0.65rem;
    }

    .hud-score #score,
    .hud-lives #lives {
        font-size: 0.78rem;
    }

    .message-content {
        padding:
            24px 16px;
    }

    .secondary-button {
        min-width: 160px;

        padding:
            12px 18px;
    }

    .splash-copy p {
        font-size: 0.78rem;
    }

    .site-footer {
        gap: 9px;

        padding:
            20px 5px;

        font-size: 0.55rem;

        letter-spacing: 0.12em;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@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;
    }

}