/* ===== Краш (страница #crash): общий раунд для всех игроков ===== */
.crash { display: none; --ease-out: cubic-bezier(0.230, 1, 0.320, 1); }
body.is-crash .crash { display: block; max-width: 1180px; margin: 0 auto; animation: cview-in 0.400s var(--ease-out); }
body.is-crash .promo, body.is-crash .cases, body.is-crash .cview, body.is-crash .inv,
body.is-crash .dep, body.is-crash .prof, body.is-crash .upg { display: none; }
.crash .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* шапка: назад, логотип, номер раунда */
.crash__head { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; }
.crash__head .cview__back { flex: 0 0 auto; }
.crash__logo { height: 60px; width: auto; filter: drop-shadow(0 6px 14px rgb(47 140 255 / 0.450)); }
@media (min-width: 960px) { .crash__logo { height: 72px; } }
.crash__round { margin-left: auto; padding: 7px 11px; border-radius: 11px; font: 800 12px/1 var(--font-title); color: #aab6d6; background: #ffffff0d; box-shadow: inset 0 0 0 1px #ffffff17; }
.crash__round:empty { display: none; }

/* последние раунды */
.crash__hist { display: flex; gap: 6px; margin: 0 0 10px; padding: 2px 0; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.crash__hist::-webkit-scrollbar { display: none; }
.chip-x { flex: 0 0 auto; padding: 8px 11px; border-radius: 12px; font: 900 13px/1 var(--font-title); font-variant-numeric: tabular-nums;
  color: #8fc4ff; background: linear-gradient(180deg, #1b3a73, #132a55); box-shadow: inset 0 0 0 1.500px #3d7fe0aa; }
.chip-x--low { color: #ff8f9c; background: linear-gradient(180deg, #5a1d33, #3d1426); box-shadow: inset 0 0 0 1.500px #e0455f99; }
.chip-x--mid { color: #d3b4ff; background: linear-gradient(180deg, #3f2373, #2c1854); box-shadow: inset 0 0 0 1.500px #9b6dffaa; }
.chip-x--hi { color: #ffe08a; background: linear-gradient(180deg, #5c4410, #3d2d0a); box-shadow: inset 0 0 0 1.500px #ffc94aaa; }
.chip-x.is-new { animation: chip-in 0.500s var(--ease-out); }
@keyframes chip-in { from { transform: translateX(-20px) scale(0.700); opacity: 0; } }

/* раскладка: телефон — столбиком; компьютер — сцена слева, ставки справа, игроки снизу */
.crash__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.crash__grid > * { min-width: 0; }
@media (min-width: 960px) {
  .crash__grid { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "stage side" "board side"; align-items: start; }
  .cstage { grid-area: stage; }
  .crash__side { grid-area: side; }
  .cboard { grid-area: board; }
}

/* сцена: ночное небо с сиянием, кривая полёта, ракета */
.cstage { position: relative; height: clamp(300px, 72vw, 470px); border-radius: 24px; overflow: hidden; isolation: isolate;
  background: #14104a url("../assets/crash/sky.jpg?v=1") center 60% / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgb(170 180 255 / 0.220), 0 22px 44px -22px #000; }
.cstage::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(8 10 30 / 0.350), transparent 40%, rgb(8 10 30 / 0.450)); }
.crash[data-phase="fly"] .cstage { animation: sky-drift 26s linear infinite; }
@keyframes sky-drift { from { background-position: center 60%; } to { background-position: center 100%; } }
.cstage__cv { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
/* ракета смотрит вправо; центр поворота — середина корпуса, пламя бьёт из сопла слева */
.cstage__rocket { position: absolute; left: 0; top: 0; z-index: 3; width: 96px; height: 54px; pointer-events: none; opacity: 0; will-change: transform; }
.cstage__rocket img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 12px rgb(122 240 255 / 0.550)) drop-shadow(0 6px 10px #0007);
  animation: rocket-bob 0.900s ease-in-out infinite alternate; }
@keyframes rocket-bob { from { translate: 0 -1.500px; } to { translate: 0 1.500px; } }
.cstage__flame { position: absolute; right: 88%; top: 50%; width: 46px; height: 22px; margin-top: -11px; border-radius: 50% 40% 40% 50% / 50%; transform-origin: 100% 50%;
  background: radial-gradient(ellipse at 100% 50%, #fff 0%, #fff6c2 18%, #ffb347 42%, #ff5a2d 66%, rgb(255 45 85 / 0) 78%);
  filter: blur(0.500px) drop-shadow(0 0 10px #ff9a3d); animation: rocket-flame 0.090s linear infinite alternate; }
@keyframes rocket-flame { from { transform: scaleX(0.820) scaleY(0.900); } to { transform: scaleX(1.120) scaleY(1.050); } }
.cstage__trail { position: absolute; right: 92%; top: 50%; width: 120px; height: 10px; margin-top: -5px; border-radius: 99px;
  background: linear-gradient(270deg, rgb(122 240 255 / 0.550), rgb(155 109 255 / 0.250) 55%, transparent); filter: blur(3px); }
.crash[data-phase="fly"] .cstage__rocket { opacity: 1; }
.cstage__boom { position: absolute; z-index: 4; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #fff 0%, #ffe08a 16%, #ff7a3d 36%, #ff2d55 54%, transparent 70%); }
.cstage__boom.is-on { animation: crash-boom 0.750s var(--ease-out) forwards; }
@keyframes crash-boom { 0% { opacity: 1; transform: scale(0.200); } 60% { opacity: 0.900; transform: scale(1.250); } 100% { opacity: 0; transform: scale(1.700); } }
.cstage__center { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 6px; pointer-events: none; text-align: center; }
.cstage__label { font: 900 clamp(17px, 4.600vw, 24px)/1.100 var(--font-title); color: #fff; text-shadow: 0 2px 10px #0009; }
.cstage__label:empty { display: none; }
.cstage__x { font: 900 clamp(54px, 15vw, 96px)/1 var(--font-title); letter-spacing: -0.030em; color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 34px rgb(120 170 255 / 0.700), 0 5px 0 #0004; }
.crash[data-phase="end"] .cstage__x { color: #ff5a6e; text-shadow: 0 0 34px #ff2d55aa, 0 5px 0 #0004; }
.crash[data-phase="bet"] .cstage__x { font-size: clamp(40px, 11vw, 70px); }
.cstage__bar { width: min(240px, 60vw); height: 8px; margin-top: 6px; border-radius: 99px; overflow: hidden; background: #0a0e2299; box-shadow: inset 0 0 0 1px #ffffff26; }
.cstage__bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #5cc8ff, #b98cff); transform-origin: 0 50%; }
.crash:not([data-phase="bet"]) .cstage__bar { display: none; }
.cstage.is-shake { animation: crash-shake 0.450s !important; }
@keyframes crash-shake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -1px); } }

/* 1 или 2 ставки */
.cmode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: min(300px, 100%); margin: 0 auto 10px; padding: 4px; border-radius: 15px;
  background: #0b0f1fcc; box-shadow: inset 0 0 0 1px #ffffff17; }
.cmode button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border: 0; border-radius: 11px; cursor: pointer;
  font: 900 14px/1 var(--font-title); color: #9aa6c6; background: none; }
.cmode button i { width: 14px; height: 10px; border-radius: 2px; background: currentColor; }
.cmode button i.is-two { background: linear-gradient(currentColor 0 0) 0 0 / 100% 4px no-repeat, linear-gradient(currentColor 0 0) 0 100% / 100% 4px no-repeat; }
.cmode button.is-on { color: #fff; background: linear-gradient(180deg, #4aa3ff, #2f6dff); box-shadow: inset 0 1px 0 #ffffff59, 0 6px 14px -6px #2f8cff; }

/* панель ставки */
.cbets { display: grid; gap: 0; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #151b35, #0d1124); box-shadow: inset 0 0 0 1px #ffffff17; }
.cbet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; padding: 12px; }
.cbet + .cbet { border-top: 1px solid #ffffff12; }
.cbet[hidden] { display: none; }
.cbet__top { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-height: 30px; }
.ctog { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 800 13px/1 var(--font-title); color: #c3cce3; user-select: none; }
.ctog input { position: absolute; opacity: 0; pointer-events: none; }
.ctog i { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #2a3150; box-shadow: inset 0 0 0 1px #ffffff1c; transition: background-color 0.200s; }
.ctog i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #cfd6ea; transition: transform 0.200s var(--ease-out); }
.ctog input:checked + i { background: #2f8cff; }
.ctog input:checked + i::after { transform: translateX(16px); background: #fff; }
.ctog input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.ctog--play { margin-left: auto; color: #9aa6c6; font-size: 12px; }
.cbet__auto { display: flex; align-items: center; width: 92px; height: 30px; padding: 0 8px; border-radius: 9px; background: #080b16; box-shadow: inset 0 0 0 1px #ffffff1c; }
.cbet__auto[hidden] { display: none; }
.cbet__auto span { font: 900 13px/1 var(--font-title); color: #6f7a99; }
.cbet__auto input { width: 100%; min-width: 0; border: 0; background: none; outline: none; color: #fff; font: 900 14px/1 var(--font-title); -moz-appearance: textfield; }
.cbet__amt { display: grid; gap: 6px; }
.camt { display: flex; align-items: center; height: 46px; padding: 0 4px; border-radius: 14px; background: #080b16; box-shadow: inset 0 0 0 1px #ffffff1c; }
.camt:focus-within { box-shadow: inset 0 0 0 1.500px var(--accent); }
.camt button { flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 10px; cursor: pointer; font: 900 20px/1 var(--font-title); color: #fff; background: #ffffff12; }
.camt button:hover { background: rgb(var(--accent-rgb) / 0.300); }
.camt input { flex: 1; width: 100%; min-width: 0; border: 0; background: none; outline: none; text-align: center; color: #fff;
  font: 900 18px/1 var(--font-title); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.camt input::-webkit-outer-spin-button, .camt input::-webkit-inner-spin-button, .cbet__auto input::-webkit-outer-spin-button, .cbet__auto input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cqk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.cqk button { height: 32px; border: 0; border-radius: 10px; cursor: pointer; font: 800 12px/1 var(--font-title); color: #cfd8ee; background: #ffffff0f; box-shadow: inset 0 0 0 1px #ffffff14; }
.cqk button:hover { color: #fff; background: rgb(var(--accent-rgb) / 0.220); }
/* главная кнопка ставки */
.cbtn { display: grid; place-content: center; gap: 4px; min-height: 84px; border: 0; border-radius: 18px; cursor: pointer; text-align: center; color: #fff;
  background: linear-gradient(180deg, #4aa3ff, #2f6dff); box-shadow: inset 0 1px 0 #ffffff66, inset 0 -5px 0 #0003, 0 10px 22px -10px #2f8cff;
  transition: transform 0.150s, filter 0.200s; }
.cbtn b { font: 900 22px/1 var(--font-title); font-variant-numeric: tabular-nums; }
.cbtn span { font: 800 13px/1.150 var(--font-title); opacity: 0.900; }
.cbtn:active { transform: scale(0.980); }
.cbtn:disabled { cursor: default; filter: saturate(0.400) brightness(0.700); }
.cbtn--cash { color: #05230f; background: linear-gradient(180deg, #62ffad, #13b36f); box-shadow: inset 0 1px 0 #ffffff99, inset 0 -5px 0 #0002, 0 10px 24px -8px #13b36f; }
.cbtn--cancel { background: linear-gradient(180deg, #ff7a8a, #e0344f); box-shadow: inset 0 1px 0 #ffffff59, inset 0 -5px 0 #0003, 0 10px 22px -10px #e0344f; }
.cbtn--wait { background: linear-gradient(180deg, #ffb35c, #e0731a); box-shadow: inset 0 1px 0 #ffffff59, inset 0 -5px 0 #0003, 0 10px 22px -10px #e0731a; }
.cbtn--done { color: #c9ffe2; background: linear-gradient(180deg, #1d4d3a, #143528); box-shadow: inset 0 0 0 1.500px #3ddc8a88; }
.crash__msg { margin: 8px 0 0; font: 700 13px/1.300 var(--font-title); color: #ff8a8a; text-align: center; }
.crash__msg:empty { display: none; }
.crash__msg a { color: #8cc8ff; }

/* игроки / раунды / топ */
.cboard { padding: 10px; border-radius: 22px; background: linear-gradient(180deg, #131931, #0c1022); box-shadow: inset 0 0 0 1px #ffffff17; }
.cboard__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cboard__tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border: 0; border-radius: 13px; cursor: pointer;
  font: 900 14px/1 var(--font-title); color: #9aa6c6; background: #ffffff0a; box-shadow: inset 0 0 0 1px #ffffff14; }
.cboard__tabs button b { min-width: 20px; padding: 3px 6px; border-radius: 7px; font-size: 12px; color: #0b1a44; background: #8cc8ff; }
.cboard__tabs button.is-on { color: #fff; background: rgb(var(--accent-rgb) / 0.200); box-shadow: inset 0 0 0 1.500px rgb(var(--accent-rgb) / 0.700); }
.cboard__sum { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0 6px; padding: 12px 14px; border-radius: 15px; background: #ffffff08; box-shadow: inset 0 0 0 1px #ffffff12; }
.cboard__sum:empty { display: none; }
.cboard__sum div { display: grid; gap: 4px; }
.cboard__sum div:last-child { text-align: right; }
.cboard__sum b { font: 900 18px/1 var(--font-title); color: #fff; font-variant-numeric: tabular-nums; }
.cboard__sum div:last-child b { color: #6dffb0; }
.cboard__sum small { font: 700 12px/1 var(--font-title); color: #8592b3; }
.cboard__list { display: grid; gap: 4px; max-height: 460px; overflow-y: auto; scrollbar-width: thin; }
.crow { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; min-height: 46px; padding: 6px 10px; border-radius: 13px; background: #ffffff06; }
.crow--head { min-height: 26px; background: none; font: 800 11px/1 var(--font-title); color: #6f7a99; text-transform: uppercase; letter-spacing: 0.040em; }
.crow--head span:first-child { grid-column: 1 / 3; }
.crow__ava { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 900 14px/1 var(--font-title); color: #fff;
  background: linear-gradient(145deg, var(--a1), var(--a2)); }
.crow__name { overflow: hidden; font: 800 14px/1.200 var(--font-title); color: #e6ecfa; white-space: nowrap; text-overflow: ellipsis; }
.crow__name em { margin-left: 6px; padding: 2px 6px; border-radius: 6px; font-style: normal; font-size: 11px; color: #0b1a44; background: #8cc8ff; }
.crow__bet, .crow__x, .crow__win { font: 800 13px/1 var(--font-title); font-variant-numeric: tabular-nums; text-align: right; }
.crow__bet { color: #cfd6ea; }
.crow__x { min-width: 44px; color: #c9a8ff; }
.crow__win { min-width: 64px; color: #8592b3; }
.crow.is-won { background: rgb(19 179 111 / 0.120); box-shadow: inset 0 0 0 1px rgb(61 220 138 / 0.300); }
.crow.is-won .crow__win { color: #6dffb0; }
.crow.is-lost { opacity: 0.550; }
.crow.is-mine .crow__name { color: #fff; }
.cboard__empty { padding: 26px 10px; font: 700 13px/1.400 var(--font-title); color: #6f7a99; text-align: center; }

@media (max-width: 380px) {
  .cbet { grid-template-columns: minmax(0, 1fr); }
  .cbtn { min-height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  body.is-crash .crash, .cstage.is-shake, .cstage__boom.is-on, .chip-x.is-new, .crash[data-phase="fly"] .cstage { animation: none !important; }
}

/* ===== Новый верх Краша: панель игры, логотип с балансом, история и сцена на одном небе ===== */
@media (min-width: 960px) {
  .crash__grid { grid-template-areas: "sky side" "board side"; }
  .csky { grid-area: sky; }
  .cstage { grid-area: auto; }
}
.csky { position: relative; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: #14104a url("../assets/crash/sky.jpg?v=1") center 70% / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgb(170 180 255 / 0.220), 0 22px 44px -22px #000; }
.csky::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgb(8 10 30 / 0.550), rgb(8 10 30 / 0.150) 35%, transparent 60%, rgb(8 10 30 / 0.450)); }
.crash[data-phase="fly"] .csky { animation: sky-drift 26s linear infinite; }
.crash[data-phase="fly"] .cstage { animation: none; }
/* сцена теперь без своей рамки — она часть общего неба */
.cstage { height: clamp(250px, 60vw, 400px); border-radius: 0; background: none; box-shadow: none; }
.cstage::before { display: none; }

/* полоска игры: иконка, название, звук / честная игра / во весь экран */
.cbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgb(6 8 20 / 0.720);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgb(255 255 255 / 0.080); }
.cbar__ico { width: 40px; height: 28px; object-fit: contain; transform: rotate(-24deg); filter: drop-shadow(0 0 8px rgb(122 240 255 / 0.500)); }
.cbar__title { font: 900 22px/1 var(--font-title); letter-spacing: -0.010em; color: #fff; }
.cbar .crash__round { margin-left: 4px; padding: 5px 8px; font-size: 11px; white-space: nowrap; }
@media (max-width: 400px) { .cbar .crash__round { display: none; } }
.cbar__btns { display: flex; gap: 8px; margin-left: auto; }
.cbtn-g { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 15px; cursor: pointer; color: #e6ecfa;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.080), rgb(255 255 255 / 0.020)), rgb(12 15 32 / 0.700);
  box-shadow: inset 0 0 0 1.500px rgb(92 200 255 / 0.450), inset 0 1px 0 rgb(255 255 255 / 0.120), 0 6px 14px -8px #000;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: box-shadow 0.200s, color 0.200s, transform 0.150s; }
.cbtn-g svg { width: 23px; height: 23px; }
.cbtn-g:hover { color: #fff; box-shadow: inset 0 0 0 1.500px #7af0ff, inset 0 1px 0 rgb(255 255 255 / 0.150), 0 0 16px -4px #5cc8ff; }
.cbtn-g:active { transform: scale(0.950); }
.cbtn-g:focus-visible { outline: 2px solid #7af0ff; outline-offset: 2px; }
#crash-sound .is-off { display: none; }
#crash-sound[aria-pressed="false"] .is-on { display: none; }
#crash-sound[aria-pressed="false"] .is-off { display: block; }
#crash-sound[aria-pressed="false"] { color: #8a93ad; }

/* логотип + баланс + меню */
.crash__head { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 12px 6px; }
.crash__logo { height: 62px; margin-right: auto; }
.cbal { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px 0 8px; border-radius: 15px; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.080), rgb(255 255 255 / 0.020)), rgb(12 15 32 / 0.700);
  box-shadow: inset 0 0 0 1.500px rgb(92 200 255 / 0.450), inset 0 1px 0 rgb(255 255 255 / 0.120);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cbal__coin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 900 15px/1 var(--font-title); font-style: normal; color: #fff;
  background: radial-gradient(circle at 35% 30%, #8fd2ff, #2f8cff 60%, #1b4fd0); box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.350), 0 0 10px rgb(47 140 255 / 0.600); }
.cbal b { font: 900 18px/1 var(--font-title); font-variant-numeric: tabular-nums; }

/* история: стеклянные плашки «1,95×» с цветной рамкой */
.csky .crash__hist { margin: 0; padding: 6px 12px 4px; gap: 8px; }
.chip-x { padding: 9px 13px; border-radius: 13px; font: 900 15px/1 var(--font-title); color: #6fb8ff;
  background: rgb(47 140 255 / 0.160); box-shadow: inset 0 0 0 1.500px rgb(92 170 255 / 0.700);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.chip-x--low { color: #ff5a6e; background: rgb(255 45 85 / 0.160); box-shadow: inset 0 0 0 1.500px rgb(255 80 105 / 0.700); }
.chip-x--mid { color: #b48cff; background: rgb(155 109 255 / 0.170); box-shadow: inset 0 0 0 1.500px rgb(170 130 255 / 0.700); }
.chip-x--blue { color: #6fb8ff; }
.chip-x--hot { color: #ffad42; background: rgb(255 154 40 / 0.160); box-shadow: inset 0 0 0 1.500px rgb(255 168 66 / 0.750); }
.chip-x--hi { color: #ffd84a; background: rgb(255 210 60 / 0.170); box-shadow: inset 0 0 0 1.500px rgb(255 214 80 / 0.800); }

/* во весь экран */
.crash:fullscreen { overflow-y: auto; padding: 12px; background: #090c1a; }
.crash:-webkit-full-screen { overflow-y: auto; padding: 12px; background: #090c1a; }

/* окно «Честная игра» */
.cfair__steps { display: grid; gap: 8px; margin: 4px 0 12px; padding-left: 20px; font: 600 13px/1.450 var(--font-body, inherit); color: #c9d4ee; }
.cfair__steps b { color: #fff; }
.cfair__box { display: grid; gap: 8px; margin-bottom: 10px; padding: 12px; border-radius: 14px; background: #ffffff08; box-shadow: inset 0 0 0 1px #ffffff14; }
.cfair__cap { font: 800 12px/1 var(--font-title); color: #8e9bbb; }
.cfair__code { display: block; padding: 9px 10px; border-radius: 10px; font: 600 11.500px/1.400 ui-monospace, Consolas, monospace; color: #9fd4ff; background: #070a14; word-break: break-all; }
.cfair__in { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.cfair__res { font: 700 13px/1.450 var(--font-title); color: #c9d4ee; word-break: break-all; }
.cfair__res .ok { color: #6dffb0; }
.cfair__res .bad { color: #ff8a8a; }
.crow__seed { cursor: pointer; }
@media (max-width: 380px) {
  .crash__logo { height: 50px; }
  .cbtn-g { width: 42px; height: 42px; }
  .cbal { padding-right: 12px; }
}
/* ===== Баланс и меню в духе Midas: шестигранная монета, сумма с копейками, тонкая светлая рамка ===== */
.cbal { gap: 10px; height: 52px; padding: 0 18px 0 10px; border-radius: 17px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.100), rgb(255 255 255 / 0.030)), rgb(14 18 38 / 0.620);
  box-shadow: inset 0 0 0 1.500px rgb(140 210 255 / 0.550), inset 0 1px 0 rgb(255 255 255 / 0.180), 0 8px 18px -10px #000; }
.cbal__coin { width: 34px; height: 38px; border-radius: 0; font-size: 17px; color: #0b2a66; text-shadow: 0 1px 0 rgb(255 255 255 / 0.500);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, #e8f7ff 0%, #8fd2ff 30%, #2f8cff 70%, #1b4fd0 100%); box-shadow: none; position: relative; }
.cbal__coin::before { content: ""; position: absolute; inset: 4px; z-index: -1; clip-path: inherit; background: linear-gradient(160deg, #bfe6ff, #4aa3ff); }
.cbal { isolation: isolate; }
.cbal b { font-size: 20px; letter-spacing: -0.010em; }
.cbtn-g--menu { width: 52px; height: 52px; border-radius: 17px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.100), rgb(255 255 255 / 0.030)), rgb(14 18 38 / 0.620);
  box-shadow: inset 0 0 0 1.500px rgb(140 210 255 / 0.550), inset 0 1px 0 rgb(255 255 255 / 0.180), 0 8px 18px -10px #000; }
.cbtn-g--menu svg { width: 26px; height: 26px; }
.crash__logo { height: 70px; filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.450)); }
@media (min-width: 960px) { .crash__logo { height: 80px; } }
@media (max-width: 380px) { .crash__logo { height: 56px; } .cbal b { font-size: 17px; } .cbal { height: 46px; padding-right: 12px; } .cbtn-g--menu { width: 46px; height: 46px; } }
.cfair__all { display: flex; align-items: center; justify-content: center; margin-top: 10px; text-decoration: none; }
/* ===== Баланс в духе Midas: маленькая шестигранная монета с ободком, сумма аккуратнее ===== */
.cbal { gap: 8px; height: 44px; padding: 0 14px 0 10px; border-radius: 14px; }
.cbal__coin { position: relative; flex: 0 0 auto; width: 24px; height: 26px; border-radius: 0; font: 800 12px/1 var(--font-title); font-style: normal; color: #0b2a66;
  text-shadow: none; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, #d9f1ff, #4aa3ff 55%, #1d5fd6); box-shadow: none; display: grid; place-items: center; isolation: isolate; }
.cbal__coin::before { content: ""; position: absolute; inset: 2.500px; z-index: -1; clip-path: inherit; background: linear-gradient(160deg, #b8e4ff, #7cc4ff 60%, #4a9dff); }
.cbal b { font: 800 16px/1 var(--font-title); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cbtn-g--menu { width: 44px; height: 44px; border-radius: 14px; }
.cbtn-g--menu svg { width: 22px; height: 22px; }
/* монета в поле ставки Мин — такая же маленькая */
.mamt .cbal__coin { width: 22px; height: 24px; font-size: 11px; }
@media (max-width: 380px) { .cbal b { font-size: 15px; } .cbal { height: 42px; padding-right: 11px; } .cbtn-g--menu { width: 42px; height: 42px; } }