        * { margin:0; padding:0; box-sizing:border-box; }

        body {
            background: #030508;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Segoe UI', sans-serif;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
            overflow-x: hidden;
        }

        .crash-wrapper {
            width: 100%;
            max-width: 360px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        /* ── TOP HEADER ── */
        .crash-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .crash-title {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .crash-title-icon {
            width: 34px;
            height: 34px;
            background: rgba(0,242,254,0.1);
            border: 1px solid rgba(0,242,254,0.3);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

        .crash-title h2 {
            font-size: 14px;
            font-weight: 900;
            color: #fff;
            letter-spacing: 1.5px;
            text-transform: uppercase;
        }

        .crash-title p {
            font-size: 9px;
            color: #475569;
            letter-spacing: 0.5px;
            margin-top: 1px;
        }

        .total-xp-badge {
            text-align: right;
            background: rgba(0,0,0,0.4);
            border: 1px solid rgba(0,242,254,0.15);
            border-radius: 10px;
            padding: 6px 12px;
        }

        .total-xp-badge .label {
            font-size: 8px;
            color: #475569;
            letter-spacing: 1px;
            font-weight: bold;
        }

        .total-xp-badge .value {
            font-size: 16px;
            font-weight: 900;
            color: #10b981;
            font-family: monospace;
            text-shadow: 0 0 8px rgba(16,185,129,0.4);
        }

        /* ── CANVAS AREA ── */
        .canvas-container {
            position: relative;
            width: 100%;
            height: 200px;
            background: linear-gradient(180deg, #030810 0%, #050a14 100%);
            border: 1px solid rgba(0,242,254,0.12);
            border-radius: 16px;
            overflow: hidden;
        }

        /* Grid lines via CSS */
        .canvas-container::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(0,242,254,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0,242,254,0.03) 1px, transparent 1px);
            background-size: 30px 30px;
            pointer-events: none;
        }

        .canvas-container canvas {
            width: 100%;
            height: 100%;
            display: block;
        }

        /* Live XP counter overlay */
        .live-counter {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            pointer-events: none;
        }

        .live-counter .xp-num {
            font-size: 38px;
            font-weight: 900;
            color: #fff;
            font-family: monospace;
            text-shadow: 0 0 20px rgba(0,242,254,0.3);
            line-height: 1;
        }

        .live-counter .xp-label {
            font-size: 11px;
            color: #475569;
            letter-spacing: 2px;
            margin-top: 4px;
        }

        /* Corner badges */
        .canvas-badge {
            position: absolute;
            top: 10px;
            font-size: 9px;
            font-weight: bold;
            letter-spacing: 1px;
            padding: 3px 8px;
            border-radius: 20px;
        }

        .badge-left {
            left: 10px;
            background: rgba(0,242,254,0.1);
            border: 1px solid rgba(0,242,254,0.2);
            color: #00f2fe;
        }

        .badge-right {
            right: 10px;
            background: rgba(255,51,0,0.1);
            border: 1px solid rgba(255,51,0,0.2);
            color: #ff3300;
        }

        /* ── STATS ROW ── */
        .stats-row {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 8px;
        }

        .stat-box {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
            padding: 10px;
            text-align: center;
        }

        .stat-box .stat-val {
            font-size: 15px;
            font-weight: 900;
            font-family: monospace;
        }

        .stat-box .stat-lbl {
            font-size: 8px;
            color: #475569;
            letter-spacing: 0.5px;
            margin-top: 3px;
            text-transform: uppercase;
        }

        /* ── STATUS LOG ── */
        .status-bar {
            background: rgba(0,0,0,0.4);
            border: 1px solid rgba(255,255,255,0.05);
            border-radius: 10px;
            padding: 8px 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #475569;
            flex-shrink: 0;
            transition: all 0.3s;
        }

        .status-dot.running { background: #00f2fe; box-shadow: 0 0 6px #00f2fe; animation: blink 1s infinite; }
        .status-dot.won { background: #10b981; box-shadow: 0 0 6px #10b981; }
        .status-dot.lost { background: #ff3300; box-shadow: 0 0 6px #ff3300; }

        @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

        .status-text {
            font-size: 10px;
            font-weight: bold;
            color: #64748b;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        /* ── MAIN BUTTON ── */
        .crash-btn {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 14px;
            font-weight: 900;
            font-size: 15px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            transition: all 0.25s ease;
            position: relative;
            overflow: hidden;
        }

        .crash-btn::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
            transform: translateX(-100%);
            transition: transform 0.4s;
        }

        .crash-btn:active::after { transform: translateX(100%); }
        .crash-btn:active { transform: scale(0.97); }

        .btn-idle {
            background: linear-gradient(135deg, #00f2fe, #4facfe);
            color: #030810;
            box-shadow: 0 0 20px rgba(0,242,254,0.3), 0 4px 15px rgba(0,0,0,0.3);
        }

        .btn-running {
            background: linear-gradient(135deg, #ffaa00, #ff6b00);
            color: #0a0500;
            box-shadow: 0 0 20px rgba(255,140,0,0.4), 0 4px 15px rgba(0,0,0,0.3);
        }

        .btn-disabled {
            background: rgba(255,255,255,0.05);
            color: #334155;
            cursor: not-allowed;
            box-shadow: none;
        }

        /* ── MULTIPLIER HISTORY ── */
        .history-label {
            font-size: 9px;
            color: #334155;
            letter-spacing: 1.5px;
            font-weight: bold;
            text-transform: uppercase;
            margin-bottom: 6px;
        }

        .history-chips {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .chip {
            font-size: 10px;
            font-weight: 800;
            padding: 4px 10px;
            border-radius: 20px;
            font-family: monospace;
        }

        .chip-win {
            background: rgba(16,185,129,0.12);
            border: 1px solid rgba(16,185,129,0.3);
            color: #10b981;
        }

        .chip-loss {
            background: rgba(255,51,0,0.1);
            border: 1px solid rgba(255,51,0,0.25);
            color: #ff4444;
        }

        /* ── CRASHED OVERLAY ── */
        .crashed-overlay {
            position: absolute;
            inset: 0;
            background: rgba(255,30,0,0.08);
            display: none;
            align-items: center;
            justify-content: center;
            border-radius: 16px;
        }

        .crashed-text {
            font-size: 28px;
            font-weight: 900;
            color: #ff3300;
            text-shadow: 0 0 20px rgba(255,51,0,0.6);
            letter-spacing: 3px;
            animation: crashPulse 0.5s ease;
        }

        @keyframes crashPulse {
            0% { transform: scale(1.4); opacity:0; }
            100% { transform: scale(1); opacity:1; }
        }

        /* Login overlay */
        #login-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(3,5,8,0.96);
            z-index: 9999;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            text-align: center;
            padding: 30px;
        }