body {
  background: linear-gradient(135deg, #f8ffae 0%, #43c6ac 100%);
  font-family: 'Comic Sans MS', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 480px;
  margin: 32px auto;
  background: #fffbe6;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 24px 12px 18px 12px;
  text-align: center;
}

h1 {
  margin-bottom: 18px;
  color: #ff9800;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 2px;
}

.controls {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.controls label, .controls button {
  font-size: 1rem;
  color: #333;
}

#board {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  grid-template-rows: repeat(15, 1fr);
  gap: 2px;
  background: #ffe0b2;
  border: 4px solid #ff9800;
  border-radius: 12px;
  margin: 0 auto 16px auto;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  touch-action: manipulation;
}

.cell {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  background: #fffde7;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cell:hover {
  background: #ffe0b2;
}

.piece {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 80%;
  height: 80%;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  animation: drop 0.3s cubic-bezier(.68,-0.55,.27,1.55);
}

@keyframes drop {
  0% { transform: translate(-50%, -50%) scale(0.1); opacity: 0; }
  80% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.7); opacity: 1; }
}

.piece.black {
  background: radial-gradient(circle at 30% 30%, #444 60%, #222 100%);
  border: 2px solid #222;
}

.piece.white {
  background: radial-gradient(circle at 70% 70%, #fff 60%, #eee 100%);
  border: 2px solid #bbb;
}

.piece.win {
  box-shadow: 0 0 16px 4px #ffeb3b, 0 2px 8px rgba(0,0,0,0.18);
  border: 2px solid #ffeb3b;
}

#status {
  font-size: 1.1rem;
  color: #ff9800;
  margin-top: 8px;
  min-height: 24px;
}

@media (max-width: 600px) {
  .container {
    max-width: 98vw;
    padding: 8vw 2vw 4vw 2vw;
  }
  #board {
    max-width: 98vw;
  }
  h1 {
    font-size: 1.3rem;
  }
}