/* The reaction question (reactionprompt.js). Above every panel and the dice, under the toast. */
#rp { position: fixed; inset: 0; z-index: 15; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); background: #000b; overflow-y: auto; overscroll-behavior: contain; }
#rp.rp-dm { background: transparent; pointer-events: none; place-items: end center; }
#rp.rp-dm .rp-card { pointer-events: auto; }
.rp-card { width: min(460px, 100%); max-height: 100%; overflow-y: auto; background: var(--panel-2); border: 2px solid var(--accent); border-radius: var(--radius); padding: 16px; box-shadow: 0 8px 40px #000a; animation: rp-in .18s ease-out; }
@keyframes rp-in { from { transform: translateY(14px); opacity: 0; } } @media (prefers-reduced-motion: reduce) { .rp-card { animation: none; } }
.rp-card h2 { margin: 0 0 6px; font-size: 22px; color: var(--accent); }
.rp-why { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.rp-opt { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin-bottom: 10px; background: var(--panel); }
.rp-name { font: 600 18px var(--display); } .rp-cost { color: var(--muted); font-size: 14px; margin: 2px 0 8px; }
.rp-slots { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.rp-slots button { flex: 1 1 64px; min-height: 44px; } .rp-slots button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.rp-card .rp-take { width: 100%; min-height: 52px; font-size: 17px; font-weight: 700; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rp-card .rp-no { width: 100%; min-height: 52px; font-size: 16px; }
.rp-err { margin: 10px 0 0; padding: 8px 10px; border-radius: var(--radius); background: var(--bad); color: #fff; font-weight: 600; }
#rp-wait { position: fixed; z-index: 6; left: 50%; transform: translateX(-50%); top: calc(max(10px, env(safe-area-inset-top)) + 96px); max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--accent); font-weight: 600; text-align: center; box-shadow: 0 4px 20px #0006; }
body.rp-open #gl { touch-action: none; }
