.page {
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
    padding: 1.5rem 1rem;
}

.heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 900px;
}

/* ── Card ─────────────────────────────────────── */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.imgWrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .img {
    transform: scale(1.06);
}

.imgOverlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42, 42, 42, 0.85) 0%, transparent 60%);
}

.body {
    padding: 1.1rem;
}

.title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.desc {
    font-size: 0.875rem;
    color: rgba(245, 240, 238, 0.55);
    margin-bottom: 1rem;
}

.actions {
    display: flex;
    gap: 0.75rem;
}

.rulesBtn,
.playBtn {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition);
    cursor: pointer;
}

.rulesBtn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--secondary);
}

.rulesBtn:hover {
    background: var(--accent);
    border-color: var(--secondary);
}

.playBtn {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: var(--secondary);
}

.playBtn:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-sm);
}