html,
        body {
            margin: 0;
            height: 100%;
            background: #111;
            color: #eee;
            font-family: system-ui, sans-serif;
        }

        canvas {
            display: block;
            margin: 0 auto;
            background: #1b1b1b;
            width: 100vw;
            height: 100vh;
        }

        .overlay {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.6);
            z-index: 10;
        }

        .card {
            background: #222;
            border: 1px solid #444;
            border-radius: 10px;
            padding: 16px;
            width: min(520px, 92vw);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
        }

        .grid {
            display: grid;
            gap: 10px;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        }

        .btn {
            background: #2e7d32;
            border: none;
            color: #fff;
            padding: 10px;
            border-radius: 8px;
            cursor: pointer;
        }

        .btn:hover {
            filter: brightness(1.1);
        }

        .title {
            font-weight: 700;
            margin-bottom: 8px;
        }

        .row {
            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: space-between;
            margin-top: 8px;
        }

        .hud {
            position: fixed;
            right: 12px;
            top: 12px;
            display: flex;
            gap: 8px;
            align-items: center;
            z-index: 7
        }