        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html,
        body {
            height: 100%;
            overflow: hidden;
            touch-action: none;
        }



        .xlgame-bg-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            opacity: 1;
        }

        .xlgame-card {
            width: 100%;
            max-width: 500px;
            height: 100%;
            max-height: 100vh;
            background: rgba(10, 6, 25, .88);
            backdrop-filter: blur(18px);
            display: flex;
            flex-direction: column;
            position: relative;
            z-index: 10;
            box-shadow: 0 0 40px rgba(255, 184, 0, .25), inset 0 0 30px rgba(255, 0, 128, .15);
            border-left: 2px solid rgba(255, 215, 0, .3);
            border-right: 2px solid rgba(255, 215, 0, .3);
        }

        .xlgame-header {
            padding: 14px 16px 10px;
            text-align: center;
            background: linear-gradient(180deg, #0a0018 0%, #1a0a2e 100%);
            flex-shrink: 0;
            border-bottom: 3px solid #ffd700;
            position: relative;
            overflow: hidden;
        }

        .xlgame-header::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 200%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 215, 0, .25), transparent);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% {
                left: -100%
            }

            100% {
                left: 100%
            }
        }

        .xlgame-logo img {
            width: 140px;
            filter: drop-shadow(0 0 16px #ffd700);
            vertical-align: middle;
        }

        .xlgame-subtitle {
            font-size: 13px;
            font-weight: 700;
            color: #ffd700;
            text-shadow: 0 0 12px rgba(255, 215, 0, .5);
            letter-spacing: 1px;
            margin-top: 2px;
        }

        .xlgame-game-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            padding: 8px 12px 12px;
            gap: 8px;
        }


        @keyframes borderPulse {
            0% {
                border-color: #b8860b;
                box-shadow: inset 0 0 40px rgba(255, 215, 0, .1), 0 0 15px rgba(255, 215, 0, .05);
            }

            100% {
                border-color: #ffd700;
                box-shadow: inset 0 0 60px rgba(255, 215, 0, .25), 0 0 35px rgba(255, 215, 0, .15);
            }
        }

        #xlgame-fishCanvas {
            display: block;
            width: 100%;
            height: auto;
            min-height: 260px;
            border-radius: 14px;
            background: transparent;
            cursor: crosshair;
            touch-action: none;
        }

        .cannon-btn-group {
            position: absolute;
            bottom: 12px;
            z-index: 15;
            display: flex;
            gap: 4px;
            pointer-events: none;
        }

        .cannon-btn-group button {
            pointer-events: auto;
            padding: 3px 10px;
            border-radius: 14px;
            font-size: 13px;
            font-weight: 900;
            color: #fff;
            border: 2px solid #ffd700;
            background: rgba(0, 0, 0, 0.65);
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
        }

        .cannon-btn-group button:active {
            transform: scale(0.85);
        }

        .cannon-btn-group button.active {
            background: #ffd700;
            color: #000;
            border-color: #ffd700;
            box-shadow: 0 0 20px #ffd700;
        }

        .cannon-btn-group button.mult {
            border-color: #ff00cc;
            color: #ff00cc;
        }

        .cannon-btn-group button.mult.active {
            background: #ff00cc;
            color: #fff;
            border-color: #ff00cc;
            box-shadow: 0 0 20px #ff00cc;
        }

        .cannon-btn-left {
            left: 10px;
        }

        .cannon-btn-right {
            right: 10px;
        }

        .xlgame-stats {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 8px;
            flex-shrink: 0;
        }

        .xlgame-box {
            padding: 10px 6px;
            border-radius: 16px;
            text-align: center;
            background: linear-gradient(145deg, #1f0d3a, #0d0420);
            border: 2px solid #b8860b;
            box-shadow: 0 4px 12px rgba(0, 0, 0, .6);
        }

        .xlgame-box .xlgame-title {
            font-size: 11px;
            font-weight: 700;
            color: #ffd700;
            text-transform: uppercase;
            letter-spacing: .3px;
        }

        .xlgame-box .xlgame-value {
            font-size: 28px;
            font-weight: 900;
            color: #00ffcc;
            text-shadow: 0 0 16px rgba(0, 255, 204, .6);
            transition: all .2s;
            line-height: 1.2;
        }

        .xlgame-value2 {
            color: #f0f0f0 !important;
            text-shadow: 0 0 12px rgba(255, 255, 255, .3) !important;
        }

        .xlgame-target {
            color: #ff6b6b !important;
            text-shadow: 0 0 20px rgba(255, 50, 50, .8) !important;
            animation: pulseText .5s infinite alternate;
        }

        @keyframes pulseText {
            0% {
                transform: scale(1)
            }

            100% {
                transform: scale(1.06)
            }
        }

        .xlgame-boss-hp-wrap {
            margin-top: 4px;
            height: 10px;
            background: rgba(0, 0, 0, .6);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #ff6b6b;
        }

        .xlgame-boss-hp-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #ff0040, #ff6b00, #ffcc00);
            border-radius: 8px;
            transition: width .25s ease;
        }

        .xlgame-actions {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 8px;
            flex-shrink: 0;
        }

        .xlgame-btn {
            height: 46px;
            border: none;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 800;
            color: #fff;
            cursor: pointer;
            transition: transform .15s cubic-bezier(.4, 0, .2, 1);
            box-shadow: 0 4px 14px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .25);
            text-transform: uppercase;
            letter-spacing: .5px;
            animation: btnGlow 2s infinite alternate;
        }

        @keyframes btnGlow {
            0% {
                filter: brightness(1)
            }

            100% {
                filter: brightness(1.2)
            }
        }

        .xlgame-btn:active {
            transform: scale(.92) !important;
        }

        .xlgame-clear {
            background: linear-gradient(135deg, #ff0055, #ff8800);
        }

        .xlgame-new {
            background: linear-gradient(135deg, #00cc66, #006633);
        }

        .xlgame-boss-btn {
            background: linear-gradient(135deg, #ff00cc, #660066);
            font-size: 12px;
        }

        .xlgame-message {
            padding: 8px 12px;
            border-radius: 18px;
            background: rgba(255, 215, 0, .08);
            border: 2px dashed #ffd700;
            text-align: center;
            min-height: 48px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .xlgame-ad-blink {
            animation: blinkText .4s infinite alternate;
            color: #ffd700 !important;
            font-weight: 900;
            font-size: 15px;
            text-shadow: 0 0 12px #ff0055, 0 0 24px #ffd700;
        }

        @keyframes blinkText {
            0% {
                opacity: .5;
                transform: scale(.96)
            }

            100% {
                opacity: 1;
                transform: scale(1.04)
            }
        }

        .xlgame-leaderboard {
            padding: 8px 10px;
            background: linear-gradient(145deg, #18052c, #080012);
            border: 2px solid #b8860b;
            border-radius: 16px;
            flex-shrink: 0;
        }

        .xlgame-lb-title {
            font-size: 11px;
            font-weight: 800;
            color: #ffd700;
            text-align: center;
            margin-bottom: 4px;
            text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
        }

        .xlgame-lb-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 11px;
            color: #eee;
        }

        .xlgame-lb-table th {
            color: #00ffcc;
            border-bottom: 1px solid rgba(255, 255, 255, .1);
            padding: 3px 2px;
            font-weight: 700;
        }

        .xlgame-lb-table td {
            padding: 4px 2px;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, .04);
        }

        .xlgame-rules {
            background: rgba(0, 0, 0, .4);
            border-radius: 16px;
            padding: 12px 14px;
            flex-shrink: 0;
            border: 1px solid rgba(255, 215, 0, .15);
        }

        .xlgame-rules h3 {
            color: #ffd700;
            font-size: 13px;
            font-weight: 800;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
            letter-spacing: .5px;
        }

        .xlgame-rules ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .xlgame-rules ul li {
            font-size: 11px;
            color: #ccc;
            line-height: 1.4;
            padding-left: 4px;
        }

        .xlgame-rules ul li b {
            color: #ffd700;
        }


        .xlgame-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .88);
            justify-content: center;
            align-items: center;
            z-index: 2000;
            backdrop-filter: blur(15px);
            animation: fadeIn .25s ease-out;
        }

        .xlgame-overlay.show {
            display: flex;
        }

        @keyframes fadeIn {
            0% {
                opacity: 0
            }

            100% {
                opacity: 1
            }
        }

        .xlgame-dialog {
            position: relative;
            background: radial-gradient(circle at 50% 30%, #2a1a08 0%, #110900 70%, #000 100%);
            border: 4px solid #ffe87c;
            padding: 32px 24px;
            border-radius: 28px;
            text-align: center;
            box-shadow: 0 0 80px rgba(255, 215, 0, 0.8), inset 0 0 35px rgba(255, 215, 0, 0.4), 0 0 15px #ff5500;
            animation: casinoPop .5s cubic-bezier(.175, .885, .32, 1.275);
            max-width: 380px;
            width: 90%;
            overflow: hidden;
        }

        @media (max-width: 767px) {
            .xlgame-dialog {
                margin-top: -100px;
            }
        }

        .xlgame-dialog::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: conic-gradient(transparent, rgba(255, 215, 0, 0.3), transparent 30%);
            animation: rotateCasino 4s linear infinite;
            pointer-events: none;
        }

        @keyframes rotateCasino {
            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes casinoPop {
            0% {
                transform: scale(.2) translateY(-100px);
                opacity: 0
            }

            100% {
                transform: scale(1) translateY(0);
                opacity: 1
            }
        }

        .casino-jackpot-header {
            font-size: 32px;
            font-weight: 900;
            background: linear-gradient(180deg, #fff 0%, #ffe600 35%, #ff8800 70%, #fff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
            letter-spacing: 2px;
            text-transform: uppercase;
            margin: 10px 0 6px;
            animation: jackpotGlow .8s infinite alternate;
        }

        @keyframes jackpotGlow {
            0% {
                filter: drop-shadow(0 0 10px #ffd700);
                transform: scale(0.98);
            }

            100% {
                filter: drop-shadow(0 0 30px #ff0055);
                transform: scale(1.05);
            }
        }

        .xlgame-dialog .icon-big {
            font-size: 72px;
            filter: drop-shadow(0 0 25px #ffd700);
            animation: bounceCasino 0.8s infinite alternate cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        @keyframes bounceCasino {
            0% {
                transform: scale(1) rotate(-5deg);
            }

            100% {
                transform: scale(1.2) rotate(5deg);
            }
        }

        .xlgame-dialog .sub {
            color: #00ffcc;
            font-size: 15px;
            font-weight: 700;
            margin: 8px 0 20px;
            text-shadow: 0 0 12px rgba(0, 255, 204, .6);
            line-height: 1.5;
            z-index: 2;
            position: relative;
        }

        .xlgame-dialog .btn-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
            align-items: center;
            width: 100%;
            position: relative;
            z-index: 2;
        }

        .xlgame-dialog .btn {
            padding: 14px 24px;
            border-radius: 30px;
            font-weight: 900;
            font-size: 16px;
            border: none;
            cursor: pointer;
            transition: transform .15s, filter .2s;
            box-shadow: 0 8px 25px rgba(0, 0, 0, .8), inset 0 3px 0 rgba(255, 255, 255, .5);
            width: 100%;
            max-width: 280px;
            text-decoration: none;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .xlgame-dialog .btn:active {
            transform: scale(0.94);
        }

        .btn-reward {
            background: linear-gradient(180deg, #fff2a3 0%, #ffd700 30%, #ff6600 80%, #992200 100%) !important;
            border: 2px solid #fff !important;
            text-shadow: 0 2px 4px #4a0d00;
            animation: goldPulse 1.5s infinite alternate;
        }

        @keyframes goldPulse {
            0% {
                box-shadow: 0 0 15px #ffd700;
            }

            100% {
                box-shadow: 0 0 35px #ff5500, 0 0 15px #fff;
            }
        }

        .btn-retry {
            background: linear-gradient(180deg, #a6f0ff 0%, #00ddff 30%, #0055ff 80%, #001166 100%) !important;
            border: 2px solid #fff !important;
            text-shadow: 0 2px 4px #001a4d;
        }

        .btn-next {
            background: linear-gradient(180deg, #ffb3ff 0%, #ff00cc 30%, #990099 80%, #3b003b 100%) !important;
            border: 2px solid #fff !important;
            text-shadow: 0 2px 4px #330033;
        }

        .xlgame-dialog .btn a {
            text-decoration: none;
            color: #fff;
            display: block;
            width: 100%;
            height: 100%;
        }

        .xlgame-effect-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 2100;
        }

        @media (max-width:480px) {
            .xlgame-header {
                padding: 10px 10px 6px;
            }

            .xlgame-logo img {
                width: 110px;
            }

            .xlgame-subtitle {
                font-size: 11px;
            }

            .xlgame-game-area {
                padding: 6px 8px 8px;
                gap: 6px;
            }

            .xlgame-grid-wrap {
                padding: 4px;
                min-height: 200px;
            }

            #xlgame-fishCanvas {
                min-height: 190px;
            }

            .xlgame-box .xlgame-value {
                font-size: 22px;
            }

            .xlgame-box .xlgame-title {
                font-size: 10px;
            }

            .xlgame-btn {
                height: 40px;
                font-size: 12px;
            }

            .xlgame-dialog {
                padding: 22px 16px;
            }

            .casino-jackpot-header {
                font-size: 24px;
            }

            .xlgame-rules ul li {
                font-size: 10px;
            }

            .xlgame-stats {
                grid-template-columns: 1fr 1fr 1fr;
                gap: 5px;
            }

            .xlgame-actions {
                grid-template-columns: 1fr 1fr 1fr;
                gap: 5px;
            }

            .cannon-btn-group button {
                font-size: 11px;
                padding: 2px 8px;
            }
        }

        @media (max-width:380px) {
            .xlgame-box .xlgame-value {
                font-size: 18px;
            }

            .xlgame-btn {
                font-size: 10px;
                height: 36px;
            }
        }

        .xlgame-game-area::-webkit-scrollbar {
            width: 3px;
        }

        .xlgame-game-area::-webkit-scrollbar-track {
            background: transparent;
        }

        .xlgame-game-area::-webkit-scrollbar-thumb {
            background: #ffd700;
            border-radius: 6px;
        }