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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/tic.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  min-height: 100vh;
}

.heading {
  margin-top: 2rem;
  font-size: 3rem;
  letter-spacing: 2px;
  text-shadow: 2px 2px 5px #000;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.game {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  grid-gap: 15px;
}

.box {
  height: 80px;
  width: 80px;
  background-color: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 12px;
  font-size: 2.5rem;
  color: #03045e;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.3s;
}

.box:hover {
  background-color: #fffbe0;
  transform: scale(1.05);
}

#reset-btn,
#new-btn {
  margin-top: 2rem;
  padding: 12px 30px;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #5fa8d3, #00b4d8);
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#reset-btn:hover,
#new-btn:hover {
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  transform: scale(1.05);
}

#msg {
  font-size: 2.2rem;
  color: #ffd166;
  text-shadow: 1px 1px 3px #000;
}

.msg-container {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 10;
}

.hide {
  display: none;
}

.footer {
  margin-top: 40px;
  font-size: 0.9rem;
  opacity: 0.8;
}
