/* StackMC — dark + red / casino */
:root {
  --bg0: #0a0809;
  --bg1: #120d0e;
  --surface: #1a1214;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0e8e9;
  --muted: #9a8d90;
  --accent: #e24d4d;
  --accent-dim: #b83838;
  --accent2: #f0c14a;
  --danger: #e85d5d;
  --r: 14px;
  --font: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg0);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 8, 9, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo span {
  color: var(--accent);
}
.logo.small {
  font-size: 1rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1.1rem;
  margin-left: auto;
  flex: 0 0 auto;
}
.nav a:not(.nav-deposit) {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  padding: 0.35rem 0;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--text);
}
.nav a.is-current {
  color: var(--accent);
  pointer-events: none;
}
/* Header CTA — last in row, slightly separated and vertically centered with text links */
.nav-deposit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  min-height: 2.15rem;
  margin-left: 0.4rem;
  padding: 0.4rem 1.05rem;
  border-radius: 999px;
  color: #1a0808 !important;
  background: linear-gradient(135deg, #d93838, var(--accent));
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(226, 77, 77, 0.35);
  box-sizing: border-box;
}
.nav-deposit:hover {
  color: #0a0404 !important;
  filter: brightness(1.05);
}
/* Games — card grid */
.section-games {
  position: relative;
  overflow: hidden;
}
.section-games::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  width: 120%;
  max-width: 900px;
  height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(226, 77, 77, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.section-games .wrap {
  z-index: 1;
}
.games-header {
  margin-bottom: 2.25rem;
  text-align: center;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}
.games-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.games-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  position: relative;
  display: inline-block;
  width: 100%;
}
.games-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.75rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-dim), transparent);
  opacity: 0.9;
}
.games-lede {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}
.games-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem 1.15rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.games-grid > li {
  list-style: none;
}
.game-card {
  --card-bg: linear-gradient(155deg, rgba(34, 18, 20, 0.92) 0%, rgba(10, 8, 9, 0.98) 55%);
  position: relative;
  background: var(--card-bg);
  border: 1px solid rgba(226, 77, 77, 0.12);
  border-radius: var(--r);
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
}
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(226, 77, 77, 0.35) 0%, transparent 40%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(226, 77, 77, 0.18);
  border-color: rgba(226, 77, 77, 0.35);
}
.game-card:hover::before {
  opacity: 0.85;
}
.game-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(226, 77, 77, 0.14) 0%, rgba(20, 10, 12, 0.6) 100%);
  border: 1px solid rgba(226, 77, 77, 0.22);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.game-card__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}
.game-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.game-card__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}
@media (min-width: 700px) {
  .games-header {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 36rem;
  }
  .games-title::after {
    margin: 0.75rem 0 0 0;
  }
  .section-games::before {
    left: 60%;
  }
}
.deposit-placeholder {
  background: var(--surface);
  border: 1px dashed rgba(226, 77, 77, 0.35);
  border-radius: var(--r);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
  max-width: 36rem;
}
.deposit-placeholder p {
  margin: 0;
  font-size: 1.05rem;
}

/* Deposit page */
.nobr {
  white-space: nowrap;
}
.status-host {
  font-family: var(--mono);
  font-size: 0.82em;
  letter-spacing: 0.02em;
  color: var(--text);
}
.deposit-page {
  min-height: 100vh;
}
.deposit-hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(40, 14, 16, 0.2) 0%, transparent 100%);
}
.deposit-hero h1 {
  margin-bottom: 0.5rem;
}
.deposit-hero .lede strong {
  color: var(--text);
  font-weight: 600;
}
.section-deposit {
  padding: 2rem 0 4rem;
  background: var(--bg0);
}
.deposit-layout {
  max-width: 46rem;
}
.deposit-card {
  background: linear-gradient(155deg, rgba(32, 18, 20, 0.6) 0%, rgba(10, 8, 9, 0.9) 100%);
  border: 1px solid rgba(226, 77, 77, 0.14);
  border-radius: var(--r);
  padding: 1.75rem 1.6rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.deposit-card--crypto {
  border-color: rgba(226, 77, 77, 0.1);
}
.deposit-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.deposit-card__lede {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}
.form-field {
  margin-bottom: 0;
}
.form-field--row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.15rem;
}
@media (min-width: 520px) {
  .form-field--row {
    grid-template-columns: 1fr 1fr;
  }
}
.form-label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.form-input,
.form-select {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.form-input::placeholder {
  color: rgba(154, 141, 144, 0.65);
}
.form-input:hover:not(:disabled) {
  border-color: rgba(226, 77, 77, 0.25);
}
.form-input:focus {
  outline: none;
  border-color: rgba(226, 77, 77, 0.55);
  box-shadow: 0 0 0 3px rgba(226, 77, 77, 0.12);
}
.form-input:disabled,
.form-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.form-input--ok {
  border-color: rgba(100, 200, 130, 0.35);
}
.form-input--bad {
  border-color: rgba(232, 93, 93, 0.5);
}
.form-hint {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}
.form-error {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--danger);
}
.deposit-address-block {
  margin: 1.35rem 0 0;
  padding: 1rem 1.1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(226, 77, 77, 0.28);
  border-radius: 10px;
}
.deposit-address-block__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.deposit-address-block__value {
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
  word-break: break-all;
  color: rgba(154, 141, 144, 0.95);
}
.deposit-notice {
  margin: 1.35rem 0 0;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  background: rgba(226, 77, 77, 0.08);
  border: 1px solid rgba(226, 77, 77, 0.2);
  border-radius: 10px;
}
.deposit-notice__tag {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a0a0a;
  background: linear-gradient(135deg, #c42f2f, var(--accent));
  border-radius: 4px;
  vertical-align: middle;
}
.deposit-notice strong {
  color: var(--text);
  font-weight: 600;
}
.deposit-actions {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.deposit-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.2);
}
.deposit-actions__hint {
  margin: 0.75rem 0 0;
  max-width: 28rem;
}
.deposit-back {
  margin: 0.5rem 0 0;
}
.deposit-verify-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem 0.75rem;
  margin-top: 0.1rem;
}
.deposit-verify-row .form-input {
  flex: 1 1 12rem;
  min-width: 0;
}
.deposit-verify-row .btn {
  flex: 0 0 auto;
  min-width: 7.5rem;
  white-space: nowrap;
}
.deposit-identity[hidden],
.deposit-crypto[hidden],
.deposit-gate[hidden] {
  display: none !important;
}
.deposit-card--identity {
  border-color: rgba(226, 77, 77, 0.22);
}
.deposit-identity__row {
  display: flex;
  align-items: center;
  gap: 1rem 1.15rem;
}
.deposit-skin {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg1);
  border: 2px solid rgba(226, 77, 77, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  vertical-align: top;
}
img.deposit-skin.deposit-skin--fail {
  /* 1x1 transparent placeholder: keep frame and background only */
  object-fit: none;
  background: linear-gradient(145deg, #241618, #140e10);
  border-color: rgba(154, 141, 144, 0.45);
}
.deposit-identity__label {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7fd49a;
}
.deposit-identity__name {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.deposit-identity__hint {
  margin: 1rem 0 0;
}
.btn-link {
  display: inline;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, filter 0.2s;
}
.btn-link:hover {
  color: #ff6b5b;
}
.deposit-api-error {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #ffc9c9;
  background: rgba(120, 30, 35, 0.35);
  border: 1px solid rgba(226, 77, 77, 0.45);
  border-radius: 10px;
}
.deposit-network-row {
  margin: 0 0 1rem;
}
.deposit-network-combo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 28rem;
  margin-top: 0.35rem;
}
.deposit-network-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  color: var(--text);
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.deposit-network-trigger:hover:not(:disabled) {
  border-color: rgba(226, 77, 77, 0.32);
  background: #1e1517;
}
.deposit-network-trigger:focus {
  outline: none;
  border-color: rgba(226, 77, 77, 0.55);
  box-shadow: 0 0 0 3px rgba(226, 77, 77, 0.12);
}
.deposit-network-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.deposit-network-trigger__text {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}
.deposit-network-trigger__chev {
  flex: 0 0 auto;
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.1rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s, border-color 0.2s;
}
.deposit-network-combo.is-open .deposit-network-trigger {
  border-color: rgba(226, 77, 77, 0.45);
  background: #22181b;
  box-shadow: 0 0 0 3px rgba(226, 77, 77, 0.1);
}
.deposit-network-combo.is-open .deposit-network-trigger__chev {
  transform: rotate(225deg);
  border-color: rgba(240, 232, 233, 0.85);
}
.deposit-network-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.35rem 0;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 15rem;
  overflow-y: auto;
  background: #161010;
  border: 1px solid rgba(226, 77, 77, 0.22);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  scrollbar-color: rgba(226, 77, 77, 0.35) transparent;
  scrollbar-width: thin;
}
.deposit-network-option {
  display: block;
  margin: 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  border-left: 3px solid transparent;
}
.deposit-network-option:hover:not([aria-disabled="true"]):not(.is-selected) {
  background: rgba(226, 77, 77, 0.1);
  color: #fff;
}
.deposit-network-option.is-selected {
  background: rgba(226, 77, 77, 0.16);
  border-left-color: var(--accent);
  font-weight: 600;
}
.deposit-network-option[aria-disabled="true"],
.deposit-network-option--disabled {
  color: rgba(154, 141, 144, 0.55);
  cursor: not-allowed;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.15);
}
.deposit-network-option[aria-disabled="true"].is-selected,
.deposit-network-option--disabled.is-selected {
  /* disabled items are never "selected" in practice */
  border-left-color: transparent;
}
.deposit-network-spec {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
}
.deposit-network-spec__label {
  color: var(--muted);
  font-weight: 600;
  margin-right: 0.35rem;
}
.deposit-network-spec__value {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--accent2);
  word-break: break-word;
}
.deposit-btc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem 1.5rem;
  margin: 1rem 0 0;
}
.deposit-qr-wrap {
  flex: 0 0 auto;
  padding: 0.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.deposit-qr {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 8px;
}
.deposit-btc-address-wrap {
  flex: 1 1 18rem;
  min-width: 0;
}
.deposit-address-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.6rem;
  margin-top: 0.35rem;
}
.deposit-address-block__value--full {
  flex: 1 1 12rem;
  min-width: 0;
  word-break: break-all;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.45;
}
.btn-copy {
  flex: 0 0 auto;
  align-self: flex-start;
}
.deposit-notice--ok {
  border-color: rgba(100, 200, 130, 0.25);
  background: rgba(40, 90, 55, 0.12);
}
.deposit-btc-loading {
  padding: 1rem 0;
}
.feature a,
.info-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 77, 77, 0.35);
}
.feature a:hover,
.info-card a:hover {
  border-bottom-color: var(--accent);
}

.hero {
  padding: 4.5rem 0 4rem;
}
.hero--compact {
  padding: 2.75rem 0 2.5rem;
}
.hero--compact h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.6rem;
}
.lede--narrow {
  max-width: 40rem;
}
.ff-back {
  margin: 0.25rem 0 0;
}
.link-back {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.link-back:hover {
  text-decoration: underline;
}
.inline-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 77, 77, 0.45);
}
.inline-link:hover {
  border-bottom-color: var(--accent2);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 1rem;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.grad {
  background: linear-gradient(120deg, #ff6b5b, #e24d4d, #b83838);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: var(--r);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(135deg, #c42f2f, var(--accent));
  color: #0a0505;
  box-shadow: 0 8px 32px rgba(226, 77, 77, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 10px 40px rgba(226, 77, 77, 0.4);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  border: 1px solid var(--border);
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--muted);
}
.online-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(226, 77, 77, 0.8);
}

.section {
  padding: 3.5rem 0;
}
.section-alt {
  background: var(--bg1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-fair {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  border-top: 1px solid rgba(226, 77, 77, 0.15);
  background: linear-gradient(180deg, rgba(60, 20, 25, 0.25) 0%, var(--bg0) 18%);
}
.section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}
.section-intro {
  color: var(--muted);
  max-width: 48rem;
  margin: 0 0 2rem;
}
.section-intro.small {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.h3t {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.ff-p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}
.ff-p.small,
.small {
  font-size: 0.88rem;
}
.fairness-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 900px) {
  .fairness-grid {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}
.fair-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  border-top: 3px solid var(--accent);
}
.code-block {
  background: #0c0809;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0.75rem 0 0;
  color: #e8c8c8;
}
.code-block code {
  font-family: inherit;
  white-space: pre;
  display: block;
}
.ff-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin: 0.75rem 0 1rem;
}
.ff-tab {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg1);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ff-tab:hover {
  color: var(--text);
  border-color: rgba(226, 77, 77, 0.45);
}
.ff-tab[aria-pressed="true"] {
  background: rgba(226, 77, 77, 0.18);
  color: var(--text);
  border-color: var(--accent);
}
/* .ff-path: verify / manual text blocks (not the table) */
.ff-path {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  word-break: break-all;
}
.ff-path code {
  font-family: var(--mono);
  color: #f0a0a0;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
}
.ff-verify {
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  background: #110a0b;
  border: 1px solid rgba(226, 77, 77, 0.35);
  border-radius: 12px;
}
.ff-verify h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent2);
}
.ff-muted {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}
.ff-verify-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}
.ff-verify-list li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  align-items: start;
}
.ff-verify-list li span {
  color: var(--muted);
  font-size: 0.8rem;
}
.ff-verify-list code {
  font-family: var(--mono);
  font-size: 0.78rem;
  word-break: break-all;
}
.ff-note {
  margin: 0.75rem 0 0;
  color: var(--text);
  font-size: 0.9rem;
}
.ff-sessions {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .ff-sessions {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}
.ff-session {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  border-top: 3px solid #8b3a3a;
}
.ff-session h4 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  color: var(--text);
}
.ff-dl {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}
.ff-dl > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.4rem;
  align-items: start;
}
.ff-dl dt {
  color: var(--muted);
  margin: 0;
}
.ff-dl dd {
  margin: 0;
  word-break: break-word;
}
.ff-dl code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #f0b4b4;
}
.ff-outcome {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
  line-height: 1.45;
}
.join-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1.5rem 1.25rem;
  max-width: 32rem;
  position: relative;
  overflow: hidden;
}
.join-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0.85;
}
.join-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.join-value {
  font-family: var(--mono);
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 1rem;
  word-break: break-all;
}
.btn-copy {
  width: 100%;
  background: var(--bg1);
  color: var(--text);
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
}
.btn-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-copy.copied {
  border-color: var(--accent);
  color: var(--accent);
}
.copy-icon::before {
  content: "⎘";
  margin-right: 0.35rem;
  opacity: 0.8;
}
.join-hint {
  min-height: 1.25em;
  font-size: 0.85rem;
  color: var(--accent2);
  margin: 0;
}
.fine-print {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 40rem;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature {
  background: var(--bg0);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
}
.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--text);
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.info-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
}
.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.site-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Fairness: data table (replaces horizontal card flex — reliable layout) */
.ff-table-scroller {
  width: 100%;
  margin: 0.25rem 0 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ff-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.ff-table thead th {
  text-align: left;
  padding: 0.7rem 0.9rem;
  background: #140e10;
  color: #c4a8ab;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ff-th-action {
  text-align: right;
  width: 6.5rem;
}
.ff-table tbody tr.ff-row {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, box-shadow 0.2s;
  background: var(--bg1);
}
.ff-table tbody tr.ff-row:nth-child(even) {
  background: rgba(20, 14, 16, 0.65);
}
.ff-table tbody tr.ff-row.is-active {
  background: linear-gradient(90deg, rgba(226, 77, 77, 0.14) 0%, rgba(20, 14, 16, 0.4) 100%);
  box-shadow: inset 4px 0 0 var(--accent);
}
.ff-table th,
.ff-table td {
  padding: 0.65rem 0.9rem;
  vertical-align: middle;
}
.ff-table .ff-round {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent2);
  font-weight: 600;
  white-space: nowrap;
  width: 4.5rem;
}
.ff-cell-outcome {
  font-weight: 600;
}
.ff-cell-detail {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 14rem;
  line-height: 1.35;
}
.ff-cell-path {
  min-width: 12rem;
}
.ff-pathcode {
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #f0b4b4;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  margin: 0;
  word-break: break-all;
}
.ff-cell-go {
  text-align: right;
  white-space: nowrap;
  width: 6.5rem;
}
.ff-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(226, 77, 77, 0.15);
  border: 1px solid rgba(226, 77, 77, 0.35);
  color: #f5dede;
  font-size: 0.88rem;
}
.btn-verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a0a0a;
  background: linear-gradient(180deg, #f5a5a5, var(--accent) 50%, #b83838);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s, filter 0.15s;
  white-space: nowrap;
}
.btn-verify:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

@media (max-width: 500px) {
  .ff-verify-list li {
    grid-template-columns: 1fr;
  }
  .ff-dl > div {
    grid-template-columns: 1fr;
  }
}
