/* Optional member card: only mounted inside existing start/result/pause surfaces. */
.member-prompt { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 14px; width: 100%; margin: 14px 0; padding: 14px; border: 1px solid #d2a06e; border-radius: 16px; background: #fff0d8; color: #583c2c; text-align: left; font: inherit; box-shadow: 0 3px 0 #492d141a; }
.member-prompt * { box-sizing: border-box; }
.member-prompt .member-prompt-title { display: block; color: #64452f; font-size: 17px; line-height: 1.4; }
.member-prompt .member-prompt-copy { margin: 5px 0 0; color: #684c3c; font-size: 13px; line-height: 1.6; }
.member-prompt .member-prompt-actions { display: flex; align-items: center; }
.member-prompt .member-prompt-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 118px; max-width: 100%; margin: 0; padding: 10px 15px; border: 1px solid #774529; border-radius: 12px; background: #80472d; color: #fff6e5; font: inherit; font-size: 14px; font-weight: 800; line-height: 1.4; text-decoration: none; cursor: pointer; touch-action: manipulation; }
.member-prompt .member-prompt-action:hover { background: #633820; }
.member-prompt .member-prompt-action:disabled { opacity: .66; cursor: default; }
.member-prompt .member-prompt-action:focus-visible { outline: 3px solid #906ab5; outline-offset: 3px; }
.member-prompt .member-prompt-action[hidden] { display: none; }
.member-prompt .member-prompt-state, .member-prompt .member-prompt-note { grid-column: 1 / -1; margin: 0; color: #765844; font-size: 11px; line-height: 1.5; }
.member-prompt .member-prompt-note:empty { display: none; }
[data-member-prompt="lobby"] .member-prompt { margin-top: 18px; }
@media (max-width: 480px) {
  .member-prompt { grid-template-columns: 1fr; padding: 12px; gap: 8px; }
  .member-prompt .member-prompt-actions, .member-prompt .member-prompt-action { width: 100%; }
}
@media (prefers-color-scheme: dark) {
  .member-prompt { background: #4b3227; border-color: #bc9868; color: #fff0d8; }
  .member-prompt .member-prompt-title { color: #fff0d8; }
  .member-prompt .member-prompt-copy { color: #f2d7b9; }
  .member-prompt .member-prompt-state, .member-prompt .member-prompt-note { color: #dfc29f; }
}
@media print { .member-prompt { display: none; } }

.member-prompt[data-member-size="compact"] { display: block; width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.member-prompt[data-member-size="compact"] .member-prompt-body, .member-prompt[data-member-size="compact"] .member-prompt-note { display: none; }
.member-prompt[data-member-size="compact"] .member-prompt-actions { width: auto; }
.member-prompt[data-member-size="compact"] .member-prompt-action { min-height: 44px; width: auto; min-width: 100px; padding: 8px 10px; font-size: 12px; }
.member-prompt[data-member-size="compact"] .member-prompt-state { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 480px) and (max-height: 700px) {
  [data-member-modal] .member-prompt { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; }
  [data-member-modal] .member-prompt .member-prompt-title { font-size: 13px; }
  [data-member-modal] .member-prompt .member-prompt-copy { display: none; }
  [data-member-modal] .member-prompt .member-prompt-actions, [data-member-modal] .member-prompt .member-prompt-action { width: auto; }
  [data-member-modal] .member-prompt .member-prompt-action { min-width: 106px; padding: 8px 10px; font-size: 12px; }
}

/* Keep the first safe-screen entry ahead of long instructions. */
[data-member-modal] .member-prompt-top { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.member-prompt[data-member-size="compact"][data-member-error="true"] .member-prompt-state { position: static; width: auto; height: auto; max-width: 280px; margin: 7px 0 0; padding: 7px 9px; overflow: visible; clip-path: none; white-space: normal; border: 1px solid #bc9868; border-radius: 8px; background: #4b3227; color: #fff0d8; font-size: 12px; line-height: 1.5; }
