/* --- VARIABLES & RESET --- */
:root {
    --primary-bg: #1e052d; /* Very dark purple base */
    --secondary-bg: #4a0e68; /* Header/Footer purple */
    --accent-bg: #5a1478; /* Lighter purple blocks */
    --highlight: #7b1fa2; /* Hover states */
    --btn-green: #37a046; /* Registration/CTA Green */
    --btn-green-hover: #2e853a;
    --btn-blue: #4a6fa5; /* Login Blue */
    --text-color: #ffffff;
    --text-muted: #e0e0e0;
    --border-color: #6a2c85;
    --font-main: 'Montserrat', sans-serif;
    --gold: #ffd700;
    --gold-gradient: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 60px; /* Space for mobile nav */
}

@media(min-width: 769px) {
    body { padding-bottom: 0; }
}

/* Accessiblity Focus Styles */
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: visible;
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }

/* --- HEADER (VISUALLY REWORKED - Dark Premium Glass) --- */
.main-header {
    background: rgba(15, 3, 25, 0.85); /* Deep dark purple glass */
    backdrop-filter: blur(16px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-icon {
    font-size: 30px;
    margin-right: 6px;
    /* Gold gradient for the Icon */
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.logo-text {
    color: #ffffff; /* White text for contrast on dark glass */
    font-weight: 900;
    letter-spacing: 0.5px;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

/* Login: Ghost Style */
.btn-login {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-login:hover { 
    background: rgba(255, 255, 255, 0.1); 
    border-color: #ffffff;
}

/* Register: Premium Gold/Action Style */
.btn-register {
    background: var(--gold-gradient);
    color: #1e052d; /* Dark text on gold */
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: 1px solid transparent;
    animation: pulse-gold 3s infinite;
}
.btn-register:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #ffed4a 0%, #ffca28 100%);
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* Mobile Adjustments for Header */
@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
    }
    .header-container {
        flex-wrap: nowrap;
        gap: 10px;
        align-items: center;
    }
    .logo {
        font-size: 22px;
        flex-shrink: 0;
    }
    .logo-img {
        height: 40px;
    }
    .logo-icon {
        font-size: 26px;
    }
    .auth-buttons {
        gap: 8px;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
    }
    .btn {
        flex: 0 0 auto;
        min-width: 100px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 8px 0;
    }
    .header-container {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .logo {
        font-size: 18px;
        flex-shrink: 1;
    }
    .logo-img {
        height: 35px;
    }
    .logo-text { 
        font-size: 16px; 
    }
    .logo-icon { 
        font-size: 20px; 
    }
    .auth-buttons { 
        gap: 6px;
        flex-wrap: nowrap;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
    }
    .btn {
        padding: 7px 12px;
        font-size: 11px;
        min-height: 36px;
        flex: 0 0 auto;
        min-width: 80px;
        max-width: 110px;
        width: auto;
    }
}

/* --- HERO SLIDER SECTION --- */
/* 
 * НАСТРОЙКА ПОЗИЦИОНИРОВАНИЯ БАННЕРОВ ЧЕРЕЗ ПРОЦЕНТНОЕ СООТНОШЕНИЕ:
 * Для каждого баннера можно настроить смещение через CSS переменные в процентах:
 * 
 * --banner-offset-x: горизонтальное позиционирование в % (0% = слева, 50% = центр, 100% = справа)
 * --banner-offset-y: вертикальное позиционирование в % (0% = сверху, 50% = центр, 100% = снизу)
 * 
 * Примеры:
 * .slide-1 { --banner-offset-x: 0%; } - показать левую часть баннера
 * .slide-1 { --banner-offset-x: 100%; } - показать правую часть баннера
 * .slide-2 { --banner-offset-x: 75%; } - показать правую часть баннера (75% от левого края)
 * .slide-3 { --banner-offset-y: 0%; } - показать верхнюю часть баннера
 * .slide-3 { --banner-offset-y: 100%; } - показать нижнюю часть баннера
 * 
 * Настройки можно задавать отдельно для десктопа, планшетов (768px) и мобильных (480px)
 * Используется object-position, который работает в процентах от размера изображения
 */
.hero-section {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-bottom: 4px solid var(--secondary-bg);
    background-color: #1e052d;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 250px;
    }
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.02) 3px);
    pointer-events: none;
    z-index: 4;
}

.hero-slider-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.hero-slide {
    width: 33.333%;
    min-height: 520px;
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-slide {
        min-height: 250px;
    }
}

.slide-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transform: scale(1.05);
}

/* Настройка позиционирования баннеров через процентное соотношение */
/* Измените значения --banner-offset-x и --banner-offset-y для смещения */
/* object-position работает в процентах: 0% = левый/верхний край, 100% = правый/нижний край */
/* --banner-offset-x: 0% = слева, 50% = центр, 100% = справа */
/* --banner-offset-y: 0% = сверху, 50% = центр, 100% = снизу */

/* Баннер 1 - измените значения здесь */
.slide-1 {
    --banner-offset-x:66%;
    --banner-offset-y: 50%;
}

.slide-1 .slide-bg-img {
    object-position: var(--banner-offset-x) var(--banner-offset-y) !important;
    transform: scale(1.05);
}

/* Баннер 2 - измените значения здесь */
.slide-2 {
    --banner-offset-x: 73%;
    --banner-offset-y: 50%;
}

.slide-2 .slide-bg-img {
    object-position: var(--banner-offset-x) var(--banner-offset-y) !important;
    transform: scale(1.05);
}

/* Баннер 3 - измените значения здесь */
.slide-3 {
    --banner-offset-x: 68%;
    --banner-offset-y: 50%;
}

.slide-3 .slide-bg-img {
    object-position: var(--banner-offset-x) var(--banner-offset-y) !important;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .slide-bg-img {
        object-fit: cover;
    }
    
    /* Настройка смещения баннеров на планшетах - используйте те же переменные */
    .slide-1 .slide-bg-img {
        object-position: var(--banner-offset-x) var(--banner-offset-y) !important;
        transform: scale(1.1);
    }
    
    .slide-2 .slide-bg-img {
        object-position: var(--banner-offset-x) var(--banner-offset-y) !important;
        transform: scale(1.1);
    }
    
    .slide-3 .slide-bg-img {
        object-position: var(--banner-offset-x) var(--banner-offset-y) !important;
        transform: scale(1.1);
    }
    
    /* Если нужно другое позиционирование на планшетах, измените здесь */
    /* По умолчанию используются те же значения, что и на десктопе */
}

@media (max-width: 480px) {
    .slide-bg-img {
        object-fit: cover;
    }
    
    /* Настройка смещения баннеров на мобильных устройствах - используйте те же переменные */
    .slide-1 .slide-bg-img {
        object-position: var(--banner-offset-x) var(--banner-offset-y) !important;
        transform: scale(1.2);
    }
    
    .slide-2 .slide-bg-img {
        object-position: var(--banner-offset-x) var(--banner-offset-y) !important;
        transform: scale(1.2);
    }
    
    .slide-3 .slide-bg-img {
        object-position: var(--banner-offset-x) var(--banner-offset-y) !important;
        transform: scale(1.2);
    }
    
    /* Если нужно другое позиционирование на мобильных, измените здесь */
    /* По умолчанию используются те же значения, что и на десктопе */
}

.hero-slide::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(30, 5, 45, 0.4) 0%, rgba(30, 5, 45, 0.25) 50%, rgba(30, 5, 45, 0.05) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 5;
    height: 100%;
}

/* Hero Character Styles */
.hero-character {
    position: absolute;
    right: 0;
    bottom: -50px;
    width: 50%;
    height: 120%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    pointer-events: none;
    z-index: 3;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
}

.char-1 { background-image: url('https://placehold.co/600x800/png?text=Explorer+Girl'); }
.char-2 { background-image: url('https://placehold.co/600x800/png?text=Live+Dealer'); right: 5%; }
.char-3 { background-image: url('https://placehold.co/600x800/png?text=Soccer+Player'); bottom: -20px; }

.hero-text-wrapper {
    max-width: 600px;
    padding-left: 20px;
    color: #fff;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
    /* Gradient Text */
    background: linear-gradient(to right, #ffffff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 5px rgba(0,0,0,0.5));
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: #e0e0e0;
    font-weight: 500;
}

.btn-cta {
    background-color: var(--btn-green);
    color: white;
    font-size: 20px;
    font-weight: 700;
    padding: 16px 45px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(55, 160, 70, 0.5);
    display: inline-block;
    text-transform: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cta::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.btn-cta:hover::after {
    left: 100%;
}

.btn-cta:hover {
    background-color: var(--btn-green-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(55, 160, 70, 0.6);
}

/* Slider Controls */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px; 
    z-index: 10;
}

.dot {
    width: 14px; 
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent; 
}

.dot:hover {
    background-color: rgba(255,255,255,0.8);
}

.dot.active {
    background-color: var(--btn-green);
    transform: scale(1.3);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(55,160,70,0.5);
}

/* Floating elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 6;
}

.chip {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #c0392b);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(15deg); }
    50% { transform: translateY(-20px) rotate(20deg); }
    100% { transform: translateY(0px) rotate(15deg); }
}

@keyframes float-reverse {
    0% { transform: translateY(0px) rotate(-15deg); }
    50% { transform: translateY(-15px) rotate(-10deg); }
    100% { transform: translateY(0px) rotate(-15deg); }
}

.chip-1 { 
    width: 70px; height: 70px; top: 15%; left: 45%; 
    animation: float 6s ease-in-out infinite;
}
.chip-2 { 
    width: 50px; height: 50px; bottom: 25%; left: 38%; 
    background: radial-gradient(circle at 30% 30%, #ffd700, #daa520); 
    animation: float-reverse 5s ease-in-out infinite;
}

/* --- PROVIDERS MARQUEE (Redesigned) --- */
.providers-section {
    background-color: #150225; /* Darker, richer purple */
    padding: 30px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    .providers-section {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .providers-section {
        padding: 15px 0;
    }
}

.providers-title {
    text-align: center;
    color: #dcdcdc;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.6;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Fade Mask for smoother edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll 35s linear infinite;
}

/* Pause scrolling on hover for better UX */
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

.provider-logo {
    display: inline-block;
    height: 50px; /* Slightly larger logos */
    margin: 0 40px; /* More breathing room */
    opacity: 0.5;
    transition: all 0.4s ease;
    vertical-align: middle;
    filter: grayscale(100%) brightness(0.8);
    cursor: pointer;
}

@media (max-width: 768px) {
    .provider-logo {
        height: 40px;
        margin: 0 25px;
    }
}

@media (max-width: 480px) {
    .provider-logo {
        height: 30px;
        margin: 0 15px;
    }
}

.provider-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1.2) drop-shadow(0 0 8px rgba(255,255,255,0.3));
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- JACKPOT COUNTER (Engagement) --- */
.jackpot-bar {
    background: linear-gradient(90deg, #1e052d 0%, #4a0e68 50%, #1e052d 100%);
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,215,0,0.2);
}

.jackpot-title {
    color: #dcdcdc;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.jackpot-amount {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 1px;
}

/* --- SUB-NAV --- */
.category-nav {
    background-color: #ffffff;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 66px; /* Offset for new header height */
    z-index: 900;
}

.category-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.category-nav a {
    color: #555;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    position: relative;
    padding: 10px 15px; 
    border-radius: 20px;
}

.category-nav a:hover, .category-nav a.active {
    color: #000;
    background-color: #f5f5f5;
}

.category-nav a.active {
    color: var(--secondary-bg);
    background-color: rgba(74, 14, 104, 0.1);
}

/* --- MAIN CONTENT & SEO TEXT --- */
.purple-section {
    background-color: #6a1b9a;
    background: linear-gradient(180deg, #7b1fa2 0%, #4a148c 100%);
    padding: 60px 0;
    position: relative;
}

@media (max-width: 768px) {
    .purple-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .purple-section {
        padding: 30px 0;
    }
}

/* --- SEO ARTICLE STYLES --- */
.purple-section article h1 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

@media (max-width: 768px) {
    .purple-section article h1 {
        font-size: 26px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .purple-section article h1 {
        font-size: 22px;
        margin-bottom: 12px;
    }
}

.purple-section article p {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.8;
    color: #f0f0f0;
}

@media (max-width: 480px) {
    .purple-section article p {
        font-size: 14px;
        margin-bottom: 12px;
        line-height: 1.6;
    }
}

/* --- SEO LISTS --- */
.purple-section article ul {
    margin: 25px 0;
    padding-left: 0;
    list-style: none;
}

.purple-section article ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.7;
    color: #f0f0f0;
}

.purple-section article ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    background: var(--gold-gradient);
    color: #1e052d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.purple-section article ol {
    margin: 25px 0;
    padding-left: 0;
    list-style: none;
    counter-reset: list-counter;
}

.purple-section article ol li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.7;
    color: #f0f0f0;
    counter-increment: list-counter;
}

.purple-section article ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--gold-gradient);
    color: #1e052d;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

@media (max-width: 480px) {
    .purple-section article ul li,
    .purple-section article ol li {
        font-size: 14px;
    }
    .purple-section article ul li {
        padding-left: 28px;
    }
    .purple-section article ol li {
        padding-left: 35px;
    }
}

/* --- SEO TABLE --- */
/* Обертка для таблиц */
.purple-section article h2 + div,
.purple-section article p + div:has(table) {
    margin: 30px 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.purple-section article table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    min-width: 600px;
    margin: 0;
    display: table;
    box-sizing: border-box;
}

.purple-section article table thead {
    background: var(--gold-gradient);
}

.purple-section article table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 800;
    font-size: 15px;
    color: #1e052d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(30, 5, 45, 0.3);
}

.purple-section article table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.purple-section article table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.purple-section article table tbody tr:last-child {
    border-bottom: none;
}

.purple-section article table td {
    padding: 16px 20px;
    font-size: 15px;
    color: #f0f0f0;
    line-height: 1.6;
}

.purple-section article table td:first-child {
    font-weight: 600;
    color: #ffffff;
}

@media (max-width: 768px) {
    .purple-section article h2 + div,
    .purple-section article p + div:has(table) {
        margin: 25px -15px;
        padding: 0 15px;
        border-radius: 0;
    }
    .purple-section article table {
        min-width: 500px;
    }
    .purple-section article table th,
    .purple-section article table td {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .purple-section article h2 + div,
    .purple-section article p + div:has(table) {
        margin: 20px -15px;
        padding: 0 15px;
        border-radius: 0;
    }
    .purple-section article table {
        min-width: 450px;
    }
    .purple-section article table th,
    .purple-section article table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

.purple-section article > div:first-of-type {
    font-weight: 500;
    margin-bottom: 35px;
    border-left: 4px solid var(--gold);
    padding-left: 20px;
}

.purple-section article h2,
.purple-section section h3 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 25px;
    color: #fff;
    display: flex;
    align-items: center;
}

.purple-section article h2::before,
.purple-section section h3::before {
    content: '';
    display: block;
    width: 8px;
    height: 28px;
    background-color: var(--gold);
    margin-right: 15px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .purple-section article h2,
    .purple-section section h3 {
        font-size: 24px;
        margin-top: 30px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .purple-section article h2,
    .purple-section section h3 {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 15px;
    }
}

/* --- GAMES GRID --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 50px;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-bottom: 20px;
}

@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 30px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 25px;
        max-width: 100%;
    }
}

.game-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    background-color: #2a0a40;
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.4);
    border-color: var(--gold);
}

.game-card:hover::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.2);
    z-index: 2;
    pointer-events: none;
}

.game-card img {
    width: 75%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.5s ease;
    box-sizing: border-box;
    border-radius: 16px;
    position: relative;
    z-index: 1;
    object-fit: contain;
}

.game-card:hover img {
    transform: scale(1.1);
}

.badge-race {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold-gradient);
    color: #000;
    z-index: 3;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 3;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 5, 45, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    border-radius: 16px;
}
.game-card:hover .game-overlay { opacity: 1; }

.btn-play {
    background-color: var(--btn-green);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: all 0.2s;
    animation: pulse-btn 2s infinite; /* Engagement animation */
}

@keyframes pulse-btn {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(55, 160, 70, 0.7); }
    70% { transform: scale(0.95); box-shadow: 0 0 0 10px rgba(55, 160, 70, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(55, 160, 70, 0); }
}

.game-card:hover .btn-play {
    transform: scale(1);
    animation: none;
}

/* --- FAQ SECTION RE-DESIGNED --- */
.purple-section section {
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    padding-top: 40px;
}

@media (max-width: 768px) {
    .purple-section section {
        margin-top: 40px;
        padding-top: 30px;
    }
}

@media (max-width: 480px) {
    .purple-section section {
        margin-top: 30px;
        padding-top: 25px;
    }
}

/* Background decorative element */
.purple-section section::before {
    content: '?';
    position: absolute;
    top: -50px;
    right: -50px;
    font-size: 400px;
    color: rgba(255, 255, 255, 0.03);
    font-weight: 900;
    pointer-events: none;
    z-index: 0;
    font-family: serif;
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between cards */
}

.accordion-item {
    background: rgba(255, 255, 255, 0.05); /* Glass-like dark card */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 0; /* Handled by flex gap */
}

.accordion-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

/* Active State Style for Parent Item */
.accordion-item.is-open {
    background: rgba(30, 5, 45, 0.6);
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

@media (max-width: 768px) {
    .accordion-header {
        padding: 15px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .accordion-header {
        padding: 12px 15px;
        font-size: 14px;
    }
}

.accordion-header.active {
    color: var(--gold);
}

/* New Opener: Animated Chevron Box */
.icon-toggle {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Bouncy transition */
    flex-shrink: 0;
    margin-left: 20px;
}

/* The chevron arrow shape */
.icon-toggle::before {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: border-color 0.3s;
}

.accordion-header:hover .icon-toggle {
    background: rgba(255, 255, 255, 0.2);
}

.accordion-header.active .icon-toggle {
    background: var(--gold);
    transform: rotate(180deg);
}

.accordion-header.active .icon-toggle::before {
    border-color: #2e0e3e; /* Dark arrow on gold bg */
    margin-top: 4px; /* Adjust visual center when flipped */
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.4s;
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.7;
    padding: 0 25px;
    opacity: 0;
}

@media (max-width: 768px) {
    .accordion-content {
        font-size: 14px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .accordion-content {
        font-size: 13px;
        padding: 0 15px;
        line-height: 1.6;
    }
}

.accordion-content p {
    padding-bottom: 25px;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

/* Show content when active */
.accordion-header.active + .accordion-content {
    opacity: 1;
}

/* --- FOOTER --- */
.main-footer {
    background-color: #240a33;
    padding: 60px 0 30px;
    border-top: 4px solid var(--gold);
    text-align: center;
    font-size: 13px;
    color: #a0a0a0;
}

@media (max-width: 768px) {
    .main-footer {
        padding: 40px 0 25px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 30px 0 20px;
        font-size: 11px;
    }
}

.responsible-gaming {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
    flex-wrap: wrap;
}

.age-badge {
    border: 2px solid #a0a0a0;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-link {
    text-decoration: none;
    color: #ccc;
    border-bottom: 1px dotted #888;
}

.footer-link:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

/* Payment Methods Placeholder */
.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    opacity: 0.6;
}

.pay-icon {
    width: 50px;
    height: 30px;
    background: #444;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #888;
    border: 1px solid #555;
}

/* --- MOBILE STICKY BOTTOM BAR (PWA Style) --- */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
}

.mobile-nav-item {
    text-align: center;
    color: #666;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-nav-item.active {
    color: var(--secondary-bg);
    font-weight: 700;
}

.mobile-icon {
    font-size: 18px;
    margin-bottom: 3px;
    display: block;
}

@media(min-width: 769px) {
    .mobile-bottom-bar {
        display: none;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .payment-methods {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .responsible-gaming {
        flex-direction: column;
        text-align: center;
    }
    
    .responsible-gaming p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* Smaller mobile menu icons */
    .mobile-nav-item { 
        font-size: 9px; 
    }
    
    .payment-methods {
        gap: 8px;
    }
    
    .pay-icon {
        width: 40px;
        height: 25px;
        font-size: 8px;
    }
    
    .responsible-gaming p {
        font-size: 11px;
        padding: 0 10px;
    }
}
