.page-fants .stars--mob {
  display: none;
}

.page-fants .star-item {
  overflow: visible;
  transform-origin: center;
  will-change: transform;
  animation-name: fant-star-shrink;
  animation-duration: 4s;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.2, 1);
  animation-iteration-count: infinite;
}

.page-fants .star-item img {
  animation: none;
}

.page-fants .star-item.gstar {
  animation-delay: 0s;
}

.page-fants .star-item.star {
  animation-delay: 2s;
}

.page-fants .star-item[data-star="13"],
.page-fants .star-item[data-star="14"],
.page-fants .star-item[data-star="15"],
.page-fants .star-item[data-star="16"],
.page-fants .star-item[data-star="17"],
.page-fants .star-item[data-star="18"] {
  display: none;
}

.page-fants .star-item[data-star="1"] {
  left: calc(100% * 975 / 1440);
  top: calc(100% * 62 / 750);
  width: calc(100% * 27 / 1440);
  height: calc(100% * 27 / 750);
}

.page-fants .star-item[data-star="2"] {
  left: calc(100% * 493 / 1440);
  top: calc(100% * 181 / 750);
  width: calc(100% * 27 / 1440);
  height: calc(100% * 27 / 750);
}

.page-fants .star-item[data-star="3"] {
  left: calc(100% * 1300 / 1440);
  top: calc(100% * 91 / 750);
  width: calc(100% * 32 / 1440);
  height: calc(100% * 32 / 750);
}

.page-fants .star-item[data-star="4"] {
  left: calc(100% * 147 / 1440);
  top: calc(100% * 107 / 750);
  width: calc(100% * 32 / 1440);
  height: calc(100% * 32 / 750);
}

.page-fants .star-item[data-star="5"] {
  left: calc(100% * 1221 / 1440);
  top: calc(100% * 182 / 750);
  width: calc(100% * 16 / 1440);
  height: calc(100% * 16 / 750);
}

.page-fants .star-item[data-star="6"] {
  left: calc(100% * 449 / 1440);
  top: calc(100% * 59 / 750);
  width: calc(100% * 16 / 1440);
  height: calc(100% * 16 / 750);
}

.page-fants .star-item[data-star="7"] {
  left: calc(100% * 214 / 1440);
  top: calc(100% * 153 / 750);
  width: calc(100% * 16 / 1440);
  height: calc(100% * 16 / 750);
}

.page-fants .star-item[data-star="8"] {
  left: calc(100% * 1316 / 1440);
  top: calc(100% * 252 / 750);
  width: calc(100% * 56 / 1440);
  height: calc(100% * 56 / 750);
}

.page-fants .star-item[data-star="9"] {
  left: calc(100% * 67 / 1440);
  top: calc(100% * 45 / 750);
  width: calc(100% * 56 / 1440);
  height: calc(100% * 56 / 750);
}

.page-fants .star-item[data-star="10"] {
  left: calc(100% * 1231 / 1440);
  top: calc(100% * 17 / 750);
  width: calc(100% * 56 / 1440);
  height: calc(100% * 56 / 750);
}

.page-fants .star-item[data-star="11"] {
  left: calc(100% * 1255 / 1440);
  top: calc(100% * 173 / 750);
  width: calc(100% * 52 / 1440);
  height: calc(100% * 52 / 750);
}

.page-fants .star-item[data-star="12"] {
  left: calc(100% * 95 / 1440);
  top: calc(100% * 193 / 750);
  width: calc(100% * 52 / 1440);
  height: calc(100% * 52 / 750);
}

.fants-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.fants-scene picture,
.fants-scene img {
  width: 100%;
  height: 100%;
}

.fants-scene picture {
  display: block;
  width: 100%;
  height: 100%;
}

.fants-scene img {
  object-fit: cover;
  object-position: center bottom;
}

.page-fants .snow--scene {
  z-index: 3;
}

.fants-glow {
  --pack-scale: min(1.32, calc(1 + var(--scene-extra, 0px) / 632.4px));
  position: absolute;
  left: 432px;
  top: calc(235px + var(--scene-extra, 0px));
  width: 549px;
  height: 479px;
  z-index: 3;
  pointer-events: none;
  transform: scale(var(--pack-scale));
  transform-origin: center bottom;
}

.fants-glow img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.fants-pack {
  --fants-card-tuck: 26px;
  --pack-scale: min(1.32, calc(1 + var(--scene-extra, 0px) / 632.4px));
  position: absolute;
  left: 498px;
  top: calc(307px + var(--scene-extra, 0px));
  width: 459.5px;
  height: 632.4px;
  z-index: 4;
  isolation: isolate;
  overflow: visible;
  transform: scale(var(--pack-scale));
  transform-origin: center bottom;
}

.fants-pack__back,
.fants-pack__front {
  position: absolute;
  left: -14.3%;
  top: 26.72%;
  width: 123.83%;
  height: 72.98%;
  pointer-events: none;
}

.fants-pack__back {
  z-index: 1;
}

.fants-pack__front {
  z-index: 5;
}

.fants-pack__back img,
.fants-pack__front img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
}

.fants-card {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  animation-duration: 1500ms;
  animation-timing-function: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  animation-iteration-count: infinite;
  animation-direction: alternate;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
}

.fants-card[disabled],
.fants-card[aria-disabled="true"] {
  pointer-events: none;
  cursor: default;
  opacity: 0.42;
}

.fants-card:active,
.fants-card.is-pressed {
  background: transparent;
  outline: none;
  animation-play-state: paused;
}

.fants-card:active .fants-card__inner,
.fants-card.is-pressed .fants-card__inner {
  filter:
    drop-shadow(0 0 16px #fff8dc)
    drop-shadow(0 0 32px #e9dbb2);
  transition-duration: 0.12s;
}

.fants-card--true:active .fants-card__inner,
.fants-card--true.is-pressed .fants-card__inner {
  transform: rotate(-10.1deg) scale(1.08);
}

.fants-card--action:active .fants-card__inner,
.fants-card--action.is-pressed .fants-card__inner {
  transform: rotate(11.63deg) scale(1.08);
}

.fants-card__inner {
  flex: none;
  transition: filter 0.35s ease, transform 0.35s cubic-bezier(0.45, 0.05, 0.2, 1);
}

.fants-card__inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.fants-card--true {
  left: 3.71%;
  top: -0.04%;
  width: 49.56%;
  height: 46.11%;
  z-index: 4;
  animation-name: fants-card-true;
}

.fants-card--true .fants-card__inner {
  width: 80.98%;
  height: 90.31%;
  transform: rotate(-10.1deg);
}

.fants-card--action {
  left: calc(37.65% - 5px);
  top: 2.69%;
  width: 50.17%;
  height: 46.04%;
  z-index: 2;
  animation-name: fants-card-action;
}

.fants-card-shadow {
  position: absolute;
  inset: 12.93% 39.3% 52.67% 42.95%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  container-type: size;
  mix-blend-mode: multiply;
  animation-name: fants-card-true;
  animation-duration: 1500ms;
  animation-timing-function: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.fants-card-shadow__inner {
  position: relative;
  flex: none;
  width: hypot(44.0582cqw, 96.4022cqh);
  height: hypot(55.9418cqw, 3.59779cqh);
  overflow: hidden;
  opacity: 0.6;
  transform: rotate(-99.73deg);
}

.fants-card-shadow img {
  position: absolute;
  left: 0;
  top: -9.17%;
  width: 100%;
  height: 163.98%;
  max-width: none;
  object-fit: cover;
}

@keyframes fants-card-true {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(var(--fants-card-tuck, 26px));
  }
}

@keyframes fants-card-action {
  from {
    transform: translateY(var(--fants-card-tuck, 26px));
  }

  to {
    transform: translateY(0);
  }
}

.fants-card--action .fants-card__inner {
  width: 78.91%;
  height: 89.24%;
  transform: rotate(11.63deg);
}

@media (hover: hover) and (pointer: fine) {
  .fants-card:hover,
  .fants-card:focus-visible {
    outline: none;
  }

  .fants-card:hover .fants-card__inner,
  .fants-card:focus-visible .fants-card__inner {
    filter:
      drop-shadow(0 0 16px #fff8dc)
      drop-shadow(0 0 40px #f5e6b8)
      drop-shadow(0 0 72px #e9dbb2);
  }

  .fants-card--true:hover .fants-card__inner,
  .fants-card--true:focus-visible .fants-card__inner {
    transform: rotate(-10.1deg) scale(1.06);
  }

  .fants-card--action:hover .fants-card__inner,
  .fants-card--action:focus-visible .fants-card__inner {
    transform: rotate(11.63deg) scale(1.06);
  }
}

.fants-back,
.fants-rules {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: "Congenial Cyrillic BETA", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: normal;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.fants-back:focus-visible,
.fants-rules:focus-visible,
.fants-back:active,
.fants-rules:active {
  outline: none;
  background: transparent;
}

.fants-back__icon,
.fants-rules__icon {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: #fff;
  background: url("../images/buttons/glass.webp") center / 100% 100% no-repeat;
}

.fants-back__icon svg,
.fants-rules__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.fants-back {
  position: absolute;
  left: 297px;
  top: 40px;
  z-index: 8;
}

.fants-rules {
  position: absolute;
  left: 491px;
  top: 273px;
  z-index: 10;
  width: 451px;
  justify-content: center;
}

.fants-down-snow {
  display: none;
}

.page-fants .scene-scaler,
.page-fants .scene {
  overflow: visible;
}

.fants-text {
  position: absolute;
  left: 491px;
  top: 30px;
  width: 451px;
  height: auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.fants-logo {
  position: relative;
  z-index: 2;
  width: 90px;
  height: 45px;
  flex-shrink: 0;
}

.fants-title {
  position: relative;
  z-index: 1;
  width: 451px;
  height: 162px;
  margin: 0;
  font-family: "Lorrach BETA", sans-serif;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: transparent;
}

.fants-title__main {
  display: contents;
}

.fants-title__soft,
.fants-title__nye,
.fants-title__name {
  position: absolute;
  display: block;
  font-size: 54px;
  background: var(--GOLD-GRAD, linear-gradient(256deg, #cead7c 13.83%, #fff2cb 68.88%));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fants-title__soft {
  left: 21px;
  top: 0;
  width: 410px;
}

.fants-title__nye {
  left: 0;
  top: 54px;
  width: 451px;
}

.fants-title__name {
  left: 21px;
  top: 108px;
  width: 410px;
}

.fant-popup {
  position: fixed;
  inset: 0;
  z-index: 20;
  visibility: hidden;
  pointer-events: none;
}

.fant-popup.is-open {
  visibility: visible;
  pointer-events: auto;
}

.fant-popup__dim {
  position: absolute;
  inset: 0;
  background: #472c7c;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fant-popup.is-open .fant-popup__dim {
  opacity: 0.92;
}

.fant-popup__frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1440px;
  height: 750px;
  margin-left: -720px;
  margin-top: -375px;
  transform: scale(var(--scene-scale));
}

.fant-popup__stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease 0.05s;
}

.fant-popup__stars--mob {
  display: none;
}

.fant-popup.is-open .fant-popup__stars,
.fant-popup.is-card-in .fant-popup__stars {
  opacity: 1;
}

.fant-popup__star {
  position: absolute;
  overflow: visible;
  transform-origin: center;
  will-change: transform;
  animation-name: fant-star-shrink;
  animation-duration: 4s;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.2, 1);
  animation-iteration-count: infinite;
}

.fant-popup__star img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes fant-star-shrink {
  0%,
  50%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(0.2);
  }
}

.fant-popup__star.gstar {
  animation-delay: 0s;
}

.fant-popup__star.star {
  animation-delay: 2s;
}

.fant-popup__star.gstar img {
  filter: drop-shadow(0 0 6px rgba(233, 219, 178, 0.45));
}

.fant-popup__star.star img {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.fant-popup__glow {
  position: absolute;
  left: 475px;
  top: 50px;
  width: 479px;
  height: 561px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.fant-popup.is-card-in .fant-popup__glow {
  opacity: 1;
  transform: none;
}

.fant-popup__glow img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  mix-blend-mode: screen;
}

.fant-popup__stage {
  position: absolute;
  left: 564px;
  top: 115px;
  width: 302px;
  height: 431px;
  z-index: 3;
  perspective: 1400px;
  opacity: 0;
  transform: scale(0.86) translateY(28px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.fant-popup.is-card-in .fant-popup__stage {
  opacity: 1;
  transform: none;
}

.fant-popup__card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.45, 0.05, 0.2, 1);
}

.fant-popup.is-flipped .fant-popup__card {
  transform: rotateY(180deg);
}

.fant-popup__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 28px;
  overflow: hidden;
}

.fant-popup__face img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.fant-popup__face--back {
  transform: rotateY(180deg);
}

.fant-popup__task {
  position: absolute;
  left: 0;
  top: 46.5%;
  width: 100%;
  height: 37.5%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14%;
  pointer-events: none;
}

.fant-popup__question {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  font-family: "Lorrach BETA", sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  color: #fff;
}

.fant-popup__done {
  position: absolute;
  left: 50%;
  top: 586px;
  z-index: 4;
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: background 0.25s ease, opacity 0.4s ease, transform 0.4s ease;
}

.fant-popup.is-card-in .fant-popup__done {
  opacity: 1;
  transform: translateX(-50%);
}

.fant-popup__nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  z-index: 5;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.fant-popup .fant-popup__back {
  position: static;
  left: auto;
  top: auto;
  display: none;
  pointer-events: none;
}

.fant-popup.is-card-in .fant-popup__back,
.fant-popup.is-choice .fant-popup__back {
  display: flex;
  position: static;
  left: auto;
  top: auto;
  pointer-events: auto;
}

.fant-popup__choice {
  position: absolute;
  left: 329px;
  top: 142px;
  width: 748px;
  height: 466px;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.92) translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.fant-popup.is-choice .fant-popup__choice {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.fant-popup.is-choice .fant-popup__glow,
.fant-popup.is-choice .fant-popup__stage,
.fant-popup.is-choice .fant-popup__done {
  opacity: 0;
  pointer-events: none;
}

.fant-popup__hint {
  position: absolute;
  left: 50%;
  top: 628px;
  z-index: 4;
  width: min(680px, 78%);
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  font-family: "Congenial Cyrillic BETA", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 16px rgba(47, 24, 90, 0.55);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.fant-popup.is-choice.is-forced .fant-popup__hint {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%);
}

.fant-popup__pick {
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.45, 0.05, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
}

.fant-popup__pick:active,
.fant-popup__pick.is-pressed {
  background: transparent;
  outline: none;
  z-index: 2;
  transform: scale(1.08);
  transition-duration: 0.12s;
}

.fant-popup__pick:active .fant-popup__pick-img,
.fant-popup__pick.is-pressed .fant-popup__pick-img {
  animation-play-state: paused;
  filter:
    drop-shadow(0 0 16px #fff8dc)
    drop-shadow(0 0 32px #e9dbb2);
}

.fant-popup__pick--true {
  left: 0.27%;
  top: 0;
  width: 46.66%;
  height: 100%;
}

.fant-popup__pick--action {
  left: 56.42%;
  top: 4.52%;
  width: 43.07%;
  height: 92.11%;
}

.fant-popup.is-forced .fant-popup__pick--true,
.fant-popup.is-forced .fant-popup__pick--action {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.fant-popup.is-forced .fant-popup__pick--true:active,
.fant-popup.is-forced .fant-popup__pick--true.is-pressed,
.fant-popup.is-forced .fant-popup__pick--action:active,
.fant-popup.is-forced .fant-popup__pick--action.is-pressed {
  transform: translate(-50%, -50%) scale(1.08);
}

.fant-popup__pick-glow {
  position: absolute;
  inset: -18% -22%;
  z-index: 0;
  pointer-events: none;
}

.fant-popup__pick-glow img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  mix-blend-mode: screen;
}

.fant-popup__pick-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  transform-origin: center;
  will-change: transform;
  filter: drop-shadow(0 0 23px #e9dbb2);
  transition: filter 0.35s ease;
}

.fant-popup__pick--true .fant-popup__pick-img {
  transform: rotate(-6deg);
}

.fant-popup__pick--action .fant-popup__pick-img {
  transform: rotate(6deg);
}

.fant-popup.is-choice .fant-popup__pick--true .fant-popup__pick-img,
.fant-popup.is-choice .fant-popup__pick--action .fant-popup__pick-img {
  animation-duration: 3.4s;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.fant-popup.is-choice .fant-popup__pick--true .fant-popup__pick-img {
  animation-name: fant-pick-pulse-true;
}

.fant-popup.is-choice .fant-popup__pick--action .fant-popup__pick-img {
  animation-name: fant-pick-pulse-action;
}

@media (hover: hover) and (pointer: fine) {
  .fant-popup__pick:hover,
  .fant-popup__pick:focus-visible {
    z-index: 2;
    transform: scale(1.1);
  }

  .fant-popup.is-forced .fant-popup__pick--true:hover,
  .fant-popup.is-forced .fant-popup__pick--true:focus-visible,
  .fant-popup.is-forced .fant-popup__pick--action:hover,
  .fant-popup.is-forced .fant-popup__pick--action:focus-visible {
    transform: translate(-50%, -50%) scale(1.1);
  }

  .fant-popup__pick:hover .fant-popup__pick-img,
  .fant-popup__pick:focus-visible .fant-popup__pick-img {
    animation-play-state: paused;
    filter:
      drop-shadow(0 0 16px #fff8dc)
      drop-shadow(0 0 40px #f5e6b8)
      drop-shadow(0 0 72px #e9dbb2);
  }
}

@keyframes fant-pick-pulse-true {
  0%,
  35.29%,
  100% {
    transform: rotate(-6deg) scale(1);
  }
  17.65% {
    transform: rotate(-6deg) scale(1.2);
  }
}

@keyframes fant-pick-pulse-action {
  0%,
  35.29%,
  70.59%,
  100% {
    transform: rotate(6deg) scale(1);
  }
  52.94% {
    transform: rotate(6deg) scale(1.2);
  }
}

.fant-popup__pick:focus-visible {
  outline: none;
}

.fants-rules-popup {
  position: fixed;
  inset: 0;
  z-index: 20;
  visibility: hidden;
  pointer-events: none;
}

.fants-rules-popup.is-open {
  visibility: visible;
  pointer-events: auto;
}

.fants-rules-popup__dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #472c7c 0%, rgba(71, 44, 124, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fants-rules-popup.is-open .fants-rules-popup__dim {
  opacity: 1;
}

.fants-rules-popup__frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1440px;
  height: 750px;
  margin-left: -720px;
  margin-top: -375px;
  transform: scale(var(--scene-scale));
}

.fants-rules-popup.is-open .fant-popup__stars {
  opacity: 1;
}

.fants-rules-popup__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.45s ease 0.05s;
}

.fants-rules-popup.is-open .fants-rules-popup__body {
  opacity: 1;
}

.fants-rules-popup__back {
  position: absolute;
  left: 50%;
  top: 40px;
  z-index: 5;
  transform: translateX(-50%);
}

.fants-rules-popup__head {
  position: absolute;
  left: 509px;
  top: 120px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  width: 422px;
  text-align: center;
}

.fants-rules-popup__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-family: "Lorrach BETA", sans-serif;
  font-weight: 800;
  line-height: 0.92;
  text-align: center;
  text-transform: uppercase;
  color: transparent;
}

.fants-rules-popup__title-rules,
.fants-rules-popup__title-game {
  display: block;
  background: var(--GOLD-GRAD, linear-gradient(200deg, #cead7c 13.83%, #fff2cb 68.88%));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fants-rules-popup__title-rules {
  font-size: 34px;
}

.fants-rules-popup__title-game {
  font-size: 54px;
}

.fants-rules-popup__lead,
.fants-rules-popup__copy,
.fants-rules-popup__pass {
  margin: 0;
  font-family: "Congenial Cyrillic BETA", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: #fff;
  overflow-wrap: break-word;
}

.fants-rules-popup__lead {
  width: 442px;
  flex-shrink: 0;
}

.fants-rules-popup__pair {
  display: contents;
}

.fants-rules-popup__card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.fants-rules-popup__card--true {
  left: 359px;
  top: 254px;
  width: 175px;
  height: 212px;
}

.fants-rules-popup__card--action {
  left: 891px;
  top: 334px;
  width: 173px;
  height: 209px;
}

.fants-rules-popup__card-spin {
  position: relative;
  width: 127px;
  height: 182px;
  isolation: isolate;
  transform: rotate(-17deg);
}

.fants-rules-popup__card--action .fants-rules-popup__card-spin {
  width: 126px;
  height: 180px;
  transform: rotate(17deg);
}

.fants-rules-popup__card-glow {
  position: absolute;
  inset: -21.37% -27.01%;
  z-index: 0;
  pointer-events: none;
}

.fants-rules-popup__card-glow img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  mix-blend-mode: screen;
}

.fants-rules-popup__card-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: drop-shadow(0 0 23px #e9dbb2);
}

.fants-rules-popup__copy--true {
  position: absolute;
  left: 645px;
  top: 313px;
  z-index: 4;
  width: 265px;
}

.fants-rules-popup__copy--action {
  position: absolute;
  left: 536px;
  top: 438px;
  z-index: 4;
  width: 265px;
  text-align: right;
}

.fants-rules-popup__arrow {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.fants-rules-popup__arrow--mob {
  display: none;
}

.fants-rules-popup__arrow--true {
  left: 510px;
  top: 268px;
  width: 125px;
  height: 123px;
}

.fants-rules-popup__arrow--true img {
  width: 103px;
  height: 74px;
  transform: rotate(-137.99deg);
}

.fants-rules-popup__arrow--action {
  left: 811px;
  top: 386px;
  width: 98px;
  height: 104px;
}

.fants-rules-popup__arrow--action img {
  width: 80px;
  height: 89px;
  transform: rotate(-166.8deg);
}

.fants-rules-popup__arrow img {
  display: block;
  max-width: none;
}

.fants-rules-popup__pass {
  display: none;
  text-align: center;
}

.fants-rules-popup__note {
  position: absolute;
  left: 509px;
  top: 554px;
  z-index: 4;
  box-sizing: border-box;
  width: 422px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(218deg, #cead7c 13.83%, #fff2cb 68.88%);
  box-shadow: 0 1px 2px rgba(125, 105, 172, 0.4);
}

.fants-rules-popup__note p {
  width: 372px;
  margin: 0 auto;
  font-family: "Congenial Cyrillic BETA", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  color: #7d69ac;
}

.fants-rules-popup__note-title {
  color: #472c7c;
  text-transform: uppercase;
}

.fants-rules-popup__note-mark {
  color: #472c7c;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
}

.fants-rules-popup__note-comma {
  color: #472c7c;
}

@media (prefers-reduced-motion: reduce) {
  .fants-card,
  .fants-card-shadow {
    animation: none;
    transform: none;
  }

  .fant-popup__dim,
  .fant-popup__stars,
  .fant-popup__glow,
  .fant-popup__stage,
  .fant-popup__card,
  .fant-popup__done,
  .fant-popup__choice,
  .fant-popup__pick-img {
    transition-duration: 0.01ms;
  }

  .fant-popup.is-choice .fant-popup__pick--true .fant-popup__pick-img,
  .fant-popup.is-choice .fant-popup__pick--action .fant-popup__pick-img {
    animation: none;
  }

  .fants-rules-popup__dim,
  .fants-rules-popup__body {
    transition-duration: 0.01ms;
  }
}

@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
  .page-fants .stars--desk {
    display: none;
  }

  .page-fants .stars--mob {
    display: block;
  }

  .page-fants .star-item[data-fants-star="1"] {
    left: calc(100% * 67 / 360);
    top: calc(100% * 106 / 719);
    width: calc(100vw * 14 / 360);
    height: calc(100vw * 14 / 360);
  }

  .page-fants .star-item[data-fants-star="2"] {
    left: calc(100% * 301 / 360);
    top: calc(100% * 77 / 719);
    width: calc(100vw * 28 / 360);
    height: calc(100vw * 28 / 360);
  }

  .page-fants .star-item[data-fants-star="3"] {
    left: calc(100% * 19 / 360);
    top: calc(100% * 75 / 719);
    width: calc(100vw * 26 / 360);
    height: calc(100vw * 26 / 360);
  }

  .page-fants .star-item[data-fants-star="4"] {
    left: calc(100% * 45 / 360);
    top: calc(100% * 141 / 719);
    width: calc(100vw * 13 / 360);
    height: calc(100vw * 13 / 360);
  }

  .page-fants .star-item[data-fants-star="5"] {
    left: calc(100% * 316 / 360);
    top: calc(100% * 141 / 719);
    width: calc(100vw * 13 / 360);
    height: calc(100vw * 13 / 360);
  }

  .page-fants {
    --fants-mob-shift: 30px;
  }

  .fants-scene {
    bottom: auto;
    height: calc(var(--app-height, 100dvh) + var(--fants-mob-shift));
  }

  .page-fants .scene-scaler {
    height: calc(var(--app-height, 100dvh) + var(--fants-mob-shift));
  }

  .page-fants .fants-scene img {
    object-fit: cover;
    object-position: center bottom;
  }

  .fants-glow {
    left: 53%;
    top: auto;
    bottom: 0;
    width: min(140vw, 840px);
    height: calc(var(--app-height, 100dvh) * 0.75);
    transform: translateX(-50%);
    opacity: 0.62;
  }

  .fants-glow img {
    object-fit: fill;
    object-position: center bottom;
  }

  .fants-pack {
    left: 53%;
    top: auto;
    bottom: 0;
    width: min(86vw, 553px);
    height: auto;
    aspect-ratio: 459.5 / 632.4;
    transform: translateX(-50%);
  }

  .fants-back {
    left: max(16px, env(safe-area-inset-left));
    top: max(16px, env(safe-area-inset-top));
  }

  .fants-rules {
    left: 50%;
    top: auto;
    bottom: calc(min(28vw, 104px) + 46px);
    width: auto;
    transform: translateX(-50%);
    z-index: 7;
  }

  .fants-down-snow {
    display: block;
    position: absolute;
    left: 5.56%;
    right: 2.78%;
    bottom: 0;
    z-index: 6;
    pointer-events: none;
  }

  .fants-down-snow img {
    width: 100%;
    height: auto;
    max-width: none;
    aspect-ratio: 330 / 99.1;
    object-fit: fill;
  }

  .fants-text {
    left: 50%;
    top: calc(max(20px, env(safe-area-inset-top)) + 30px);
    width: min(720px, calc(100vw - 32px));
    height: auto;
    transform: translateX(-50%);
    gap: clamp(12px, 2.4vw, 20px);
  }

  .fants-logo {
    width: clamp(72px, 22vw, 90px);
    height: auto;
    aspect-ratio: 90 / 45;
  }

  .fants-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
  }

  .fants-title__soft,
  .fants-title__nye,
  .fants-title__name {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    font-size: clamp(34px, 11.8vw, 54px);
  }

  .fants-title__main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0.22em;
    width: 100%;
  }

  .fant-popup__frame {
    inset: 0;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    margin: 0;
    transform: none;
  }

  .fant-popup__stars--desk {
    display: none;
  }

  .fant-popup__stars--mob {
    display: block;
  }

  .fant-popup__star[data-mob-star="1"] {
    left: calc(100% * 37 / 360);
    top: calc(100% * 65 / 671);
    width: calc(100vw * 30 / 360);
    height: calc(100vw * 30 / 360);
  }

  .fant-popup__star[data-mob-star="2"] {
    left: calc(100% * 286 / 360);
    top: calc(100% * 517 / 671);
    width: calc(100vw * 19 / 360);
    height: calc(100vw * 19 / 360);
  }

  .fant-popup__star[data-mob-star="3"] {
    left: calc(100% * 326 / 360);
    top: calc(100% * 443 / 671);
    width: calc(100vw * 19 / 360);
    height: calc(100vw * 19 / 360);
  }

  .fant-popup__star[data-mob-star="4"] {
    left: calc(100% * 7 / 360);
    top: calc(100% * 344 / 671);
    width: calc(100vw * 19 / 360);
    height: calc(100vw * 19 / 360);
  }

  .fant-popup__star[data-mob-star="5"] {
    left: calc(100% * 302 / 360);
    top: calc(100% * 70 / 671);
    width: calc(100vw * 19 / 360);
    height: calc(100vw * 19 / 360);
  }

  .fant-popup__star[data-mob-star="6"] {
    left: calc(100% * 29 / 360);
    top: calc(100% * 479 / 671);
    width: calc(100vw * 28 / 360);
    height: calc(100vw * 28 / 360);
  }

  .fant-popup__star[data-mob-star="7"] {
    left: calc(100% * 313 / 360);
    top: calc(100% * 50 / 671);
    width: calc(100vw * 26 / 360);
    height: calc(100vw * 26 / 360);
  }

  .fant-popup__star[data-mob-star="8"] {
    left: calc(100% * 302 / 360);
    top: calc(100% * 494 / 671);
    width: calc(100vw * 26 / 360);
    height: calc(100vw * 26 / 360);
  }

  .fant-popup__star[data-mob-star="9"] {
    left: calc(100% * 17 / 360);
    top: calc(100% * 187 / 671);
    width: calc(100vw * 20 / 360);
    height: calc(100vw * 20 / 360);
  }

  .fant-popup__star[data-mob-star="10"] {
    left: calc(100% * 325 / 360);
    top: calc(100% * 280 / 671);
    width: calc(100vw * 20 / 360);
    height: calc(100vw * 20 / 360);
  }

  .fant-popup__glow {
    left: 50%;
    top: 50%;
    width: min(120vw, 420px);
    height: min(140vw, 490px);
    transform: translate(-50%, -54%) scale(0.92);
  }

  .fant-popup.is-card-in .fant-popup__glow {
    transform: translate(-50%, -54%);
  }

  .fant-popup__stage {
    left: 50%;
    top: 50%;
    width: min(302px, 72vw);
    height: auto;
    aspect-ratio: 302 / 431;
    transform: translate(-50%, -56%) scale(0.86);
  }

  .fant-popup.is-card-in .fant-popup__stage {
    transform: translate(-50%, -56%);
  }

  .fant-popup__question {
    font-size: clamp(14px, 4.8vw, 18px);
  }

  .fant-popup__done {
    left: 50%;
    top: auto;
    bottom: max(28px, env(safe-area-inset-bottom));
    transform: translateX(-50%) translateY(10px);
  }

  .fant-popup.is-card-in .fant-popup__done {
    transform: translateX(-50%);
  }

  .fant-popup__nav {
    top: max(50px, calc(env(safe-area-inset-top) + 16px));
  }

  .fant-popup .fant-popup__back,
  .fant-popup.is-card-in .fant-popup__back,
  .fant-popup.is-choice .fant-popup__back {
    position: static;
    left: auto;
    top: auto;
  }

  .fant-popup__choice {
    left: 50%;
    top: 50%;
    width: min(748px, 94vw);
    height: auto;
    aspect-ratio: 748 / 466;
    transform: translate(-50%, -48%) scale(0.92);
  }

  .fant-popup.is-choice .fant-popup__choice {
    transform: translate(-50%, -48%);
  }

  .fant-popup.is-forced .fant-popup__choice,
  .fant-popup.is-choice.is-forced .fant-popup__choice {
    transform: translate(-50%, -54%);
  }

  .fant-popup__hint {
    top: auto;
    bottom: max(28px, env(safe-area-inset-bottom));
    width: min(320px, calc(100% - 32px));
    font-size: 14px;
  }

  .fants-rules-popup__dim {
    background: linear-gradient(180deg, #423178 0%, rgba(71, 44, 124, 0.9) 100%);
  }

  .fants-rules-popup__frame {
    inset: 0;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    margin: 0;
    transform: none;
    overflow: hidden;
  }

  .fants-rules-popup__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: max(48px, calc(env(safe-area-inset-top) + 16px)) 20px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .fants-rules-popup__body::-webkit-scrollbar {
    display: none;
  }

  .fants-rules-popup__back {
    position: static;
    left: auto;
    top: auto;
    transform: none;
  }

  .fants-rules-popup__head {
    position: static;
    left: auto;
    top: auto;
    width: 320px;
    max-width: 100%;
    gap: 24px;
  }

  .fants-rules-popup__title {
    line-height: 0.9;
  }

  .fants-rules-popup__title-rules,
  .fants-rules-popup__title-game {
    font-size: 40px;
  }

  .fants-rules-popup__lead {
    width: 100%;
  }

  .fants-rules-popup__pair {
    display: block;
    position: relative;
    flex-shrink: 0;
    width: 320px;
    max-width: 100%;
    overflow: visible;
  }

  .fants-rules-popup__pair--true {
    height: 163px;
  }

  .fants-rules-popup__pair--action {
    height: 162px;
  }

  .fants-rules-popup__card--true,
  .fants-rules-popup__card--action {
    left: auto;
    top: auto;
    width: 137px;
    height: 163px;
  }

  .fants-rules-popup__card--true {
    left: 0;
    top: 0;
  }

  .fants-rules-popup__card--action {
    left: auto;
    right: 0;
    top: 0;
    width: 136px;
    height: 162px;
  }

  .fants-rules-popup__card--true .fants-rules-popup__card-spin {
    width: 98px;
    height: 140px;
  }

  .fants-rules-popup__card--action .fants-rules-popup__card-spin {
    width: 97px;
    height: 139px;
  }

  .fants-rules-popup__copy--true,
  .fants-rules-popup__copy--action {
    left: auto;
    top: auto;
    width: auto;
  }

  .fants-rules-popup__copy--true {
    left: 171px;
    top: 23px;
    width: 148px;
    overflow: visible;
  }

  .fants-rules-popup__copy--action {
    left: 0;
    top: 18px;
    width: 140px;
  }

  .fants-rules-popup__arrow--desk {
    display: none;
  }

  .fants-rules-popup__arrow--mob {
    display: flex;
  }

  .fants-rules-popup__arrow--true-mob {
    left: 106px;
    top: 29px;
    width: 65px;
    height: 42px;
  }

  .fants-rules-popup__arrow--true-mob img {
    width: 60px;
    height: 28px;
    transform: rotate(14.42deg);
  }

  .fants-rules-popup__arrow--action-mob {
    left: 145px;
    top: 27px;
    width: 65px;
    height: 42px;
  }

  .fants-rules-popup__arrow--action-mob img {
    width: 60px;
    height: 28px;
    transform: rotate(-14.42deg) scaleY(-1);
  }

  .fants-rules-popup__pass {
    display: block;
    width: 320px;
    max-width: 100%;
  }

  .fants-rules-popup__note {
    position: static;
    left: auto;
    top: auto;
    width: 320px;
    max-width: 100%;
    flex-shrink: 0;
  }

  .fants-rules-popup__note p {
    width: auto;
    max-width: 290px;
  }

  .fants-rules-popup__note-br {
    display: none;
  }
}
