
        :root {
            --primary: #7ee014;
            --primary-dark: #5cac07;
            --secondary: #131313;
            --secondary-light: #222222;
            --accent: #73ff00;
            --text: #f5f5f5;
            --text-dark: #131313;
            --success: #4caf50;
            --danger: #f44336;
            --warning: #ffc107;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Century Gothic', sans-serif;
            background-color: var(--secondary);
            color: var(--text);
            text-align: center;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            background-image: url("images/bg.jpg");
            background-position: center;
        }

        .main-content {
            display: flex;
            justify-content: space-between;
            width: 100%;
            flex-grow: 1;
            padding: 20px;
            flex-direction: column;
            gap: 30px;
            max-width: 900px;
            margin: 0 auto;
            padding-top: 66px;
            box-sizing: border-box;
        }

        .container {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            width: 100%;
            visibility: inherit;
            margin-right: 20px;
            animation: fadeIn 1.5s ease-in forwards;
        }

        h2 {
            color: var(--primary);
            font-size: 3rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
            animation: fadeInDown 1s;
        }

        p {
            font-size: 1.5rem;
            margin-bottom: 20px;
            color: var(--text);
        }

        .game-info {
            margin: 20px 0;
            font-size: 1.2rem;
            color: var(--primary);
            background-color: rgba(0, 0, 0, 0.4);
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            width: 100%;
            max-width: 500px;
        }

        .card-area {
            background-color: #131313;
            border-radius: 15px;
            padding: 20px;
            margin: 15px 0;
            box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
            width: 100%;
            max-width: 600px;
        }

        .card {
            font-family: 'Century Gothic', sans-serif;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            width: 80px;
            height: 120px;
            margin: 10px;
            border-radius: 8px;
            font-weight: bold;
            font-size: 1.5rem;
            background-color: #ffff;
            box-shadow: 0 3px 10px rgba(0,0,0,0.2);
            position: relative;
            color: #73ff00;
            border: 1px solid #131313;
            flex-direction: column;
        }

        .card-value {
            font-size: 1.8rem;
            line-height: 1;
        }

        .card-suit {
            font-size: 2.5rem;
            line-height: 1;
            margin-top: 5px;
        }

        .red-card {
            color: #5cac07;
        }

        .black-card {
            color: #212121;
        }

        .card.back {
            background: linear-gradient(135deg, #131313, #212121);
            color: #73ff00;
            border: 1px solid #131313;
            font-size: 2.5rem;
        }

        @keyframes dealCard {
            0% { transform: translateY(-50px) rotate(-5deg); opacity: 0; }
            100% { transform: translateY(0) rotate(0); opacity: 1; }
        }

        .card {
            animation: dealCard 0.5s ease-out forwards;
        }
        .card:hover {
            transform: translateY(-10px) scale(1.05);
            box-shadow: 0 8px 16px rgba(0,0,0,0.3);
        }
        .card.hidden-card {
            background: linear-gradient(135deg, #2c3e50, #4a6491);
            color: white;
        }
        .controls {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin: 20px 0;
            width: 100%;
            max-width: 500px;
        }

            .controls button {
                padding: 12px 24px;
                font-family: 'Century Gothic', sans-serif;
                font-size: 1.1rem;
                cursor: pointer;
                border: none;
                border-radius: 5px;
                background-color: var(--primary);
                color: var(--text-dark);
                transition: all 0.3s ease;
                font-weight: bold;
                box-shadow: 0 4px 6px rgba(0,0,0,0.1);
                min-width: 160px;
            }

                .controls button:hover {
                    background-color: var(--primary-dark);
                    transform: translateY(-2px);
                    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
                }

                .controls button:disabled {
                    background-color: #0e0e0e;
                    color: #272727;
                    cursor: not-allowed;
                    transform: none;
                    box-shadow: none;
                }

        .back-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-top: 20px;
            padding: 12px 24px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s;
            background: #131313;
            color: #7ee014;
            border: 1px #73ff00 solid;
            cursor: pointer;
            font-size: 1.1rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

            .back-btn:hover {
                background-color: #7ee014;;
                color:#131313;
                transform: translateY(-2px);
                box-shadow: 0 6px 12px rgba(0,0,0,0.2);
            }

        .leaderboard {
            width: 100%;
            padding: 20px;
            background-color: var(--secondary);
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.4);
            height: fit-content;
        }

            .leaderboard h3 {
                color: var(--primary);
                margin-bottom: 20px;
                text-align: center;
                font-size: 1.5rem;
                padding-bottom: 10px;
                border-bottom: 2px solid var(--primary);
            }

            .leaderboard ul {
                list-style: none;
                padding: 0;
                color: var(--text);
            }

            .leaderboard li {
                background-color: rgba(0,0,0,0.2);
                margin: 10px 0;
                padding: 12px;
                border-radius: 8px;
                transition: all 0.3s ease;
                display: flex;
                justify-content: space-between;
                overflow: scroll;
                text-overflow: ellipsis;
            }

            .leaderboard li::-webkit-scrollbar {
                width: 8px;
            }

            .leaderboard li::-webkit-scrollbar-track {
                background: rgba(0, 0, 0, 0.247);
            }

            .leaderboard li::-webkit-scrollbar-thumb {
                background: #7ee014;
                border-radius: 4px;
            }

                .leaderboard li:nth-child(1) {
                    background: linear-gradient(135deg, #ffd700, #ff9800);
                    color: var(--text-dark);
                    font-weight: bold;
                }

                .leaderboard li:nth-child(2) {
                    background: linear-gradient(135deg, #c0c0c0, #9e9e9e);
                }

                .leaderboard li:nth-child(3) {
                    background: linear-gradient(135deg, #cd7f32, #795548);
                }

                .leaderboard li:hover {
                    transform: translateX(5px);
                }

        .info-section {
            width: 100%;
            margin: 20px auto;
            background-color: var(--secondary-light);
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.4);
        }

        .info-row {
            display: flex;
            margin-bottom: 15px;
            align-items: flex-start;
            text-align: left;
        }

        .info-header {
            width: 100%;
            color: var(--primary);
            font-size: 1.2rem;
            font-weight: bold;
            padding-right: 20px;
        }

        .info-content {
            width: 100%;
            color: var(--text);
            font-size: 1.1rem;
            line-height: 1.5;
        }

        .score-display {
            font-size: 1.8rem;
            font-weight: bold;
            margin: 5px 0;
            color: var(--primary);
            text-shadow: 0 0 10px rgba(136, 255, 0, 0.3);
        }

        /* Модальные окна */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s;
        }

        .modal-content {
            background-color: var(--secondary-light);
            padding: 30px;
            border-radius: 15px;
            max-width: 500px;
            width: 90%;
            text-align: center;
            box-shadow: 0 10px 25px rgba(0,0,0,0.5);
            transform: translateY(-50px);
            animation: fadeInUp 0.4s forwards;
            position: relative;
        }

        .modal h3 {
            color: var(--primary);
            margin-bottom: 20px;
            font-size: 1.8rem;
        }

        .modal p {
            margin-bottom: 25px;
            font-size: 1.2rem;
            line-height: 1.6;
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: var(--text);
            font-size: 1.5rem;
            cursor: pointer;
            transition: transform 0.3s;
        }

            .modal-close:hover {
                transform: rotate(90deg);
            }

        .modal-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
        }

        .modal-btn {
            padding: 12px 24px;
            border-radius: 5px;
            border: none;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 1.1rem;
        }

        .modal-btn-primary {
            background-color: var(--primary);
            color: var(--text-dark);
        }

        .modal-btn-secondary {
            background-color: #666;
            color: white;
        }

        .modal-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        /* Анимации */
        @keyframes cardDeal {
            0% {
                transform: translateY(-100px) rotate(-10deg);
                opacity: 0;
            }

            100% {
                transform: translateY(0) rotate(0);
                opacity: 1;
            }
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }

            100% {
                transform: scale(1);
            }
        }

        .pulse {
            animation: pulse 1.5s infinite;
        }

        /* Адаптивность */
        @media (max-width: 1024px) {
            .main-content {
                flex-direction: column;
                align-items: center;
            }

            .container, .leaderboard {
                width: 100%;
                margin-right: 0;
            }

            .leaderboard {
                margin-top: 30px;
                max-width: 500px;
            }
        }

        @media (max-width: 768px) {
            .main-content {
                margin-top: 70px;
            }
            .info-row {
                flex-direction: column;
            }

            .info-header, .info-content {
                width: 100%;
                padding: 5px 0;
            }

            .info-header {
                margin-bottom: 5px;
            }

            .card {
                width: 70px;
                height: 105px;
                font-size: 1.5rem;
            }

            .card-value {
                font-size: 1.5rem;
            }

            .card-suit {
                font-size: 2rem;
            }

            .controls button {
                min-width: 120px;
                padding: 10px 15px;
            }
        }

        @media (max-width: 480px) {
            .card {
                width: 60px;
                height: 90px;
                margin: 5px;
                font-size: 1.3rem;
            }

            .card-value {
                font-size: 1.3rem;
            }

            .card-suit {
                font-size: 1.8rem;
            }

            h2 {
                font-size: 2.2rem;
            }

            p {
                font-size: 1.2rem;
            }

            .controls {
                flex-direction: column;
                align-items: center;
            }

                .controls button {
                    width: 100%;
                }
        }

        /* Специальные классы для состояний игры */
        .win-effect {
            animation: pulse 1s 3, fadeIn 1s;
            color: var(--success);
        }

        .lose-effect {
            animation: shake 0.5s, fadeIn 1s;
            color: var(--danger);
        }

        .draw-effect {
            color: var(--warning);
        }

        @keyframes shake {
            0%, 100% {
                transform: translateX(0);
            }

            10%, 30%, 50%, 70%, 90% {
                transform: translateX(-5px);
            }

            20%, 40%, 60%, 80% {
                transform: translateX(5px);
            }
        }

        /* Банк и ставка */
        .bank-display {
            display: flex;
            justify-content: space-between;
            width: 100%;
            max-width: 500px;
            margin-bottom: 20px;
        }

        .bank-item {
            background-color: rgba(0,0,0,0.2);
            padding: 15px;
            border-radius: 10px;
            flex: 1;
            margin: 0 5px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .bank-label {
            font-size: 0.9rem;
            color: #73ff00;
            margin-bottom: 5px;
        }

        .bank-value {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--primary);
        }
        .player-name {
            width: 100%;
            padding: 12px;
            margin: 15px 0;
            border-radius: 8px;
            border: 2px solid var(--primary);
            font-size: 1.2rem;
            text-align: center;
            background-color: rgba(255,255,255,0.1);
            color: var(--text);
            outline: none;
            transition: all 0.3s;
        }

        .player-name:focus {
            border-color: var(--accent);
            box-shadow: 0 0 10px rgba(208, 255, 0, 0.5);
        }
        
        /* Сплит контейнер */
        .split-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            width: 100%;
            margin: 10px 0;
        }
        
        .split-hand {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .split-label {
            font-size: 1rem;
            color: var(--primary);
            margin-bottom: 5px;
        }