
        * {
            box-sizing: border-box;
            user-select: none;
            -webkit-user-select: none;
        }
        body, html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            background-color: #07090e;
            font-family: 'Inter', sans-serif;
            color: #f1f5f9;
        }
        #canvas-container {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }
        canvas {
            display: block;
            width: 100%;
            height: 100%;
            outline: none;
        }
        /* Material Design 3 Glass Elevation */
        .md-surface {
            background: rgba(16, 19, 27, 0.78);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.11);
            box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 4px 12px -2px rgba(0, 0, 0, 0.4);
        }
        .md-chip {
            transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
        }
        .md-chip:hover:not(:disabled) {
            background: rgba(255, 255, 255, 0.12);
            transform: translateY(-1px);
        }
        .md-chip:active:not(:disabled) {
            transform: translateY(0px) scale(0.97);
        }
        .md-chip-active {
            background: rgba(212, 175, 55, 0.22) !important;
            border-color: rgba(212, 175, 55, 0.65) !important;
            color: #fde68a !important;
        }
        /* Custom subtle scrollbars for move history */
        ::-webkit-scrollbar {
            width: 5px;
            height: 5px;
        }
        ::-webkit-scrollbar-track {
            background: rgba(15, 23, 42, 0.3);
            border-radius: 8px;
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(148, 163, 184, 0.35);
            border-radius: 8px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: rgba(212, 175, 55, 0.6);
        }
        @keyframes pulseGlow {
            0%, 100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }
            50% { box-shadow: 0 0 28px rgba(239, 68, 68, 0.85); }
        }
        .check-banner {
            animation: pulseGlow 1.6s infinite ease-in-out;
        }
    