@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500&display=swap');

body {
  font-family: 'Fredoka', sans-serif;
  background: linear-gradient(135deg, #f8dce0, #dcecf9);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  border: 1px solid rgba(118, 117, 117, 0.25);
}

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #4b4b4b;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.game-wrapper {
  position: relative;
  width: 90vw;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 15px;
}


.board::before,
.board::after {
  content: "";
  position: absolute;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  border-radius: 1px;
}

.board::before {
  width: 2px;
  height: 100%;
  left: 100px;
  top: 0;
  box-shadow: 100px 0 rgba(0, 0, 0, 0.15);
}

.board::after {
  height: 2px;
  width: 100%;
  top: 100px;
  left: 0;
  box-shadow: 0 100px rgba(0, 0, 0, 0.15);
}

.cell {
  width: 100%;
  height: 100%;
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  user-select: none;
  position: relative;
  color: #555;
  transition: all 0.2s ease;
  border-radius: 10px;
}

.cell:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.cell.X {
  color: #ff6b81;
  text-shadow: 0 0 8px rgba(255, 107, 129, 0.5);
}

.cell.O {
  color: #70a1ff;
  text-shadow: 0 0 8px rgba(112, 161, 255, 0.5);
}

#win-line {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
}

#status {
  font-size: 1.1rem;
  margin-top: 20px;
  color: #333;
}

#reset {
  margin-top: 20px;
  padding: 10px 25px;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #7f0842, #7f0842);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

#reset:hover {
  background: linear-gradient(135deg, #992862, #992862);
}
