html,
body {
  overflow-x: hidden;
}

#gameScreen {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}




button,
#startLocalBtn,
#startOnlineBtn,
#homeGroupOneDeviceBtn,
#homeGroupMultiDeviceBtn,
#homeGroupDeviceBackBtn,
#homeGroupTwoTeamsBtn,
#homeGroupThreeTeamsBtn,
#homeGroupTeamsBackBtn,
#resumeGameBtn,
#discardResumeGameBtn,
#instructionsBtn,
#contactBtn,
#installGuideBtn,
.primary-btn,
.secondary-btn,
.success-btn,
.danger-btn,
.ghost-btn {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#startLocalBtn::before,
#startLocalBtn::after,
#startOnlineBtn::before,
#startOnlineBtn::after,
#gamesHubBtn::before,
#gamesHubBtn::after,
#homeGroupOneDeviceBtn::before,
#homeGroupOneDeviceBtn::after,
#homeGroupMultiDeviceBtn::before,
#homeGroupMultiDeviceBtn::after,
#homeGroupDeviceBackBtn::before,
#homeGroupDeviceBackBtn::after,
#homeGroupTwoTeamsBtn::before,
#homeGroupTwoTeamsBtn::after,
#homeGroupThreeTeamsBtn::before,
#homeGroupThreeTeamsBtn::after,
#homeGroupTeamsBackBtn::before,
#homeGroupTeamsBackBtn::after,
#resumeGameBtn::before,
#resumeGameBtn::after,
#discardResumeGameBtn::before,
#discardResumeGameBtn::after,
#instructionsBtn::before,
#instructionsBtn::after,
#contactBtn::before,
#contactBtn::after,
#installGuideBtn::before,
#installGuideBtn::after,
.primary-btn::before,
.primary-btn::after,
.secondary-btn::before,
.secondary-btn::after,
.success-btn::before,
.success-btn::after,
.danger-btn::before,
.danger-btn::after,
.ghost-btn::before,
.ghost-btn::after {
  pointer-events: none;
}

.container,
.board,
.game-container {
  width: 100%;
  max-width: 100%;
  padding-left: 10px;
  padding-right: 10px;
}

.app,
.sidebar,
main,
.board-wrap,
.modal-content,
.category-modal-content,
.podium-content {
  width: 100%;
  max-width: 100%;
}

.app {
  padding: 0.45rem;
  gap: 0.55rem;
}

@media (max-width: 700px) {
  #gameScreen {
    padding-top: 0.55rem;
  }

  .game-contact-btn {
    padding: 0.38rem 0.72rem;
    margin: 0;
    max-width: 100%;
    font-size: 0.8rem;
  }

  .game-home-btn {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 0.66rem 0.92rem;
    margin: 0;
    font-size: 0.9rem;
  }
}

.sidebar {
  grid-template-columns: 1fr;
}

.team-card,
.status-card {
  min-width: 0;
}

#startLocalBtn,
#startOnlineBtn,
#homeGroupOneDeviceBtn,
#homeGroupMultiDeviceBtn,
#homeGroupDeviceBackBtn,
#homeGroupTwoTeamsBtn,
#homeGroupThreeTeamsBtn,
#homeGroupTeamsBackBtn,
#resumeGameBtn,
#discardResumeGameBtn,
#instructionsBtn,
#contactBtn,
#installGuideBtn {
  position: static;
  width: min(92vw, 560px);
  max-width: 92vw;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 16px;
  font-size: 1.16rem;
  letter-spacing: 0.8px;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  transform: none !important;
  translate: none !important;
}

#gamesHubBtn {
  margin-top: 6px;
  width: min(92vw, 560px);
  max-width: 92vw;
  min-height: 58px;
  padding: 10px 16px;
  border-color: rgba(189, 209, 255, 0.44);
  background: linear-gradient(160deg, rgba(26, 41, 88, 0.95) 0%, rgba(13, 24, 56, 0.98) 100%);
  box-shadow:
    0 10px 22px rgba(1, 7, 24, 0.42),
    0 0 0 1px rgba(170, 198, 255, 0.22) inset;
}

#gamesHubBtn .games-hub-btn__title {
  font-size: 1.16rem;
}

#startLocalBtn,
#startOnlineBtn,
#gamesHubBtn,
#homeGroupOneDeviceBtn,
#homeGroupMultiDeviceBtn,
#homeGroupDeviceBackBtn,
#homeGroupTwoTeamsBtn,
#homeGroupThreeTeamsBtn,
#homeGroupTeamsBackBtn {
  min-height: 58px;
}

#instructionsBtn,
#contactBtn,
#installGuideBtn {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 9px 12px;
  font-size: clamp(0.9rem, 3.1vw, 0.98rem);
  min-height: 44px;
}

#startLocalBtn:hover,
#startLocalBtn:focus,
#startLocalBtn:active,
#startOnlineBtn:hover,
#startOnlineBtn:focus,
#startOnlineBtn:active,
#gamesHubBtn:hover,
#gamesHubBtn:focus,
#gamesHubBtn:active,
#homeGroupOneDeviceBtn:hover,
#homeGroupOneDeviceBtn:focus,
#homeGroupOneDeviceBtn:active,
#homeGroupMultiDeviceBtn:hover,
#homeGroupMultiDeviceBtn:focus,
#homeGroupMultiDeviceBtn:active,
#homeGroupDeviceBackBtn:hover,
#homeGroupDeviceBackBtn:focus,
#homeGroupDeviceBackBtn:active,
#homeGroupTwoTeamsBtn:hover,
#homeGroupTwoTeamsBtn:focus,
#homeGroupTwoTeamsBtn:active,
#homeGroupThreeTeamsBtn:hover,
#homeGroupThreeTeamsBtn:focus,
#homeGroupThreeTeamsBtn:active,
#homeGroupTeamsBackBtn:hover,
#homeGroupTeamsBackBtn:focus,
#homeGroupTeamsBackBtn:active,
#instructionsBtn:hover,
#instructionsBtn:focus,
#instructionsBtn:active,
#contactBtn:hover,
#contactBtn:focus,
#contactBtn:active,
#installGuideBtn:hover,
#installGuideBtn:focus,
#installGuideBtn:active {
  transform: none !important;
  translate: none !important;
}

.start-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 0;
}

.play-flow-shell {
  width: min(94vw, 560px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-flow-step,
.home-secondary-actions {
  width: 100%;
}

.resume-game-prompt {
  width: min(100%, calc(100vw - 20px));
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0.7rem;
  box-sizing: border-box;
}

.home-secondary-actions {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  margin-inline: auto;
}

.hero-quick-intro {
  margin-top: 10px;
  padding: 0.64rem 0.72rem;
}

.hero-quick-intro p {
  font-size: 0.9rem;
}

.hero-lead {
  width: min(92vw, 560px);
  margin-bottom: 0.62rem;
  font-size: 0.94rem;
  line-height: 1.66;
}

.hero-value-points {
  gap: 0.42rem;
  margin-bottom: 0.68rem;
}

.hero-pill {
  font-size: 0.78rem;
  padding: 0.3rem 0.62rem;
}

#homeGroupDeviceBackBtn,
#homeGroupTeamsBackBtn {
  min-height: 46px;
  font-size: 1rem;
}

@media (max-width: 700px) and (max-height: 780px) and (orientation: portrait) {
  .hero-section {
    min-height: auto;
    padding-top: clamp(4.1rem, 11.5vh, 5.25rem);
  }
}

.board-wrap {
  padding: 0.45rem;
  overflow-x: auto;
}

.board {
  --board-col-width: clamp(100px, 28vw, 128px);
  grid-auto-rows: minmax(70px, auto);
  gap: 0.32rem;
}

.board-cell {
  min-height: 70px;
  padding: 0.35rem;
}

.category {
  font-size: 0.82rem;
  line-height: 1.2;
}

.tile {
  font-size: 1.05rem;
}

.modal {
  padding: 0.45rem;
}

.modal-content {
  padding: 0.75rem;
  max-height: 92vh;
}

#questionText {
  font-size: 1.1rem;
  line-height: 1.6;
}

.modal-actions {
  flex-direction: column;
  position: static;
}

.modal-actions > button,
#newGameBtn,
#podiumNewGameBtn {
  width: 100%;
}

.score-adjustments {
  flex-wrap: wrap;
}

.score-adjustments .adjust-btn {
  flex: 1 1 calc(50% - 0.2rem);
}

.choices-list,
.podium-board {
  grid-template-columns: 1fr;
}

.result-share-actions {
  grid-template-columns: 1fr;
}

@media (hover: none), (pointer: coarse) {
  #startLocalBtn:hover,
  #startOnlineBtn:hover,
  #gamesHubBtn:hover,
  #instructionsBtn:hover,
  #contactBtn:hover,
  #installGuideBtn:hover,
  .primary-btn:hover,
  .secondary-btn:hover,
  .success-btn:hover,
  .danger-btn:hover,
  .ghost-btn:hover,
  .tile:hover:not(:disabled),
  #startLocalBtn:focus,
  #startOnlineBtn:focus,
  #gamesHubBtn:focus,
  #instructionsBtn:focus,
  #contactBtn:focus,
  #installGuideBtn:focus,
  .primary-btn:focus,
  .secondary-btn:focus,
  .success-btn:focus,
  .danger-btn:focus,
  .ghost-btn:focus,
  #startLocalBtn:active,
  #startOnlineBtn:active,
  #gamesHubBtn:active,
  #instructionsBtn:active,
  #contactBtn:active,
  #installGuideBtn:active,
  .primary-btn:active,
  .secondary-btn:active,
  .success-btn:active,
  .danger-btn:active,
  .ghost-btn:active {
    transform: none !important;
    translate: none !important;
    box-shadow: none;
    filter: none;
  }

  .tile,
  .primary-btn,
  .secondary-btn,
  .success-btn,
  .danger-btn,
  .ghost-btn,
  #startLocalBtn,
  #startOnlineBtn,
  #gamesHubBtn,
  #instructionsBtn,
  #contactBtn,
  #installGuideBtn,
  .team-card::before,
  .team-card.active::after {
    animation: none;
    transition: none;
  }
}


.online-code-box {
  flex-direction: column;
  align-items: stretch;
}

.online-team-count-actions {
  grid-template-columns: 1fr;
}

.online-code-box .secondary-btn {
  width: 100%;
}


.local-team-count-actions {
  grid-template-columns: 1fr;
}

/* Keep map questions paint/compositing as light as possible on iPhone/mobile WebKit */
.question-media.map-question-media {
  display: block;
}

.question-media.map-question-media .question-image-viewport {
  box-shadow: none;
  border-radius: 8px;
  border-color: rgba(148, 178, 255, 0.22);
}

.question-media.map-question-media #questionImage.map-question-image {
  border-radius: 8px;
  contain: none;
  transform: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#questionVideo {
  max-height: min(48vh, 320px);
  border-radius: 12px;
}
