:root{--SCALE_FACTOR:2;--SPRITE_TILE_SIZE:8px;--SCREEN_TILE_SIZE:calc(var(--SCALE_FACTOR) * var(--SPRITE_TILE_SIZE))}@font-face{font-family:Joystix;src:url(/pacman-resources/Joystix.ttf)format("truetype")}.BoardWrapper{--BOARD_COLUMNS:28;--BOARD_ROWS:31;--BOARD_WIDTH:calc(var(--BOARD_COLUMNS) * var(--SCREEN_TILE_SIZE));--BOARD_HEIGHT:calc(var(--BOARD_ROWS) * var(--SCREEN_TILE_SIZE));width:var(--BOARD_WIDTH);height:var(--BOARD_HEIGHT);background-color:#000;position:relative;overflow:hidden}.Board{width:var(--BOARD_WIDTH);height:var(--BOARD_HEIGHT);transform-origin:0 0;position:relative;overflow:hidden}@media (max-width:592px){.BoardWrapper{--BOARD_AVAILABLE_WIDTH:calc(100vw - 32px);width:var(--BOARD_AVAILABLE_WIDTH);height:calc(var(--BOARD_HEIGHT) * (var(--BOARD_AVAILABLE_WIDTH) / var(--BOARD_WIDTH)))}.Board{transform:scale(calc(var(--BOARD_AVAILABLE_WIDTH) / var(--BOARD_WIDTH)))}}.Grid{z-index:1000;opacity:.8;border-bottom:1px solid #a9a9a9;border-right:1px solid #a9a9a9;display:grid;position:absolute}.GridCell{z-index:1000;box-sizing:border-box;text-align:center;opacity:.8;border-top:1px solid #a9a9a9;border-left:1px solid #a9a9a9;width:24px;height:24px;font-size:10px}.Score{color:#fff;justify-content:space-between;min-width:170px;font-family:Joystix,monospace;font-size:18px;display:inline-flex}.GameOver{color:#ff0;text-align:center;width:220px;font-family:Joystix,monospace;font-size:24px;position:absolute;top:332px;left:170px}.Sprite{transform-origin:0 0;pointer-events:none;background:url(/pacman-resources/arcade_pacman_sprites.png);display:block;position:absolute}.Sprite-ghost{width:16px;height:16px}.Sprite-ghost-0-direction-RIGHT-phase-0{background-position:-456px -64px}.Sprite-ghost-0-direction-RIGHT-phase-1{background-position:-472px -64px}.Sprite-ghost-0-direction-LEFT-phase-0{background-position:-488px -64px}.Sprite-ghost-0-direction-LEFT-phase-1{background-position:-504px -64px}.Sprite-ghost-0-direction-UP-phase-0{background-position:-520px -64px}.Sprite-ghost-0-direction-UP-phase-1{background-position:-536px -64px}.Sprite-ghost-0-direction-DOWN-phase-0{background-position:-552px -64px}.Sprite-ghost-0-direction-DOWN-phase-1{background-position:-568px -64px}.Sprite-frightened-ghost-color-blue-phase-0{background-position:-584px -64px}.Sprite-frightened-ghost-color-blue-phase-1{background-position:-600px -64px}.Sprite-ghost-1-direction-RIGHT-phase-0{background-position:-456px -80px}.Sprite-ghost-1-direction-RIGHT-phase-1{background-position:-472px -80px}.Sprite-ghost-1-direction-LEFT-phase-0{background-position:-488px -80px}.Sprite-ghost-1-direction-LEFT-phase-1{background-position:-504px -80px}.Sprite-ghost-1-direction-UP-phase-0{background-position:-520px -80px}.Sprite-ghost-1-direction-UP-phase-1{background-position:-536px -80px}.Sprite-ghost-1-direction-DOWN-phase-0{background-position:-552px -80px}.Sprite-ghost-1-direction-DOWN-phase-1{background-position:-568px -80px}.Sprite-ghost-2-direction-RIGHT-phase-0{background-position:-456px -96px}.Sprite-ghost-2-direction-RIGHT-phase-1{background-position:-472px -96px}.Sprite-ghost-2-direction-LEFT-phase-0{background-position:-488px -96px}.Sprite-ghost-2-direction-LEFT-phase-1{background-position:-504px -96px}.Sprite-ghost-2-direction-UP-phase-0{background-position:-520px -96px}.Sprite-ghost-2-direction-UP-phase-1{background-position:-536px -96px}.Sprite-ghost-2-direction-DOWN-phase-0{background-position:-552px -96px}.Sprite-ghost-2-direction-DOWN-phase-1{background-position:-568px -96px}.Sprite-ghost-3-direction-RIGHT-phase-0{background-position:-456px -112px}.Sprite-ghost-3-direction-RIGHT-phase-1{background-position:-472px -112px}.Sprite-ghost-3-direction-LEFT-phase-0{background-position:-488px -112px}.Sprite-ghost-3-direction-LEFT-phase-1{background-position:-504px -112px}.Sprite-ghost-3-direction-UP-phase-0{background-position:-520px -112px}.Sprite-ghost-3-direction-UP-phase-1{background-position:-536px -112px}.Sprite-ghost-3-direction-DOWN-phase-0{background-position:-552px -112px}.Sprite-ghost-3-direction-DOWN-phase-1{background-position:-568px -112px}.Sprite-frightened-ghost-time-0-phase-0{background-position:-584px -64px}.Sprite-frightened-ghost-time-0-phase-1{background-position:-600px -64px}.Sprite-frightened-ghost-time-1-phase-0{background-position:-616px -64px}.Sprite-frightened-ghost-time-1-phase-1{background-position:-632px -64px}.Sprite-dead-ghost-direction-RIGHT{background-position:-584px -80px}.Sprite-dead-ghost-direction-LEFT{background-position:-600px -80px}.Sprite-dead-ghost-direction-UP{background-position:-616px -80px}.Sprite-dead-ghost-direction-DOWN{background-position:-632px -80px}.Sprite-pacman{width:16px;height:16px}.Sprite-pacman-direction-RIGHT-phase-0{background-position:-456px 0}.Sprite-pacman-direction-RIGHT-phase-1{background-position:-472px 0}.Sprite-pacman-direction-RIGHT-phase-2,.Sprite-pacman-direction-LEFT-phase-2,.Sprite-pacman-direction-UP-phase-2,.Sprite-pacman-direction-DOWN-phase-2{background-position:-488px 0}.Sprite-pacman-direction-LEFT-phase-0{background-position:-456px -16px}.Sprite-pacman-direction-LEFT-phase-1{background-position:-472px -16px}.Sprite-pacman-direction-UP-phase-0{background-position:-456px -32px}.Sprite-pacman-direction-UP-phase-1{background-position:-472px -32px}.Sprite-pacman-direction-DOWN-phase-0{background-position:-456px -48px}.Sprite-pacman-direction-DOWN-phase-1{background-position:-472px -48px}.Sprite-dying-pacman{width:16px;height:16px}.Sprite-dying-pacman-phase-0{background-position:-488px 0}.Sprite-dying-pacman-phase-1{background-position:-504px 0}.Sprite-dying-pacman-phase-2{background-position:-520px 0}.Sprite-dying-pacman-phase-3{background-position:-536px 0}.Sprite-dying-pacman-phase-4{background-position:-552px 0}.Sprite-dying-pacman-phase-5{background-position:-568px 0}.Sprite-dying-pacman-phase-6{background-position:-584px 0}.Sprite-dying-pacman-phase-7{background-position:-600px 0}.Sprite-dying-pacman-phase-8{background-position:-616px 0}.Sprite-dying-pacman-phase-9{background-position:-632px 0}.Sprite-dying-pacman-phase-10{background-position:-648px 0}.Sprite-dying-pacman-phase-11{background-position:-664px 0}.Sprite-dying-pacman-phase-12{background-position:-664px -16px}.Sprite-maze{width:calc(14 * 16px * var(--SCALE_FACTOR));height:calc(15.5 * 16px * var(--SCALE_FACTOR));background:url(/pacman-resources/arcade_pacman_sprites-2.png)}.Sprite-maze-state-full{background-position:0 0}.Sprite-maze-state-empty{background-position:-228px 0}.Sprite-basic-pill{background-position:-8px -8px;width:8px;height:8px}.Sprite-energizer{background-position:-8px -24px;width:8px;height:8px}
