

/* Верхняя секция */
.top-section {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 20px;
    margin-bottom: 30px;
    min-height: 353px;
}

/* Баннер слева */
.banner-section {
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

.banner-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 300px;
}

.banner-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    max-width: 280px;
}

.btn-primary {
    background: white;
    color: #4A90E2;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.banner-image {
    width: 100%;
    height: 100%;
}

.banner-image img {
    height: 100%;
}

/* Игровые блоки справа */

.games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 100%;
}

.game-card {
    border-radius: 15px;
    background-size: cover;
    background-size: 100% auto;
    background-position: center;
    position: relative;
    overflow: hidden;
    min-height: 165px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.game-info h3 {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge {
    background: rgba(199,224,255, .2);
    font-size: 12px !important;
    font-weight: 400 !important;
    color: white;
}

.online-count {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    width: max-content;
    padding: 4px 14px;
    border-radius: 50px;
    font-weight: 600;
    gap: 2px;
    font-size: 12px;
}

.online-count img{ 
    width: 18px;
    height: 18px;
}

.game-card .btn-play-home {
    background: #fff;
    border: none;
    color: var(--background) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.game-card .btn-play-home:hover {
    transform: scale(.95);
}

/* Специальные цвета для игровых карточек */
.game-card.jackpot {
    background: #00D169;
}

.game-card:hover::before{
    transform: rotate(-15deg) translate(-5% , -5%) scale(1.05);
}

.game-card::before{
    content: "";
    background-repeat: no-repeat !important;
    background-size: 100% !important;
    width: 190px;
    height: 190px;
    position: absolute;
    right: -20%;
    transform: rotate(-15deg);
    bottom: -15%;
    transition: all 0.2s ease-in-out;
}

.game-card.jackpot::before{
    background: url("/img/home/jackpot.svg");
}

.game-card.duels{
    background: linear-gradient(to bottom, #0176E3, #2193E4);
}

.game-card.duels::before{
    background: url("/img/home/duels.svg");
}

.game-card.wheel {
    background: linear-gradient(to bottom, #991A3A, #E42152);
}

.game-card.wheel::before{
    background: url("/img/home/wheel.svg");
}

.game-card.dice {
    background: linear-gradient(to bottom, #980F76, #E421B3);
}

.game-card.dice::before{
    background: url("/img/home/dice.svg");
}   

/* История ставок */

.history-header h2 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    display: flex;
    font-weight: 500;
    align-items: center;
    display: flex;
    align-items: center;
    gap: 5px;
}

.history-header h2 img {
    width: 20px;
    height: 20px;
}

.history-table {
    overflow-x: auto;
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

.history-table thead tr {
    background: var(--background);
}

.history-table tbody tr:nth-child(odd) {
    background: var(--background-navbar);
}

.history-table th {
    text-align: left;
    padding: 15px 12px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-table td {
    padding: 15px 12px;
}

.game-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-name span {
    font-size: 14px;
    color: #fff;
}

.game-icon {
    width: 20px;
    height: 20px;
}

.game-icon svg {
    width: 100%;
    height: 100%;
    color: #8CABF0;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4A90E2, #357ABD);
}

.bet-amount, .win-amount {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bet-amount img {
    width: 16px;
    height: 16px;
}


/* Адаптивность */
@media (max-width: 1200px) {
    .top-section {
        flex-direction: column;
    }
    
    .banner-section {
        min-height: 250px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    
    .banner-section {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .banner-image img {
        width: 150px;
    }
    
    .history-table {
        font-size: 0.9rem;
    }
}

/* Старые стили (совместимость) */
.section{
    padding-left: 20px;
}

.right-content{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: end;
}

.right-content .btn-go{
    padding: 12px 36px;
    background: rgba(63, 56, 65, 0.3);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.right-content .online-game svg{
    width: 18px;
    opacity: 0.5;
    margin-left: 6px;
}

.right-content .online-game{
    font-size: 14px;
    opacity: 0.5;
    font-weight: 400;
    display: flex;
    align-items: center;
}

    