/* ============================================
   GIOCHI LANDING CARD (Dashboard Gray Style)
   ============================================ */

.dash-game-card {
    display: flex;
    border-radius: 12px;
    background: var(--color-surface-container-low);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid var(--color-outline-variant);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.dash-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(47, 52, 46, 0.08);
    background: var(--color-background);
}

.dash-primary-game {
    grid-template-columns: 1fr 1fr;
    display: grid;
    min-height: 280px;
}

.dash-game-card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.dash-category-tag {
    font-family: var(--font-label);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.dash-headline-lg {
    font-family: var(--font-headline);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-on-background);
}

.dash-body-md {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-on-surface-variant);
}

.dash-btn-giochi {
    display: inline-block;
    font-family: var(--font-label);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background-color: var(--color-on-surface);
    color: var(--color-background);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    margin-top: 2rem;
    align-self: flex-start;
}

.dash-game-card:hover .dash-btn-giochi {
    background-color: var(--color-primary);
    transform: scale(1.02);
}

.dash-game-card-visual {
    background-color: var(--color-surface-container-highest);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dash-cruciverba-preview {
    width: 200px;
    height: 160px;
    transform: rotate(5deg);
    transition: transform 0.5s ease;
}

.dash-game-card:hover .dash-cruciverba-preview {
    transform: rotate(0deg) scale(1.05);
}

.dash-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
    background-color: var(--color-outline);
    padding: 3px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(47, 52, 46, 0.1);
}

.dash-preview-grid .c {
    background: #fff;
    aspect-ratio: 1;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-label);
    font-weight: 700;
    color: var(--color-on-background);
    font-size: 1rem;
}

.dash-preview-grid .c.black {
    background: var(--color-on-background);
}

@keyframes dashTypeLetter {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.dash-preview-grid .c.txt {
    animation: dashTypeLetter 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

.dash-preview-grid .c.txt:nth-child(2) { animation-delay: 0.1s; }
.dash-preview-grid .c.txt:nth-child(3) { animation-delay: 0.2s; }
.dash-preview-grid .c.txt:nth-child(4) { animation-delay: 0.3s; }
.dash-preview-grid .c.txt:nth-child(5) { animation-delay: 0.4s; }
.dash-preview-grid .c.txt:nth-child(6) { animation-delay: 0.5s; }
.dash-preview-grid .c.txt:nth-child(8) { animation-delay: 0.6s; }
.dash-preview-grid .c.txt:nth-child(10) { animation-delay: 0.7s; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .dash-primary-game {
        grid-template-columns: 1fr;
    }
    .dash-game-card-visual {
        min-height: 250px;
        order: -1;
    }
}
