/* ===== Страница кейса и открытие ===== */
.cview { display: none; --c: #2f8cff; --ease-out: cubic-bezier(0.230, 1, 0.320, 1); }
body.is-case .cview { display: block; animation: cview-in 0.400s var(--ease-out); }
body.is-case .promo,
body.is-case .cases { display: none; }
@keyframes cview-in {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: none; }
}

/* редкости */
.rar-gray      { --r: #8b90a0; }
.rar-lightblue { --r: #38b6f0; }
.rar-blue      { --r: #5b7cff; }
.rar-purple    { --r: #9a5cff; }
.rar-rose      { --r: #e668f5; }
.rar-red       { --r: #ff3d6e; }
.rar-yellow    { --r: #ffc24a; }
[class*="rar-"] { --w1: color-mix(in srgb, var(--r) 30%, #fff); --w2: var(--r); }

/* ---------- Верх: назад, миниатюра, название ---------- */
.cview__top { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.cview__back {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(245, 245, 250, 0.030);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.100);
  color: #fff;
  transition: background-color 0.200s;
}
.cview__back::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--glass-edge);
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.cview__back svg { width: 20px; height: 20px; transition: transform 0.250s var(--ease-out); }
.cview__back:hover { background: rgba(92, 72, 84, 0.550); }
.cview__back:hover svg { transform: translateX(-3px); }
.cview__back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cview__thumb {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 60%, transparent));
}
.cview__id { flex: 1; display: grid; gap: 4px; min-width: 0; }
.cview__name { margin: 0; font: 900 22px/1.100 var(--font-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cview__every { font: 700 12px/1 var(--font-title); color: color-mix(in srgb, var(--c) 45%, #b9b9c2); }
@media (min-width: 761px) {
  .cview__name { font-size: 28px; }
}

/* ---------- Панель сцены ---------- */
.stage {
  margin-top: 14px;
  padding: 10px;
  border-radius: 26px;
  background: #18181c;
  box-shadow: inset 0 0 0 1px #ffffff12;
}
@media (min-width: 761px) {
  .stage { padding: 14px; border-radius: 30px; }
}
.scene {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: #0d0c11;
  isolation: isolate;
}
@media (min-width: 761px) {
  .scene { aspect-ratio: auto; height: 440px; border-radius: 20px; }
}
.scene__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  transition: filter 0.500s, transform 0.800s var(--ease-out);
}
/* подкрашиваем сцену в цвет кейса и затемняем края */
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46% 34% at 50% 74%, color-mix(in srgb, var(--c) 34%, transparent), transparent 75%),
    radial-gradient(120% 90% at 50% 50%, transparent 45%, #000000a6 100%);
  pointer-events: none;
}
.scene__case {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: min(58%, 300px);
  aspect-ratio: 1;
  translate: -50% 0;
  transition: opacity 0.350s, scale 0.500s var(--ease-out);
}
.scene__case::after { /* тень на полу */
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 3%;
  z-index: -1;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #000000cc, transparent);
}
.scene__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 26px color-mix(in srgb, var(--c) 45%, transparent));
  animation: fcase-float 4.500s ease-in-out infinite alternate;
}
/* во время прокрута кейс уходит, сцена темнеет */
.stage[data-state="spin"] .scene__case,
.stage[data-state="win"] .scene__case { opacity: 0; scale: 0.700; pointer-events: none; }
.stage[data-state="spin"] .scene__bg,
.stage[data-state="win"] .scene__bg { filter: brightness(0.450) blur(3px); transform: scale(1.060); }
.stage[data-state="spin"] .scene__img { animation: case-shake 0.500s ease-in-out; }
@keyframes case-shake {
  20% { rotate: -6deg; }
  40% { rotate: 6deg; }
  60% { rotate: -4deg; }
  80% { rotate: 3deg; }
}

/* ---------- Ленты-рулетки (поверх сцены; при ×2/×3 их несколько) ---------- */
.reels {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  transition: padding 0.500s cubic-bezier(0.230, 1, 0.320, 1);
}
.stage[data-state="spin"] .reels,
.stage[data-state="win"] .reels { display: flex; animation: reel-in 0.450s var(--ease-out); }
/* после остановки ленты поднимаются, освобождая место результату */
.stage[data-state="win"] .reels { padding-bottom: 34%; }
.stage[data-state="win"][data-n="2"] .reels,
.stage[data-state="win"][data-n="3"] .reels { padding-bottom: 46px; }
.reel {
  --card: 108px;
  --gap: 6px;
  position: relative;
  flex: 0 0 auto;
  height: calc(var(--card) + 24px);
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.stage[data-n="2"] .reel { --card: 92px; }
.stage[data-n="3"] .reel { --card: 70px; }
@media (min-width: 761px) {
  .reel { --card: 156px; --gap: 8px; }
  .stage[data-state="win"] .reels { padding-bottom: 150px; }
  .stage[data-n="2"] .reel { --card: 132px; }
  .stage[data-n="3"] .reel { --card: 98px; }
}
@keyframes reel-in {
  0% { opacity: 0; transform: scaleY(0.600); }
  100% { opacity: 1; transform: none; }
}
.stage[data-n="3"] .icard { padding: 5px 6px; border-radius: 11px; }
.stage[data-n="3"] .icard__type { display: none; }
.stage[data-n="3"] .icard__name { font-size: 10px; }
.reel__track {
  position: absolute;
  top: 12px;
  left: 0;
  display: flex;
  gap: var(--gap);
  will-change: transform;
}
/* указатель: два клина и луч по центру */
.reel__ptr {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, transparent, #fff 20%, #fff 80%, transparent);
  box-shadow: 0 0 12px 2px var(--c);
  pointer-events: none;
}
.reel__ptr::before,
.reel__ptr::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 14px;
  margin-left: -9px;
  background: #fff;
  filter: drop-shadow(0 0 6px var(--c));
}
.reel__ptr::before { top: 2px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.reel__ptr::after { bottom: 2px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.reel__ptr.is-tick::before { animation: ptr-tick 0.120s ease-out; }
@keyframes ptr-tick {
  0% { transform: rotate(-22deg); }
  100% { transform: none; }
}

/* ---------- Карточка предмета ---------- */
.icard {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  align-content: end;
  width: var(--card, auto);
  aspect-ratio: 1;
  padding: 8px;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--r) 40%, transparent), transparent 75%),
    #1c1d21;
  box-shadow: inset 0 0 0 1px #ffffff12;
  text-align: left;
}
.icard::after { /* полоска редкости сверху */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 34%;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: var(--r);
  box-shadow: 0 0 16px 1px var(--r);
  translate: -50% 0;
}
.icard__img {
  position: absolute;
  top: 18%;
  left: 10%;
  width: 80%;
  aspect-ratio: 2 / 1;
  rotate: -8deg;
  filter: drop-shadow(0 5px 6px #00000099);
  transition: rotate 0.300s var(--ease-out), scale 0.300s var(--ease-out);
}
.icard__type, .icard__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icard__type { font: 700 10px/1.300 var(--font-title); color: #9a9aa3; }
.icard__name { font: 800 12px/1.300 var(--font-title); color: #fff; }
@media (min-width: 761px) {
  .icard { padding: 12px; border-radius: 16px; }
  .icard__type { font-size: 11px; }
  .icard__name { font-size: 14px; }
}
/* победитель */
.reel .icard { transition: opacity 0.400s, transform 0.500s var(--ease-out), box-shadow 0.400s; }
.stage[data-state="win"] .reel .icard:not(.is-win) { opacity: 0.250; }
.reel .icard.is-win {
  z-index: 2;
  transform: scale(1.100);
  box-shadow: inset 0 0 0 2px var(--r), 0 0 34px color-mix(in srgb, var(--r) 70%, transparent);
  animation: win-pulse 1.400s ease-in-out infinite alternate;
}
@keyframes win-pulse {
  0% { box-shadow: inset 0 0 0 2px var(--r), 0 0 22px color-mix(in srgb, var(--r) 50%, transparent); }
  100% { box-shadow: inset 0 0 0 2px var(--r), 0 0 44px color-mix(in srgb, var(--r) 90%, transparent); }
}
.stage[data-state="win"] .reel__ptr { opacity: 0; transition: opacity 0.300s; }

/* ---------- Результат (поверх сцены, под лентой) ---------- */
.result {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6%;
  display: none;
  padding: 0 16px;
  text-align: center;
}
.stage[data-state="win"] .result { display: block; animation: hero-rise 0.500s var(--ease-out) 0.150s both; }
.result__label { font: 800 11px/1 var(--font-title); letter-spacing: 0.100em; text-transform: uppercase; color: #ffffff99; }
.result__name { margin: 8px 0 0; font: 900 20px/1.200 var(--font-title); color: color-mix(in srgb, var(--r) 55%, #fff); text-shadow: 0 0 22px color-mix(in srgb, var(--r) 60%, transparent); }
.result__price { margin-top: 6px; font: 900 18px/1 var(--font-title); }
.result__note { margin: 8px auto 0; max-width: 38ch; font: 500 12px/1.400 var(--font-text); color: #ffffff99; }
@media (min-width: 761px) {
  .result__name { font-size: 28px; }
  .result__price { font-size: 22px; }
}

/* ---------- Кнопки под сценой ---------- */
.obtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 54px;
  margin-top: 10px;
  padding: 0 24px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 80%, #000));
  box-shadow: inset 0 1px 0 #ffffff80, 0 8px 26px color-mix(in srgb, var(--c) 45%, transparent);
  font: 900 17px/1 var(--font-title);
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 1px 0 #00000059;
  transition: transform 0.150s, filter 0.150s, opacity 0.200s;
}
.obtn:hover { filter: brightness(1.100); }
.obtn:active { transform: translateY(1px); }
.obtn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.obtn:disabled {
  background: #ffffff12;
  box-shadow: inset 0 0 0 1px #ffffff1f;
  color: #b9b9c2;
  text-shadow: none;
  cursor: default;
  filter: none;
  transform: none;
}
@media (min-width: 761px) {
  .obtn { height: 60px; font-size: 18px; margin-top: 14px; }
}
.stage__row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.obtn--ghost {
  width: auto;
  height: 44px;
  margin: 0;
  padding: 0 20px;
  border-radius: 13px;
  background: #ececf2;
  box-shadow: inset 0 -2px 0 #00000026;
  font-size: 14px;
  color: #17171b;
  text-shadow: none;
}
.obtn--ghost:hover { filter: brightness(0.940); }
.stage[data-state="spin"] .obtn,
.stage[data-state="spin"] .stage__row { opacity: 0.400; pointer-events: none; }

/* выбор ×1 / ×2 / ×3 */
.mult {
  --i: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 50px;
  margin-top: 10px;
  padding: 5px;
  border-radius: 16px;
  background: #0d0d10;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, #ffffff1f);
}
.mult[hidden] { display: none; }
.mult__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 3);
  border-radius: 12px;
  background: #ffffff1a;
  box-shadow: inset 0 0 0 1px #ffffff1f;
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 0.380s cubic-bezier(0.340, 1.300, 0.500, 1);
}
.mult__btn {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 12px;
  background: none;
  font: 900 15px/1 var(--font-title);
  color: var(--text-2);
  transition: color 0.200s;
}
.mult__btn:hover, .mult__btn.is-active { color: #fff; }
.mult__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.stage[data-state="spin"] .mult { opacity: 0.400; pointer-events: none; }

.stage__hint {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 12%, #0d0d10);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent);
  font: 600 13px/1.400 var(--font-text);
  color: #e6e6ea;
  text-align: center;
}
.stage__hint[hidden] { display: none; }

/* результат при ×2/×3: одна строка с суммой */
.stage[data-n="2"] .result, .stage[data-n="3"] .result { bottom: 10px; display: none; }
.stage[data-state="win"][data-n="2"] .result,
.stage[data-state="win"][data-n="3"] .result { display: flex; justify-content: center; align-items: baseline; gap: 8px; }
.stage[data-n="2"] .result__label, .stage[data-n="3"] .result__label,
.stage[data-n="2"] .result__note, .stage[data-n="3"] .result__note { display: none; }
.stage[data-n="2"] .result__name, .stage[data-n="3"] .result__name { margin: 0; font-size: 14px; color: #ffffffb3; text-shadow: none; }
.stage[data-n="2"] .result__price, .stage[data-n="3"] .result__price { margin: 0; font-size: 18px; }

/* переключатель «Быстро» */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 14px/1 var(--font-title);
  color: #c9c9cf;
  cursor: pointer;
  user-select: none;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: #0d0d10;
  box-shadow: inset 0 0 0 1px #ffffff1f;
  transition: background-color 0.250s, box-shadow 0.250s;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e6e6ea;
  transition: transform 0.300s cubic-bezier(0.340, 1.400, 0.500, 1), background-color 0.250s;
}
.switch input:checked + .switch__track { background: color-mix(in srgb, var(--c) 35%, #0d0d10); box-shadow: inset 0 0 0 1px var(--c), 0 0 14px color-mix(in srgb, var(--c) 45%, transparent); }
.switch input:checked + .switch__track::after { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:checked ~ span { color: #fff; }

/* ---------- Содержимое ---------- */
.loot, .similar { margin-top: 30px; }
.loot__head { display: flex; align-items: center; gap: 10px; }
.loot__title { margin: 0; font: 900 22px/1.200 var(--font-title); }
.loot__count {
  padding: 4px 8px;
  border-radius: 8px;
  background: #ffffff14;
  font: 800 12px/1 var(--font-title);
  color: #c9c9cf;
}
.loot__range { margin-left: auto; font: 700 12px/1 var(--font-title); color: var(--text-3); white-space: nowrap; }
.loot__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
@media (min-width: 761px) {
  .loot__title { font-size: 28px; }
  .loot__range { font-size: 14px; }
  .loot__grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
}
.loot .icard { width: auto; aspect-ratio: 1.380 / 1; padding: 10px 12px; transition: transform 0.250s var(--ease-out), box-shadow 0.250s; }
.loot .icard__img { top: 16%; left: 22%; width: 56%; }
.loot .icard:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--r) 70%, transparent); }
.loot .icard:hover .icard__img { rotate: 0deg; scale: 1.100; }
.icard__chance,
.icard__price {
  position: absolute;
  top: 10px;
  font: 800 12px/1 var(--font-title);
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.icard__chance {
  left: 10px;
  padding: 4px 7px;
  border-radius: 8px;
  background: #0000008c;
  font-size: 11px;
  color: color-mix(in srgb, var(--r) 55%, #fff);
}
.icard__price { right: 12px; top: 13px; font-size: 13px; }
@media (min-width: 761px) {
  .icard__price { font-size: 15px; }
}
.loot__note { margin: 14px 0 0; font: 500 12px/1.400 var(--font-text); color: var(--text-3); }

/* ---------- Похожие кейсы ---------- */
.similar__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
@media (min-width: 761px) {
  .similar__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
.similar .fcase {
  padding: 10px 8px 18px;
  border-radius: 22px;
  background:
    radial-gradient(80% 50% at 50% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 75%),
    #18181c;
  box-shadow: inset 0 0 0 1px #ffffff12;
}

@media (prefers-reduced-motion: reduce) {
  body.is-case .cview, .scene__img, .reel .icard.is-win, .reel__ptr.is-tick::before { animation: none; }
  .scene__case, .scene__bg { transition: none; }
}

/* ---------- настоящие скины (фото) и исход «Ничего не выпало» ---------- */
img.art-img { object-fit: contain; object-position: center; }
img.icard__img.art-img, img.ucard__img.art-img { height: auto; filter: drop-shadow(0 6px 8px #000000b3) saturate(1.050); }
img.drop__img.art-img { object-fit: contain; }
.art-empty { color: #6d6e7c; filter: none !important; rotate: 0deg !important; }
.result.is-empty .result__name { color: #b9bac7; }
/* фото скина крупнее силуэта: почти во всю ширину карточки, лёгкий наклон */
img.icard__img.art-img { left: 5%; width: 90%; top: 20%; rotate: -5deg; }
img.ucard__img.art-img { width: 96%; rotate: -5deg; }

/* ===== Фото скинов: ровно, по центру, с подсветкой цвета редкости ===== */
img.art-img { rotate: 0deg !important; }
img.icard__img.art-img { top: 50%; left: 50%; width: 86%; height: 50%; translate: -50% -62%;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--r) 55%, transparent)) drop-shadow(0 6px 6px #000000a6); }
img.ucard__img.art-img { width: 92%; height: 70px; margin: 8px auto 6px;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--r) 55%, transparent)) drop-shadow(0 6px 6px #000000a6); }
img.uslot__img.art-img { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--r) 60%, transparent)) drop-shadow(0 8px 10px #00000099); }
img.drop__img.art-img { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--c, var(--r)) 55%, transparent)); }
/* мягкое пятно света за скином */
.icard:has(> .art-img)::before, .ucard:has(> .art-img) .ucard__top::after { content: ""; position: absolute; pointer-events: none; }
.icard:has(> .art-img)::before { left: 50%; top: 38%; width: 78%; height: 46%; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--r) 38%, transparent), transparent); }
.icard:has(> .art-img) { isolation: isolate; }
.icard:has(> .art-img)::before { z-index: -1; }
.ucard:has(> .art-img) .ucard__top::after { left: 50%; top: 52px; width: 82%; height: 60px; translate: -50% -50%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--r) 38%, transparent), transparent); }
/* при наведении скин чуть приближается */
@media (hover: hover) {
  .icard img.art-img, .ucard img.art-img { transition: scale 0.300s var(--ease-out); }
  .icard:hover img.art-img, .ucard:hover img.art-img { scale: 1.060; }
}
/* выигравшая карточка на ленте прокрутки светится сильнее */
.reel .icard.is-win img.art-img { filter: drop-shadow(0 0 16px color-mix(in srgb, var(--r) 80%, transparent)) drop-shadow(0 6px 6px #000000a6); }

/* ===== Итог прокрута: красивый текст после выпадения ===== */
.result { --rc: color-mix(in srgb, var(--r) 55%, #fff); }
.stage[data-state="win"] .result:not(:is([data-n="2"] *, [data-n="3"] *)) { display: flex; flex-direction: column; align-items: center; }
/* ярлык-плашка с линиями по бокам */
.result__label { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--r) 16%, #0000008c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--r) 45%, transparent);
  font: 900 10.500px/1 var(--font-title); letter-spacing: 0.140em; text-transform: uppercase; color: var(--rc); }
.result__label::before, .result__label::after { content: ""; width: 5px; height: 5px; rotate: 45deg; border-radius: 1px; background: currentColor; box-shadow: 0 0 6px currentColor; }
/* название: оружие мелко, имя скина крупно с градиентом и свечением */
.result__name { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px 0 0; text-shadow: none; }
.result__type { font: 800 12px/1.100 var(--font-title); letter-spacing: 0.060em; text-transform: uppercase; color: #ffffff8c; }
.result__title { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 4px 2px;
  font: italic 900 24px/1.150 var(--font-title); letter-spacing: -0.010em;
  background: linear-gradient(180deg, #fff 25%, var(--rc) 70%, color-mix(in srgb, var(--r) 85%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--r) 55%, transparent)) drop-shadow(0 2px 0 #00000080); }
/* цена: плашка с розовой монетой */
.result__price { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 4px 14px 4px 4px; border-radius: 999px;
  background: #0000008c; box-shadow: inset 0 0 0 1px #ffffff1f, 0 4px 14px #00000066; font: 900 18px/1 var(--font-title); color: #fff; }
.result__coin { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: normal 900 13px/1 var(--font-title); color: #fff;
  background: linear-gradient(145deg, #8cc8ff, var(--accent) 55%, var(--accent-deep)); box-shadow: inset 0 1px 0 #ffffff70, 0 0 10px rgb(var(--accent-rgb) / 0.550); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* подпись со значком */
.result__note { display: inline-flex; align-items: center; gap: 7px; margin: 9px auto 0; font: 600 12px/1.350 var(--font-text); color: #ffffffb3; text-align: left; }
.result__ico { flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: #3ddc97; box-shadow: 0 0 8px #3ddc9780; }
.result__ico svg { width: 12px; height: 12px; }
.result__ico--info { background: #6f7080; box-shadow: none; }
.result__ico--clock { background: #50515e; box-shadow: none; }
/* редкий дроп: ярлык золотится и мерцает */
.result.is-rare .result__label { animation: rare-glow 1.400s ease-in-out infinite alternate; }
@keyframes rare-glow { from { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--r) 45%, transparent); } to { box-shadow: inset 0 0 0 1px var(--r), 0 0 16px color-mix(in srgb, var(--r) 60%, transparent); } }
/* пусто и демо — спокойнее */
.result.is-empty .result__title { background: linear-gradient(180deg, #fff, #9a9bab); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 2px 0 #00000080); }
.result.is-empty .result__label { color: #b9bac7; background: #0000008c; box-shadow: inset 0 0 0 1px #ffffff26; }
.result.is-empty .result__price { opacity: 0.700; }
/* текст появляется по очереди */
.stage[data-state="win"] .result > * { animation: res-in 0.450s var(--ease-out) both; }
.stage[data-state="win"] .result__name { animation-delay: 0.080s; }
.stage[data-state="win"] .result__price { animation-delay: 0.160s; }
.stage[data-state="win"] .result__note { animation-delay: 0.240s; }
@keyframes res-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@media (min-width: 761px) {
  .result__title { font-size: 32px; }
  .result__type { font-size: 13px; }
  .result__price { font-size: 22px; }
  .result__coin { width: 30px; height: 30px; font-size: 15px; }
  .result__note { font-size: 13px; }
}
/* открыто сразу несколько кейсов: одна строка «Итого … · цена» */
.stage[data-n="2"] .result__title, .stage[data-n="3"] .result__title { font-size: 15px; font-style: normal; background: none; color: #ffffffcc; filter: none; }
.stage[data-n="2"] .result__price, .stage[data-n="3"] .result__price { margin: 0; font-size: 16px; }
.stage[data-n="2"] .result__coin, .stage[data-n="3"] .result__coin { width: 22px; height: 22px; font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .result.is-rare .result__label, .stage[data-state="win"] .result > * { animation: none; } }
/* итог не должен наезжать на выпавшую карточку: ниже и плотнее */
.result { bottom: 8px; }
.result__name { margin-top: 6px; }
.result__price { margin-top: 6px; padding: 3px 12px 3px 3px; }
.result__note { margin-top: 7px; }
@media (max-width: 760px) {
  .result__label { padding: 4px 10px; font-size: 10px; }
  .result__title { font-size: 22px; }
  .result__type { font-size: 11px; }
  .result__price { font-size: 16px; }
  .result__coin { width: 24px; height: 24px; font-size: 12px; }
}
/* фото скина — по центру между верхней строкой (шанс/цена) и названием, чуть крупнее */
img.icard__img.art-img { top: 23%; left: 50%; width: 90%; height: 46%; translate: -50% 0; }
.icard:has(> .art-img)::before { top: 46%; height: 52%; }
img.icard__img.art-img { top: 22%; height: 43%; }

/* значок игры в углу карточки предмета (вместо шанса) */
.gbadge { position: absolute; top: 10px; left: 11px; z-index: 1; display: inline-flex; align-items: center; color: #e9edf6;
  filter: drop-shadow(0 1px 2px #00000099); pointer-events: none; }
.gbadge--cs svg { display: block; height: 15px; width: auto; fill: currentColor; }
.gbadge--so { gap: 3px; font: italic 900 9.500px/1 var(--font-title); letter-spacing: 0.050em; }
.gbadge--so i { display: inline-grid; place-items: center; width: 12px; height: 12px; border-radius: 3px; font-style: normal; font-size: 9px;
  box-shadow: inset 0 0 0 1.300px currentColor; }
@media (min-width: 761px) {
  .gbadge { top: 12px; left: 13px; }
  .gbadge--cs svg { height: 18px; }
  .gbadge--so { font-size: 11px; }
  .gbadge--so i { width: 14px; height: 14px; font-size: 10px; }
}
/* Standoff 2 — официальный логотип */
.gbadge--so img { display: block; height: 13px; width: auto; }
@media (min-width: 761px) { .gbadge--so img { height: 16px; } }
