:root {
    --banner-position-mobile: 93%; /* Измените это значение для сдвига баннера на мобильных (0% = влево, 100% = вправо) */
}

body {
    background-color: #0d1018;
    color: white;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1018; 
}
::-webkit-scrollbar-thumb {
    background: #2d3748; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a5568; 
}

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

/* Floating Animation for Hero Elements */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Pulsing Animation for Button */
@keyframes pulse-button {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(234, 255, 0, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(234, 255, 0, 0);
    }
}
.animate-pulse-button {
    animation: pulse-button 2s ease-in-out infinite;
}

/* Infinite Scroll Animation for Providers */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-scroll {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}
.animate-scroll:hover {
    animation-play-state: paused;
}
/* Fade mask for sides of the ticker */
.fade-mask {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}


/* SEO Tables Styling */
article table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: #151923;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
    article table {
        font-size: 0.875rem;
        min-width: 500px;
    }
    
    article table th,
    article table td {
        padding: 0.75rem 0.5rem;
    }
}

article table thead {
    background: linear-gradient(135deg, #1a1538 0%, #0d1018 100%);
}

article table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
    color: #eaff00;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #eaff00;
}

article table td {
    padding: 1rem 1.5rem;
    color: #aeb3bd;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}

article table tbody tr:hover {
    background-color: rgba(234, 255, 0, 0.05);
}

article table tbody tr:last-child td {
    border-bottom: none;
}

article table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

article table td:nth-child(2) {
    color: #eaff00;
    font-weight: 600;
}

/* SEO Section Styles */
article {
    color: #aeb3bd;
    font-size: 0.875rem;
    max-width: none;
}

article h2 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

article p {
    margin-bottom: 1rem;
}

article a {
    color: #eaff00;
    text-decoration: none;
}

article a:hover {
    text-decoration: underline;
}

article strong {
    font-weight: 700;
}

article > div {
    margin-bottom: 2rem;
}

article h3 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

article > div:first-of-type h3 {
    margin-bottom: 1rem;
}

article ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-top: 0.75rem;
}

article ol li {
    color: #d1d5db;
    margin-bottom: 0.75rem;
}

article ol li strong {
    color: white;
}

article > div:nth-of-type(2) {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    article > div:nth-of-type(2) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

article ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

article ul li {
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

article ul li strong {
    color: white;
}

article > div:nth-of-type(3),
article > div:nth-of-type(4),
article > div:nth-of-type(5) {
    margin-bottom: 2rem;
}

article > div:nth-of-type(3) h3,
article > div:nth-of-type(4) h3,
article > div:nth-of-type(5) h3 {
    margin-bottom: 1rem;
}

article table strong {
    color: white;
}

article > p:last-child {
    margin-top: 1.5rem;
    color: #aeb3bd;
}

article p:last-of-type {
    margin-top: 1.5rem;
    color: #aeb3bd;
}

/* Table wrapper for mobile scrolling */
article p + div,
article > div > div {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
}

article table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: #151923;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: table;
}

@media (max-width: 767px) {
    article p + div,
    article > div > div {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100vw;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    article table {
        font-size: 0.875rem;
        min-width: 500px;
        margin: 1.5rem 0;
    }
    
    article table th,
    article table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
}

/* Hero Section Styles */
section:first-of-type {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

section:first-of-type > div:first-child {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

section:first-of-type > div:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--banner-position-mobile, 93%) center;
}

@media (min-width: 1024px) {
    section:first-of-type > div:first-child img {
        object-position: center center;
    }
}

section:first-of-type > div:first-child > div:last-child {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
}

/* Hero Container */
section:first-of-type > div:nth-child(2) {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
    z-index: 10;
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    section:first-of-type > div:nth-child(2) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Hero Text Content Desktop */
section:first-of-type > div:nth-child(2) > div:first-child {
    display: none;
}

@media (min-width: 768px) {
    section:first-of-type > div:nth-child(2) > div:first-child {
        display: block;
        text-align: center;
        padding-top: 2.5rem;
    }
    
    @media (min-width: 768px) {
        section:first-of-type > div:nth-child(2) > div:first-child {
            text-align: left;
            padding-top: 0;
        }
    }
}

/* Hero H1 */
section:first-of-type h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

@media (min-width: 768px) {
    section:first-of-type > div:nth-child(2) > div:first-child h1 {
        font-size: 1.875rem;
    }
}

/* Hero Amount */
section:first-of-type > div:nth-child(2) > div:first-child > div:first-of-type {
    font-size: 3rem;
    font-weight: 900;
    color: #eaff00;
    margin-bottom: 1rem;
    filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
}

@media (min-width: 768px) {
    section:first-of-type > div:nth-child(2) > div:first-child > div:first-of-type {
        font-size: 4.5rem;
    }
}

/* Hero Subtitle */
section:first-of-type > div:nth-child(2) > div:first-child > div:nth-of-type(2) {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    section:first-of-type > div:nth-child(2) > div:first-child > div:nth-of-type(2) {
        font-size: 1.5rem;
    }
}

/* Hero Button Desktop */
section:first-of-type > div:nth-child(2) > div:first-child > a {
    display: none;
}

@media (min-width: 768px) {
    section:first-of-type > div:nth-child(2) > div:first-child > a {
        display: inline-block;
        background-color: #eaff00;
        color: black;
        font-size: 1.125rem;
        font-weight: 800;
        padding: 1rem 2rem;
        border-radius: 9999px;
        box-shadow: 0 20px 25px -5px rgba(234, 255, 0, 0.1), 0 10px 10px -5px rgba(234, 255, 0, 0.04);
        transition: all 0.3s;
        transform: scale(1);
    }
    
    section:first-of-type > div:nth-child(2) > div:first-child > a:hover {
        background-color: #d4e600;
        transform: scale(1.05);
    }
    
    section:first-of-type > div:nth-child(2) > div:first-child > a span {
        display: block;
        font-size: 0.75rem;
        font-weight: 400;
        opacity: 0.8;
        margin-top: 0.25rem;
    }
}

/* Hero Mobile Text */
section:first-of-type > div:nth-child(3) {
    position: absolute;
    bottom: 6rem;
    left: 0;
    right: 0;
    z-index: 10;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    section:first-of-type > div:nth-child(3) {
        display: none;
    }
}

section:first-of-type > div:nth-child(3) > div {
    text-align: center;
}

section:first-of-type > div:nth-child(3) h1 {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

section:first-of-type > div:nth-child(3) > div > div:first-of-type {
    font-size: 1.875rem;
    font-weight: 900;
    color: #eaff00;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
}

section:first-of-type > div:nth-child(3) > div > div:nth-of-type(2) {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

/* Hero Mobile Button */
section:first-of-type > div:nth-child(4) {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding-bottom: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    section:first-of-type > div:nth-child(4) {
        display: none;
    }
}

section:first-of-type > div:nth-child(4) > a {
    display: inline-block;
    background-color: #eaff00;
    color: black;
    font-size: 1.125rem;
    font-weight: 800;
    padding: 1rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 20px 25px -5px rgba(234, 255, 0, 0.1), 0 10px 10px -5px rgba(234, 255, 0, 0.04);
    transition: all 0.3s;
    transform: scale(1);
    text-align: center;
    animation: pulse-button 2s ease-in-out infinite;
}

section:first-of-type > div:nth-child(4) > a:hover {
    background-color: #d4e600;
    transform: scale(1.05);
}

section:first-of-type > div:nth-child(4) > a span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 0.25rem;
}
