@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lilita One";
    src: url("../fonts/LilitaOne-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --fg: #111;
    --muted: #888;
    --border: #e5e5e5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: #fff;
    color: var(--fg);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 550;
    font-optical-sizing: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ── LINKS ── */
a {
    color: var(--fg);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

a:hover {
    color: var(--muted);
    border-color: var(--muted);
}

/* ── MORE INFO BUTTON (DESKTOP) ── */
.more-info {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    z-index: 10;
}

.more-info:hover {
    color: var(--fg);
}

/* ── HERO ── */
#hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.logo {
    width: 296px;
    height: 296px;
    object-fit: contain;
    border-radius: 9%;
    flex-shrink: 0;
}

/* ── SECTIONS ── */
.sections-row {
    display: flex;
    border-top: 1px solid var(--border);
}

section {
    flex: 1;
    padding: 4rem 2rem;
    border-right: 1px solid var(--border);
}

section:last-child {
    border-right: none;
}

section h2 {
    font-size: 11.2px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2rem;
}

section p {
    color: var(--fg);
    margin-bottom: 1rem;
}

section p:last-child {
    margin-bottom: 0;
}

/* ── FOOTER ── */
footer {
    text-align: center;
    padding: 3rem 2rem;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--muted);
}

footer a:hover {
    color: var(--muted);
    border-color: transparent;
}

/* ── SUBPAGES ── */
.page {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem;
}

.back {
    position: fixed;
    top: 1.5rem;
    left: 2rem;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    border: none;
    padding: 0;
    transition: color 0.2s;
    z-index: 10;
}

.back:hover {
    color: var(--fg);
    border-color: transparent;
}

.page h1 {
    font-size: 11.2px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2rem;
}

.page h2 {
    font-size: 11.2px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.page p {
    margin-bottom: 1rem;
}

.not-found-page {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(4rem, 8vw, 8rem) 2rem 6rem;
    text-align: center;
}

.not-found-page p {
    max-width: 36rem;
    margin: 0 auto 1rem;
    color: var(--fg);
}


.updated {
    font-size: 12.8px;
    color: var(--muted);
    margin-bottom: 2.5rem;
}

/* ── OUTLINE BUTTON ── */
.btn-outline {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    border-radius: 2px;
    cursor: pointer;
    background: none;
    color: var(--muted);
    border: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s;
}

.btn-outline:hover {
    color: var(--fg);
    border-color: var(--muted);
}

/* ── COOKIE BANNER ── */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 100;
    font-size: 12.8px;
    color: var(--muted);
}

#cookie-banner p {
    margin: 0;
    line-height: 1.5;
}

#cookie-banner a {
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

#cookie-banner a:hover {
    color: var(--fg);
    border-color: var(--muted);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-banner-actions button {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

#cookie-decline {
    background: var(--fg);
    color: #fff;
    border: 1px solid var(--fg);
}

#cookie-decline:hover {
    background: #333;
    border-color: #333;
}

#cookie-accept {
    background: var(--fg);
    color: #fff;
    border: 1px solid var(--fg);
}

#cookie-accept:hover {
    background: #333;
    border-color: #333;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .page {
        padding: 5rem 1.5rem;
    }

    #hero {
        padding: 0 2.5rem;
    }

    .logo {
        width: 200px;
        height: 200px;
    }

    .back {
        position: static;
        display: block;
        width: 100%;
        text-align: left;
        padding: 1rem 1.5rem 0 1.5rem;
    }

    /* no fixed positioning on mobile */
    .more-info {
        position: static;
        display: block;
        width: 100%;
        text-align: right;
        padding: 1rem 1.5rem 0 1.5rem;
        background: none;
        border: none;
        z-index: auto;
    }

    .sections-row {
        flex-direction: column;
    }

    section {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    section:last-child {
        border-bottom: none;
    }

    #cookie-banner {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 0.85rem 1.25rem;
    }

    .cookie-banner-actions {
        flex-shrink: 0;
    }
}

/* ── UTILITIES ── */
.text-center {
    text-align: center;
}

/* ── PORTFOLIO ── */
.portfolio-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 6rem 2rem 5rem;
    min-height: 100svh;
}

.portfolio-wrap h1 {
    font-size: 11.2px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3rem;
}

.game-grid {
    display: flex;
    flex-direction: column;
    gap: 9rem;
    max-width: 900px;
    margin: 0 auto;
}

.game-card {
    display: flex;
    flex-direction: column;
}

/* Swap this div for an <img> when the real asset is ready */
.game-image {
    position: relative;
    width: 100%;
    aspect-ratio: 7 / 4; /* = the crate wall image (7 x 4 square tiles, 1792 x 1024), so nothing is cropped */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* box has the image's exact ratio (minus the 1px border): fill = zero cropping */
    display: block;
}

/* Game image is one link (image + title) to the game's own site */
.game-image-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    border-bottom: 0;
    padding-bottom: 0;
}

.game-image-link img {
    position: absolute;
    inset: 0;
}

.game-image-link:hover {
    color: #fff;
    border-color: transparent;
}

/* Lilita One is used for this title ONLY (everything else on the site stays Inter) */
.crate-title {
    position: relative;
    font-family: "Lilita One", "Inter", sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 7vw, 4rem);
    line-height: 1;
    letter-spacing: 0.04em;
    color: #fff;
    /* black outline all round + thicker black base for the 3D look (shadow ring; em units so it scales with the font) */
    text-shadow:
        0.075em 0.000em 0 #000,
        0.071em 0.023em 0 #000,
        0.061em 0.044em 0 #000,
        0.044em 0.061em 0 #000,
        0.023em 0.071em 0 #000,
        0.000em 0.075em 0 #000,
        -0.023em 0.071em 0 #000,
        -0.044em 0.061em 0 #000,
        -0.061em 0.044em 0 #000,
        -0.071em 0.023em 0 #000,
        -0.075em 0.000em 0 #000,
        -0.071em -0.023em 0 #000,
        -0.061em -0.044em 0 #000,
        -0.044em -0.061em 0 #000,
        -0.023em -0.071em 0 #000,
        -0.000em -0.075em 0 #000,
        0.023em -0.071em 0 #000,
        0.044em -0.061em 0 #000,
        0.061em -0.044em 0 #000,
        0.071em -0.023em 0 #000,
        0.075em 0.065em 0 #000,
        0.071em 0.088em 0 #000,
        0.061em 0.109em 0 #000,
        0.044em 0.126em 0 #000,
        0.023em 0.136em 0 #000,
        0.000em 0.140em 0 #000,
        -0.023em 0.136em 0 #000,
        -0.044em 0.126em 0 #000,
        -0.061em 0.109em 0 #000,
        -0.071em 0.088em 0 #000,
        -0.075em 0.065em 0 #000,
        -0.071em 0.042em 0 #000,
        -0.061em 0.021em 0 #000,
        -0.044em 0.004em 0 #000,
        -0.023em -0.006em 0 #000,
        -0.000em -0.010em 0 #000,
        0.023em -0.006em 0 #000,
        0.044em 0.004em 0 #000,
        0.061em 0.021em 0 #000,
        0.071em 0.042em 0 #000,
        0.075em 0.130em 0 #000,
        0.071em 0.153em 0 #000,
        0.061em 0.174em 0 #000,
        0.044em 0.191em 0 #000,
        0.023em 0.201em 0 #000,
        0.000em 0.205em 0 #000,
        -0.023em 0.201em 0 #000,
        -0.044em 0.191em 0 #000,
        -0.061em 0.174em 0 #000,
        -0.071em 0.153em 0 #000,
        -0.075em 0.130em 0 #000,
        -0.071em 0.107em 0 #000,
        -0.061em 0.086em 0 #000,
        -0.044em 0.069em 0 #000,
        -0.023em 0.059em 0 #000,
        -0.000em 0.055em 0 #000,
        0.023em 0.059em 0 #000,
        0.044em 0.069em 0 #000,
        0.061em 0.086em 0 #000,
        0.071em 0.107em 0 #000,
        0 0.235em 0.12em rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease-out;
}

.crate-title span {
    display: block;
    line-height: 1.02;
    text-align: center;
}

.game-image-link:hover .crate-title,
.game-image-link:focus-visible .crate-title {
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .crate-title { transition: none; }
}

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

.store-btn {
    padding: 0.85rem 0.5rem;
    font-size: 11.2px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--border);
    margin-top: -1px;
    transition: color 0.2s, border-color 0.2s;
    line-height: 1;
}

.store-btn:last-child {
    margin-left: -1px;
}

.store-btn:hover {
    color: var(--fg);
    border-color: var(--muted);
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .portfolio-wrap {
        padding: 5rem 1.5rem 4rem;
    }

    .game-grid {
        gap: 1.5rem;
    }
}