:root {
    --primary: #e94560;
    --primary-dark: #c81d3e;
    --secondary: #0f3460;
    --secondary-light: #1a365d;
    --accent: #ffd700;
    --light: #f8f9fa;
    --dark: #1a1a2e;
    --grey: #e2e8f0;
    --success: #38a169;
    --warning: #e53e3e;
    --text: #2d3748;
    --text-light: #718096;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    line-height: 1.6;
    color: var(--text);
    background-color: #f9f9f9;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e2e8f0' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    max-width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: var(--dark);
    color: white;
    padding: 10px 0;
    border-bottom: 5px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    width: 100%;
}

header::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    opacity: 0.7;
}

.header-top {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    padding: 5px 0;
}

.header-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.header-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.85em;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.logo-container {
    margin-bottom: 0;
    transform: translateY(0);
}

.logo-container a {
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.logo-container a:hover {
    opacity: 0.8;
}

.logo {
    max-width: 120px;
    height: auto;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    margin: 1em 0 0.6em;
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 1.8em;
}

header h1 {
    font-size: 1.5em;
    text-align: center;
    margin: 0.5em 0 0.3em 0;
    color: white;
    text-shadow: 1px 1px 0px var(--dark), 2px 2px 0px var(--primary);
    letter-spacing: 0.5px;
}

h2 {
    font-size: 1.5em;
    border-bottom: 2px solid var(--grey);
    padding-bottom: 0.4em;
    margin-top: 1em;
    position: relative;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--primary);
}

h3 {
    font-size: 1.3em;
    margin-top: 1em;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
    color: var(--secondary-light);
}

p {
    margin-bottom: 1em;
    font-size: 1em;
    color: var(--text);
    line-height: 1.6;
}

strong {
    color: var(--primary-dark);
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

ul {
    margin: 1em 0 1.5em 1.5em;
}

li {
    margin-bottom: 0.5em;
    position: relative;
    padding-left: 5px;
}

li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.intro {
    font-size: 1em;
    line-height: 1.7;
    margin: 1.2em 0;
    padding: 1.5em;
    border-radius: 8px;
    background: linear-gradient(135deg, white 0%, var(--light) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary);
    position: relative;
}

.intro-content {
    margin-bottom: 1em;
}

.intro-full {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
    margin: 0;
    padding: 0;
}

.intro-full.show {
    max-height: 500px;
    margin-top: 1em;
}

.intro-toggle {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.3);
    display: block;
    margin: 0.5em auto 0;
}

.intro-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.intro-toggle:active {
    transform: translateY(0);
}

.intro::before {
    content: """;
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 5em;
    line-height: 0.5;
    font-family: var(--font-serif);
    color: rgba(233, 69, 96, 0.1);
}

section {
    margin: 1.2em 0;
    padding: 1em;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    scroll-margin-top: 100px;
}

section:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table-container {
    overflow-x: auto;
    margin: 1.2em 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.casino-logo {
    max-width: 120px;
    max-height: 50px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.casino-logo-tonyspins {
    background-color: #1a1a2e;
    padding: 5px;
    border-radius: 4px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 1em;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--grey);
}

th {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #edf2f7;
}

td:first-child {
    font-weight: 600;
    color: var(--secondary);
}

.highlight {
    background-color: #f0fff4;
    padding: 1.5em;
    border-radius: 8px;
    margin: 1.5em 0;
    border-left: 4px solid var(--success);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.highlight::before {
    content: "💡";
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5em;
}

.warning {
    background-color: #fff5f5;
    padding: 1.5em;
    border-radius: 8px;
    margin: 1.5em 0;
    border-left: 4px solid var(--warning);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.warning::before {
    content: "⚠️";
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5em;
}

.methods {
    margin: 1.5em 0;
}

.method-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1em;
}

.method-badge {
    background: linear-gradient(135deg, #f5f7fa 0%, #edf2f7 100%);
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 0.9em;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--grey);
}

.method-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, white 0%, #f5f7fa 100%);
}

/* Effets de cartes pour les éléments principaux */
.casino-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5em;
    margin: 1em 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--grey);
}

.casino-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

/* Animations et effets décoratifs */
.decorated-title {
    position: relative;
    display: inline-block;
}

.decorated-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

/* Animation de pulsation pour certains éléments */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(233, 69, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 69, 96, 0);
    }
}

/* Style de bouton casino */
.casino-btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(233, 69, 96, 0.3);
    transition: all 0.3s ease;
    margin: 1em 0;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    text-align: center;
    font-family: inherit;
}

.casino-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(233, 69, 96, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    text-decoration: none;
}

.casino-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(233, 69, 96, 0.4);
}

/* Style pour les boutons dans le tableau */
table .casino-btn {
    padding: 8px 15px;
    font-size: 0.85em;
    margin: 0;
    white-space: nowrap;
    min-width: 80px;
}

/* Style spécifique pour les liens bonus */
.bonus-link {
    color: var(--primary);
    font-weight: 600;
}

.bonus-link:hover {
    color: var(--primary-dark);
}

/* Style pour le pied de page */
footer {
    background-color: var(--secondary);
    color: white;
    padding: 1.5em 0;
    margin-top: 2em;
    border-top: 5px solid var(--primary);
    position: relative;
    width: 100%;
}

footer::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    opacity: 0.7;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    margin-bottom: 1em;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95em;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.footer-text {
    text-align: center;
    padding-top: 1em;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

footer p {
    color: #cbd5e0;
    font-size: 0.9em;
    margin: 0.5em 0;
}

/* Effet de carte à jouer pour certains éléments */
.play-card {
    position: relative;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: 2em auto;
    max-width: 400px;
    border: 1px solid var(--grey);
    overflow: hidden;
}

.play-card::before {
    content: "♠";
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.5em;
    color: rgba(15, 52, 96, 0.2);
}

.play-card::after {
    content: "♦";
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.5em;
    color: rgba(233, 69, 96, 0.2);
}

/* Animations pour les étoiles */
.stars {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5em;
}

.star {
    display: inline-block;
    animation: twinkle 1.5s infinite alternate;
}

.star:nth-child(2) {
    animation-delay: 0.3s;
}

.star:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes twinkle {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Очень маленькие экраны - до 320px */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .header-nav a,
    .footer-nav a {
        font-size: 0.75em;
        padding: 5px 8px;
    }
    
    .logo {
        max-width: 100px;
    }
    
    header h1 {
        font-size: 1.3em;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    h3 {
        font-size: 1.1em;
    }
    
    .intro {
        padding: 1em;
        font-size: 0.95em;
    }
    
    .casino-btn {
        padding: 8px 15px;
        font-size: 0.85em;
    }
}

/* Tableau adaptatif pour mobile */
.mobile-table {
    display: block;
}

.mobile-table thead {
    display: none;
}

.mobile-table tbody {
    display: block;
}

.mobile-table tr {
    display: block;
    margin-bottom: 1.5em;
    border: 1px solid var(--grey);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.mobile-table td {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.mobile-table td:before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 10px;
    color: var(--secondary);
}

.mobile-table td:last-child {
    border-bottom: none;
}

table {
    font-size: 0.9em;
}

th, td {
    padding: 10px 12px;
}

.casino-btn {
    padding: 10px 20px;
    font-size: 0.9em;
    display: block;
    width: 100%;
}

.method-badge {
    font-size: 0.8em;
    padding: 8px 12px;
}

.footer-top {
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer-nav {
    gap: 10px;
    justify-content: center;
}

.footer-nav a {
    font-size: 0.85em;
    padding: 6px 10px;
}

/* Desktop styles - min-width: 769px */
/* Планшет - от 481px до 768px */
@media (min-width: 481px) {
    .container {
        padding: 0 20px;
    }
    
    .header-nav {
        gap: 15px;
    }
    
    .header-nav a {
        font-size: 0.9em;
        padding: 7px 11px;
    }
    
    .footer-nav {
        gap: 15px;
    }
    
    .footer-nav a {
        font-size: 0.9em;
        padding: 7px 11px;
    }
    
    .logo {
        max-width: 130px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.7em;
    }
    
    h3 {
        font-size: 1.4em;
    }
    
    .intro {
        font-size: 1.05em;
        padding: 1.3em;
    }
}

/* Desktop - от 769px */
@media (min-width: 769px) {
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }
    
    .header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    
    .header-nav {
        gap: 20px;
        justify-content: flex-end;
    }
    
    .header-nav a {
        font-size: 0.95em;
        padding: 8px 12px;
    }
    
    .logo {
        max-width: 140px;
    }
    
    header h1 {
        font-size: 2.2em;
    }
    
    h1 {
        font-size: 2.2em;
    }
    
    h2 {
        font-size: 1.9em;
    }
    
    h3 {
        font-size: 1.5em;
    }
    
    p {
        font-size: 1.05em;
    }
    
    .intro {
        font-size: 1.15em;
        padding: 1.2em;
    }
    
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    
    .footer-nav {
        gap: 20px;
        justify-content: flex-end;
    }
    
    .footer-nav a {
        font-size: 0.95em;
        padding: 8px 12px;
    }
    
    table {
        font-size: 1em;
        display: table;
    }
    
    .mobile-table {
        display: table;
    }
    
    .mobile-table thead {
        display: table-header-group;
    }
    
    .mobile-table tbody {
        display: table-row-group;
    }
    
    .mobile-table tr {
        display: table-row;
        margin-bottom: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    
    .mobile-table td {
        display: table-cell;
        padding: 12px 15px;
        border-bottom: 1px solid var(--grey);
    }
    
    .mobile-table td:before {
        display: none;
    }
    
    .casino-btn {
        padding: 8px 15px;
        font-size: 0.85em;
        display: inline-block;
        width: auto;
    }
    
    .method-badge {
        font-size: 0.9em;
        padding: 10px 15px;
    }
    
    th, td {
        padding: 12px 15px;
    }
}

/* Animation de dés pour le header */
@keyframes roll {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
    100% { transform: rotate(360deg); }
}

.dice {
    font-size: 1.2em;
    display: inline-block;
    margin: 0 5px;
    animation: roll 3s infinite linear;
    color: var(--accent);
}

