
:root {
    /* Color Palette */
    --color-bg-body: #10121b;
    --color-bg-card: #1c1f2e;
    --color-bg-dark: #0a0b10;
    
    --color-primary: #ffc107; /* Gold/Yellow */
    --color-primary-hover: #ffdb6e;
    --color-accent: #ff4b4b; /* Red/Action */
    --color-secondary: #4a90e2; /* Blue */
    
    --color-text-main: #e2e4e9;
    --color-text-muted: #949aa8;
    --color-border: #2d3242;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;

    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --border-radius: 0.75rem;

    /* Effects */
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 15px rgba(255, 193, 7, 0.3);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

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

li {
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-main);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important; /* Override inline style */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: var(--spacing-md) !important;
}

h2 {
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    margin-top: var(--spacing-lg);
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-sm);
}

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

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

/* Header Styles */
header {
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-card);
}

/* Logo styling assumption (since img is missing in HTML) */
.men1 a {
    display: block;
    width: 150px;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30"><text x="5" y="22" fill="%23ffc107" font-weight="bold" font-family="sans-serif" font-size="20">JOYCASINO</text></svg>') no-repeat center left;
    background-size: contain;
}

/* Mobile Header Logic */
header:not(.mob) {
    display: block;
}
header.mob {
    display: none;
}

/* Hero / Slider Section */
.joyl-slide {
    position: relative;
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #2b1055 0%, #7597de 100%); /* Placeholder for missing images */
    border-radius: var(--border-radius);
    margin: var(--spacing-md) 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

.jou-abs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Make overlay links full size */
.joyl-slide > .href {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
}

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

/* Targeted override for the inline flex style to make it responsive */
div[style*="display:flex"] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

/* Left Content Column */
.joy-left {
    flex: 2 1 600px; /* Grow, Shrink, Basis */
    background: var(--color-bg-card);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

/* Right Sidebar */
.main-right {
    flex: 1 1 300px;
    background: #252a3a;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    height: fit-content;
    position: sticky;
    top: 80px;
    border: 1px solid var(--color-primary);
    box-shadow: var(--shadow-glow);
    text-align: center;
}

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

.main-right .href {
    display: block;
    margin-top: var(--spacing-sm);
    padding: 10px;
    background: var(--color-accent);
    color: white;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-transform: uppercase;
}
.main-right .href::after {
    content: "Перейти на зеркало";
}

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

.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-primary) 0%, #ff8c00 100%);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.6);
    color: #000;
}

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

/* Specific Content Styling */
.joy-left p strong em {
    color: var(--color-primary);
    font-style: normal;
    display: block;
    margin-top: var(--spacing-sm);
    font-size: 1.1em;
}

/* Footer */
footer {
    background: var(--color-bg-dark);
    padding: var(--spacing-lg) 0;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
}

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

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

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

#scroller:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.b-top-but {
    font-size: 0; /* Hide text */
}

.b-top-but::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 3px solid #000;
    border-left: 3px solid #000;
    transform: rotate(45deg);
    display: block;
    margin-top: 4px;
}

/* Forms (Generic override for inputs if they existed, based on request) */
input, select, textarea {
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    padding: 0.8rem;
    border-radius: var(--border-radius);
    width: 100%;
    margin-bottom: var(--spacing-sm);
}

input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

/* Mobile & Tablet Styles */
@media screen and (max-width: 992px) {
    div[style*="display:flex"] {
        flex-direction: column !important; /* Force stack */
    }
    
    .main-right {
        order: -1; /* Move sidebar to top on mobile for easy access to mirror */
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    /* Header toggle */
    header:not(.mob) {
        display: none;
    }
    header.mob {
        display: block;
    }
    
    /* Mobile Header Layout */
    .mob .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .menn {
        display: flex;
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .menn .href {
        flex: 1;
        text-align: center;
    }
    
    .men3, .men4 {
        padding: 0.8rem 0.5rem;
        background: var(--color-bg-card);
        border: 1px solid var(--color-border);
        border-radius: var(--border-radius);
        color: var(--color-text-main);
        font-size: 0.9rem;
        font-weight: 600;
        transition: var(--transition-fast);
    }
    
    /* Highlight Registration Button */
    .men4 {
        background: var(--color-accent);
        border-color: var(--color-accent);
        color: white;
    }

    .joyl-slide {
        min-height: 200px;
    }
    
    h1 {
        font-size: 1.8rem !important;
        text-align: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}
