/* newyear_atmmix 2.0 — ny.css: глобальные эффекты на всех страницах (снег, гирлянда, подарок, модалки, тосты, отсчёт, снеговик). */
:root {
  --ny-acc: #ffac1c;
  --ny-acc2: #ff8a00;
  --ny-ice: #7fd8ff;
  --ny-bg: #0c0d10;
  --ny-s1: #15171c;
  --ny-s2: #1b1e24;
  --ny-line: #262a33;
  --ny-text: #f1f1ee;
  --ny-text2: #b9bcc6;
  --ny-muted: #868b98;
  --ny-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ny-head: "Inter", system-ui, sans-serif;
  --ny-font: "Golos Text", "Inter", system-ui, sans-serif;
}

/* ---------- холсты ---------- */
.ny-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
/* 5.0: слой снежных шапок прокручивается вместе со страницей (не отстаёт при скролле) */
html.ny-has-caps { position: relative; }
.ny-caps-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 40;
  contain: layout paint;
}
.ny-canvas--caps {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
}
html.ny-snow-grab,
html.ny-snow-grab * {
  cursor: grab !important;
}
html.ny-snow-grabbing,
html.ny-snow-grabbing * {
  cursor: grabbing !important;
  user-select: none !important;
}
html.ny-modal-open {
  overflow: hidden;
}

/* ---------- гирлянда 5.1: одна живая гирлянда ATMMIX.RU ---------- */
/* z-index ниже шапки сайта (.ac-header = 50), выпадающих меню и модалок — гирлянда никогда их не перекрывает */
.ny-garland {
  position: fixed;
  left: 0;
  top: 0;
  height: 90px;
  pointer-events: none;
  z-index: 45;
  transition: opacity 0.3s;
  will-change: transform;
  contain: layout style;
}
.nyg-wire { position: absolute; left: 0; top: 0; overflow: visible; }
.nyg-wire path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nyg-wire__shadow { stroke: rgba(0, 0, 0, 0.55); stroke-width: 4; transform: translateY(2px); filter: blur(1.5px); }
.nyg-wire__a { stroke: #1d2b20; stroke-width: 2.4; }
.nyg-wire__b { stroke: #34493a; stroke-width: 1.3; opacity: 0.9; }
.nyg--neon .nyg-wire__a { stroke: #23262f; } .nyg--neon .nyg-wire__b { stroke: #3a3f4c; }
.nyg-items { position: absolute; inset: 0; }

/* лампочка C9: цоколь + стеклянная колба + ореол, который ложится на сайт */
.nyg-bulb {
  position: absolute;
  width: 0; height: 0;
  transform: rotate(var(--rot));
  transform-origin: 0 0;
}
.nyg-bulb::before { /* цоколь */
  content: "";
  position: absolute;
  left: -3.5px; top: -1px;
  width: 7px; height: 7px;
  border-radius: 1.5px 1.5px 2px 2px;
  background: linear-gradient(90deg, #2c3a2e, #5d7462 45%, #22302a);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.5);
}
.nyg-bulb b { /* колба */
  position: absolute;
  left: -6px; top: 5px;
  width: 12px; height: 19px;
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
  background:
    radial-gradient(ellipse 30% 22% at 34% 26%, rgba(255,255,255,.95), rgba(255,255,255,0) 70%),
    radial-gradient(ellipse at 50% 62%, #fff 0 8%, color-mix(in srgb, var(--c) 55%, #fff) 26%, var(--c) 58%, color-mix(in srgb, var(--c) 55%, #000) 100%);
  box-shadow:
    0 0 6px 1px color-mix(in srgb, var(--c) 90%, transparent),
    0 0 18px 5px color-mix(in srgb, var(--c) 55%, transparent),
    0 6px 34px 10px color-mix(in srgb, var(--c) 22%, transparent),
    inset -2px -3px 4px rgba(0,0,0,.25);
  animation: nyg-twinkle 2.6s ease-in-out infinite;
  animation-delay: calc(var(--r) * -2.6s);
}
.nyg--classic .nyg-bulb b { width: 10px; height: 15px; left: -5px; }
.nyg--neon .nyg-bulb b { width: 5px; left: -2.5px; height: 18px; border-radius: 3px; background: #fff;
  box-shadow: 0 0 4px 1px var(--c), 0 0 12px 3px var(--c), 0 0 28px 8px color-mix(in srgb, var(--c) 60%, transparent); }

/* режимы */
.nyg--wave .nyg-bulb b { animation: nyg-wave 3.2s ease-in-out infinite; animation-delay: calc(var(--w) * 1.4s); }
.nyg--chase .nyg-bulb b { animation: nyg-chase 1.8s linear infinite; animation-delay: calc(var(--i) * -0.12s); }

/* буквы ATMMIX.RU: висят на том же проводе, каждая в стеклянном шаре */
.nyg-letter {
  position: absolute;
  width: 0; height: 0;
  transform-origin: 0 0;
  animation: nyg-sway 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.55s);
}
.nyg-letter__cord { position: absolute; left: -0.75px; top: 0; width: 1.5px; height: var(--drop); background: linear-gradient(#2a3a2d, #4a5f4f); }
.nyg-letter__cap {
  position: absolute; left: -5px; top: var(--drop);
  width: 10px; height: 6px; border-radius: 2px 2px 1px 1px;
  background: linear-gradient(90deg, #8a6a2a, #f3d27a 45%, #8a6a2a);
}
.nyg-letter__glass {
  position: absolute;
  left: -17px; top: calc(var(--drop) + 4px);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), rgba(255,255,255,0) 32%),
    radial-gradient(circle at 50% 55%, rgba(255,190,80,.38), rgba(255,140,0,.16) 55%, rgba(20,14,6,.55) 100%);
  border: 1px solid rgba(255, 210, 140, .45);
  box-shadow:
    0 0 10px 1px rgba(255,172,28,.55),
    0 0 26px 6px rgba(255,140,0,.32),
    0 8px 44px 14px rgba(255,140,0,.16),
    inset 0 -4px 8px rgba(0,0,0,.35),
    inset 0 2px 3px rgba(255,255,255,.25);
  animation: nyg-letter 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.18s);
}
.nyg-letter__glass b {
  font: italic 900 19px/1 var(--ny-head, Inter), Inter, system-ui, sans-serif;
  color: #fff4dc;
  text-shadow: 0 0 4px #fff, 0 0 10px #ffc04a, 0 0 22px #ff9a1c, 0 0 36px rgba(255,138,0,.8);
  transform: translateY(1px);
}
.nyg-letter.is-dot .nyg-letter__glass { width: 22px; height: 22px; left: -11px; }
.nyg-letter.is-dot .nyg-letter__glass b { font-size: 16px; transform: translateY(-3px); }

@keyframes nyg-twinkle {
  0%, 100% { opacity: 1; filter: brightness(1.15) saturate(1.1); }
  45% { opacity: .55; filter: brightness(.7); }
}
@keyframes nyg-wave {
  0%, 100% { opacity: .5; filter: brightness(.7) saturate(.9); }
  35% { opacity: 1; filter: brightness(1.35) saturate(1.2); }
}
@keyframes nyg-chase {
  0%, 100% { opacity: .35; filter: brightness(.55); }
  12%, 30% { opacity: 1; filter: brightness(1.35); }
}
/* буквы: загораются по очереди, затем все вместе вспыхивают */
@keyframes nyg-letter {
  0% { filter: brightness(.55) saturate(.7); }
  12%, 62% { filter: brightness(1.1) saturate(1.1); }
  72% { filter: brightness(1.7) saturate(1.3); }
  80%, 100% { filter: brightness(1) saturate(1); }
}
@keyframes nyg-sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
@media (max-width: 700px) {
  .nyg-letter__glass { width: 26px; height: 26px; left: -13px; }
  .nyg-letter__glass b { font-size: 14px; }
  .nyg-letter.is-dot .nyg-letter__glass { width: 16px; height: 16px; left: -8px; }
  .nyg-bulb b { width: 9px; height: 14px; left: -4.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .nyg-bulb b, .nyg-letter, .nyg-letter__glass { animation: none !important; }
}

/* ---------- кнопки / общие ---------- */
.ny-kicker {
  display: inline-block;
  font: 800 11px/1.2 var(--ny-head);
  letter-spacing: 0.14em;
  color: var(--ny-acc2);
  text-transform: uppercase;
}
.ny-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ny-text);
  font: 700 14px/1 var(--ny-font);
  cursor: pointer;
  transition:
    transform 0.15s var(--ny-ease),
    filter 0.15s,
    background 0.15s;
}
.ny-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.ny-btn i {
  font-size: 18px;
}
.ny-btn--hot {
  background: linear-gradient(135deg, var(--ny-acc), var(--ny-acc2));
  border-color: transparent;
  color: #141414;
  box-shadow: 0 10px 30px rgba(255, 138, 0, 0.4);
}
.ny-btn--ghost {
  background: transparent;
}
.ny-round {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.15s;
}
.ny-round:hover {
  background: rgba(255, 255, 255, 0.14);
}
.ny-round--hot {
  background: linear-gradient(135deg, var(--ny-acc), var(--ny-acc2));
  color: #141414;
  border: 0;
  box-shadow: 0 6px 20px rgba(255, 138, 0, 0.45);
}

/* ---------- тосты ---------- */
.ny-toasts {
  /* 3.0: тосты по центру сверху, сразу под хедером (top считает ny-ui.js по высоте хедера) */
  position: fixed;
  left: 50%;
  top: var(--ny-toast-top, 76px);
  transform: translateX(-50%);
  align-items: center;
  z-index: 9700;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(440px, calc(100vw - 24px));
  pointer-events: none;
}
.ny-toast {
  pointer-events: auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  background: rgba(21, 23, 28, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ny-line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  color: var(--ny-text);
  font: 14px/1.4 var(--ny-font);
  width: 100%;
  transform: translateY(-16px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.35s var(--ny-ease),
    opacity 0.35s;
  position: relative;
  overflow: hidden;
}
.ny-toast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ny-acc2);
}
.ny-toast.is-in {
  transform: none;
  opacity: 1;
}
.ny-toast.is-out {
  transform: translateY(-16px) scale(0.96);
  opacity: 0;
}
.ny-toast > i {
  font-size: 22px;
  color: var(--ny-acc);
  margin-top: 1px;
}
.ny-toast > div {
  flex: 1;
  min-width: 0;
}
.ny-toast b {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}
.ny-toast span {
  color: var(--ny-text2);
  font-size: 13px;
}
.ny-toast a {
  align-self: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 172, 28, 0.14);
  color: var(--ny-acc);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.ny-toast button {
  background: none;
  border: 0;
  color: var(--ny-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.ny-toast--ok::before {
  background: #3ddc84;
}
.ny-toast--ok > i {
  color: #3ddc84;
}
.ny-toast--error::before {
  background: #ff4d5e;
}
.ny-toast--error > i {
  color: #ff4d5e;
}

/* ---------- модалки ---------- */
.ny-modal {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s;
  font-family: var(--ny-font);
  color: var(--ny-text);
}
.ny-modal.is-in {
  opacity: 1;
}
.ny-modal.is-out {
  opacity: 0;
}
.ny-modal__back {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.62);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px);
}
.ny-modal__card {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 26px;
  background: #121419;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 138, 0, 0.08);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.45s var(--ny-ease);
}
.ny-modal.is-in .ny-modal__card {
  transform: none;
}
.ny-modal__x {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 12, 16, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}
.ny-modal__x:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.12);
}

/* модалка запуска (карусель) */
.ny-launch .ny-modal__card {
  overflow: hidden;
}
.ny-launch__stage {
  position: relative;
  height: clamp(260px, 52vh, 460px);
  overflow: hidden;
  background: #0b0d11;
}
.ny-launch__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(6%) scale(1.03);
  transition:
    opacity 0.6s var(--ny-ease),
    transform 0.8s var(--ny-ease);
}
.ny-launch__slide.is-prev {
  transform: translateX(-6%) scale(1.03);
}
.ny-launch__slide.is-active {
  opacity: 1;
  transform: none;
}
.ny-launch__bg {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(0.55) saturate(1.2);
}
.ny-launch__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ny-launch__img.is-contain {
  object-fit: contain;
  padding: 22px 22px 0;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}
.ny-launch__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 12, 16, 0) 35%,
      rgba(10, 12, 16, 0.55) 70%,
      #121419 100%
    ),
    radial-gradient(
      ellipse at 15% 100%,
      rgba(255, 138, 0, 0.18),
      transparent 55%
    );
}
.ny-launch__head {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 24px;
  z-index: 2;
}
.ny-launch__head span {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 138, 0, 0.18);
  border: 1px solid rgba(255, 138, 0, 0.45);
  color: var(--ny-acc);
  font: 800 11px/1 var(--ny-head);
  letter-spacing: 0.14em;
}
.ny-launch__head h2 {
  margin: 10px 0 4px;
  font: italic 900 clamp(30px, 5.4vw, 56px) / 0.95 var(--ny-head);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}
.ny-launch__head p {
  margin: 0;
  color: #e7e9ef;
  font-size: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.ny-launch__bar {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ny-launch__text {
  min-width: 0;
  flex: 1;
}
.ny-launch__text h3 {
  margin: 6px 0 4px;
  font: 800 20px/1.2 var(--ny-head);
}
.ny-launch__text p {
  margin: 0;
  color: var(--ny-text2);
  font-size: 14px;
  line-height: 1.5;
  min-height: 42px;
}
.ny-launch__ctrl {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  flex: none;
}
.ny-launch__dots {
  display: flex;
  gap: 6px;
}
.ny-launch__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  padding: 0;
  transition:
    width 0.35s var(--ny-ease),
    background 0.3s;
}
.ny-launch__dot.is-active {
  width: 28px;
  background: var(--ny-acc2);
  box-shadow: 0 0 10px rgba(255, 138, 0, 0.6);
}
.ny-launch__nav {
  display: flex;
  gap: 10px;
}

/* модалка подарка */
.ny-giftm .ny-modal__card {
  width: min(520px, 100%);
  text-align: center;
  padding: 34px 32px 30px;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(255, 138, 0, 0.28),
      transparent 60%
    ),
    #121419;
  overflow: visible;
}
.ny-giftm__burst {
  position: absolute;
  left: 50%;
  top: 100px;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  pointer-events: none;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 200, 90, 0.16) 0 8deg,
    transparent 8deg 20deg
  );
  mask: radial-gradient(circle, #000 20%, transparent 68%);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%);
  animation: ny-spin 18s linear infinite;
}
.ny-giftm__img {
  position: relative;
  width: 210px;
  margin: -100px auto 6px;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(255, 138, 0, 0.45));
  animation:
    ny-gift-pop 0.8s var(--ny-ease) both,
    ny-float 3.2s ease-in-out 0.8s infinite;
}
.ny-giftm__title {
  position: relative;
  margin: 8px 0 6px;
  font: italic 900 34px/1 var(--ny-head);
  text-transform: uppercase;
}
.ny-giftm__reward {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 14px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255, 172, 28, 0.12);
  border: 1px solid rgba(255, 172, 28, 0.4);
  font: 700 18px var(--ny-head);
  color: var(--ny-acc);
}
.ny-giftm__reward span {
  font: 900 38px/1 var(--ny-head);
  background: linear-gradient(
    180deg,
    #fff3c4,
    var(--ny-acc) 60%,
    var(--ny-acc2)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 172, 28, 0.5));
}
.ny-giftm__reward em {
  font-style: normal;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #7fd8ff;
  color: #0b1520;
  font-weight: 800;
}
.ny-giftm p {
  position: relative;
  color: var(--ny-text2);
  margin: 0 auto 22px;
  max-width: 420px;
  line-height: 1.55;
}
@keyframes ny-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ny-gift-pop {
  from {
    transform: scale(0.4) rotate(-12deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.08) rotate(4deg);
    opacity: 1;
  }
}
@keyframes ny-float {
  50% {
    transform: translateY(-10px) rotate(-2deg);
  }
}

/* панель настроек */
.ny-panel .ny-modal__card {
  width: min(720px, 100%);
  padding: 28px;
}
.ny-panel__title {
  margin: 6px 0 18px;
  font: italic 900 30px/1 var(--ny-head);
  text-transform: uppercase;
}
.ny-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.ny-panel__grid > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ny-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ny-line);
}
.ny-sw {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
}
.ny-sw input {
  position: absolute;
  opacity: 0;
}
.ny-sw span {
  width: 40px;
  height: 23px;
  border-radius: 999px;
  background: #313744;
  position: relative;
  flex: none;
  transition: background 0.2s;
}
.ny-sw span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #cfd2d9;
  transition: transform 0.25s var(--ny-ease);
}
.ny-sw input:checked + span {
  background: linear-gradient(90deg, var(--ny-acc2), var(--ny-acc));
}
.ny-sw input:checked + span::after {
  transform: translateX(17px);
  background: #fff;
}
.ny-sw input:focus-visible + span {
  outline: 2px solid var(--ny-acc);
  outline-offset: 2px;
}
.ny-rng,
.ny-sel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ny-text2);
}
.ny-rng span {
  display: flex;
  justify-content: space-between;
}
.ny-rng b {
  color: var(--ny-acc);
  font-variant-numeric: tabular-nums;
}
.ny-rng input {
  accent-color: var(--ny-acc2);
  width: 100%;
}
.ny-sel select {
  background: #0c0d10;
  border: 1px solid var(--ny-line);
  color: var(--ny-text);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
}

/* ---------- отсчёт (flip-часы) ---------- */
.ny-flip {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--ny-head);
}
.ny-flip__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ny-flip__unit small {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ny-muted);
  font-weight: 700;
}
.ny-flip__digits {
  display: flex;
  gap: 4px;
}
.ny-flip__card {
  position: relative;
  width: 44px;
  height: 60px;
  border-radius: 10px;
  perspective: 300px;
  background: linear-gradient(180deg, #23262e 0 49.5%, #15171c 50.5% 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.ny-flip__card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.6);
}
.ny-flip__card b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 800 36px/1 var(--ny-head);
  font-variant-numeric: tabular-nums;
  color: #fff4dc;
  text-shadow:
    0 0 10px rgba(255, 172, 28, 0.85),
    0 0 26px rgba(255, 138, 0, 0.55);
}
.ny-flip__card.is-flip b {
  animation: ny-flipin 0.45s var(--ny-ease);
}
@keyframes ny-flipin {
  0% {
    transform: rotateX(80deg);
    opacity: 0.2;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
.ny-flip__sep {
  font: 800 30px/60px var(--ny-head);
  color: var(--ny-acc);
  text-shadow: 0 0 12px var(--ny-acc2);
  animation: ny-blink 1s steps(2) infinite;
}
@keyframes ny-blink {
  50% {
    opacity: 0.3;
  }
}
.ny-flip.is-final .ny-flip__card b {
  color: #fff;
  text-shadow:
    0 0 14px #ff3b5c,
    0 0 30px #ff3b5c;
}
.ny-flip--compact {
  gap: 5px;
}
.ny-flip--compact .ny-flip__card {
  width: 26px;
  height: 34px;
  border-radius: 7px;
}
.ny-flip--compact .ny-flip__card b {
  font-size: 20px;
}
.ny-flip--compact .ny-flip__sep {
  font-size: 18px;
  line-height: 34px;
}
.ny-flip--compact .ny-flip__unit small {
  font-size: 9px;
}
.ny-cd-main {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  margin-bottom: var(--ac-gap, 20px);
  border-radius: var(--ac-r-lg, 16px);
  text-decoration: none;
  color: var(--ny-text);
  background:
    radial-gradient(ellipse at 0% 50%, rgba(255, 138, 0, 0.2), transparent 50%),
    linear-gradient(90deg, #1a1712, #14161b);
  border: 1px solid rgba(255, 172, 28, 0.28);
  transition: border-color 0.2s;
}
.ny-cd-main:hover {
  border-color: rgba(255, 172, 28, 0.6);
}
.ny-cd-main__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font: italic 900 18px/1 var(--ny-head);
  text-transform: uppercase;
}
.ny-cd-main__label i {
  font-size: 26px;
  color: #3ddc84;
  filter: drop-shadow(0 0 8px rgba(61, 220, 132, 0.6));
}
.ny-cd-main__go {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ny-acc);
  font-weight: 700;
}

/* ---------- подарок ---------- */
.ny-gift {
  position: absolute;
  z-index: 8800;
  width: 112px;
  height: 120px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  animation: ny-float 3s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.ny-gift img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 16px rgba(255, 172, 28, 0.5));
  transition: transform 0.25s var(--ny-ease);
}
.ny-gift:hover img {
  transform: scale(1.1) rotate(-4deg);
}
.ny-gift__glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 190, 80, 0.55),
    rgba(255, 138, 0, 0.15) 45%,
    transparent 70%
  );
  animation: ny-glow 2s ease-in-out infinite;
}
.ny-gift__rays {
  position: absolute;
  inset: -46px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    rgba(255, 220, 140, 0.25) 0 6deg,
    transparent 6deg 24deg
  );
  mask: radial-gradient(circle, #000 25%, transparent 70%);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%);
  animation: ny-spin 12s linear infinite;
}
.ny-gift__spark {
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  background:
    radial-gradient(circle, #fff 0 18%, transparent 20%),
    conic-gradient(
      from 45deg,
      transparent 0 10%,
      #fff7d0 12% 13%,
      transparent 15% 35%,
      #fff7d0 37% 38%,
      transparent 40% 60%,
      #fff7d0 62% 63%,
      transparent 65% 85%,
      #fff7d0 87% 88%,
      transparent 90%
    );
  animation: ny-sparkle 1.8s ease-in-out infinite;
}
.ny-gift__spark:nth-of-type(1) {
  left: -4px;
  top: 10px;
}
.ny-gift__spark:nth-of-type(2) {
  right: -2px;
  top: 24px;
  animation-delay: 0.5s;
}
.ny-gift__spark:nth-of-type(3) {
  left: 20px;
  bottom: -4px;
  animation-delay: 1s;
}
.ny-gift__spark:nth-of-type(4) {
  right: 18px;
  top: -6px;
  animation-delay: 1.3s;
}
.ny-gift__x2 {
  position: absolute;
  z-index: 4;
  right: -6px;
  top: -4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #7fd8ff;
  color: #08131d;
  font: 900 13px var(--ny-head);
  font-style: normal;
  box-shadow: 0 0 14px rgba(127, 216, 255, 0.7);
}
.ny-gift.is-opening {
  animation: ny-shake 0.4s linear infinite;
}
@keyframes ny-glow {
  50% {
    transform: scale(1.15);
    opacity: 0.7;
  }
}
@keyframes ny-sparkle {
  0%,
  100% {
    transform: scale(0) rotate(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(90deg);
    opacity: 1;
  }
}
@keyframes ny-shake {
  25% {
    transform: rotate(-6deg);
  }
  75% {
    transform: rotate(6deg);
  }
}

/* ---------- снеговик ---------- */
.ny-sm {
  position: fixed;
  bottom: 14px;
  left: 90px;
  z-index: 8700;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  font-family: var(--ny-font);
  color: var(--ny-text);
  pointer-events: none;
}
.ny-sm > * {
  pointer-events: auto;
}
.ny-sm__stage {
  position: relative;
  width: 92px;
  height: 132px;
}
.ny-sm__drift {
  position: absolute;
  left: -16px;
  right: -16px;
  bottom: 0;
  height: 18px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, #fff, #c9d7ef);
  box-shadow: 0 -2px 12px rgba(255, 255, 255, 0.25);
}
.ny-sm__ball {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  transform: translateX(-50%) scale(calc(0.25 + var(--f, 0) * 0.75));
  transform-origin: 50% 100%;
  opacity: 0.18;
  background: radial-gradient(circle at 35% 30%, #fff, #e6eefc 55%, #a9bfe0);
  box-shadow:
    inset -4px -6px 10px rgba(80, 110, 160, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.5s var(--ny-ease),
    opacity 0.4s;
}
.ny-sm__ball.is-on {
  opacity: 1;
}
.ny-sm__ball--0 {
  width: 64px;
  height: 60px;
  bottom: 8px;
}
.ny-sm__ball--1 {
  width: 48px;
  height: 46px;
  bottom: 60px;
}
.ny-sm__ball--2 {
  width: 36px;
  height: 34px;
  bottom: 100px;
}
.ny-sm__face {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  background:
    radial-gradient(circle at 34% 40%, #1a1a1a 0 2.4px, transparent 3px),
    radial-gradient(circle at 66% 40%, #1a1a1a 0 2.4px, transparent 3px);
}
.ny-sm__face::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 14px;
  height: 5px;
  background: linear-gradient(90deg, #ff8a00, #ffb347);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.ny-sm__ball--2.is-full .ny-sm__face {
  opacity: 1;
}
.ny-sm__hat {
  position: absolute;
  left: 50%;
  bottom: 128px;
  width: 28px;
  height: 18px;
  margin-left: -14px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #2a2a2a, #111);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s var(--ny-ease);
}
.ny-sm__hat::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: -3px;
  height: 5px;
  border-radius: 3px;
  background: #111;
}
.ny-sm.is-done .ny-sm__hat {
  opacity: 1;
  transform: none;
}
.ny-sm.is-celebrate .ny-sm__stage {
  animation: ny-jump 0.6s ease 3;
}
@keyframes ny-jump {
  40% {
    transform: translateY(-14px) rotate(-4deg);
  }
  70% {
    transform: translateY(0) rotate(3deg);
  }
}
.ny-sm__info {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(21, 23, 28, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid var(--ny-line);
  margin-bottom: 8px;
  cursor: help;
  line-height: 1.25;
}
.ny-sm__info b {
  display: block;
  font: 800 12px var(--ny-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ny-sm__info span {
  display: block;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.ny-sm__info small {
  color: var(--ny-acc);
  font-size: 11px;
}
.ny-sm__gear {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  border: 1px solid var(--ny-line);
  background: rgba(21, 23, 28, 0.86);
  color: var(--ny-text2);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.3s;
}
.ny-sm__gear:hover {
  transform: rotate(60deg);
  color: var(--ny-acc);
}

/* ---------- фонарики ---------- */
.ny-lantern {
  display: inline-block;
  width: 22px;
  height: 30px;
  border-radius: 40% 40% 30% 30% / 35% 35% 25% 25%;
  flex: none;
  background: radial-gradient(
    ellipse at 50% 75%,
    #fff4c0 0 15%,
    #ffcf5a 35%,
    #ff8a00 75%,
    #c2410c
  );
  box-shadow:
    0 0 14px 3px rgba(255, 170, 60, 0.6),
    0 0 40px 8px rgba(255, 138, 0, 0.25);
  animation: ny-flicker 2.4s ease-in-out infinite;
}
@keyframes ny-flicker {
  50% {
    filter: brightness(1.2);
    box-shadow:
      0 0 18px 5px rgba(255, 170, 60, 0.75),
      0 0 50px 12px rgba(255, 138, 0, 0.3);
  }
}
.ny-rise {
  position: fixed;
  inset: 0;
  z-index: 9050;
  pointer-events: none;
  overflow: hidden;
}
.ny-rise__l {
  position: absolute;
  bottom: -80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: ny-rise linear both;
  max-width: 180px;
}
.ny-rise__l span {
  padding: 4px 9px;
  border-radius: 10px;
  background: rgba(10, 12, 16, 0.6);
  backdrop-filter: blur(4px);
  color: #ffe7bd;
  font: 12px/1.3 var(--ny-font);
  text-align: center;
}
.ny-rise__l b {
  display: block;
  color: var(--ny-acc);
  font-size: 11px;
}
@keyframes ny-rise {
  from {
    transform: translate(0, 0) scale(0.8);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  50% {
    transform: translate(var(--sway), -55vh) scale(1);
  }
  90% {
    opacity: 1;
  }
  to {
    transform: translate(0, -115vh) scale(0.6);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .ny-launch__bar {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 22px;
  }
  .ny-launch__ctrl {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .ny-launch__head {
    left: 20px;
    right: 20px;
  }
  .ny-panel__grid {
    grid-template-columns: 1fr;
  }
  .ny-flip__card {
    width: 34px;
    height: 48px;
  }
  .ny-flip__card b {
    font-size: 28px;
  }
  .ny-flip__sep {
    line-height: 48px;
    font-size: 24px;
  }
  .ny-sm {
    left: 8px !important;
    bottom: 70px;
    transform: scale(0.8);
    transform-origin: 0 100%;
  }
  .ny-sm__info {
    display: none;
  }
  .ny-cd-main {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ny-bulb,
  .ny-gift,
  .ny-gift__rays,
  .ny-gift__glow,
  .ny-gift__spark,
  .ny-giftm__burst,
  .ny-giftm__img,
  .ny-lantern,
  .ny-flip__sep {
    animation: none !important;
  }
  .ny-launch__slide {
    transition: opacity 0.2s;
    transform: none !important;
  }
}

/* 7.0: кнопка «Получить PRIME» на слайде PRIME-ивента в окне запуска */
.ny-launch__prime { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; text-decoration: none; }
.ny-launch__prime[hidden] { display: none; }
