  :root {
    --primary-color: #4a90e2;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --win-color: #28a745;
    --draw-color: #ffc107;
    --lose-color: #dc3545;
  }

  body{
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(90deg, #ACB6E5, #86FDE8);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    padding: 1rem;
  }

  h1{
    margin-bottom: 0.5rem;
  }

  form, .settings{
    margin-bottom: 1rem;
    max-width: 400px;
    width: 100%;
  }

  label{
    display: block;
    margin: 0.4rem 0 0.1rem;
  }
  input[type="text"], select{
    width: 100%;
    padding: 0.4rem;
    font-size: 1rem;
    margin-bottom: 0.6rem;
    box-sizing: border-box;
  }

  button{
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    margin-right: 0.5rem;
}
button:disabled{
    background: #aaa;
    cursor: not-allowed;
}

.board{
    display: grid;
    grid-template-columns: repeat(3, 90px);
    grid-template-rows: repeat(3, 90px);
    gap: 5px;
    justify-content: center;
    margin-bottom: 1rem;
}
.cell{
    background: white;
    border: 2px solid var(--primary-color);
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    line-height: 90px;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    transition: background-color 0.3s,;
}
.cell:hover {
    background-color: #e3f0fd;
  }
  .message {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    min-height: 1.4rem;
    font-weight: 600;
  }
  .scores {
    display: flex;
    gap: 1rem;
    font-size: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
  }
  .scores div {
    min-width: 70px;
    text-align: center;
  }
  /* Confetti styles */
  .confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    opacity: 0.9;
    animation-name: confetti-fall;
    animation-timing-function: linear;
    animation-iteration-count: 1;
    pointer-events: none;
    z-index: 9999;
    border-radius: 2px;
  }

  #playerSymbol{
    border-radius: 5px red;
  }
  @keyframes confetti-fall {
    0% {transform: translateY(0) rotate(0deg);}
    100% {transform: translateY(100vh) rotate(360deg);}
  }
  /* Draw animation */
  @keyframes draw-flash {
    0%, 100% { background-color: #fff; }
    50% { background-color: var(--draw-color); }
  }
  /* AI win animation */
  @keyframes ai-win-flash {
    0%, 100% { background-color: #fff; }
    50% { background-color: var(--lose-color); }
  }

  /* Responsive */
  @media (max-width: 500px) {
    .board {
      grid-template-columns: repeat(3, 60px);
      grid-template-rows: repeat(3, 60px);
      gap: 4px;
    }
    .cell {
      font-size: 2rem;
      line-height: 60px;
    }
  }