
/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --bg-body: #0b0e14;
    --bg-card: #151a24;
    --bg-dark: #07090c;
    --primary: #ff4500;
    --primary-hover: #ff6326;
    --accent-gold: #ffd700;
    --accent-green: #00e676;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-color: #2a303c;
    
    /* Gradients */
    --grad-fire: linear-gradient(135deg, #ff4500 0%, #ff8c00 100%);
    --grad-gold: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
    --grad-green: linear-gradient(135deg, #00e676 0%, #00c853 100%);
    --grad-dark: linear-gradient(to bottom, #1a202c, #11151c);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.25rem;
    --fs-xl: clamp(1.5rem, 4vw, 2.5rem);

    /* Spacing & Sizes */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --container-width: 1200px;
    
    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(255, 69, 0, 0.4);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. LAYOUT & UTILITIES
   ========================================= */
.container, 
.page-content,
.main {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.button_pp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem !important; /* Override inline styles */
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--trans-fast);
    border: none;
    color: #fff;
    background: var(--grad-fire);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
    font-size: var(--fs-sm);
    text-align: center;
}

.button_pp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.5);
    filter: brightness(1.1);
}

.button_pp:active {
    transform: translateY(0);
}

/* Specific Button Overrides */
.button_pp.register {
    background: var(--grad-fire) !important;
}

.button_pp.enter {
    background: var(--bg-card) !important;
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
    box-shadow: none !important;
}

.button_pp.enter:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

/* =========================================
   3. HEADER AREA
   ========================================= */
.head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

#head_auth_buttons {
    display: flex;
    gap: var(--spacing-xs);
}

/* Logo styling override */
#rsst_head_logo {
    width: 150px;
    height: 50px;
    background: url('https://dummyimage.com/150x50/ff4500/fff&text=AZINO+777') no-repeat center/contain; /* Placeholder for missing image */
    display: block;
}

.top-scroller {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.scroller-btn {
    background: var(--bg-card);
    color: var(--primary);
    padding: 1rem;
    border-radius: 50%;
    border: 2px solid var(--primary);
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: var(--shadow-glow);
}

/* Pre-header download banners */
.pre-header-dovnload {
    background: var(--bg-card);
    margin: var(--spacing-sm) auto;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    border: 1px solid var(--border-color);
    max-width: var(--container-width);
}

.pre-header-dovnload .text-box {
    font-size: var(--fs-base);
    color: var(--text-muted);
}

/* =========================================
   4. NAVIGATION
   ========================================= */
.main_menu {
    background: var(--bg-card);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary);
}

#main_navigation_bar ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
}

#main_navigation_bar ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
}

#main_navigation_bar ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

/* Icons (simulated as the sprite is missing) */
.main_navigation_bar_icon {
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}

/* =========================================
   5. SLIDER & JACKPOT
   ========================================= */
.head_slider {
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    min-height: 400px;
    box-shadow: var(--shadow-card);
}

.da-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-md);
    height: 100%;
    position: relative;
    z-index: 2;
    background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
}

.da-slide .da-text-left, 
.da-slide .da-text-right {
    color: var(--text-main);
    z-index: 3;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.da-slide span {
    display: block;
    line-height: 1.2;
    font-weight: 800;
}

.da-slide .button_pp {
    width: fit-content;
    margin-top: var(--spacing-sm);
    z-index: 10;
    position: relative;
}

.da_bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6;
}

/* Jackpot Area Styles */
#main_menu_winners {
    background: linear-gradient(to right, #2c1a0b, #4a2c0f);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin: var(--spacing-sm) auto;
    border: 1px solid var(--accent-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: var(--container-width);
}

.rub {
    font-size: 2rem;
    font-family: 'Courier New', monospace;
    color: var(--accent-gold);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    background: rgba(0,0,0,0.5);
    padding: 0.5rem;
    border-radius: 4px;
    letter-spacing: 2px;
}

/* =========================================
   6. GAMES GRID
   ========================================= */
.games_header ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: var(--spacing-md) 0;
}

.games_header a {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--trans-fast);
}

.games_header a:hover {
    color: var(--text-main);
    border-color: var(--primary);
    background: rgba(255, 69, 0, 0.1);
}

.page-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: var(--spacing-lg);
}

.game-item {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--trans-smooth);
    box-shadow: var(--shadow-card);
    width: 100% !important; /* Override inline width */
    max-width: none !important;
    margin: 0 !important;
    aspect-ratio: 16/10;
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.game-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-item:hover img {
    transform: scale(1.1);
    filter: blur(2px) brightness(0.5);
}

.game_info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: rgba(0,0,0,0.8);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 10;
}

.game-item:hover .game_info {
    transform: translateY(0);
}

/* Hover Overlay */
.game_hover_container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 6;
    background: rgba(0, 0, 0, 0.6);
}

.game-item:hover .game_hover_container {
    opacity: 1;
}

.game_hover_mane_action {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.game_hover_real.play {
    background: var(--grad-green) !important;
    color: #000 !important;
    border: none;
    padding: 0.5rem 2rem !important;
    border-radius: 20px !important;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-green);
    width: auto !important;
    height: auto !important;
}

.game_hover_real:not(.play) {
    color: #fff !important;
    text-decoration: underline;
    font-size: 0.9rem !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
}

/* =========================================
   7. CONTENT & FAQ
   ========================================= */
.page-content {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
}

.page-content_title {
    font-size: var(--fs-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--accent-gold);
    text-align: center;
}

.page-content p, 
.page-content li {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.page-content h3 {
    color: var(--text-main);
    margin: 1.5rem 0 0.5rem;
    font-size: var(--fs-lg);
}

/* FAQ Styles */
#faq {
    margin-top: var(--spacing-md);
}

#faq .h {
    font-size: var(--fs-lg);
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary);
}

#faq .item {
    background: var(--bg-body);
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

#faq .question {
    display: block;
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(255,255,255,0.02);
    transition: background 0.3s;
}

#faq .question:hover {
    background: rgba(255,255,255,0.05);
    color: var(--primary);
}

/* CSS-only hover reveal for FAQ since no JS logic provided */
#faq .item:hover .answer {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

#faq .answer {
    padding: 1rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    background: var(--bg-body);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

table td, table th {
    padding: 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
    color: var(--text-muted);
}

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

/* =========================================
   8. FOOTER
   ========================================= */
.footer {
    background: var(--bg-dark);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-lg);
    border-top: 2px solid var(--primary);
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.footer .all_rights {
    text-align: center;
    padding: 1rem 0;
}

.footer a {
    color: var(--text-muted);
}

.footer a:hover {
    color: var(--primary);
}

.footer .titles {
    display: block;
    color: var(--text-main);
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

#adaptive_footer {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 1rem;
}

#adaptive_second_footer table {
    background: transparent;
}

#adaptive_second_footer td {
    border: none;
    padding: 0.25rem 0;
}

/* =========================================
   9. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    #adaptive_footer {
        grid-template-columns: 1fr;
    }
    
    .head {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .page-games {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }

    .pre-header-dovnload {
        flex-direction: column;
        text-align: center;
    }
    
    #main_navigation_bar ul {
        flex-direction: column;
        align-items: center;
    }
    
    .head_slider {
        min-height: 250px;
    }
    
    .da-slide span {
        font-size: 1.5rem !important;
    }
    
    .footer_text, .footer_text_vRU {
        width: 100% !important;
        background-size: contain !important;
        height: auto !important;
        padding-bottom: 20px;
    }
    
    /* Fix sticky specific elements from original HTML */
    #head_auth_buttons a {
        width: auto !important;
        padding: 0.5rem 1rem !important;
    }
}

/* Hide original counter sprites mess and show simple box */
#jp_container_counter_ispayed .counter_marker,
#jp_container_counter_ispayed .counter_character {
    display: none !important;
}

#jp_container_counter_ispayed::after {
    content: "1,959,033 RUB";
    color: var(--accent-gold);
    font-size: 1.5rem;
    font-weight: bold;
    font-family: monospace;
}

/* Normalize hidden inputs */
input[type="hidden"] {
    display: none !important;
}
