* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #F5E8D0;
  color: #3A2418;
  font-family: Arial, sans-serif;
}

.game {
  width: min(90vw, 500px);
  text-align: center;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 8vw, 4rem);
  letter-spacing: 3px;
}

#status {
  min-height: 28px;
  margin: 0 0 20px;
  font-size: 1.1rem;
  font-weight: bold;
}

.board {
  position: relative;
  z-index: 100;
  width: min(90vw, 420px);width: min(90vw, 420px);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cell {
  border: 3px solid #3A2418;
  border-radius: 14px;
  background: #fff8eb;
  color: #3A2418;
  font-size: clamp(2.5rem, 12vw, 5rem);
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  position: relative;
  z-index: 10;
  pointer-events: auto;


}

.cell:hover:not(:disabled) {
  background: #F2B84B;
  transform: scale(1.03);
}

.cell:disabled {
  cursor: default;
}

.cell.played {
  animation: appear 0.2s ease;
}

.cell.strawberry {
  color: #D94A38;
}

.cell.chocolate {
  color: #7A4A2E;
}

.cell.winner {
  background: #F2B84B;
  animation: pulse 0.6s ease-in-out 2;
}

button:not(.cell) {
  border: 2px solid #3A2418;
  border-radius: 10px;
  padding: 12px 22px;
  background: #3A2418;
  color: #F5E8D0;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

button:not(.cell):hover {
  background: #7A4A2E;
  transform: translateY(-2px);
}

.hidden {
  display: none;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 500px) {
  .board {
    gap: 7px;
  }

  .cell {
    border-width: 2px;
    border-radius: 10px;
  }
}
.logo {
  width: 420px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.cell img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

#startButton img {
  width: 180px;
  height: auto;
  display: block;
}

#startButton {
  border: none;
  padding: 0;
  background: none;
}

#startButton img {
  width: 360px;
  height: auto;
  display: block;
}

#restartButton {
  border: none;
  padding: 0;
  background: none;
}

#restartButton img {
  width: 360px;
  height: auto;
  display: block;
}

