body {
  margin: 0;
  background: #f4f1ea;
  transition: background-color 0.25s ease;
}

body.dark-mode {
  background: #101614;
}

.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  padding: 10px 14px;
  border: 1px solid #f4f1ea;
  border-radius: 999px;
  background: #18211c;
  color: #f4f1ea;
  cursor: pointer;
  font:
    700 12px/1 Arial,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.dark-mode .theme-toggle {
  border-color: #c7f36b;
  background: #c7f36b;
  color: #18211c;
}

.theme-toggle:focus-visible {
  outline: 3px solid #ff785f;
  outline-offset: 3px;
}

.back-button {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 20;
  padding: 10px 14px;
  border: 1px solid #f4f1ea;
  border-radius: 999px;
  background: #18211c;
  color: #f4f1ea;
  cursor: pointer;
  font:
    700 12px/1 Arial,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
}

body.dark-mode .back-button {
  border-color: #c7f36b;
  background: #c7f36b;
  color: #18211c;
}

.back-button:focus-visible {
  outline: 3px solid #ff785f;
  outline-offset: 3px;
}

/* Game mode button styles */
.game-mode-btn {
  margin: 5px;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
}

.game-mode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.game-mode-btn.selected {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  border: 2px solid #ffd700;
}

.game-mode-btn.selected::after {
  content: "✓";
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ffd700;
  color: black;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

#singlePlayerBtn {
  background: #00ff00;
  color: black;
}

#hostGameBtn {
  background: #0080ff;
  color: white;
}
