/* AnomicFlip — Provably Fair page (/fairness) */
.fr, .fr * { box-sizing: border-box; }
.fr { max-width: 1640px; margin: 0 auto; padding: 28px 40px 60px; display: grid; gap: 22px; font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #fff; }
.fr-h { margin: 0; font-size: 24px; }
.fr-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 7px; border-radius: 12px; background: #1a1d20; }
.fr-tabs button { height: 60px; border: 0; border-radius: 8px; background: none; color: #a7abb2; font: 700 18px 'Archivo', system-ui, sans-serif; cursor: pointer; }
.fr-tabs button:hover { color: #fff; }
.fr-tabs button.on { background: #2a2d33; color: #fff; }
.fr-card-box { padding: 34px 36px; border-radius: 14px; background: #1e2125; display: grid; gap: 18px; align-content: start; }
.fr-lead { margin: 0; font-size: 18px; color: #a7abb2; line-height: 1.5; }
.fr-note { margin: 0; font-size: 15px; color: #8b8f97; line-height: 1.5; }
.fr-sub { margin: 10px 0 0; font-size: 20px; }
.fr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.fr-f { display: grid; gap: 8px; min-width: 0; }
.fr-f.full { grid-column: 1 / -1; }
.fr-f > span { font-size: 15px; font-weight: 600; color: #a7abb2; }
.fr-f input, .fr-f select, .fr-f code {
  width: 100%; min-width: 0; min-height: 60px; padding: 0 18px; border-radius: 8px; border: 2px solid #2a2d33; background: #2a2d33;
  color: #fff; font: 600 17px 'Archivo', system-ui, sans-serif; outline: none;
}
.fr-f code { display: flex; align-items: center; padding: 14px 18px; font: 500 15px ui-monospace, Consolas, monospace; overflow-wrap: anywhere; word-break: break-all; color: #e6e8eb; }
.fr-f input:focus, .fr-f select:focus { border-color: #3fd68f; }
.fr-f input::placeholder { color: #8b8f97; }
.fr-f select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 48px;
  background: #2a2d33 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23c9ccd1' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 18px center no-repeat; }
.fr-btn { justify-self: start; height: 60px; padding: 0 28px; border: 0; border-radius: 8px; background: #3fbf7f; color: #0d1f16; font: 800 18px 'Archivo', system-ui, sans-serif; cursor: pointer; }
.fr-btn:hover { background: #46cc8a; }
.fr-btn.ghost { background: #2a2d33; color: #fff; }
.fr-btn.ghost:hover { background: #33373e; }
.fr-msg { padding: 14px 18px; border-radius: 8px; font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.fr-msg[hidden] { display: none; }
.fr-msg.good { background: rgba(63,214,143,.12); color: #3fd68f; }
.fr-msg.bad { background: rgba(255,92,108,.12); color: #ff8b97; }

.fr-out { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 12px; background: #24272c; }
.fr-out b { display: block; font-size: 24px; }
.fr-out small { display: block; margin-top: 4px; color: #8b8f97; font-size: 14px; }
.fr-face, .fr-num { flex: none; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 800; }
.fr-face.h { background: #f5c84a; color: #1a1300; } .fr-face.t { background: #5ea2f7; color: #06142a; }
.fr-num { border-radius: 12px; color: #fff; }
.fr-num.r { background: #e03b4a; } .fr-num.b { background: #2a2e34; } .fr-num.g { background: #1f8a5b; }
.fr-cards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.fr-card { position: relative; width: 64px; height: 90px; border-radius: 8px; background: #f4f4f4; color: #151515; padding: 6px 8px; display: flex; flex-direction: column; }
.fr-card.red { color: #ff3b3b; }
.fr-card b { font-size: 22px; line-height: 1; }
.fr-card i { font-style: normal; font-size: 20px; }
.fr-card small { position: absolute; right: 6px; bottom: 4px; font-size: 11px; color: #8b8f97; }
.fr-code { margin: 0; padding: 24px; border-radius: 10px; background: #15171a; overflow-x: auto; font: 14px/1.7 ui-monospace, Consolas, monospace; color: #e6e8eb; white-space: pre; }
.fr-about h2 { margin: 0; font-size: 22px; }
.fr-about p { margin: 0; font-size: 17px; line-height: 1.7; color: #9a9ea6; }
.fr button:focus-visible, .fr select:focus-visible { outline: 2px solid #3fd68f; outline-offset: 2px; }

@media (max-width: 700px) {
  .fr { padding: 16px 16px 40px; }
  .fr-tabs { grid-template-columns: 1fr; }
  .fr-tabs button { height: 48px; font-size: 16px; }
  .fr-card-box { padding: 22px 18px; }
  .fr-grid { grid-template-columns: minmax(0, 1fr); }
}

.fr-mines { display: grid; grid-template-columns: repeat(5, 54px); gap: 8px; margin-top: 12px; }
.fr-mines span { height: 54px; border-radius: 8px; display: grid; place-items: center; background: #2a2d33; color: #8b8f97; font-weight: 700; }
.fr-mines span.m { background: #3a1a1e; box-shadow: inset 0 0 0 2px #e53945; font-size: 22px; }

.fr-tower { display: grid; gap: 6px; margin-top: 12px; width: max-content; }
.fr-tower div { display: grid; grid-template-columns: 28px repeat(var(--cols), 64px); gap: 6px; align-items: center; }
.fr-tower b { color: #6b7078; text-align: center; }
.fr-tower span { height: 40px; border-radius: 6px; display: grid; place-items: center; background: #1d2a23; box-shadow: inset 0 0 0 2px rgba(63,214,143,.3); }
.fr-tower span.m { background: #3a1a1e; box-shadow: inset 0 0 0 2px #e53945; font-size: 18px; }
