.games-section {
    padding: 1rem 0;
}

.games-section .games-grid {
    display: grid;
    width: 100%;
    box-sizing: border-box;
}

/* Masaüstü: 4 sütun */
@media (min-width: 1025px) {
    .games-section .games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .games-section .game-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        width: 100%;
        min-width: 0;
        max-width: none;
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 0.65rem;
        gap: 0.65rem;
        background: var(--surface-800, #111111);
        border: 1px solid var(--surface-700, #1c1c1c);
        border-radius: 10px;
        overflow: hidden;
        box-sizing: border-box;
        text-decoration: none;
        color: inherit;
        transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        cursor: pointer;
    }

    .games-section .game-card:hover {
        background: var(--card-bg);
        border-color: var(--surface-600);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    }

    .games-section .game-card__thumb {
        display: none;
    }

    .games-section .game-card__panel {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        flex: 1;
        min-width: 0;
        gap: 0.65rem;
    }

    .games-section .game-card__logo {
        position: relative;
        flex-shrink: 0;
        width: 85px;
        height: 112px;
        border-radius: 8px;
        overflow: hidden;
        background: var(--surface-900);
        border: 1px solid rgba(13, 60, 89, 0.6);
    }

    .games-section .game-card__logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease, filter 0.25s ease;
    }

    .games-section .game-card:hover .game-card__logo img {
        transform: scale(1.06);
        filter: brightness(0.82);
    }

    .games-section .game-card__logo::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 2;
        background-color: rgba(5, 5, 5, 0.45);
        opacity: 0;
        transition: opacity 0.22s ease;
        pointer-events: none;
    }

    .games-section .game-card:hover .game-card__logo::after {
        opacity: 1;
    }

    .games-section .game-card__logo::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.75);
        z-index: 3;
        width: 30px;
        height: 30px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Ccircle cx='128' cy='128' r='96' fill='rgba(0,0,0,0.45)'/%3E%3Cpolygon points='112,96 160,128 112,160' fill='white'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0;
        transition: opacity 0.22s ease, transform 0.22s ease;
        pointer-events: none;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
    }

    .games-section .game-card:hover .game-card__logo::before {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    .games-section .game-card__body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        gap: 0.5rem;
        padding-top: 0.1rem;
    }

    .games-section .game-card__title {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 800;
        color: var(--text-on-dark, #f1f5f9);
        text-align: start;
        line-height: 1.2;
        letter-spacing: -0.01em;
    }

    .games-section .game-card__bets {
        display: flex;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }

    .games-section .game-card__bet {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: flex-start;
        gap: 0.2rem;
        text-align: start;
    }

    .games-section .game-card__bet-label {
        font-size: 0.55rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-gray);
        line-height: 1.2;
    }

    .games-section .game-card__bet-value {
        font-size: 0.62rem;
        font-weight: 700;
        color: var(--brand-red, #f59e0b);
        line-height: 1.25;
        word-break: break-word;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }

    .games-section .game-card__coin {
        width: 12px;
        height: 12px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .games-section .game-card__bet-divider {
        width: 1px;
        flex-shrink: 0;
        align-self: stretch;
        background: rgba(103, 118, 128, 0.45);
        margin: 0 0.35rem;
    }

    .games-section .game-card__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 32px;
        padding: 0.45rem 0.5rem;
        border-radius: 6px;
        background: var(--brand-red, #f59e0b);
        color: var(--text-light);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.02em;
        line-height: 1.2;
        box-sizing: border-box;
        transition: background 0.2s ease;
    }

    .games-section .game-card:hover .game-card__btn {
        background: var(--brand-red-hover, #fbbf24);
    }
}

/* Mobil: küçük görsel kart */
@media (max-width: 1024px) {
    .games-section .games-grid {
        grid-template-columns: repeat(4, 85px);
        justify-content: space-between;
        gap: 0.35rem;
    }

    .games-section .game-card {
        display: block;
        width: 85px;
        height: 112px;
        min-width: 85px;
        min-height: 112px;
        max-width: 85px;
        max-height: 112px;
        background: var(--surface-800);
        border: 1px solid var(--surface-700);
        border-radius: 8px;
        padding: 0;
        overflow: hidden;
        box-sizing: border-box;
        text-decoration: none;
        color: inherit;
        transition: background 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        cursor: pointer;
    }

    .games-section .game-card:hover {
        background: var(--card-bg);
        border-color: var(--surface-600);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

    .games-section .game-card__panel {
        display: none;
    }

    .games-section .game-card__thumb {
        display: block;
        width: 100%;
        height: 100%;
    }

    .games-section .game-card-img-wrap {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background: var(--surface-900);
    }

    .games-section .game-card-img-wrap::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        pointer-events: none;
        background:
            radial-gradient(ellipse 75% 55% at 0% 0%, rgba(0, 0, 0, 0.4) 0%, transparent 58%),
            radial-gradient(ellipse 75% 55% at 100% 0%, rgba(0, 0, 0, 0.4) 0%, transparent 58%),
            radial-gradient(ellipse 65% 45% at 0% 100%, rgba(0, 0, 0, 0.28) 0%, transparent 52%),
            radial-gradient(ellipse 65% 45% at 100% 100%, rgba(0, 0, 0, 0.28) 0%, transparent 52%),
            linear-gradient(to top, rgba(7, 36, 54, 0.9) 0%, rgba(7, 36, 54, 0.25) 38%, transparent 72%);
    }

    .games-section .game-card-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
        z-index: 0;
        transform: scale(1);
        transform-origin: center center;
        transition: transform 0.35s ease, filter 0.25s ease;
    }

    .games-section .game-card:hover .game-card-img {
        transform: scale(1.05);
        filter: brightness(0.92);
    }

    .games-section .game-card-overlay {
        position: absolute;
        inset: 0;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        pointer-events: none;
        background-color: rgba(5, 5, 5, 0.4);
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .games-section .game-card-overlay i {
        font-size: 14px;
        color: var(--text-light);
        line-height: 1;
        opacity: 0;
        transform: scale(0.9);
        transition: opacity 0.2s ease, transform 0.2s ease;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    }

    .games-section .game-card:hover .game-card-overlay {
        opacity: 1;
    }

    .games-section .game-card:hover .game-card-overlay i {
        opacity: 1;
        transform: scale(1);
    }
}
