/* Monster captcha widget (js/captcha.js) in the site's palette (variables from site.css, with fallbacks). Phone first:
   the grid fits 360 px screens (3 columns of ~100 px tiles), every tap target is at least 44 px. */
.rfc { --rfc-gold: var(--gold, #e0b45e); --rfc-line: var(--line-2, #2a3a56); position: relative; display: grid; gap: 10px;
  padding: 14px; border: 1px solid var(--rfc-line); border-radius: 12px; background: rgba(10, 15, 25, .72); max-width: 420px; }
.rfc[hidden] { display: none; }
.rfc-head { display: flex; align-items: center; gap: 8px; }
.rfc-title { font: 600 13px var(--display, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--rfc-gold); }
.rfc-refresh { margin-left: auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
  color: var(--muted, #8e9ab2); background: transparent; border: 1px solid transparent; }
.rfc-refresh:hover, .rfc-refresh:focus-visible { color: var(--text, #dde5f2); border-color: var(--rfc-line); outline: none; }
.rfc-prompt { margin: 0; font-size: 15.5px; line-height: 1.4; color: var(--text, #dde5f2); min-height: 1.4em; }
.rfc-prompt b { color: var(--gold-2, #f4d491); font-weight: 700; }
.rfc-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 6px; }
.rfc-grid[hidden] { display: none; }
.rfc-tile { all: unset; box-sizing: border-box; position: relative; aspect-ratio: 1; min-width: 44px; min-height: 44px; border-radius: 9px;
  overflow: hidden; cursor: pointer; background: var(--bg-2, #0b101a); border: 2px solid transparent; transition: transform .12s, border-color .12s; }
.rfc-tile img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.rfc-tile:hover { border-color: rgba(224, 180, 94, .55); }
.rfc-tile:focus-visible { outline: 3px solid var(--cyan, #5cc9e0); outline-offset: 1px; }
.rfc-tile[aria-pressed="true"] { border-color: var(--rfc-gold); transform: scale(.94); box-shadow: 0 0 0 3px rgba(224, 180, 94, .25); }
.rfc-tile[aria-pressed="true"]::after { content: ""; position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--rfc-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a1205' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.rfc-tile:disabled { cursor: default; opacity: .55; }
.rfc.loading .rfc-grid, .rfc.busy .rfc-grid { opacity: .6; }
.rfc.passed { border-color: rgba(89, 201, 138, .55); }
.rfc-text { display: grid; gap: 6px; font-size: 15px; }
.rfc-text[hidden] { display: none; }
.rfc-text input { width: 100%; max-width: 140px; min-height: 44px; font-size: 18px; letter-spacing: .1em; }
.rfc-hint { font-size: 13px; color: var(--dim, #66728b); }
.rfc-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rfc-check { min-height: 44px; }
.rfc-check[hidden] { display: none; }
.rfc .linkish { all: unset; cursor: pointer; font-size: 13px; color: var(--cyan, #5cc9e0); min-height: 44px; display: inline-flex; align-items: center; }
.rfc .linkish:hover { text-decoration: underline; }
.rfc .linkish:focus-visible { outline: 2px solid var(--cyan, #5cc9e0); outline-offset: 2px; border-radius: 4px; }
.rfc-msg { margin: 0; font-size: 14px; min-height: 1.2em; color: var(--muted, #8e9ab2); display: flex; align-items: center; gap: 6px; }
.rfc-msg:empty { display: none; }
.rfc-msg.bad { color: var(--bad, #ec6a62); }
.rfc-msg.ok { color: var(--good, #59c98a); font-weight: 600; }
.rfc-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 400px) { .rfc { padding: 12px 10px; } .rfc-grid { gap: 5px; } }
@media (prefers-reduced-motion: reduce) { .rfc-tile { transition: none; } }
