/* Shared game tile styles (homepage + games library) */

.game-tile {
    flex: 0 0 auto;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.game-tile:hover {
    transform: translateY(-6px);
}

.game-tile--slot,
.game-tile--original,
.game-tile--live,
.game-tile--mini {
    width: 132px;
}

.game-tile__cover {
    position: relative;
    width: 132px;
    height: 176px;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-tile__cover .game-tile__art {
    width: 100%;
    height: 100%;
    border: none;
    margin: 0;
    border-radius: 0;
}

.game-tile--original .game-tile__cover {
    background: #0f0f12;
}

.game-tile--original .game-tile__img {
    object-fit: cover;
}

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

.game-tile__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.92) 100%);
    pointer-events: none;
}

.game-tile__hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.game-tile:hover .game-tile__hover {
    opacity: 1;
}

.game-tile:hover .game-tile__img {
    transform: scale(1.04);
    filter: brightness(0.75);
}

.game-tile__play-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.game-tile__play-icon svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

.game-tile__play-icon svg path {
    fill: #111;
}

.game-tile__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 10px 12px;
    z-index: 2;
    pointer-events: none;
}

.game-tile__title {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.game-tile__provider-name {
    display: block;
    margin-top: 3px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
}

.game-tile__art--mines {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'%3E%3Crect fill='%231a1a1a' width='132' height='132'/%3E%3Cg transform='translate(26,30)'%3E%3Cpolygon points='20,0 40,14 40,40 20,54 0,40 0,14' fill='%23a855f7'/%3E%3Cpolygon points='50,10 70,24 70,50 50,64 30,50 30,24' fill='%237c3aed'/%3E%3Cpolygon points='35,40 55,54 55,80 35,94 15,80 15,54' fill='%23c084fc'/%3E%3C/g%3E%3C/svg%3E");
}

.game-tile__art--dice {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'%3E%3Crect fill='%231a1a1a' width='132' height='132'/%3E%3Crect x='36' y='36' width='60' height='60' rx='10' fill='%23a855f7' transform='rotate(-12 66 66)'/%3E%3Ccircle cx='52' cy='52' r='5' fill='%234c1d95'/%3E%3Ccircle cx='80' cy='80' r='5' fill='%234c1d95'/%3E%3Ccircle cx='66' cy='66' r='5' fill='%234c1d95'/%3E%3C/svg%3E");
}

.game-tile__art--keno {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'%3E%3Crect fill='%231a1a1a' width='132' height='132'/%3E%3Cg fill='%23a855f7' opacity='.9'%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3Ccircle cx='66' cy='40' r='8' fill='none' stroke='%23a855f7' stroke-width='2'/%3E%3Ccircle cx='92' cy='40' r='8'/%3E%3Ccircle cx='40' cy='66' r='8' fill='none' stroke='%23a855f7' stroke-width='2'/%3E%3Ccircle cx='66' cy='66' r='8'/%3E%3Ccircle cx='92' cy='66' r='8' fill='none' stroke='%23a855f7' stroke-width='2'/%3E%3Ccircle cx='40' cy='92' r='8'/%3E%3Ccircle cx='66' cy='92' r='8' fill='none' stroke='%23a855f7' stroke-width='2'/%3E%3Ccircle cx='92' cy='92' r='8'/%3E%3C/g%3E%3C/svg%3E");
}

.game-tile__art--towers {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'%3E%3Crect fill='%231a1a1a' width='132' height='132'/%3E%3Cellipse cx='66' cy='78' rx='22' ry='28' fill='%23a855f7'/%3E%3Cpath d='M50 50 Q66 38 82 50' fill='none' stroke='%239ca3af' stroke-width='3'/%3E%3Cline x1='54' y1='50' x2='50' y2='62' stroke='%239ca3af' stroke-width='3'/%3E%3Cline x1='78' y1='50' x2='82' y2='62' stroke='%239ca3af' stroke-width='3'/%3E%3C/svg%3E");
}

.game-tile__art--plinko {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'%3E%3Crect fill='%231a1a1a' width='132' height='132'/%3E%3Cg fill='rgba(255,255,255,0.35)'%3E%3Ccircle cx='66' cy='30' r='4'/%3E%3Ccircle cx='54' cy='48' r='4'/%3E%3Ccircle cx='78' cy='48' r='4'/%3E%3Ccircle cx='42' cy='66' r='4'/%3E%3Ccircle cx='66' cy='66' r='4'/%3E%3Ccircle cx='90' cy='66' r='4'/%3E%3Ccircle cx='54' cy='84' r='4'/%3E%3Ccircle cx='78' cy='84' r='4'/%3E%3Ccircle cx='66' cy='102' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

.game-tile__art--wheel {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'%3E%3Crect fill='%231a1a1a' width='132' height='132'/%3E%3Cg transform='translate(66 70)'%3E%3Cpath d='M0 -40 A40 40 0 0 1 34.6 -20 L0 0 Z' fill='%23a855f7'/%3E%3Cpath d='M34.6 -20 A40 40 0 0 1 34.6 20 L0 0 Z' fill='%23b7ff00'/%3E%3Cpath d='M34.6 20 A40 40 0 0 1 0 40 L0 0 Z' fill='%237c3aed'/%3E%3Cpath d='M0 40 A40 40 0 0 1 -34.6 20 L0 0 Z' fill='%23ef4444'/%3E%3Cpath d='M-34.6 20 A40 40 0 0 1 -34.6 -20 L0 0 Z' fill='%23a855f7'/%3E%3Cpath d='M-34.6 -20 A40 40 0 0 1 0 -40 L0 0 Z' fill='%23b7ff00'/%3E%3Ccircle r='8' fill='%231a1a1a'/%3E%3C/g%3E%3Cpath d='M66 18 L60 30 L72 30 Z' fill='%23fff'/%3E%3C/svg%3E");
}

.game-tile__art--limbo {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'%3E%3Crect fill='%231a1a1a' width='132' height='132'/%3E%3Cpath d='M28 96 L66 38 L104 96' fill='none' stroke='%23b7ff00' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M58 60 L80 88 M58 88 L80 60' stroke='%23a855f7' stroke-width='6' stroke-linecap='round'/%3E%3Ctext x='66' y='30' text-anchor='middle' font-family='Inter,Arial' font-size='14' font-weight='800' fill='%23b7ff00'%3E2.50%3C/text%3E%3C/svg%3E");
}

.game-tile__art--hilo {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'%3E%3Crect fill='%231a1a1a' width='132' height='132'/%3E%3Crect x='28' y='32' width='44' height='62' rx='6' fill='%23fafafa' transform='rotate(-10 50 63)'/%3E%3Ctext x='50' y='66' text-anchor='middle' font-family='Georgia,serif' font-size='22' font-weight='700' fill='%23ef4444' transform='rotate(-10 50 63)'%3EQ%26%23x2665%3B%3C/text%3E%3Crect x='60' y='34' width='44' height='62' rx='6' fill='%23fafafa' transform='rotate(8 82 65)'/%3E%3Ctext x='82' y='68' text-anchor='middle' font-family='Georgia,serif' font-size='22' font-weight='700' fill='%231a1a1a' transform='rotate(8 82 65)'%3E7%26%23x2660%3B%3C/text%3E%3Cpath d='M22 56 L14 64 L22 72 Z' fill='%23b7ff00'/%3E%3Cpath d='M110 56 L118 64 L110 72 Z' fill='%23a855f7'/%3E%3C/svg%3E");
}

.game-tile__art--rock-paper-scissors {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'%3E%3Crect fill='%231a1a1a' width='132' height='132'/%3E%3Ccircle cx='32' cy='66' r='18' fill='%23a855f7'/%3E%3Ccircle cx='30' cy='62' r='4' fill='%231a1a1a' opacity='.45'/%3E%3Crect x='54' y='44' width='28' height='44' rx='3' fill='%23fafafa'/%3E%3Cline x1='60' y1='54' x2='76' y2='54' stroke='%23a3a3a3' stroke-width='1.5'/%3E%3Cline x1='60' y1='62' x2='76' y2='62' stroke='%23a3a3a3' stroke-width='1.5'/%3E%3Cline x1='60' y1='70' x2='72' y2='70' stroke='%23a3a3a3' stroke-width='1.5'/%3E%3Cg transform='translate(100 66)'%3E%3Ccircle cx='-6' cy='8' r='6' fill='none' stroke='%23b7ff00' stroke-width='3'/%3E%3Ccircle cx='6' cy='8' r='6' fill='none' stroke='%23b7ff00' stroke-width='3'/%3E%3Cline x1='-3' y1='3' x2='12' y2='-12' stroke='%23b7ff00' stroke-width='3' stroke-linecap='round'/%3E%3Cline x1='3' y1='3' x2='-12' y2='-12' stroke='%23b7ff00' stroke-width='3' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
}

/* Provider tiles (homepage) */
.game-tile--provider {
    width: 196px;
    flex: 0 0 196px;
}

.game-tile__provider {
    width: 196px;
    height: 72px;
    border-radius: 8px;
    background: #1e1e1e;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    transition: background 0.15s;
}

.game-tile:hover .game-tile__provider {
    background: #262626;
}

.provider-logo-img {
    display: block;
    max-width: 88%;
    max-height: 42px;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

@media (max-width: 900px) {
    .game-tile--provider {
        width: 160px;
        flex: 0 0 160px;
    }

    .game-tile__provider {
        width: 160px;
        height: 64px;
        padding: 10px 12px;
    }

    .provider-logo-img {
        max-height: 36px;
    }

    .list-section__track .game-tile--original,
    .list-section__track .game-tile--slot,
    .list-section__track .game-tile--live,
    .list-section__track .game-tile--mini {
        width: 112px;
    }

    .list-section__track .game-tile__cover {
        width: 112px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .list-section__track .game-tile--original,
    .list-section__track .game-tile--slot,
    .list-section__track .game-tile--live,
    .list-section__track .game-tile--mini {
        width: 100px;
    }

    .list-section__track .game-tile__cover {
        width: 100px;
        height: 134px;
    }

    .game-tile--provider {
        width: 140px;
        flex: 0 0 140px;
    }

    .game-tile__provider {
        width: 140px;
        height: 56px;
    }
}
