/* Правки по макетам Никиты: только то, что в документе. Цвета, шрифты и отступы сайтовые */

/* 1.1 Точки слайдера под баннером */
html body .hero {
  overflow: visible;
  margin-bottom: 34px;
}
html body .hero .pp-hero-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: inherit;
}
html body .hero .pp-hero-link {
  display: block;
  width: 100%;
  height: 100%;
}
html body .hero .pp-hero-track:has(.hero-slide.is-on .pp-hero-link) .hero-shade {
  opacity: 0;
}
html body .hero .hero-shade {
  transition: opacity 0.3s ease-in-out;
}
html body .hero .pp-hero-link img {
  width: 100%;
  height: 100%;
}
html body .hero .pp-dots {
  position: absolute;
  left: 50%;
  top: calc(100% + 9px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  z-index: 2;
}
html body .hero .pp-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid rgba(58, 68, 86, 0.35);
  background: transparent;
  cursor: pointer;
  transition:
    width 0.3s ease-in-out,
    border-color 0.2s;
}
html body .hero .pp-dots button:not(.is-on):hover {
  background: transparent;
  border-color: #268bf3;
}
html body .hero .pp-dots button.is-on {
  width: 26px;
  background: transparent;
  border-color: #268bf3;
}
html body .hero .pp-dots button.is-on::after {
  background: #268bf3;
  border-radius: inherit;
}
html[data-theme="dark"] body .hero .pp-dots button {
  border-color: rgba(227, 232, 239, 0.35);
}
html[data-theme="dark"] body .hero .pp-dots button.is-on,
html[data-theme="dark"] body .hero .pp-dots button:not(.is-on):hover {
  border-color: #268bf3;
}
html[data-device="mobile"] body .hero {
  margin-bottom: 24px;
}
html[data-device="mobile"] body .hero .pp-dots {
  top: calc(100% + 8px);
  gap: 5px;
}
html[data-device="mobile"] body .hero .pp-dots button {
  width: 8px;
  height: 8px;
}
html[data-device="mobile"] body .hero .pp-dots button.is-on {
  width: 22px;
}
html[data-device="mobile"] body .hero .hero-nav {
  display: none;
}

/* 1.2 Баннер «Испытай удачу» синий */
html body a.wheel {
  background: linear-gradient(350deg, #1b6fd6 0%, #268bf3 30%, #4aa6ff 70%, #7cc4ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 24px rgba(38, 139, 243, 0.22);
}
html body a.wheel .wl > h3,
html body a.wheel .wtxt {
  text-shadow: 0 2px 10px rgba(10, 60, 140, 0.3);
}
html body a.wheel .wpill {
  box-shadow:
    0 6px 16px rgba(10, 60, 140, 0.22),
    inset 0 -2px 0 rgba(38, 139, 243, 0.12);
}
html body a.wheel .wfree {
  box-shadow: 0 6px 18px rgba(10, 60, 140, 0.18);
}
html body a.wheel .wimg {
  box-shadow:
    0 0 0 0 transparent,
    0 10px 40px rgba(255, 255, 255, 0.45),
    0 0 70px rgba(170, 215, 255, 0.6);
}
html body a.wheel .wimg > .w {
  filter: drop-shadow(0 6px 14px rgba(10, 60, 140, 0.25));
}

/* 2.1 Строка из трех счетчиков под колесом */
html body .pp-wstats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 12px;
  margin: 16px 0 20px;
}
html body .pp-ws {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: 12px;
  background: #eef1f6;
}
html body .pp-ws small {
  max-width: 120px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  color: #687388;
}
html body .pp-ws-v {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
html body .pp-ws-v svg {
  flex: none;
  width: 18px;
  height: 18px;
}
html body .pp-ws-v.is-time {
  background: #8f9cb0;
}
html body .pp-ws-v.is-time svg {
  color: rgba(255, 255, 255, 0.35);
}
html body .pp-ws-v.is-free {
  background: #6eb83f;
}
html body .pp-ws-v.is-win {
  background: #268bf3;
}
html[data-theme="dark"] body .pp-ws {
  background: #1a1f28;
}
html[data-theme="dark"] body .pp-ws small {
  color: #8f9cb0;
}
html[data-theme="dark"] body .pp-ws-v.is-time {
  background: #3a4456;
}
html body .g-wheel .tr,
html body section .tr:has([data-wheel-winners-count]) {
  display: none;
}
html[data-device="mobile"] body .pp-wstats {
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 12px 0 0;
}
html[data-device="mobile"] body .pp-ws {
  justify-content: space-between;
  padding: 6px 6px 6px 12px;
  border-radius: 10px;
}
html[data-device="mobile"] body .pp-ws small {
  max-width: none;
}
html[data-device="mobile"] body .pp-ws-v {
  height: 32px;
  font-size: 14px;
  border-radius: 8px;
}

/* 2.3-2.6 Карточка шанса на призе */
html body .g-pz[data-pp-chance] {
  position: relative;
  outline: none;
}
html body .g-pz .pp-chance {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  border-radius: inherit;
  text-align: center;
  background: linear-gradient(180deg, #2b3240 0%, #1e242f 100%);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  pointer-events: none;
}
html body .g-pz .pp-chance em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e3e8ef;
}
html body .g-pz .pp-chance small {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(227, 232, 239, 0.7);
}
html body .g-pz .pp-chance strong {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}
html body .g-pz .pp-chance--legend em {
  color: #ffc93c;
}
html body .g-pz .pp-chance--rare em {
  color: #5aa8ff;
}
html body .g-pz .pp-chance--uncommon em {
  color: #ff9a3d;
}
@media (hover: hover) {
  html body .g-pz[data-pp-chance]:hover .pp-chance {
    opacity: 1;
    visibility: visible;
  }
}
html body .g-pz[data-pp-chance]:focus-visible .pp-chance,
html body .g-pz[data-pp-chance].is-chance .pp-chance {
  opacity: 1;
  visibility: visible;
}
html[data-device="mobile"] body .g-pz .pp-chance strong {
  font-size: 26px;
}

/* 3.1 Карточка «Испытай свою удачу» на пополнении Steam и подарочных карт */
html body .pp-luck {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px 0 16px;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(170deg, #268bf3 0%, #4aa6ff 55%, #b9dcff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 24px rgba(38, 139, 243, 0.2);
}
html:not([data-device="mobile"]) body .g-st-bot > .pp-luck {
  width: 261px;
  align-self: stretch;
  contain: size;
}
html body .pp-luck-t {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 0 16px;
}
html body .pp-luck-t b {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(10, 60, 140, 0.3);
}
html body .pp-luck-t span {
  display: inline-flex;
  align-items: center;
  padding: 2px 12px 4px;
  border-radius: 12px;
  background: #fff;
  color: #ff6a14;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(10, 60, 140, 0.2);
}
html body .pp-luck-strip {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
html body .pp-luck-row {
  display: flex;
  gap: 8px;
  width: max-content;
  height: 100%;
  padding: 0 12px;
}
html body .pp-luck-row.is-run {
  animation: pp-luck-run var(--pp-luck-dur, 30s) linear infinite;
}
html body .pp-luck:hover .pp-luck-row.is-run {
  animation-play-state: paused;
}
@keyframes pp-luck-run {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  html body .pp-luck-row.is-run {
    animation: none;
  }
}
html body .pp-luck-it {
  flex: none;
  display: flex;
  flex-direction: column;
  width: 96px;
  height: 100%;
  max-height: 112px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  color: #202838;
  overflow: hidden;
}
html body .pp-luck-it.is-or {
  background: #fff3e6;
}
html body .pp-luck-it.is-vi {
  background: #f3effe;
}
html body .pp-luck-it i {
  flex: 1 1 auto;
  min-height: 30px;
  border-radius: 6px;
  background: #eef1f6 center/cover no-repeat;
}
html body .pp-luck-it.is-ct i {
  background-color: transparent;
  background-size: contain;
}
html body .pp-luck-it b {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html body .pp-luck-it small {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  color: #687388;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html body .pp-luck-it.is-ghost {
  background: rgba(255, 255, 255, 0.45);
}
html body .pp-luck-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin: 0 16px;
  padding: 0 28px;
  border-radius: 12px;
  background: #6eb83f;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(76, 154, 38, 0.3);
  transition: filter 0.15s;
}
html body .pp-luck:hover .pp-luck-btn {
  filter: brightness(1.06);
}
html[data-theme="dark"] body .pp-luck {
  background: linear-gradient(170deg, #1b6fd6 0%, #268bf3 55%, #6fb7ff 100%);
  box-shadow: none;
}
html[data-device="mobile"] body .pp-luck {
  width: 100%;
  height: 272px;
  border-radius: 10px;
}
html[data-device="mobile"] body .pp-luck-it {
  width: 104px;
  max-height: 124px;
}
html[data-device="mobile"] body .pp-luck-btn {
  align-self: stretch;
}

/* 4.2 Реферальная ссылка целиком в поле */
html body .g-link .field {
  min-width: 0;
}
html body .g-link .field [data-referral-code-value] {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 5 Фильтр слева: разделы сворачиваются, жанры свернуты по умолчанию */
html body .g-flt .pp-fg > h4 {
  cursor: pointer;
  user-select: none;
}
html body .g-flt .pp-fg > h4 svg {
  transition: transform 0.2s ease;
}
html body .g-flt .pp-fg.is-closed > h4 svg {
  transform: rotate(180deg);
}
html body .g-flt .pp-fg.is-closed > :not(h4) {
  display: none !important;
}
html body .g-flt .pp-fg.is-closed {
  padding-bottom: 16px;
}
html body .g-flt .pp-fg.is-closed > h4 {
  margin-bottom: 0;
}
