body {
  background-color: #121212;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
}

#ui {
  text-align: center;
  margin-bottom: 8px;
}

h1 {
  margin: 0;
  color: #4caf50;
  font-size: 26px;
  letter-spacing: 2px;
}

#turn-display {
  font-size: 16px;
  margin-top: 4px;
}

#turn-name {
  color: #ffca28;
}

canvas {
  border: 12px solid #5c3a21;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  cursor: crosshair;
}

/* PAINEL INFERIOR */
#score-board {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 800px;
  background-color: #1e1e1e;
  border: 2px solid #333;
  border-radius: 8px;
  margin-top: 10px;
  padding: 10px 20px;
  box-sizing: border-box;
}

.player-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 45%;
}

.player-box h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #ddd;
}

.vs-divider {
  font-weight: bold;
  color: #888;
  font-size: 18px;
}

.ball-container {
  display: flex;
  gap: 6px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ESTILO DAS BOLA POCKETED */
.mini-ball {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: #000;
  border: 1px solid rgba(0,0,0,0.5);
  box-shadow: inset -2px -2px 4px rgba(0,0,0,0.4);
}

.mini-ball-num {
  background-color: #fff;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.controls {
  margin-top: 10px;
  color: #888;
  font-size: 13px;
}
#poolCanvas {
  width: 100%;
  max-width: 800px;
  height: auto;
  touch-action: none; /* Desativa gestos padrão do navegador no canvas */
}