/* =========================
   GAME PAGE HEADER
   ========================= */

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    min-height: 88px;
    padding: 16px 26px;

    background:
        radial-gradient(ellipse at bottom left, #bd3716 0%, transparent 45%),
        linear-gradient(150deg, #ff6b32, #ff5a1f 65%, #ec4b18);

    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

/* Brand: temporary logo + site name */

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    color: #111313;
    text-decoration: none;
}

/* Temporary logo placeholder */

.site-logo-placeholder {
    display: block;
    flex: 0 0 10px;

    width: 10px;
    height: 10px;

    background-color: #1c1c1c;
    border-radius: 50%;
}

/* THE / LOST / PIXEL */

.site-name {
    display: flex;
    flex-direction: column;

    font-family: "Space Mono", monospace;
    font-size: 18px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.8px;
    text-transform: uppercase;
}

/* Back to archive */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #1c1c1c;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    text-decoration: none;

    white-space: nowrap;
    transition: opacity 0.2s ease;
}

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

.back-link .material-symbols-outlined {
    font-size: 20px;
}

.game-page {
    padding: 22px clamp(16px, 3vw, 48px) 0;
}

.game-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 27px;
    color: var(--muted);
    font-size: 12px;
}

.game-breadcrumb a:hover,
.game-breadcrumb a:focus-visible {
    color: var(--orange);
}

.breadcrumb-separator {
    color: var(--orange);
}

.game-breadcrumb [aria-current="page"] {
    color: var(--text);
}

.game-hero {
    display: grid;
    grid-template-columns: minmax(210px, 290px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
    padding: 30px;
    border: 1px solid var(--border);
    background:
        radial-gradient(ellipse at 80% 0%, rgba(255, 90, 31, 0.07), transparent 45%),
        var(--panel);
}

.game-cover-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid #45433c;
    background: #080a0a;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.18);
}

.game-cover-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.game-intro {
    min-width: 0;
    padding-block: 10px;
}

.game-eyebrow {
    margin: 0 0 12px;
    color: var(--orange);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.game-eyebrow span {
    padding-inline: 5px;
    color: var(--muted);
}

.game-intro h1 {
    margin: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 54px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.game-release-year {
    margin: 9px 0 20px;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-tag {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 9px;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 11px;
    line-height: 1.3;
}

.game-tag.genre-tag {
    border-color: var(--orange);
    color: var(--orange);
}

.game-intro-rule {
    height: 1px;
    margin: 25px 0 19px;
    background: var(--border);
}

.game-primary-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 28px;
    margin: 0;
}

.primary-fact {
    min-width: 0;
}

.primary-fact dt,
.information-item dt {
    margin-bottom: 7px;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.primary-fact dd,
.information-item dd {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.game-section {
    margin-top: 43px;
}

.game-section-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 17px;
}

.section-index {
    color: var(--orange);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
}

.game-section-heading h2 {
    flex: 0 0 auto;
    margin: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.6px;
}

.section-heading-line {
    height: 1px;
    flex: 1;
    background: var(--orange);
    opacity: 0.8;
}

/* Screenshots section */
.game-screenshots-section {
    padding-bottom: 40px;
}

/* Screenshot grid */
.game-screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* Individual screenshots */
.game-screenshot {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;

    border: 1px solid #333;
    background-color: #1c1c1c;

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

.game-screenshot:hover {
    transform: translateY(-3px);
    border-color: #ff5a1f;
}



.game-description {
    max-width: 900px;
    color: #d0cec7;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.85;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.game-information-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    border: 1px solid var(--border);
    background: var(--border);
}

.information-item {
    min-width: 0;
    padding: 20px;
    background: var(--panel);
}

.game-site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 54px;
    padding-block: 22px;
    border-top: 1px solid var(--border);
}

.footer-wordmark {
    color: var(--text);
}

.game-site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

/* Tablet */
@media (max-width: 1000px) {
    .game-screenshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .game-header {
        min-height: 76px;
        padding: 12px 18px;
        gap: 12px;
    }

    .site-brand {
        gap: 10px;
    }

    .site-logo-placeholder {
        flex: 0 0 8px;
        width: 8px;
        height: 8px;
    }

    .site-name {
        font-size: 15px;
        line-height: 0.95;
        letter-spacing: -0.6px;
    }

    .back-link {
        gap: 5px;
        font-size: 12px;
    }

    .back-link .material-symbols-outlined {
        font-size: 18px;
    }

    .game-page {
        padding-top: 17px;
        padding-inline: clamp(16px, 3vw, 48px);
    }

    .game-breadcrumb {
        margin-bottom: 18px;
    }

    .game-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
        padding: 20px;
    }

    .game-cover-frame {
        width: min(230px, 72%);
        margin-inline: auto;
    }

    .game-intro {
        padding-block: 0;
    }

    .game-intro h1 {
        font-size: clamp(27px, 8vw, 40px);
        letter-spacing: -1.5px;
    }

    .game-section {
        margin-top: 34px;
    }
    
    .game-screenshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .game-description {
        font-size: 14px;
        line-height: 1.8;
    }

    .game-information-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .information-item {
        padding: 15px;
    }
}

@media (max-width: 420px) {

     .game-header {
        gap: 12px;
        padding: 14px 16px;
    }

    .site-brand {
        gap: 10px;
    }

    .site-name {
        font-size: 15px;
    }

    .back-link {
        gap: 4px;
        font-size: 12px;
    }

    .back-link .material-symbols-outlined {
        font-size: 18px;
    }

    .game-primary-facts,
    .game-information-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-screenshot-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .game-section-heading h2 {
        font-size: 16px;
    }
}
