* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Tahoma, sans-serif;
  background: #1b1b1b;
  color: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

#status-bar {
  width: 100%;
  max-width: 360px;
  display: flex;
  justify-content: space-between;
  padding: 8px 4px;
  font-size: 14px;
}

#board {
  background: #5b3a29;
  border-radius: 8px;
  touch-action: none;
}

#controls {
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 8px;
}

#dice-display {
  font-size: 22px;
  min-width: 90px;
}

button {
  background: #2ea043;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
}

#resign-btn {
  background: #a02e2e;
}

#waiting-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.hidden { display: none !important; }

#board-container {
  width: 100%;
  height: 480px;
  touch-action: none;
  position: relative;
}
#board-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
