html,
body {
  overflow-x: hidden;
}


button,
#startLocalBtn,
#startOnlineBtn,
.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,
.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;
}

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

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

#startLocalBtn,
#startOnlineBtn {
  position: static;
  left: auto;
  right: auto;
  width: min(92vw, 560px);
  max-width: 92vw;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 18px;
  font-size: 1.3rem;
  letter-spacing: 0.8px;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  transform: none !important;
  translate: none !important;
}

#startLocalBtn:hover,
#startLocalBtn:focus,
#startLocalBtn:active,
#startOnlineBtn:hover,
#startOnlineBtn:focus,
#startOnlineBtn:active {
  transform: none !important;
  translate: none !important;
}

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

.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;
}

@media (hover: none), (pointer: coarse) {
  #startLocalBtn:hover,
  #startOnlineBtn:hover,
  .primary-btn:hover,
  .secondary-btn:hover,
  .success-btn:hover,
  .danger-btn:hover,
  .ghost-btn:hover,
  .tile:hover:not(:disabled),
  #startLocalBtn:focus,
  #startOnlineBtn:focus,
  .primary-btn:focus,
  .secondary-btn:focus,
  .success-btn:focus,
  .danger-btn:focus,
  .ghost-btn:focus,
  #startLocalBtn:active,
  #startOnlineBtn: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,
  .team-card::before,
  .team-card.active::after {
    animation: none;
    transition: none;
  }
}


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

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