/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Courier New', monospace;
  height: 100vh;
  overflow: hidden;
  transition: background 0.3s, color 0.3s;
}
body.dark {
  background: #000;
  color: #0ff;
}
body.light {
  background: #fff;
  color: #222;
}

/* Full-Screen Layouts */
.screen {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hidden {
  display: none;
}

/* Headings */
h1, h2 {
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #39ff14, 0 0 20px #39ff14;
  animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
  from { text-shadow: 0 0 10px #39ff14; }
  to { text-shadow: 0 0 20px #39ff14, 0 0 40px #39ff14; }
}

/* Buttons & Inputs */
button, input, select {
  margin: 8px;
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  outline: none;
  border-radius: 5px;
}
button {
  background: #ff00ff;
  color: #fff;
  box-shadow: 0 0 10px #ff00ff;
  cursor: pointer;
  transition: transform 0.2s;
}
button:hover {
  transform: scale(1.05);
  background: #cc00cc;
}
input[type="text"] {
  background: black;
  color: #0ff;
  border: 1px solid #0ff;
  padding: 5px 10px;
  text-align: center;
}

/* Game Board */
.game-board {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  gap: 10px;
  margin: 20px 0;
}
.cell {
  width: 100px;
  height: 100px;
  font-size: 2.5em;
  color: #0ff;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0ff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-shadow: 0 0 10px #0ff;
}
.cell:hover {
  background: #222;
  transform: scale(1.05);
}

/* Status & Scoreboard */
.status, .scoreboard {
  font-size: 1.2em;
  margin-bottom: 10px;
  text-shadow: 0 0 8px #39ff14;
  color: #39ff14;
}

/* Avatar image preview (optional if you add it) */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin: 5px;
}

/* ?? Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(0,255,255,0.2), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(255,0,255,0.2), transparent 60%),
              radial-gradient(circle at 50% 50%, rgba(0,255,0,0.1), transparent 70%);
  animation: floatBG 10s infinite alternate;
  z-index: -1;
}
@keyframes floatBG {
  0% { background-position: 20% 20%, 80% 80%, 50% 50%; }
  100% { background-position: 25% 25%, 75% 75%, 55% 45%; }
}
