/* ================================================================
   REVIEW PAGE — board-specific overrides only.
   Loaded only on /review/ — does NOT change the site theme.
   style.css provides all colours, typography and layout.
   ================================================================ */

/* ── Chess.com classic board colours ──────────────────────────── */
#myBoard .white-1e1d7 { background-color: #f0d9b5 !important; }
#myBoard .black-3c85d { background-color: #b58863 !important; }

/* ── Selection / legal-move highlights (chess.com green) ──────── */
.square-selected {
  background: rgba(20, 85, 30, 0.50) !important;
  box-shadow: inset 0 0 0 3px rgba(20, 85, 30, 0.70) !important;
}
.legal-dot          { background:    rgba(20, 85, 30, 0.38) !important; }
.legal-capture-ring { border-color:  rgba(20, 85, 30, 0.35) !important; }

/* ── Promotion picker ─────────────────────────────────────────── */
.promo-picker {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.12s ease;
  -webkit-touch-callout: none;
  user-select: none;
}
.promo-picker--visible { opacity: 1; }

.promo-picker-box {
  background: var(--ink-2);          /* soft green-white card */
  border: 1px solid var(--hair);     /* solid green border    */
  border-radius: 14px;
  padding: 18px 20px 20px;
  box-shadow: 0 12px 40px rgba(60, 90, 50, 0.18);
  transform: scale(0.88);
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}
.promo-picker--visible .promo-picker-box { transform: scale(1); }

.promo-picker-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin: 0 0 14px;
}

.promo-picker-grid {
  display: flex;
  gap: 10px;
}

.promo-piece-btn {
  width: 68px;
  height: 68px;
  padding: 6px;
  border: 2px solid var(--hair);
  border-radius: 10px;
  background: var(--ink-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.12s, background 0.12s, transform 0.1s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.promo-piece-btn:hover,
.promo-piece-btn:focus-visible {
  border-color: var(--brass);
  background: var(--brass-glow);
  transform: scale(1.1);
  outline: none;
}
.promo-piece-btn:active { transform: scale(0.96); }

.promo-piece-btn img {
  width: 52px;
  height: 52px;
  pointer-events: none;
  -webkit-user-drag: none;
  will-change: transform;
  transform: translateZ(0);
}
