* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: white;
}

/* ================= AUTHOR FIXED ================= */
.author-fixed {
  position: fixed;
  top: 15px;
  right: 20px;
  text-align: right;
  z-index: 1000;
  animation: authorFloat 4s ease-in-out infinite;
}

.author-name {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  animation: authorGlow 2.5s infinite alternate;
}

.socials {
  margin-top: 6px;
}

.socials a {
  margin-left: 10px;
}

.socials a i {
  font-size: 1.8rem;        /* ICON SIZE */
  color: #00ffe1;
  transition: transform 0.3s ease, color 0.3s ease;
}

.socials a i:hover {
  transform: scale(1.4);
  color: #ff4ecd;
}

/* Animations */
@keyframes authorGlow {
  from {
    color: #00ffe1;
    text-shadow: 0 0 5px #00ffe1;
  }
  to {
    color: #ff4ecd;
    text-shadow: 0 0 12px #ff4ecd;
  }
}

@keyframes authorFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* ================= GAME CONTAINER ================= */
.game-container {
  margin: 90px auto;
  padding: 30px 40px;
  border-radius: 25px;
  width: fit-content;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);

  box-shadow:
    0 0 25px rgba(0, 255, 213, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.08);

  animation: containerFloat 3s ease-in-out infinite;
}

@keyframes containerFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* ================= TITLE ================= */
.title {
  text-align: center;
  margin-bottom: 20px;
  animation: titleShift 3s infinite alternate;
}

@keyframes titleShift {
  from { color: #00ffe1; }
  to { color: #ff4ecd; }
}

/* ================= CONTROLS ================= */
.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(145deg, #00c6ff, #0072ff);
  color: white;
  box-shadow: 0 5px 0 #004b9a;
  transition: 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #004b9a;
}

/* ================= SCORE ================= */
.scoreboard {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

/* ================= BOARD ================= */
.board {
  display: grid;
  grid-template-columns: repeat(3, 90px);
  gap: 8px;
  margin: 20px auto;
}

.cell {
  width: 90px;
  height: 90px;
  background: #111;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  cursor: pointer;
}

.cell.win {
  background: #00ffcc;
  color: black;
  animation: winPulse 0.5s infinite alternate;
}

@keyframes winPulse {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

/* ================= POPUP ================= */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
}

.popup-box {
  background: #111;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  animation: popupZoom 0.4s ease;
}

@keyframes popupZoom {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 600px) {
  .board {
    grid-template-columns: repeat(3, 70px);
  }

  .cell {
    width: 70px;
    height: 70px;
  }

  .author-fixed {
    top: 10px;
    right: 10px;
  }

  .socials a i {
    font-size: 1.4rem; /* smaller icons on mobile */
  }
}
