/* ==========================================================
   ROOT VARIABLES
   Reusable colours for the entire website.
========================================================== */

:root {
    --background: #0B1026;
    --primary: #3B82F6;
    --primary-hover: #2563EB;
    --secondary: #6E3DD6;
    --text: #F8FAFC;
    --muted: #94A3B8;
}





/* ==========================================================
   GLOBAL STYLES
   Styles that affect the entire website.
========================================================== */

body {
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;

    margin: 0;

    background-color: var(--background);

    color: var(--text);

    font-family: Arial, Helvetica, sans-serif;
}





/* ==========================================================
   NAVIGATION BAR
   The fixed menu displayed at the top of the website.
========================================================== */

/* Navigation container */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

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

    box-sizing: border-box;

    width: 100%;

    padding: 20px 60px;

    background: rgba(10, 15, 35, 0.75);

    backdrop-filter: blur(12px);
}


/* Studio name */

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}


/* Navigation links */

.nav-links {
    display: flex;

    gap: 30px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.nav-links a {
    position: relative;

    display: inline-block;

    color: var(--text);

    font-weight: 500;
    text-decoration: none;

    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}


/* Navigation underline animation */

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

    position: absolute;
    left: 50%;
    bottom: -5px;

    width: 0;
    height: 2px;

    background-color: var(--primary);

    transform: translateX(-50%);

    transition: width 0.3s ease;
}

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





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

@media (max-width: 768px) {

    .navbar {
        flex-direction: column;

        gap: 15px;

        padding: 16px 20px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        justify-content: center;

        width: 100%;

        gap: 20px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

}





/* ==========================================================
   HERO SECTION
   The first thing visitors see.
========================================================== */

/* Hero container */

.hero {
    box-sizing: border-box;

    width: 100%;

    margin: 0;
    padding: 140px 24px 60px;

    overflow: hidden;
}

.hero-content {
    text-align: center;
}


/* Hero avatar */

.hero-avatar {
    width: 250px;
    height: auto;

    margin-bottom: 20px;

    border-radius: 50%;

    filter:
        drop-shadow(0 0 20px rgba(59, 130, 246, 0.35))
        drop-shadow(0 0 50px rgba(110, 61, 214, 0.25));

    transition:
        transform 0.4s ease,
        filter 0.4s ease;
}

.hero-avatar:hover {
    transform:
        translateY(-6px)
        scale(1.03);

    filter:
        drop-shadow(0 0 35px rgba(59, 130, 246, 0.55))
        drop-shadow(0 0 70px rgba(110, 61, 214, 0.45));
}


/* Hero text */

.hero h1 {
    margin-bottom: 10px;

    font-size: 64px;
    letter-spacing: -2px;
}

.hero p {
    max-width: 500px;

    color: var(--muted);

    font-size: 18px;
}


/* Hero button */

.hero-button {
    display: inline-block;

    margin-top: 30px;
    padding: 15px 35px;

    background-color: var(--primary);

    color: var(--text);

    border-radius: 10px;

    font-weight: bold;
    text-decoration: none;

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

.hero-button:hover {
    background-color: var(--primary-hover);

    transform: translateY(-3px);
}


/* Hero background glow */

.hero::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    z-index: -1;

    width: 750px;
    height: 750px;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(110, 61, 214, 0.22) 0%,
        rgba(59, 130, 246, 0.10) 40%,
        transparent 70%
    );

    transform: translate(-50%, -50%);
}





/* ==========================================================
   MOBILE HERO SECTION
========================================================== */

@media (max-width: 768px) {

    main {
        width: 100%;
    }

    .hero {
        box-sizing: border-box;

        width: 100%;

        padding: 140px 24px 60px;

        overflow: hidden;
    }

    .hero-avatar {
        width: 180px;

        margin-bottom: 15px;
    }

    .hero h1 {
        margin-bottom: 12px;

        font-size: 2.6rem;
        letter-spacing: -1px;
    }

    .hero p {
        max-width: 400px;

        margin-right: auto;
        margin-left: auto;

        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-button {
        margin-top: 22px;

        padding: 14px 26px;
    }

    .hero::before {
        width: 500px;
        height: 500px;
    }

}





/* ==========================================================
   GAMES SECTION
========================================================== */

/* ----------------------------------------------------------
   Games page introduction
---------------------------------------------------------- */

.games {
    box-sizing: border-box;

    width: 100%;

    padding: 80px 10%;
}

.games-heading {
    max-width: 700px;

    margin: 0 auto 60px;

    text-align: center;
}

.section-label {
    margin-bottom: 12px;

    color: #7c8cff;

    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.games-heading h1 {
    margin-bottom: 16px;

    font-size: 3rem;
}

.games-introduction {
    color: #b8b8c7;

    font-size: 1.05rem;
    line-height: 1.7;
}


/* ----------------------------------------------------------
   Featured game card: Site Unknown
---------------------------------------------------------- */

.featured-game {
    display: grid;
    grid-template-columns: 1.7fr 1fr;

    width: 100%;
    max-width: 1200px;
    min-height: 420px;

    margin: 0 auto;

    overflow: hidden;

    background: rgba(18, 20, 45, 0.85);

    border: 1px solid rgba(124, 140, 255, 0.2);
    border-radius: 24px;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.featured-game-image {
    position: relative;

    min-height: 420px;

    background:
        linear-gradient(
            90deg,
            rgba(9, 11, 28, 0.05),
            rgba(9, 11, 28, 0.35)
        ),
        url("Assets/Images/Games/Site Unknown/site-unknown-featured.png");

    background-position: left center;
    background-size: cover;
    background-repeat: no-repeat;
}

.featured-game-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 60px;
}

.featured-game-content h2 {
    margin-bottom: 20px;

    font-size: 2.5rem;
}


/* ----------------------------------------------------------
   Shared game labels, descriptions and buttons
---------------------------------------------------------- */

.game-status {
    display: inline-block;
    align-self: flex-start;
    width: max-content;
    margin-bottom: 14px;
    padding: 9px 16px;

    background: rgba(9, 11, 28, 0.75);

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;

    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;

    backdrop-filter: blur(8px);
}

.game-type {
    margin-top: 0;
    margin-bottom: 12px;

    color: #7c8cff;

    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.game-description {
    margin-bottom: 30px;

    color: #b8b8c7;

    font-size: 1rem;
    line-height: 1.8;
}

.game-button {
    align-self: flex-start;

    padding: 14px 24px;

    background: linear-gradient(
        135deg,
        #5865f2,
        #7c5cff
    );

    color: #ffffff;

    border-radius: 10px;

    font-weight: 600;
    text-decoration: none;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.game-button:hover {
    transform: translateY(-3px);

    box-shadow: 0 12px 30px rgba(88, 101, 242, 0.35);
}


/* ----------------------------------------------------------
   Secondary game cards
   Sort It Out and Mamepetto
---------------------------------------------------------- */

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 30px;

    width: 100%;
    max-width: 1200px;

    margin: 40px auto 0;
}

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

    overflow: hidden;

    background: rgba(18, 20, 45, 0.85);

    border: 1px solid rgba(124, 140, 255, 0.2);
    border-radius: 20px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.game-card-image {
    position: relative;

    min-height: 260px;

    background:
        radial-gradient(
            circle at center,
            rgba(124, 140, 255, 0.25),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            #171a3a,
            #090b1c
        );
}

.game-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 35px;
}

.game-card-content h2 {
    margin-top: 0;
    margin-bottom: 18px;

    font-size: 1.8rem;
}

.game-card .game-button {
    margin-top: auto;
}


/* ----------------------------------------------------------
   Sort It Out image
---------------------------------------------------------- */

.sort-it-out-image {
    background:
        linear-gradient(
            180deg,
            rgba(9, 11, 28, 0.05),
            rgba(9, 11, 28, 0.3)
        ),
        url("Assets/Images/Games/Sort It Out/sort-it-out-featured.png");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


/* ----------------------------------------------------------
   Mamepetto image
---------------------------------------------------------- */

.mamepetto-image {
    background:
        linear-gradient(
            180deg,
            rgba(9, 11, 28, 0.05),
            rgba(9, 11, 28, 0.3)
        ),
        url("Assets/Images/Games/Mamepetto/mamepetto-featured.png");

    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}





/* ==========================================================
   MOBILE GAMES SECTION
========================================================== */

@media (max-width: 768px) {

    /* Games page introduction */

    .games {
        box-sizing: border-box;

        padding: 150px 20px 50px;
    }

    .games-heading {
        margin-bottom: 40px;
    }

    .games-heading h1 {
        font-size: 2.2rem;
    }

    .games-introduction {
        font-size: 1rem;
    }


    /* Featured Site Unknown card */

    .featured-game {
        grid-template-columns: 1fr;

        max-width: 550px;
    }

    .featured-game-image {
        min-height: 300px;
    }

    .featured-game-content {
        padding: 40px 30px;
    }

    .featured-game-content h2 {
        font-size: 2rem;
    }


    /* Shared game button */

    .game-button {
        align-self: stretch;

        text-align: center;
    }


    /* Secondary game cards */

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

        max-width: 550px;
    }

    .game-card-image {
        min-height: 240px;
    }

    .game-card-content {
        padding: 32px 25px;
    }

}





/* ==========================================================
   ABOUT SECTION
========================================================== */

/* ----------------------------------------------------------
   About page introduction
---------------------------------------------------------- */

.about {
    box-sizing: border-box;

    width: 100%;

    padding: 80px 10%;
}

.about-heading {
    max-width: 750px;

    margin: 0 auto 60px;

    text-align: center;
}

.about-heading h1 {
    margin-bottom: 16px;

    font-size: 3rem;
}

.about-introduction {
    color: #b8b8c7;

    font-size: 1.05rem;
    line-height: 1.7;
}


/* ----------------------------------------------------------
   Shared About card layout
---------------------------------------------------------- */

.about-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;

    width: 100%;
    max-width: 1100px;
    min-height: 430px;

    margin: 0 auto;

    overflow: hidden;

    background: rgba(18, 20, 45, 0.85);

    border: 1px solid rgba(124, 140, 255, 0.2);
    border-radius: 24px;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.about-image {
    position: relative;

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

    min-height: 430px;

    background:
        radial-gradient(
            circle at center,
            rgba(124, 140, 255, 0.3),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            #171a3a,
            #090b1c
        );
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 60px;
}

.about-section-label {
    margin-bottom: 12px;

    color: #7c8cff;

    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-content h2 {
    margin-top: 0;
    margin-bottom: 22px;

    font-size: 2.3rem;
}

.about-content p {
    margin-top: 0;
    margin-bottom: 18px;

    color: #b8b8c7;

    line-height: 1.8;
}


/* ----------------------------------------------------------
   Card One: Squiggle Studios
---------------------------------------------------------- */

.about-logo {
    width: 75%;
    max-width: 340px;
    height: auto;

    filter:
        drop-shadow(0 0 25px rgba(59, 130, 246, 0.25))
        drop-shadow(0 0 45px rgba(110, 61, 214, 0.2));
}


/* ----------------------------------------------------------
   Card Two: Meet the Developer
---------------------------------------------------------- */

.developer-card {
    margin-top: 40px;
}

.developer-card .about-image {
    min-width: 0;

    overflow: hidden;
}

.developer-photo {
    display: block;

    width: 280px;
    height: 280px;
    max-width: 80%;

    object-fit: cover;
    object-position: center;

    border: 1px solid rgba(124, 140, 255, 0.25);
    border-radius: 24px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}





/* ==========================================================
   MOBILE ABOUT SECTION
========================================================== */

@media (max-width: 768px) {

    /* About page introduction */

    .about {
        padding: 150px 20px 50px;
    }

    .about-heading {
        margin-bottom: 40px;
    }

    .about-heading h1 {
        font-size: 2.2rem;
    }

    .about-introduction {
        font-size: 1rem;
    }


    /* Shared About cards */

    .about-card {
        grid-template-columns: 1fr;

        max-width: 550px;
    }

    .about-image {
        min-height: 320px;
    }

    .about-content {
        padding: 40px 30px;
    }

    .about-content h2 {
        font-size: 2rem;
    }


    /* Studio logo */

    .about-logo {
        width: 70%;
        max-width: 280px;
    }


    /* Developer card */

    .developer-photo {
        width: 240px;
        height: 240px;
    }

}




/* ==========================================================
   CONTACT SECTION
========================================================== */

/* ----------------------------------------------------------
   Contact page introduction
---------------------------------------------------------- */

.contact {
    box-sizing: border-box;

    width: 100%;

    padding: 80px 10%;
}

.contact-heading {
    max-width: 750px;

    margin: 0 auto 60px;

    text-align: center;
}

.contact-heading h1 {
    margin-bottom: 16px;

    font-size: 3rem;
}

.contact-introduction {
    color: #b8b8c7;

    font-size: 1.05rem;
    line-height: 1.7;
}


/* ----------------------------------------------------------
   Contact card
---------------------------------------------------------- */

.contact-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    overflow: hidden;

    background: rgba(18, 20, 45, 0.85);

    border: 1px solid rgba(124, 140, 255, 0.2);
    border-radius: 24px;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}


/* ----------------------------------------------------------
   Contact information
---------------------------------------------------------- */

.contact-information {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 60px;

    background:
        radial-gradient(
            circle at center,
            rgba(124, 140, 255, 0.2),
            transparent 65%
        ),
        linear-gradient(
            135deg,
            #171a3a,
            #0d1028
        );
}

.contact-section-label {
    margin-bottom: 12px;

    color: #7c8cff;

    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-information h2 {
    margin-top: 0;
    margin-bottom: 22px;

    font-size: 2.3rem;
}

.contact-information > p:not(.contact-section-label) {
    margin-top: 0;
    margin-bottom: 35px;

    color: #b8b8c7;

    line-height: 1.8;
}


/* ----------------------------------------------------------
   Contact form
---------------------------------------------------------- */

.contact-form {
    display: flex;
    flex-direction: column;

    gap: 22px;

    padding: 50px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.form-group label {
    color: #ffffff;

    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    box-sizing: border-box;

    width: 100%;

    padding: 14px 16px;

    background: rgba(9, 11, 28, 0.7);

    color: #ffffff;

    border: 1px solid rgba(124, 140, 255, 0.2);
    border-radius: 10px;

    font-family: inherit;
    font-size: 1rem;

    outline: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #70758d;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #7c8cff;

    box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.12);
}

.form-group textarea {
    min-height: 150px;

    resize: vertical;
}


/* ----------------------------------------------------------
   Form button and result message
---------------------------------------------------------- */

.contact-button {
    padding: 15px 26px;

    background: linear-gradient(
        135deg,
        #5865f2,
        #7c5cff
    );

    color: #ffffff;

    border: none;
    border-radius: 10px;

    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-3px);

    box-shadow: 0 12px 30px rgba(88, 101, 242, 0.35);
}

.contact-button:disabled {
    cursor: not-allowed;

    opacity: 0.65;

    transform: none;
}

.form-result {
    min-height: 24px;

    margin: 0;

    text-align: center;

    line-height: 1.5;
}

.form-result.success {
    color: #69db9c;
}

.form-result.error {
    color: #ff7c8b;
}





/* ==========================================================
   MOBILE CONTACT SECTION
========================================================== */

@media (max-width: 768px) {

    /* Contact page introduction */

    .contact {
        padding: 150px 20px 50px;
    }

    .contact-heading {
        margin-bottom: 40px;
    }

    .contact-heading h1 {
        font-size: 2.2rem;
    }

    .contact-introduction {
        font-size: 1rem;
    }


    /* Contact card */

    .contact-card {
        grid-template-columns: 1fr;

        max-width: 550px;
    }


    /* Contact information */

    .contact-information {
        padding: 40px 30px;
    }

    .contact-information h2 {
        font-size: 2rem;
    }


    /* Contact form */

    .contact-form {
        padding: 40px 30px;
    }

}



/* ==========================================================
   INDIVIDUAL GAME PAGES - SHARED STYLING
========================================================== */


/* Game page layout */

.game-detail-page {
    width: 100vw;
    min-height: 100vh;
    margin-left: calc(50% - 50vw);
    padding: 80px 24px 120px;
    box-sizing: border-box;
}

.game-detail-container {
    width: 96%;
    max-width: 1600px;
    margin: 0 auto;
}

.back-to-games {
    display: inline-block;
    margin-bottom: 25px;
    color: #a855f7;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-games:hover {
    color: #c084fc;
}

.game-detail-title {
    margin-bottom: 100px;
    color: white;
    font-size: 3.5rem;
    text-align: center;
}


/* Game information card */

.game-information-card {
    position: relative;
    min-height: 650px;
    padding: 60px;
    background-color: #15152b;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.game-detail-image {
    position: absolute;
    top: -70px;
    left: 60px;
    width: 270px;
    height: 340px;
    object-fit: cover;
    background-color: #23233f;
    border: 2px solid #a855f7;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.game-information-heading {
    min-height: 270px;
    margin-left: 330px;
    padding-top: 20px;
}

.game-detail-type {
    margin-bottom: 15px;
    color: #c084fc;
    font-size: 1.4rem;
    font-weight: 700;
}

.game-page-status {
    display: inline-block;
    padding: 8px 16px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: #7c3aed;
    border-radius: 50px;
}



/* Game description */

.game-description {
    max-width: 1100px;
    margin-top: 30px;
}

.game-description h2 {
    margin-bottom: 18px;
    color: white;
    font-size: 2rem;
}

.game-description p {
    margin-bottom: 22px;
    color: #c7c7d4;
    font-size: 1.1rem;
    line-height: 1.8;
}


/* Game features */

.game-features-title {
    margin-top: 45px;
}

.game-features-list {
    margin: 0;
    padding-left: 25px;
    color: #c7c7d4;
    font-size: 1.1rem;
    line-height: 1.9;
}

.game-features-list li {
    margin-bottom: 8px;
}

.game-features-list li::marker {
    color: #a855f7;
}


/* Game screenshots */

.game-screenshots {
    margin-top: 70px;
}

.game-screenshots h2 {
    margin-bottom: 25px;
    color: white;
    font-size: 2rem;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.screenshot-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid rgba(168, 85, 247, 0.45);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.screenshot-grid img:hover {
    border-color: #a855f7;
    box-shadow: 0 16px 35px rgba(124, 58, 237, 0.25);
    transform: translateY(-5px);
}


/* Screenshot enlarged viewer */

.screenshot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: rgba(3, 3, 15, 0.95);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.screenshot-lightbox.lightbox-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    display: block;
    max-width: 85vw;
    max-height: 85vh;
    border: 2px solid #a855f7;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    color: white;
    background: rgba(124, 58, 237, 0.75);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
    background-color: #a855f7;
}

.lightbox-close {
    top: 25px;
    right: 30px;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    border-radius: 50%;
}

.lightbox-arrow {
    top: 50%;
    width: 52px;
    height: 70px;
    font-size: 3rem;
    border-radius: 12px;
    transform: translateY(-50%);
}

.lightbox-previous {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}


/* Game footage */

.game-trailer {
    margin-top: 70px;
}

.game-trailer h2 {
    margin-bottom: 25px;
    color: white;
    font-size: 2rem;
}

.trailer-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(168, 85, 247, 0.45);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.trailer-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}



/* itch.io button */

.itch-button {
    display: inline-block;
    margin-left: 12px;
    padding: 9px 18px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, #fa5c5c, #c83e4d);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.itch-button:hover {
    background: linear-gradient(135deg, #ff7373, #e34d5b);
    box-shadow: 0 10px 25px rgba(250, 92, 92, 0.35);
    transform: translateY(-2px);
}

/* Educational game badge */

.educational-game-badge {
    display: inline-block;
    margin-left: 12px;
    padding: 8px 16px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, #22a447, #167535);
    border: 1px solid rgba(100, 255, 145, 0.4);
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}


/* ==========================================================
   SITE UNKNOWN GAME PAGE
========================================================== */


/* Steam button */

.steam-button {
    display: inline-block;
    margin-left: 12px;
    padding: 9px 18px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, #1b6ca8, #17476d);
    border: 1px solid rgba(102, 192, 244, 0.5);
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.steam-button:hover {
    background: linear-gradient(135deg, #258bd2, #1b5d8f);
    box-shadow: 0 10px 25px rgba(27, 108, 168, 0.35);
    transform: translateY(-2px);
}


/* ==========================================================
   MAMEPETTO GAME PAGE
========================================================== */


/* Cover image */

.mamepetto-detail-image {
    object-position: center top;
}


/* Screenshot layout */

.mamepetto-screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1000px;
    margin: 0 auto;
}



/* ==========================================================
   SORT IT OUT GAME PAGE
========================================================== */


/* Cover image */

.sort-it-out-detail-image {
    top: -95px;
    object-position: center top;
}












/* ==========================================================
   SHARED GAME PAGE RESPONSIVENESS
========================================================== */

@media (max-width: 900px) {

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

    .game-information-heading .game-page-status,
    .game-information-heading .educational-game-badge,
    .game-information-heading .steam-button,
    .game-information-heading .itch-button {
        display: block;
        width: max-content;
        margin-left: 0;
        margin-bottom: 10px;
    }

}

@media (max-width: 600px) {

    /* Mobile game page spacing */

    .game-detail-page {
        padding: 120px 16px 80px;
    }

    .game-detail-container {
        width: 100%;
    }

    .back-to-games {
        position: relative;
        z-index: 1;
        margin-bottom: 45px;
    }


    /* Mobile game title */

    .game-detail-title {
        margin-bottom: 140px;
        font-size: 2.5rem;
        line-height: 1.15;
    }


    /* Mobile information card */

    .game-information-card {
        min-height: auto;
        padding: 270px 24px 45px;
    }

    .game-detail-image,
    .mamepetto-detail-image,
    .sort-it-out-detail-image {
        top: -105px;
        left: 50%;
        width: min(270px, calc(100vw - 80px));
        height: auto;
        aspect-ratio: 27 / 34;
        object-fit: cover;
        object-position: center top;
        transform: translateX(-50%);
    }

    .game-information-heading {
        min-height: auto;
        margin: 0 0 55px;
        padding: 0;
        text-align: center;
    }

    .game-detail-type {
        margin-bottom: 18px;
        line-height: 1.3;
    }


    /* Mobile status and store buttons */

    .game-information-heading .game-page-status,
    .game-information-heading .educational-game-badge,
    .game-information-heading .steam-button,
    .game-information-heading .itch-button {
        display: block;
        width: max-content;
        max-width: 100%;
        margin: 0 auto 10px;
        text-align: center;
    }


    /* Mobile description */

    .game-description {
        max-width: 100%;
        margin-top: 0;
    }

    .game-description h2 {
        font-size: 1.8rem;
    }

    .game-description p,
    .game-features-list {
        font-size: 1rem;
    }


    /* Mobile screenshots */

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


    /* Mobile screenshot viewer */

    .screenshot-lightbox {
        padding: 70px 15px;
    }

    .lightbox-image {
        max-width: 92vw;
        max-height: 75vh;
    }

    .lightbox-previous {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

}



