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

body {
    font-family: system-ui, sans-serif;
    background: linear-gradient(135deg, #334cbd, #764ba2);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #fff;
}

.wrap {
    max-width: 900px;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: .5rem;
}

.glow {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.games {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.card,
.info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card {
    background-size: cover;
    background-position: center;
    padding: 2rem;
    text-decoration: none;
    color: #fff;
    transition: transform .4s, box-shadow .4s;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.8),
        rgba(0, 0, 0, 0.3) 50%,
        transparent
    );
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.card-content {
    position: relative;
    z-index: 1;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.card p {
    font-size: 1rem;
}

.info-section {
    margin: 4rem 0 2rem;
}

.info-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.info-header h2 {
    font-size: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-card {
    padding: 1.5rem;
    transition: transform .3s, background .3s;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: .8rem;
    color: #ffd700;
}

.info-card p {
    font-size: .95rem;
    line-height: 1.6;
}

.controls {
    text-align: center;
}

.old-link {
    color: #fff;
    text-decoration: none;
    padding: .8rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    transition: background .3s;
}

.old-link:hover {
    background: rgba(255, 255, 255, 0.25);
}


/* --- MOBILANPASSNING (AI-genererad kod) --- */

/* För surfplattor och mindre skärmar (under 900px) */
@media screen and (max-width: 900px) {
    body {
        padding: 1rem; /* Minska padding på sidorna så mer får plats */
    }

    .games {
        grid-template-columns: repeat(2, 1fr); /* Gå från 3 till 2 kolumner */
        gap: 1rem;
    }
}

/* För mobiler (under 600px) */
@media screen and (max-width: 600px) {
    h1 {
        font-size: 1.8rem; /* Gör rubriken lite mindre */
    }

    .hero {
        margin-bottom: 2rem;
    }

    .games {
        grid-template-columns: 1fr; /* Stapla alla spelkort på hög */
    }

    .card {
        min-height: 200px; /* Ge korten lite höjd när de är ensamma */
    }

    .info-grid {
        grid-template-columns: 1fr; /* Stapla alla info-kort på hög */
    }

    .info-section {
        margin: 2rem 0;
    }

    .old-link {
        display: inline-block;
        width: 100%; /* Gör knappen längst ner lättare att klicka på mobilen */
    }
}