/* Раздел «home»: главная (живая лента, бесплатный кейс, карточки разделов) и экран «Мини-игры».
   Префикс классов — hm-. */

.hm-hide { display: none !important; }

/* ===================== Живая лента ===================== */
.hm-live-sec { position: relative; z-index: 6; margin: 2px 0 14px; }

.hm-live {
  position: relative;
  display: flex;
  height: 90px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(58, 37, 118, 0.55), rgba(16, 10, 36, 0.72));
  border: 1px solid var(--stroke);
  box-shadow: var(--sh-1), var(--hl);
}
.hm-live-tab {
  position: relative;
  z-index: 2;
  flex: none;
  width: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 21px 0 0 21px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.hm-live-tab span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 12.5px/1 var(--font); letter-spacing: 0.02em; white-space: nowrap; }
.hm-live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px rgba(61, 245, 194, 0.8); animation: ping 1.8s ease-out infinite; }
.hm-live.prizes .hm-live-dot { background: var(--gold); box-shadow: 0 0 8px rgba(255, 197, 61, 0.8); animation: none; }
.hm-live-vp {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 0 21px 21px 0;
  touch-action: pan-y;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 26px), transparent 100%);
}
.hm-live.drag .hm-live-vp { cursor: grabbing; }
.hm-live-track { position: absolute; top: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: 8px; will-change: transform; }
.hm-live-empty { padding: 0 20px; font-size: 13px; font-weight: 700; color: var(--text-3); white-space: nowrap; }

/* Фишки ленты: ширина 64px + промежуток 8px (STEP в home.js) */
.hm-chip {
  position: relative;
  flex: none;
  width: 64px;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(var(--rc), 0.24) 0%, rgba(20, 12, 44, 0.72) 82%);
  border: 1px solid rgba(var(--rc), 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-user-select: none;
  user-select: none;
}
.hm-chip .art { width: 42px; height: 42px; font-size: 42px; }
.hm-chip-v { display: inline-flex; align-items: center; gap: 2px; font: 800 11px/1 var(--font); font-variant-numeric: tabular-nums; }
.hm-chip-v .st { width: 11px; height: 11px; }
.hm-chip.me { border-color: rgba(255, 197, 61, 0.75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 12px rgba(255, 197, 61, 0.25); }
.hm-chip-win { --rc: var(--gc); }
.hm-chip-game { position: relative; width: 42px; height: 42px; display: grid; place-items: center; }
.hm-chip-game::before { content: ''; position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--gc), 0.55), transparent 68%); }
.hm-chip-game img { position: relative; width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.45)); }
.hm-chip-x {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  padding: 2px 4px;
  border-radius: 6px;
  font: 800 9px/1 var(--font);
  font-variant-numeric: tabular-nums;
  color: rgb(var(--gc));
  background: rgba(8, 5, 20, 0.78);
}
.hm-chip.fresh { animation: hmFresh 1.7s var(--ease); }
.hm-chip.skel {
  border-color: transparent;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.11) 50%, rgba(255, 255, 255, 0.04) 100%);
  background-size: 200% 100%;
}
.hm-live-track .hm-chip.skel:first-child { margin-left: 14px; }

/* Подсказка «кто что выиграл» */
.hm-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 8px;
  z-index: 20;
  width: min(310px, calc(100% - 16px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 9px;
  border-radius: 18px;
  background: rgba(32, 20, 66, 0.96);
  border: 1px solid var(--stroke-2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.95);
  transform-origin: var(--ax, 50%) 0;
  transition: opacity 0.2s var(--ease), transform 0.4s var(--spring), visibility 0s 0.2s;
}
.hm-pop.show { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s var(--ease), transform 0.4s var(--spring), visibility 0s; }
.hm-pop::before {
  content: '';
  position: absolute;
  top: -7px;
  left: var(--ax, 50%);
  width: 12px;
  height: 12px;
  margin-left: -6px;
  transform: rotate(45deg);
  border-radius: 3px 0 0 0;
  background: rgba(32, 20, 66, 0.98);
  border-left: 1px solid var(--stroke-2);
  border-top: 1px solid var(--stroke-2);
}
.hm-pop.link { cursor: pointer; }
.hm-pop.link:active { transform: scale(0.97); }
.hm-pop-art { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; }
.hm-pop-art .art { width: 40px; height: 40px; font-size: 40px; }
.hm-pop-game::before { content: ''; position: absolute; inset: 2%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--gc), 0.55), transparent 68%); }
.hm-pop-game img { position: relative; width: 34px; height: 34px; object-fit: contain; }
.hm-pop-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.hm-pop-txt > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-pop-txt b { font-size: 13px; color: var(--text); }
.hm-pop-ago { font-weight: 700; color: var(--text-3); }
.hm-pop-txt b.hm-pop-rar { color: rgb(var(--rc)); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.hm-pop-v { flex: none; display: inline-flex; align-items: center; gap: 3px; font: 800 13px var(--font); font-variant-numeric: tabular-nums; }
.hm-pop-v .st { width: 14px; height: 14px; }
.hm-pop > .ico { flex: none; color: var(--text-3); }
.hm-pop > .ico svg { width: 16px; height: 16px; }

/* ===================== Баннеры: бесплатный кейс и билет ===================== */
.hm-banners { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.hm-banners:empty { display: none; }
.hm-banner-skel { height: 80px; border-radius: 22px; }
.hm-free {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 10px 12px 13px 10px;
  border-radius: 22px;
  color: var(--text);
  background: linear-gradient(115deg, rgba(var(--cc), 0.3) 0%, rgba(var(--cc), 0.08) 46%, rgba(18, 11, 40, 0.8) 100%), rgba(18, 11, 40, 0.5);
  border: 1px solid rgba(var(--cc), 0.34);
  box-shadow: 0 12px 30px rgba(var(--cc), 0.12), var(--hl);
  transition: transform 0.3s var(--spring);
  animation: fadeUp 0.5s var(--ease) both;
}
.hm-free:active { transform: scale(0.975); }
.hm-free-art { position: relative; width: 58px; height: 58px; flex: none; display: grid; place-items: center; }
.hm-free-halo { position: absolute; inset: -8px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--cc), 0.55), transparent 66%); animation: glow 2.8s ease-in-out infinite; }
.hm-free-gift { position: relative; width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)); animation: floaty 3.4s ease-in-out infinite; }
.hm-free.ready .hm-free-gift { animation: hmGiftShake 2.8s var(--ease) infinite; }
.hm-free-art .hm-sp.s1 { left: 2px; top: 6px; width: 4px; height: 4px; }
.hm-free-art .hm-sp.s2 { right: 0; bottom: 8px; width: 3px; height: 3px; animation-delay: 1.2s; }
.hm-free-txt { flex: 1; min-width: 0; }
.hm-free-t { font: 800 13px/1.15 var(--font-d); text-transform: uppercase; letter-spacing: 0.01em; }
.hm-free-s { margin-top: 5px; font-size: 12px; font-weight: 700; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-free-cta {
  position: relative;
  overflow: hidden;
  flex: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 88px;
  height: 46px;
  padding: 0 12px;
  border-radius: 15px;
  background: rgba(8, 5, 20, 0.55);
  border: 1px solid var(--stroke-2);
  font: 800 14px/1.1 var(--font);
  font-variant-numeric: tabular-nums;
}
.hm-free-cta small { font-size: 9px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.hm-free.ready .hm-free-cta {
  flex-direction: row;
  gap: 2px;
  color: #3b2200;
  background: var(--grad-gold);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(255, 159, 28, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.hm-free.ready .hm-free-cta .ico svg { width: 16px; height: 16px; stroke-width: 2.6; }
.hm-free.ready .hm-free-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: shine 3.6s var(--ease) infinite;
}
.hm-free-track { position: absolute; left: 16px; right: 16px; bottom: 6px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.hm-free-bar { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(var(--cc), 0.5), rgb(var(--cc))); transform: scaleX(0); transform-origin: left; transition: transform 1s linear; }
.hm-free.ready .hm-free-track { display: none; }
.hm-ticket { padding-bottom: 10px; }

/* ===================== Карточки разделов ===================== */
.hm-cards { display: flex; flex-direction: column; gap: 12px; }
.hm-card {
  position: relative;
  display: block;
  min-height: 134px;
  padding: 16px;
  border-radius: 26px;
  isolation: isolate;
  color: var(--text);
  background: linear-gradient(130deg, rgba(var(--hc), 0.52) 0%, rgba(var(--hc), 0.16) 44%, rgba(19, 12, 42, 0.9) 100%), #120b2a;
  border: 1px solid rgba(var(--hc), 0.4);
  box-shadow: 0 16px 36px rgba(var(--hc), 0.15), 0 10px 26px rgba(4, 1, 16, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.13);
  transition: transform 0.35s var(--spring), box-shadow var(--t) var(--ease);
  -webkit-user-select: none;
  user-select: none;
}
a.hm-card:active { transform: scale(0.975); }
.hm-card-bg { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; }
.hm-blob { position: absolute; border-radius: 50%; will-change: transform; }
.hm-blob.b1 { width: 78%; aspect-ratio: 1; right: -24%; top: -58%; background: radial-gradient(closest-side, rgba(var(--hc), 0.62), transparent); animation: hmBlobA 9s ease-in-out infinite alternate; }
.hm-blob.b2 { width: 58%; aspect-ratio: 1; left: -22%; bottom: -66%; background: radial-gradient(closest-side, rgba(var(--hc), 0.4), transparent); animation: hmBlobB 11s ease-in-out infinite alternate; }
.hm-card-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-130%) skewX(-18deg);
  animation: hmShine 7.5s var(--ease) infinite;
}
.hm-card:nth-child(2) .hm-card-shine { animation-delay: 1.8s; }
.hm-card:nth-child(3) .hm-card-shine { animation-delay: 3.6s; }
.hm-card:nth-child(4) .hm-card-shine { animation-delay: 5.4s; }
.hm-sp { position: absolute; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.75); animation: twinkle 2.6s ease-in-out infinite; pointer-events: none; }

.hm-card-txt { position: relative; z-index: 2; max-width: 60%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hm-card-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font: 800 clamp(19px, 6.2vw, 24px) / 1.05 var(--font-d);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(var(--hc), 0.5);
}
.hm-card-title > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.hm-card-sub { font-size: 12px; font-weight: 700; line-height: 1.35; color: rgba(246, 243, 255, 0.74); }
.hm-card-art { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; z-index: 1; pointer-events: none; }
.hm-card-go {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: none;
  transition: transform 0.35s var(--spring), background var(--t);
}
.hm-card-go svg { width: 14px; height: 14px; stroke-width: 2.8; }
a.hm-card:active .hm-card-go { transform: translateX(4px); background: rgba(255, 255, 255, 0.24); }
.hm-card.off { filter: grayscale(0.9) brightness(0.72); }

/* Бейджи */
.hm-b { height: 23px; padding: 0 9px; gap: 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.hm-b .ico svg { width: 12px; height: 12px; stroke-width: 2.4; }
.hm-b .st { width: 13px; height: 13px; }
.hm-b-gold { color: #3b2200; background: var(--grad-gold); border-color: transparent; box-shadow: 0 4px 12px rgba(255, 159, 28, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.hm-b-cyan { color: #032a33; background: linear-gradient(135deg, #a6f6ff, #2fd9f5); border-color: transparent; box-shadow: 0 4px 12px rgba(47, 217, 245, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.hm-b-orange { color: #3a1200; background: linear-gradient(135deg, #ffd0a3, #ff7a45); border-color: transparent; box-shadow: 0 4px 12px rgba(255, 106, 61, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.hm-b-pink { color: #3a0016; background: linear-gradient(135deg, #ffc2d3, #ff5a7e); border-color: transparent; box-shadow: 0 4px 12px rgba(255, 77, 109, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.hm-b-pink .st { filter: drop-shadow(0 1px 2px rgba(120, 0, 30, 0.35)); }
.hm-b-live { color: #fff; background: rgba(8, 5, 20, 0.55); border-color: rgba(255, 255, 255, 0.14); text-transform: none; letter-spacing: 0; animation: popIn 0.5s var(--spring) both; }
.hm-b-live .live-dot { width: 6px; height: 6px; }
.hm-b-off { color: var(--text-2); background: rgba(8, 5, 20, 0.55); }
.hm-b-rtp { color: var(--mint); background: rgba(61, 245, 194, 0.12); border-color: rgba(61, 245, 194, 0.32); text-transform: none; letter-spacing: 0.02em; }

/* --- Арт карточек: парящие 3D-иконки --- */
.hm-art { position: absolute; inset: 0; }
/* Сгенерированная картинка раздела (прозрачный фон) */
.hm-pic {
  position: absolute;
  right: 2px;
  top: 50%;
  width: 146px;
  height: 146px;
  margin-top: -73px;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.45));
  animation: hmFloat 4.4s ease-in-out infinite;
  --r0: -3deg;
  --r1: 3deg;
  -webkit-user-drag: none;
}
.hm-art-pic .hm-halo { left: auto; right: 9px; width: 132px; height: 132px; margin: -66px 0 0; }
.hm-pic-mini .hm-pic { animation-delay: -2.4s; }
.hm-pic-pvp .hm-pic { --r0: 4deg; --r1: -4deg; animation-delay: -3.3s; }
.hm-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 128px;
  height: 128px;
  margin: -64px 0 0 -64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--hc), 0.6) 0%, rgba(var(--hc), 0.12) 50%, transparent 70%);
  animation: glow 3.2s ease-in-out infinite;
}
.hm-fl { position: absolute; }
.hm-fl img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
  animation: hmFloat var(--d, 4s) ease-in-out var(--dl, 0s) infinite;
}
/* Кейсы: подарок, коробка, корона, алмаз */
.hm-art-cases .c1 { width: 92px; height: 92px; right: 20px; top: 26px; z-index: 2; --d: 4.2s; --r0: -5deg; --r1: 3deg; }
.hm-art-cases .c2 { width: 58px; height: 58px; right: 94px; top: 16px; z-index: 1; --d: 5.2s; --dl: -1.4s; --r0: -14deg; --r1: -7deg; }
.hm-art-cases .c3 { width: 44px; height: 44px; right: 8px; top: 8px; z-index: 3; --d: 3.6s; --dl: -0.8s; --r0: 16deg; --r1: 7deg; }
.hm-art-cases .c4 { width: 34px; height: 34px; right: 104px; top: 84px; z-index: 3; --d: 3.2s; --dl: -2.1s; --r0: -8deg; --r1: 10deg; }
/* Мини-игры: ракета, слот, бомба, шар */
.hm-art-mini .m1 { width: 78px; height: 78px; right: 46px; top: 10px; z-index: 3; --d: 3.4s; --r0: -6deg; --r1: 5deg; }
.hm-art-mini .m2 { width: 56px; height: 56px; right: 6px; top: 60px; z-index: 2; --d: 4.6s; --dl: -1s; --r0: 6deg; --r1: -3deg; }
.hm-art-mini .m3 { width: 46px; height: 46px; right: 106px; top: 70px; z-index: 4; --d: 3.9s; --dl: -2s; --r0: -12deg; --r1: 6deg; }
.hm-art-mini .m4 { width: 34px; height: 34px; right: 120px; top: 16px; z-index: 1; --d: 3s; --dl: -0.5s; }
/* PvP: два кубика и «VS» */
.hm-art-pvp .p1 { width: 62px; height: 62px; right: 98px; top: 36px; z-index: 2; --d: 3.6s; --r0: -18deg; --r1: -8deg; }
.hm-art-pvp .p2 { width: 72px; height: 72px; right: 14px; top: 26px; z-index: 2; --d: 3.6s; --dl: -1.8s; --r0: 12deg; --r1: 22deg; }
.hm-vs {
  position: absolute;
  right: 70px;
  top: 50%;
  z-index: 3;
  padding: 6px 8px;
  border-radius: 12px;
  font: 800 17px/1 var(--font-d);
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--grad-red);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(255, 59, 107, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-50%);
  animation: hmVs 2.6s var(--ease) infinite;
}

/* ===================== Экран «Мини-игры» ===================== */
.hm-gh-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: -6px 2px 14px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.hm-gh-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--mint);
  background: rgba(61, 245, 194, 0.1);
  border: 1px solid rgba(61, 245, 194, 0.3);
  animation: popIn 0.5s var(--spring) both;
}
.hm-gh-now .live-dot { width: 6px; height: 6px; }
.hm-gh-now b { color: #fff; font-variant-numeric: tabular-nums; }
.hm-glist { display: flex; flex-direction: column; gap: 12px; }
.hm-g {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 14px 14px 14px 12px;
  border-radius: 24px;
  color: var(--text);
  /* Стекло без backdrop-filter: фон под карточками анимирован, размытие на каждом кадре дорого для телефонов */
  background: linear-gradient(118deg, rgba(var(--gc), 0.27) 0%, rgba(var(--gc), 0.07) 42%, rgba(17, 10, 38, 0.78) 100%);
  border: 1px solid rgba(var(--gc), 0.3);
  box-shadow: 0 12px 30px rgba(4, 1, 16, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: transform 0.35s var(--spring), border-color var(--t);
}
a.hm-g:active { transform: scale(0.975); }
.hm-g-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 36%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-130%) skewX(-18deg);
  animation: hmShine 8s var(--ease) infinite;
  animation-delay: var(--fdl, 0s);
  pointer-events: none;
}
.hm-g-art { position: relative; width: 80px; height: 80px; flex: none; display: grid; place-items: center; }
.hm-g-halo { position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--gc), 0.55), transparent 66%); animation: glow 3s ease-in-out infinite; }
.hm-g-art img {
  position: relative;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
  animation: hmFloat var(--fd, 3.8s) ease-in-out var(--fdl, 0s) infinite;
  --r0: -4deg;
  --r1: 4deg;
}
.hm-g-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hm-g-name { font: 800 17px/1.1 var(--font-d); text-transform: uppercase; letter-spacing: 0.01em; }
.hm-g-desc { font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--text-2); }
.hm-g-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.hm-g-go {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--stroke-2);
  transition: transform 0.35s var(--spring), color var(--t);
}
.hm-g-go svg { width: 16px; height: 16px; stroke-width: 2.5; }
a.hm-g:active .hm-g-go { transform: translateX(4px); color: #fff; }
.hm-g.off { filter: grayscale(1) brightness(0.72); opacity: 0.8; }
.hm-g.off .hm-g-art img, .hm-g.off .hm-g-halo { animation: none; }

/* ===================== Анимации ===================== */
@keyframes hmFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r0, 0deg)); }
  50% { transform: translateY(-9%) rotate(var(--r1, 0deg)); }
}
@keyframes hmFresh {
  0% { transform: scale(0.7); filter: brightness(1.7); }
  35% { transform: scale(1.08); box-shadow: 0 0 0 3px rgba(var(--rc), 0.55), 0 0 24px rgba(var(--rc), 0.7); }
  100% { transform: none; filter: none; }
}
@keyframes hmGiftShake {
  0%, 62%, 100% { transform: rotate(0) scale(1); }
  68% { transform: rotate(-9deg) scale(1.06); }
  74% { transform: rotate(8deg) scale(1.06); }
  80% { transform: rotate(-5deg) scale(1.03); }
  86% { transform: rotate(3deg); }
}
@keyframes hmBlobA { to { transform: translate(-16%, 20%) scale(1.15); } }
@keyframes hmBlobB { to { transform: translate(20%, -14%) scale(1.2); } }
@keyframes hmShine {
  0%, 72% { transform: translateX(-130%) skewX(-18deg); }
  100% { transform: translateX(330%) skewX(-18deg); }
}
@keyframes hmPtr { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-9deg); } }
@keyframes hmVs {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.08); }
}

@media (max-width: 370px) {
  .hm-card { padding: 14px; }
  .hm-card-txt { max-width: 62%; }
  .hm-card-art { transform: scale(0.88); transform-origin: right center; }
  .hm-free-cta { min-width: 78px; padding: 0 10px; }
  .hm-g-art { width: 68px; height: 68px; }
  .hm-g-art img { width: 62px; height: 62px; }
}

/* «Слоты»: автомат, в окнах которого крутятся подарки Telegram (окна — в % от картинки) */
.hm-slot { position: absolute; right: 0; top: 50%; width: 154px; height: 154px; margin-top: -77px; animation: hmFloat 4.6s ease-in-out infinite; --r0: -2deg; --r1: 2deg; }
.hm-slot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.45)); -webkit-user-drag: none; }
.hm-reel { position: absolute; top: 35.2%; width: 18.6%; height: 21.8%; overflow: hidden; border-radius: 4px; background: radial-gradient(circle at 50% 42%, rgba(150, 160, 255, 0.42), rgba(20, 24, 70, 0.15) 72%); box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5); }
.hm-reel.r0 { left: 13.6%; }
.hm-reel.r1 { left: 37%; }
.hm-reel.r2 { left: 60.4%; }
.hm-reel-strip { display: flex; flex-direction: column; height: 500%; animation: hmReel 7s cubic-bezier(0.55, 0, 0.2, 1) infinite; }
.hm-reel.r1 .hm-reel-strip { animation-delay: 0.18s; }
.hm-reel.r2 .hm-reel-strip { animation-delay: 0.36s; }
.hm-reel-strip > * { display: block; flex: none; width: 100%; height: 20%; padding: 4%; box-sizing: border-box; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)) brightness(1.08); }
@keyframes hmReel {
  0%, 18% { transform: translateY(0); }
  25%, 43% { transform: translateY(-20%); }
  50%, 68% { transform: translateY(-40%); }
  75%, 93% { transform: translateY(-60%); }
  100% { transform: translateY(-80%); }
}
.hm-slot-fb { right: 30px; top: 30px; width: 80px; height: 80px; }
@media (prefers-reduced-motion: reduce) { .hm-reel-strip, .hm-slot { animation: none; } }
