/* LUNADROP — страницы */

.view--in { animation: viewin .38s var(--ease); }
@keyframes viewin { from { opacity: 0; transform: translateY(10px); } }

/* --------------------------------------------------------- загрузка ---- */

.boot { display: grid; place-items: center; gap: 14px; padding: 120px 20px; text-align: center; }
.boot b { font-family: var(--head); letter-spacing: .12em; font-size: 14px; }
.boot small { color: var(--tx-3); font-size: 12px; }
.boot__moon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #ffa8dd, #ff2f93 55%, #6d0b3e);
  box-shadow: 0 0 60px -6px var(--pink);
  animation: bootspin 2.6s var(--ease) infinite;
}
@keyframes bootspin {
  0%, 100% { transform: scale(1) rotate(0); filter: brightness(1); }
  50% { transform: scale(.82) rotate(180deg); filter: brightness(1.4); }
}

/* ------------------------------------------------------------- hero ---- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr);
  gap: 22px;
  margin-bottom: 34px;
}
.hero__main {
  position: relative;
  padding: 34px 36px 30px;
  background: linear-gradient(150deg, #100d16, #0a0810 62%);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.hero__main::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 7px);
  mask-image: linear-gradient(90deg, transparent 55%, #000 100%);
  opacity: .5;
}
.hero__main::after {
  content: '';
  position: absolute; right: -140px; bottom: -170px;
  width: 340px; height: 340px; border-radius: 50%;
  border: 1px solid rgba(255, 47, 147, .22);
  box-shadow: 0 0 0 34px rgba(255, 47, 147, .04);
}
.hero__top {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.hero__rtp {
  margin-left: auto;
  font-size: 10px; letter-spacing: .16em;
  color: var(--mint);
  border: 1px solid rgba(53, 224, 161, .32);
  padding: 5px 8px;
}
.hero__title {
  position: relative; z-index: 2;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: .92;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: -.035em;
}
.hero__title i { font-style: normal; color: var(--pink); }
.hero__text { position: relative; z-index: 2; max-width: 460px; color: var(--tx-2); font-size: 13.5px; margin: 0 0 24px; }
.hero__acts { position: relative; z-index: 2; display: flex; gap: 12px; flex-wrap: wrap; }

.hero__facts {
  position: relative; z-index: 2;
  display: flex; gap: 34px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.fact { display: flex; align-items: baseline; gap: 8px; }
.fact i { font-style: normal; font-size: 9px; color: var(--pink); letter-spacing: .1em; }
.fact b { font-size: 19px; color: var(--tx); }
.fact span { font: 600 9.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--tx-3); }

.hero__side { display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.hero__lvl, .hero__jack {
  padding: 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 16px;
}
.hero__jack {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 80% 20%, var(--rc-24), transparent 62%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border-color: var(--rc-45);
  transition: transform .25s var(--ease-snap), box-shadow .3s, border-color .3s;
}
.hero__jack:hover { transform: translateY(-3px); box-shadow: 0 24px 46px -28px var(--rc); }
.hero__jacktag {
  font: 800 10px/1 var(--mono);
  color: var(--rc);
  border: 1px solid var(--rc-45);
  border-radius: 6px;
  padding: 4px 7px;
}
.hero__lvl b { font-family: var(--head); font-size: 15px; }

.jack { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.jack__img {
  width: 96px; height: 72px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 60%, var(--rc-24), transparent 70%);
}
.jack__img img { max-height: 70px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); }
.jack b {
  display: block; font: 700 14px/1.25 var(--body);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 190px;
}
.jack__price { display: block; color: var(--rc); font-size: 17px; margin: 4px 0 2px; }
.jack small { font-size: 11.5px; }
.jack:hover .jack__img img { transform: scale(1.08); transition: transform .3s var(--ease-snap); }

/* ------------------------------------------------------ витрина кейсов ---- */

.cases-filter {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.cases-group { margin-bottom: 40px; }
.cases-group .sect-title { margin-bottom: 18px; }
.sect-title small { font-size: 12px; font-family: var(--body); font-weight: 500; letter-spacing: 0; text-transform: none; }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 16px;
}

.case {
  position: relative;
  display: flex; flex-direction: column;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, #14111c, #0d0b12 78%);
  border: 1px solid var(--line);
  border-radius: 18px;
  transform-style: preserve-3d;
  transform: perspective(760px) rotateY(var(--tx, 0deg)) rotateX(var(--ty, 0deg));
  transition: transform .28s var(--ease), border-color .28s, box-shadow .35s;
  overflow: hidden;
}
.case::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(220px 160px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .07), transparent 70%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.case:hover { border-color: var(--rc-45); box-shadow: 0 26px 50px -30px var(--rc), 0 18px 40px -34px #000; }
.case::before {
  content: '';
  position: absolute; top: 0; left: 12%; right: 12%; height: 2px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, var(--rc) 22%, var(--rc) 78%, transparent);
  opacity: .85;
  z-index: 4;
  transition: left .35s var(--ease), right .35s var(--ease), opacity .3s;
}
.case:hover::before { left: 0; right: 0; opacity: 1; }
.case:hover::after { opacity: 1; }

.case__art {
  position: relative;
  height: 196px;
  display: grid; place-items: center;
  margin-bottom: 10px;
}
.case__glow {
  position: absolute; inset: 16% 12%;
  background: radial-gradient(circle at 50% 58%, var(--rc-45), transparent 68%);
  filter: blur(20px);
  opacity: .6;
  transition: opacity .35s, transform .45s var(--ease);
}
.case:hover .case__glow { opacity: .8; transform: scale(1.1); }

/* силуэт контейнера */
.case__box {
  position: absolute; inset: 18px 22px 6px;
  background: linear-gradient(180deg, var(--rc), rgba(0, 0, 0, .5));
  opacity: .24;
  -webkit-mask: var(--case-svg) center / contain no-repeat;
  mask: var(--case-svg) center / contain no-repeat;
  --case-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 74'%3E%3Cpath d='M6 22h88v46a4 4 0 0 1-4 4H10a4 4 0 0 1-4-4V22z'/%3E%3Cpath d='M4 8a4 4 0 0 1 4-4h84a4 4 0 0 1 4 4v14H4V8z'/%3E%3Crect x='40' y='30' width='20' height='16' rx='2' fill='%23000'/%3E%3C/svg%3E");
  transition: transform .5s var(--ease);
}
.case:hover .case__box { transform: translateY(4px) scale(1.04); }

.case__hero { position: relative; z-index: 3; transform: translateZ(30px); }
.case__hero img {
  max-height: 148px;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .6));
  transition: transform .45s var(--ease-snap);
}
.case:hover .case__hero img { transform: translateY(-8px) scale(1.09) rotate(-2deg); }

.case__mini {
  position: absolute; bottom: 16px; z-index: 2;
  opacity: .45;
  transition: transform .45s var(--ease), opacity .35s;
}
.case__mini img { max-height: 68px; }
.case__mini--l { left: 4px; transform: rotate(-12deg); }
.case__mini--r { right: 4px; transform: rotate(12deg); }
.case:hover .case__mini--l { transform: rotate(-19deg) translate(-6px, -4px); opacity: .8; }
.case:hover .case__mini--r { transform: rotate(19deg) translate(6px, -4px); opacity: .8; }

.case__name {
  font-family: var(--head); font-weight: 600; font-size: 16.5px;
  letter-spacing: -.025em;
  text-align: center;
  margin-bottom: 10px;
  /* «Терминал Мёртвая рука» и «Операция Дикое пламя» не влезают в строку,
     поэтому две строки с одинаковой высотой блока у всех карточек */
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}
.case__foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
}
.case__price { font: 700 18px/1 var(--mono); color: var(--moon); }
.case__cnt { font: 600 10px/1 var(--mono); color: var(--tx-3); letter-spacing: .1em; }
.case__cta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 13px;
  text-align: center;
  font: 700 13px/1 var(--body); letter-spacing: -.01em;
  color: #fff;
  background: linear-gradient(180deg, #ff54a8, #ec1a7f);
  transform: translateY(101%);
  transition: transform .3s var(--ease);
}
.case:hover .case__cta { transform: translateY(0); }

.case__tag {
  position: absolute; top: 12px; left: 12px; z-index: 5;
  padding: 5px 9px;
  border-radius: 7px;
  font: 700 10px/1 var(--mono); letter-spacing: .1em;
}
.case__tag--new { background: var(--mint); color: #04150e; }
.case__tag--hot { background: var(--pink); color: #fff; }
.case__tag--limited { background: var(--warn); color: #1d1200; }
.case__tag--free { background: #fff; color: #111; }

/* ---------------------------------------------------------------- FAQ ---- */

.faq { margin-top: 46px; }
.faq__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 18px; }
.faq__item {
  position: relative;
  padding: 20px;
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease-snap);
}
.faq__item:hover { border-color: var(--pink); transform: translateY(-3px); }
.faq__item b { display: block; font-family: var(--head); font-size: 13.5px; margin-bottom: 8px; }
.faq__item p { margin: 0; color: var(--tx-2); font-size: 13px; }
.faq__n {
  position: absolute; right: 10px; top: 6px;
  font-size: 34px; color: rgba(255, 255, 255, .04);
}

/* -------------------------------------------------------- кейс: шапка ---- */

.case-head {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.case-head__title h1 { font-size: 30px; letter-spacing: -.03em; }
.case-head__title p { margin: 5px 0 0; font-size: 13px; }
.case-head__price {
  margin-left: auto;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  padding: 11px 20px;
  border: 1px solid var(--rc-45);
  background: var(--rc-10);
  border-radius: 12px;
}
.case-head__price b { font-size: 22px; color: var(--rc); }

/* ------------------------------------------------------------ рулетка ---- */

.roller {
  position: relative;
  min-height: 256px;
  padding: 18px 0;
  background:
    radial-gradient(80% 120% at 50% 50%, rgba(255, 47, 147, .09), transparent 70%),
    linear-gradient(180deg, #100e17, #0a0810);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.reels { display: flex; flex-direction: column; gap: 10px; }
.reel { overflow: hidden; }
.reel__tape { display: flex; gap: 10px; will-change: transform; backface-visibility: hidden; }
.rcell { contain: layout paint; }

.rcell {
  position: relative;
  flex: none;
  width: 210px; height: 218px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  background: linear-gradient(180deg, var(--rc-10), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--rc);
  border-radius: 12px;
  padding: 8px;
  overflow: hidden;
}
.rcell img { max-height: 132px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .6)); }
.roller.is-spinning .rcell img { filter: none; }
.roller.is-spinning .rcell__glow { opacity: .32; }
.reel__tape { backface-visibility: hidden; }
.rcell b {
  font: 700 13px/1.2 var(--body); color: var(--tx-2);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rcell__price { font-size: 11px; color: var(--rc); }
.rcell__glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, var(--rc-24), transparent 66%);
  opacity: .5;
}
.rcell.is-win {
  animation: winpop .6s var(--ease-snap);
  box-shadow: 0 0 0 2px var(--rc), 0 0 46px -8px var(--rc);
  z-index: 2;
}
@keyframes winpop { 40% { transform: scale(1.08); } }

.roller__beam {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  margin-left: -1px; z-index: 6;
  background: linear-gradient(180deg, transparent, var(--pink) 12%, #fff 50%, var(--pink) 88%, transparent);
  box-shadow: 0 0 20px 2px rgba(255, 47, 147, .75);
}
.roller__mark {
  position: absolute; left: 50%; z-index: 7;
  margin-left: -8px;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}
.roller__mark--t { top: 0; border-top: 11px solid var(--pink); }
.roller__mark--b { bottom: 0; border-bottom: 11px solid var(--pink); }
.roller__fade {
  position: absolute; top: 0; bottom: 0; width: 130px; z-index: 5; pointer-events: none;
}
.roller__fade--l { left: 0; background: linear-gradient(90deg, #0a0810 10%, transparent); }
.roller__fade--r { right: 0; background: linear-gradient(270deg, #0a0810 10%, transparent); }

/* -------------------------------------------------- кейс: управление ---- */

.case-ctl {
  margin: 18px 0 40px;
  padding: 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid; gap: 14px;
}
.case-ctl__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.case-ctl__row2 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Быстрая прокрутка: квадрат вплотную к главной кнопке.
   Ползунок в углу страницы никто не замечал, а тут состояние
   читается по подписи ВКЛ/ВЫКЛ и по подсветке рамки. */
.upgo-row { display: flex; align-items: stretch; gap: 10px; width: 100%; }
.upgo-row > .btn { flex: 1; min-width: 0; max-width: none; }
.upcol--mid .upgo-row { max-width: 306px; }

.sqtoggle {
  flex: none;
  width: 60px;
  display: grid; align-content: center; justify-items: center; gap: 4px;
  border: 1px solid #2c2739;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--tx-3);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.sqtoggle .ic { width: 20px; height: 20px; }
.sqtoggle__state { font: 800 9px/1 var(--mono); letter-spacing: .12em; }
.sqtoggle:hover { border-color: #3c3550; color: var(--tx-2); }
.sqtoggle:focus-visible { outline: 2px solid var(--warn); outline-offset: 2px; }
.sqtoggle.is-on {
  border-color: var(--warn);
  color: var(--warn);
  background: linear-gradient(180deg, rgba(255, 177, 20, .20), rgba(255, 177, 20, .05));
  box-shadow: 0 10px 26px -16px var(--warn), inset 0 0 22px -14px var(--warn);
}
.sqtoggle.is-on .ic { filter: drop-shadow(0 0 6px rgba(255, 177, 20, .8)); }

/* строка-переключатель в настройках апгрейда */
.upset__row { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.upset__rowtext { min-width: 0; }
.upset__rowtext p { margin: 6px 0 0; font-size: 12px; line-height: 1.45; }
.case-ctl__timer { font-size: 13px; color: var(--tx-2); }

.case-cont { margin-top: 10px; }
.case-cont .grid .item,
/* без content-visibility: карточки появлялись с опозданием и «вырастали» при прокрутке */
.upgrid .item { content-visibility: visible; }
.case-cont .grid { margin-top: 18px; }

.win-one { display: grid; place-items: center; padding: 6px 0 4px; }
.win-one .item { width: 240px; }
.win-acts { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.win-acts .btn { flex: 1; min-width: 150px; }

.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i {
  position: absolute; top: -12px;
  width: 7px; height: 12px;
  animation: fall 2.6s linear forwards;
}
@keyframes fall {
  to { transform: translateY(560px) rotate(620deg); opacity: 0; }
}

/* ----------------------------------------------------------- апгрейд ---- */

.upstage {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 360px) 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}
.upcol {
  display: flex; flex-direction: column; gap: 12px;
}
.upcol--mid { align-items: center; gap: 18px; }
.upcol__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.upslot {
  position: relative;
  min-height: 412px;
  display: flex; flex-direction: column;
  padding: 16px;
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(255, 255, 255, .03), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
}
.upslot__empty {
  flex: 1;
  display: grid; place-content: center; text-align: center; gap: 6px;
  border: 1px dashed #2a2436;
  border-radius: 12px;
  padding: 22px;
  color: var(--tx-3);
}
.upslot__empty b { font-family: var(--head); font-size: 14px; color: var(--tx-2); }
.upslot__empty span { font-size: 12px; max-width: 220px; }
.upslot__list {
  flex: 1;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  max-height: 340px; overflow-y: auto;
  padding-right: 4px;
  align-content: start;
}
/* чем больше скинов в ставке, тем компактнее карточки */
.upslot__list--tight { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.upslot__list--tight .item--sm { min-height: 132px; padding: 8px; }
.upslot__list--tight .item--sm .item__img { height: 58px; margin: 2px 0 6px; }
.upslot__list--tight .item--sm .item__img img { max-height: 58px; }
.upslot__list--tight .item--sm .item__weapon { font-size: 8.5px; }
.upslot__list--tight .item--sm .item__name { font-size: 11px; }
.upslot__list--tight .item--sm .item__price { font-size: 11.5px; }
.upslot__sum {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  margin-top: 12px; padding-top: 12px;
}
.upslot__sum b { font-size: 17px; color: var(--moon); }

.upcash-card { cursor: default; }
.upcash-card__ic {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  font: 700 22px/1 var(--mono);
  color: #1d1200;
  background: linear-gradient(140deg, #ffd45e, #ffb114);
  border-radius: 10px;
}

.upcash { padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.upcash b { color: var(--moon); }

.slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; margin: 12px 0 4px;
  background: linear-gradient(90deg, var(--pink), var(--pink-2)) no-repeat,
              #0c0a12;
  background-size: var(--fill, 0%) 100%, 100% 100%;
  outline: none;
}
.slider { border-radius: 4px; }
/* луна-ползунок: картинка обрезана по самой луне и отцентрована (в moon.png
   полумесяц смещён вправо-вниз — на дорожке это выглядело криво) */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  background: center / contain no-repeat url('../assets/moon-thumb.png');
  border: 0;
  cursor: pointer;
  filter: drop-shadow(0 0 8px rgba(255, 47, 147, .8));
}
.slider::-moz-range-thumb {
  width: 24px; height: 24px;
  background: center / contain no-repeat url('../assets/moon-thumb.png');
  border: 0;
  cursor: pointer;
  filter: drop-shadow(0 0 8px rgba(255, 47, 147, .8));
}

/* Крупный скин в окне цели и в окне ставки, когда предмет один:
   название сверху, большая иконка, цена по центру чуть ниже скина. */
.uptarget {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center; align-content: center;
  gap: 8px; text-align: center;
  padding: 14px 10px 6px;
  border-radius: 14px;
  background:
    radial-gradient(85% 62% at 50% 46%, var(--rc-24), transparent 72%),
    radial-gradient(100% 80% at 50% 0%, rgba(255, 255, 255, .03), transparent 60%);
}
.uptarget--pick { cursor: pointer; }
.uptarget--pick:hover { background-color: rgba(255, 255, 255, .03); }
.uptarget--pick::after {
  content: 'убрать';
  position: absolute; top: 10px; right: 12px;
  font: 700 9px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--tx-3);
  opacity: 0; transition: opacity .2s;
}
.uptarget--pick:hover::after { opacity: 1; }

.uptarget__head { display: grid; gap: 3px; max-width: 100%; }
.uptarget__weapon {
  font: 600 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--tx-3);
}
.uptarget__name {
  display: block;
  font: 700 21px/1.15 var(--head);
  letter-spacing: -.03em;
  color: var(--tx);
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uptarget__wear { font: 600 10.5px/1 var(--mono); color: var(--tx-2); letter-spacing: .04em; }

.uptarget__img {
  display: grid; place-items: center;
  width: 100%; min-height: 0;
  padding: 4px 0;
}
.uptarget__img img {
  max-height: 230px; width: auto;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .72));
  animation: skinin .45s var(--ease-snap);
}
@keyframes skinin { from { opacity: 0; transform: translateY(12px) scale(.9); } }

/* цена — ровно по центру, сразу под скином */
.uptarget__price {
  font: 800 26px/1 var(--mono);
  color: var(--moon);
  letter-spacing: -.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .7);
  padding: 8px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--rc-45);
}
.uptarget__tag {
  position: absolute; top: 10px; left: 12px;
  color: var(--tx-3);
}

.upmults { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.upmult {
  padding: 10px 4px;
  background: rgba(255, 255, 255, .028);
  border: 1px solid #272232;
  border-radius: 11px;
  transition: all .2s var(--ease);
  text-align: center;
}
.upmult b { display: block; font: 800 14px/1 var(--mono); color: var(--tx); }
.upmult span { font: 600 9px/1 var(--mono); color: var(--tx-3); }
.upmult:hover { transform: translateY(-2px); border-color: #3a3450; background: rgba(255,255,255,.06); }
.upmult.is-on {
  background: linear-gradient(180deg, rgba(255, 47, 147, .2), rgba(255, 47, 147, .05));
  border-color: var(--pink);
}
.upmult.is-on b { color: var(--pink-2); }

/* ------------------------------------------------------------ колесо ---- */

.upbrand { display: flex; justify-content: center; margin-bottom: 4px; }
.upbrand .logo--sm { font-size: 20px; }
.upbrand .logo.has-img .logo__img { height: 62px; }

.wheel {
  position: relative;
  width: 306px; height: 306px;
  display: grid; place-items: center;
}
.wheel__halo {
  position: absolute; inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 47, 147, .12), transparent 62%);
  opacity: 0;
  transition: opacity .5s;
}
.wheel[data-state='ready'] .wheel__halo { opacity: 1; }

/* шкала наливается только по ободу — середина остаётся пустой */


/* метки шкалы, как на барабане: верх — 100%, по краям уровня — текущий шанс */
.wheel__cap, .wheel__lvl {
  position: absolute; z-index: 6;
  font: 600 10px/1 var(--mono);
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
  pointer-events: none;
}
.wheel__cap { top: 26px; left: 50%; transform: translateX(-50%); }
.wheel__lvl {
  bottom: var(--h, 0%);
  color: #ffd9ee;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
  transition: bottom .85s cubic-bezier(.34, .8, .24, 1);
  margin-bottom: -5px;
}
.wheel__lvl--l { left: 24px; }
.wheel__lvl--r { right: 24px; }

/* обод со шкалой и затопленной дугой */
.wheel__dial { position: absolute; inset: 0; pointer-events: none; }
.wheel__svg { width: 100%; height: 100%; overflow: visible; }
.wheel__track { stroke: #191524; }
.wheel__rim { stroke: #322b45; }
.wheel__sector {
  stroke: url(#gauge-grad);
  stroke: #ff3d9c;
  filter: drop-shadow(0 0 7px rgba(255, 47, 147, .55));
  transition: stroke-dasharray .9s cubic-bezier(.32, .72, .2, 1), stroke-dashoffset .9s cubic-bezier(.32, .72, .2, 1);
}
.wheel__ticks line { stroke: #cfc6e4; stroke-width: 1.3; mix-blend-mode: overlay; }

/* стрелка-указатель */
.wheel__needle {
  position: absolute; inset: 0;
  z-index: 5;
  will-change: transform;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  contain: layout style paint;
}
.wheel__arrow {
  position: absolute; top: -2px; left: 50%;
  margin-left: -9px;
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 21px solid #fff;
}
.wheel__arrow::after {            /* мягкое свечение без filter */
  content: '';
  position: absolute; left: -13px; top: -24px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 70%);
}

.wheel__core {
  position: relative; z-index: 4;
  width: 186px; height: 186px;
  display: grid; place-content: center; justify-items: center; gap: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 32%, #16121d, #0a0810 78%);
  border: 1px solid rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .8);
}
.wheel__logo { width: 42px; height: 42px; margin-bottom: 8px; filter: drop-shadow(0 0 12px rgba(255, 47, 147, .6)); }
.wheel__pct {
  font-size: 30px;
  color: #fff;
  letter-spacing: -.03em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
}
.wheel__mult { font-size: 11.5px; color: var(--tx-2); letter-spacing: .06em; }

.wheel[data-result='win'] .wheel__core { animation: winglow 1s var(--ease); border-color: rgba(255, 47, 147, .6); }
.wheel[data-result='lose'] .wheel__core { animation: shake .5s; border-color: rgba(255, 77, 77, .5); }
@keyframes winglow {
  50% { box-shadow: 0 0 60px rgba(255, 47, 147, .55); transform: scale(1.05); }
}
@keyframes shake {
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

.upgo { width: 100%; max-width: 306px; }
.uplimit {
  max-width: 306px;
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: #ff8080;
}

/* ------------------------------------------------------ лунный разгон ---- */

.rush {
  position: absolute; inset: 0; z-index: 12;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: #07060b;
  box-shadow: inset 0 0 120px rgba(255, 47, 147, .16);
  animation: fade .25s var(--ease);
}
.rush__label { text-align: center; }
.rush__label b {
  display: block;
  font: 800 15px/1 var(--head); letter-spacing: .18em;
  background: linear-gradient(100deg, var(--moon), var(--pink-2), var(--moon));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 1.4s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }
.rush__label span { font: 600 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--tx-3); }
.rush__stage {
  width: 240px; height: 180px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 55%, var(--rc-24), transparent 68%);
  border: 1px solid var(--rc-45);
}
.rush__stage img { max-height: 160px; animation: rushpop .16s var(--ease-snap); }
@keyframes rushpop { from { transform: scale(.78); opacity: .3; } }
.rush__mult {
  font-size: 30px;
  color: var(--moon);
  text-shadow: 0 0 24px rgba(255, 233, 201, .5);
}
.rush__mult[data-hot='1'] { color: var(--pink-2); text-shadow: 0 0 28px var(--pink); }
.rush.is-done .rush__stage { animation: winpop .5s var(--ease-snap); box-shadow: 0 0 50px -8px var(--rc); }

.flash {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  animation: flashout .9s var(--ease) forwards;
}
.flash--win { background: radial-gradient(circle at 50% 45%, rgba(53, 224, 161, .3), transparent 60%); }
.flash--lose { background: radial-gradient(circle at 50% 45%, rgba(255, 60, 60, .22), transparent 60%); }
@keyframes flashout { to { opacity: 0; } }

/* -------------------------------------------------- апгрейд: витрины ---- */

.uphist {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  min-height: 20px;
}
.uphist > .eyebrow { flex: none; margin-right: 6px; }
.uphist__item {
  position: relative;
  flex: none;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 13px 8px 9px;
  background: linear-gradient(100deg, var(--rc-10), transparent);
  border: 1px solid var(--line);
  border-left: 3px solid var(--rc);
  border-radius: 10px;
  animation: dropin .45s var(--ease-snap);
}
.uphist__item img { height: 30px; width: auto; }
/* Ставка балансом: просто полумесяц, без жёлтой плашки под ним —
   она спорила с цветом редкости соседних карточек */
.uphist__cash {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: none;
  border-radius: 0;
}
.uphist__item b { display: block; font: 700 11px/1.2 var(--body); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uphist__item span { font-size: 11px; }
.uphist__item.is-win span { color: var(--mint); }
.uphist__item.is-lose span { color: var(--danger); }
/* метка «был разгон»: полумесяц вместо икса */
.uphist__rush {
  position: absolute; top: -7px; right: -6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: center / 11px 11px no-repeat url('../assets/moon.png'), var(--warn);
  box-shadow: 0 0 8px -1px var(--warn);
}

.upbottom { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; }
.upgrid { max-height: 620px; overflow-y: auto; padding-right: 6px; }
.upbottom .panel__head { flex-wrap: wrap; }

/* «Мой инвентарь» и «Скины на апгрейд»: карточки и иконки крупнее */
.upgrid.grid--sm { grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; }
.upgrid .item--sm { min-height: 236px; padding: 14px; }
.upgrid .item--sm .item__img { height: 132px; margin: 6px 0 12px; }
.upgrid .item--sm .item__img img { max-height: 132px; }
.upgrid .item--sm .item__weapon { font-size: 10px; }
.upgrid .item--sm .item__name { font-size: 14px; }
.upgrid .item--sm .item__price { font-size: 15px; }
.upgrid .item--sm .item__wear { font-size: 10px; }
.case-cont .grid .item,
.upgrid .item { contain-intrinsic-size: 236px; }

@media (max-width: 1280px) {
  .upgrid.grid--sm { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .upgrid .item--sm { min-height: 200px; }
  .upgrid .item--sm .item__img { height: 104px; }
  .upgrid .item--sm .item__img img { max-height: 104px; }
}

/* --------------------------------------------------------- инвентарь ---- */

.inv-sum {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px; margin-bottom: 20px;
}
.inv-filters {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin: 16px 0 18px;
}
.select {
  height: 36px; padding: 0 12px;
  background: #0c0a12;
  border: 1px solid var(--line);
  font: 600 12.5px var(--body);
  cursor: pointer;
}
.select:focus { outline: none; border-color: var(--pink); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  font: 600 14px/1 var(--body); letter-spacing: -.015em;
  color: var(--tx-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s, background .2s;
}
.tab:hover { color: var(--tx-2); background: rgba(255, 255, 255, .02); }
.tab.is-on { color: var(--tx); border-color: var(--pink); }
.tab__n:not(:empty) {
  font: 700 10px/1 var(--mono); font-style: normal;
  padding: 3px 5px;
  background: var(--panel-3); color: var(--tx-2);
}
.tab.is-on .tab__n:not(:empty) { background: var(--pink); color: #fff; }

.shake { animation: shake .45s; border-color: var(--danger) !important; }

/* ------------------------------------------------------------ бонусы ---- */

.bonus-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.bcard {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
}
.bcard--daily { background: linear-gradient(160deg, #14111c, #0a0810 72%); }
.bcard--daily::before, .bcard--hour::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 56px; height: 2px;
  background: var(--pink);
}
.bcard--hour { background: linear-gradient(160deg, #13121a, #0a0810 72%); }
.bcard--hour::before { background: var(--warn); }
.bcard h3 { font-size: 22px; letter-spacing: -.03em; }
.bcard p { margin: 0; font-size: 13px; }
.bcard__tag {
  align-self: flex-start;
  font: 700 9.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--tx-3);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 9px;
}
.bcard__timer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 12px 0; }
.bcard__timer b { font-size: 19px; }
.bcard__sum { position: absolute; right: 22px; top: 20px; font-size: 22px; color: var(--warn); opacity: .5; }
.bcard__streak { display: flex; align-items: center; gap: 12px; }
.streak { display: flex; gap: 5px; }
.streak i {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  font: 700 10px/1 var(--mono); font-style: normal;
  border: 1px solid var(--line); border-radius: 8px; color: var(--tx-3);
}
.streak i.is-on { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 0 0 14px -4px var(--pink); }

.promo { margin-bottom: 18px; }
.promo__used { display: flex; gap: 7px; flex-wrap: wrap; margin: 12px 0; }
.promo__chip {
  font: 700 10px/1 var(--mono); letter-spacing: .08em;
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--mint);
  background: rgba(53, 224, 161, .1);
  border: 1px solid rgba(53, 224, 161, .3);
}

.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; }
.lvlcard {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  transition: border-color .25s, transform .25s var(--ease-snap);
}
.lvlcard b { font-size: 15px; color: var(--moon); }
.lvlcard__n {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 13px;
  color: var(--tx-2);
}
.lvlcard.is-ready { border-color: var(--mint); transform: translateY(-3px); box-shadow: 0 14px 30px -22px var(--mint); }
.lvlcard.is-ready .lvlcard__n { border-color: var(--mint); color: var(--mint); }
.lvlcard.is-done { opacity: .45; }

.ref { margin-top: 18px; }

/* ------------------------------------------------------------ профиль ---- */

.prof { margin-bottom: 18px; }
.prof__card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: radial-gradient(70% 130% at 10% 0%, rgba(255, 47, 147, .16), transparent 60%), linear-gradient(160deg, #171422, #0c0a12);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.prof__ava {
  position: relative;
  width: 92px; height: 92px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, #221c2e, #0d0b13);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.prof__ava img { width: 52px; height: 52px; filter: drop-shadow(0 0 18px rgba(255, 47, 147, .6)); }
.prof__lvl {
  position: absolute; right: -6px; bottom: -6px;
  padding: 4px 7px;
  background: var(--pink); color: #fff;
  font-size: 12px;
}
.prof__info { display: grid; gap: 12px; }
.prof__id { display: flex; align-items: center; gap: 10px; }
.prof__id b { font-size: 13px; color: var(--tx-2); }
.prof__bar { max-width: 420px; }
.prof__wallet { text-align: right; }
.prof__wallet b { display: block; font-size: 26px; color: var(--moon); margin-top: 6px; }

.prof-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 16px; margin-bottom: 22px;
}
/* карточки статистики стоят в ряд вплотную и читались как одна полоса —
   разводим их зазором и делаем края заметнее */
.prof-stats .stat, .inv-sum .stat {
  border-radius: 16px;
  border-color: #2b2539;
  box-shadow: 0 12px 26px -20px rgba(0, 0, 0, .9);
}
.inv-sum { gap: 16px; }
.prof-stats .stat small { display: block; margin-top: 4px; font-size: 11px; }

.stat--best { background: linear-gradient(150deg, var(--rc-10), var(--panel) 70%); border-color: var(--rc-24); }
/* в профиле лучший дроп — главный трофей: занимает весь ряд,
   картинка крупная, чтобы скин было видно, а не угадывать */
.stat--best-lg { grid-column: 1 / -1; padding: 18px 20px; }
.stat--best-lg > span { font-size: 12px; letter-spacing: .14em; }
.stat--best-lg .bestdrop { gap: 22px; margin-top: 14px; }
.stat--best-lg .bestdrop__img { width: 200px; height: 148px; border-radius: 16px; }
.stat--best-lg .bestdrop__img img { max-height: 132px; }
.stat--best-lg .bestdrop__meta small { font-size: 11.5px; }
.stat--best-lg .bestdrop__meta b { font-size: 21px; line-height: 1.2; }
.stat--best-lg .bestdrop__meta i { font-size: 24px; }
.bestdrop { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.bestdrop__img {
  width: 64px; height: 48px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 60%, var(--rc-24), transparent 72%);
}
.bestdrop__img img { max-height: 44px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.bestdrop__meta { min-width: 0; }
.bestdrop__meta small { display: block; font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); }
.bestdrop__meta b {
  display: block; margin: 4px 0 3px;
  font: 700 14px/1.15 var(--body); color: var(--tx);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bestdrop__meta i { font-style: normal; font-size: 13px; color: var(--rc); }

.trade { margin-bottom: 18px; }
.trade__state { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); }
.trade__state[data-tone='ok'] { color: var(--mint); }
.trade__state[data-tone='bad'] { color: var(--danger); }
.field.is-ok { border-color: rgba(53, 224, 161, .5); }
.field.is-bad { border-color: rgba(255, 77, 77, .5); }

.hist { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; }
.hist__row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 6px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.hist__row:hover { background: rgba(255, 255, 255, .02); }
.hist__row b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist__kind {
  flex: none; width: 92px;
  font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--tx-3);
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: center;
}
.hist__kind[data-tone='mint'] { color: var(--mint); border-color: rgba(53, 224, 161, .3); }
.hist__kind[data-tone='pink'] { color: var(--pink-2); border-color: rgba(255, 47, 147, .3); }
.hist__kind[data-tone='gold'] { color: var(--warn); border-color: rgba(255, 177, 20, .3); }
.hist__kind[data-tone='bad'] { color: var(--danger); border-color: rgba(255, 77, 77, .3); }
.hist__sum[data-tone='plus'] { color: var(--mint); }
.hist__sum[data-tone='minus'] { color: var(--tx-2); }
.hist__row small { flex: none; width: 96px; text-align: right; font-size: 11px; }

.settings { display: grid; gap: 2px; }
.settings__row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.settings__row b { display: block; font-size: 13.5px; }
.settings__row small { font-size: 12px; }

/* -------------------------------------------------------- пополнение ---- */

.dep { display: grid; gap: 10px; }
.dep__label { margin-top: 6px; }
.dep__methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dep__m {
  display: grid; place-items: center; gap: 7px;
  padding: 14px 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  font: 700 11px/1 var(--body);
  color: var(--tx-2);
  transition: all .2s var(--ease-snap);
}
.dep__m i { width: 22px; height: 22px; background: var(--m); clip-path: polygon(50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%, 0 28%); }
.dep__m:hover { transform: translateY(-2px); color: var(--tx); }
.dep__m.is-on { border-color: var(--m); color: var(--tx); background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent); }
.dep__bonus { font-size: 12.5px; color: var(--mint); }
.dep__total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.dep__total span { font: 600 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--tx-3); }
.dep__total b { font-size: 24px; color: var(--moon); }
.dep__note { font-size: 11.5px; color: var(--tx-3); margin: 4px 0 0; text-align: center; }

/* ------------------------------------------------------------ адаптив ---- */

@media (max-width: 1180px) {
  .upstage { grid-template-columns: 1fr; }
  .upcol--mid { order: -1; }
  .upbottom { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .bonus-top { grid-template-columns: 1fr; }
  .prof__card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .prof__wallet { text-align: center; }
  .prof__info { justify-items: center; }
  .case-head__price { margin-left: 0; }
  .rcell { width: 128px; height: 130px; }
  .hist__kind { width: 70px; }
  .hist__row small { display: none; }
}

@media (max-width: 560px) {
  .hero__main { padding: 26px 20px; }
  .dep__methods { grid-template-columns: repeat(2, 1fr); }
  .wheel { width: 260px; height: 260px; }
  .wheel__core { width: 118px; height: 118px; }
  .upmults { grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------------------ превью кейса ---- */

.case-cover {
  position: absolute; inset: 0; z-index: 8;
  display: grid; place-items: center;
  background: radial-gradient(70% 90% at 50% 45%, rgba(255, 47, 147, .10), #0a0810 72%);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.case-cover.is-off { opacity: 0; transform: scale(1.12); pointer-events: none; }
.case-cover__art {
  position: relative;
  width: 320px; height: 250px;
  display: grid; place-items: center;
}
.case-cover__box {
  position: absolute; inset: 10% 6%;
  background: linear-gradient(180deg, var(--rc), rgba(0, 0, 0, .55));
  opacity: .2;
  -webkit-mask: var(--case-svg) center / contain no-repeat;
  mask: var(--case-svg) center / contain no-repeat;
  --case-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 74'%3E%3Cpath d='M6 22h88v46a4 4 0 0 1-4 4H10a4 4 0 0 1-4-4V22z'/%3E%3Cpath d='M4 8a4 4 0 0 1 4-4h84a4 4 0 0 1 4 4v14H4V8z'/%3E%3Crect x='40' y='30' width='20' height='16' rx='2' fill='%23000'/%3E%3C/svg%3E");
  animation: coverfloat 5s var(--ease) infinite alternate;
}
.case-cover__glow {
  position: absolute; inset: 16%;
  background: radial-gradient(circle at 50% 55%, var(--rc-45), transparent 68%);
  filter: blur(26px);
  opacity: .55;
}
.case-cover__hero img {
  max-height: 190px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .7));
  animation: coverfloat 4s var(--ease) infinite alternate;
}
@keyframes coverfloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}
.case-cover__hint {
  position: absolute; bottom: 18px; left: 0; right: 0;
  text-align: center;
  font: 600 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--tx-3);
}

.case-head__free {
  padding: 8px 14px;
  border-radius: 10px;
  font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--mint);
  background: rgba(53, 224, 161, .1);
  border: 1px solid rgba(53, 224, 161, .35);
}

/* -------------------------------------------------- топ-дроп ленты ---- */

.livebar__top {
  position: relative;
  flex: none;
  width: 210px;
  display: grid; place-items: center;
  border-right: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 177, 20, .2), transparent 68%), #0b0910;
  overflow: hidden;
  z-index: 3;
}
.livebar__top::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--r-gold);
  box-shadow: 0 0 20px var(--r-gold);
}
.livebar__top.is-empty { display: none; }

.topdrop__img { display: grid; place-items: center; padding: 4px 0 2px; }
.topdrop__img img {
  height: 76px; width: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .75));
  transition: transform .35s var(--ease-snap);
}
.livebar__top:hover .topdrop__img img { transform: scale(1.08) translateY(-6px); }

.topdrop__info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 5px 10px 7px;
  background: linear-gradient(180deg, transparent, rgba(6, 5, 10, .95) 45%);
  text-align: center;
}
.topdrop__info b {
  display: block;
  font: 700 10.5px/1.2 var(--body);
  color: var(--moon);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topdrop__info span {
  display: block;
  font: 600 9px/1.4 var(--mono);
  color: var(--tx-3);
  opacity: 0; max-height: 0;
  transition: opacity .2s, max-height .25s;
}
.livebar__top:hover .topdrop__info span { opacity: 1; max-height: 14px; }

.topdrop__tag {
  position: absolute; top: 6px; left: 8px; z-index: 2;
  font: 700 8px/1 var(--mono); letter-spacing: .16em;
  color: #1d1200;
  background: var(--r-gold);
  padding: 4px 6px;
  border-radius: 5px;
}
.livebar__top.is-hit { animation: tophit 1s var(--ease); }
@keyframes tophit {
  0% { background-color: rgba(255, 177, 20, .55); }
  100% { background-color: transparent; }
}

/* ------------------------------------------- бонусы: кейсы и розыгрыши ---- */

.drewards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.dreward {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 14px 16px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  transition: border-color .25s, transform .25s var(--ease-snap);
}
.dreward.is-ready { border-color: var(--mint); transform: translateY(-3px); box-shadow: 0 18px 34px -26px var(--mint); }
.dreward.is-done { opacity: .5; }
.dreward__need {
  font-size: 12px; color: var(--warn);
  background: rgba(255, 177, 20, .1);
  border: 1px solid rgba(255, 177, 20, .28);
  border-radius: 8px;
  padding: 5px 9px;
}
.dreward__art {
  height: 96px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 60%, var(--rc-24), transparent 70%);
  width: 100%;
}
.dreward__art img { max-height: 92px; }
.dreward b { font: 700 14px/1.2 var(--body); }
.dreward__price { font-size: 13px; color: var(--tx-2); }
.dreward .bar { width: 100%; }
.dreward .btn { width: 100%; }

.gives { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.give {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px;
  background: radial-gradient(90% 60% at 50% 0%, var(--rc-10), transparent 62%), linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 16px;
}
.give.is-in { border-color: var(--mint); }
.give__tag {
  align-self: flex-start;
  font: 600 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--tx-3);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 9px;
}
.give__art { height: 140px; display: grid; place-items: center; }
.give__art img { max-height: 134px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .6)); }
.give__meta { text-align: center; }
.give__meta small { display: block; font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); }
.give__meta b { display: block; font: 700 15px/1.2 var(--body); margin: 5px 0; }
.give__price { color: var(--rc); font-size: 14px; }
.give__row {
  display: flex; align-items: center;
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
}
.give__row b { font-size: 14px; }

/* ------------------------------------------- апгрейд: режим и настройки ---- */

.upgear {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  color: var(--tx-2);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  transition: all .2s var(--ease-snap);
}
.upgear:hover { color: var(--tx); border-color: var(--pink); transform: rotate(45deg); }
.upgear .ic { width: 18px; height: 18px; }

.upmode {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  background: #0e0c15;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.upmode__btn {
  min-width: 42px; height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font: 700 13px/1 var(--mono);
  color: var(--tx-3);
  transition: all .18s var(--ease);
}
.upmode__btn:hover { color: var(--tx); }
.upmode__btn.is-on { color: #fff; background: linear-gradient(180deg, #ff54a8, #ec1a7f); }

.upcustom { display: flex; gap: 8px; }
.upcustom .field { flex: 1; height: 40px; }
.upcustom .btn { flex: none; }

.upset { display: grid; gap: 18px; }
.upset__group + .upset__group { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.upset__add { display: flex; gap: 8px; align-items: center; }
.upset__add .select { height: 44px; border-radius: 12px; }

/* ---------------------------------------- партнёрская программа ---- */



/* --------------------------------------------- победа в окне цели ---- */

.upwin {
  position: absolute; inset: 0; z-index: 14;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px;
  background:
    radial-gradient(75% 60% at 50% 45%, var(--rc-24), transparent 72%),
    #08070c;
  border-radius: 16px;
  overflow: hidden;
  animation: upwin-in .45s var(--ease-snap);
}
.upwin.is-out { animation: upwin-out .4s var(--ease) forwards; }
@keyframes upwin-in { from { opacity: 0; transform: scale(.92); } }
@keyframes upwin-out { to { opacity: 0; transform: scale(1.05); } }

.upwin__rays {
  position: absolute; top: 50%; left: 50%;
  width: 620px; height: 620px;
  margin: -310px 0 0 -310px;
  background: repeating-conic-gradient(from 0deg, var(--rc-24) 0deg 6deg, transparent 6deg 18deg);
  opacity: .22;
  animation: rays 9s linear infinite;
  pointer-events: none;
}
@keyframes rays { to { transform: rotate(360deg); } }

.upwin__flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 45%, #fff, transparent 55%);
  opacity: 0;
  animation: upflash .6s var(--ease) forwards;
  pointer-events: none;
}
@keyframes upflash {
  0% { opacity: .75; }
  100% { opacity: 0; }
}

.upwin__label { text-align: center; z-index: 2; }
.upwin__label b {
  font: 800 13px/1 var(--head);
  letter-spacing: .22em;
  color: var(--rc);
}
.upwin__rush {
  display: block; margin-top: 6px;
  font: 700 10px/1 var(--mono); font-style: normal;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--warn);
}

.upwin__art { z-index: 2; }
.upwin__art img {
  max-height: 190px;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .75));
  animation: upwin-pop .7s var(--ease-snap);
}
@keyframes upwin-pop {
  0% { transform: scale(.55) translateY(26px); opacity: 0; }
  60% { transform: scale(1.08) translateY(-6px); opacity: 1; }
  100% { transform: scale(1) translateY(0); }
}

.upwin__meta { text-align: center; z-index: 2; }
.upwin__meta small { display: block; font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.upwin__meta b { display: block; margin: 5px 0 4px; font: 700 17px/1.2 var(--body); color: var(--tx); }
.upwin__meta span { font-size: 15px; color: var(--rc); }

.upwin__sparks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.upwin__sparks i {
  position: absolute; bottom: -10px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rc);
  box-shadow: 0 0 10px var(--rc);
  animation: spark linear forwards;
}
@keyframes spark {
  from { transform: translateY(0) scale(1); opacity: 0; }
  25% { opacity: 1; }
  to { transform: translateY(-260px) scale(.3); opacity: 0; }
}


/* --------------------------------- окно открытия кейса из бонусов ---- */

.roller--modal { min-height: 200px; margin-bottom: 16px; }
.roller--modal .rcell--sm { width: 150px; height: 168px; }
.roller--modal .rcell--sm img { max-height: 104px; }

.rewardwin { display: grid; gap: 14px; animation: upwin-in .4s var(--ease-snap); }
.rewardwin__item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: radial-gradient(70% 100% at 0% 50%, var(--rc-24), transparent 70%), rgba(255, 255, 255, .03);
  border: 1px solid var(--rc-45);
}
.rewardwin__item img { max-height: 96px; }
.rewardwin__item small { display: block; font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.rewardwin__item b { display: block; margin: 6px 0 4px; font: 600 18px/1.2 var(--head); letter-spacing: -.04em; }
.rewardwin__item span { font-size: 16px; color: var(--rc); }
.rewardwin__acts { display: flex; gap: 10px; flex-wrap: wrap; }
.rewardwin__acts .btn { flex: 1; min-width: 160px; }

/* ------------------------------------------------ больше красок ---- */

.hero__title {
  background: linear-gradient(105deg, #ffffff 20%, #ffd9ee 55%, #ffffff 85%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__title i {
  background: linear-gradient(105deg, var(--pink) 10%, #ff9ad6 60%, var(--moon));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.case__tag--new { background: linear-gradient(135deg, #58ffc8, #10b981); color: #04150e; }
.case__tag--hot { background: linear-gradient(135deg, #ff7bc0, #e8137a); color: #fff; }
.case__tag--limited { background: linear-gradient(135deg, #ffd45e, #f59e0b); color: #1d1200; }

.dreward.is-ready { box-shadow: 0 20px 40px -26px var(--mint), 0 0 0 1px rgba(53, 224, 161, .25) inset; }
.dreward__art::after {
  content: '';
  position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rc), transparent);
  opacity: .5;
}
.dreward__art { position: relative; }

.panel__head h3 {
  letter-spacing: -.045em;
}

.stat b { letter-spacing: -.02em; }

/* акцентная полоса у активных карточек списка */
.give.is-in { box-shadow: 0 0 0 1px rgba(53, 224, 161, .25) inset, 0 20px 40px -30px var(--mint); }

/* ------------------------------- живые предметы в слотах апгрейда ---- */

.upslot__list .item__img img,
.uptarget__img img {
  animation: slotfloat 3.4s var(--ease) infinite alternate;
}
.upslot__list .item:nth-child(2n) .item__img img { animation-duration: 4.1s; animation-delay: -.7s; }
.upslot__list .item:nth-child(3n) .item__img img { animation-duration: 3.7s; animation-delay: -1.4s; }
.uptarget__img img { animation-duration: 4.4s; }

@keyframes slotfloat {
  from { transform: translateY(0) rotate(-1.2deg); }
  to   { transform: translateY(-9px) rotate(1.2deg); }
}

/* мягкое свечение под предметом в слоте */
.upslot__list .item::after,
.uptarget::after {
  content: '';
  position: absolute; left: 50%; bottom: 26%;
  width: 62%; height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--rc-24), transparent 70%);
  filter: blur(5px);
  animation: slotshadow 3.4s var(--ease) infinite alternate;
  pointer-events: none;
}
.uptarget { position: relative; }
.uptarget::after { bottom: 34%; width: 46%; height: 18px; }

@keyframes slotshadow {
  from { opacity: .55; transform: translateX(-50%) scale(1); }
  to   { opacity: .28; transform: translateX(-50%) scale(.82); }
}

/* стример-мод в меню языка */
.langmenu__stream {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  cursor: pointer;
}
.langmenu__stream b { display: block; font: 600 13px/1.2 var(--body); }
.langmenu__stream small { display: block; margin-top: 3px; font-size: 11px; color: var(--tx-3); }


/* ------------------------------------------------ профиль: Steam ---- */

.prof__num { font-size: 22px; color: var(--pink-2); letter-spacing: -.02em; }
.prof__id small { font-size: 11px; }

.steamcard__in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.steamcard__ava {
  width: 68px; height: 68px; flex: none;
  border-radius: 14px;
  border: 1px solid #332c48;
  object-fit: cover;
}
.steamcard__meta { display: grid; gap: 4px; }
.steamcard__meta b { font: 700 17px/1 var(--head); letter-spacing: -.02em; }
.steamcard__meta span { font-size: 12px; }
.steamcard__out { display: grid; justify-items: start; }

.trade__msg {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.trade__msg[data-tone='ok'] { border-color: rgba(53, 224, 161, .4); background: rgba(53, 224, 161, .08); color: #b6f4dd; }
.trade__msg[data-tone='bad'] { border-color: rgba(255, 77, 77, .4); background: rgba(255, 77, 77, .08); color: #ffc2c2; }
.trade__msg.hidden { display: none; }

/* --------------------------------------------- бонусы: сутки и окна ---- */

.daytimer { display: flex; align-items: center; gap: 8px; }
.daytimer b { font: 700 14px/1 var(--mono); color: var(--moon); }
.bonus-note { margin: -4px 0 14px; font-size: 12.5px; max-width: 620px; }

.bar--thin { height: 4px; margin-top: -2px; }
.give__row--dep b[data-tone='ok'] { color: var(--mint); }
.give__row--dep b[data-tone='bad'] { color: var(--tx-2); }

/* ------------------------------------------- главная: переход по группам ---- */

.cases-jump {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 26px;
}
.cases-jump > .eyebrow { margin-right: 6px; }
.jumpchip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 8px 0 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  color: var(--tx-2);
  transition: color .18s, background .18s, border-color .18s, transform .18s var(--ease-snap);
}
.jumpchip b { font: 700 13px/1 var(--body); }
.jumpchip i {
  font-style: normal;
  font: 700 10.5px/1 var(--mono);
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  color: var(--tx-3);
}
.jumpchip:hover {
  color: #fff; transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255, 47, 147, .2), rgba(255, 47, 147, .05));
  border-color: rgba(255, 47, 147, .45);
}
.jumpchip:hover i { color: var(--pink-2); }

/* Кейсов на главной под сотню: карточки вне экрана не считаем и не рисуем */
.cases-grid .case { content-visibility: auto; contain-intrinsic-size: 309px 304px; }

/* ------------------------------------------------- собственный арт кейса ---- */

/* Если в assets/cases лежит картинка кейса — она заменяет сборку из скинов */
.case__cover, .case-cover__img, .dreward__cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 4;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .55));
  transition: transform .35s var(--ease-snap), filter .3s;
}
.case__art.has-cover > :not(.case__cover),
.case-cover__art.has-cover > :not(.case-cover__img),
.dreward__art.has-cover > :not(.dreward__cover) { display: none; }

.case:hover .case__cover { transform: translateY(-6px) scale(1.06); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .7)); }
.case-cover__img { padding: 8px; }

/* --------------------------------- главная: блок партнёрской программы ---- */

.hero__ref {
  display: block;
  padding: 18px;
  border-radius: 16px;
  background:
    radial-gradient(90% 80% at 85% 15%, rgba(255, 47, 147, .16), transparent 62%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(255, 47, 147, .28);
  transition: transform .25s var(--ease-snap), box-shadow .3s, border-color .3s;
}
.hero__ref:hover { transform: translateY(-3px); border-color: var(--pink); box-shadow: 0 24px 46px -28px var(--pink); }
.hero__reftag {
  font: 800 12px/1 var(--mono);
  color: var(--pink-2);
  border: 1px solid rgba(255, 47, 147, .45);
  border-radius: 7px;
  padding: 5px 9px;
}
.hero__refhead { display: block; margin-top: 12px; font: 700 16px/1.25 var(--head); letter-spacing: -.03em; }
.hero__reftext { margin: 8px 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--tx-2); }
.hero__reflink { font: 700 12.5px/1 var(--body); color: var(--pink-2); }

/* ------------------------------- страница кейса: арт вместо подписи ---- */

/* До первого запуска рулетки нет: на её месте просто арт кейса,
   без рамки, полосы и меток — иначе страница выглядит пустой коробкой. */
.roller.hidden { display: none; }
.case-stage {
  display: grid; place-items: center;
  /* воздух сверху и снизу: между заголовком и кнопкой «Открыть»
     картинке нужно место, иначе она наползает на панель управления */
  padding: 26px 0 32px;
}
.case-stage__art { position: relative; width: 460px; max-width: 100%; height: 300px; display: grid; place-items: center; }
.case-stage__art::before {
  content: '';
  position: absolute; inset: -6% -10% -14%;
  background: radial-gradient(circle at 50% 56%, var(--rc-24), transparent 64%);
  pointer-events: none;
}
.case-stage__img {
  position: relative;
  /* предел в пикселях, а не в процентах: проценты в гриде не резолвились
     и картинка вылезала на панель с кнопкой «Открыть» */
  max-width: 100%; max-height: 300px;
  width: auto; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .75));
  animation: casefloat 5.5s ease-in-out infinite;
}
@keyframes casefloat { 50% { transform: translateY(-9px); } }
.case-stage__hero { max-height: 250px; }

.case-cover__art { width: 380px; height: 290px; }
.case-cover__art.has-cover::before {          /* подсветка под артом, в тон редкости */
  content: '';
  position: absolute; inset: -8% -12% -18%;
  background: radial-gradient(circle at 50% 58%, var(--rc-24), transparent 66%);
  pointer-events: none;
}
.case-cover__img { padding: 4px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .7)); }

/* ============================================ баннеры на главной ==== */

/* баннер не на всю ширину и прижат влево — по одной линии с витриной */
.bnr { max-width: 1100px; margin-left: 0; margin-right: auto; }
.bnr {
  position: relative;
  margin-bottom: 26px;
  overflow: hidden;
  border-radius: 20px;
}
.bnr__track {
  display: flex;
  gap: 14px;
  transition: transform .55s var(--ease);
  will-change: transform;
}

/* слайд уже контейнера ровно на --peek: столько видно от следующего */
.bnr__slide {
  position: relative;
  flex: 0 0 calc(100% - var(--peek, 52px));
  /* ровно та же пропорция, что у файлов после tools/pack-banners.py:
     любое max-height здесь ломает её и cover начинает резать верх */
  aspect-ratio: 2000 / 830;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(120deg, #241a3b, #120f1b);
  border: 1px solid var(--line);
  opacity: .42;
  filter: saturate(.7);
  transition: opacity .45s var(--ease), filter .45s var(--ease), transform .25s var(--ease-snap);
}
.bnr__slide.is-on { opacity: 1; filter: none; }
.bnr__slide:hover { transform: translateY(-2px); }
.bnr__slide:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

/* Картинки уже одного размера 2000×830, поэтому cover ничего не режет */
.bnr__img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }

/* картинки нет — слайд не разваливается, остаётся фон и кнопка */
.bnr__slide.no-img .bnr__img { display: none; }

.bnr__btn {
  position: absolute; left: 5%; bottom: 9%;
  z-index: 2;
  height: 52px; padding: 0 28px;
  display: inline-flex; align-items: center;
  border-radius: 14px;
  font: 700 15.5px/1 var(--body);
  color: #fff;
  background: linear-gradient(180deg, #ff54a8, #ec1a7f 85%);
  box-shadow: 0 12px 30px -12px rgba(255, 47, 147, .95), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .2s var(--ease-snap), filter .2s, box-shadow .3s;
}
.bnr__slide:not(.is-on) .bnr__btn { opacity: 0; pointer-events: none; }
.bnr__btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.bnr__btn:active { transform: translateY(0) scale(.97); }

/* точки */
.bnr__dots {
  position: absolute; left: 50%; bottom: 3.5%; transform: translateX(-50%);
  display: flex; gap: 7px;
  z-index: 3;
}
.bnr__dot {
  width: 22px; height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .28);
  transition: background .25s, width .25s var(--ease-snap);
}
.bnr__dot.is-on { width: 34px; background: var(--pink); box-shadow: 0 0 10px var(--pink); }

@media (max-width: 720px) {
  .bnr { margin-bottom: 20px; border-radius: 16px; }
  .bnr__slide { aspect-ratio: 2000 / 830; border-radius: 16px; }
  .bnr__btn { height: 42px; padding: 0 18px; font-size: 13px; left: 5%; bottom: 16%; }
  .bnr__dots { left: 5%; bottom: 6%; }
}

/* ============================ результат открытия прямо на странице ==== */

.case-won {
  width: 100%;
  display: grid; justify-items: center; gap: 22px;
  animation: wonin .4s var(--ease-snap);
}
@keyframes wonin { from { opacity: 0; transform: translateY(16px) scale(.97); } }

.case-won__row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.case-won__row .item { width: 240px; }
.case-won__row.is-many .item { width: 176px; }

.case-won__acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.case-won__acts .btn { min-width: 168px; }

@media (max-width: 720px) {
  .case-won { gap: 16px; }
  .case-won__row .item { width: 168px; }
  .case-won__row.is-many .item { width: 150px; }
  .case-won__acts { width: 100%; }
  .case-won__acts .btn { flex: 1; min-width: 140px; }
}

/* баннер «Кейсы за пополнения» вместо заголовка раздела.
   Полоса уже нарисована со своими скруглениями и полями, поэтому
   не растягиваем её под края панели — кладём как есть */
.bonus-ban { margin: 0 0 14px; }
.bonus-ban img { display: block; width: 100%; height: auto; }

/* --- кейсы за пополнение: цель и прогресс вместо цены ---------------- */
.dreward__need { display: grid; gap: 2px; justify-items: center; }
.dreward__need small { font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); }
.dreward__pct { font: 700 11px/1 var(--mono); color: var(--tx-3); margin-top: 4px; }
.dreward .bar { margin-top: 8px; }
.dreward .bar.is-done i { background: var(--mint); }

/* --- последние победители розыгрышей --------------------------------- */
.gwins { display: grid; gap: 8px; }
.gwin {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 54px minmax(0, 1.1fr);
  align-items: center; gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--rc);
  border-radius: 12px;
  background: linear-gradient(90deg, var(--rc-10), transparent 55%);
}
.gwin__ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #14111c; }
.gwin__who { min-width: 0; }
.gwin__who b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gwin__who small { font-size: 11px; color: var(--tx-3); }
.gwin__art { display: grid; place-items: center; }
.gwin__art img { max-height: 34px; width: auto; }
.gwin__item { min-width: 0; text-align: right; }
.gwin__item b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gwin__item span { font-size: 12.5px; color: var(--rc); }

/* значок ставки балансом в истории апгрейда */
.uphist__item img.uphist__cash { width: 26px; height: 26px; opacity: .9; object-fit: contain; }

/* --- кейсы за депозит: крупнее, без жёлтой плашки ------------------------ */
.drewards { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; }
.dreward {
  padding: 22px 18px 18px; gap: 10px; border-radius: 20px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(176, 92, 255, .14), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border-color: rgba(176, 92, 255, .22);
  transition: border-color .25s, transform .25s var(--ease-snap), box-shadow .25s;
}
.dreward:hover { transform: translateY(-4px); border-color: rgba(255, 122, 209, .55); box-shadow: 0 24px 44px -30px var(--pink); }
.dreward__need {
  color: #fff;
  background: linear-gradient(135deg, rgba(176, 92, 255, .28), rgba(255, 47, 147, .24));
  border: 1px solid rgba(255, 122, 209, .38);
  border-radius: 10px;
  padding: 7px 14px;
  box-shadow: 0 8px 22px -14px var(--pink);
}
.dreward__need small { color: #f3d6ff; }
.dreward__art { height: 150px; }
.dreward__art img { max-height: 144px; }
.dreward b { font-size: 16px; }

/* --- розыгрыши: предмет крупнее ------------------------------------------ */
.give__art { height: 196px; }
.give__art img { max-height: 190px; width: auto; max-width: 92%; }

/* --- профиль: ник из Steam, статистика в карточке аккаунта --------------- */
.prof__nick { display: block; font: 700 22px/1.1 var(--head); letter-spacing: -.03em; margin-bottom: 8px; }
.steamcard__stats {
  flex: 1 1 520px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.steamcard__stats .stat { padding: 12px 14px; }
.steamcard__stats .stat b { font-size: 18px; margin-top: 8px; }

/* --- лучший дроп по источникам ------------------------------------------- */
.bestcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bestcard {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 14px 18px; text-align: center;
  border: 1px solid var(--line); border-radius: 16px;
  background:
    radial-gradient(80% 60% at 50% 38%, var(--rc-24, rgba(255, 47, 147, .12)), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
}
.bestcard__label { align-self: flex-start; font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.bestcard__img { height: 130px; display: grid; place-items: center; margin: 6px 0 4px; }
.bestcard__img img { max-height: 124px; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .6)); }
.bestcard__weapon { font: 600 10.5px/1 var(--mono); color: var(--tx-3); text-transform: uppercase; letter-spacing: .08em; }
.bestcard__name { font: 700 16px/1.2 var(--head); }
.bestcard__price { font-style: normal; font-size: 18px; color: var(--rc, var(--pink-2)); margin-top: 2px; }
.bestcard__src {
  margin-top: 8px; padding: 5px 10px; border-radius: 8px;
  font-size: 12px; color: #fff;
  background: linear-gradient(135deg, rgba(176, 92, 255, .22), rgba(255, 47, 147, .18));
  border: 1px solid rgba(255, 122, 209, .28);
}
.bestcard.is-empty { justify-content: center; min-height: 200px; opacity: .6; }
.bestcard__none { font: 700 28px/1 var(--mono); color: var(--tx-3); margin: auto; }

/* --- профиль одним блоком ------------------------------------------------ */
.prof__card { display: flex; flex-direction: column; align-items: stretch; gap: 22px; padding: 26px; }
.prof__top { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.prof__ava { width: 96px; height: 96px; overflow: visible; }
.prof__ava img:not([src$='.svg']) { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; filter: none; }
/* ник, ID и уровень — плотной стопкой, без провалов между строками */
.prof__info { gap: 6px; align-content: center; }
.prof__name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prof__nick { margin: 0; font-size: 26px; }
.prof__id { gap: 8px; }
.prof__num { font-size: 18px; }
.prof__bar { max-width: 460px; margin-top: 4px; }
.prof__bar .row { margin-bottom: 6px; }
.prof__wallet { display: grid; justify-items: end; gap: 4px; }
.prof__wallet b { font-size: 30px; margin: 0; }
.prof__acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: flex-end; }
.prof__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.prof__stats .stat {
  padding: 20px 22px; border-radius: 16px;
  border-color: #2b2539;
  background: linear-gradient(160deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0)), var(--panel);
}
.prof__stats .stat span { font-size: 12.5px; }
.prof__stats .stat b { font-size: 28px; margin-top: 12px; }
.prof__login { display: grid; justify-items: start; gap: 12px; }
.prof__login p { margin: 0; }

/* --- лучший дроп: скины крупнее, источник — ссылка на кейс --------------- */
.bestcard__img { height: 178px; }
.bestcard__img img { max-height: 172px; }
a.bestcard__src { text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
a.bestcard__src:hover { border-color: var(--pink); box-shadow: 0 8px 22px -12px var(--pink); transform: translateY(-1px); }

/* --- выпавшее из кейса: крупно, как в содержимом, а один дроп — ещё крупнее */
.case-won__row { gap: 16px; max-width: 1300px; }
.case-won__row .item { width: 320px; min-height: 330px; }
.case-won__row .item .item__img { height: 210px; }
.case-won__row .item .item__img img { max-height: 210px; }
.case-won__row.is-many .item { width: 238px; min-height: 260px; }
.case-won__row.is-many .item .item__img { height: 150px; }
.case-won__row.is-many .item .item__img img { max-height: 150px; }
.case-won__row .tcard { width: 238px; }
@media (max-width: 720px) {
  .case-won__row .item { width: min(280px, 86vw); }
  .case-won__row.is-many .item { width: calc(50% - 8px); min-height: 220px; }
  .case-won__row.is-many .item .item__img { height: 112px; }
  .case-won__row.is-many .item .item__img img { max-height: 112px; }
  .case-won__row .tcard { width: calc(50% - 8px); }
}

/* настройки апгрейда: переключатель азартной прокрутки — вплотную к названию */
.upset__row--tease { justify-content: flex-start; gap: 12px; cursor: pointer; }

/* ставка балансом: вместо знака валюты — лунная монета сайта */
.upcash-card__moon { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(176, 92, 255, .55)); }

/* --- правовые страницы ---------------------------------------------- */
.legal { max-width: 820px; margin: 0 auto; padding: 8px 0 40px; }
.legal__title { font: 700 30px/1.15 var(--head); letter-spacing: -.03em; margin: 0 0 6px; }
.legal__upd { margin: 0 0 26px; color: var(--tx-3); font-size: 12.5px; }
.legal__block { margin-bottom: 24px; }
.legal__block h2 { font: 700 17px/1.3 var(--head); margin: 0 0 10px; color: var(--pink-2); }
.legal__block p { margin: 0 0 10px; color: var(--tx-2); font-size: 14.5px; line-height: 1.6; }
.legal__links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal__links a { font-size: 13px; color: var(--tx-3); text-decoration: none; }
.legal__links a:hover { color: var(--pink-2); }

/* --- выпавший предмет: без рамки, только свет редкости и полоска ------- */
.item--won {
  background: radial-gradient(70% 55% at 50% 42%, var(--rc-24), transparent 72%);
  border-color: transparent;
  box-shadow: none;
}
.item--won::before { display: none; }
.item--won:hover { transform: translateY(-3px); border-color: transparent; box-shadow: none; }
.item__bar {
  display: block; width: 62%; height: 3px; margin: 2px auto 10px;
  border-radius: 999px;
  background: var(--rc);
  box-shadow: 0 0 14px -1px var(--rc);
}
.case-won__acts .btn--lg { min-width: 210px; font-size: 15px; padding: 14px 22px; }

/* --- дигл в пустых слотах апгрейда ------------------------------------ */
.upslot__empty { position: relative; }
.upslot__gun {
  position: absolute; left: 50%; top: 42%;
  width: min(330px, 86%); height: auto;
  transform: translate(-50%, -50%);
  opacity: .16;
  pointer-events: none;
  filter: drop-shadow(0 12px 30px rgba(255, 47, 147, .35));
  animation: gunfloat 6s ease-in-out infinite;
}
.upslot__gun--flip { transform: translate(-50%, -50%) scaleX(-1); animation-name: gunfloat-flip; }
.upslot__empty b, .upslot__empty span { position: relative; z-index: 1; }
@keyframes gunfloat {
  0%, 100% { transform: translate(-50%, -48%) rotate(-3deg); }
  50%      { transform: translate(-50%, -54%) rotate(3deg); }
}
@keyframes gunfloat-flip {
  0%, 100% { transform: translate(-50%, -48%) scaleX(-1) rotate(-3deg); }
  50%      { transform: translate(-50%, -54%) scaleX(-1) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) { .upslot__gun { animation: none; } }

/* колонки апгрейда одной высоты: низ ставки и низ множителей на одной линии */
.upstage { align-items: stretch; }
.upcol:not(.upcol--mid) > :last-child { margin-top: auto; }

/* таймер розыгрыша: дни · часы · минуты · секунды крупными ячейками */
.cdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 2px; }
.cdown__c {
  display: grid; justify-items: center; gap: 3px;
  padding: 8px 4px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--line);
}
.cdown__c b { font-size: 20px; line-height: 1; color: var(--tx); }
.cdown__c small { font: 600 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); }
.give.is-in .cdown__c b { color: var(--mint); }

/* ------------------------------------------------- сотрудничество ---- */

.pt-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px 28px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: 20px;
  background: radial-gradient(60% 120% at 0% 50%, rgba(255, 47, 147, .16), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--panel));
}
.pt-hero h1 { font-size: 34px; letter-spacing: -.03em; }
.pt-hero p { margin: 8px 0 0; color: var(--tx-2); max-width: 620px; }
.pt-hero__acts { display: flex; gap: 10px; flex-wrap: wrap; }

.pt-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.pt-how__step { position: relative; display: grid; gap: 4px; align-content: start; padding: 16px 16px 16px 58px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.pt-how__n { position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; font-size: 13px; color: #fff; background: linear-gradient(140deg, #ff7bc0, var(--pink)); }
.pt-how__step b { font-family: var(--head); font-size: 14px; letter-spacing: -.02em; }
.pt-how__step small { color: var(--tx-2); font-size: 12.5px; line-height: 1.45; }

.pt-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.pt-grid .panel { margin: 0; }
.pt-note { margin: -4px 0 12px; font-size: 13px; }
.pt-rates { display: grid; gap: 6px; }
.pt-rates__row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.pt-rates__row > span:not(:first-child) { text-align: right; }
.pt-rates__row--head { background: none; border: 0; padding-top: 0; padding-bottom: 2px; font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.pt-rates__kind b { display: block; font-size: 14.5px; }
.pt-rates__kind small { display: block; color: var(--tx-3); font-size: 12px; line-height: 1.35; }
.pt-rates__row .num { font-size: 15px; color: var(--tx); }
.pt-rates__main { color: var(--mint) !important; font-size: 18px !important; }
.pt-rates__row--cs2 { border-color: rgba(53, 224, 161, .4); background: rgba(53, 224, 161, .06); }

.pt-frame { position: relative; width: 132px; height: 234px; margin: 4px auto 16px; border: 2px solid #3a3350; border-radius: 18px; background: #0c0a12; }
/* баннер лежит горизонтально: ширина 117, высота 66 — те же 25 % площади кадра 132×234 */
.pt-frame__banner { position: absolute; left: 50%; top: 50%; width: 117px; height: 66px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 8px; font: 700 14px/1 var(--mono); color: #fff; background: linear-gradient(140deg, #ff7bc0, var(--pink)); box-shadow: 0 0 24px -6px var(--pink); }
.pt-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--tx-2); font-size: 13.5px; }
.pt-special p { margin: -4px 0 10px; font-size: 13.5px; }
.pt-custom { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; margin-top: 16px; padding: 12px 14px; border: 1px dashed rgba(53, 224, 161, .45); border-radius: 12px; background: rgba(53, 224, 161, .05); color: var(--tx-2); font-size: 13.5px; text-align: left; transition: border-color .2s, background .2s; }
.pt-custom b { color: var(--mint); white-space: nowrap; }
.pt-custom:hover { border-color: var(--mint); background: rgba(53, 224, 161, .1); }

.pt-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pt-rule { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.pt-rule b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.pt-rule p { margin: 0; color: var(--tx-2); font-size: 13px; line-height: 1.5; }
.pt-rule.is-hard { border-color: rgba(255, 77, 77, .5); background: rgba(255, 77, 77, .06); }
.pt-rule.is-hard b { color: #ff8a8a; }

.pt-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; margin-top: 16px; border: 1px dashed rgba(255, 47, 147, .45); border-radius: 18px; }
.pt-cta b { font-family: var(--head); font-size: 18px; }
.pt-cta p { margin: 4px 0 0; color: var(--tx-2); }

@media (max-width: 1000px) {
  .pt-how { grid-template-columns: 1fr 1fr; }
  .pt-grid, .pt-rules { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pt-hero { padding: 18px; }
  .pt-hero h1 { font-size: 26px; }
  .pt-how { grid-template-columns: 1fr; }
  .pt-rates__row { grid-template-columns: minmax(0, 1fr) auto; }
  .pt-rates__row > span:nth-child(3), .pt-rates__row > span:nth-child(4) { display: none; }
}


/* ==================== открытие нескольких кейсов ========================= */

/* ячейка ленты — цветная карточка редкости во всю высоту, как на etopfun:
   свечение цвета редкости сверху, тёмный низ под подписью */
.rcell {
  justify-content: flex-end;
  padding: 10px 10px 14px;
  background:
    radial-gradient(120% 85% at 50% 22%, var(--rc-45), transparent 72%),
    linear-gradient(180deg, var(--rc-10), #110e18 88%);
  border: 0; border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.rcell img { margin: auto 0; }
.rcell b { color: #fff; }
.rcell__weapon { font: 600 11px/1.1 var(--body); letter-spacing: 0; text-transform: none; color: var(--tx-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.roller[data-mode='hm'], .roller[data-mode='v'] { padding: 12px; min-height: 0; }
.roller[data-mode='hm'] .roller__beam, .roller[data-mode='hm'] .roller__mark, .roller[data-mode='hm'] .roller__fade,
.roller[data-mode='v'] .roller__beam, .roller[data-mode='v'] .roller__mark, .roller[data-mode='v'] .roller__fade { display: none; }

/* 2–3 кейса: горизонтальные ленты по две в ряд, нечётная последняя — на всю ширину */
.roller[data-mode='hm'] .reels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.roller[data-mode='hm'] .reel--hm:last-child:nth-child(odd) { grid-column: 1 / -1; }
.reel--hm {
  position: relative; padding: 12px 0;
  background: rgba(255, 255, 255, .02); border-radius: 16px;
}
.reel--hm .rcell { width: 186px; height: 236px; }
.reel--hm .rcell img { max-height: 128px; }
/* указатель выигрыша — маленькие стрелки сверху и снизу по центру ленты */
.reel__arrow {
  position: absolute; left: 50%; z-index: 5; pointer-events: none;
  width: 0; height: 0; margin-left: -7px;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  filter: drop-shadow(0 0 6px rgba(255, 47, 147, .8));
}
.reel__arrow--t { top: 0; border-top: 10px solid var(--pink); }
.reel__arrow--b { bottom: 0; border-bottom: 10px solid var(--pink); }
/* одиночное открытие: тоже только стрелки, без линии через ленту */
.roller[data-mode='h'] .roller__beam { display: none; }
.roller__mark { margin-left: -7px; border-left-width: 7px; border-right-width: 7px; filter: drop-shadow(0 0 6px rgba(255, 47, 147, .8)); }
.roller__mark--t { border-top-width: 10px; }
.roller__mark--b { border-bottom-width: 10px; }
.reel--hm::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 16px;
  background: linear-gradient(90deg, #0b0911 0%, rgba(11, 9, 17, .55) 14%, transparent 30%, transparent 70%, rgba(11, 9, 17, .55) 86%, #0b0911 100%);
}

/* 5 и 10 кейсов: крупные вертикальные столбцы по 5 в ряд в общей рамке */
.roller[data-mode='v'] .reels {
  display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  gap: 10px;
}
.reel--v {
  position: relative; height: 400px; padding: 0;
  background: rgba(255, 255, 255, .02); border-radius: 16px;
}
.reel--v .reel__tape { flex-direction: column; gap: 10px; padding: 0 8px; }
.reel--v .rcell { width: 100%; height: 196px; }
.reel--v .rcell img { max-height: 120px; max-width: 92%; }
.reel--v .rcell b { font-size: 13px; }
/* десять лент — два ряда, чуть ниже, чтобы оба влезали в экран */
.reels[data-n='10'] .reel--v { height: 320px; }
.reels[data-n='10'] .reel--v .rcell { height: 168px; }
.reels[data-n='10'] .reel--v .rcell img { max-height: 100px; }
/* линия выигрыша через центр столбца и выемки по бокам */
.reel--v::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; z-index: 4; pointer-events: none;
  border-top: 2px dashed rgba(230, 220, 250, .6);
}
.reel--v::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 16px;
  background: linear-gradient(180deg, #0b0911 0%, rgba(11, 9, 17, .5) 18%, transparent 34%, transparent 66%, rgba(11, 9, 17, .5) 82%, #0b0911 100%);
}
.reel--v .rcell.is-win { box-shadow: inset 0 0 0 2px var(--rc), 0 0 30px -6px var(--rc); }
/* x1–x3: никаких рамок и линий — выигрыш показывают только стрелки сверху и снизу */
.roller .roller__beam { display: none !important; }
.roller:not([data-mode='v']) .rcell.is-win { box-shadow: none; }
.reel--hm::before { content: none !important; }

/* итог нескольких кейсов: столько колонок, сколько скинов (до 5), по центру */
.case-won.is-multi .case-won__row {
  display: grid; width: 100%; max-width: 1400px;
  grid-template-columns: repeat(var(--cols, 5), minmax(0, 270px));
  justify-content: center;
}
.case-won.is-multi .case-won__row .item { width: auto; min-height: 300px; }
.case-won.is-multi .case-won__row .item .item__img { height: 180px; }
.case-won.is-multi .case-won__row .item .item__img img { max-height: 180px; }
.case-won.is-multi .case-won__row .tcard { width: auto; }

@media (max-width: 1100px) {
  .roller[data-mode='hm'] .reels { grid-template-columns: 1fr; }
  .roller[data-mode='v'] .reels { grid-template-columns: repeat(min(var(--cols, 5), 3), minmax(0, 1fr)); }
  .case-won.is-multi .case-won__row { grid-template-columns: repeat(min(var(--cols, 5), 3), minmax(0, 270px)); }
}
@media (max-width: 560px) {
  .reel--hm .rcell { width: 140px; height: 180px; }
  .reel--hm .rcell img { max-height: 92px; }
  .reel--hm::before { width: 156px; }
  .reel--v { height: 300px; }
  .reel--v .rcell { height: 146px; }
  .reel--v .rcell img { max-height: 84px; }
  .case-won.is-multi .case-won__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ======================= водяной знак луны за скином (карточки и лента) ==== */

.item__img, .rcell, .uptarget__img, .upwin__art { position: relative; }
.item__img::before, .rcell::before, .uptarget__img::before {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 78%; aspect-ratio: 1; max-height: 92%;
  transform: translate(-50%, -50%);
  background: center / contain no-repeat url('../assets/moon.svg');
  opacity: .07;
  filter: grayscale(1) brightness(2.2);
  pointer-events: none;
  z-index: 0;
}
.item__img img, .rcell img, .uptarget__img img { position: relative; z-index: 1; }
.rcell > b, .rcell > small { position: relative; z-index: 1; }


/* ============ апгрейд без дёрганий: окна ставки и цели фиксированной высоты ==== */
/* Раньше окно подстраивалось под картинку: пока скин грузился, оно было ниже,
   потом вырастало — и вся панель прыгала. Теперь размеры заданы заранее. */
.upslot { height: 460px; min-height: 460px; overflow: hidden; }
.upslot > .uptarget, .upslot > .upslot__empty, .upslot > .upslot__list { min-height: 0; }
.uptarget { grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.uptarget__img { height: 100%; min-height: 0; overflow: hidden; padding: 0; }
/* Скин занимает всю высоту окна. У картинок Steam прозрачные поля по
   краям, поэтому небольшое увеличение (scale, а не transform — его занимает
   анимация покачивания) делает скин крупнее, не вылезая за рамку. */
.uptarget__img img {
  width: 100%; height: 100%; max-height: none;
  object-fit: contain;
  scale: 1.2;
}
.uptarget { gap: 4px; padding: 12px 10px 10px; }
.upslot__list { max-height: none; min-height: 0; }
@media (max-width: 720px) {
  .upslot { height: 300px; min-height: 300px; }
  .uptarget__img img { scale: 1.06; }
}


/* ---- иксы под ценой цели: крупные кнопки, без строки «свой икс» ---- */
.upstage:not(.btupstage) .upmults { gap: 8px; }
.upstage:not(.btupstage) .upmult { padding: 16px 4px; border-radius: 14px; }
.upstage:not(.btupstage) .upmult b { font-size: 19px; }

/* ---- настройки апгрейда: быстрые иксы и проценты правятся прямо в чипе ---- */
.upset__hint { margin: 6px 0 0; font-size: 12px; color: var(--tx-3); }
.upset__vals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.upset__chip {
  display: flex; align-items: center; gap: 2px;
  height: 40px; padding: 0 4px 0 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, background .2s;
}
.upset__chip:focus-within { border-color: var(--pink); background: rgba(255, 47, 147, .08); }
.upset__pre { font: 800 15px/1 var(--mono); color: var(--tx-3); }
.upset__pre:empty { display: none; }
.upset__val {
  width: 5.2ch; min-width: 0; padding: 0; border: 0; outline: 0; background: none;
  font: 800 15px/1 var(--mono); color: var(--tx); cursor: text;
  -moz-appearance: textfield; appearance: textfield;
}
.upset__val::-webkit-outer-spin-button, .upset__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.upset__del {
  display: grid; place-items: center; width: 26px; height: 26px; margin-left: 4px;
  border: 0; border-radius: 8px; background: none; color: var(--tx-3); cursor: pointer;
}
.upset__del:hover { background: rgba(255, 60, 60, .14); color: #ff6b6b; }
.upset__del .ic { width: 11px; height: 11px; }


/* ---- апгрейд: колонки ровно, низ окон ставки и цели на одной линии ---- */
.upstage:not(.btupstage) .upcol__head { min-height: 38px; }
.upstage:not(.btupstage) .upcol:not(.upcol--mid) > .upslot { flex: 1 1 0; height: auto; min-height: 460px; }
@media (max-width: 720px) { .upstage:not(.btupstage) .upcol:not(.upcol--mid) > .upslot { min-height: 300px; } }
.upstage:not(.btupstage) .upmult b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upstage:not(.btupstage) .upmult.is-long b { font-size: 16px; }
.upstage:not(.btupstage) .upmult.is-xlong b { font-size: 13px; }
/* во время апгрейда цель не меняется: иксы, проценты и «Случайно» неактивны */
.up-busy .upmults, .up-busy .upmode, .up-busy .uprandom { opacity: .4; pointer-events: none; transition: opacity .2s; }

/* панели под окнами ставки и цели одной высоты */
.upstage:not(.btupstage) .upcash { height: 128px; display: flex; flex-direction: column; justify-content: space-between; }
.upstage:not(.btupstage) .upquick .upmults { margin-top: 10px; }
.upstage:not(.btupstage) .upquick .upmult { padding: 0 4px; height: 56px; display: grid; place-items: center; }


/* ================= страница кейса: крупнее арт, компактная панель, анимация ==== */
.case-stage__art { width: 600px; height: 380px; }
.case-stage__img { max-height: 380px; }
.case-stage__hero { max-height: 320px; }
/* панель «x1…x10 + Открыть» — компактным блоком по центру, а не на всю ширину */
.case-ctl { max-width: 640px; margin-left: auto; margin-right: auto; justify-items: center; }
.case-ctl .case-ctl__row { justify-content: center; }
.case-ctl .upgo-row { max-width: none; }
.case-ctl .chip { min-width: 54px; height: 38px; font-size: 14px; }
@media (max-width: 720px) {
  .case-stage__art { height: 280px; }
  .case-stage__img { max-height: 280px; }
}

/* раскрытие: кейс чуть приседает, подпрыгивает с вспышкой и растворяется */
.case-stage.is-opening .case-stage__img { animation: caseopen .62s cubic-bezier(.3, .7, .2, 1) forwards; }
.case-stage.is-opening .case-stage__art::before { animation: caseglow .62s ease-out forwards; }
@keyframes caseopen {
  0%   { transform: translateY(0) scale(1); filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .75)); }
  22%  { transform: translateY(6px) scale(.94, .9); }
  55%  { transform: translateY(-18px) scale(1.08); filter: drop-shadow(0 0 40px rgba(255, 47, 147, .9)) brightness(1.4); opacity: 1; }
  100% { transform: translateY(-10px) scale(1.35); filter: drop-shadow(0 0 60px rgba(255, 47, 147, 1)) brightness(2.2); opacity: 0; }
}
@keyframes caseglow { 50% { opacity: 1; transform: scale(1.25); } 100% { opacity: 0; transform: scale(1.6); } }
.roller.is-entering { animation: rollerin .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes rollerin {
  from { opacity: 0; transform: scale(.94); filter: brightness(1.8) blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}


/* строка «Открываем кейс…» вместо панели, пока идёт открытие */
.case-status {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 22px auto 40px; height: 56px;
  font: 700 14px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tx-2);
}
.case-status.hidden { display: none; }
.case-ctl.hidden { display: none; }
.case-status__dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--pink);
  box-shadow: 0 0 14px var(--pink); animation: statuspulse 1s ease-in-out infinite;
}
@keyframes statuspulse { 50% { transform: scale(.55); opacity: .5; } }

/* «Депозит от 5 000 ☾» — обычной строкой, без рамки, луна сразу за суммой */
.dreward__need {
  display: flex; align-items: baseline; justify-content: center; gap: 6px; flex-wrap: wrap;
  background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0;
  color: var(--tx-2);
}
.dreward__needlbl { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tx-3); }
.dreward__need b { font: 800 15px/1 var(--mono); color: var(--moon); white-space: nowrap; }


/* ---- ставка из нескольких позиций: крупные карточки ровной сеткой на всё окно ---- */
.upslot__list--fit {
  flex: 1; min-height: 0; max-height: none; overflow: hidden;
  display: grid; gap: 10px; padding: 0;
  grid-template-columns: repeat(var(--c, 3), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  align-content: stretch;
}
.upslot__list--fit[data-n='2'] { --c: 2; }
.upslot__list--fit[data-n='3'] { --c: 3; }
.upslot__list--fit[data-n='4'] { --c: 2; }
.upslot__list--fit[data-n='5'], .upslot__list--fit[data-n='6'] { --c: 3; }
.upslot__list--fit .item {
  min-height: 0; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 12px;
}
.upslot__list--fit .item .item__img { flex: 1; min-height: 0; height: auto; margin: 2px 0 6px; display: grid; place-items: center; overflow: hidden; }
/* картинка заполняет всю свободную высоту карточки, без жёсткого потолка */
.upslot__list--fit .item .item__img img { width: 100%; height: 100%; max-height: none; max-width: 100%; object-fit: contain; scale: 1.1; }
.upslot__list--fit .item__name { font-size: 13.5px; }
.upslot__list--fit .item__price { font-size: 14px; }
.upslot__list--fit[data-n='5'] .item, .upslot__list--fit[data-n='6'] .item { padding: 10px; }
.upslot__list--fit[data-n='5'] .item__name, .upslot__list--fit[data-n='6'] .item__name { font-size: 12.5px; }
@media (max-width: 720px) {
  .upslot__list--fit[data-n='5'], .upslot__list--fit[data-n='6'] { --c: 3; gap: 6px; }
  .upslot__list--fit .item { padding: 8px; }
  .upslot__list--fit .item .item__img img { scale: 1.04; }
}

/* ===================== главная: ряд из четырёх баннеров ==================== */
/* кнопка Telegram на заглушке техработ */
.gate__tg { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; }
.gate__tg .ic { width: 18px; height: 18px; }

/* скин из кейса-награды: только продажа */
.item__bonus {
  position: absolute; top: 10px; left: 11px; z-index: 3;
  padding: 4px 7px; border-radius: 6px;
  font: 700 9.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: #1a0f00; background: #ffb114;
}
.rewardwin__note { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: #ffc547; }

/* плашка для админа: сайт на техработах, игроки видят заглушку */
.maintbar {
  position: sticky; top: 0; z-index: 1000;
  padding: 9px 16px; text-align: center;
  font: 700 13px/1.35 var(--body); color: #1a0f00;
  background: repeating-linear-gradient(135deg, #ffb114 0 18px, #ffc547 18px 36px);
}

/* история пополнений в окне пополнения */
.dephist { margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, .08); }
.dephist__list { display: grid; gap: 6px; margin-top: 10px; max-height: 220px; overflow-y: auto; }
.dephist__row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; font-size: 12.5px; padding: 7px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.dephist__when { color: var(--tx-2); font: 500 11.5px/1 var(--mono); }
.dephist__bonus { color: var(--tx-2); font-size: 11.5px; }
.dephist__st { font-size: 11px; color: var(--tx-2); }
.dephist__row[data-st="credited"] .dephist__st { color: #35e0a1; }
.dephist__row[data-st="failed"] .dephist__st, .dephist__row[data-st="error"] .dephist__st { color: #ff5d7a; }
@media (max-width: 560px) { .dephist__row { grid-template-columns: 1fr auto; } .dephist__bonus, .dephist__st { grid-column: auto; } }

/* provably fair в профиле: длинные хеши переносятся, а не растягивают страницу */
.fair { display: grid; gap: 12px; }
.fair__row { display: grid; gap: 6px; min-width: 0; }
.fair__val { font: 500 12px/1.45 var(--mono); color: var(--tx, #fff); word-break: break-all; background: rgba(255, 255, 255, .03); border-radius: 8px; padding: 8px 10px; }
.fair__prev { display: grid; gap: 10px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .08); }
.fair__note { margin: 0; font-size: 12.5px; line-height: 1.5; }

/* три баннера в ряд, ряд по центру страницы */
.promo4 {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin: 4px auto 26px;
  max-width: 1200px;
}
.promo4__slot {
  position: relative; display: block;
  aspect-ratio: 760 / 508;
  border-radius: 16px;
  transition: transform .25s var(--ease), filter .25s var(--ease);
}
/* картинка с выступающим за рамку бойцом — прозрачный фон, без своей рамки */
.promo4__img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .45)); }
a.promo4__slot:hover { transform: translateY(-3px); filter: brightness(1.08); }
/* место под будущий баннер */
.promo4__slot--empty {
  border: 1px dashed rgba(255, 255, 255, .08);
  background: radial-gradient(80% 80% at 50% 50%, rgba(255, 47, 147, .04), transparent 70%);
}
@media (max-width: 760px) { .promo4 { gap: 10px; } }
@media (max-width: 560px) { .promo4 { grid-template-columns: 1fr; } }

/* кнопка «Апгрейд» и соседний квадрат не подпрыгивают при наведении:
   сдвиг на 1 px уводил кнопку из-под курсора, и она дёргалась туда-сюда */
.upgo-row > .btn:hover, .upgo-row > .sqtoggle:hover, .upgo:hover { transform: none; }
button.promo4__slot { padding: 0; border: 0; background: none; cursor: pointer; width: 100%; }
button.promo4__slot:hover { transform: translateY(-3px); filter: brightness(1.08); }

/* «up-busy» теперь стоит на самом .upstage */
.upstage.up-busy .upmults, .upstage.up-busy .upmode, .upstage.up-busy .uprandom { opacity: .4; pointer-events: none; }

/* заголовок «Апгрейд» с шестерёнкой — чуть ниже и по одной линии */
.page-head--up { align-items: center; padding-top: 14px; }
.page-head--up h1 { line-height: 1.1; }

/* во время апгрейда «Добавить с баланса» тоже неактивно */
.upstage.up-busy .upcash { opacity: .45; pointer-events: none; transition: opacity .2s; }

/* «Апгрейд / Пропустить» стоит неподвижно под курсором: без проседания при
   нажатии, без бегущего блика и без смены курсора. Раньше кнопка на миг
   становилась disabled (pointer-events: none) — курсор прыгал стрелка ↔ рука,
   а :active сдвигал её на пиксель. */
.upgo, .upgo:hover, .upgo:active { transform: none !important; }
.upgo::after { display: none; }
.upgo { cursor: pointer; transition: filter .2s, box-shadow .25s, opacity .2s; }
.upgo:disabled { pointer-events: auto; cursor: default; }
.upgo:active { filter: brightness(.96); }


/* ================== апгрейд крупнее и шире (по образцу), умеренно ==== */
/* Страница апгрейда шире общей сетки сайта: окна ставки и цели, колесо и
   нижние витрины растут примерно на 10–20 %. (:not(.btupstage) — след убранной битвы, держит приоритет правил.) */
.view:has(> .upstage:not(.btupstage)) { max-width: 1640px; }
.upstage:not(.btupstage) {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 392px) minmax(0, 1fr);
  gap: 22px;
}
.upstage:not(.btupstage) .upcol:not(.upcol--mid) > .upslot { min-height: 500px; }
.upstage:not(.btupstage) .upslot { height: 500px; min-height: 500px; padding: 18px; }
.upstage:not(.btupstage) .uptarget__name { font-size: 24px; }
.upstage:not(.btupstage) .uptarget__weapon { font-size: 11px; }
.upstage:not(.btupstage) .uptarget__wear { font-size: 11.5px; }
.upstage:not(.btupstage) .uptarget__price { font-size: 28px; padding: 9px 20px; }
.upstage:not(.btupstage) .upslot__empty b { font-size: 16px; }
.upstage:not(.btupstage) .upslot__empty span { font-size: 13px; max-width: 260px; }
.upstage:not(.btupstage) .upslot__list--fit .item__name { font-size: 14.5px; }
.upstage:not(.btupstage) .upslot__list--fit .item__price { font-size: 15px; }
/* Скин не шире окна: высота картинки — 120 % высоты окна, но не больше его
   ширины (картинки Steam квадратные, скин занимает их середину). */
.upstage:not(.btupstage) .uptarget__img { container-type: size; }
.upstage:not(.btupstage) .uptarget__img img { width: 100%; height: min(120cqh, 96cqw); max-height: none; scale: 1; }

/* колесо, логотип над ним и кнопка */
.upstage:not(.btupstage) .upbrand .logo.has-img .logo__img { height: 72px; }
.upstage:not(.btupstage) .wheel { width: 352px; height: 352px; }
.upstage:not(.btupstage) .wheel__core { width: 214px; height: 214px; }
.upstage:not(.btupstage) .wheel__logo { width: 50px; height: 50px; }
.upstage:not(.btupstage) .wheel__pct { font-size: 36px; }
.upstage:not(.btupstage) .wheel__cap { font-size: 11px; top: 30px; }
.upstage:not(.btupstage) .wheel__lvl { font-size: 11px; }
.upstage:not(.btupstage) .upcol--mid .upgo-row,
.upstage:not(.btupstage) .upgo,
.upstage:not(.btupstage) .uplimit { max-width: 352px; }
.upstage:not(.btupstage) .upgo { font-size: 17px; min-height: 58px; }

/* панели под окнами: ползунок баланса и быстрые иксы */
.upstage:not(.btupstage) .upcash { height: 136px; }
.upstage:not(.btupstage) .upquick .upmult { height: 60px; }
.upstage:not(.btupstage) .upmult b { font-size: 20px; }

/* «Мой инвентарь» и «Скины на апгрейд» — пополам, как на образце */
.upbottom { grid-template-columns: 1fr 1fr; gap: 22px; }
.upgrid.grid--sm { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.upgrid .item--sm { min-height: 252px; padding: 15px; }
.upgrid .item--sm .item__img { height: 146px; }
.upgrid .item--sm .item__img img { max-height: 146px; }
.upgrid .item--sm .item__name { font-size: 15px; }
.upgrid .item--sm .item__price { font-size: 16px; }
.upgrid .item { contain-intrinsic-size: 252px; }
.upbottom .panel__head h3 { font-size: 19px; }

/* на средних экранах — чуть скромнее, чтобы три колонки влезали */
@media (max-width: 1600px) {
  .upstage:not(.btupstage) { grid-template-columns: minmax(0, 1fr) minmax(310px, 340px) minmax(0, 1fr); gap: 18px; }
  .upstage:not(.btupstage) .wheel { width: 316px; height: 316px; }
  .upstage:not(.btupstage) .wheel__core { width: 192px; height: 192px; }
  .upstage:not(.btupstage) .wheel__pct { font-size: 32px; }
  .upstage:not(.btupstage) .upcol--mid .upgo-row,
  .upstage:not(.btupstage) .upgo { max-width: 316px; }
  .upstage:not(.btupstage) .uptarget__name { font-size: 21px; }
  .upgrid.grid--sm { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .upgrid .item--sm { min-height: 216px; }
  .upgrid .item--sm .item__img, .upgrid .item--sm .item__img img { height: 116px; max-height: 116px; }
}
@media (max-width: 1180px) {
  .upbottom { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .upstage:not(.btupstage) .upslot,
  .upstage:not(.btupstage) .upcol:not(.upcol--mid) > .upslot { height: 320px; min-height: 320px; }
  .upstage:not(.btupstage) .wheel { width: 290px; height: 290px; }
  .upstage:not(.btupstage) .wheel__core { width: 176px; height: 176px; }
  .upstage:not(.btupstage) .wheel__pct { font-size: 30px; }
  .upstage:not(.btupstage) .uptarget__name { font-size: 19px; }
  .upstage:not(.btupstage) .uptarget__price { font-size: 22px; }
}

/* ---- телефоны и узкие экраны: апгрейд в одну колонку, колесо сверху ----
   (правила выше для широкой страницы перебивали мобильную вёрстку) */
@media (max-width: 1180px) {
  .upstage:not(.btupstage) { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .upstage:not(.btupstage) .upcol--mid { order: -1; }
  .upstage:not(.btupstage) .upcol:not(.upcol--mid) > .upslot { min-height: 380px; }
  .upstage:not(.btupstage) .upslot { height: 380px; min-height: 380px; }
}
@media (max-width: 720px) {
  .upstage:not(.btupstage) .upslot,
  .upstage:not(.btupstage) .upcol:not(.upcol--mid) > .upslot { height: 320px; min-height: 320px; }
  .upstage:not(.btupstage) .wheel { width: min(290px, 78vw); height: min(290px, 78vw); }
  .upstage:not(.btupstage) .wheel__core { width: min(176px, 47vw); height: min(176px, 47vw); }
}

/* картинка кейса не шире экрана: на телефоне 600 px обрезались справа */
@media (max-width: 680px) {
  .case-stage__art { width: 100%; max-width: 100%; }
  .case-stage__img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
  .case-stage__hero { max-height: 84%; }
}
