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

hr {
    width: 100%;
    height: 1px;
    background: #41AB9C;
    background: linear-gradient(90deg, rgba(65, 171, 156, 0) 0%, rgba(65, 171, 156, 0.25) 50%, rgba(65, 171, 156, 0) 100%);
    margin: 100px 0;
    border: none;
}

h1 {
    font-size: 48px;
    font-family: "Teko", sans-serif;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(180deg, #5ec5a2 0%, #239097 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 10px;
    font-family: "Outfit", sans-serif;
    font-weight: 300;
    text-align: center;
    color: #41AB9C;
    letter-spacing: 72%;
    text-transform: uppercase;
}

h3 {
    font-size: 29px;
    font-family: "Teko", sans-serif;
    font-weight: 700;
    text-align: center;
    color: #41AB9C;
}

p {
    font-size: 16px;
    font-family: "Outfit", sans-serif;
    font-weight: 400;
    text-align: center;
    color: #5A7A74;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.5;
}

body {
    background-color: #181a1b;
}

header {
    background: #1A2628;
    background: radial-gradient(ellipse 100% 50vh, #1a2628 0%, #181a1b 100%);
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#header_content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#header_content img {
    width: 410px;
    max-width: 80%;
    margin-bottom: 60px;
}

header p {
    font-size: 16px;
    font-family: "Outfit", sans-serif;
    font-weight: 400;
    text-align: center;
    color: #5A7A74;
}

#header_buttons {
    display: flex;
    gap: 25px;
    margin-top: 60px;
    width: 100%;
    justify-content: center;
}

button {
    font-size: 10px;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    text-align: center;
    letter-spacing: 20%;
    text-transform: uppercase;
    color: #fff;
    padding: 13px 35px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.button_main {
    background: #239097;
    background: linear-gradient(-74deg, #239097 0%, #5ec5a2 100%);
}

.button_second {
    background-color: #181A1B;
    border: 1px solid #2C9899;
}

#our_games {
    width: 100%;
    max-width: 1206px;
    margin: 0 auto;
    padding: 0 20px;
}

.cards_container {
    display: flex;
    gap: 30px;
    justify-content: safe center;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px 20px;
    scrollbar-width: thin;
    scrollbar-color: #41AB9C #1A2628;
}

.card {
    width: 340px;
    flex: 0 0 auto;
    height: auto;
    scroll-snap-align: center;
}

.card img {
    width: 100%;
    aspect-ratio: 748 / 896;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: opacity 0.2s;
}

.card img:hover {
    opacity: 0.85;
}

.card h3 {
    margin-top: 10px;
}

.card a {
    text-decoration: none;
}

.card.WIP {
    position: relative;
}

/* "In Development" badge pill */
.card.WIP::before {
    content: "In Development";
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-family: "Outfit", sans-serif;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #5ec5a2;
    background: rgba(24, 26, 27, 0.88);
    border: 1px solid rgba(65, 171, 156, 0.35);
    border-radius: 20px;
    padding: 5px 14px 5px 24px;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

/* Spinning loader — sits inside the badge's left padding */
.card.WIP::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 3;
    width: 8px;
    height: 8px;
    margin: 0;
    border: 1.5px solid transparent;
    border-color: #41AB9C #41AB9C #41AB9C transparent;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    pointer-events: none;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ── MODAL ────────────────────────────────────────────────────────────────── */

.modal_overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal_overlay.open {
    display: flex;
}

.modal {
    background: #1e2324;
    border: 1px solid #242a2b;
    border-radius: 12px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    /* Subtle teal glow matching the header radial */
    box-shadow: 0 0 0 1px #242a2b, 0 32px 80px rgba(0, 0, 0, 0.7);
}



/* Close button */
.modal_close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 10;
    background: none;
    border: none;
    color: #5A7A74;
    font-size: 18px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    font-family: "Outfit", sans-serif;
    letter-spacing: 0;
    text-transform: none;
    transition: color 0.2s;
}

.modal_close:hover {
    color: #c0d8d4;
}

/* Screenshot area */
.modal_screenshots {
    position: relative;
    background: #111314;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

#modal_img {
    width: 100%;
    height: 360px;
    object-fit: contain;
    display: block;
    background: #111314;
}

/* Arrow buttons */
.modal_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid #242a2b;
    color: #c0d8d4;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: "Outfit", sans-serif;
    letter-spacing: 0;
    text-transform: none;
    padding: 0;
    transition: background 0.2s;
}

.modal_arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal_prev {
    left: 14px;
}

.modal_next {
    right: 14px;
}

/* Screenshot counter */
.modal_counter {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-family: "Outfit", sans-serif;
    font-size: 9px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.25);
}

/* ── Info section — two columns ── */
.modal_info {
    display: grid;
    grid-template-columns: 1fr 210px;
}

/* Left column */
.modal_info_left {
    padding: 26px 30px 34px;
    border-right: 1px solid #242a2b;
}

/* Badges */
.modal_badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.modal_badge {
    font-family: "Outfit", sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #5A7A74;
    border: 1px solid #242a2b;
    padding: 3px 10px;
    border-radius: 20px;
}

.modal_badge_released {
    color: #41AB9C;
    border-color: rgba(65, 171, 156, 0.35);
}

.modal_badge_wip {
    color: #5ec5a2;
    border-color: rgba(94, 197, 162, 0.35);
}

/* Year label — override global h2 centre-align inside the modal */
.modal_info_left h2 {
    text-align: left;
    margin-bottom: 8px;
}

/* Game title — uses Teko like h1 but left-aligned with gradient */
.modal_title {
    font-family: "Teko", sans-serif;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 0.95;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #5ec5a2 0%, #239097 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal_divider {
    display: none;
}

/* Description — override global p */
.modal_description {
    font-family: "Outfit", sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #5A7A74;
    text-align: left;
    max-width: none;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    width: 100%;
}

/* Right column */
.modal_info_right {
    padding: 26px 0 28px;
}

.modal_platforms_label {
    font-family: "Outfit", sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #2e4a46;
    text-align: left;
    max-width: none;
    margin: 0 0 10px 0;
    padding: 0 16px;
    width: auto;
}

/* Platform rows */
.modal_platforms {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px;
}

.modal_platform_row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s;
}

.modal_platform_row:hover {
    background: #181a1b;
    border-color: #2C9899;
}

.platform_icon_wrap {
    display: flex;
    align-items: center;
    color: #5A7A74;
    flex-shrink: 0;
    transition: color 0.18s;
}

.modal_platform_row:hover .platform_icon_wrap {
    color: #41AB9C;
}

.platform_label {
    font-family: "Outfit", sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5A7A74;
    flex: 1;
    transition: color 0.18s;
}

.modal_platform_row:hover .platform_label {
    color: #c0d8d4;
}

.platform_arrow {
    font-size: 12px;
    color: #2e4a46;
    transition: color 0.18s, transform 0.18s;
    display: inline-block;
}

.modal_platform_row:hover .platform_arrow {
    color: #41AB9C;
    transform: translateX(2px);
}

/* ── Tablet and below ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    header {
        height: auto;
        padding: 100px 20px;
    }

    #header_content img {
        max-width: 90%;
    }

    #header_buttons {
        flex-direction: column;
        align-items: center;
    }

    hr {
        margin: 60px 0;
    }

    /* Modal goes single column on tablet */
    .modal_info {
        grid-template-columns: 1fr;
    }

    .modal_info_left {
        border-right: none;
        border-bottom: 1px solid #242a2b;
        padding-bottom: 24px;
    }

    .modal_info_right {
        padding: 20px 0 24px;
    }

    #modal_img {
        height: 260px;
    }
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    #header_content img {
        width: 280px;
    }

    header {
        background: radial-gradient(ellipse 100% 28vh, #1a2628 0%, #181a1b 100%);
    }

    .card {
        width: 240px;
        height: auto;
    }

    button:not(.modal_close):not(.modal_arrow) {
        width: 100%;
        max-width: 280px;
    }

    .modal_overlay {
        padding: 16px;
        align-items: center;
    }

    .modal {
        max-height: 90vh;
        border-radius: 12px;
    }

    .modal_title {
        font-size: 34px;
    }

    #modal_img {
        height: 220px;
    }
}

/* ── CONTACT CTA ──────────────────────────────────────────────────────────── */
#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 100px;
}

.cta_button {
    text-decoration: none;
    display: inline-block;
    font-size: 10px;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    padding: 13px 35px;
    border-radius: 3px;
    background: linear-gradient(-74deg, #239097 0%, #5ec5a2 100%);
    margin-top: 30px;
}

.email_at {
    font-size: 14px;
    font-weight: 600;
}