/* ------------------------------------------------ */
/* home page grid */
/* ------------------------------------------------ */

.game-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    width: 80%;
    margin: 30px auto;
}

/* game cards */
.game-box {
    background: var(--surface-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--surface-text);
    border: 1px solid var(--border-color);
    border-radius: 0;
    transition: 0.2s;
    padding: 15px;
    box-sizing: border-box;
}

/* game title */
.game-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--surface-text);
}

/* game description */
.game-desc {
    font-size: 14px;
    line-height: 1.4;
    color: var(--surface-text);
}

/* square cards */
.square {
    grid-column: span 2;
    height: 120px;
}

/* wide cards */
.half-rect {
    grid-column: span 3;
    height: 120px;
}

/* hover effect */
.game-box:hover {
    filter: brightness(0.92);
    transform: scale(1.03);
}

.references-button {
    display: block;
    width: 220px;
    margin: 25px auto;
    padding: 12px 20px;
    background: var(--surface-bg);
    color: var(--surface-text);
    border: 1px solid var(--border-color);
    text-decoration: none;
    text-align: center;
}

.references-button:hover {
    filter: brightness(0.92);
}

/* ------------------------------------------------ */
/* mobile layout */
/* ------------------------------------------------ */

@media (max-width: 600px) {
    .game-grid {
        grid-template-columns: 1fr;
    }

    .square,
    .half-rect {
        grid-column: span 1;
    }
}