/*
 * SHARKS VS ORCAS so-v5 (092) -- FEEDING FRENZY's showdowns: the standing strip (Blood in the Water's fight, Apex
 * Predator's duel), the duelist picker, the secret commit, and the two cinematic pieces the spectacle layer adds (the
 * red water, the face-down reveal). Literal casino colours, like color-clash-hub.css; nothing here touches Classic.
 */

.so-showdown {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(160deg, rgba(10, 22, 40, 0.92), rgba(4, 10, 20, 0.92));
  color: #fdf6e3;
  text-align: center;
  display: grid;
  gap: 2px;
}
.so-showdown--blood {
  border-color: #c8102e;
  background: radial-gradient(circle at 50% 0%, rgba(200, 16, 46, 0.55), rgba(40, 4, 10, 0.95) 70%);
  box-shadow: 0 0 18px rgba(200, 16, 46, 0.45);
}
.so-showdown--apex {
  border-color: #e5b83b;
  background: radial-gradient(circle at 50% 0%, rgba(229, 184, 59, 0.35), rgba(20, 10, 4, 0.95) 70%);
  box-shadow: 0 0 18px rgba(229, 184, 59, 0.35);
}
.so-showdown__title { margin: 0; font-weight: 900; letter-spacing: 0.08em; font-size: 0.95rem; }
.so-showdown__pot { margin: 0; font-weight: 900; font-size: 1.35rem; color: #ffd76a; }
.so-showdown--blood .so-showdown__pot { color: #ff6b81; }
.so-showdown__vs { margin: 0; font-weight: 800; font-size: 1.05rem; }
.so-showdown__line, .so-showdown__turn, .so-showdown__rule { margin: 0; font-size: 0.85rem; }
.so-showdown__turn { font-weight: 800; }
.so-showdown__rule { opacity: 0.85; }
.so-showdown__who { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 4px; }
.so-showdown__state {
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
}
.so-showdown__state.is-done { background: rgba(229, 184, 59, 0.3); color: #ffe7a3; }

.so-duel { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 10px 0; }
.so-duel__seat { min-height: 48px; font-weight: 800; }
.so-duel__seat.is-on { outline: 3px solid #e5b83b; background: rgba(229, 184, 59, 0.25); }

.so-apexpick {
  margin: 8px 0;
  padding: 10px;
  border-radius: 14px;
  border: 2px solid #e5b83b;
  background: rgba(20, 10, 4, 0.94);
  color: #fdf6e3;
  text-align: center;
}
.so-apexpick__title { margin: 0; font-weight: 900; letter-spacing: 0.06em; }
.so-apexpick__sub { margin: 4px 0 8px; font-size: 0.8rem; opacity: 0.9; }
.so-apexpick__grid {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
}
.so-apexpick__card {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  min-width: 52px;
  min-height: 48px;
  cursor: pointer;
}
.so-apexpick__card:focus-visible { outline: 3px solid #e5b83b; outline-offset: 2px; }
.so-apexpick__go, .so-apexpick__back { margin: 8px 4px 0; min-height: 48px; }
.so-apexpick.is-done { border-style: dashed; }

/* the spectacle layer's pieces (they live on the FX layer over <body>, pointer-events none like the rest of it) */
.so-fx__tint {
  position: fixed;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.so-fx__tint--cranberry { background: radial-gradient(circle at 50% 55%, rgba(200, 16, 46, 0.95), rgba(90, 0, 12, 0.95)); }
.so-fx__duel {
  position: fixed;
  display: flex;
  gap: clamp(12px, 5vw, 36px);
  pointer-events: none;
  perspective: 800px;
}
.so-fx__duelcard {
  position: relative;
  width: clamp(84px, 24vw, 132px);
  aspect-ratio: 200 / 280;
  border-radius: 12px;
}
.so-fx__duelcard.is-winner { filter: drop-shadow(0 0 18px rgba(255, 215, 106, 0.95)); }
.so-fx__duelback, .so-fx__duelfront {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  border: 3px solid #fdf6e3;
}
.so-fx__duelback { background: repeating-linear-gradient(45deg, #2a0a10 0 10px, #4a0f1a 10px 20px); }
.so-fx__duelfront { background: #10233f; overflow: hidden; }
.so-fx__duelfront--gold { background: #c99a12; }
.so-fx__duelfront--cranberry { background: #a3122b; }
.so-fx__duelfront--evergreen { background: #1f7a3d; }
.so-fx__duelfront--frost { background: #1f5fa8; }
.so-fx__duelart { width: 100%; height: 100%; object-fit: cover; }
.so-fx__duellabel { font-weight: 900; font-size: 1.1rem; color: #fff; text-align: center; padding: 6px; }
.so-fx__duelrank {
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-weight: 900;
  color: #ffd76a;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .so-fx__tint, .so-fx__duel { display: none; }
}

/* the showdown family's card frame: a blood-red rim with a gold edge (Blood in the Water, Apex Predator) */
.cc-card--so-showdown { border-color: #c8102e; border-width: 3px; box-shadow: 0 0 0 1px #e5b83b, 0 2px 10px rgba(200, 16, 46, 0.55); }
.cc-card--so-showdown .cc-card__short,
.cc-card--so-showdown .cc-card__family { background: rgba(40, 4, 10, 0.9); color: #ffe7a3; }
.cc-card--so-showdown .cc-card__plate { background: linear-gradient(to bottom, transparent, rgba(40, 4, 10, 0.9) 0.55rem); }
.so-intensity__exclusive { display: block; margin-top: 4px; font-weight: 900; font-size: 0.72rem; letter-spacing: 0.04em; color: #ff6b81; }
