/* =========================================================
   PART OF THE PLOT
   GAMES PAGE
   Game library, game cards, credits, and booking CTA
   ========================================================= */


/* =========================================================
   1. GAME LEVELS
   ========================================================= */

.game-levels {
    position: relative;

    padding: 120px 20px 90px;

    background:
        radial-gradient(
            circle at center,
            #293041 0%,
            #171c28 40%,
            #10131a 80%
        );
}

.game-levels::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            transparent 0%,
            rgba(198, 161, 91, 0.05) 50%,
            transparent 100%
        );

    pointer-events: none;
}

.game-levels-container {
    position: relative;
    z-index: 1;

    max-width: 1100px;

    margin: 0 auto;
}

.game-levels .section-heading {
    max-width: 720px;

    margin: 0 auto 60px;

    text-align: center;
}

.game-levels .section-heading p:last-child {
    max-width: 650px;

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   2. GAME LEVEL GRID
   ========================================================= */

.game-level-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;
}

.game-level {
    padding: 35px 30px;

    text-align: center;

    border: 1px solid rgba(198, 161, 91, 0.35);

    background: rgba(16, 19, 26, 0.45);
}

.game-level-number {
    margin: 0 0 12px;

    color: var(--gold);

    font-family: "Cinzel", serif;
    font-size: 0.85rem;

    letter-spacing: 0.2em;
}

.game-level h3 {
    margin: 0 0 18px;

    color: var(--light-gold);

    font-family: "Cinzel", serif;
    font-size: 1.5rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.game-level p:last-child {
    margin: 0;

    color: var(--cream);

    font-size: 0.95rem;
    line-height: 1.8;
}


/* =========================================================
   3. GAME LIBRARY
   ========================================================= */

.games-library {
    padding: 65px 8% 130px;

    background: #10131a;
}

.game-grid {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 35px;
}


/* =========================================================
   4. GAME CARD — BASE
   ========================================================= */

.game-card {
    --card-accent: #c6a15b;
    --card-accent-light: #e2c989;
    --card-background: #181c26;
    --card-border: rgba(198, 161, 91, 0.22);
    --card-detail-border: rgba(198, 161, 91, 0.18);
    --card-description: #aaa9a4;

    overflow: hidden;

    background: var(--card-background);

    border: 1px solid var(--card-border);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.game-card:hover {
    transform: translateY(-6px);

    border-color: var(--card-accent);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.40);
}


/* =========================================================
   5. GAME CARD THEMES
   ========================================================= */

/* Spellbound */

.spellbound-game-card {
    --card-accent: #9a7bc4;
    --card-accent-light: #c4a9e8;
    --card-background: #191522;
    --card-border: rgba(154, 123, 196, 0.35);
    --card-detail-border: rgba(154, 123, 196, 0.25);
    --card-description: #b8b2c0;
}


/* Way Out West */

.way-out-west-game-card {
    --card-accent: #c6a15b;
    --card-accent-light: #e2c989;
    --card-background: #241d17;
    --card-border: rgba(198, 161, 91, 0.38);
    --card-detail-border: rgba(198, 161, 91, 0.25);
    --card-description: #b9afa1;
}


/* A Dead Man's Chest */

.dead-mans-chest-game-card {
    --card-accent: #aaa79f;
    --card-accent-light: #ddd9cf;
    --card-background: #1b1d1f;
    --card-border: rgba(170, 167, 159, 0.30);
    --card-detail-border: rgba(170, 167, 159, 0.20);
    --card-description: #b5b4b0;
}


/* =========================================================
   6. GAME CARD IMAGE
   ========================================================= */

.game-card-image {
    position: relative;

    min-height: 360px;

    display: flex;
    align-items: flex-end;

    overflow: hidden;

    background-size: cover;
    background-position: center;
}

.game-card-image::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(8, 10, 15, 0.96) 0%,
            rgba(8, 10, 15, 0.48) 45%,
            rgba(8, 10, 15, 0.08) 100%
        );

    z-index: 1;
}

.game-card-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            color-mix(
                in srgb,
                var(--card-accent) 8%,
                transparent
            ),
            transparent 60%
        );

    z-index: 1;
}


/* =========================================================
   7. GAME CARD BACKGROUND IMAGES
   ========================================================= */

.spellbound-card {
    background-image:
        url("games/spellbound/magicBackground.jpg");

    background-size: cover;
    background-position: center;
}

.way-out-west {
    background-image:
        url("games/wayOutWest/wayOutWestBackground.jpg");

    background-size: cover;
    background-position: center;
}

.dead-mans-chest {
    background-image:
        url("games/deadMansChest/deadMansChestBackground.jpg");

    background-size: cover;
    background-position: center;
}


/* =========================================================
   8. GAME CARD OVERLAY
   ========================================================= */

.game-card-overlay {
    position: relative;
    z-index: 2;

    width: 100%;

    padding: 35px;
}

.game-card-status {
    display: block;

    margin-bottom: 10px;

    color: var(--card-accent);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 3px;
}

.game-card-overlay h2 {
    margin-bottom: 3px;

    color: var(--cream);

    font-family: 'Cinzel', serif;
    font-size: 42px;
    font-weight: 500;

    line-height: 1.1;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.70);
}

.game-card-overlay p {
    color: #c3beb4;

    font-size: 12px;

    letter-spacing: 2px;
}


/* =========================================================
   9. GAME CARD CONTENT
   ========================================================= */

.game-card-content {
    padding: 35px;
}

.game-card-eyebrow {
    margin-bottom: 15px;

    color: var(--card-accent);

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 2.5px;
}

.game-card-description {
    min-height: 95px;

    margin-bottom: 30px;

    color: var(--card-description);

    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   10. GAME CARD PRICE
   ========================================================= */

.game-card-price {
    margin: 1.25rem 0;

    color: var(--card-accent);

    font-family: 'Cinzel', serif;

    font-size: 1rem;
    font-weight: 600;

    letter-spacing: 0.08em;

    text-align: center;
}

.game-card-price span {
    color: var(--card-description);

    font-family: 'Montserrat', sans-serif;

    font-size: 0.7rem;
    font-weight: 400;

    letter-spacing: 0;
}


/* =========================================================
   11. GAME CARD DETAILS
   ========================================================= */

.game-card-details {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

    margin-bottom: 30px;
}

.game-card-details div {
    padding-top: 12px;

    border-top:
        1px solid var(--card-detail-border);
}

.game-card-details span {
    display: block;

    margin-bottom: 3px;

    color: var(--card-accent);

    font-size: 8px;

    letter-spacing: 1.5px;
}

.game-card-details strong {
    color: var(--cream);

    font-size: 11px;
    font-weight: 400;
}


/* =========================================================
   12. GAME CARD BUTTON
   ========================================================= */

.game-card-button {
    width: 100%;

    text-align: center;
}


/* Theme button accents */

.spellbound-game-card .game-card-button,
.way-out-west-game-card .game-card-button,
.dead-mans-chest-game-card .game-card-button {
    border-color: var(--card-accent);

    color: var(--card-accent-light);
}


/* =========================================================
   13. DISABLED BUTTON
   ========================================================= */

.disabled-button {
    border-color: rgba(198, 161, 91, 0.20);

    color: #777;

    cursor: default;
}

.disabled-button:hover {
    background: transparent;

    border-color: rgba(198, 161, 91, 0.20);

    color: #777;

    transform: none;
}


/* =========================================================
   14. GAME LEVEL BADGE
   ========================================================= */

.game-card-level-badge {
    position: absolute;

    top: 18px;
    left: 18px;

    z-index: 5;

    padding: 7px 12px;

    background: rgba(16, 19, 26, 0.88);

    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1.5px;
}


/* Theme badge accents */

.spellbound-game-card .game-card-level-badge,
.way-out-west-game-card .game-card-level-badge,
.dead-mans-chest-game-card .game-card-level-badge {
    border: 1px solid var(--card-accent-light);

    color: var(--card-accent-light);
}


/* =========================================================
   15. GAME CREDIT / LICENSING
   ========================================================= */

.game-credit {
    max-width: 800px;

    margin: 0 auto;
    padding: 80px 30px;

    text-align: center;
}

.game-credit h2 {
    margin-bottom: 20px;
}

.game-credit p {
    max-width: 650px;

    margin-left: auto;
    margin-right: auto;
}

.game-credit-note {
    margin-top: 15px;

    font-size: 0.85rem;

    opacity: 0.75;
}

.game-credit a {
    display: inline-block;

    margin-top: 20px;

    text-decoration: none;
}


/* =========================================================
   16. GAME COPYRIGHT
   ========================================================= */

.game-copyright {
    max-width: 850px;

    margin: 45px auto;
    padding: 0 25px;

    color: #666;

    font-size: 10px;
    letter-spacing: 0.5px;

    text-align: center;
}

.game-copyright a {
    color: #888;

    text-decoration: none;
}

.game-copyright a:hover {
    color: var(--gold);
}


/* =========================================================
   17. BOOKING CTA
   ========================================================= */

.game-booking {
    min-height: 480px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 80px 30px;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            #393329 0%,
            #202027 45%,
            #11141b 100%
        );
}

.game-booking > div {
    max-width: 650px;
}

.game-booking h2 {
    margin-bottom: 20px;

    color: var(--cream);

    font-family: 'Cinzel', serif;

    font-size: clamp(45px, 7vw, 75px);
    font-weight: 500;

    line-height: 1.1;
}

.game-booking p:not(.eyebrow) {
    margin-bottom: 35px;

    color: var(--muted);
}


/* =========================================================
   18. TABLET
   ========================================================= */

@media (max-width: 900px) {

    .game-grid {
        grid-template-columns: 1fr;

        max-width: 650px;
    }

}


/* =========================================================
   19. SMALL TABLET
   ========================================================= */

@media (max-width: 800px) {

    .game-level-grid {
        grid-template-columns: 1fr;

        max-width: 600px;

        margin: 0 auto;
    }

}


/* =========================================================
   20. MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .games-intro {
        padding: 125px 20px 65px;
    }

    .games-library {
        padding: 25px 20px 90px;
    }

    .game-card-image {
        min-height: 300px;
    }

    .game-card-overlay {
        padding: 25px;
    }

    .game-card-overlay h2 {
        font-size: 34px;
    }

    .game-card-content {
        padding: 28px 22px;
    }

    .game-card-description {
        min-height: 0;
    }

    .game-card-details {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .game-booking {
        min-height: 400px;
    }

    .game-credit {
        padding: 60px 20px;
    }

    .game-copyright {
        padding: 0 20px;
    }

}


/* =========================================================
   END OF GAMES STYLESHEET
   ========================================================= */