/* ===== Честная игра (страница #fair) ===== */
.fair { display: none; --ease-out: cubic-bezier(0.230, 1, 0.320, 1); }
body.is-fair .fair { display: block; max-width: 980px; margin: 0 auto; animation: cview-in 0.400s var(--ease-out); }
body.is-fair .promo, body.is-fair .cases, body.is-fair .cview, body.is-fair .inv, body.is-fair .dep,
body.is-fair .prof, body.is-fair .upg, body.is-fair .crash { display: none; }

.fair__head { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.fair__shield { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #8cd8ff;
  background: radial-gradient(circle at 30% 25%, rgb(122 240 255 / 0.350), transparent 60%), #10183a; box-shadow: inset 0 0 0 1.500px rgb(92 200 255 / 0.500), 0 0 18px -6px #5cc8ff; }
.fair__shield svg { width: 26px; height: 26px; }
.fair__title { margin: 0; font: 900 26px/1 var(--font-title); letter-spacing: 0.010em; text-transform: uppercase; }
.fair__lead { max-width: 760px; margin: 0 0 16px; font: 600 15px/1.550 var(--font-body, inherit); color: #c9d4ee; }
.fair__h2 { margin: 26px 0 12px; font: 900 22px/1.100 var(--font-title); }
.fair__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 860px) { .fair__grid { grid-template-columns: minmax(0, 1.200fr) minmax(0, 1fr); align-items: start; } }

.fcard { display: grid; gap: 10px; min-width: 0; padding: 16px; border-radius: 20px; background: linear-gradient(180deg, #131931, #0c1022); box-shadow: inset 0 0 0 1px #ffffff17; }
.fcard__cap { margin: 0; font: 800 12px/1 var(--font-title); letter-spacing: 0.060em; text-transform: uppercase; color: #8592b3; }
.fcard__cap--mt { margin-top: 6px; }
.fkv { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: baseline; font: 600 14px/1.400 var(--font-body, inherit); color: #9aa6c6; }
.fkv code { font: 600 13px/1.500 ui-monospace, Consolas, monospace; color: #e6ecfa; word-break: break-all; }
.fkv b { font: 900 15px/1.300 var(--font-title); color: #fff; word-break: break-all; }
.fin { width: 100%; height: 50px; padding: 0 14px; border: 0; border-radius: 14px; outline: none; color: #fff; background: #080b16;
  box-shadow: inset 0 0 0 1px #ffffff1c; font: 600 16px/1 ui-monospace, Consolas, monospace; -moz-appearance: textfield; }
.fin:focus { box-shadow: inset 0 0 0 1.500px var(--accent); }
.fin::placeholder { color: #4d5672; }
.fbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.fbtn { height: 46px; padding: 0 20px; border: 0; border-radius: 13px; cursor: pointer; font: 900 14px/1 var(--font-title); letter-spacing: 0.030em; text-transform: uppercase;
  color: #e6ecfa; background: #1a2140; box-shadow: inset 0 0 0 1px #ffffff1c; transition: transform 0.150s, filter 0.200s; }
.fbtn:hover { filter: brightness(1.150); }
.fbtn:active { transform: scale(0.970); }
.fbtn--main { color: #fff; background: linear-gradient(180deg, #4aa3ff, #2f6dff); box-shadow: inset 0 1px 0 #ffffff59, inset 0 -4px 0 #0003, 0 8px 18px -8px #2f8cff; }
.fmsg { min-height: 0; margin: 0; font: 700 13px/1.400 var(--font-title); color: #8cd8ff; }
.fmsg:empty { display: none; }
.fnote { margin: 0; font: 600 14px/1.500 var(--font-body, inherit); color: #8592b3; }
.fmeta { margin: 2px 0 0; font: 600 12px/1.300 var(--font-body, inherit); color: #6f7a99; }
.flink { padding: 0; border: 0; background: none; cursor: pointer; font: 800 14px/1 var(--font-title); color: #6fc8ff; }
.flink:hover { text-decoration: underline; }
.fpast { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid #ffffff12; }
.fpast:first-child { padding-top: 0; border-top: 0; }

/* последние броски */
.fcard--list { gap: 0; padding: 4px 16px; }
.froll { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 12px; padding: 14px 0; border-top: 1px solid #ffffff12; }
.froll:first-child { border-top: 0; }
.froll__main { grid-row: 1 / 3; min-width: 0; }
.froll__t { margin: 0; overflow: hidden; font: 600 14px/1.300 var(--font-body, inherit); color: #8592b3; white-space: nowrap; text-overflow: ellipsis; }
.froll__t b { font: 800 16px/1.300 var(--font-title); color: #fff; }
.froll__r { display: block; margin-top: 6px; font: 600 15px/1 ui-monospace, Consolas, monospace; color: #e6ecfa; }
.froll__n { align-self: start; justify-self: end; font: 900 16px/1 var(--font-title); color: #6f7a99; }
.froll .flink { align-self: end; justify-self: end; }

/* проверка */
.flab { display: grid; gap: 8px; font: 800 12px/1 var(--font-title); letter-spacing: 0.060em; text-transform: uppercase; color: #8592b3; }
#fair-check .fbtn--main { justify-self: start; }
.fres { display: grid; gap: 8px; }
.fres:empty { display: none; }
.fres .ok, .fres .bad { margin: 2px 0 0; font: 700 14px/1.450 var(--font-title); }
.fres .ok { color: #6dffb0; }
.fres .bad { color: #ff8a8a; }
.fres .bad code { font: 600 12px/1.400 ui-monospace, Consolas, monospace; color: #c9d4ee; word-break: break-all; }
.fformula { display: grid; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid #ffffff12; }
.fformula p { margin: 0; font: 600 14px/1.650 var(--font-body, inherit); color: #c9d4ee; }
.fformula code { padding: 1px 5px; border-radius: 6px; font: 700 13px/1.500 ui-monospace, Consolas, monospace; color: #7fd4ff; background: rgb(47 140 255 / 0.140); word-break: break-word; }
@media (max-width: 420px) { .fkv { grid-template-columns: 1fr; gap: 2px; } }
@media (prefers-reduced-motion: reduce) { body.is-fair .fair { animation: none; } }

/* ===== Окно «Честная игра» (кнопка со щитом в Краше): во весь экран на телефоне, справа на компьютере ===== */
.fsheet { width: 100%; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; color: #fff;
  background: radial-gradient(120% 40% at 0% 0%, rgb(47 140 255 / 0.180), transparent 70%), #0a0e1c; }
.fsheet::backdrop { background: #05070dc4; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.fsheet[open] { animation: fsheet-in 0.380s cubic-bezier(0.230, 1, 0.320, 1); }
@keyframes fsheet-in { from { transform: translateY(40px); opacity: 0; } }
.fsheet__in { display: grid; gap: 12px; height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.fsheet__in.fair { display: grid; max-width: none; margin: 0; animation: none; }
.fsheet__head { position: sticky; top: calc(-14px - env(safe-area-inset-top, 0px)); z-index: 2; display: flex; align-items: center; gap: 12px;
  margin: calc(-14px - env(safe-area-inset-top, 0px)) -16px 0; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 12px;
  background: rgb(10 14 28 / 0.920); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid #ffffff10; }
.fsheet__head .fair__title { font-size: 22px; }
.fsheet__close { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 14px; cursor: pointer; color: #cfd8ee;
  background: #ffffff0f; box-shadow: inset 0 0 0 1.500px rgb(92 200 255 / 0.400); }
.fsheet__close svg { width: 18px; height: 18px; }
.fsheet .fair__lead { margin: 0; }
.fsheet .fair__h2 { margin: 12px 0 0; }
.fcard--crash { box-shadow: inset 0 0 0 1.500px rgb(155 109 255 / 0.450); background: radial-gradient(90% 60% at 100% 0%, rgb(155 109 255 / 0.180), transparent 70%), linear-gradient(180deg, #151a36, #0c1022); }
.fcard--crash .fcard__cap b { color: #fff; }
.fcard--crash .fres { font: 700 13px/1.500 var(--font-title); color: #c9d4ee; word-break: break-all; }
@media (min-width: 760px) {
  .fsheet { width: 560px; height: 100dvh; margin: 0 0 0 auto; border-left: 1px solid #ffffff14; box-shadow: -24px 0 60px #000a; }
  .fsheet[open] { animation-name: fsheet-side; }
  @keyframes fsheet-side { from { transform: translateX(60px); opacity: 0; } }
  .fsheet .fair__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .fsheet[open] { animation: none; } }
/* подвал сайта внизу окна «Честная игра» */
.fsheet__foot { display: grid; gap: 14px; margin: 18px -16px 0; padding: 18px 16px 0; border-top: 1px solid #ffffff12; }
.fsheet__foot .stats, .fsheet__foot .ft { margin-left: 0; margin-right: 0; max-width: none; }
.fsheet__foot .ft { padding-bottom: 8px; }