.game-back-button {
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px 0 11px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  color: hsl(var(--muted-foreground));
  background: #f4efe470;
  font: 600 .72rem/1 var(--app-font-sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .2s, background-color .2s, color .2s, border-color .2s;
  display: inline-flex;
  white-space: nowrap;
}

.game-back-button:hover,
.game-back-button:focus-visible {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / .35);
  background: hsl(var(--card));
  transform: translateX(-2px);
}

.game-back-button:focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 3px;
}

.game-back-arrow {
  color: hsl(var(--primary));
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 0;
}

.modal-home-button {
  margin-right: auto;
}

.modal-home-button svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.computer-only-setting-hidden {
  display: none !important;
}

/* Keep the side marker's disc class visible inside its padded token. */
.player-token .piece {
  display: block;
  flex: 0 0 auto;
  width: 100%;
}

@media (max-width: 820px) {
  .game-back-button {
    width: 36px;
    min-height: 36px;
    justify-content: center;
    padding: 0;
  }

  .game-back-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}