*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overscroll-behavior: none;
  background: #111;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

body {
  margin: 0;
}

#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #000;
}

#game-frame {
  flex: 1 1 auto;
  border: none;
  width: 100%;
  height: 100%;
}

/* Bottom tab switcher */

#game-switcher {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  padding: env(safe-area-inset-bottom, 10px) 10px 10px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
}

#game-switcher .tab {
  flex: 1 1 0;
  border: none;
  border-radius: 999px;
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 600;
  color: #f5f5f5;
  background: #252525;
  text-align: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#game-switcher .tab.active {
  background: #f4b000;
  color: #111;
}

#game-switcher .tab:active {
  transform: scale(0.97);
}

/* Ensure controls remain tappable on small heights */
@media (max-height: 580px) {
  #game-switcher .tab {
    padding-block: 8px;
    font-size: 12px;
  }
}

