/* Retro Neon Arcade Styling for Pac-Man */
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --neon-blue: #00d4ff;
  --neon-yellow: #ffeb3b;
  --neon-pink: #ff4081;
}

body {
  font-family: 'Press Start 2P', monospace;
  background-color: #000;
  color: #fff;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* CRT Scanline Simulation */
.crt-lines {
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.5) 50%
  );
  background-size: 100% 4px;
}

/* CRT Vignette Depth */
.crt-vignette {
  background: radial-gradient(
    circle at center,
    transparent 55%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

/* Attract screen: the cabinet is a lit monitor, not a modal on a void. */
#modal-start.title-screen {
  background: #000108;
  padding: 18px 14px;
  overflow-x: hidden;
  align-items: center;
  justify-content: flex-start;
}
#modal-start.title-screen::before,
#modal-start.title-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: 0 !important;
  flex: none !important;
  pointer-events: none;
}
#modal-start.title-screen::before {
  z-index: 0;
  background-color: #000108;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='310' viewBox='0 0 28 31'><rect width='28' height='31' fill='%23000108'/><rect x='11' y='13' width='6' height='3' fill='%23071422'/><path fill='%234ad4ff' fill-opacity='0.78' d='M0 0h28v1h-28zM0 1h1v1h-1zM13 1h2v1h-2zM27 1h1v1h-1zM0 2h1v1h-1zM2 2h4v1h-4zM7 2h5v1h-5zM13 2h2v1h-2zM16 2h5v1h-5zM22 2h4v1h-4zM27 2h1v1h-1zM0 3h1v1h-1zM5 3h1v1h-1zM7 3h1v1h-1zM11 3h1v1h-1zM13 3h2v1h-2zM16 3h1v1h-1zM20 3h1v1h-1zM22 3h1v1h-1zM27 3h1v1h-1zM0 4h1v1h-1zM2 4h4v1h-4zM7 4h5v1h-5zM13 4h2v1h-2zM16 4h5v1h-5zM22 4h4v1h-4zM27 4h1v1h-1zM0 5h1v1h-1zM27 5h1v1h-1zM0 6h1v1h-1zM2 6h4v1h-4zM7 6h2v1h-2zM10 6h8v1h-8zM19 6h2v1h-2zM22 6h4v1h-4zM27 6h1v1h-1zM0 7h1v1h-1zM2 7h4v1h-4zM7 7h2v1h-2zM10 7h8v1h-8zM19 7h2v1h-2zM22 7h4v1h-4zM27 7h1v1h-1zM0 8h1v1h-1zM7 8h2v1h-2zM13 8h2v1h-2zM19 8h2v1h-2zM27 8h1v1h-1zM0 9h6v1h-6zM7 9h5v1h-5zM13 9h2v1h-2zM16 9h5v1h-5zM22 9h6v1h-6zM5 10h1v1h-1zM7 10h5v1h-5zM13 10h2v1h-2zM16 10h5v1h-5zM22 10h1v1h-1zM5 11h1v1h-1zM7 11h2v1h-2zM19 11h2v1h-2zM22 11h1v1h-1zM5 12h1v1h-1zM7 12h2v1h-2zM10 12h3v1h-3zM15 12h3v1h-3zM19 12h2v1h-2zM22 12h1v1h-1zM0 13h6v1h-6zM7 13h2v1h-2zM10 13h1v1h-1zM17 13h1v1h-1zM19 13h2v1h-2zM22 13h6v1h-6zM10 14h1v1h-1zM17 14h1v1h-1zM0 15h6v1h-6zM7 15h2v1h-2zM10 15h1v1h-1zM17 15h1v1h-1zM19 15h2v1h-2zM22 15h6v1h-6zM5 16h1v1h-1zM7 16h2v1h-2zM10 16h8v1h-8zM19 16h2v1h-2zM22 16h1v1h-1zM5 17h1v1h-1zM7 17h2v1h-2zM19 17h2v1h-2zM22 17h1v1h-1zM5 18h1v1h-1zM7 18h2v1h-2zM10 18h8v1h-8zM19 18h2v1h-2zM22 18h1v1h-1zM0 19h6v1h-6zM7 19h2v1h-2zM10 19h8v1h-8zM19 19h2v1h-2zM22 19h6v1h-6zM0 20h1v1h-1zM13 20h2v1h-2zM27 20h1v1h-1zM0 21h1v1h-1zM2 21h4v1h-4zM7 21h5v1h-5zM13 21h2v1h-2zM16 21h5v1h-5zM22 21h4v1h-4zM27 21h1v1h-1zM0 22h1v1h-1zM2 22h4v1h-4zM7 22h5v1h-5zM13 22h2v1h-2zM16 22h5v1h-5zM22 22h4v1h-4zM27 22h1v1h-1zM0 23h1v1h-1zM4 23h2v1h-2zM22 23h2v1h-2zM27 23h1v1h-1zM0 24h3v1h-3zM4 24h2v1h-2zM7 24h2v1h-2zM10 24h8v1h-8zM19 24h2v1h-2zM22 24h2v1h-2zM25 24h3v1h-3zM0 25h3v1h-3zM4 25h2v1h-2zM7 25h2v1h-2zM10 25h8v1h-8zM19 25h2v1h-2zM22 25h2v1h-2zM25 25h3v1h-3zM0 26h1v1h-1zM7 26h2v1h-2zM13 26h2v1h-2zM19 26h2v1h-2zM27 26h1v1h-1zM0 27h1v1h-1zM2 27h10v1h-10zM13 27h2v1h-2zM16 27h10v1h-10zM27 27h1v1h-1zM0 28h1v1h-1zM2 28h10v1h-10zM13 28h2v1h-2zM16 28h10v1h-10zM27 28h1v1h-1zM0 29h1v1h-1zM27 29h1v1h-1zM0 30h28v1h-28z'/><rect x='13.05' y='12.25' width='1.9' height='0.45' fill='%23ff8ad4'/><g fill='%23ffe9a0' fill-opacity='0.9'><circle cx='2.5' cy='1.5' r='0.13'/><circle cx='5.5' cy='1.5' r='0.13'/><circle cx='8.5' cy='1.5' r='0.13'/><circle cx='11.5' cy='1.5' r='0.13'/><circle cx='16.5' cy='1.5' r='0.13'/><circle cx='19.5' cy='1.5' r='0.13'/><circle cx='22.5' cy='1.5' r='0.13'/><circle cx='25.5' cy='1.5' r='0.13'/><circle cx='3.5' cy='5.5' r='0.13'/><circle cx='8.5' cy='5.5' r='0.13'/><circle cx='14.5' cy='5.5' r='0.13'/><circle cx='20.5' cy='5.5' r='0.13'/><circle cx='24.5' cy='5.5' r='0.13'/><circle cx='2.5' cy='20.5' r='0.13'/><circle cx='6.5' cy='20.5' r='0.13'/><circle cx='10.5' cy='20.5' r='0.13'/><circle cx='17.5' cy='20.5' r='0.13'/><circle cx='21.5' cy='20.5' r='0.13'/><circle cx='25.5' cy='20.5' r='0.13'/><circle cx='4.5' cy='29.5' r='0.13'/><circle cx='9.5' cy='29.5' r='0.13'/><circle cx='14.5' cy='29.5' r='0.13'/><circle cx='19.5' cy='29.5' r='0.13'/><circle cx='24.5' cy='29.5' r='0.13'/></g><g fill='%23ffe14a'><circle cx='1.5' cy='3.5' r='0.4'/><circle cx='26.5' cy='3.5' r='0.4'/><circle cx='1.5' cy='23.5' r='0.4'/><circle cx='26.5' cy='23.5' r='0.4'/></g></svg>");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  filter: drop-shadow(0 0 18px rgba(40, 180, 255, 0.28));
}
#modal-start.title-screen::after {
  z-index: 1;
  background:
    radial-gradient(ellipse 52% 46% at 50% 46%, rgba(0, 80, 150, 0.16), transparent 68%),
    radial-gradient(ellipse 86% 76% at 50% 48%, transparent 26%, rgba(0, 0, 0, 0.28) 58%, rgba(0, 0, 0, 0.86) 100%);
}

.title-card {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  max-width: 520px;
  margin-inline: auto;
  margin-block: auto;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  padding: 26px clamp(18px, 4vw, 40px) 22px;
  border-radius: 16px;
  border: 2px solid #3ad7ff;
  background: #070912;
  color: #e8eef8;
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(140, 240, 255, 0.22),
    inset 0 0 36px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(0, 190, 255, 0.42),
    0 0 72px rgba(0, 140, 220, 0.18),
    0 18px 48px rgba(0, 0, 0, 0.55);
}
.title-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.07) 0px,
      rgba(255, 255, 255, 0.07) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(130px 96px at 0% 0%, rgba(90, 230, 255, 0.34), transparent 72%),
    radial-gradient(130px 96px at 100% 0%, rgba(90, 230, 255, 0.28), transparent 72%),
    radial-gradient(150px 110px at 100% 100%, rgba(90, 230, 255, 0.2), transparent 72%),
    radial-gradient(150px 110px at 0% 100%, rgba(255, 214, 90, 0.16), transparent 72%);
}

.marquee {
  width: 100%;
  margin: 0 0 16px;
}
.marquee-title {
  margin: 0;
  color: #ffe34a;
  font-size: clamp(28px, 10cqi, 48px);
  line-height: 1.15;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  text-shadow:
    0 0 6px rgba(255, 244, 160, 1),
    0 0 16px rgba(250, 204, 21, 0.95),
    0 0 34px rgba(250, 180, 20, 0.72),
    0 0 58px rgba(250, 150, 0, 0.4);
}
.marquee-rule {
  width: min(300px, 78%);
  height: 1px;
  margin: 12px auto 10px;
  background: linear-gradient(90deg, transparent, rgba(180, 250, 255, 0.15), #e8feff, rgba(180, 250, 255, 0.15), transparent);
  box-shadow: 0 0 8px #22d3ee, 0 0 16px rgba(34, 211, 238, 0.75);
}
.marquee-sub {
  margin: 0;
  color: #e8feff;
  font-size: clamp(9px, 2.5cqi, 13px);
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  line-height: 1.4;
  text-shadow:
    0 0 6px rgba(160, 250, 255, 1),
    0 0 14px rgba(34, 211, 238, 0.95),
    0 0 28px rgba(0, 200, 255, 0.6);
}

.ghost-roster {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  background: rgba(0, 0, 0, 0.5);
  color: #e8eef8;
}
.ghost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
}
.ghost-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ghost-glyph {
  font-size: 22px;
  width: 1em;
  height: 1.1em;
  flex: 0 0 auto;
  position: relative;
  display: block;
  background: currentColor;
  filter: drop-shadow(0 0 4px currentColor);
  clip-path: polygon(50% 0%, 82% 10%, 100% 36%, 100% 100%, 84% 78%, 68% 100%, 50% 78%, 32% 100%, 16% 78%, 0% 100%, 0% 36%, 18% 10%);
}
.ghost-glyph::after {
  content: "";
  position: absolute;
  top: 0.32em;
  left: 0.2em;
  width: 0.16em;
  height: 0.2em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0.4em 0 0 #fff;
}
.ghost-nick {
  margin-left: auto;
  flex: 0 1 auto;
  color: #7ec8dc;
  font-size: 8px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-align: right;
  white-space: nowrap;
}

.score-legend {
  width: 100%;
  margin: 0 0 18px;
  color: #c5cdd8;
  font-size: clamp(6.5px, 2.15cqi, 8.5px);
  line-height: 1.7;
}
.points-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  white-space: nowrap;
}
.points-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #ffe9a0;
}
.points-chip-power {
  color: #ffe14a;
  text-shadow: 0 0 8px rgba(255, 225, 74, 0.45);
}
.points-sep {
  color: #64748b;
  flex: 0 0 auto;
}
.pip {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #ffe14a;
  box-shadow: 0 0 6px #ffe14a;
}
.pip-power {
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #fff 28%, #ffe14a 72%);
  box-shadow: 0 0 8px #ffe14a;
}
.points-ghosts {
  margin: 8px 0 0;
  color: #8eb6ff;
  text-align: center;
}
.points-keep {
  white-space: nowrap;
}
.controls-line {
  width: 100%;
  margin: 8px 0 0;
  color: #9aa4b5;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0;
  line-height: 1.5;
  font-size: clamp(5.5px, 1.75cqi, 8px);
}

.play-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
  margin: 0;
  padding: 16px 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffe98a 0%, #ffd23a 42%, #f0b400 100%);
  color: #1a1203;
  font-family: inherit;
  font-size: clamp(11px, 2.8cqi, 14px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: playCtaPulse 2.8s ease-in-out infinite;
  transition: transform 90ms ease, filter 90ms ease, box-shadow 90ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 2px 0 rgba(160, 100, 0, 0.35),
    0 10px 22px rgba(80, 50, 0, 0.32),
    0 0 18px rgba(250, 204, 21, 0.38);
}
.play-btn::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 2px;
  height: 42%;
  border-radius: 8px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
}
.play-btn:active {
  animation: none;
  transform: translateY(2px);
  filter: brightness(0.78);
  background: linear-gradient(180deg, #e6c44a 0%, #c9920a 100%);
  color: #1a1203;
  box-shadow:
    inset 0 2px 6px rgba(90, 50, 0, 0.4),
    0 4px 10px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(250, 204, 21, 0.2);
}
.play-btn:active::before {
  opacity: 0.3;
}
.play-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
@keyframes playCtaPulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.7),
      0 2px 0 rgba(160, 100, 0, 0.3),
      0 8px 18px rgba(80, 50, 0, 0.28),
      0 0 14px rgba(250, 204, 21, 0.28);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.88),
      0 2px 0 rgba(160, 100, 0, 0.3),
      0 10px 24px rgba(80, 50, 0, 0.34),
      0 0 30px rgba(250, 204, 21, 0.75);
  }
}

@media (min-width: 720px) {
  .ghost-glyph { font-size: 26px; }
  .ghost-name { font-size: 12px; }
  .ghost-nick { font-size: 9px; }
  .ghost-roster { padding: 16px 20px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .play-btn { animation: none; }
}

/* Arcade D-Pad Cross Grid Layout */
#arcade-dpad-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2px 0 4px;
  touch-action: none;
}

.dpad-cross {
  display: grid !important;
  grid-template-columns: 58px 58px 58px !important;
  grid-template-rows: 50px 50px 50px !important;
  gap: 4px !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  position: relative !important;
  padding: 5px !important;
  border-radius: 18px !important;
  background: radial-gradient(circle at center, #151d30 0%, #070913 100%) !important;
  border: 2px solid rgba(0, 212, 255, 0.5) !important;
  box-shadow: 
    inset 0 0 14px rgba(0, 0, 0, 0.9),
    0 0 16px rgba(0, 212, 255, 0.3),
    0 6px 18px rgba(0, 0, 0, 0.8) !important;
}

.dpad-btn-up {
  grid-column: 2 !important;
  grid-row: 1 !important;
  border-radius: 12px 12px 4px 4px !important;
}

.dpad-btn-left {
  grid-column: 1 !important;
  grid-row: 2 !important;
  border-radius: 12px 4px 4px 12px !important;
}

.dpad-hub {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #080b15 !important;
  border-radius: 8px !important;
  pointer-events: none !important;
  border: 1px solid rgba(0, 212, 255, 0.35) !important;
}

.dpad-hub-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #00ffff 0%, #0284c7 60%, #082f49 100%);
  box-shadow: 0 0 8px #00ffff, 0 0 14px rgba(6, 182, 212, 0.6);
  animation: pulseCore 2.4s ease-in-out infinite;
}

@keyframes pulseCore {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 14px #00ffff; }
}

.dpad-btn-right {
  grid-column: 3 !important;
  grid-row: 2 !important;
  border-radius: 4px 12px 12px 4px !important;
}

.dpad-btn-down {
  grid-column: 2 !important;
  grid-row: 3 !important;
  border-radius: 4px 4px 12px 12px !important;
}

/* Individual D-Pad Buttons Styling */
[data-meeem-game-controls] .dpad-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: linear-gradient(180deg, #22324f 0%, #151e32 55%, #0f1625 100%) !important;
  border: 2px solid #00d4ff !important;
  color: #38bdf8 !important;
  cursor: pointer !important;
  touch-action: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.7),
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(0, 212, 255, 0.3) !important;
  transition: transform 60ms ease, background 60ms ease, border-color 60ms ease, box-shadow 60ms ease, color 60ms ease !important;
}

/* Active / Pressed state */
[data-meeem-game-controls] .dpad-btn:active,
[data-meeem-game-controls] .dpad-btn.is-active {
  transform: scale(0.94) translateY(1px) !important;
  background: linear-gradient(180deg, #facc15 0%, #ca8a04 100%) !important;
  border-color: #fef08a !important;
  color: #1a1202 !important;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.4),
    0 0 16px rgba(250, 204, 21, 0.85) !important;
}

.dpad-icon {
  width: 22px;
  height: 22px;
  pointer-events: none;
  filter: drop-shadow(0 0 3px currentColor);
}

/* Modal entrance */
@keyframes popIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.animate-bounce-once {
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Pac-Man Life Mini Icon */
.pacman-life-icon {
  width: 14px;
  height: 14px;
  background: #ffeb3b;
  border-radius: 50%;
  clip-path: polygon(100% 0%, 50% 50%, 100% 100%, 0% 100%, 0% 0%);
  display: inline-block;
}

/* Dynamic Ghost Mode Pill */
#hud-ghost-mode {
  text-shadow: 0 0 6px currentColor;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  user-select: none;
}

/* Lock the shell to the real viewport. 100dvh/100vh can be taller than a
   short editor preview and shove the maze above the visible area. */
html, body {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}
#game-root {
  height: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Stage fills the flex remainder; the canvas is sized to that box, never a
   fixed 448×496 that Phaser FIT then centers with a negative margin. */
[data-meeem-game-stage] {
  position: relative !important;
}
#game-stage {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: hidden !important;
  display: block !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
#game-stage canvas {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-height: 520px) {
  #status-row { display: none !important; }
  #modal-start {
    padding: 8px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #modal-start > div {
    padding: 12px !important;
    margin: 0 !important;
  }
  .marquee-title {
    font-size: 20px !important;
    letter-spacing: 0.12em !important;
    padding-left: 0.12em !important;
  }
  .marquee-rule { margin: 6px auto !important; }
  .marquee-sub {
    font-size: 8px !important;
    margin: 0 0 8px !important;
    letter-spacing: 0.16em !important;
    padding-left: 0.16em !important;
  }
  .marquee { margin-bottom: 8px !important; }
  .play-btn {
    padding: 10px 12px !important;
    animation: none;
  }
  [data-meeem-game-hud] {
    padding-block: 2px !important;
  }
  [data-meeem-game-controls] {
    padding: 2px 4px !important;
    max-height: none !important;
    overflow: visible !important;
  }
  #arcade-dpad-container {
    padding: 0 !important;
  }
  .dpad-cross {
    grid-template-columns: 48px 48px 48px !important;
    grid-template-rows: 46px 46px 46px !important;
    gap: 3px !important;
    padding: 3px !important;
    border-radius: 16px !important;
  }
  .dpad-icon {
    width: 20px !important;
    height: 20px !important;
  }
  [data-meeem-game-stage] {
    min-height: 0 !important;
  }
}