/* ============================================================
   REPLAY.CSS — Round-end "Biggest Hand" replay overlay
   ============================================================ */

#big-hand-replay {
  position: fixed;
  inset: 0;
  z-index: 92;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
}
#big-hand-replay.show {
  display: flex;
  animation: bhrFade 0.4s ease;
}
@keyframes bhrFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.bhr-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  padding: 40px 64px;
  background:
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(var(--neon-1-rgb), 0.18) 0%, transparent 60%),
    linear-gradient(160deg, var(--bg-2) 0%, var(--bg-0) 100%);
  border-left: 4px solid var(--neon-1);
  border-radius: 6px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.9),
    0 0 60px rgba(var(--neon-1-rgb), 0.4);
}
.bhr-eyebrow {
  font-family: var(--body-font);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: var(--neon-1);
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(var(--neon-1-rgb), 0.6);
}
.bhr-title {
  font-family: var(--editorial);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.9;
  background: linear-gradient(180deg, #fff, var(--accent-warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Replay table — circular zone where cards land */
.bhr-stage {
  width: 360px;
  height: 240px;
  position: relative;
  display: grid;
  grid-template-areas:
    ". top ."
    "left . right"
    ". bot .";
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto auto;
  align-items: center;
  justify-items: center;
  gap: 4px;
}
.bhr-slot {
  width: 84px;
  height: 118px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.bhr-slot[data-pos="top"]    { grid-area: top; }
.bhr-slot[data-pos="left"]   { grid-area: left; }
.bhr-slot[data-pos="right"]  { grid-area: right; }
.bhr-slot[data-pos="bottom"] { grid-area: bot; }

.bhr-name {
  position: absolute;
  font-family: var(--body-font);
  font-size: 0.6rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  white-space: nowrap;
}
.bhr-slot[data-pos="top"] .bhr-name    { top: -22px; }
.bhr-slot[data-pos="bottom"] .bhr-name { bottom: -22px; }
.bhr-slot[data-pos="left"] .bhr-name   { top: -22px; left: 0; }
.bhr-slot[data-pos="right"] .bhr-name  { top: -22px; right: 0; }

.bhr-slot .card,
.bhr-slot .card-back {
  width: 84px;
  height: 118px;
  opacity: 0;
  transform: scale(0.5) translateY(-30px) rotate(-12deg);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}
.bhr-slot.in .card,
.bhr-slot.in .card-back {
  opacity: 1;
  transform: scale(1) translateY(0) rotate(0deg);
}
.bhr-slot.winner .card {
  box-shadow:
    0 16px 32px rgba(0,0,0,0.8),
    0 0 0 3px var(--accent-warm),
    0 0 40px rgba(var(--accent-warm-rgb), 0.7),
    inset 0 0 0 1px rgba(255,255,255,0.9) !important;
  transform: scale(1.12);
}
.bhr-slot.winner::after {
  content: '👑';
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  filter: drop-shadow(0 0 12px rgba(var(--accent-warm-rgb), 0.7));
  opacity: 0;
  animation: bhrCrownPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.25s;
}
@keyframes bhrCrownPop {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px) scale(0.4); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0)     scale(1); }
}

.bhr-caption {
  font-family: var(--body-font);
  font-size: 0.85rem;
  color: var(--ink-2);
  letter-spacing: 0.5px;
  max-width: 420px;
}
.bhr-caption b { color: var(--accent-warm); font-weight: 700; }

.bhr-close {
  font-family: var(--editorial);
  background: linear-gradient(135deg, var(--neon-1), var(--accent-cool));
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(var(--neon-1-rgb), 0.45), inset 0 1px 0 rgba(255,255,255,0.3);
  margin-top: 4px;
}
.bhr-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(var(--neon-1-rgb), 0.6);
}
