/* Сайт 1 — «неоновий автомат». Тон: нічний клуб, неонова вивіска, гральна карта.
   Палітра з постерів каналу: глибокий фіолетовий, неонова фуксія, по кольору на категорію. */
:root {
  --bg: #0b0614;
  --bg-2: #140b24;
  --surface: #1b1030;
  --fg: #f7f1ff;
  --muted: #b9a8d6;
  --line: rgba(214, 190, 255, .16);
  --pink: #ff2fb4;
  --violet: #8f5bff;
  --font: 'Onest', system-ui, sans-serif;
  --display: 'Unbounded', 'Onest', sans-serif;
  --r: 18px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px;
  --wrap: 1180px;

  --vn-bg: var(--bg); --vn-surface: var(--surface); --vn-fg: var(--fg); --vn-muted: var(--muted);
  --vn-line: var(--line); --vn-accent: var(--pink); --vn-accent-fg: #1a0014;
  --vn-font: var(--font); --vn-font-display: var(--display); --vn-radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.5 var(--font);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(143, 91, 255, .22), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(255, 47, 180, .12), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#view { outline: none; min-height: 70vh; }
h1, h2 { font-family: var(--display); line-height: 1.05; margin: 0; }
h2 { font-size: clamp(1.4rem, 3.4vw, 2.2rem); font-weight: 800; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--s3);
  padding: 12px max(16px, calc((100vw - var(--wrap)) / 2));
  background: rgba(11, 6, 20, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { min-height: 44px; display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.05rem/1 var(--display); letter-spacing: .02em; }
.logo b { color: var(--pink); font-weight: 900; }
.logo__crown { width: 34px; color: var(--pink); filter: drop-shadow(0 0 6px rgba(255, 47, 180, .8)); }
.top__nav { display: flex; gap: 4px; margin-left: auto; }
.top__nav a {
  padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.top__nav a:hover, .top__nav a[aria-current] { color: var(--fg); background: color-mix(in srgb, var(--c) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
.top__tg {
  padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap;
  background: #2aabee; color: #fff;
}
.top__tg:hover { background: #1f97d4; }
.top__cart { position: relative; width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer; flex: none;
  background: rgba(255, 47, 180, .14); color: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255, 47, 180, .5); }
.top__cart[hidden] { display: none; }
.top__cart svg { width: 24px; height: 24px; }
.top__cart b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--pink); color: #1a0014; font: 800 .72rem/20px var(--font); }
.top__cart.is-bump { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.cart__list { list-style: none; margin: 0 0 var(--s3); padding: 0; }
.ci { display: grid; grid-template-columns: 56px 1fr auto; grid-template-rows: auto auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); position: relative; }
.ci img { grid-row: span 2; width: 56px; height: 70px; object-fit: cover; object-position: top; border-radius: 8px; }
.ci__t { display: grid; padding-right: 36px; }
.ci__t small { color: var(--muted); }
.ci__q { grid-column: 2; justify-self: start; }
.ci__q button { width: 40px; height: 40px; }
.ci__rm { position: absolute; top: 6px; right: -8px; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
.ci__rm:hover { color: var(--pink); }
@media (max-width: 900px) {
  .top { flex-wrap: wrap; gap: 0 var(--s2); padding-bottom: 0; }
  .top__tg { margin-left: auto; padding: 9px 12px; font-size: .85rem; }
  /* категорії — прокручувана стрічка під шапкою */
  .top__nav { order: 3; flex-basis: calc(100% + 32px); margin: 8px -16px 0; padding: 0 12px 8px; overflow-x: auto; scrollbar-width: none; }
  .top__nav::-webkit-scrollbar { display: none; }
  .top__nav a { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; background: rgba(255, 255, 255, .05); }
}

/* ---------- головна: hero + колода ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: var(--s5) 16px var(--s5); }
.hero__h { font-size: clamp(2.4rem, 7.5vw, 5.6rem); font-weight: 900; letter-spacing: -.02em; margin-bottom: var(--s4); }
.hero__h span {
  position: relative; display: inline-block; margin-left: 40%;   /* сходинка: друге слово зсунуте вправо */
  color: var(--pink);
  text-shadow: 0 0 6px rgba(255, 47, 180, .9), 0 0 26px rgba(255, 47, 180, .55), 0 0 60px rgba(255, 47, 180, .35);
  animation: cyber 4s infinite steps(1, end);
}
/* кіберпанк-глітч: часте мерехтіння, потім злам на кольорові смуги і «зависання» кадру */
.hero__h span::before, .hero__h span::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
  text-shadow: none;
}
.hero__h span::before { color: #00f0ff; animation: cyber-a 4s infinite steps(1, end); }
.hero__h span::after { color: #ffe93b; animation: cyber-b 4s infinite steps(1, end); }
@keyframes cyber {
  0%, 9%, 13%, 26%, 30%, 56%, 76%, 100% { opacity: 1; transform: none; }
  10%, 12% { opacity: .35; }
  11% { opacity: .8; }
  27%, 29% { opacity: .5; }
  58% { transform: translate(-4px, 0) skewX(-10deg); }
  61% { transform: translate(5px, 1px) skewX(6deg); opacity: .85; }
  64%, 73% { transform: translate(-2px, 0) skewX(-14deg); opacity: 1; }   /* «зависло» */
  74% { opacity: .2; }
  75% { opacity: 1; transform: translate(1px, 0); }
}
@keyframes cyber-a {
  0%, 57%, 76%, 100% { opacity: 0; clip-path: none; transform: none; }
  58% { opacity: .9; clip-path: inset(8% 0 62% 0); transform: translate(-9px, 0); }
  61% { opacity: .9; clip-path: inset(55% 0 18% 0); transform: translate(7px, 0); }
  64%, 73% { opacity: .85; clip-path: inset(30% 0 44% 0); transform: translate(-12px, 0); }
  74% { opacity: .9; clip-path: inset(70% 0 5% 0); transform: translate(10px, 0); }
}
@keyframes cyber-b {
  0%, 58%, 76%, 100% { opacity: 0; clip-path: none; transform: none; }
  59% { opacity: .85; clip-path: inset(62% 0 12% 0); transform: translate(8px, 0); }
  62% { opacity: .85; clip-path: inset(12% 0 70% 0); transform: translate(-6px, 0); }
  64%, 73% { opacity: .8; clip-path: inset(48% 0 30% 0); transform: translate(9px, 0); }
  75% { opacity: .85; clip-path: inset(20% 0 66% 0); transform: translate(-8px, 0); }
}
/* заповнення порожніх кутів біля сходинки заголовка */
.hero__top { position: relative; margin-bottom: var(--s4); }
.hero__top .hero__h { margin-bottom: 0; }
.hero__note {
  position: absolute; right: 3%; top: 2%; margin: 0; text-align: right; transform: rotate(-3deg);
  font: 500 1.05rem/1.3 var(--font); color: #9fe9ff;
}
.hero__note b { display: block; font: 800 1.5rem/1.1 var(--display); color: #3fe0ff; text-shadow: 0 0 10px rgba(63, 224, 255, .8), 0 0 28px rgba(63, 224, 255, .4); }
.hero__note svg { display: block; width: 84px; margin: 4px 0 0 auto; color: #3fe0ff; filter: drop-shadow(0 0 6px rgba(63, 224, 255, .8)); transform: translateX(-60%); }
.hero__pills { position: absolute; left: 0; bottom: .9rem; display: flex; flex-wrap: wrap; gap: 10px; max-width: 38%; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  font: 700 .92rem var(--font); white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s;
}
.pill:hover { transform: translateY(-2px); }
.pill--hit { background: #f3f6ff; color: #0c1a55; box-shadow: 0 0 0 2px #3f6bff, 0 0 22px -4px rgba(63, 107, 255, .9); }
.pill--tg { background: rgba(42, 171, 238, .14); color: #8fd6ff; box-shadow: inset 0 0 0 1.5px rgba(42, 171, 238, .6); }
.pill--tg:hover { background: #2aabee; color: #fff; }

@media (max-width: 900px) {
  .hero__note { display: none; }
  .hero__pills { position: static; max-width: none; margin-top: var(--s2); }
}
.hero__s { color: var(--muted); font-size: 1.1rem; margin: var(--s2) 0 var(--s4); max-width: 34ch; }

.deck { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.cat {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 340px; padding: var(--s3) var(--s2) var(--s2); border-radius: var(--r);
  text-decoration: none; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, var(--surface)), var(--surface));
  border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .3s;
}
.cat:hover, .cat:focus-visible {
  transform: translateY(-6px);
  border-color: var(--c);
  box-shadow: 0 0 0 1px var(--c), 0 18px 50px -12px color-mix(in srgb, var(--c) 70%, transparent);
}
.cat__fan { position: absolute; inset: 24px 0 auto; height: 220px; display: block; z-index: -1; }
.cat__fan img {
  position: absolute; left: 50%; top: 0; width: 46%; aspect-ratio: 2 / 3; object-fit: cover; object-position: top;
  border-radius: 10px; border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  transform: translateX(calc(-50% + var(--i) * 34%)) rotate(calc(var(--i) * 9deg)) translateY(calc(var(--a) * 10px));
  transform-origin: 50% 120%;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.cat:hover .cat__fan img, .cat:focus-visible .cat__fan img {
  transform: translateX(calc(-50% + var(--i) * 48%)) rotate(calc(var(--i) * 15deg)) translateY(calc(var(--a) * 14px - 6px));
}
.cat__body { display: grid; gap: 4px; }
.cat__body b { font: 800 1.35rem/1.1 var(--display); }
.cat__body b::after { content: " →"; color: var(--c); transition: margin .25s; }
.cat:hover .cat__body b::after { margin-left: 6px; }
.deck.no-arrows .cat__body b::after { content: none; }   /* хоч в одній картці стрілка не влазить — ховаємо всі */
.cat__body small { color: var(--muted); font-size: .9rem; }
@media (max-width: 960px) { .deck { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .hero { padding-top: var(--s4); }
  .hero__h { margin-bottom: var(--s3); }
  .hero__h span { display: block; width: fit-content; margin-left: auto; }   /* на телефоні — до правого краю */
  .deck { gap: 10px; }
  .cat { min-height: 228px; padding: var(--s2) 12px 12px; }
  .cat__fan { height: 150px; inset: 14px 0 auto; }
  .cat__body b { font-size: .92rem; white-space: nowrap; }
  .cat__body small { font-size: .78rem; }
}

/* ---------- головний хіт: HUMO AZUL — фото на весь блок, текст поверх на кобальтовому затемненні ---------- */
.hit {
  max-width: calc(var(--wrap) - 32px); margin: 0 auto var(--s6); border-radius: 26px; overflow: hidden;
  position: relative; isolation: isolate; min-height: 500px; display: flex; align-items: center;
  background: #0a1550; color: #fff;
  box-shadow: 0 0 0 1.5px #6f93ff, 0 0 26px -2px rgba(63, 107, 255, .8), 0 30px 80px -20px rgba(63, 107, 255, .65);
}
.hit__img { position: absolute; inset: 0; z-index: -2; display: block; overflow: hidden; }
/* фото сцени на весь блок */
.hit__img img { position: absolute; left: 0; top: 0; width: 122%; max-width: none; height: 100%; object-fit: cover; object-position: 0 62%; transition: transform .8s; }   /* ширше за блок і зсунуте — товар праворуч від тексту */
.hit:hover .hit__img img { transform: scale(1.03); }
.hit::before {   /* затемнення під текстом */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 18, 70, .9) 0%, rgba(10, 24, 92, .74) 34%, rgba(12, 30, 110, .25) 54%, rgba(12, 30, 110, 0) 68%);
}
.hit__txt { position: relative; max-width: 640px; padding: var(--s5) var(--s4); display: flex; flex-direction: column; align-items: flex-start; }
.hit__tag { padding: 6px 12px; border-radius: 8px; background: #fff; color: #10237a; font: 700 .8rem var(--font); letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--s2); }
.hit h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 24px rgba(0, 10, 60, .6); margin-bottom: var(--s3); }
.hit p { margin: 10px 0 var(--s3); font-size: 1.1rem; color: #dbe3ff; }
.hit__specs { list-style: none; margin: 0 0 var(--s3); padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hit__specs li { display: grid; font-size: .85rem; color: #b7c7f7; }
.hit__specs b { font: 800 1.15rem var(--display); color: #fff; }
.hit__go { background: #fff; color: #10237a; min-height: 56px; padding: 0 1.8em; font-size: 1.05rem; }
.hit__go:hover { background: #e6edff; box-shadow: 0 0 0 4px rgba(111, 147, 255, .45), 0 0 24px rgba(111, 147, 255, .7); }
@media (max-width: 760px) {
  /* телефон: фото окремо зверху (товар видно повністю), текст нижче на кобальті */
  .hit { display: block; min-height: 0; margin-left: 16px; margin-right: 16px; }
  .hit::before { content: none; }
  .hit__img { position: relative; z-index: 0; height: 300px; }
  .hit__img::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, #0a1550); }
  .hit__img img { position: static; width: 100%; object-position: 62% 45%; }
  .hit__txt { max-width: none; padding: 0 var(--s3) var(--s3); margin-top: -28px; }
  .hit__go { width: 100%; }
}

/* ---------- барабан ---------- */
.slot {
  max-width: var(--wrap); margin: 0 auto var(--s6); padding: 0 16px;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "head head" "machine machine" "spin spin";
  gap: var(--s3) var(--s2); align-items: center;
}
.slot__head { grid-area: head; }
.slot__head p { color: var(--muted); margin: 6px 0 0; }
.slot__machine {
  grid-area: machine; position: relative; display: flex; align-items: center; gap: var(--s2);
  --cell: 168px;
}
.slot__win {
  flex: 1; margin: 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px;
  border-radius: 24px; background: #07030e;
  border: 2px solid var(--violet);
  box-shadow: 0 0 0 6px #1d1036, 0 0 40px -6px rgba(143, 91, 255, .7), inset 0 0 30px rgba(0, 0, 0, .9);
  position: relative;
}
/* лампочки по краю: ряди крапок зверху і знизу */
.slot__win::before, .slot__win::after {
  content: ""; position: absolute; left: 18px; right: 18px; height: 8px; pointer-events: none;
  background: radial-gradient(circle, #ffd84d 0 3px, transparent 3.5px) 0 50% / 20px 8px repeat-x;
  filter: drop-shadow(0 0 4px #ffb800); opacity: .7;
  animation: leds-run 1.4s steps(2) infinite, leds-glow 3.2s ease-in-out infinite;   /* біжать і мерехтять у спокої */
}
.slot__win::after { animation-direction: reverse, normal; animation-delay: 0s, -1.6s; }
@keyframes leds-run { to { background-position-x: 20px; } }
@keyframes leds-glow { 0%, 100% { opacity: .55; } 40% { opacity: .95; } 55% { opacity: .7; } 70% { opacity: 1; } }
.slot__win::before { top: -16px; }
.slot__win::after { bottom: -16px; }
.slot__machine.is-win .slot__win::before, .slot__machine.is-win .slot__win::after { animation: bulbs .16s steps(2) 8; }
.slot__machine.is-win .slot__win { border-color: var(--pink); box-shadow: 0 0 0 6px #1d1036, 0 0 60px -4px rgba(255, 47, 180, .9), inset 0 0 30px rgba(0, 0, 0, .9); }
@keyframes bulbs { 50% { opacity: .15; } }
.reel { height: var(--cell); overflow: hidden; border-radius: 14px; background: #120a20; position: relative; }
.reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#07030e, transparent 14%, transparent 86%, #07030e); }
.reel__strip { will-change: transform; }
.reel__cell {
  height: var(--cell); display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; gap: 6px; padding: 12px 8px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%);
}
.reel__cell img { height: 100%; max-height: 104px; width: auto; aspect-ratio: 2 / 3; object-fit: cover; object-position: top; border-radius: 8px; }
.reel__cell span { font-weight: 700; font-size: .85rem; color: #fff; text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot__lever {
  width: 64px; height: 200px; border: 0; background: none; cursor: pointer; position: relative; flex: none; padding: 0;
}
.slot__lever::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 10px; height: 150px; margin-left: -5px; border-radius: 6px;
  background: linear-gradient(90deg, #6d6680, #e4ddf5, #6d6680); transform-origin: 50% 100%; transition: transform .2s; }
.slot__knob { position: absolute; left: 50%; top: 0; width: 60px; height: 60px; margin-left: -30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8bd6, var(--pink) 55%, #a0006a); box-shadow: 0 0 18px rgba(255, 47, 180, .8);
  transform-origin: 50% 170px; transition: transform .2s; }
/* куля ручки: об'єм — світло зліва зверху, глянцевий блік, тінь до низу, відбите світло знизу */
.slot__knob {
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 34% 30%, #ffd3ef 0%, #ff74d0 18%, #ff2fb4 42%, #c40c84 68%, #6e0049 92%, #4a0031 100%);
  box-shadow:
    inset -7px -9px 16px rgba(55, 0, 35, .6),
    inset 5px 6px 12px rgba(255, 255, 255, .22),
    0 8px 12px -2px rgba(0, 0, 0, .55),
    0 0 24px rgba(255, 47, 180, .65);
}
.slot__knob::before {   /* глянцевий блік */
  content: ""; position: absolute; left: 14%; top: 9%; width: 46%; height: 30%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .25) 55%, transparent 72%);
  transform: rotate(-24deg); pointer-events: none;
}
.slot__knob::after {    /* відбите світло по нижньому краю */
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 6%; height: 16%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 150, 220, .55), transparent 70%); pointer-events: none;
}
/* «КРУТИ» обертається по кулі, як напис на глобусі: ховається за обрій і виходить з іншого боку */
.slot__knob { perspective: 140px; }
.slot__knob::before { z-index: 2; }   /* глянцевий блік поверх літер */
.slot__label { position: absolute; inset: 0; z-index: 1; transform-style: preserve-3d; animation: globe 4.5s linear infinite; }
.slot__label i {
  position: absolute; left: 50%; top: 50%; width: 12px; margin: -6px 0 0 -6px; text-align: center; font-style: normal;
  font: 800 11px/12px var(--display); color: #fff; text-shadow: 0 1px 2px rgba(90, 0, 50, .6);
  transform: rotateY(calc((var(--i) - 2) * 19deg)) translateZ(25px);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.slot__lever:hover .slot__label { animation-duration: 2s; }
@keyframes globe { from { transform: rotateY(-120deg); } to { transform: rotateY(240deg); } }
.slot__lever.is-pulled::before { animation: pull-bar .7s; }
.slot__lever.is-pulled .slot__knob { animation: pull-knob .7s; }
@keyframes pull-bar { 30% { transform: scaleY(-.2); } 100% { transform: none; } }
@keyframes pull-knob { 30% { transform: translateY(150px); } 100% { transform: none; } }
/* пропозиція після прокрутки — всередині вікна барабана, поверх розмиття */
.slot__offer {
  position: absolute; inset: 0; z-index: 5; border-radius: inherit; overflow: hidden;
  display: grid; place-content: center; justify-items: center; gap: 14px; padding: 16px; text-align: center;
  background: rgba(7, 3, 14, .5); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  animation: offer-in .35s ease-out;
}
.slot__offer[hidden] { display: none; }
@keyframes offer-in { from { opacity: 0; } }
.slot__what { margin: 0; display: grid; gap: 4px; }
.slot__what b { font: 800 clamp(1.1rem, 3vw, 1.6rem)/1.1 var(--display); color: #fff; text-shadow: 0 0 16px rgba(255, 47, 180, .7); }
.slot__what span { color: var(--muted); font-size: .95rem; }
.slot__offer .vn-btn { min-width: 220px; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.slot__timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--pink); transform-origin: left; animation: offer-timer 15s linear forwards; }
@keyframes offer-timer { to { transform: scaleX(0); } }

.slot__spin { grid-area: spin; min-width: 160px; display: none; }
.slot { grid-template-areas: "head head" "machine machine"; }
@media (max-width: 640px) {
  .slot { grid-template-columns: 1fr; grid-template-areas: "head" "machine" "spin"; }
  .slot__machine { --cell: 128px; }
  .slot__win { gap: 6px; padding: 8px; }
  .slot__lever { display: none; }
  .reel__cell img { max-height: 76px; }
  .reel__cell span { font-size: .7rem; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .slot__spin { width: 100%; display: inline-flex; }   /* на телефоні ручки немає — потрібна кнопка */
}

/* ---------- скретч ---------- */
.scratch {
  max-width: var(--wrap); margin: 0 auto var(--s6); padding: var(--s4) 16px;
  display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: var(--s4); align-items: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.scratch__text p { color: var(--muted); margin: 8px 0 0; }
.scratch__card { position: relative; border-radius: 22px; overflow: hidden; min-height: 210px; }
.scratch__prize {
  position: absolute; inset: 0; padding: var(--s3); display: grid; align-content: center; justify-items: center; text-align: center; gap: 10px;
  background: linear-gradient(135deg, #2a0f48, #4a0d3a); border: 2px dashed rgba(255, 255, 255, .25); border-radius: 22px;
}
.scratch__prize b { font: 900 3.4rem/1 var(--display); color: #fff; text-shadow: 0 0 22px rgba(255, 47, 180, .9); }
.scratch__prize span { color: #f0dcff; max-width: 30ch; }
.scratch__foil { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; border-radius: 22px; transition: opacity .5s; }
.scratch__card.is-open .scratch__foil { opacity: 0; pointer-events: none; }
.scratch__open {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 0;
  background: rgba(20, 0, 40, .55); color: #fff; font: 500 .8rem var(--font); cursor: pointer;
}
.scratch__card.is-open .scratch__open { display: none; }
.scratch__card.is-open .scratch__prize { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.94); } }
@media (max-width: 760px) { .scratch { grid-template-columns: 1fr; gap: var(--s3); } .scratch__card { min-height: 230px; } }

/* ---------- як отримати ---------- */
.how { max-width: var(--wrap); margin: 0 auto var(--s6); padding: 0 16px; }
.how__h { margin-bottom: var(--s3); }
.how__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.how__list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s3) var(--s2) var(--s3) 0; border-top: 2px solid var(--line); font: 700 1.15rem/1.25 var(--display); }
.how__list li + li { padding-left: var(--s2); border-left: 1px solid var(--line); }
.how__ico { flex: none; width: 46px; height: 46px; fill: none; stroke: var(--pink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 47, 180, .6)); }
/* навів мишку — неонова іконка мерехтить, як лампа, що барахлить */
.how__list li:hover .how__ico { animation: neon-blink 1.1s steps(1, end) infinite; }
@keyframes neon-blink {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 47, 180, .6)); }
  10% { opacity: .25; filter: none; }
  16% { opacity: 1; filter: drop-shadow(0 0 12px rgba(255, 47, 180, 1)); }
  22% { opacity: .35; filter: none; }
  30% { opacity: 1; filter: drop-shadow(0 0 14px rgba(255, 47, 180, 1)); }
  62% { opacity: .5; filter: drop-shadow(0 0 3px rgba(255, 47, 180, .4)); }
  66% { opacity: 1; filter: drop-shadow(0 0 12px rgba(255, 47, 180, 1)); }
}
@media (max-width: 640px) {
  .how__list { grid-template-columns: 1fr; }
  .how__list li, .how__list li + li { padding: var(--s2) 0; border-left: 0; }
}

/* ---------- до магазину: віяло карток товарів + неонова кнопка ---------- */
.toshop { max-width: var(--wrap); margin: 0 auto var(--s6); padding: 0 16px; }
.shopfan {
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); border-radius: 24px; text-decoration: none; color: var(--fg); overflow: hidden;
  background: radial-gradient(ellipse 60% 80% at 30% 60%, rgba(255, 47, 180, .14), transparent 70%), var(--surface);
  border: 1px solid var(--line); transition: border-color .3s;
}
.shopfan:hover, .shopfan:focus-visible { border-color: rgba(255, 47, 180, .55); }
.shopfan__cards { position: relative; display: block; height: 290px; }
.shopfan__cards img {
  position: absolute; left: 50%; top: 22px; width: 140px; aspect-ratio: 2 / 3; object-fit: cover; object-position: top;
  border-radius: 12px; border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 14px 34px rgba(0, 0, 0, .6);
  transform: translateX(calc(-50% + var(--i) * 46px)) rotate(calc(var(--i) * 7deg)) translateY(calc(var(--a) * 10px));
  transform-origin: 50% 130%; transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.shopfan:hover .shopfan__cards img, .shopfan:focus-visible .shopfan__cards img {
  transform: translateX(calc(-50% + var(--i) * 74px)) rotate(calc(var(--i) * 11deg)) translateY(calc(var(--a) * 14px - 8px));
}
.shopfan__txt { display: grid; justify-items: start; gap: 6px; }
.shopfan__txt small { color: var(--muted); font-size: .95rem; }
.shopfan__txt b { font: 900 clamp(1.8rem, 4vw, 2.8rem)/1.05 var(--display); }
.shopfan__btn {   /* неонова «трубка» по контуру */
  margin-top: var(--s2); display: inline-flex; align-items: center; min-height: 54px; padding: 0 1.6em; border-radius: 14px;
  font: 800 1.05rem var(--display); color: #ffd6f2; border: 2px solid #ff4fc4;
  text-shadow: 0 0 8px rgba(255, 47, 180, .9);
  box-shadow: 0 0 12px rgba(255, 47, 180, .6), inset 0 0 12px rgba(255, 47, 180, .35);
  transition: background .25s, color .25s;
}
.shopfan:hover .shopfan__btn { background: var(--pink); color: #1a0014; text-shadow: none; animation: neon-blink 1.1s steps(1, end) 1; }
@media (max-width: 760px) {
  .shopfan { grid-template-columns: 1fr; padding: var(--s3) var(--s3) var(--s4); text-align: center; }
  .shopfan__cards { height: 220px; }
  .shopfan__cards img { width: 104px; top: 14px; transform: translateX(calc(-50% + var(--i) * 30px)) rotate(calc(var(--i) * 7deg)) translateY(calc(var(--a) * 8px)); }
  .shopfan:hover .shopfan__cards img { transform: translateX(calc(-50% + var(--i) * 44px)) rotate(calc(var(--i) * 10deg)) translateY(calc(var(--a) * 10px - 6px)); }
  .shopfan__txt { justify-items: center; }
  .shopfan__btn { width: 100%; justify-content: center; }
}

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px var(--s3); padding: 0 16px 4px; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-weight: 500;
  border: 1.5px solid var(--line); color: var(--muted); }
.chips a:hover { color: var(--fg); border-color: var(--c, var(--pink)); }
.chips a[aria-current] { color: #1a0014; background: var(--c, var(--pink)); border-color: var(--c, var(--pink)); font-weight: 700; }

/* ---------- відгуки ---------- */
.revs { max-width: var(--wrap); margin: 0 auto var(--s6); padding: 0 16px; }
.revs h2 { margin-bottom: var(--s3); }

/* ---------- каталог ---------- */
.list, .prod { max-width: var(--wrap); margin: 0 auto; padding: var(--s3) 16px var(--s6); }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-weight: 500; }
.back:hover { color: var(--fg); }
.list__h { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; margin: var(--s1) 0 var(--s4); }
.list__h::after { content: ""; display: block; width: 72px; height: 6px; border-radius: 3px; margin-top: 14px; background: var(--c); box-shadow: 0 0 16px var(--c); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s2); }
.pcard {
  position: relative; display: flex; flex-direction: column; text-decoration: none; border-radius: var(--r); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .3s;
}
.pcard:hover, .pcard:focus-visible { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 16px 40px -14px color-mix(in srgb, var(--c) 70%, transparent); }
.pcard__img { aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 8px; background: var(--c); color: #001018; font-weight: 700; font-size: .8rem; }
.pcard__body { display: grid; gap: 8px; padding: 14px 16px 16px; }
.pcard__body > b { font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.pcard__short { color: #ffc3e4; font-size: .85rem; line-height: 1.3; }
.pcard__dots { display: flex; gap: 6px; }
.pcard__dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--v); box-shadow: 0 0 8px var(--v); }
.pcard__price { color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard__body { padding: 10px 12px 12px; }
  .pcard__body > b { font-size: .92rem; }
  .pcard__price { font-size: .8rem; }
}

/* ---------- картка товару ---------- */
.prod { --v: var(--c); }
.prod__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: start; margin-top: var(--s2); }
.prod__media { position: sticky; top: 90px; border-radius: 24px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px color-mix(in srgb, var(--v) 80%, transparent); transition: box-shadow .4s; }
.prod__media img { width: 100%; height: auto; }
.prod__brand { color: var(--c); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.prod__h { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin: 8px 0 10px; }
.prod__price { font: 700 1.2rem var(--font); color: var(--muted); margin-bottom: var(--s3); }
.flav { border: 0; margin: 0 0 var(--s3); padding: 0; min-width: 0; }
.flav legend { padding: 0; margin-bottom: 12px; color: var(--muted); }
.flav legend b { color: var(--fg); }
.flav__list { display: grid; gap: 8px; }
.flav__opt { position: relative; cursor: pointer; }
.flav__opt input { position: absolute; opacity: 0; }
.flav__opt > span {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 12px 16px; min-height: 60px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.flav__opt i { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--v); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px color-mix(in srgb, var(--v) 50%, transparent); transition: box-shadow .25s; }
.flav__opt b { font-weight: 700; }
.flav__opt small { color: var(--muted); font-size: .85rem; }
.flav__opt:hover > span { border-color: color-mix(in srgb, var(--v) 60%, transparent); }
.flav__opt input:checked + span { border-color: var(--v); background: color-mix(in srgb, var(--v) 14%, var(--surface)); box-shadow: 0 0 24px -6px var(--v); }
.flav__opt input:checked + span i { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--v), 0 0 18px var(--v); }
.flav__opt input:focus-visible + span { outline: 3px solid var(--fg); outline-offset: 2px; }
.buy { display: flex; gap: 10px; margin-bottom: var(--s3); }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; }
.qty button { width: 48px; height: 52px; border: 0; background: none; color: var(--fg); font-size: 1.4rem; cursor: pointer; border-radius: 12px; }
.qty button:hover { background: var(--line); }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }
.buy__cart { position: relative; flex: none; width: 56px; min-height: 56px; border: 1.5px solid var(--line); border-radius: 14px; background: none; color: var(--fg); cursor: pointer; display: grid; place-items: center; }
.buy__cart:hover { border-color: var(--pink); color: var(--pink); }
.buy__cart svg { width: 24px; height: 24px; }
.buy__cart span { position: absolute; top: 6px; right: 8px; font-weight: 800; font-size: .9rem; }
.buy__go { flex: 1; min-height: 56px; font-size: 1.1rem; flex-direction: column; gap: 3px; }
.buy__sub { font: 500 .75rem/1 var(--font); opacity: .75; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.specs { margin: 0 0 var(--s2); display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
.specs div { background: var(--bg-2); padding: 12px 14px; }
.specs dt { color: var(--muted); font-size: .8rem; }
.specs dd { margin: 2px 0 0; font-weight: 700; }
.specs div:last-child:nth-child(odd) { grid-column: span 2; }
.prod__del { color: var(--muted); font-size: .9rem; margin: 0; }
.rel { margin-top: var(--s6); }
.rel h2 { margin-bottom: var(--s3); font-size: 1.4rem; }
@media (max-width: 820px) {
  .prod__grid { grid-template-columns: 1fr; gap: var(--s3); }
  .prod { padding-bottom: 120px; }
  .prod__media { position: static; max-width: 260px; margin: 0 auto; }
  .prod__media img { max-height: 34vh; width: auto; margin: 0 auto; border-radius: 16px; }
  .prod__media { box-shadow: none; background: none; border-radius: 0; }
  .back { min-height: 40px; }
  .prod__h { margin-top: 4px; }
  .prod__price { margin-bottom: var(--s2); }
  /* кнопка замовлення завжди під пальцем */
  .buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(11, 6, 20, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .qty button { width: 44px; }
}

/* ---------- підвал ---------- */
.foot { border-top: 1px solid var(--line); padding: var(--s4) max(16px, calc((100vw - var(--wrap)) / 2)) var(--s3); color: var(--muted); font-size: .9rem; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); }
.foot b { color: var(--fg); font-family: var(--display); }
.foot p { margin: 6px 0 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: flex-start; }
.foot__links a { min-height: 44px; display: inline-flex; align-items: center; }
.foot__warn { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line); font-size: .8rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- неонові зірочки оцінки у формі відгуку ---------- */
.vn-rate label { color: rgba(255, 47, 180, .22); text-shadow: none; transition: color .15s, text-shadow .15s; }
.vn-rate input:checked ~ label, .vn-rate label:hover, .vn-rate label:hover ~ label {
  color: #ffd6f2;
  text-shadow: 0 0 2px #fff, 0 0 8px #ff4fc4, 0 0 18px #ff2fb4, 0 0 32px rgba(255, 47, 180, .7);
}
/* неонові зірочки в картках відгуків */
.vn-review__stars { color: #ffd6f2; letter-spacing: 3px; font-size: 1.1rem;
  text-shadow: 0 0 2px #fff, 0 0 7px #ff4fc4, 0 0 16px #ff2fb4, 0 0 28px rgba(255, 47, 180, .6); }
/* кнопка «Підписатися» на скретч-картці — фіолетова замість синьої Telegram */
.scratch__prize .vn-btn--tg { background: linear-gradient(135deg, #a46bff, #7a3cff); color: #fff; box-shadow: 0 0 22px -4px rgba(143, 91, 255, .9); }
.scratch__prize .vn-btn--tg:hover { background: linear-gradient(135deg, #b47fff, #8a4cff); box-shadow: 0 0 0 4px rgba(143, 91, 255, .3), 0 0 26px rgba(143, 91, 255, .9); }
