* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0b1220, #111827);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 20px;
}

/* MAIN CONTAINER */
.game_container {
  width: 100%;
  max-width: 440px;
  padding: 26px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0px 12px 40px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  text-align: center;
}

/* HEADER */
.game_header {
  margin-bottom: 18px;
}

.game_title h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #e2e8f0;
}

/* STATUS BAR */
.status_bar {
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}

/* TURN INDICATOR */
.turn_indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

#turnText {
  font-size: 1.05rem;
  font-weight: 600;
  color: #38bdf8;
}

/* DOT */
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.player_dot {
  background: #38bdf8;
  box-shadow: 0px 0px 10px rgba(56, 189, 248, 0.7);
}

/* RESULT TEXT */
#result {
  font-size: 1.3rem;
  font-weight: 800;
  color: #facc15;
  min-height: 32px;
  letter-spacing: 0.5px;
}

/* GAME BOARD */
.game_board {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* GRID */
#main_grid {
  display: grid;
  grid-template-columns: repeat(3, 110px);
  grid-template-rows: repeat(3, 110px);
  gap: 12px;
}

/* BOX */
.grid_box {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.2s ease;
  position: relative;
}

.grid_box:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
}

.grid_box:active {
  transform: scale(0.97);
}

/* IMAGE INSIDE GRID */
.grid_box img {
  width: 65px;
  height: 65px;
  pointer-events: none;
  user-select: none;
}

/* CONTROLS */
.game_controls {
  margin-top: 22px;
}

/* BUTTON */
.btn_primary {
  width: 100%;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  background: #38bdf8;
  color: #0b1220;
  transition: 0.2s ease;
}

.btn_primary:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
}

.btn_primary:active {
  transform: scale(0.98);
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .game_container {
    max-width: 95%;
    padding: 20px 16px;
  }

  #main_grid {
    grid-template-columns: repeat(3, 92px);
    grid-template-rows: repeat(3, 92px);
    gap: 10px;
  }

  .grid_box {
    width: 92px;
    height: 92px;
    border-radius: 16px;
  }

  .grid_box img {
    width: 55px;
    height: 55px;
  }

  .game_title h1 {
    font-size: 1.7rem;
  }
}
