* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #74ebd5, #ACB6E5);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: #fff;
}

.container {
  text-align: center;
}

h1 {
  font-size: 3rem;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

#game {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  max-width: 400px;
  margin: 0 auto;
}

#status {
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 500;
  min-height: 24px;
  animation: fadein 0.3s ease;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  gap: 10px;
  margin: 0 auto 20px;
  justify-content: center;
}

.cell {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 15px;
  font-size: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
  cursor: pointer;
  transition: background 0.3s;
}

.cell:hover {
  background: rgba(255, 255, 255, 0.4);
}

button#reset {
  padding: 12px 25px;
  background-color: #ffffff22;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button#reset:hover {
  background-color: #ffffff33;
  transform: scale(1.05);
}

@media (max-width: 500px) {
  .board {
    grid-template-columns: repeat(3, 70px);
    gap: 8px;
  }
  .cell {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }
}

@keyframes fadein {
  from {opacity: 0;}
  to {opacity: 1;}
}
