/* n5: шапка /bonuses «Испытай свою удачу» с лентой-рулеткой (макет «Ровная лента»).
   Только верхний блок. Приз по-прежнему выбирает сервер, лента лишь показывает результат. */
html body main .n5{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;padding:0 0 12px!important;font-family:Montserrat,Arial,sans-serif;color:#202838;
  --n5-title:#202838;--n5-lead:#3a4456;--n5-card-cd:#f4f6fa;--n5-lab-cd:#687388;--n5-card-free:#eef7e6;--n5-lab-free:#4c9a26;--n5-card-win:#e8f3ff;--n5-lab-win:#1b6fd6}
html[data-theme="dark"] body .n5{--n5-title:#f4f7fb;--n5-lead:#c9d1de;--n5-card-cd:#262e3b;--n5-lab-cd:#a3adbf;--n5-card-free:rgba(110,184,63,.14);--n5-lab-free:#8bd05a;--n5-card-win:rgba(38,139,243,.16);--n5-lab-win:#7cc4ff}
html body .n5::before{content:"";position:absolute;left:0;right:0;top:0;bottom:0;z-index:-1;pointer-events:none;background:radial-gradient(50% 42% at 50% 48%,rgba(38,139,243,.1) 0%,rgba(38,139,243,0) 100%)}
html body .n5 *{box-sizing:border-box}
html body .n5 .n5-fl,html body .n5 .n5-h3d,html body .n5 .n5-luck-w::before,html body .n5 .n5-luck-w::after{rotate:var(--r,0deg)}
html[data-theme] body main > section.n5[data-n5-roulette]{margin:0 0 24px!important}
html body .n5 .n5-crumbs{position:relative;left:auto;top:auto;transform:none;align-self:stretch;display:flex;align-items:center;gap:8px;height:21px;margin:10px 0 0;padding:0;font:500 12px/21px Montserrat,Arial,sans-serif;letter-spacing:-.5px;white-space:nowrap;overflow:hidden}
html body .n5 .n5-crumbs a{font-weight:500}
html body .n5 .n5-crumbs .t997-crumbs-cur{font-weight:600}

/* заголовок */
html body .n5-head{position:relative;display:flex;align-items:center;justify-content:center;gap:clamp(18px,2.4vw,36px);margin-top:12px;padding:0}
html body .n5-title{margin:0;font:900 clamp(40px,5vw,72px)/1.05 Montserrat,Arial,sans-serif;letter-spacing:-.03em;text-align:center;white-space:nowrap;color:var(--n5-title)}
html body .n5-luck-w{position:relative;display:inline-block}
html body .n5-luck{background:linear-gradient(90deg,#ff7a1a,#ffb020,#ff5a8a,#8b5cf6,#268bf3,#ff7a1a);background-size:100% 100%;-webkit-background-clip:text;background-clip:text;color:transparent}
html body .n5-sp{position:absolute;pointer-events:none;animation:n5-tw 2.4s ease-in-out infinite;will-change:transform,opacity}
html body .n5-sp-1{left:-14px;top:-6px;width:26px;height:26px}
html body .n5-sp-2{right:-18px;top:-14px;width:32px;height:32px;animation-delay:.6s}
html body .n5-sp-3{right:-26px;bottom:6px;width:18px;height:18px;animation-delay:1.2s}
html body .n5-h3d{position:relative;flex:none;display:block;object-fit:contain;pointer-events:none;animation:n5-fl 6s ease-in-out infinite;will-change:transform}
html body .n5-h3d-rw{position:relative;flex:none;display:block;margin:-20px 0 -20px 22px;pointer-events:none}
html body .n5-h3d-l{margin:-20px 0;width:clamp(84px,8vw,116px);height:clamp(84px,8vw,116px);--r:-12deg}
html body .n5-h3d-r{width:clamp(76px,7.2vw,104px);height:clamp(76px,7.2vw,104px);--r:10deg;animation-duration:6.6s;animation-delay:.8s}
html body .n5-h3d-c{position:absolute;right:-8px;bottom:-4px;width:34px;height:34px;--r:0deg;animation-duration:5s;animation-delay:.3s}
html body .n5-lead{margin:12px 0 0;font:400 18px/1.4 Montserrat,Arial,sans-serif;color:var(--n5-lead);text-align:center}

/* рамка и синяя панель */
html body .n5-frame{position:relative;width:100%;margin-top:28px;padding:4px;border-radius:34px;overflow:hidden;isolation:isolate}
html body .n5-frame-bg{position:absolute;left:0;top:0;bottom:0;width:200%;z-index:-1;will-change:transform;animation:n5-bord 8s linear infinite;
  background:linear-gradient(90deg,#4aa6ff,#8b5cf6,#ff7a1a,#ffd36b,#6eb83f,#4aa6ff,#8b5cf6,#ff7a1a,#ffd36b,#6eb83f,#4aa6ff)}
html body .n5-panel{position:relative;height:352px;border-radius:30px;overflow:hidden;background:radial-gradient(90% 70% at 50% 35%,#4aa6ff 0%,#268bf3 45%,#1559bb 100%);--n5-cy:187px}
html body .n5-floor{position:absolute;left:0;right:0;bottom:0;height:150px;background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.12))}
html body .n5-beam{position:absolute;left:50%;top:-20%;width:420px;height:140%;margin-left:-210px;background:radial-gradient(50% 50% at 50% 50%,rgba(255,255,255,.4),rgba(255,255,255,0));animation:n5-pulse 3s ease-in-out infinite;will-change:transform,opacity}
html body .n5-dots{position:absolute;inset:0;background:radial-gradient(rgba(255,255,255,.18) 1.2px,transparent 1.4px) 0 0/22px 22px;-webkit-mask:linear-gradient(180deg,#000,transparent 70%);mask:linear-gradient(180deg,#000,transparent 70%)}
html body .n5-float{position:absolute;inset:0;z-index:1;pointer-events:none}
html body .n5-fl{position:absolute;height:auto;aspect-ratio:1;object-fit:contain;animation:n5-fl 6s ease-in-out infinite;will-change:transform}
html body .n5-tw{position:absolute;height:auto;aspect-ratio:1;animation:n5-tw 2.4s ease-in-out infinite;will-change:transform,opacity}
html body .n5-conf{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
html body .n5-conf i{position:absolute;top:-20px;opacity:0;animation:n5-cf 7s linear 9999;will-change:transform,opacity}
html body .n5-rays{position:absolute;left:50%;top:var(--n5-cy);z-index:1;width:560px;height:560px;margin:-280px 0 0 -280px;border-radius:50%;display:none;pointer-events:none;
  background:repeating-conic-gradient(rgba(255,224,138,.5) 0deg 7deg,rgba(255,224,138,0) 7deg 18deg);-webkit-mask:radial-gradient(circle,#000 18%,transparent 62%);mask:radial-gradient(circle,#000 18%,transparent 62%);animation:n5-rot 14s linear infinite}
html body .n5.is-won .n5-rays{display:block}
html body .n5-sparks{position:absolute;left:50%;top:var(--n5-cy);z-index:7;pointer-events:none}
html body .n5-sparks i{position:absolute;left:0;top:0;width:11px;height:11px;border-radius:3px;opacity:0}
html body .n5.is-won .n5-sparks i{animation:n5-sp 1.1s ease-out both}
html body .n5-view{position:absolute;left:0;right:0;top:72px;height:260px;z-index:3;overflow:visible}
html body .n5-strip{display:flex;gap:28px;padding:14px 0 0;will-change:transform}
html body .n5-fade{position:absolute;top:0;bottom:0;width:130px;z-index:4;pointer-events:none}
html body .n5-fade-l{left:0;background:linear-gradient(90deg,#1a5fc0 8%,rgba(26,95,192,0))}
html body .n5-fade-r{right:0;background:linear-gradient(270deg,#1a5fc0 8%,rgba(26,95,192,0))}
html body .n5-gem{position:absolute;left:50%;width:52px;height:40px;margin-left:-26px;z-index:6;pointer-events:none;will-change:transform;filter:drop-shadow(0 8px 12px rgba(10,50,120,.4)) drop-shadow(0 0 12px #ffd36b)}
html body .n5-gem-k{display:block;width:100%;height:100%;will-change:transform}
html body .n5-gem-k svg{display:block;width:100%;height:100%}
html body .n5-gem-t{top:8px;animation:n5-gem 2.2s ease-in-out infinite}
html body .n5-gem-b{top:298px;transform:rotate(180deg);animation:n5-gemb 2.2s ease-in-out infinite}

/* карточки */
html body .n5-card{flex:none;position:relative;width:160px;height:206px;transform-origin:50% 50%;transition:transform .35s cubic-bezier(.34,1.4,.64,1),opacity .3s,filter .3s}
html body .n5.is-spin .n5-card{transition:none}
html body .n5-card-in{position:relative;height:100%;padding:10px;border-radius:20px;background:#fff;display:flex;flex-direction:column;gap:6px;overflow:hidden;box-shadow:0 14px 30px rgba(10,40,100,.3);transition:box-shadow .3s}
html body .n5-card.is-bonus .n5-card-in{background:#fff0f9}
html body .n5-card.is-coupon .n5-card-in{background:#f1ecfe}
html body .n5-card.is-secret .n5-card-in{background:#fff3e6}
html body .n5-card.is-center .n5-card-in{box-shadow:0 0 0 3px rgba(255,255,255,.95),0 0 36px rgba(255,255,255,.55),0 16px 34px rgba(10,40,100,.35)}
html body .n5-card.is-win .n5-card-in{box-shadow:0 0 0 4px #ffd36b,0 20px 44px rgba(10,40,100,.5)}
html body .n5.is-won .n5-card:not(.is-win){opacity:.55;filter:saturate(.4)}
html body .n5-card-img{position:relative;flex:none;height:86px;border-radius:12px;overflow:hidden}
html body .n5-card-img img{display:block;width:100%;height:100%;object-fit:contain}
html body .n5-card-img.is-cover img{object-fit:cover}
html body .n5-card.is-center .n5-card-img::after{content:"";position:absolute;top:0;bottom:0;left:0;width:50px;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.45),rgba(255,255,255,0));animation:n5-shine 4s ease-in-out infinite;will-change:transform}
html body .n5-card-name{margin-top:2px;font:800 15px/1.2 Montserrat,Arial,sans-serif;color:#202838;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:anywhere}
html body .n5-card-sub{font:600 12px/1.3 Montserrat,Arial,sans-serif;color:#8f9cb0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .n5-card-ft{margin-top:auto;display:flex;align-items:center;gap:8px}
html body .n5-tag{flex:none;padding:4px 9px;border-radius:8px;background:#6eb83f;color:#fff;font:800 14px/1.2 Montserrat,Arial,sans-serif}
html body .n5-card.is-key .n5-tag{background:#268bf3}
html body .n5-card.is-bonus .n5-tag{background:#fa7acf}
html body .n5-card.is-coupon .n5-tag{background:#8b5cf6}
html body .n5-card.is-secret .n5-tag{background:#ff7a1a}
html body .n5-old{flex:1;min-width:0;font:600 12px/1.2 Montserrat,Arial,sans-serif;color:#9aa5b6;text-decoration:line-through;white-space:nowrap;overflow:hidden}
html body .n5-ic{flex:none;width:32px;height:32px;display:block;object-fit:contain}

/* кнопка */
html body .n5-cta{position:relative;z-index:5;margin-top:28px}
html body .n5-btn{position:relative;display:flex;align-items:stretch;width:400px;height:76px;padding:0;border:0;border-radius:22px;overflow:hidden;background:#6eb83f;color:#fff;font:800 21px/1.15 Montserrat,Arial,sans-serif;cursor:pointer;
  will-change:transform;transition:transform .22s cubic-bezier(.34,1.56,.64,1),filter .2s}
/* покачивание на обертке, а наведение и нажатие на самой кнопке: анимации не мешают друг другу и не дергаются */
/* наведение ловит неподвижная обертка .n5-cta, а не качающаяся кнопка: у края кнопки состояние не мигает */
html body .n5-cta{cursor:pointer}
html body .n5-cta:has(.n5-btn[aria-busy="true"]){cursor:default}
html body .n5-sw{display:block;pointer-events:none;animation:n5-sway 1.6s ease-in-out infinite;will-change:transform}
html body .n5-cta:hover .n5-sw,html body .n5-cta:has(.n5-btn[aria-busy="true"]) .n5-sw{animation-play-state:paused}
html body .n5-btn-l{flex:1;display:flex;align-items:center;justify-content:center;padding:0 14px;text-align:center}
html body .n5-btn.is-long .n5-btn-l{font-size:17px}
html body .n5-btn-r{flex:none;width:104px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#4c9a26;line-height:1}
html body .n5-btn-r b{font-size:28px;font-weight:900}
html body .n5-btn-r small{margin-top:4px;font-size:12px;font-weight:700;opacity:.95}
@media (hover:hover){html body .n5-cta:hover .n5-btn:not([aria-busy="true"]){transform:translateY(-3px) scale(1.02);filter:brightness(1.07)}}
html body .n5-cta:active .n5-btn:not([aria-busy="true"]),html body .n5-cta.is-press .n5-btn:not([aria-busy="true"]){transform:scale(.95);filter:brightness(.97);transition-duration:.08s}
html body .n5-btn[aria-busy="true"]{cursor:default}
html body .n5-btn:focus-visible{outline:3px solid #ffd36b;outline-offset:3px}
html body .n5-cursor{position:absolute;left:258px;top:46px;z-index:6;width:64px;height:64px;pointer-events:auto;cursor:pointer;overflow:visible;will-change:transform}
html body .n5-cw{opacity:0;transform-origin:0 0;animation:n5-cwv 1.6s linear infinite}
html body .n5-cw2{animation-delay:.08s}
html body .n5-cm{animation:n5-cm 1.6s ease-in-out infinite}
html body .n5-ctr{animation:n5-ctr 1.6s ease-in-out infinite}

/* счетчики */
html body .n5-stats{margin-top:24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px}
html body .n5-st{display:flex;align-items:center;gap:12px;height:64px;padding:10px 10px 10px 16px;border-radius:12px}
html body .n5-st-lab{font:600 16px/20px Montserrat,Arial,sans-serif;white-space:nowrap}
html body .n5-st-cd{background:var(--n5-card-cd)} html body .n5-st-cd .n5-st-lab{color:var(--n5-lab-cd)}
html body .n5-st-free{background:var(--n5-card-free)} html body .n5-st-free .n5-st-lab{color:var(--n5-lab-free)}
html body .n5-st-win{background:var(--n5-card-win)} html body .n5-st-win .n5-st-lab{color:var(--n5-lab-win)}
html body .n5-pill{flex:none;display:flex;align-items:center;gap:8px;height:44px;padding:0 20px;border-radius:12px;color:#fff;font:700 16px/20px Montserrat,Arial,sans-serif;white-space:nowrap}
html body .n5-pill svg{flex:none;width:18px;height:18px}
html body .n5-pill-cd{background:#8f9cb0}
html body .n5.is-free .n5-pill-cd{background:#6eb83f}
html body .n5-pill-free{background:#6eb83f}
html body .n5-pill-win{background:#268bf3}
html body .n5-num{display:inline-flex}
html body .n5-num i{display:inline-block;font-style:normal;text-align:center}
html body .n5-num i.d{width:.7em}

@keyframes n5-tw{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.6);opacity:.55}}
@keyframes n5-fl{0%,100%{transform:translateY(0) rotate(0deg)}50%{transform:translateY(-16px) rotate(10deg)}}
@keyframes n5-bord{to{transform:translateX(-50%)}}
@keyframes n5-pulse{0%,100%{opacity:.7;transform:scale(1)}50%{opacity:1;transform:scale(1.06)}}
@keyframes n5-cf{0%{transform:translateY(0) rotate(0);opacity:0}15%{opacity:.9}100%{transform:translateY(78px) rotate(300deg);opacity:0}}
@keyframes n5-rot{to{transform:rotate(360deg)}}
@keyframes n5-sp{0%{transform:translate(0,0) scale(1) rotate(0);opacity:1}100%{transform:translate(var(--dx),var(--dy)) scale(.3) rotate(220deg);opacity:0}}
@keyframes n5-gem{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes n5-gemb{0%,100%{transform:rotate(180deg) translateY(0)}50%{transform:rotate(180deg) translateY(-3px)}}
@keyframes n5-shine{0%{transform:translateX(-120%) skewX(-20deg)}60%,100%{transform:translateX(480%) skewX(-20deg)}}
@keyframes n5-sway{0%,100%{transform:rotate(0)}18%{transform:rotate(-1.2deg)}36%{transform:rotate(1.2deg)}52%{transform:rotate(0)}60%{transform:translateY(3px) scale(.97)}72%{transform:none}}
@keyframes n5-cwv{0%,56%{transform:translate(490px,146px) scale(.78);opacity:0}62%{opacity:1}86%{transform:translate(490px,146px) scale(1.14)}92%,100%{transform:translate(490px,146px) scale(1.14);opacity:0}}
@keyframes n5-cm{0%,58%,100%{transform:translate(0,0)}25%{transform:translate(-44px,-18px)}}
@keyframes n5-ctr{0%,58%,100%{opacity:.1}25%{opacity:1}}


/* телефон */
@media (max-width:767px){
  html body main .n5{padding:0 0 8px!important}
  html body .n5 .n5-crumbs{margin-top:8px}
  html body .n5-head{display:block;margin-top:12px;padding:0;width:100%}
  html body .n5-title{font-size:36px;line-height:1.08;white-space:normal}
  html body .n5-title .n5-luck-w{display:table;margin:0 auto}
  html body .n5-head{overflow:visible;max-width:100%}
  html body .n5-h3d,html body .n5-h3d-rw{display:none}
  html body .n5-luck-w::before,html body .n5-luck-w::after{content:"";position:absolute;top:-4px;width:50px;height:50px;will-change:transform;background:center/contain no-repeat;animation:n5-fl 6s ease-in-out infinite}
  html body .n5-luck-w::before{left:-74px;top:-2px;width:56px;height:56px;background-image:url(/assets/img/stars.webp);--r:-12deg}
  html body .n5-luck-w::after{right:-70px;top:0;background-image:url(/assets/img/gift.webp);--r:10deg;animation-duration:6.6s}
  html body .n5-sp-1{left:-14px;top:-4px;width:16px;height:16px}
  html body .n5-sp-2{right:-16px;top:-8px;width:18px;height:18px}
  html body .n5-sp-3{display:none}
  html body .n5-lead{margin-top:14px;font-size:14px;text-wrap:balance}
  html body .n5-frame{margin-top:20px;border-radius:28px;padding:3px}
  html body .n5-panel{height:288px;border-radius:25px;--n5-cy:150px}
  html body .n5-view{top:56px;height:220px}
  html body .n5-strip{gap:18px;padding-top:12px}
  html body .n5-card{width:132px;height:172px}
  html body .n5-card-in{padding:8px;border-radius:16px;gap:4px}
  html body .n5-card-img{height:66px;border-radius:10px}
  html body .n5-card-name{font-size:13px}
  html body .n5-card-sub{font-size:11px}
  html body .n5-card-ft{gap:6px}
  html body .n5-tag{font-size:12px;padding:3px 7px;border-radius:7px}
  html body .n5-old{font-size:11px}
  html body .n5-ic{width:26px;height:26px}
  html body .n5-fade{width:40px}
  html body .n5-gem{width:42px;height:32px;margin-left:-21px}
  html body .n5-gem-t{top:6px}
  html body .n5-gem-b{top:248px}
  html body .n5-fl-d{display:none}
  html body .n5-rays{width:420px;height:420px;margin:-210px 0 0 -210px}
  html body .n5-cta{margin-top:20px;width:100%}
  html body .n5-sw{width:100%}
  html body .n5-btn{width:100%;height:68px;border-radius:20px;font-size:19px}
  html body .n5-btn-r{width:92px}
  html body .n5-btn-r b{font-size:26px}
  html body .n5-cursor{left:calc(50% + 46px);top:40px;width:56px;height:56px}
  html body .n5.is-long-label .n5-cursor{display:none}
  html body .n5-stats{margin-top:20px;width:100%;flex-direction:column;align-items:stretch;gap:8px}
  html body .n5-st{justify-content:space-between;height:52px;padding:8px 8px 8px 16px;border-radius:12px}
  html body .n5-st-lab{font-size:13px}
  html body .n5-pill{height:36px;padding:0 12px;border-radius:12px;font-size:14px;gap:6px}
  html body .n5-pill svg{width:16px;height:16px}
}
@media (prefers-reduced-motion:reduce){
  html body .n5 *,html body .n5 *::before,html body .n5 *::after{animation:none!important}
}

/* подсказка шанса в «Возможном выигрыше»: светлее, легче для видеокарты */
html body .g-prz .g-pz .t997-tip{background:linear-gradient(180deg,rgba(64,82,116,.58) 0%,rgba(52,68,98,.7) 100%);-webkit-backdrop-filter:blur(6px) saturate(1.15);backdrop-filter:blur(6px) saturate(1.15);text-shadow:0 1px 2px rgba(16,24,40,.35)}
html[data-theme="dark"] body .g-prz .g-pz .t997-tip{background:linear-gradient(180deg,rgba(44,56,80,.66) 0%,rgba(36,46,66,.78) 100%)}
html body .g-prz .g-pz .t997-tip-cap,html body .g-prz .g-pz .t997-tip-odds{color:rgba(255,255,255,.85)}
html body .g-prz .g-pz .t997-tip-bar{background:rgba(255,255,255,.28)}
html body .g-prz .g-pz:hover .t997-tip[data-rarity="legendary"] .t997-tip-bar>i,html body .g-prz .g-pz:focus-visible .t997-tip[data-rarity="legendary"] .t997-tip-bar>i,html body .g-prz .g-pz.is-tip .t997-tip[data-rarity="legendary"] .t997-tip-bar>i{animation-name:n5-leg}
@keyframes n5-leg{0%,100%{opacity:.75}50%{opacity:1}}

/* весь сайт: место под полосу прокрутки всегда зарезервировано, шапка и поиск не прыгают
   при переходах между страницами и при открытии окон */
html{scrollbar-gutter:stable}

/* «Возможный выигрыш»: нажатие на карточку игры открывает ее страницу */
html body .g-prz .g-pz.n5-pz-go{cursor:pointer}

/* кнопка «Инфо» справа от «Сегодня выиграли»: та же кнопка, что у колеса PlayPapa (.t5-info), по высоте плашек */
html body .n5-info{flex:none;display:grid;place-items:center;width:64px;height:64px;padding:0;border:0;border-radius:12px;background:#fff2e6;color:#ff8d28;cursor:pointer;transition:background .2s}
html body .n5-info:hover{background:#ffe6cc}
html body .n5-info:focus-visible{outline:2px solid #ff8d28;outline-offset:2px}
html body .n5-info svg{display:block;width:22px;height:22px}
html[data-theme="dark"] body .n5-info{background:#2b2219}
html[data-theme="dark"] body .n5-info:hover{background:#3d2a17}
@media (max-width:767px){
  html body .n5-stats{display:grid;grid-template-columns:minmax(0,1fr) 52px}
  html body .n5-st-cd,html body .n5-st-free{grid-column:1/-1}
  html body .n5-info{width:52px;height:52px;border-radius:12px}
  html body .n5-info svg{width:20px;height:20px}
}
/* узкие телефоны (360): «Сегодня выиграли» с пилюлей и кнопкой «Инфо» не влезали в строку */
@media (max-width:374px){
  html body .n5-st{gap:8px;padding-left:12px}
  html body .n5-pill{padding:0 10px;gap:5px}
  html body .n5-st-lab{font-size:12px}
}
