/* Fairness hub — dashboard layout (reference: verifier + code + table) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.fair-hero--hub {
  padding-bottom: 1.5rem;
}

.fair-dash {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 2.5rem;
}
@media (min-width: 960px) {
  .fair-dash {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.fair-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  position: relative;
}
.fair-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--accent), #6b1010, var(--accent2));
  opacity: 0.85;
}
.fair-panel--code::before {
  background: linear-gradient(90deg, #3a1518, var(--accent));
}

.fair-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.fair-breadcrumb .sep {
  opacity: 0.5;
}
.fair-breadcrumb select {
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: #120a0b;
  border: 1px solid rgba(226, 77, 77, 0.35);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  max-width: 12rem;
}
.fair-breadcrumb select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(226, 77, 77, 0.2);
}

.fair-panel h2,
.fair-panel h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.fair-hint {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0 0 1.1rem;
}

.fair-field {
  margin-bottom: 0.85rem;
}
.fair-field label,
.fair-field .faux-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9b8588;
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.fair-input,
.fair-textarea {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.4;
  color: #f0e4e4;
  background: #0c0708;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
  min-height: 2.6rem;
}
.fair-textarea {
  min-height: 4.2rem;
}
.fair-input:focus,
.fair-textarea:focus {
  outline: none;
  border-color: rgba(226, 77, 77, 0.65);
  box-shadow: 0 0 0 1px rgba(226, 77, 77, 0.25);
}
.fair-input[readonly] {
  opacity: 0.9;
  cursor: default;
}

.fair-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.fair-btn-primary {
  flex: 1 1 8rem;
  min-height: 2.6rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: #120505;
  background: linear-gradient(180deg, #ff7a6e, #e24d4d 45%, #9e2525);
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(226, 77, 77, 0.35);
  transition: filter 0.15s, transform 0.1s;
}
.fair-btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.fair-btn-ghost {
  min-height: 2.6rem;
  padding: 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.fair-btn-ghost:hover {
  color: var(--text);
  border-color: rgba(226, 77, 77, 0.45);
}

.fair-out {
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(40, 18, 20, 0.9) 0%, #0f090a 100%);
  border: 1px solid rgba(226, 77, 77, 0.22);
  min-height: 3rem;
  font-size: 0.88rem;
  color: #dcc8c8;
  line-height: 1.5;
}
.fair-out.is-error {
  border-color: rgba(232, 93, 93, 0.45);
  color: #f5a8a8;
}
.fair-out h4 {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent2);
}
.fair-out .fair-out-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: center;
  margin: 0.2rem 0;
}
.fair-out code {
  font-size: 0.78rem;
  word-break: break-all;
}
.fair-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fair-pill--ok {
  background: rgba(60, 180, 100, 0.2);
  color: #8ee0a8;
  border: 1px solid rgba(60, 180, 100, 0.35);
}
.fair-pill--bad {
  background: rgba(230, 80, 80, 0.2);
  color: #ffb0b0;
  border: 1px solid rgba(230, 80, 80, 0.4);
}
.fair-pill--r {
  background: rgba(200, 60, 60, 0.25);
  color: #ffb8b0;
  border: 1px solid rgba(226, 77, 77, 0.45);
}
.fair-pill--b {
  background: rgba(40, 40, 50, 0.8);
  color: #d0d0dc;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.fair-pill--g {
  background: rgba(50, 140, 80, 0.3);
  color: #a8f0c0;
  border: 1px solid rgba(80, 200, 120, 0.35);
}

.fair-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.fair-code-head h3 {
  margin: 0;
}
.fair-btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c9a8a8;
  background: #1a0f10;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.15s, border-color 0.15s;
}
.fair-btn-copy:hover {
  color: var(--text);
  border-color: var(--accent);
}
.fair-code-block {
  margin: 0;
  max-height: min(24rem, 55vh);
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.45;
  color: #e8b8b8;
  background: #060304;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  white-space: pre;
  tab-size: 2;
}

.fair-table-section {
  margin: 0 0 2.5rem;
}
.fair-table-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}
@media (min-width: 600px) {
  .fair-table-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.fair-table-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.fair-table-head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 28rem;
}
.fair-table-filter {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: #120a0b;
  border: 1px solid rgba(226, 77, 77, 0.28);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.fair-recent-scroller {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.fair-recent {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.fair-recent thead th {
  text-align: left;
  padding: 0.75rem 0.9rem;
  background: #100a0b;
  color: #9b8588;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.fair-recent tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: #140d0e;
  transition: background 0.12s, box-shadow 0.12s;
  cursor: pointer;
}
.fair-recent tbody tr:nth-child(even) {
  background: #12090b;
}
.fair-recent tbody tr:hover {
  background: rgba(226, 77, 77, 0.08);
}
.fair-recent tbody tr.fair-sel {
  background: rgba(226, 77, 77, 0.12) !important;
  box-shadow: inset 3px 0 0 var(--accent);
}
.fair-recent td,
.fair-recent th[scope="row"] {
  padding: 0.6rem 0.9rem;
  vertical-align: middle;
}
.fair-recent .c-date {
  color: #b8a8aa;
  font-size: 0.8rem;
  white-space: nowrap;
  font-family: var(--mono);
}
.fair-recent .c-game {
  text-transform: capitalize;
  font-weight: 600;
  color: #f0d4d4;
  font-size: 0.82rem;
}
.fair-recent .c-out .fair-tag {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}
.fair-recent .c-seed,
.fair-recent .c-hash {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #d8a0a0;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fair-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  max-width: 20rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a0a0a;
  background: linear-gradient(135deg, #f5c8c3, #e24d4d);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.fair-toast.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fair-accordion {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg1);
  margin-top: 0.5rem;
}
.fair-accordion summary {
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: #d4bcbc;
  background: #140d0e;
}
.fair-accordion summary::-webkit-details-marker {
  display: none;
}
.fair-accordion[open] summary {
  border-bottom: 1px solid var(--border);
}
.fair-accordion .fair-acc-body {
  padding: 1rem 1.1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}
.fair-accordion .fair-acc-body .code-block {
  margin-top: 0.75rem;
}

.fair-sessions {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .fair-sessions {
    grid-template-columns: repeat(3, 1fr);
  }
}
.fair-session {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  border-top: 3px solid #7a2a2a;
  transition: box-shadow 0.2s;
}
.fair-session:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.fair-session h4 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}
