
:root {
    /* Colors */
    --color-bg-body: #0f141f;
    --color-bg-surface: #192130;
    --color-bg-surface-hover: #222b3d;
    
    --color-primary: #0ea5ea;
    --color-primary-dark: #0056b3;
    --color-success: #28a745;
    --color-accent: #ffc107;
    --color-danger: #dc3545;

    --color-text-main: #ffffff;
    --color-text-muted: #8e9aab;
    --color-text-dark: #121212;

    --gradient-primary: linear-gradient(135deg, #0ea5ea 0%, #0b7cbd 100%);
    --gradient-gold: linear-gradient(107deg, rgb(255, 202, 77) 0%, rgb(255, 148, 0) 100%);
    --gradient-dark: linear-gradient(180deg, rgba(25, 33, 48, 0) 0%, rgba(15, 20, 31, 1) 100%);
    --gradient-hover: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1));

    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: clamp(1.25rem, 2.5vw, 1.5rem);

    /* Spacing & Layout */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    --container-width: 1200px;
    --header-height: 4rem;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-round: 50%;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 15px rgba(14, 165, 234, 0.3);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-family-base);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* --- Layout --- */
.app-is-animate {
    animation: fadeIn 0.5s ease-in-out;
}

.main-view {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrapper {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* --- Header --- */
#header {
    background-color: rgba(25, 33, 48, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    transition: transform var(--transition-fast);
}

.logo-wrapper:hover {
    transform: scale(1.05);
}

/* Header Buttons */
.controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6em 1.2em;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
    position: relative;
    overflow: hidden;
}

.button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hover);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.button:hover::after {
    opacity: 1;
}

.button:active {
    transform: scale(0.96);
}

.button.primary {
    background: var(--color-bg-surface-hover);
    color: var(--color-text-main);
}

.button.success {
    background: var(--color-success);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.icon {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
}

.button .icon {
    margin-left: 0.5em;
}

.burger-button {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    transition: background var(--transition-fast);
}

.burger-button:hover {
    background: rgba(255,255,255,0.1);
}

/* --- Navigation --- */
.navigation-top {
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    background-color: var(--color-bg-body);
    padding: var(--spacing-sm) 0;
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.5);
}

.menu-bar {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 0 var(--spacing-sm);
    white-space: nowrap;
}

.menu-bar::-webkit-scrollbar {
    display: none;
}

.menu-bar-item {
    position: relative;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: var(--font-size-sm);
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.menu-bar-item:hover,
.menu-bar-item.router-link-active {
    color: var(--color-text-main);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.menu-bar-item.router-link-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--color-primary);
}

.navigation-item-badge {
    display: inline-block;
    font-size: 0.6rem;
    padding: 2px 4px;
    border-radius: 4px;
    color: #fff;
    margin-right: 4px;
    font-weight: bold;
    vertical-align: middle;
    transform: translateY(-1px);
}

/* --- Hero & Slider --- */
.hero {
    margin: var(--spacing-md) 0;
    display: grid;
    gap: var(--spacing-md);
}

.swiper {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: var(--color-bg-surface);
}

/* Mocking visible slide for CSS-only display */
.swiper-wrapper {
    display: flex;
    /* Normally JS handles this, forcing first slide visible for demo */
    transform: translateX(0) !important; 
}

.swiper-slide {
    width: 100%;
    flex-shrink: 0;
    position: relative;
    min-height: 300px;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg width="100%25" height="100%25" xmlns="http://www.w3.org/2000/svg"%3e%3cdefs%3e%3clinearGradient id="g" x1="0" y1="0" x2="1" y2="1"%3e%3cstop offset="0" stop-color="%23192130"/%3e%3cstop offset="1" stop-color="%230f141f"/%3e%3c/linearGradient%3e%3c/defs%3e%3crect width="100%25" height="100%25" fill="url(%23g)"/%3e%3c/svg%3e');
    background-size: cover;
    background-position: center;
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
}

.slider_universal-slide-content {
    max-width: 60%;
    z-index: 2;
    position: relative;
}

.slider_universal-slide-heading {
    font-size: var(--font-size-xl);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    background: linear-gradient(90deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slider_universal-slide-subheading {
    font-size: var(--font-size-md);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

.slider_universal-slide-buttons {
    display: flex;
    gap: var(--spacing-md);
}

/* Promos below slider */
.promo {
    background: var(--color-bg-surface);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    min-height: 120px;
}

.promo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--color-bg-surface-hover);
}

.VSlide_title_wo5B8 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-main);
}

.VSlide_button_cgyZ1 {
    font-size: var(--font-size-sm) !important;
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(14, 165, 234, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.promo:hover .VSlide_button_cgyZ1 {
    background: var(--color-primary);
    color: #fff;
}

/* --- Promotion Links --- */
.promotion-links-container {
    margin-bottom: var(--spacing-xl);
}

.PromotionLinks_root_FGz01 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.PromotionLinks_item_VuGnD {
    position: relative;
    background: var(--color-bg-surface);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    height: 100px;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-decoration: none;
    transition: transform var(--transition-fast);
    border: 1px solid rgba(255,255,255,0.05);
}

.PromotionLinks_item_VuGnD:hover {
    transform: scale(1.02);
    border-color: rgba(255,255,255,0.1);
}

.FreeMoneyLink_header_JR7M7, 
.BonusLink_circleTitle_Z1abu {
    font-size: var(--font-size-lg);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-text-main);
    z-index: 2;
}

.FreeMoneyLink_subheader_guEKx,
.BonusLink_circleSubtitle_mSINM {
    font-size: var(--font-size-sm);
    color: var(--color-accent);
    z-index: 2;
}

/* --- Game Sections --- */
.Home_homeSectionCasinoGames_gf1cp {
    margin-bottom: var(--spacing-xl);
}

.HomeSection_header_aWB6p {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.HomeSection_header_aWB6p:hover {
    background: rgba(255,255,255,0.03);
}

.HomeSection_label_REWdl {
    font-size: var(--font-size-lg);
    font-weight: 700;
    flex-grow: 1;
}

.HomeSection_right_VJGWP {
    text-align: right;
}

.HomeSection_headerLink_dPgvM {
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.HomeSection_caption_pA1Gc {
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
}

/* Horizontal Games Scroll */
.HomeSectionCasinoGames_list_UZKvl {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding-bottom: var(--spacing-md);
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--color-bg-surface-hover) transparent;
}

.HomeSectionCasinoGames_game_rK_78 {
    scroll-snap-align: start;
    flex-shrink: 0;
}

.casino-game-card {
    width: 150px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    cursor: pointer;
    group: hover;
}

.game-preview {
    position: relative;
    aspect-ratio: 1/1; /* Square images mostly */
    border-radius: var(--radius-md);
    background-color: var(--color-bg-surface);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.casino-game-card:hover .game-preview {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.casino-game-card:hover .game-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    pointer-events: none;
}

.game-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback for empty pictures in code */
.game-preview picture {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #232d3f, #151a24);
}

.info {
    padding: 0 var(--spacing-xs);
}

.name {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Borders for games */
.border-gradient {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    pointer-events: none;
    z-index: 5;
}

/* --- Shine Animation --- */
@keyframes shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shine {
    position: relative;
    overflow: hidden;
}

.shine::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shine 2s infinite linear;
    pointer-events: none;
}

/* --- Mobile / Responsive --- */
@media (max-width: 768px) {
    :root {
        --header-height: 3.5rem;
    }

    .header-buttons .button {
        padding: 0.5em;
    }

    .control-item__title {
        display: none; /* Hide text on mobile for cleaner look */
    }
    
    .button .icon {
        margin: 0;
        width: 1.4em;
        height: 1.4em;
    }

    .slider_universal-slide-content {
        max-width: 100%;
        text-align: center;
    }

    .slider_universal-slide-heading {
        font-size: 1.5rem;
    }

    .slider_universal-slide-buttons {
        justify-content: center;
    }

    /* Grid layout for promos */
    .hero {
        grid-template-columns: 1fr;
    }
    
    .promo {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: var(--spacing-md);
        min-height: auto;
    }

    .VSlide_title_wo5B8 {
        font-size: var(--font-size-md);
        margin-bottom: 0;
    }

    .PromotionLinks_root_FGz01 {
        grid-template-columns: 1fr;
    }

    .casino-game-card {
        width: 110px;
    }
}

@media (min-width: 769px) {
    .hero {
        grid-template-columns: 2fr 1fr; /* Slider + Side Promos */
        grid-template-rows: repeat(2, 1fr);
    }
    
    .swiper {
        grid-row: 1 / 3;
    }

    .burger-button {
        display: none;
    }
}

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

/* Scrollbar Styling for Webkit */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-body); 
}

::-webkit-scrollbar-thumb {
    background: #364052; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a576e; 
}
