/* Round 42: the Kibun reaction bar (assets/reactions.js, docs/comments.md). Colours come from the page's own custom
   properties (share.css: --paper, --night, --red, --line) with night-ground fallbacks, so any page can use it. */
.rx { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font: 700 13px/1 Arial, sans-serif; color: var(--paper, #f2eedf); }
.rx [hidden] { display: none !important; }
.rx-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rx-chip, .rx-add { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; color: inherit; background: transparent; border: 1px solid var(--line, rgba(242, 238, 223, .24)); border-radius: 999px; cursor: pointer; font: inherit; }
.rx-chip:hover, .rx-add:hover { border-color: var(--paper, #f2eedf); }
.rx-chip.is-mine { color: var(--night, #171719); background: var(--paper, #f2eedf); border-color: var(--paper, #f2eedf); }
.rx-chip:focus-visible, .rx-add:focus-visible, .rx-pick:focus-visible, .rx-gate-link:focus-visible { outline: 2px solid var(--red, #ef4b3f); outline-offset: 2px; }
.rx-art { display: inline-flex; flex: none; }
.rx-art img { display: block; width: 22px; height: 22px; object-fit: contain; }
.rx-few { display: inline-flex; align-items: center; min-height: 36px; padding: 0 4px; font-weight: 400; font-style: italic; opacity: .8; }
.rx-n { min-width: 1ch; font-variant-numeric: tabular-nums; }
.rx-add.is-mine { border-color: var(--red, #ef4b3f); }
.rx-add-icon img { opacity: .85; }
.rx-picker { position: absolute; z-index: 20; inset-block-start: calc(100% + 6px); inset-inline-start: 0; width: min(372px, calc(100vw - 32px)); padding: 10px; color: var(--ink, #121212); background: var(--paper, #f2eedf); box-shadow: 6px 6px 0 #080808; }
.rx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.rx-pick { display: grid; justify-items: center; gap: 4px; min-height: 44px; padding: 6px 2px 4px; color: inherit; background: transparent; border: 2px solid transparent; border-radius: 10px; cursor: pointer; font: 700 11px/1.1 Arial, sans-serif; }
.rx-pick:hover { background: rgba(18, 18, 18, .08); }
.rx-pick[aria-pressed="true"] { border-color: var(--red, #ef4b3f); background: rgba(239, 75, 63, .12); }
.rx-pick .rx-art img { width: 52px; height: 52px; }
.rx-pick-label { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.rx-gate { margin: 0; padding: 6px; font: 15px/1.45 Arial, sans-serif; }
.rx-gate-link { color: var(--ink, #121212); font-weight: 800; text-underline-offset: 3px; text-decoration-color: var(--red, #ef4b3f); text-decoration-thickness: 2px; }
.rx-status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
    .rx-chip, .rx-add, .rx-pick { transition: border-color .15s ease, background-color .15s ease; }
}
