body {
  margin: 0;
  font-family: Arial, sans-serif;
  text-align: center;
  background: #f0f0f0;
}

h1, h2 {
  margin-bottom: 20px;
}

button {
  padding: 10px 20px;
  font-size: 1.2em;
  border: none;
  border-radius: 10px;
  background: #4CAF50;
  color: white;
  cursor: pointer;
  margin: 10px;
}

button:hover {
  background: #45a049;
}

.back-btn {
  background: #ff6666;
}

#start-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  align-items: center;
}

#game-list {
  padding: 20px;
}

.game-item {
  display: flex;
  align-items: center;
  margin: 15px 0;
  cursor: pointer;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.game-item .icon {
  font-size: 2.5em;
  margin-right: 15px;
}

#ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  gap: 5px;
  justify-content: center;
  margin: auto;
}

.cell {
  width: 80px;
  height: 80px;
  background: #fff;
  border: 2px solid #333;
  font-size: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

#spinner-container {
  margin: 20px;
}

.spinner-input-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

#spinner-wheel {
  font-size: 2em;
  margin-top: 15px;
}

#calc-input {
  font-size: 1.2em;
  padding: 5px;
}

#checkers-board {
  display: grid;
  grid-template-columns: repeat(8, 50px);
  grid-template-rows: repeat(8, 50px);
  gap: 0;
  margin: auto;
}

.square {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.light {
  background: #eee;
}

.dark {
  background: #333;
}

.piece {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.red {
  background: red;
}

.blue {
  background: blue;
}

.highlight {
  box-shadow: 0 0 10px 5px yellow;
}

@media (max-width: 600px) {
  #ttt-board {
    grid-template-columns: repeat(3, 60px);
  }
  .cell {
    width: 60px;
    height: 60px;
    font-size: 1.5em;
  }
  #checkers-board {
    grid-template-columns: repeat(8, 40px);
    grid-template-rows: repeat(8, 40px);
  }
  .square {
    width: 40px;
    height: 40px;
  }
  .piece {
    width: 30px;
    height: 30px;
  }
}
