/* ===== Платные кейсы: серия ===== */
.series { margin-top: 26px; --ease-out: cubic-bezier(0.230, 1, 0.320, 1); }
.series[hidden], .free[hidden], .fcase[hidden], .pcase[hidden] { display: none; }
.series__head { display: grid; justify-items: center; }
.series__logo {
  width: min(78%, 420px);
  aspect-ratio: 21 / 9;
  object-fit: contain;
  filter: drop-shadow(0 0 26px color-mix(in srgb, var(--glow, #2f8cff) 45%, transparent));
  pointer-events: none;
  user-select: none;
}
.series__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}
@media (min-width: 900px) {
  .series__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}

/* ---------- Карточка платного кейса ---------- */
.pcase {
  --c: #2f8cff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px 16px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(90% 55% at 50% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 75%),
    #18181c;
  box-shadow: inset 0 0 0 1px #ffffff12;
  text-align: center;
  transition: box-shadow 0.250s, transform 0.250s var(--ease-out);
}
.pcase:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.pcase__new {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8cc8ff, var(--accent) 60%, var(--accent-deep));
  box-shadow: inset 0 1px 0 #ffffff66, 0 0 12px rgb(var(--accent-rgb) / 0.500);
  font: 900 10px/1 var(--font-title);
  letter-spacing: 0.080em;
  text-transform: uppercase;
  color: #fff;
  rotate: -4deg;
}
.pcase__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 0.900;
}
.pcase__art::before {
  content: "";
  position: absolute;
  inset: 14% 10% 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 55%, transparent), transparent);
  filter: blur(14px);
  opacity: 0.550;
  transition: opacity 0.350s, transform 0.350s var(--ease-out);
}
.pcase__img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px #00000080);
  animation: fcase-float 4.500s ease-in-out infinite alternate;
  animation-delay: var(--dl, 0s);
  transition: scale 0.350s var(--ease-out), rotate 0.350s var(--ease-out);
  pointer-events: none;
}
.pcase__name { margin-top: 6px; font: 900 17px/1.200 var(--font-title); color: #fff; }
.pcase__price {
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #0d0d10;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, #ffffff1f);
  font: 900 14px/1 var(--font-title);
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--c) 40%, #fff);
  transition: background-color 0.250s, color 0.250s, box-shadow 0.250s;
}
@media (min-width: 761px) {
  .pcase { padding: 16px 12px 20px; }
  .pcase__name { font-size: 20px; }
  .pcase__price { font-size: 15px; }
}
@media (hover: hover) {
  .pcase:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-3px); }
  .pcase:hover .pcase__img { scale: 1.070; rotate: -2deg; }
  .pcase:hover .pcase__art::before { opacity: 1; transform: scale(1.120); }
  .pcase:hover .pcase__price {
    background: var(--c);
    color: #17171b;
    box-shadow: 0 0 20px color-mix(in srgb, var(--c) 60%, transparent);
  }
}

.cases__empty {
  margin: 30px 0 0;
  padding: 28px 16px;
  border-radius: 20px;
  background: #18181c;
  box-shadow: inset 0 0 0 1px #ffffff12;
  font: 700 14px/1.400 var(--font-title);
  color: var(--text-2);
  text-align: center;
}
.cases__empty[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .pcase__img { animation: none; }
}

/* в разделе 10 кейсов: на ПК по пять в ряд, два ровных ряда */
@media (min-width: 900px) {
  .series__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* ===== Акция «Новый год 2027»: баннер с таймером и крупные кейсы ===== */
.nyev { display: grid; gap: 14px; margin-top: 8px; }
.nyev__ban { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; min-height: 270px; padding: 14px 12px 64px; border-radius: 26px; overflow: hidden; isolation: isolate;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.100), 0 20px 40px -24px #000; }
.nyev__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.nyev__ban::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(8 10 30 / 0.250), transparent 40%, rgb(8 10 30 / 0.650) 100%); }
.nyev__logo { width: min(330px, 86%); filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.550)); animation: nyev-bob 4s ease-in-out infinite; }
@keyframes nyev-bob { 50% { transform: translateY(-5px) rotate(-1deg); } }
.nyev__timer { display: flex; gap: 8px; }
.nyev__timer span { display: grid; justify-items: center; gap: 2px; min-width: 62px; padding: 8px 6px 7px; border-radius: 14px;
  background: linear-gradient(180deg, rgb(56 214 255 / 0.900), rgb(47 109 255 / 0.900)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.500), inset 0 -3px 0 rgb(0 0 0 / 0.200), 0 8px 18px -8px #2f6dff; }
.nyev__timer b { font: 900 24px/1 var(--font-title); color: #fff; text-shadow: 0 2px 0 rgb(0 0 0 / 0.250); font-variant-numeric: tabular-nums; }
.nyev__timer small { font: 700 11px/1 var(--font-title); color: #e6f6ff; }
.nyev__sub { position: absolute; left: 12px; right: 12px; bottom: 16px; margin: 0; text-align: center; font: 800 13px/1.300 var(--font-title); color: #fff; text-shadow: 0 2px 8px #000; }
.nyev__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; margin-top: -46px; position: relative; z-index: 1; padding: 0 2px; }
.nycase { display: grid; justify-items: center; gap: 6px; padding: 0 0 4px; text-decoration: none; color: #fff; background: none; border: 0; box-shadow: none; }
.nycase::before, .nycase::after { display: none; }
.nycase__art { position: relative; display: block; width: 100%; aspect-ratio: 1; }
.nycase__art::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 4%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 70%, transparent), transparent); filter: blur(6px); }
.nycase__art img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 16px rgb(0 0 0 / 0.550)); transition: transform 0.250s; animation: nycase-float 5s ease-in-out infinite; animation-delay: var(--dl); }
@keyframes nycase-float { 50% { transform: translateY(-6px); } }
.nycase:hover .nycase__art img { transform: scale(1.050) rotate(-2deg); animation-play-state: paused; }
.nycase__name { font: 900 17px/1.100 var(--font-title); text-shadow: 0 2px 6px rgb(0 0 0 / 0.600); }
.nycase__price { padding: 7px 16px; border-radius: 99px; font: 900 16px/1 var(--font-title); color: #fff; background: rgb(8 10 30 / 0.700);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 80%, #fff), 0 0 18px -6px var(--c); }
@media (min-width: 720px) {
  .nyev__ban { min-height: 340px; padding-top: 20px; }
  .nyev__logo { width: min(400px, 60%); }
  .nyev__timer span { min-width: 76px; } .nyev__timer b { font-size: 30px; }
  .nyev__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; padding: 0 12px; }
}
@media (min-width: 1100px) { .nyev__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .nyev__logo, .nycase__art img { animation: none; } }
.gbadge--prize { display: inline-grid; place-items: center; padding: 3px 8px; border-radius: 8px; font: 900 11px/1 var(--font-title); letter-spacing: 0.060em; color: #3a2400; background: linear-gradient(180deg, #ffe58a, #f2b100); box-shadow: 0 4px 10px -4px #f2b100; }
/* новогодний баннер v2: дневной зимний пейзаж — затемняем только низ, чтобы читались подпись и кейсы */
.nyev__ban::after { background: linear-gradient(180deg, transparent 0%, transparent 52%, rgb(8 12 30 / 0.450) 78%, rgb(8 12 30 / 0.850) 100%); }
.nyev__bg { object-position: center 58%; }
.nyev__timer span { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.500), inset 0 -3px 0 rgb(0 0 0 / 0.200), 0 8px 18px -6px rgb(10 30 80 / 0.700); }
/* таймер «жидкое стекло»: прозрачная капля с размытием фона, бликом сверху и светлой кромкой */
.nyev__timer { gap: 10px; padding: 8px; border-radius: 24px; background: rgb(255 255 255 / 0.080);
  -webkit-backdrop-filter: blur(6px) saturate(160%); backdrop-filter: blur(6px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.250), 0 12px 30px -14px rgb(5 20 60 / 0.600); }
.nyev__timer span { position: relative; overflow: hidden; min-width: 64px; padding: 10px 6px 8px; border-radius: 18px; isolation: isolate;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.380) 0%, rgb(255 255 255 / 0.120) 45%, rgb(160 220 255 / 0.180) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(190%) brightness(1.080); backdrop-filter: blur(16px) saturate(190%) brightness(1.080);
  box-shadow: inset 0 1.500px 0 rgb(255 255 255 / 0.850), inset 0 -1px 0 rgb(255 255 255 / 0.300), inset 0 0 0 1px rgb(255 255 255 / 0.350),
    inset 0 -10px 18px -10px rgb(120 200 255 / 0.450), 0 10px 22px -10px rgb(5 20 60 / 0.650); }
/* блик-капля сверху и мягкое преломление снизу */
.nyev__timer span::before { content: ""; position: absolute; left: 10%; right: 10%; top: 3px; height: 42%; z-index: -1; border-radius: 14px 14px 40% 40%;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.700), rgb(255 255 255 / 0)); opacity: 0.850; }
.nyev__timer span::after { content: ""; position: absolute; left: -30%; top: -60%; width: 60%; height: 220%; z-index: -1; transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.350), transparent); animation: nyev-glass 6s ease-in-out infinite; }
.nyev__timer span:nth-child(2)::after { animation-delay: 0.300s; } .nyev__timer span:nth-child(3)::after { animation-delay: 0.600s; } .nyev__timer span:nth-child(4)::after { animation-delay: 0.900s; }
@keyframes nyev-glass { 0%, 70% { left: -40%; } 100% { left: 140%; } }
.nyev__timer b { color: #fff; font-size: 26px; text-shadow: 0 1px 0 rgb(255 255 255 / 0.400), 0 2px 10px rgb(10 40 100 / 0.550); }
.nyev__timer small { color: rgb(255 255 255 / 0.920); font-weight: 800; text-shadow: 0 1px 6px rgb(10 40 100 / 0.600); }
@media (min-width: 720px) { .nyev__timer span { min-width: 80px; } .nyev__timer b { font-size: 32px; } }
@media (prefers-reduced-motion: reduce) { .nyev__timer span::after { animation: none; } }
.nyev { scroll-margin-top: 90px; }
/* серия-сцены (NEON BAY): картинка кейса — квадратная сцена во всю карточку, с неоновой рамкой цвета кейса */
.pcase--scene .pcase__art { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 18px; padding: 0;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 70%, transparent), 0 10px 24px -12px var(--c); }
.pcase--scene .pcase__art::before, .pcase--scene .pcase__art::after { display: none; }
.pcase--scene .pcase__img { width: 100%; height: 100%; object-fit: cover; transform: none; animation: none; filter: none; border-radius: 18px; transition: transform 0.350s; }
.pcase--scene:hover .pcase__img { transform: scale(1.060); }
@media (min-width: 1100px) { [data-series="neon-bay"] .series__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* серия с фоном-сценой (NEON BAY): закат с пальмами за всей серией, как у Midas */
.series--bg { position: relative; isolation: isolate; padding: 18px 10px 20px; border-radius: 28px; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.080), 0 20px 40px -24px #000; }
.series--bg::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--sbg) center top / cover no-repeat; }
.series--bg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 8 30 / 0.150) 0%, rgb(10 8 30 / 0.350) 30%, rgb(10 8 30 / 0.600) 100%); }
.series--bg .series__head { margin-bottom: 4px; }
.series--bg .pcase { background: none; box-shadow: none; }
.series--bg .pcase::before, .series--bg .pcase::after { display: none; }
.series--bg .pcase__name { text-shadow: 0 2px 8px rgb(0 0 0 / 0.800); }
.series--bg .pcase__img { filter: drop-shadow(0 12px 16px rgb(0 0 0 / 0.600)); }
@media (min-width: 720px) { .series--bg { padding: 24px 18px 26px; } .series--bg::before { background-size: cover; background-position: center 30%; } }
/* NEON BAY v2: сундуки «стоят» на фоне — неоновые подиумы, светлее небо, стеклянные плашки цены */
.series--bg::after { background: linear-gradient(180deg, rgb(20 8 40 / 0.050) 0%, rgb(20 8 40 / 0.150) 35%, rgb(12 6 30 / 0.550) 75%, rgb(10 6 26 / 0.800) 100%); }
.series--bg .series__logo { filter: drop-shadow(0 8px 18px rgb(0 0 0 / 0.600)); }
.series--bg .series__grid { gap: 18px 10px; }
.series--bg .pcase { padding: 0 2px 6px; overflow: visible; }
.series--bg .pcase__new { top: 2px; left: 4px; }
.series--bg .pcase__art { aspect-ratio: 1 / 1.020; }
/* подиум: светящийся неоновый круг под сундуком */
.series--bg .pcase__art::before { inset: auto 6% -2% 6%; height: 26%; border-radius: 50%; opacity: 1; filter: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 85%, #fff 0%) 0%, color-mix(in srgb, var(--c) 45%, transparent) 45%, transparent 75%); }
.series--bg .pcase__art::after { content: ""; display: block; position: absolute; left: 14%; right: 14%; bottom: 4%; height: 12%; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--c) 90%, #fff); box-shadow: 0 0 16px var(--c), inset 0 0 12px var(--c); background: rgb(0 0 0 / 0.350); }
.series--bg .pcase__img { position: relative; z-index: 1; height: 100%; filter: drop-shadow(0 14px 14px rgb(0 0 0 / 0.700)) drop-shadow(0 0 18px color-mix(in srgb, var(--c) 45%, transparent)); }
.series--bg .pcase:hover .pcase__img { scale: 1.060; }
.series--bg .pcase__name { margin-top: 2px; font-size: 18px; letter-spacing: 0.010em; text-shadow: 0 2px 0 rgb(0 0 0 / 0.500), 0 0 14px rgb(0 0 0 / 0.800); }
.series--bg .pcase__price { margin-top: 8px; padding: 8px 16px; border-radius: 99px; color: #fff;
  background: rgb(255 255 255 / 0.140); -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.550), inset 0 0 0 1.500px color-mix(in srgb, var(--c) 80%, #fff), 0 6px 16px -6px var(--c); }
.series--bg .pcase:hover .pcase__price { background: var(--c); color: #120a20; }
@media (min-width: 720px) { .series--bg .pcase__name { font-size: 19px; } .series--bg .series__grid { gap: 22px 14px; } }
.series--bg .pcase { height: 100%; } .series--bg .pcase__name { margin-top: auto; padding-top: 2px; } .series--bg .pcase__art { flex: 0 0 auto; }
/* NEON BAY: размер фона как у Midas — на телефоне во всю ширину экрана (без отступов), радиус 34px,
   картинка по ширине сверху (100% auto), сверху место под логотип; на ПК — во всю ширину контента */
.series--bg { border-radius: 34px; padding: 22px 12px 26px; background: #140a26; }
.series--bg::before { background: var(--sbg) 50% 0 / 100% auto no-repeat; }
.series--bg::after { background: linear-gradient(180deg, transparent 0%, transparent 45%, rgb(20 10 38 / 0.550) 75%, #140a26 100%); }
@media (max-width: 719px) { .series--bg { margin-inline: -16px; border-radius: 34px; padding-inline: 16px; } }
@media (min-width: 720px) {
  .series--bg { padding: 40px 26px 34px; min-height: 560px; }
  .series--bg::before { background-size: cover; background-position: 50% 42%; }
  .series--bg::after { background: linear-gradient(180deg, transparent 0%, transparent 50%, rgb(20 10 38 / 0.600) 82%, #140a26 100%); }
}
