/* The castle (member request, johnhastings; castle.js). In the Lobby its card is a Bii card (plaza.css .pm-challenge:
   the red block, Libre Franklin caps, buttons as the bar's cells) pinned over the keep, a small white crown where a
   Bii's presence dot goes; knocks and guests are rows of flat faces with small inverse (white, red-lettered) buttons.
   In the chat a knock is a plain white card with a drawn castle in the chat's red and ink. */
.cs-pin { z-index: 4500; }
.cs-card-lobby { white-space: normal; width: min(320px, calc(100vw - 24px)); }
.cs-card-lobby .pm-who-s { white-space: normal; text-wrap: pretty; }
.cs-name::before { content: ""; display: inline-block; width: 14px; height: 11px; margin: 0 9px 0 1px; vertical-align: 0; background: #fff;
  clip-path: polygon(0 100%, 0 15%, 26% 55%, 50% 0, 74% 55%, 100% 15%, 100% 100%); }
.cs-list { display: grid; max-height: min(232px, 40vh); overflow-y: auto; margin: 4px -16px -11px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.cs-row { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 6px 12px 6px 14px; border-top: 1px solid rgba(255, 255, 255, .3);
  font: 700 14px/1.2 var(--pz-rounded); color: #fff; text-align: left; }
.cs-row > span:not(.cs-face) { display: grid; flex: 1; min-width: 0; }
.cs-row b, .cs-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-row b { font-weight: 800; }
.cs-row small { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .8); }
.cs-face { flex: none; display: grid; place-items: center; width: 30px; height: 30px; }
.cs-face .mface, .cs-face svg, .cs-face img { width: 30px; height: 30px; display: block; }
.pm-challenge .cs-row button { flex: none; min-height: 34px; padding: 0 11px; background: #fff; color: var(--pm-red); font-size: 11px; letter-spacing: .08em; }
.pm-challenge .cs-row button::before { display: none; }
.pm-challenge .cs-row button + button { margin-left: -4px; background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
/* the member picker: whole rows are the buttons */
.pm-challenge button.cs-pickone { justify-content: flex-start; min-height: 48px; padding: 6px 14px; text-transform: none; letter-spacing: 0;
  font: 700 15px/1.2 var(--pz-rounded); }
.pm-challenge button.cs-pickone::before { display: none; }

/* the knock in the chat */
.cs-card { display: flex; gap: 14px; align-items: flex-start; max-width: 480px; margin: 12px 4px; padding: 14px; background: #fff;
  border: 1.5px solid var(--rule); border-radius: 4px; color: var(--ink); }
.cs-art { flex: none; width: 58px; height: 54px; }
.cs-body { flex: 1; min-width: 0; }
.cs-knock { margin: 2px 0 0; font-size: 16px; line-height: 1.35; text-wrap: pretty; }
.cs-said { margin: 6px 0 0; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.cs-go { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cs-card .btn { margin-top: 10px; }
.cs-go .btn { margin-top: 0; }
.cs-go .btn.quiet { background: var(--note); color: var(--note-ink); border: 0; }
