/* ===== Колесо призів (20–29.11.2026; з 01.12 — новорічне, до 9.12: fsl-wheel-v5.css + fsl-wheel-v23.js) — лише те, що не задати класами Webflow: показ за датою (клас від скрипта),
   SVG циферблата, «сонячне» шліфування від центру колеса (CSS-змінні, які рахує скрипт), анімації, закріплена кнопка
   й вміст плашки (створює скрипт). Решта — класи wheel_* у Style panel. ===== */

/* поза акцією (до 20.11 і після 9.12) блоки колеса не показуються; скрипт додає html.is-wheel-on */
html:not(.is-wheel-on) [data-wheel-promo] { display: none !important; }

/* фон секції, картки попапу й сторінки призу — нічний синій (новорічне оформлення, Лера 01.12; до 29.11 тут були промені й синій #1b3ea3 від центру колеса).
   Шліфування за шкалою (::before) лишилось, приглушене; концентричне всередині колеса (::after) — як було. */
.wheel_section, .modal_card.is-wheel { --wx: -216px; --wy: 50%; --wr: 560px; position: relative;
  background: radial-gradient(ellipse 70% 90% at 22% 50%, #1b3ea3 0%, #12318a 34%, #0b1d52 70%, #071438 100%); }
.wheel_section::before, .wheel_section::after, .modal_card.is-wheel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.wheel_section::before, .modal_card.is-wheel::before { opacity: .45;
  background: repeating-conic-gradient(from 0deg at var(--wx) var(--wy), rgba(255,255,255,.04) 0deg .17deg, rgba(0,0,0,.05) .17deg .34deg);
  -webkit-mask: radial-gradient(circle at var(--wx) var(--wy), transparent 0, transparent calc(var(--wr) + 44px), #000 calc(var(--wr) + 80px), #000 calc(var(--wr) + 150px), transparent calc(var(--wr) + 420px));
  mask: radial-gradient(circle at var(--wx) var(--wy), transparent 0, transparent calc(var(--wr) + 44px), #000 calc(var(--wr) + 80px), #000 calc(var(--wr) + 150px), transparent calc(var(--wr) + 420px)); }
.wheel_section::after {
  background: repeating-radial-gradient(circle at var(--wx) var(--wy), rgba(255,255,255,.035) 0 1.6px, rgba(0,0,0,.045) 1.6px 3.2px);
  -webkit-mask: radial-gradient(circle at var(--wx) var(--wy), #000 0, #000 calc(var(--wr) - 8px), transparent calc(var(--wr) - 6px));
  mask: radial-gradient(circle at var(--wx) var(--wy), #000 0, #000 calc(var(--wr) - 8px), transparent calc(var(--wr) - 6px)); }
.wheel_section { overflow: hidden; }   /* картка попапу гортається сама (modal_card), тому їй overflow не чіпаємо */
/* обгортки секції без position: циферблат (.wheel_visual, absolute) рахується від самої секції; текст — над фоном (wheel_head, wheel_actions: z-index у класах) */
.modal_card.is-wheel > .modal_content { position: relative; z-index: 1; }
.modal_media.is-wheel .wheel_dial { position: absolute; inset: 0; }
/* колесо згасає вгорі й унизу — вписується у фон */
.wheel_visual, .modal_media.is-wheel .wheel_dial {
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%); mask: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%); }
@media screen and (max-width: 991px) {
  .wheel_visual { -webkit-mask: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%); mask: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%); }
}

/* циферблат (SVG, малює скрипт) */
.wheel_dial { display: block; width: 100%; height: 100%; overflow: hidden; }
@media screen and (max-width: 991px) { .wheel_visual .wheel_dial { height: auto; } }
.wheel_ring { fill: none; stroke: #f3f3ed; stroke-opacity: .42; stroke-width: 1; }
.wheel_ring-hl { fill: none; stroke: #fff; stroke-opacity: .18; stroke-width: 1; }
.wheel_ticks { fill: none; stroke: #f3f3ed; stroke-opacity: .32; stroke-width: 1; }
.wheel_mark { display: none; }   /* лимонну мітку замінює кінчик срібної стрілки (v23 її вже не малює) */
.wheel_scale { transform-box: view-box; transition: transform 1.25s cubic-bezier(.65,0,.35,1); }
.wheel_lbl { transform-box: fill-box; transform-origin: 0% 50%; opacity: .6; transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity 1s; }
.wheel_lbl.is-active { transform: scale(var(--s, 1.45)); opacity: 1; }
.wheel_lbl-cap { font-family: Gilroy, Arial, sans-serif; font-weight: 600; font-size: 11.5px; letter-spacing: 3px; fill: #f3f3ed; fill-opacity: .7; }
.wheel_lbl-main { font-family: "Cy Grotesk", Arial, sans-serif; font-weight: 400; font-size: 38px; fill: #f7f8f1; }
.wheel_dial.is-done .wheel_lbl:not(.is-active) { opacity: .4; }

/* іконка кнопок колеса: стрілка робить оберт під курсором */
.button_icon.is-needle { overflow: hidden; }
.needle-icon { display: block; width: 30px; height: 30px; }
.needle-icon_hand { transform-origin: 12px 12px; transform: rotate(45deg); transition: transform 1.1s cubic-bezier(.16,.84,.24,1); }
.button:hover .needle-icon_hand, .button:focus-visible .needle-icon_hand, .register_button:hover .needle-icon_hand { transform: rotate(405deg); }

/* закріплена кнопка-колесо (комп'ютер): підпис виїжджає на кілька секунд */
.wheel_fab { position: fixed; z-index: 60; right: 2rem; bottom: 2rem; display: flex; align-items: center; padding: 0; border: 0; background: none; cursor: pointer;
  opacity: 0; transform: translateY(1rem) scale(.96); pointer-events: none; transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1); }
.wheel_fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wheel_fab-label { max-width: 0; margin-right: 0; padding: .8125rem 0; overflow: hidden; opacity: 0; white-space: nowrap; border-radius: 100rem;
  background: #0f1f45; color: rgba(243,243,237,.78); font: 500 .875rem/1 Gilroy, Arial, sans-serif; box-shadow: 0 .625rem 1.625rem -.75rem rgba(15,31,69,.55);
  transition: max-width .7s cubic-bezier(.2,.7,.2,1), padding .7s cubic-bezier(.2,.7,.2,1), margin .7s cubic-bezier(.2,.7,.2,1), opacity .45s, background-color .4s; }
.wheel_fab-label b { color: #fff; font-weight: 500; margin-right: .375rem; }
.wheel_fab.is-peek .wheel_fab-label, .wheel_fab:hover .wheel_fab-label, .wheel_fab:focus-visible .wheel_fab-label { max-width: 17.5rem; padding: .8125rem 1.125rem; margin-right: .75rem; opacity: 1; }
.wheel_fab:hover .wheel_fab-label { background: #1b3ea3; }
.wheel_fab-disc { display: block; width: 4.25rem; height: 4.25rem; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,.7), 0 .875rem 1.875rem -.75rem rgba(16,44,132,.65); }
.wheel_fab-disc svg { display: block; width: 100%; height: 100%; }
.wheel_fab-ring { transform-origin: 34px 34px; animation: wheelFabSpin 24s linear infinite; }
.wheel_fab:hover .wheel_fab-ring { animation-duration: 3s; }
@keyframes wheelFabSpin { to { transform: rotate(360deg); } }
html.is-modal-open .wheel_fab { opacity: 0; pointer-events: none; }
@media screen and (max-width: 767px) { .wheel_fab { display: none; } }

/* нижня плашка на телефоні: на час акції замість «Обрати квиток» — її копія «Виграти квиток» (створює скрипт, класи ті самі) */
@media screen and (max-width: 767px) {
  .buy_bar.is-wheel > .button:not(.wheel_bar-button) { display: none; }
}

/* заголовок попапу отримує фокус на телефоні (щоб не вилазила клавіатура) — без рамки; кнопка в плашці без href — курсор-рука */
.modal_card.is-wheel h2:focus { outline: none; }
.wheel_bar-button { cursor: pointer; }

/* попап колеса: поле з помилкою, стан «уже крутив» */
.field_input.is-wheel.is-invalid { border-color: #ff8a9b; }
[data-wheel-replayed] { display: none; }   /* сторінка колеса: «вже крутили» — показує скрипт */

/* ===== Новорічне оформлення (01.12.2026, погоджено Лерою; шари малює fsl-wheel-v23.js) =====
   сніг (три глибини) і фактура паперу — позаду текстів і колеса, перші дочірні елементи секції / картки попапу / сторінки призу */
.ny_grain, .ny_snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; border-radius: inherit; }
.ny_grain { opacity: .45; mix-blend-mode: soft-light; }
/* іскри ефекту виграшу — над контейнером, щоб не обрізались краєм колеса */
.ny_fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }

@media (prefers-reduced-motion: reduce) {
  .wheel_scale, .wheel_lbl, .needle-icon_hand { transition: none; }
  .wheel_fab-ring { animation: none; }
  .ny_fx { display: none; }
}
