/* === Prime Poker Game-Specific Styles === */

/* Score badges */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.score-badge.active {
  background: rgba(96, 224, 176, 0.12);
  color: var(--win);
  border-color: rgba(96, 224, 176, 0.3);
}
.score-badge.high {
  background: rgba(240, 192, 64, 0.15);
  color: var(--gold);
  border-color: rgba(240, 192, 64, 0.3);
  box-shadow: 0 0 8px rgba(240, 192, 64, 0.2);
}
@keyframes scorePop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}
.score-badge.pop {
  animation: scorePop 0.3s ease;
}

/* Number display (sum x hole = product) */
.number-display {
  text-align: center;
  min-height: 28px;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  transition: all 0.3s;
}
.number-display .num-sum {
  color: var(--cyan, #00d4ff);
}
.number-display .num-hole {
  color: var(--gold);
}
.number-display .num-product {
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}
.number-display .num-op {
  color: var(--text-muted);
  margin: 0 2px;
}
.number-display .num-hidden {
  color: var(--text-muted);
}

/* Factorization line */
.factor-line {
  text-align: center;
  min-height: 18px;
  padding: 0 0 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}
.factor-line .f-prime {
  color: var(--win);
  font-weight: 700;
}
.factor-line .f-composite {
  color: var(--cyan, #00d4ff);
}
.factor-line .f-score {
  color: var(--gold);
  font-weight: 700;
}

/* Value pip on cards */
.val-pip {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.55);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  border: 1px solid rgba(240, 192, 64, 0.25);
}

/* Hole card indicator */
.card.hole-card:not(.face-down) {
  box-shadow:
    0 0 0 2px rgba(240, 192, 64, 0.4),
    0 0 8px rgba(240, 192, 64, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.25);
}

/* GCD challenge controls */
#gcdCtrl {
  display: none;
}
#gcdCtrl.show {
  display: block;
}
.gcd-prompt {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  line-height: 1.4;
}
.gcd-prompt b {
  color: var(--gold);
}
.gcd-wager-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.gcd-chip {
  min-width: 36px;
  font-size: 11px;
  padding: 4px 8px;
}
.gcd-chip.active {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 6px rgba(240, 192, 64, 0.3);
}

/* History row */
.history-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.4s ease-out both;
}
.hist-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  opacity: 0.85;
}

/* Prime number glow */
@keyframes primeGlow {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(96, 224, 176, 0.3);
  }
  50% {
    box-shadow:
      0 0 16px rgba(96, 224, 176, 0.6),
      0 0 24px rgba(96, 224, 176, 0.2);
  }
}
.number-display.is-prime .num-product {
  color: var(--win);
  text-shadow: 0 0 8px rgba(96, 224, 176, 0.4);
}
