html,
            body {
                font-family: Arial, sans-serif;
                background-color: #333;
                color: #fff;
                margin: 0;
                padding: 0;
            }

            body {
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 10px;
            }

            #game-container {
                margin-top: 150px;
                width: 352px;
                height: 384px;
                overflow: auto;
                border: 1px solid #555;
            }

            #game {
                display: grid;
                grid-template-columns: repeat(100, 30px);
                gap: 2px;
                width: max-content;
            }

            .cell {
                width: 30px;
                height: 30px;
                background-color: #888;
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                font-weight: bold;
                user-select: none;
            }

            .revealed {
                background-color: #ccc;
                cursor: default;
            }

            .mine {
                background-color: red;
            }

            #overlay {
                position: fixed;
                margin-top: 240px;
                width: 320px;
                height: 320px;
                background-color: rgba(0, 0, 0, 0.7);
                display: none;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                z-index: 10;
            }

            #overlay h2 {
                color: #fff;
                font-size: 32px;
                margin-bottom: 10px;
            }

            #overlay p {
                margin: 5px 0 20px;
                font-size: 18px;
            }

            #overlay button {
                padding: 10px 20px;
                font-size: 16px;
                margin: 5px;
                cursor: pointer;
            }

            #minimap {
                top: 95px;
                width: 120px;
                height: 120px;
                background: rgba(255, 255, 255, 0.1);
                border: 1px solid #888;
                z-index: 5;
                margin-bottom: -8rem;
            }

            #minimap canvas {
                width: 100%;
                height: 100%;
                display: block;
                background: #222;
                border-radius: 4px;
                pointer-events: none;
            }

            body > button:hover {
                background-color: rgba(255, 255, 255, 0.1);
            }