.fairnessBtn { font-family: var(--display); font-size: 18px; font-weight: 800; }

.verifierLayer {
  position: fixed;
  z-index: 320;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 7, 11, .68);
}

.verifierLayer.show { display: flex; }

.verifierBox {
  position: relative;
  width: min(460px, 100%);
  max-height: min(640px, calc(100vh - 32px));
  max-height: min(640px, calc(100svh - 32px));
  overflow: auto;
  padding: 22px 22px 18px;
  color: #dbe4ee;
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: 16px;
  background: linear-gradient(180deg, #141c28, #101722);
  box-shadow: 0 18px 48px rgba(2, 6, 10, .6);
}

.verifierClose {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  color: var(--game-muted, #9aa8b8);
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 8px;
  background: transparent;
  font-size: 18px;
  line-height: 1;
}

.verifierClose:hover { color: #f0e6cd; }

.verifierBox h2 { margin: 0 26px 6px 0; color: #f0e6cd; font-size: 20px; font-weight: 800; line-height: 1.1; }
.verifierIntro { margin: 0 0 16px; color: var(--game-muted, #9aa8b8); font-size: 12.5px; line-height: 1.45; }
.verifierField { margin-bottom: 14px; }

.verifierField label,
.verifierLabel {
  display: block;
  margin-bottom: 5px;
  color: rgba(212, 175, 55, .9);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.verifierField input[type="number"] {
  width: 100%;
  padding: 9px 10px;
  color: #f0e6cd;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 8px;
  background: rgba(10, 14, 20, .7);
}

.verifierValue { display: flex; align-items: center; gap: 8px; }

.verifierCode {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  overflow: hidden;
  color: #dbe4ee;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 8px;
  background: rgba(10, 14, 20, .7);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11.5px;
  cursor: pointer;
}

.verifierCode.expanded { overflow: visible; white-space: normal; word-break: break-all; }
.verifierCode:focus-visible { outline: 3px solid rgba(212, 175, 55, .85); outline-offset: 2px; }

.verifierCopy {
  flex-shrink: 0;
  padding: 8px 10px;
  color: #e8eef5;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 8px;
  background: transparent;
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.verifierCopy:hover { color: #141c28; border-color: var(--game-gold-deep, #a8851f); background: var(--game-bronze, #d4af37); }
.verifierCopy.copied { color: #141c28; border-color: var(--game-gold-deep, #a8851f); background: var(--game-gold-light, #e5c65c); }

.verifierReveal {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.verifierReveal:disabled { opacity: .45; cursor: not-allowed; }
.verifierHint { margin: 6px 0 0; color: var(--game-muted, #9aa8b8); font-size: 11px; line-height: 1.4; }

.verifierAlgo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed rgba(148, 163, 184, .3);
  border-bottom: 1px dashed rgba(148, 163, 184, .3);
  font-size: 11px;
}

.verifierAlgo span { color: var(--game-muted, #9aa8b8); font-family: var(--utility); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.verifierAlgo code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }

.verifierRunBtn {
  width: 100%;
  margin: 14px 0 10px;
  padding: 12px;
  color: #141c28;
  border: 1px solid var(--game-gold-deep, #a8851f);
  border-radius: 10px;
  background: linear-gradient(180deg, #e5c65c, #d4af37);
  font-family: var(--utility);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.verifierResult { min-height: 20px; margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 750; }
.verifierResult[data-state="idle"] { display: none; }
.verifierResult[data-state="verified"] { color: #0e1a12; background: #58b184; }
.verifierResult[data-state="mismatch"] { color: #fff; background: var(--game-danger, #e23b4d); }
.verifierResult[data-state="insufficient"] { color: #141c28; background: var(--game-bronze, #d4af37); }

.verifierDetails,
.verifierExplain {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 10px;
  background: rgba(10, 14, 20, .5);
}

.verifierDetails summary,
.verifierExplain summary {
  color: #f0e6cd;
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

.verifierExplain p { margin: 8px 0 0; color: var(--game-muted, #9aa8b8); font-size: 12px; line-height: 1.5; }

.verifierStreet {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

/* One row per step; a step shows 4, 5 or 6 cards. */
.verifierBlock { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.verifierBlock.targets-4 { grid-template-columns: repeat(4, 1fr); }
.verifierBlock.targets-6 { grid-template-columns: repeat(6, 1fr); }

.verifierStreet span { padding: 4px 3px; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; border-radius: 5px; background: rgba(148, 163, 184, .12); }
.verifierStreet span.fail { color: #fff; background: var(--game-danger, #e23b4d); }
.verifierStreet span.success { color: #0e1a12; background: #58b184; }

@media (max-width: 390px) {
  .verifierBox { padding: 18px 16px 14px; }
  .verifierBox h2 { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .verifierLayer { transition: none; }
}
