.casinos-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    
    color: #333333;
}

.counter {
    counter-reset: list-counter;
}

.counter li {
    position: relative;
    counter-increment: list-counter;
}

.counter .casino-item::before {
    content: counter(list-counter);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    width: 28px;
    height: 28px;
    
    border-bottom-right-radius: 50%;
    font-weight: bold;
    color: white;
}

.counter li:nth-child(1) .casino-item::before {
    background-color: #FFD700;
}

.counter li:nth-child(2) .casino-item::before {
    background-color: #C0C0C0;
}

.counter li:nth-child(3) .casino-item::before {
    background-color: #CD7F32;
}

.counter li:nth-child(n+4) .casino-item::before {
    background-color: #343c55;
}

.casinos-list li:not(:last-of-type) {
    margin-bottom: 12px;
}

.casinos-list h3 {
    margin: 0;
}

.casinos-list p {
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.casinos-list a {
    text-decoration: none;
}

.casino-item-wrapper {
    width: 100%;
    padding: 2px;
    border-radius: 12px;
    background: linear-gradient(to bottom, #0f8a0f, #1a7366);
}

.casino-item {
    position: relative;
    display: flex;
    flex-direction: column;
    
    width: 100%;
    min-height: 80px;
    padding: 8px 0;
    
    border-radius: 10px;
    background: #f3f8ff;
    
    overflow: hidden;
    transition: opacity 0.3s;
}

.casino-item:is(:hover, :focus-within) {
    opacity: 1;
}

.casino-item-block {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    
    padding: 0 12px;
}

.casino-item-block:nth-child(1) {
    flex-direction: column;
    flex-wrap: nowrap;
}

.casino-item-block:nth-of-type(2) {
    display: none;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    
    width: 100%;
    
    border-radius: 6px;
    
    transition: background-color 0.3s, transform 0.2s;
}

.logo-wrapper:is(:hover, :focus) {
    opacity: 0.95;
    transform: scale(1.05);
}

.casino-name {
    color: #000000;
    font-size: 20px;
    font-weight: 700;
}

.casinos-list .casino-bonus {
    display: none;
}

.casino-item-btn {
    display: block;
    
    text-align: center;
    
    transition: color 0.3s, background-color 0.3s, text-decoration 0.3s, transform 0.2s;
}

.casino-item-play-btn {
    padding: 8px;
    border-radius: 8px;
    color: #E6E6FA;
    background: linear-gradient(135deg, #ff0000, #ff3333);
}

.casino-item-btn:is(:hover, :focus) {
    color: #FFFFFF;
}

.casino-item-play-btn:hover {
    transform: scale(1.05);
}

.casino-item-play-btn:focus {
    outline: 1px solid #FFD966;
    outline-offset: 1px;
}

.casino-item-review-btn {
    display: none;
}

.casino-item-block .rating-stars-wrapper {
    display: none;
}

@media screen and (max-width: 639.9px) {
    .casino-item {
        gap: 12px;
    }
    
    .casino-item-play-btn {
        display: block;
        width: 100%;
        max-width: 240px;
    }
}

@media screen and (min-width: 640px) {
    .casino-item {
        flex-direction: row;
        justify-content: space-between;
    }
        
    .casino-item-block:nth-of-type(2) {
        display: flex;
        width: calc(100% - 400px);
    }
        
    .casino-item-block:last-of-type {
        width: 200px;
    }
    
    .casino-item-block:nth-child(1) {
        min-width: 160px;
    }
    
    .casinos-list .casino-bonus {
        display: block;
        margin-bottom: 20px;
        font-weight: 600;
    }
    
    .casino-item-btn {
        width: 120px;
    }

    .casino-item-review-btn {
        display: block;
    }
    
    .casino-item-review-btn:is(:hover, :focus) {
        text-decoration: underline;
        color: #333333;
    }
    
    .casino-item-review-btn:focus {
        outline: none;
    }
    
    .casino-item-block .rating-stars-wrapper {
        display: flex;
    }
}

@media screen and (min-width: 1200px) {
    .casino-item-block:nth-child(1) {
        min-width: 180px;
        max-width: 200px;
    }
}

/* ====================================== Rating ====================================== */
.rating-stars-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.rating-container {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 12px;
    background-repeat: repeat-x;
    background-size: 12px 12px;
}

.rating-active {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-repeat: repeat-x;
    background-size: 12px 12px;
    overflow: hidden;
}

@media screen and (min-width: 1200px) {
    .casinos-list .rating-stars-wrapper {
        font-size: 16px;
    }

    .casinos-list .rating-container {
        width: 100px;
        height: 20px;
        background-size: 20px 20px;
    }
    
    .casinos-list .rating-active {
        background-size: 20px 20px;
    }
}

/* ====================================== /Rating ====================================== */