@font-face {
    font-family: 'ZenDots';
    src: url('./fonts/ZenDots-Regular.woff2') format('woff2'),
         url('./fonts/ZenDots-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Chicago';
    src: url('./fonts/Chicago-Regular.woff2') format('woff2'),
         url('./fonts/Chicago-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bungee';
    src: url('./fonts/Bungee-Regular.woff2') format('woff2'),
         url('./fonts/Bungee-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

html {
    background-color: #0a0a1a;
}

html, body {
    min-height: 100vh;
    font-family: 'ZenDots', sans-serif;
    color: #ffffff;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/background_desktop.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Top Section ── */
.top-section {
    text-align: center;
    padding: 10px 0 40px;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.logo {
    height: 140px;
    width: auto;
}

.title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: normal;
}

.studio-description {
    font-size: 16px;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.7);
}

/* ── Bottom Section ── */
.bottom-section {
    padding: 40px 0 60px;
}

.games-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
}

.game-column {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 24px;
    justify-items: center;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.game-column:hover,
.game-column:focus-visible {
    opacity: 1;
}

.game-column:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 8px;
    border-radius: 4px;
}

.store-badges a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
    border-radius: 4px;
}

.footer a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

.game-title {
    font-family: 'Chicago', sans-serif;
    font-size: 38px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    align-self: start;
}

.game-logo {
    width: 160px;
    height: auto;
}

.game-description {
    font-family: 'Chicago', sans-serif;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 460px;
}

.hextrategic .game-title {
    letter-spacing: 5px;
}

.hextrategic .game-description {
    font-size: 18px;
    line-height: 1.7;
    letter-spacing: 1.2px;
    font-weight: 100;
}

.tension-tunnel .game-title,
.tension-tunnel .game-description {
    font-family: 'Bungee', sans-serif;
}

.tension-tunnel .game-title {
    letter-spacing: 0px;
    font-weight: bold;
    font-size: 42px;
}

.tension-tunnel .game-description {
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: 0px;
}

.store-badges {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;

}

.store-badges a img {
    height: 44px;
    width: auto;
}

/* ── Footer ── */
.footer {
    text-align: center;
    padding: 70px 20px 20px 20px;
    font-size: 12px;
    opacity: 0.6;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer p {
    margin-top: 8px;
}

/* ── Responsive: Tablet ── */
@media (max-width: 1024px) {
    .title {
        font-size: 40px;
    }

    .game-logo {
        width: 140px;
    }

    .games-row {
        gap: 24px;
    }

    .game-column {
        opacity: 1;
    }
}

/* ── Responsive: Mobile ── */
@media (max-width: 768px) {
    body::before {
        background-image: url('./img/background_mobile.jpg');
    }

    .top-section {
        padding: 40px 0 32px;
    }

    .header-row {
        flex-direction: column;
        margin-top: 0px;
        gap: 8px;
    }

    .logo {
        height: 130px;
    }

    .title {
        font-size: 32px;
    }

    .studio-description {
        font-size: 16px;
    }

    .games-row {
        grid-template-columns: 1fr;
        row-gap: 48px;
    }

    .game-column {
        grid-row: span 1;
        grid-template-rows: none;
    }

    .game-logo {
        width: 140px;
    }

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

    .store-badges a img {
        height: 38px;
    }
}
