.poker-player.sitting-out {
  opacity: .55;
  filter: grayscale(.7);
}

.poker-bust {
  z-index: 60;
}

.poker-bust > div {
  border: 3px solid #ef5d5d;
  background: linear-gradient(145deg, #fff, #ffe8e8);
}

.poker-bust b {
  display: block;
  margin: 16px 0 4px;
  color: #b92727;
  font-size: 18px;
}

.poker-bust .primary {
  width: 100%;
}

.poker-rules-button {
  position: fixed;
  z-index: 9;
  right: 14px;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #101c2d;
  color: #fff;
  box-shadow: 0 8px 24px #101c2d55;
  font-size: 23px;
  font-weight: 950;
}

.poker-rules { z-index: 55; }
.poker-rules > div { width: min(100%, 760px); max-height: min(88dvh, 900px); padding: 0; overflow: hidden; text-align: left; }
.poker-rules-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; background: #101c2d; color: #fff; }
.poker-rules-head small { color: #69e0ba; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.poker-rules-head h2 { margin: 3px 0 0; }
.poker-rules-head button { border: 0; background: none; color: #fff; font-size: 34px; line-height: 1; }
.poker-rules-body { max-height: calc(min(88dvh, 900px) - 154px); padding: 24px 26px; overflow-y: auto; }
.poker-rules-body section + section { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e2ded6; }
.poker-rules-body h3 { margin: 0 0 10px; color: #12604e; }
.poker-rules-body p, .poker-rules-body li { color: #4f5968; line-height: 1.55; }
.poker-rules-body ul { padding-left: 20px; }
.poker-hand-ranking { margin: 0; padding-left: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.poker-hand-ranking li::marker { font-weight: 900; color: #b92727; }
.poker-hand-ranking b, .poker-hand-ranking span { display: block; }
.poker-hand-ranking b { color: #172033; }
.poker-hand-ranking span { font-size: 13px; }
.poker-rules-note { padding: 12px; border-radius: 10px; background: #f4f1e9; font-size: 13px; }
.poker-rules > div > .primary { width: calc(100% - 52px); margin: 0 26px 22px; }

@media (max-width: 750px) {
  .poker-rules-button { right: 8px; top: auto; bottom: 18px; width: 38px; height: 38px; }
  .poker-rules > div { max-height: 94dvh; }
  .poker-rules-head { padding: 18px 20px; }
  .poker-rules-body { max-height: calc(94dvh - 142px); padding: 20px; }
  .poker-hand-ranking { grid-template-columns: 1fr; }
  .poker-rules > div > .primary { width: calc(100% - 40px); margin: 0 20px 18px; }
}
