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

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    font-family: 'Barlow', sans-serif;
}

body {
    background: linear-gradient(135deg, #135B3C 0%, #022D1A 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

/* Rainbow on the left */
.rainbow {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: auto;
    z-index: 1;
    pointer-events: none;
    object-fit: cover;
    object-position: right center;
}

/* Main content */
.content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 90vw;
    padding: 2vh 0;
}

/* Logo */
.logo {
    width: clamp(100px, 12vw, 200px);
    height: auto;
    margin-bottom: clamp(20px, 4vh, 50px);
}

/* Title */
.title {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 4vw, 64px);
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    margin-bottom: clamp(10px, 2vh, 24px);
}

/* Subtitle */
.subtitle {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: clamp(12px, 1.5vw, 22px);
    line-height: 120%;
    margin-bottom: clamp(10px, 2vh, 20px);
    opacity: 0.9;
}

/* Description */
.description {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: clamp(12px, 1.5vw, 22px);
    line-height: 140%;
    max-width: 600px;
    margin-bottom: clamp(6px, 1vh, 12px);
    opacity: 0.85;
}

/* CTA */
.cta {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: clamp(14px, 1.8vw, 26px);
    line-height: 120%;
    margin-bottom: clamp(24px, 5vh, 60px);
}

/* Game cards container */
.games {
    display: flex;
    gap: clamp(10px, 2vw, 30px);
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
}

/* Single game card wrapper */
a.game-item {
    text-decoration: none;
    color: inherit;
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(6px, 1vh, 12px);
}

/* Card slot */
.game-card {
    width: clamp(80px, 12vw, 170px);
    aspect-ratio: 1 / 1;
    background: transparent;
    border-radius: clamp(10px, 1.5vw, 22px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.game-card:hover,
.game-card:active {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Game caption */
.game-caption {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: clamp(10px, 1.2vw, 18px);
    line-height: 120%;
    text-align: center;
    color: #fff;
}

/* Tablet / iPad (portrait & landscape) */
@media (max-width: 1024px) {
    body {
        align-items: flex-start;
    }

    .content {
        min-height: 100vh;
        padding: 4vh 0;
    }

    .logo {
        width: clamp(160px, 25vw, 280px);
    }

    .title {
        font-size: clamp(28px, 5vw, 52px);
    }

    .subtitle {
        font-size: clamp(14px, 2.5vw, 20px);
    }

    .description {
        font-size: clamp(14px, 2.5vw, 20px);
        max-width: 80vw;
    }

    .cta {
        font-size: clamp(16px, 3vw, 24px);
    }

    .games {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .game-card {
        width: clamp(200px, 40vw, 320px);
    }

    .game-caption {
        font-size: clamp(16px, 3vw, 24px);
    }
}

/* Small screens / phone */
@media (max-width: 600px) {
    body {
        align-items: flex-start;
    }

    .content {
        min-height: 100vh;
        padding: 4vh 0;
    }

    .logo {
        width: clamp(160px, 45vw, 240px);
    }

    .title {
        font-size: clamp(24px, 7vw, 40px);
    }

    .subtitle {
        font-size: clamp(12px, 3.5vw, 18px);
        margin-bottom: 10px;
    }

    .description {
        font-size: clamp(12px, 3.5vw, 18px);
        max-width: 85vw;
    }

    .cta {
        font-size: clamp(14px, 4vw, 20px);
        margin-bottom: 20px;
    }

    .games {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .game-card {
        width: clamp(200px, 70vw, 320px);
    }

    .game-caption {
        font-size: clamp(16px, 5vw, 24px);
    }
}
