/* Parqués: tablero (parques-board.js), dados y panel de jugadores. Usa la disposición y los botones de chess.css. */

.pq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 860px) { .pq-layout { grid-template-columns: 1fr; } }

.pq-board-wrap { max-width: min(640px, calc(100vh - 170px)); width: 100%; margin: 0 auto; }
.pq-board {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 4px var(--wood-dark), 0 10px 30px rgba(0, 0, 0, .45);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.pq-piece.can { cursor: pointer; }
.pq-piece.can:focus { outline: none; }
.pq-ring { fill: none; stroke: #fff; stroke-width: 0.09; animation: pq-pulse 1s ease-in-out infinite; }
.pq-piece.can:focus .pq-ring { stroke: #1c1712; }
@keyframes pq-pulse { 50% { stroke-opacity: .25; } }

.pq-dice { display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 58px; flex-wrap: wrap; }
.pq-die-btn {
  border: 2px solid transparent;
  background: none;
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
  line-height: 0;
}
.pq-die-btn:disabled { cursor: default; }
.pq-die-btn.sel { border-color: var(--accent); }
.pq-die-btn.used { opacity: .35; }
.pq-die { width: 50px; height: 50px; }
.pq-die rect { fill: #fbf8ef; stroke: #6b5a3a; stroke-width: 2; }
.pq-die circle { fill: #1c1712; }
.pq-sum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  min-width: 64px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font: 700 18px/1 ui-monospace, Consolas, monospace;
}
.pq-roll { font-size: 18px; padding: 12px 18px; }

.pq-players { display: flex; flex-direction: column; gap: 6px; }
.pq-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.pq-player.turn { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pq-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 2px solid #fff; }
.pq-player .pq-name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); text-decoration: none; }
.pq-player small { color: var(--text-dim); font-weight: 400; }
.pq-home { color: var(--text-dim); font-size: 13px; white-space: nowrap; }
.pq-timer { height: 5px; border-radius: 3px; background: var(--bg); overflow: hidden; margin-top: 4px; }
.pq-timer > span { display: block; height: 100%; background: var(--accent-2); transition: width .2s linear; }
.pq-timer.low > span { background: #c1503a; }
.pq-player-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pq-log { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--text-dim); max-height: 140px; overflow-y: auto; }
.pq-log p { margin: 0; }
.pq-log p:first-child { color: var(--text); }

@media (prefers-reduced-motion: reduce) { .pq-ring { animation: none; } }
