/* L12 — seat labels on the four homes, and the highlight shown after a human roll.
   Pointers stay off so piece hits and the existing choice rings keep working. */

.identity-guidance {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  user-select: none;
}

.identity-guidance[hidden],
.seat-marker[hidden] {
  display: none;
}

.seat-marker {
  position: absolute;
  max-width: 34%;
  margin: 0;
  padding: 2px 7px 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--seat-ink, #fff);
  background: rgba(10, 12, 24, 0.82);
  color: #fff;
  font: 700 11px/1.2 system-ui, sans-serif;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.seat-marker::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--seat-ink, #fff);
  vertical-align: -1px;
}

/* The opening coach card covers the top of the board, especially on a phone,
   so the two upper homes carry their labels on the lower colour band. */
.seat-marker[data-seat="blue"] { --seat-ink: #82B1FF; left: 4.4%; top: 34%; }
.seat-marker[data-seat="yellow"] { --seat-ink: #FFE082; right: 4.4%; top: 34%; }
.seat-marker[data-seat="red"] { --seat-ink: #FF8A80; left: 4.4%; bottom: 4.4%; }
.seat-marker[data-seat="green"] { --seat-ink: #B9F6CA; right: 4.4%; bottom: 4.4%; }

.seat-marker[data-role="you"] {
  letter-spacing: 0.14em;
  background: #141414;
}

#board-svg .game-token.guidance-movable {
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px rgba(255, 224, 130, 0.95));
}

#board-svg .game-token.guidance-movable .sel-ring {
  stroke: #fff;
  stroke-width: 2.4px;
  opacity: 1;
}

#board-svg .game-token.guidance-enter {
  animation: guidance-enter-pulse 1.15s ease-in-out infinite;
}

#board-svg .game-token.guidance-enter .sel-ring {
  stroke: #ffe082;
  stroke-width: 2.8px;
  stroke-dasharray: none;
}

#board-svg rect.guidance-start-square {
  stroke: #fff8e1;
  stroke-width: 3px;
  filter: drop-shadow(0 0 4px rgba(255, 224, 130, 0.95));
}

#board-svg .start-entry-arrow.guidance-start-arrow {
  stroke: #fff8e1;
  stroke-width: 2.2px;
  animation: guidance-enter-pulse 1.15s ease-in-out infinite;
}

@keyframes guidance-enter-pulse {
  0%, 100% { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px rgba(255, 224, 130, 0.85)); }
  50% { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 9px rgba(255, 224, 130, 1)); }
}

body.calm #board-svg .game-token.guidance-enter,
body.calm #board-svg .start-entry-arrow.guidance-start-arrow,
body.performance-mode #board-svg .game-token.guidance-enter,
body.performance-mode #board-svg .start-entry-arrow.guidance-start-arrow,
#board-svg[data-guidance-motion="reduced"] .game-token.guidance-enter,
#board-svg[data-guidance-motion="reduced"] .start-entry-arrow.guidance-start-arrow {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  #board-svg .game-token.guidance-enter,
  #board-svg .start-entry-arrow.guidance-start-arrow {
    animation: none;
  }
}

@media (max-width: 720px) {
  .seat-marker {
    font-size: 10px;
    padding: 1px 5px;
  }
}
