/* ==========================================================================
   11. INITIAL BOARD RIPPLE, ETERNAL REFILL, CARD DEAL & SURGE ANIMATIONS (v2.2.6)
   ========================================================================== */
.tile.hand-tile-pending {
  opacity: 0 !important;
  pointer-events: none !important;
}

.tile.hand-tile-deal {
  animation: bcHandTileDeal 0.38s cubic-bezier(0.22, 1, 0.36, 1) var(--ripple-delay, 0ms) both;
}

@keyframes bcHandTileDeal {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.35) rotate(-10deg);
  }

  65% {
    opacity: 1;
    transform: translate3d(0, -3px, 0) scale(1.08) rotate(2deg);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
}

.pattern-card.card-deal-in {
  animation: bcCardDealIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) var(--ripple-delay, 0ms) both;
}

@keyframes bcCardDealIn {
  0% {
    opacity: 0;
    transform: translate3d(0, -16px, 0) scale(0.86);
  }

  65% {
    opacity: 1;
    transform: translate3d(0, 2px, 0) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.tile.surge-spawn {
  animation: bcSurgeSpawn 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bcSurgeSpawn {
  0% {
    opacity: 0;
    transform: translateZ(0) scale(0.2);
  }

  70% {
    opacity: 1;
    transform: translateZ(0) scale(1.1);
  }

  100% {
    opacity: 1;
    transform: translateZ(0) scale(1);
  }
}

/* Diagonal Ripple Wave When Starting Any Board */
.tile.intro-weave {
  animation: bcIntroRippleWeave 0.4s cubic-bezier(0.22, 1, 0.36, 1) var(--ripple-delay, 0ms) both;
}

@keyframes bcIntroRippleWeave {
  0% {
    opacity: 0;
    transform: translate3d(0, -12px, 0) scale(0.35);
  }

  70% {
    opacity: 1;
    transform: translate3d(0, 2px, 0) scale(1.05);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* ==========================================================================
   v2.2.75 — CONTEXTUAL ABILITY ONBOARDING, STUCK UNDO PULSE & LOCAL STATS
   ========================================================================== */
.ability-coach-banner {
  position: absolute;
  left: 0;
  right: 54px;
  bottom: 0;
  min-height: 100%;
  z-index: 12;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(180deg, #2e2040, #221630);
  border: 1px solid rgba(229, 169, 60, 0.62);
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 0.7rem;
  line-height: 1.25;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.42);
  box-sizing: border-box;
  animation: coachBannerIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.14s ease;
}

.ability-coach-banner.visible {
  display: flex;
}

#bc-arcade-root.is-dragging-piece .ability-coach-banner {
  opacity: 0.7;
  pointer-events: none;
}

.footer-btns:has(.ability-coach-banner.visible) #solutionBtn {
  visibility: hidden;
  pointer-events: none;
}

#bc-arcade-root.showing-summary .ability-coach-banner {
  display: none !important;
}

.ability-coach-banner .acb-dismiss {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid rgba(229, 169, 60, 0.35);
  background: rgba(20, 14, 29, 0.55);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

@keyframes coachBannerIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes coachPulseBorder {
  0%, 100% {
    border-color: rgba(229, 169, 60, 0.55);
    box-shadow: 0 0 0 0 rgba(229, 169, 60, 0.22);
  }
  50% {
    border-color: rgba(255, 213, 79, 0.98);
    box-shadow: 0 0 12px 1px rgba(229, 169, 60, 0.38);
  }
}

.pattern-card.coach-highlight,
.tray-box.coach-highlight {
  border-color: var(--accent);
  animation: coachPulseBorder 1.85s ease-in-out infinite;
}

.loom-board.coach-entries-glow .track-row:not(.row-blocked) .track-entry {
  border-color: rgba(229, 169, 60, 0.72);
  color: var(--accent);
}

/* Stuck Undo Nudge */
.stuck-undo-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(229, 169, 60, 0.78);
  background: rgba(229, 169, 60, 0.14);
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 800;
  cursor: pointer;
  animation: coachBannerIn 0.24s ease-out;
}

.stuck-undo-pill:hover {
  background: rgba(229, 169, 60, 0.24);
}

#undoBtn.stuck-undo-pulse:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  animation: coachPulseBorder 1.5s ease-in-out infinite;
}

/* Local Practice & Personal Best Stats Strip (Main Menu & Summary) */
.local-stats-strip {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(229, 169, 60, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.lss-metrics-row,
.summary-local-stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px 7px;
  font-size: 0.71rem;
  color: var(--muted);
}

.summary-local-stats-row {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid rgba(229, 169, 60, 0.28);
  color: var(--text);
}

.lss-dot {
  opacity: 0.5;
}

.lss-guest-cta {
  font-size: 0.67rem;
  color: var(--muted);
}

.lss-signin-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
}

