        :root {
            /* Using colors from the previous versions for a classic look */
            --pacman-color: #ffd700;
            --wall-color: #0000ff;
            --maze-line-color: #00ffff;
            --dot-color: #ffcc00;
            --bg-color: #000000;
            --info-color: #ffffff;
            --ghost-red: #ff0000;
            --ghost-pink: #ffc0cb;
            --ghost-cyan: #00ffff;
            --ghost-orange: #ffaa00;
        }

        body {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            background-color: var(--bg-color);
            font-family: 'Press Start 2P', cursive;
            color: var(--info-color);
            user-select: none;
            overflow: hidden;
            font-size: 0.75rem; /* Adjusted for classic aesthetic */
        }

        .game-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 10px;
            background-color: var(--bg-color);
            /* Using border for maze boundary instead of box-shadow */
            border: 2px solid var(--wall-color); 
            max-width: 540px;
            margin: 10px;
        }

        .game-info {
            display: flex;
            justify-content: space-between;
            width: 100%;
            max-width: 525px;
            padding: 5px 0;
            font-size: 1em;
            margin-bottom: 10px;
        }

        .level-display {
            width: 100%;
            text-align: center;
            font-size: 1.1em;
            margin-bottom: 5px;
            color: var(--pacman-color);
        }

        canvas {
            /* Using solid blue border from previous version for consistency, but often omitted in arcade clones */
            border: 4px solid var(--wall-color); 
            background-color: var(--bg-color);
            box-shadow: 0 0 10px rgba(0, 0, 255, 0.5);
        }

        .controls {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            max-width: 400px;
            margin-top: 20px;
        }

        .dpad-row {
            display: flex;
            justify-content: center;
            margin-bottom: 5px;
        }

        .control-button {
            background-color: #333; /* Adjusted for arcade look */
            color: var(--pacman-color);
            border: 2px solid var(--pacman-color);
            padding: 8px 12px;
            margin: 3px;
            font-size: 0.9rem;
            cursor: pointer;
            border-radius: 2px;
            box-shadow: 0 2px #888;
            transition: all 0.05s ease;
            font-family: 'Press Start 2P', cursive;
        }

        .control-button:active {
            box-shadow: 0 0px #888;
            transform: translateY(2px);
        }

        #start-button {
            background-color: var(--pacman-color);
            color: var(--bg-color);
            padding: 10px 20px;
            font-size: 1rem;
            margin-top: 15px;
            border: 3px solid #fff;
            box-shadow: 0 5px #ff8800;
        }

        #start-button:active {
            box-shadow: 0 0px #ff8800;
            transform: translateY(5px);
        }

        .game-overlay {
            position: absolute;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 10;
            background-color: rgba(0, 0, 0, 0.95); /* Slightly darker overlay */
            text-align: center;
            border-radius: 0;
            border: 5px solid var(--wall-color); 
        }

        .overlay-content {
            padding: 20px 40px;
            border: 3px dashed var(--pacman-color);
            box-shadow: 0 0 20px var(--pacman-color);
        }

        .overlay-content h1 {
            font-size: 1.8rem;
            margin-bottom: 10px;
            color: var(--pacman-color);
        }

        .overlay-content p {
            font-size: 0.8rem;
            margin-bottom: 20px;
            line-height: 1.5;
            color: var(--info-color);
        }

        #audio-warning {
            color: #ff4444;
            font-size: 0.6rem;
            margin-top: 10px;
            display: none;
        }
    body
{
   background-color: #FFFFFF;
   color: #000000;
   font-family: Arial;
   font-weight: normal;
   font-size: 13px;
   line-height: 1.1875;
   margin: 0;
   padding: 0;
}
