/* === Mod7 Game-Specific Styles === */

/* Surge */
@keyframes surge-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  50%,
  90% {
    transform: translateX(-3px);
  }
  30%,
  70% {
    transform: translateX(3px);
  }
}
.card.surged {
  animation: surge-shake 0.4s ease;
  box-shadow:
    0 0 12px var(--lose),
    0 0 24px rgba(224, 64, 96, 0.3) !important;
}
.surge-flash {
  background: radial-gradient(
    ellipse at center,
    rgba(224, 64, 96, 0.25),
    transparent 70%
  );
}
.surge-risk {
  text-align: center;
  padding: 3px 0;
  min-height: 26px;
}
.surge-board {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
}
.s-pip {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--res-pip-text);
  transition: all 0.2s;
  opacity: 0.2;
}
.s-pip.blocked {
  opacity: 1;
  transform: scale(1.18);
  box-shadow:
    0 0 5px rgba(224, 64, 96, 0.6),
    0 0 0 1.5px rgba(224, 64, 96, 0.5);
}
.s-pip.r0 {
  background: var(--r0);
}
.s-pip.r1 {
  background: var(--r1);
}
.s-pip.r2 {
  background: var(--r2);
}
.s-pip.r3 {
  background: var(--r3);
}
.s-pip.r4 {
  background: var(--r4);
}
.s-pip.r5 {
  background: var(--r5);
}
.s-pip.r6 {
  background: var(--r6);
}
.s-pip.r0:not(.blocked) {
  opacity: 0.35;
}
.surge-risk.risk-low .s-pip.blocked {
  box-shadow:
    0 0 4px rgba(224, 64, 96, 0.4),
    0 0 0 1.5px rgba(224, 64, 96, 0.35);
}
.surge-risk.risk-crit .s-pip.blocked {
  box-shadow:
    0 0 8px rgba(224, 64, 96, 0.8),
    0 0 0 1.5px rgba(224, 64, 96, 0.7);
}

/* Inverted card */
.card.inverted {
  box-shadow:
    0 0 0 2px rgba(144, 96, 224, 0.5),
    0 0 8px rgba(144, 96, 224, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.25);
}

/* History row (BET phase) */
.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;
}
