/* ============================================================================
   verify-fair.css — the public provably-fair verifier (.vfy-*)
   Calm, evidential, deliberately not celebratory: this page is a proof, not a
   reveal. Teal/slate, generous mono for the hashes.
   ============================================================================ */

.vfy-wrap { max-width: 780px; margin: 0 auto; }

.vfy-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--theme-muted, #6b7280); margin: 0 0 8px; }
.vfy-input { width: 100%; min-height: 96px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .84rem; line-height: 1.5; border-radius: 10px; padding: 11px 13px; resize: vertical;
    border: 1px solid var(--theme-border, #d7dbe0); background: var(--theme-bg, #fff); color: var(--theme-text, #1a1a2e); word-break: break-all; }
.vfy-input:focus { outline: 2px solid #0f766e; outline-offset: 1px; border-color: transparent; }

.vfy-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.vfy-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 800; color: #fff;
    padding: 12px 26px; border-radius: 12px; border: 0; cursor: pointer;
    background: linear-gradient(135deg, #14b8a6, #0f766e); box-shadow: 0 10px 22px -10px #0f766e; transition: transform .12s ease, filter .15s; }
.vfy-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.vfy-btn:focus-visible { outline: 3px solid rgba(15,118,110,.55); outline-offset: 3px; }
.vfy-btn-ghost { background: transparent; border: 1.5px solid var(--theme-border, #d7dbe0); color: var(--theme-muted, #5b6470);
    font-size: 13.5px; font-weight: 650; padding: 10px 16px; border-radius: 11px; cursor: pointer; }
.vfy-btn-ghost:hover { border-color: #0f766e; color: #0f766e; }

/* ---- the verdict ---- */
.vfy-result { margin-top: 20px; border-radius: 14px; padding: 18px 18px 16px; border: 1px solid var(--theme-border, #e3e8ef);
    background: var(--theme-surface, #f8fafc); }
.vfy-result.is-ok { border-left: 5px solid #0f766e; }
.vfy-result.is-bad { border-left: 5px solid #b91c1c; }
.vfy-verdict { font-size: 1.5rem; font-weight: 800; margin: 0 0 4px; letter-spacing: -.01em; }
.vfy-result.is-ok .vfy-verdict { color: #0f766e; }
.vfy-result.is-bad .vfy-verdict { color: #b91c1c; }
.vfy-sub { font-size: .95rem; color: var(--theme-muted, #5b6470); margin: 0 0 14px; }

.vfy-row { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 11px 0;
    border-top: 1px solid var(--theme-border, #e3e8ef); font-size: .93rem; color: var(--theme-text, #1a1a2e); }
.vfy-tick { font-weight: 800; font-size: 1.05rem; line-height: 1.35; }
.vfy-row.is-ok .vfy-tick { color: #0f766e; }
.vfy-row.is-bad .vfy-tick { color: #b91c1c; }
.vfy-detail { display: block; margin-top: 5px; font-size: .8rem; color: var(--theme-muted, #6b7280); line-height: 1.65; }
.vfy-hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; word-break: break-all;
    background: rgba(15,118,110,.08); border-radius: 4px; padding: 1px 4px; }

.vfy-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--theme-border, #e3e8ef); }
.vfy-meta div { display: flex; flex-direction: column; }
.vfy-meta span { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--theme-muted, #94a3b8); }
.vfy-meta strong { font-size: .95rem; color: var(--theme-text, #1a1a2e); }

.vfy-list { margin-top: 14px; font-size: .9rem; }
.vfy-list summary { cursor: pointer; color: #0f766e; font-weight: 650; }
.vfy-list ol { margin: 10px 0 0; padding-left: 1.4rem; color: var(--theme-muted, #5b6470); columns: 2; }
.vfy-list li.is-win { color: #0f766e; font-weight: 800; }
.vfy-list em { font-style: normal; opacity: .7; }
@media (max-width: 575.98px) { .vfy-list ol { columns: 1; } }

/* ---- explainer ---- */
.vfy-content { color: var(--theme-text, #1a1a2e); background: var(--theme-bg, #fff); padding: 3.25rem 0 3.5rem;
    margin-top: 1rem; border-top: 1px solid var(--theme-border, #e9ecef); }
.vfy-inner { max-width: 860px; margin: 0 auto; padding: 0 1rem; }
.vfy-content h2, .vfy-content h3 { color: var(--theme-text, #1a1a2e); }
.vfy-content p, .vfy-content li { color: var(--theme-muted, #5b6470); }
.vfy-content strong { color: var(--theme-text, #1a1a2e); }
.vfy-content code { background: rgba(15,118,110,.09); color: #0f766e; border-radius: 4px; padding: 1px 5px; font-size: .88em; }
.vfy-kicker { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: #fff; background: linear-gradient(135deg, #14b8a6, #0f766e); border-radius: 999px; padding: .3rem .85rem; margin-bottom: .95rem; }
.vfy-content .vfy-lead { font-size: 1.2rem; line-height: 1.7; color: var(--theme-text, #1a1a2e); margin-bottom: 1.5rem; }
.vfy-section { margin-top: 2.9rem; }
.vfy-steps { display: grid; gap: 1rem; margin-top: 1.4rem; }
.vfy-step { display: grid; grid-template-columns: 34px 1fr; gap: .9rem; align-items: start; color: var(--theme-muted, #5b6470); line-height: 1.7; }
.vfy-n { font-size: .82rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #14b8a6, #0f766e);
    border-radius: 9px; text-align: center; padding: .35rem 0; }
.vfy-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.vfy-card { border: 1px solid var(--theme-border, #e9ecef); border-radius: 12px; padding: 1rem 1.1rem; background: var(--theme-surface, #f8fafc); }
.vfy-card h3 { margin-top: 0 !important; font-size: 1.02rem !important; }
.vfy-card p { margin-bottom: 0; font-size: .93rem; }
.vfy-yes { border-top: 3px solid #0f766e; }
.vfy-no { border-top: 3px solid #b45309; }
.vfy-note { margin-top: 1.4rem; padding: 12px 15px; border-left: 3px solid #b45309; background: rgba(180,83,9,.07);
    border-radius: 0 8px 8px 0; font-size: .95rem; }
@media (max-width: 767.98px) { .vfy-pair { grid-template-columns: 1fr; } }
body[data-theme="high-contrast"] .vfy-content p, body[data-theme="high-contrast"] .vfy-content li { color: rgba(255,255,255,.84); }
body[data-theme="high-contrast"] .vfy-content h2, body[data-theme="high-contrast"] .vfy-content h3 { color: #fff; }

/* ── the on-page fairness panel (.fairp-*) ────────────────────────────────────
   Lives on the wheel pages. Deliberately quiet before the spin and only lightly
   emphasised after — it is evidence, not a second winner announcement. */
/* ⚠️ The panel is JS-filled. If fair-panel.js does not populate it (no round, or
   the kill switch), the bare div must NOT render as an empty bordered card —
   collapse it until it has content. */
.fairp:empty { display: none; }
.fairp { margin-top: 14px; border: 1px solid var(--theme-border, #e3e8ef); border-left: 4px solid #0f766e;
    border-radius: 12px; padding: 12px 14px; background: var(--theme-surface, #f8fafc); font-size: .88rem; }
.fairp.is-revealed { border-left-color: #14b8a6; }
.fairp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
.fairp-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #14b8a6, #0f766e);
    border-radius: 999px; padding: .25rem .7rem; }
.fairp-state { font-size: 11.5px; font-weight: 700; color: var(--theme-muted, #6b7280); }
.fairp-state.is-open { color: #0f766e; }
/* The panel refuses to publish a receipt it cannot back (see wspFairRound.seal).
   That should never happen — but if it does it must LOOK wrong, not quietly sit
   there reading "Sealed before the spin". */
.fairp-state.is-warn { color: #b45309; }
.fairp:has(.fairp-state.is-warn) { border-left-color: #b45309; }
.fairp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.fairp-k { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--theme-muted, #94a3b8); min-width: 96px; }
.fairp-v { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .74rem; word-break: break-all;
    background: rgba(15,118,110,.08); color: #0f766e; border-radius: 4px; padding: 2px 6px; }
.fairp-copy { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 7px; cursor: pointer;
    border: 1px solid var(--theme-border, #d7dbe0); background: transparent; color: var(--theme-muted, #5b6470); }
.fairp-copy:hover { border-color: #0f766e; color: #0f766e; }
.fairp-actions { margin-top: 9px; }
.fairp-verify { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #14b8a6, #0f766e); border-radius: 9px; padding: 7px 15px; text-decoration: none; }
.fairp-verify:hover { filter: brightness(1.07); color: #fff; }
.fairp-note { margin: 9px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--theme-muted, #6b7280); }
