.showdown-banner {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 18;
  width: min(90vw, 39rem);
  padding: 1.4rem clamp(.8rem, 4vw, 3rem);
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  color: #f7e2ac;
  background: radial-gradient(ellipse at center, #2d2321 20%, #160f14ee 62%, #0b081100 100%);
  border-block: 1px solid #bc905b;
  box-shadow: 0 0 2.4rem #b579353e;
  animation: reveal-rank .42s cubic-bezier(.2,.7,.2,1) both;
}
.showdown-banner::before, .showdown-banner::after {
  content: '✧';
  position: absolute;
  left: 50%;
  color: #e2ac6c;
  text-shadow: 0 0 1rem #ef9b45;
  transform: translate(-50%, -50%);
}
.showdown-banner::before { top: 0; }
.showdown-banner::after { top: 100%; }
.showdown-caption { margin: 0 0 .55rem; color: #dab785; font-size: .78rem; letter-spacing: .45em; }
.showdown-row { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: center; gap: .65rem; }
.showdown-combination { display: grid; gap: .3rem; justify-items: center; }
.showdown-cards { display: flex; gap: .22rem; }
.showdown-cards img, .showdown-card-copy {
  width: clamp(1.6rem, 4.6vw, 3rem);
  aspect-ratio: 2 / 3;
  border-radius: .18rem;
  box-shadow: 0 .18rem .5rem #0009;
}
.showdown-pair {display:flex;gap:.14rem;padding:.16rem;border:1px solid #ae8957;border-radius:.3rem}
.showdown-three-pairs {gap:.4rem}
.showdown-wild {position:relative;display:grid;outline:1px solid #cb9ae4;border-radius:.2rem}
.showdown-wild small {position:absolute;inset:auto 0 0;background:#432652;color:#fff2dc;font-size:.57rem;text-align:center}
.showdown-powers {color:#ffdc9a;font-size:.76rem;line-height:1.1}
.showdown-other-effects {border-top:1px solid #8b6b47;margin-top:.6rem;padding-top:.55rem}
.showdown-other-effects img,.showdown-other-effects .showdown-card-copy {width:clamp(.9rem,2.85vw,1.45rem)}
.showdown-other-effects .showdown-id {font-size:.76rem}
.whisper-awards {display:block;color:#ffda9b}
.showdown-card-copy { display: grid; place-items: center; background: #ead5a2; color: #552e27; font-weight: bold; }
.showdown-row:has(.showdown-combination:nth-child(4)) .showdown-cards img,
.showdown-row:has(.showdown-combination:nth-child(4)) .showdown-card-copy { width: clamp(1.1rem, 3vw, 1.6rem); }
.showdown-id { font-size: clamp(.85rem, 2vw, 1.25rem); overflow-wrap: anywhere; }
.showdown-rank {
  color: #ffe4a0;
  font: 700 clamp(1.55rem, 5vw, 3.1rem)/1.3 'Noto Serif SC', 'Songti SC', SimSun, serif;
  letter-spacing: .12em;
  text-shadow: 0 2px #462019, 0 0 1rem #ecaa5375;
}
.showdown-inverted { margin: .5rem 0 0; color: #dbc1dd; font-size: .83rem; }
#manage-bots { margin-block: .35rem; }
#manage-bots summary { pointer-events: auto; }
#bot-seats { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
@keyframes reveal-rank {
  from { opacity: 0; transform: translate(-50%, -44%) scale(.94); }
}
@media (prefers-reduced-motion: reduce) { .showdown-banner { animation: none; } }
