body {
  background-color: #fffde7;
  font-family: Arial, sans-serif;
  margin: 40px;
}

.banner {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: inline-block;
  padding: 24px 36px;
  text-align: center;
}

.banner h1 {
  margin-top: 0;
  color: #333;
  font-size: 2rem;
  letter-spacing: 1px;
}

.banner table {
  border-collapse: collapse;
  margin-top: 16px;
  width: 100%;
}

.banner table td {
  border: 1px solid #000;
  padding: 10px 20px;
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  cursor: default;
}

.banner table td:first-child {
  cursor: pointer;
  font-weight: bold;
  color: #333;
  user-select: none;
}

.banner table td:first-child:hover {
  background-color: #f0f0f0;
}

/* Tic Tac Toe game */
#ttt-container {
  margin-top: 30px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.ttt-status {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #333;
}

.ttt-grid {
  display: inline-grid;
  grid-template-columns: repeat(3, 90px);
  grid-template-rows: repeat(3, 90px);
  gap: 6px;
}

.ttt-cell {
  width: 90px;
  height: 90px;
  font-size: 2.2rem;
  font-weight: bold;
  border: 2px solid #555;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.ttt-cell:hover:not(.taken) {
  background: #f5f5f5;
}

.ttt-cell.taken {
  cursor: default;
}

.ttt-reset {
  margin-top: 16px;
  padding: 8px 24px;
  font-size: 0.95rem;
  border: 1px solid #999;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.ttt-reset:hover {
  background: #eee;
}

.ttt-mode-toggle {
  display: inline-block;
  margin-top: 12px;
  margin-bottom: 10px;
  padding: 8px 24px;
  font-size: 0.95rem;
  border: 1px solid #999;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.ttt-mode-toggle:hover {
  background: #eee;
}
