
/* Viendo Wheels v3.6 - الصفحة الرئيسية */

.home-games {
    width: 100%;
}

.home-game-grid {
    align-items: stretch;
}

.home-game-card {
    justify-content: center;
    text-align: center;
    isolation: isolate;
}

.home-game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 15%, rgba(255,255,255,.08), transparent 42%),
        linear-gradient(180deg, transparent, rgba(0,0,0,.16));
    pointer-events: none;
    z-index: -1;
}

.home-game-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-game-card h2 {
    margin: 0 0 12px;
    text-align: center;
    line-height: 1.35;
}

.home-game-card p {
    margin: 0 0 24px;
    text-align: center;
    line-height: 1.8;
}

.home-game-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    padding: 14px 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: linear-gradient(135deg, #f2b84b, #ff7a38);
    color: #261407;
    font-size: 1rem;
    font-weight: 800;
    box-shadow:
        0 10px 26px rgba(242,184,75,.23),
        inset 0 1px 0 rgba(255,255,255,.45);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
    animation: viendoButtonPulse 2.6s ease-in-out infinite;
}

.home-game-button::after {
    content: "";
    position: absolute;
    top: -50%;
    bottom: -50%;
    left: -45%;
    width: 28%;
    transform: skewX(-22deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.5),
        transparent
    );
    animation: viendoButtonShine 3.4s ease-in-out infinite;
}

.home-game-card:hover .home-game-button {
    transform: translateY(-2px) scale(1.025);
    box-shadow:
        0 14px 34px rgba(242,184,75,.35),
        inset 0 1px 0 rgba(255,255,255,.55);
}

@keyframes viendoButtonShine {
    0%, 58% {
        left: -45%;
        opacity: 0;
    }
    66% {
        opacity: .75;
    }
    86%, 100% {
        left: 120%;
        opacity: 0;
    }
}

@keyframes viendoButtonPulse {
    0%, 100% {
        filter: brightness(1);
        box-shadow:
            0 10px 26px rgba(242,184,75,.23),
            0 0 0 0 rgba(242,184,75,.17);
    }
    50% {
        filter: brightness(1.06);
        box-shadow:
            0 12px 30px rgba(242,184,75,.3),
            0 0 0 7px rgba(242,184,75,0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-game-button,
    .home-game-button::after {
        animation: none;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding-top: 10px;
        padding-bottom: 8px;
    }

    .site-header .logo-placeholder {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .page-shell {
        padding-top: 4px;
        padding-bottom: 12px;
    }

    .home-games {
        margin-top: 0;
    }

    .home-game-grid {
        gap: 12px;
    }

    .home-game-card {
        min-height: 0;
        height: calc((100svh - 116px) / 2);
        max-height: 290px;
        padding: 20px 16px;
        border-radius: 24px;
    }

    .home-game-card h2 {
        font-size: clamp(22px, 6.6vw, 29px);
        margin-bottom: 8px;
    }

    .home-game-card p {
        max-width: 290px;
        margin-bottom: 15px;
        font-size: 13px;
        line-height: 1.6;
    }

    .home-game-button {
        min-width: 164px;
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media (max-width: 560px) and (max-height: 700px) {
    .site-header {
        padding-top: 6px;
        padding-bottom: 5px;
    }

    .site-header .brand small {
        display: none;
    }

    .page-shell {
        padding-top: 0;
    }

    .home-game-grid {
        gap: 9px;
    }

    .home-game-card {
        height: calc((100svh - 88px) / 2);
        padding: 13px;
    }

    .home-game-card h2 {
        font-size: 21px;
        margin-bottom: 5px;
    }

    .home-game-card p {
        margin-bottom: 9px;
        line-height: 1.45;
    }

    .home-game-button {
        padding: 10px 22px;
    }
}
