.hobc-captcha {
  margin: 0.25rem 0 0.5rem;
  padding: 0.85rem;
  border: 1px solid rgba(246, 185, 40, 0.24);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(14, 18, 22, 0.98), rgba(6, 8, 10, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 215, 100, 0.06);
  width: 100%;
  box-sizing: border-box;
}

.hobc-captcha-shell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-content: space-between;
}

.hobc-captcha-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.hobc-captcha-label {
  display: block;
  font-weight: 700;
  color: var(--gold-2, #ffd764);
  margin-bottom: 0.25rem;
  font-size: 0.92rem;
}

.hobc-captcha-prompt {
  margin: 0 0 0.35rem;
  color: var(--text, #f7f5ed);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
}

.hobc-captcha-help {
  margin: 0;
  color: var(--muted, #b9b5a6);
  font-size: 0.82rem;
  line-height: 1.35;
}

.hobc-captcha-visual {
  flex: 0 0 auto;
}

.hobc-captcha-frame {
  position: relative;
  width: 192px;
  height: 192px;
  border: 1px solid rgba(246, 185, 40, 0.28);
  border-radius: 0.55rem;
  overflow: hidden;
  background: #080c0f;
  line-height: 0;
}

.hobc-captcha-frame img {
  display: block;
  width: 192px;
  height: 192px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.hobc-captcha-grid {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 0;
}

.hobc-captcha-cell {
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin: 0;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  outline: none;
}

.hobc-captcha-cell:hover {
  background: rgba(246, 185, 40, 0.12);
  border-color: rgba(246, 185, 40, 0.28);
}

.hobc-captcha-cell:focus-visible {
  border-color: rgba(255, 215, 100, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 100, 0.55);
}

.hobc-captcha-cell.is-selected {
  background: rgba(246, 185, 40, 0.24);
  border-color: rgba(255, 215, 100, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 100, 0.45);
}

.hobc-captcha-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.hobc-captcha-actions .button,
.hobc-captcha-actions button[data-captcha-refresh] {
  padding: 0.42rem 0.75rem;
  font-size: 0.82rem;
}

.hobc-captcha-selected {
  color: var(--muted, #b9b5a6);
  font-size: 0.82rem;
}

.hobc-captcha-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wallet-app .hobc-captcha {
  border-color: rgba(246, 185, 40, 0.22);
}

.wallet-app .hobc-captcha-cell {
  border-radius: 0;
  background: transparent;
  color: inherit;
  display: block;
  filter: none;
  font: inherit;
  font-weight: inherit;
  width: 100%;
  height: 100%;
}

@media (max-width: 36rem) {
  .hobc-captcha-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .hobc-captcha-visual {
    display: flex;
    justify-content: center;
  }
}

.card .err,
.page .err {
  color: #ff9b9b;
  background: rgba(255, 108, 108, 0.12);
  border: 1px solid rgba(255, 108, 108, 0.28);
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
}
