
:root {
    /* Цветовая палитра (Dark Cyberpunk/Casino Theme) */
    --color-bg-main: #0f172a;
    --color-bg-secondary: #1e293b;
    --color-bg-card: #334155;
    
    --color-primary: #8b5cf6; /* Violet */
    --color-primary-hover: #7c3aed;
    --color-accent: #f59e0b; /* Gold */
    --color-accent-hover: #d97706;
    
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: #475569;

    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    
    /* Размеры и отступы */
    --container-width: 1200px;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Типографика */
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

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

a:hover {
    color: var(--color-accent);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

/* --- Layout & Container --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* --- Header --- */
header {
    background-color: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .men1 a {
    display: block;
    width: 150px;
    height: 50px;
    background: url('/path/to/logo.png') no-repeat center/contain; /* Fallback styles for logo placeholder */
    background-color: var(--color-bg-card); /* Placeholder color */
    border-radius: var(--radius-sm);
}

/* Mobile Header adjustments */
header.mob {
    display: none; /* Hidden on desktop by default unless active */
}

@media (max-width: 768px) {
    header {
        display: none;
    }
    header.mob {
        display: block;
        padding: var(--spacing-xs) 0;
    }
    
    header.mob .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .menn {
        display: flex;
        flex-wrap: wrap;
        gap: var(--spacing-xs);
        justify-content: center;
        width: 100%;
    }
}

/* Menu Buttons */
.men3, .men4 {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.men3 {
    background-color: var(--color-bg-card);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.men3:hover {
    background-color: var(--color-border);
    transform: translateY(-2px);
}

.men4 {
    background: var(--gradient-primary);
    color: white;
}

.men4:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* --- Hero Section (.joyl-slide) --- */
.joyl-slide {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.7), var(--color-bg-main)), url('https://placehold.co/1200x400/1e1b4b/FFF?text=Casino+X') center/cover no-repeat;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}

.joyl-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
}

/* --- Main Content Area --- */
.main {
    padding-bottom: var(--spacing-lg);
}

/* Typography Headings */
h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md) !important;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-text-main);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    border-left: 4px solid var(--color-accent);
    padding-left: var(--spacing-sm);
}

/* Flex Container Override */
/* The HTML uses inline styles for flex. We target the specific div structure to ensure responsiveness */
.main > .container > div[style*="display:flex"] {
    display: flex !important;
    gap: var(--spacing-md);
    align-items: flex-start;
}

@media (max-width: 992px) {
    .main > .container > div[style*="display:flex"] {
        flex-direction: column !important;
    }
}

/* Left Content Column */
.joy-left {
    flex: 1;
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    min-width: 0; /* Prevents overflow in flex items */
}

/* Right Sidebar Column */
.main-right {
    width: 300px;
    flex-shrink: 0;
    background: var(--color-bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    position: sticky;
    top: 100px;
    text-align: center;
}

@media (max-width: 992px) {
    .main-right {
        width: 100%;
        position: static;
        margin-top: var(--spacing-sm);
    }
}

.main-right b {
    color: var(--color-accent);
    display: block;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

/* --- Components: Buttons --- */
.btn-box {
    text-align: center;
    margin: var(--spacing-md) 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff !important;
    background: var(--gradient-gold);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

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

.btn:active {
    transform: translateY(-1px);
}

/* --- Components: Tables --- */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--spacing-md) 0;
    font-size: 0.95rem;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

thead th {
    background-color: var(--color-bg-card);
    color: var(--color-accent);
    text-align: left;
    padding: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-main);
}

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

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

tbody tr:hover {
    background-color: rgba(139, 92, 246, 0.1);
}

/* Responsive Table Wrapper */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* --- Footer --- */
footer {
    background-color: #020617;
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
    margin-top: auto;
    text-align: center;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.menu-fo {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.menu-fo a {
    color: var(--color-text-muted);
    margin: 0 0.5rem;
}

.menu-fo a:hover {
    color: var(--color-accent);
}

/* --- Scroll to Top Button --- */
#scroller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    z-index: 1000;
}

#scroller:hover {
    background: var(--color-accent);
    transform: translateY(-5px);
}

.b-top-but {
    font-size: 0; /* Hide text, use icon if possible, but structure has text */
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Optional: Adding an arrow via CSS pseudo-element since specific HTML icon is missing */
#scroller::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 3px solid white;
    border-left: 3px solid white;
    transform: rotate(45deg);
    margin-top: 4px;
    position: absolute;
}
.b-top-but {
    display: none; /* Hiding text to show arrow only */
}

/* --- Forms (If any appear dynamically) --- */
input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.main > .container {
    animation: fadeIn 0.8s ease-out;
}

/* --- Typography Enhancements --- */
strong {
    color: var(--color-text-main);
    font-weight: 700;
}

.joy-left p a {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(139, 92, 246, 0.5);
}

.joy-left p a:hover {
    text-decoration-color: var(--color-accent);
}

/* --- Specific Override for the empty link blocks in HTML (like .men1 a) --- */
.men1 a {
    display: block;
    /* Ensuring clickable area even if background image fails */
    min-width: 100px;
    min-height: 40px;
}
