.oyunlar-page-section {
    width: 100%;
}

.oyunlar-page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.oyunlar-page-header__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(var(--primary), 0.1);
    border: 1px solid rgba(var(--primary), 0.22);
    color: var(--brand-red, #f59e0b);
    font-size: 22px;
    line-height: 1;
}

.oyunlar-page-header__text {
    min-width: 0;
}

.oyunlar-page-header__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-on-dark, #f1f5f9);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.oyunlar-page-header__desc {
    margin: 4px 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.45;
}

@media (max-width: 600px) {
    .oyunlar-page-header {
        gap: 12px;
        margin-bottom: 1.15rem;
        padding-bottom: 0.9rem;
    }

    .oyunlar-page-header__icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        border-radius: 10px;
    }

    .oyunlar-page-header__title {
        font-size: 1.2rem;
    }

    .oyunlar-page-header__desc {
        font-size: 0.8125rem;
    }
}

.oyunlar-page-grid {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    gap: 1rem;
}

/* Masaüstü: 2 sütun, daha büyük kartlar */
@media (min-width: 1025px) {
    .oyunlar-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .oyunlar-game-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        width: 100%;
        min-width: 0;
        max-width: none;
        height: auto;
        padding: 1rem;
        gap: 1rem;
        background: var(--surface-800, #111111);
        border: 1px solid var(--surface-700, #1c1c1c);
        border-radius: 12px;
        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;
    }

    .oyunlar-game-card:hover {
        background: var(--card-bg);
        border-color: var(--surface-600);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    .oyunlar-game-card__thumb {
        display: none;
    }

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

    .oyunlar-game-card__logo {
        position: relative;
        flex-shrink: 0;
        width: 130px;
        height: 170px;
        border-radius: 10px;
        overflow: hidden;
        background: var(--surface-900);
        border: 1px solid rgba(13, 60, 89, 0.6);
    }

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

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

    .oyunlar-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;
    }

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

    .oyunlar-game-card__logo::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.75);
        z-index: 3;
        width: 40px;
        height: 40px;
        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));
    }

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

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

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

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

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

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

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

    .oyunlar-game-card__coin {
        width: 14px;
        height: 14px;
        object-fit: contain;
        flex-shrink: 0;
    }

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

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

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

/* Mobil Tasarım: Ana sayfadaki gibi ama belki daha büyük veya aynısı */
@media (max-width: 1024px) {
    .oyunlar-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .oyunlar-game-card {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 85 / 112;
        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, border-color 0.2s ease, box-shadow 0.2s ease;
        cursor: pointer;
    }

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

    .oyunlar-game-card__panel {
        display: none;
    }

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

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

    .oyunlar-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%);
    }

    .oyunlar-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;
    }

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

    .oyunlar-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;
    }

    .oyunlar-game-card-overlay i {
        font-size: 24px;
        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));
    }

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

    .oyunlar-game-card:hover .oyunlar-game-card-overlay i {
        opacity: 1;
        transform: scale(1);
    }
}
/*  ===== oyun_ref katmanı (eski oyun_ref.css) buraya katlandı =====  */
.game-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.game-head__left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.game-head__back {
    flex: none;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .game-head__back:hover {
        color: #fff;
        background: rgba(var(--primary), 0.12);
        border-color: rgba(var(--primary), 0.35);
    }
}

.game-head__title {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.game-head__stats {
    display: flex;
    gap: 6px;
    flex: none;
}

.game-head__stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 1px;
    height: 40px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.game-head__stat span {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.2;
}

.game-head__stat b {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.25;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .game-head {
        padding: 10px 12px;
    }

    .game-head__stat {
        padding: 5px 9px;
    }

    .game-head__stat b {
        font-size: 11px;
    }
}

@media (max-width: 520px) {
    .game-head {
        flex-wrap: wrap;
    }

    .game-head__stats {
        width: 100%;
    }

    .game-head__stat {
        flex: 1;
        align-items: flex-start;
    }
}
.oyunlar-page-section .oyunlar-page-header {
    display: none;
}

.oyunlar-page-section .oyunlar-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
    gap: 10px;
    padding: 0;
}

.oyunlar-page-section .oyunlar-game-card {
    display: flex;
    flex-direction: column;
    width: auto;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgb(var(--surface-rgb, 17, 35, 74));
    box-shadow: none;
    transition: transform 0.25s ease, border-color 0.2s ease;
}

.oyunlar-page-section .oyunlar-game-card__thumb {
    display: block;
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
}

.oyunlar-page-section .oyunlar-game-card-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.oyunlar-page-section .oyunlar-game-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oyunlar-page-section .oyunlar-game-card-overlay {
    display: none;
}

.oyunlar-page-section .oyunlar-game-card__panel {
    display: block;
    padding: 7px 8px 8px;
}

.oyunlar-page-section .oyunlar-game-card__logo,
.oyunlar-page-section .oyunlar-game-card__bets,
.oyunlar-page-section .oyunlar-game-card__btn {
    display: none;
}

.oyunlar-page-section .oyunlar-game-card__body {
    display: block;
    padding: 0;
}

.oyunlar-page-section .oyunlar-game-card__title {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.85);
}

@media (hover: hover) and (pointer: fine) {
    .oyunlar-page-section .oyunlar-game-card:hover {
        transform: translateY(-3px);
        border-color: rgba(var(--primary), 0.4);
    }
}

@media (max-width: 600px) {
    .oyunlar-page-section .oyunlar-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
        gap: 8px;
    }
}

.game-loader {
    position: absolute;
    left: 0;
    right: 0;
    top: 65px;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(var(--surface-rgb, 17, 35, 74));
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.game-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.game-loader__box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: min(260px, 80%);
}

.game-loader__logo {
    position: absolute;
    top: 8px;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.game-loader__ring {
    width: 80px;
    height: 80px;
    margin-top: 0;
    border: 3px solid rgba(var(--primary), 0.14);
    border-top-color: rgb(var(--primary));
    border-radius: 50%;
    animation: game-loader-spin 0.9s linear infinite;
}

.game-loader__text {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: rgb(var(--primary-text, var(--primary)));
}

.game-loader__bar {
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
}

.game-loader__bar i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background: rgb(var(--primary));
    transform-origin: left center;
    animation: game-loader-fill 1.8s ease-out forwards;
}

@keyframes game-loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes game-loader-fill {
    from { transform: scaleX(0.04); }
    to { transform: scaleX(1); }
}

@media (max-width: 992px) {
    .game-loader {
        top: 54px;
    }
}

@media (max-width: 520px) {
    .game-loader {
        top: 112px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-loader__ring,
    .game-loader__bar i {
        animation-duration: 3s;
    }
}
.game-coin-ico {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: none;
}