/* Global styles for all games */
html,
body {
  overflow: hidden !important;
  height: 100% !important;
  margin: 0;
  padding: 0;
  background-color: #000000;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
  overscroll-behavior: none;
  /* Prevent text selection and browser copy overlay to maintain premium app experience */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* ─── Game stage ────────────────────────────────────────────────────────────── */
#gameStage {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  bottom: env(safe-area-inset-bottom, 0px);
  left: env(safe-area-inset-left, 0px);
  right: env(safe-area-inset-right, 0px);
}

#gameRulesPanel,
#historyPanel {
  display: none;
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  bottom: env(safe-area-inset-bottom, 0px);
  left: env(safe-area-inset-left, 0px);
  right: env(safe-area-inset-right, 0px);
}


/* Preloader styles */
#preload {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#preload-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloadercenter {
  width: 40%;
  object-fit: contain;
}

/* Input styles */
#parent-input {
  display: none;
  position: absolute;
}

.input-container {
  border: 2px solid #ffffff;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-right: 12px;
  border-radius: 0.5rem;
  margin-top: -1.3rem;
}

#text-input {
  line-height: 18px;
  font-weight: 600;
  background-color: transparent;
  color: #ffffff;
  font-size: 18px;
  font-family: 'Avenir Next Bold';
  outline: none;
  border: none;
}