:root {
    --bg: #041118;
    --surface: rgba(8, 24, 34, 0.78);
    --surface-border: rgba(137, 224, 255, 0.28);
    --text: #f4fbff;
    --muted: #b4c8d3;
    --accent: #00d4ff;
    --accent-2: #35f2a0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    color: var(--text);
    text-align: center;
    background-color: var(--bg);
    background-image:
        linear-gradient(145deg, rgba(2, 9, 14, 0.88), rgba(8, 26, 36, 0.55)),
        url("./98.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 24px;
}

.landing {
    width: min(820px, 100%);
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 22px;
    backdrop-filter: blur(4px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    padding: 42px 28px;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
}

h1 {
    margin: 14px 0 8px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    text-wrap: balance;
}

.subtitle {
    margin: 0 auto 28px;
    max-width: 54ch;
    color: var(--muted);
    font-size: 1rem;
}

.games-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

a {
    display: inline-block;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(120deg, rgba(0, 212, 255, 0.28), rgba(53, 242, 160, 0.18));
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

a:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 255, 0.65);
    box-shadow: 0 10px 24px rgba(0, 212, 255, 0.22);
}

a:focus-visible {
    outline: 3px solid var(--accent-2);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    body {
        padding: 16px;
        background-attachment: scroll;
    }

    .landing {
        padding: 30px 18px;
        border-radius: 18px;
    }

    .games-nav {
        grid-template-columns: 1fr;
    }
}

.game-board {
    display: grid;
    grid-template-columns: repeat(4, 100px);
    grid-gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.card {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border: 2px solid #333;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.card.flipped {
    background-color: #007BFF;
    color: #fff;
}