.tiktak-container body {
      font-family: "Segoe UI", Tahoma, sans-serif;
      background: linear-gradient(135deg, #74ebd5, #9face6);
      margin: 0;
      padding: 0;
      color: #fff;
      text-align: center;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .tiktak-container h1 {
      margin: 25px 0 10px;
      font-size: 2.5em;
      text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
	    text-align: center;   /* 👈 this line */

    }

    .tiktak-container h2 {
      margin: 20px 0 10px;
      font-size: 1.6em;
	    text-align: center;   /* 👈 this line */
display: flex;
  justify-content: center; /* horizontal center */

    }
	
	
	.tiktak-container-form {
 
	    text-align: center;   /* 👈 this line */
display: flex;
  justify-content: center; /* horizontal center */

    }

    /* Create Game Card */
    .tiktak-container form {
      background: rgba(255, 255, 255, 0.1);
      padding: 20px;
      border-radius: 16px;
      box-shadow: 0 6px 20px rgba(0,0,0,0.25);
      display: inline-block;
      margin-bottom: 30px;
	    text-align: center;   /* 👈 this line */
	
    }

    .tiktak-container input[type="text"] {
      padding: 10px;
      border-radius: 8px;
      border: none;
      outline: none;
      font-size: 1em;
      margin-right: 10px;
      width: 220px;
    }

    .tiktak-container button {
      padding: 10px 18px;
      border: none;
      border-radius: 8px;
      background: linear-gradient(145deg, #43e97b, #38f9d7);
      color: #fff;
      font-size: 1em;
      font-weight: bold;
      cursor: pointer;
      transition: transform 0.2s ease;
    }

    .tiktak-container button:hover {
      transform: scale(1.05);
    }

    /* Games List */
    .tiktak-container #gamesList {
      width: 80%;
      max-width: 700px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 15px;
    }

    .tiktak-container .game-card {
      background: rgba(255,255,255,0.12);
      padding: 15px;
      border-radius: 14px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.25);
      transition: transform 0.2s ease;
    }

    .tiktak-container .game-card:hover {
      transform: translateY(-5px);
    }

    .tiktak-container .game-card h3 {
      margin: 0 0 8px;
      font-size: 1.3em;
    }

    .tiktak-container .join-btn {
      display: inline-block;
      margin-top: 10px;
      padding: 8px 16px;
      border-radius: 8px;
      background: linear-gradient(145deg, #4facfe, #00f2fe);
      color: #fff;
      text-decoration: none;
      font-weight: bold;
      transition: transform 0.2s ease;
    }

    .tiktak-container .join-btn:hover {
      transform: scale(1.05);
    }
	
	
	
	
body.tiktak-play {
  font-family: "Segoe UI", Tahoma, sans-serif; 
  display: flex;
  flex-direction: column;
  align-items: center;   /* Centers horizontally */
  justify-content: center; /* Centers vertically */
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #74ebd5, #9face6);
  color: #fff;
  text-align: center;
}

  .tiktak-play   h1, h2, h3 {
      text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
	    text-align: center;

    }
    .tiktak-play #board { 
  display: grid; 
  grid-template-columns: repeat(3,120px); 
  grid-gap: 15px; 
  margin: 30px 0; 
  perspective: 1000px;
    text-align: center;

}
    .tiktak-play .cell { 
      width: 120px; 
      height: 120px; 
      font-size: 2.5em; 
      display: flex; 
      align-items: center; 
      justify-content: center; 
      background: linear-gradient(145deg, #f0f0f0, #dcdcdc);
      color: #333;
      border-radius: 15px; 
      cursor: pointer; 
      box-shadow: 6px 6px 12px rgba(0,0,0,0.3), -4px -4px 10px rgba(255,255,255,0.6);
      transition: transform 0.2s, background 0.2s;
	    text-align: center;

    }
  .tiktak-play   .cell:hover { 
      transform: translateY(-5px) scale(1.05) rotateX(10deg); 
      background: linear-gradient(145deg, #fff, #e6e6e6);
	    text-align: center;

    }
    .tiktak-play .disabled { 
      pointer-events: none; 
      background: linear-gradient(145deg, #bbb, #999); 
      color: #555;
      box-shadow: inset 4px 4px 8px rgba(0,0,0,0.3), inset -4px -4px 8px rgba(255,255,255,0.4);
	    text-align: center;

    }
    .tiktak-play  #status { 
      margin-top: 20px; 
      font-weight: bold; 
      font-size: 1.3em;
      text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
	    text-align: center;

    }
	
	.tiktak-play #players {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 350px;
  margin-bottom: 15px;
  text-align: center;

}

.tiktak-play .player {
  font-size: 1.2em;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  text-align: center;

}

.tiktak-play .player-x {
  background: linear-gradient(145deg, #ff6b6b, #c44545);
  color: #fff;
  text-align: center;

}

.tiktak-play .player-o {
  background: linear-gradient(145deg, #4facfe, #00f2fe);
  color: #fff;
  text-align: center;

}

	.tiktak-play  #game-over {
  margin-top: 25px;
  text-align: center;
  text-align: center;

}

.tiktak-play #winner-msg {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
  text-align: center;

}

.tiktak-play #restart-btn {
  padding: 12px 24px;
  font-size: 1em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: linear-gradient(145deg, #43e97b, #38f9d7);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
  text-align: center;

}

.tiktak-play #restart-btn:hover {
  transform: scale(1.05);
  text-align: center;

}


.tiktak-play .board-container {
  display: flex;
  justify-content: center; /* horizontal */
  align-items: center;     /* vertical */
  min-height: 0vh;       /* full screen height */
}

.tiktak-play #board {
  display: grid;
  grid-template-columns: repeat(3,120px);
  grid-gap: 15px;
}


.tiktak-play .board-container2 {
  display: flex;
  justify-content: center; /* center horizontally */
  gap: 20px; /* space between ❌ and ⭕ */
  align-items: center;
  margin-bottom: 15px;
}

.tiktak-play #players {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 350px;
  margin-bottom: 15px;
}