body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #222;
  color: #fff;
}
#game-container {
  max-width: 500px;
  margin: 40px auto;
  padding: 20px;
  background: #333;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}
#controls {
  margin-bottom: 16px;
}
#controls button {
  margin: 0 8px;
  padding: 8px 16px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background: #444;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
#controls button:hover {
  background: #666;
}
#board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 2px;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  background: #1a4d1a;
  border-radius: 12px;
  margin-bottom: 16px;
}
.cell {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #2e7d32;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.cell:hover {
  background: #388e3c;
}
.disc {
  width: 70%;
  height: 70%;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  perspective: 600px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(.4,2,.3,1), box-shadow 0.3s;
}
.disc-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
  top: 0;
  left: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.disc-face.black {
  background: #222;
}
.disc-face.white {
  background: #fafafa;
}
.disc.flipping {
  transform: rotateY(180deg);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.disc .disc-face.back {
  transform: rotateY(180deg);
}
#status {
  font-size: 1.1rem;
  margin-top: 8px;
  min-height: 24px;
}
@media (max-width: 600px) {
  #game-container {
    max-width: 98vw;
    padding: 8px;
  }
  #board {
    max-width: 98vw;
  }
}
