@font-face {
  font-family: "Congenial Cyrillic BETA";
  src: url("../fonts/CongenialCyrillicBETA-Medium.woff2") format("woff2"),
    url("../fonts/CongenialCyrillicBETA-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lorrach BETA";
  src: url("../fonts/LorrachBETA-Heavy.woff2") format("woff2"),
    url("../fonts/LorrachBETA-Heavy.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

a,
button {
  -webkit-touch-callout: none;
}

a:active,
button:active {
  outline: none;
}

html,
body {
  min-width: 768px;
  width: 100%;
  max-width: 100%;
  height: var(--app-height, 100dvh);
  max-height: var(--app-height, 100dvh);
  overflow: hidden;
  background: #7d69ac;
  -webkit-font-smoothing: antialiased;
}

body.is-loading,
body.is-popup-open {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #7d69ac;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__logo {
  position: relative;
  z-index: 1;
  width: min(210px, 46vw);
  height: auto;
  aspect-ratio: 169.71 / 83.63;
  filter: drop-shadow(0 0 28px rgba(255, 242, 203, 0.28));
  animation: preloader-breathe 1.7s ease-in-out infinite;
}

.snow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.65));
}

.snow__flake {
  position: absolute;
  top: 0;
  left: var(--x);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  opacity: var(--o);
  transform: translate3d(0, -12px, 0) scale(var(--s));
  animation: snow-fall var(--d) var(--delay) linear infinite;
}

.preloader .snow__flake {
  width: 18px;
  height: 18px;
}

@keyframes snow-fall {
  0% {
    transform: translate3d(0, -12px, 0) scale(var(--s));
  }
  45% {
    transform: translate3d(var(--drift), calc(var(--snow-h) * 0.5), 0) scale(var(--s));
  }
  100% {
    transform: translate3d(var(--drift2), var(--snow-h), 0) scale(var(--s));
  }
}

@keyframes preloader-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

img {
  display: block;
  max-width: 100%;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 40px;
  padding: 8px 30px;
  border: 1px solid transparent;
  border-radius: 30px;
  background:
    var(--Radial-violet, radial-gradient(50.29% 46.22% at 48.52% 49.1%, #7d69ac 0%, #472c7c 100%)) padding-box,
    var(--GOLD-GRAD, linear-gradient(256deg, #cead7c 13.83%, #fff2cb 68.88%)) border-box;
  box-shadow: 0 2px 4px rgba(82, 72, 100, 0.5);
  cursor: pointer;
  font-family: "Congenial Cyrillic BETA", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(50.29% 46.22% at 48.52% 49.1%, #cfc9e1 0%, #7d69ac 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.btn:hover::before,
.btn:focus-visible::before {
  opacity: 1;
}

.btn:focus-visible,
.btn:active {
  outline: none;
}

.glass-icon__gold {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fants-back:hover .glass-icon__gold,
.fants-back:focus-visible .glass-icon__gold,
.fants-rules:hover .glass-icon__gold,
.fants-rules:focus-visible .glass-icon__gold,
.hint-btn:hover .glass-icon__gold,
.hint-btn:focus-visible .glass-icon__gold,
.hint-popup__close:hover .glass-icon__gold,
.hint-popup__close:focus-visible .glass-icon__gold {
  opacity: 1;
}

:root {
  --GOLD-DRAD: #cead7c;
  --GOLD-GRAD: linear-gradient(256deg, #cead7c 13.83%, #fff2cb 68.88%);
  --Radial-violet: radial-gradient(50.29% 46.22% at 48.52% 49.1%, #7d69ac 0%, #472c7c 100%);
  --app-width: 100vw;
  --app-height: 100dvh;
  --scene-scale: clamp(0.53333, min(var(--app-width) / 1440px, var(--app-height) / 750px), 1.77778);
  --scene-height: max(750px, var(--app-height) / var(--scene-scale));
  --scene-extra: calc(var(--scene-height) - 750px);
}

.page {
  position: relative;
  min-width: 768px;
  width: 100%;
  height: var(--app-height, 100dvh);
  max-height: var(--app-height, 100dvh);
  display: grid;
  place-items: stretch;
  overflow: hidden;
  background: #7d69ac;
}

.bg {
  position: absolute;
  z-index: 0;
  left: calc(50% - 865px * var(--scene-scale));
  bottom: calc(-29px * var(--scene-scale));
  width: calc(1802px * var(--scene-scale));
  height: calc(1013px * var(--scene-scale));
  pointer-events: none;
}

.bg picture,
.bg img {
  width: 100%;
  height: 100%;
}

.bg img {
  object-fit: fill;
}

.scene-scaler {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.scene {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1440px;
  height: var(--scene-height, 750px);
  margin-left: -720px;
  transform: scale(var(--scene-scale));
  transform-origin: center bottom;
  overflow: hidden;
  background: transparent;
}

.stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.star-item {
  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;
}

.star-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

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

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

@media (prefers-reduced-motion: reduce) {
  .preloader__logo,
  .star-item,
  .star-item img,
  .page-fants .star-item,
  .fant-popup__star,
  .fant-popup__star img,
  .hint-popup__star,
  .product-btn img,
  .hint-popup__pack,
  .snow__flake {
    animation: none;
  }

  .snow {
    display: none;
  }

  .btn::before {
    transition: none;
  }
}

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

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

.star-item[data-star="1"] {
  left: calc(100% * 261 / 1440);
  top: calc(100% * 228 / 750);
  width: calc(100% * 41 / 1440);
  height: calc(100% * 41 / 750);
}
.star-item[data-star="2"] {
  left: calc(100% * 798 / 1440);
  top: calc(100% * 27 / 750);
  width: calc(100% * 28 / 1440);
  height: calc(100% * 28 / 750);
}
.star-item[data-star="3"] {
  left: calc(100% * 263 / 1440);
  top: calc(100% * 34 / 750);
  width: calc(100% * 28 / 1440);
  height: calc(100% * 28 / 750);
}
.star-item[data-star="4"] {
  left: calc(100% * 243 / 1440);
  top: calc(100% * 216 / 750);
  width: calc(100% * 20 / 1440);
  height: calc(100% * 20 / 750);
}
.star-item[data-star="5"] {
  left: calc(100% * 1280 / 1440);
  top: calc(100% * 294 / 750);
  width: calc(100% * 27 / 1440);
  height: calc(100% * 27 / 750);
}
.star-item[data-star="6"] {
  left: calc(100% * 139 / 1440);
  top: calc(100% * 75 / 750);
  width: calc(100% * 27 / 1440);
  height: calc(100% * 27 / 750);
}
.star-item[data-star="7"] {
  left: calc(100% * 282 / 1440);
  top: calc(100% * 348 / 750);
  width: calc(100% * 27 / 1440);
  height: calc(100% * 27 / 750);
}
.star-item[data-star="8"] {
  left: calc(100% * 749 / 1440);
  top: calc(100% * 46 / 750);
  width: calc(100% * 56 / 1440);
  height: calc(100% * 56 / 750);
}
.star-item[data-star="9"] {
  left: calc(100% * 1190 / 1440);
  top: calc(100% * 108 / 750);
  width: calc(100% * 56 / 1440);
  height: calc(100% * 56 / 750);
}
.star-item[data-star="10"] {
  left: calc(100% * 848 / 1440);
  top: calc(100% * 69 / 750);
  width: calc(100% * 27 / 1440);
  height: calc(100% * 27 / 750);
}
.star-item[data-star="11"] {
  left: calc(100% * 699 / 1440);
  top: calc(100% * 372 / 750);
  width: calc(100% * 32 / 1440);
  height: calc(100% * 32 / 750);
}
.star-item[data-star="12"] {
  left: calc(100% * 158 / 1440);
  top: calc(100% * 128 / 750);
  width: calc(100% * 52 / 1440);
  height: calc(100% * 52 / 750);
}
.star-item[data-star="13"] {
  left: calc(100% * 740 / 1440);
  top: calc(100% * 210 / 750);
  width: calc(100% * 31 / 1440);
  height: calc(100% * 31 / 750);
}
.star-item[data-star="14"] {
  left: calc(100% * 1343 / 1440);
  top: calc(100% * 254 / 750);
  width: calc(100% * 31 / 1440);
  height: calc(100% * 31 / 750);
}
.star-item[data-star="15"] {
  left: calc(100% * 958 / 1440);
  top: calc(100% * 233 / 750);
  width: calc(100% * 31 / 1440);
  height: calc(100% * 31 / 750);
}
.star-item[data-star="16"] {
  left: calc(100% * 1164 / 1440);
  top: calc(100% * 163 / 750);
  width: calc(100% * 52 / 1440);
  height: calc(100% * 52 / 750);
}
.star-item[data-star="17"] {
  left: calc(100% * 473 / 1440);
  top: calc(100% * 493 / 750);
  width: calc(100% * 16 / 1440);
  height: calc(100% * 16 / 750);
}
.star-item[data-star="18"] {
  left: calc(100% * 113 / 1440);
  top: calc(100% * 282 / 750);
  width: calc(100% * 36 / 1440);
  height: calc(100% * 36 / 750);
}

.tree-stage {
  position: static;
}

.christmas-tree {
  position: absolute;
  left: 511px;
  top: calc(20px + var(--scene-extra, 0px));
  width: 869px;
  height: 682px;
  z-index: 3;
  pointer-events: none;
}

.christmas-tree picture,
.christmas-tree img {
  width: 100%;
  height: 100%;
}

.christmas-tree img {
  object-fit: cover;
}

.product-btn {
  position: absolute;
  z-index: 6;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  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;
}

.product-btn:active {
  background: transparent;
  outline: none;
  transform: scale(1.08);
  transition-duration: 0.12s;
}

.product-btn:active img {
  filter:
    drop-shadow(0 0 16px #fff8dc)
    drop-shadow(0 0 32px #e9dbb2);
}

.product-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 23px #e9dbb2);
  transition: filter 0.35s ease;
  pointer-events: none;
  transform-origin: center;
  will-change: transform;
  animation-duration: 5.6s;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.product-btn--bell img {
  animation-name: product-pulse;
  animation-delay: 0s;
}

.product-btn--hat img {
  animation-name: product-pulse;
  animation-delay: 1.2s;
}

.product-btn--choco img {
  transform: rotate(-12.64deg);
  animation-name: product-pulse-choco;
  animation-delay: 2.4s;
}

.product-btn--choco {
  left: 757.9px;
  top: calc(390.28px + var(--scene-extra, 0px));
  width: 131.28px;
  height: 295px;
}

.product-btn:focus-visible {
  outline: none;
}

@keyframes product-pulse {
  0%,
  21.43%,
  100% {
    transform: scale(1);
  }
  10.71% {
    transform: scale(1.2);
  }
}

@keyframes product-pulse-choco {
  0%,
  21.43%,
  100% {
    transform: rotate(-12.64deg) scale(1);
  }
  10.71% {
    transform: rotate(-12.64deg) scale(1.2);
  }
}

.product-btn--bell {
  left: 880.69px;
  top: calc(153px + var(--scene-extra, 0px));
  width: 124.62px;
  height: 120px;
}

.product-btn--hat {
  left: 964.23px;
  top: calc(329.5px + var(--scene-extra, 0px));
  width: 106.54px;
  height: 120px;
}

@media (hover: hover) and (pointer: fine) {
  .product-btn:hover,
  .product-btn:focus-visible {
    transform: scale(1.1);
  }

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

.text {
  position: absolute;
  left: 264px;
  top: 74px;
  width: 463px;
  height: 429px;
  z-index: 4;
  pointer-events: none;
}

.text-desktop {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.text-mob,
.hint-btn,
.footer-mob {
  display: none;
}

.footer {
  position: absolute;
  left: 80px;
  top: calc(691px + var(--scene-extra, 0px));
  width: 1280px;
  height: 39px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Congenial Cyrillic BETA", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  color: #fff;
}

.footer-links,
.footer-legal {
  display: flex;
  align-items: center;
}

.footer-links {
  gap: 16px;
}

.footer-legal {
  gap: 20px;
}

.footer a {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  line-height: normal;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-divider {
  width: 1px;
  height: 24.5px;
  background: #fff;
  flex-shrink: 0;
}

.footer-divider--tall {
  height: 38.68px;
}

.footer-copy {
  width: 325px;
  text-align: right;
  line-height: 18px;
}

.footer-logo {
  width: 165.82px;
  height: 39px;
  flex-shrink: 0;
}

@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
  :root {
    --home-logo-top: clamp(12px, 3.2dvh, 24px);
    --home-logo-width: clamp(132px, 47vw, 170px);
    --scene-extra: 0px;
    --scene-height: 100%;
  }

  html,
  body {
    min-width: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    overflow-x: hidden;
  }

  .page {
    min-width: 0;
    width: auto;
    height: auto;
    max-height: none;
    min-height: auto;
    display: flex;
    flex-direction: column;
    place-items: unset;
    overflow: visible;
  }

  .bg {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: 100%;
    height: var(--app-height, 100dvh);
  }

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

  .scene-scaler {
    width: 100%;
    height: var(--app-height, 100dvh);
    flex-shrink: 0;
  }

  .scene {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    transform: none;
    overflow: hidden;
  }

  .page:not(.page-fants) .star-item[data-star="8"],
  .page:not(.page-fants) .star-item[data-star="9"],
  .page:not(.page-fants) .star-item[data-star="10"],
  .page:not(.page-fants) .star-item[data-star="11"],
  .page:not(.page-fants) .star-item[data-star="12"],
  .page:not(.page-fants) .star-item[data-star="13"],
  .page:not(.page-fants) .star-item[data-star="14"],
  .page:not(.page-fants) .star-item[data-star="15"],
  .page:not(.page-fants) .star-item[data-star="16"],
  .page:not(.page-fants) .star-item[data-star="18"] {
    display: none;
  }

  .page:not(.page-fants) .star-item[data-star="1"] {
    left: calc(100% * 259.12 / 360);
    top: calc(100% * 186 / 671);
    width: calc(100vw * 35 / 360);
    height: calc(100vw * 35 / 360);
  }

  .page:not(.page-fants) .star-item[data-star="2"] {
    left: calc(100% * 243.12 / 360);
    top: calc(100% * 220 / 671);
    width: calc(100vw * 32 / 360);
    height: calc(100vw * 33 / 360);
  }

  .page:not(.page-fants) .star-item[data-star="3"] {
    left: calc(100% * 64.12 / 360);
    top: calc(100% * 209 / 671);
    width: calc(100vw * 28 / 360);
    height: calc(100vw * 28 / 360);
  }

  .page:not(.page-fants) .star-item[data-star="4"] {
    left: calc(100% * 287.12 / 360);
    top: calc(100% * 315 / 671);
    width: calc(100vw * 16 / 360);
    height: calc(100vw * 16 / 360);
  }

  .page:not(.page-fants) .star-item[data-star="5"] {
    left: calc(100% * 17.12 / 360);
    top: calc(100% * 241 / 671);
    width: calc(100vw * 56 / 360);
    height: calc(100vw * 56 / 360);
  }

  .page:not(.page-fants) .star-item[data-star="6"] {
    left: calc(100% * 315.12 / 360);
    top: calc(100% * 272 / 671);
    width: calc(100vw * 17 / 360);
    height: calc(100vw * 17 / 360);
  }

  .page:not(.page-fants) .star-item[data-star="7"] {
    left: calc(100% * 31.12 / 360);
    top: calc(100% * 141 / 671);
    width: calc(100vw * 17 / 360);
    height: calc(100vw * 17 / 360);
  }

  .page:not(.page-fants) .star-item[data-star="17"] {
    left: calc(100% * 319 / 360);
    top: calc(100% * 133 / 671);
    width: calc(100vw * 13 / 360);
    height: calc(100vw * 13 / 360);
  }

  .tree-stage {
    position: absolute;
    left: 50%;
    bottom: clamp(22px, 4dvh, 40px);
    width: 824px;
    height: 861.5px;
    margin-left: -412px;
    transform: scale(calc(min(100vw / 824px, var(--app-height, 100dvh) / 861.5px) * var(--tree-aspect-scale, 1)));
    transform-origin: bottom center;
    z-index: 3;
  }

  @media (max-width: 429px) {
    .tree-stage {
      transform: scale(calc(min(100vw / 824px, var(--app-height, 100dvh) / 861.5px) * 1.1));
    }
  }

  .christmas-tree {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  .christmas-tree img {
    object-fit: fill;
    object-position: center bottom;
  }

  .product-btn--bell {
    left: 279px;
    top: 126px;
    width: 166px;
    height: 162px;
  }

  .product-btn--hat {
    left: 365px;
    top: 348px;
    width: 143px;
    height: 161px;
  }

  .product-btn--choco {
    left: 97px;
    top: 419px;
    width: 177px;
    height: 397px;
  }

  .text {
    left: 50%;
    top: var(--home-logo-top, clamp(12px, 3.2dvh, 24px));
    width: min(720px, calc(100vw - 32px));
    height: auto;
    transform: translateX(-50%);
  }

  .text-desktop {
    display: none;
  }

  .text-mob {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(12px, 2.8vw, 19px);
    width: 100%;
  }

  .text-logo {
    position: relative;
    z-index: 2;
    width: var(--home-logo-width, clamp(132px, 47vw, 170px));
    height: auto;
    aspect-ratio: 169.71 / 83.63;
  }

  .text-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0.04em 0;
    font-family: "Lorrach BETA", sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 11.1vw, 40px);
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    background-image: linear-gradient(200.16deg, #cead7c 16.75%, #fff2cb 54.06%, #e6cc9b 68.88%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 44.403px #48277c) drop-shadow(0 1.349px 1.349px #48277c);
  }

  .text-title span {
    display: block;
    white-space: nowrap;
  }

  .hint-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    left: 50%;
    bottom: max(clamp(12px, calc(5.2dvh - 20px), 30px), env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 8;
    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;
    white-space: nowrap;
  }

  .hint-btn:focus-visible,
  .hint-btn:active {
    outline: none;
    background: transparent;
  }

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

  .hint-btn__icon svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .footer--desktop {
    display: none;
  }

  .footer-mob {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    padding: 20px 0 max(20px, env(safe-area-inset-bottom));
    background: #7d69ac;
    font-family: "Congenial Cyrillic BETA", sans-serif;
    font-weight: 500;
    color: #fff;
  }

  .footer-mob-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer-mob-links a {
    color: #fff;
    font-size: 16px;
    line-height: normal;
    text-decoration: none;
    white-space: nowrap;
  }

  .footer-mob-links a:hover {
    text-decoration: underline;
  }

  .footer-mob-rule {
    display: block;
    width: 244px;
    height: 1px;
    background: #fff;
  }

  .footer-mob-rule--full {
    width: 100%;
  }

  .footer-mob-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 10px 0;
  }

  .footer-mob-copy {
    width: 100%;
    padding: 0 16px;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
  }
}

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

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

.hint-popup__dim {
  position: absolute;
  inset: 0;
  background: #392970;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hint-popup.is-open .hint-popup__dim {
  opacity: 0.9;
}

.hint-popup__frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 360px;
  height: 679px;
  transform: translate(-50%, -50%) scale(min(100vw / 360px, 100dvh / 679px));
  transform-origin: center;
}

.hint-popup__close {
  position: absolute;
  left: 320px;
  top: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  color: #fff;
  background: url("../images/buttons/glass.webp") center / 100% 100% no-repeat;
  cursor: pointer;
}

.hint-popup__close svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hint-popup__close:focus-visible,
.hint-popup__close:active {
  outline: none;
}

.hint-popup__logo {
  position: absolute;
  left: 50%;
  top: var(--home-logo-top, clamp(12px, 3.2dvh, 24px));
  z-index: 3;
  width: var(--home-logo-width, clamp(132px, 47vw, 170px));
  height: auto;
  aspect-ratio: 169.71 / 83.63;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hint-popup.is-open .hint-popup__logo {
  opacity: 1;
}

.hint-popup__close,
.hint-popup__text,
.hint-popup__stars,
.hint-popup__item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.hint-popup.is-open .hint-popup__close,
.hint-popup.is-open .hint-popup__text,
.hint-popup.is-open .hint-popup__stars,
.hint-popup.is-open .hint-popup__item {
  opacity: 1;
  transform: none;
}

.hint-popup.is-open .hint-popup__close {
  transition-delay: 0.08s;
}

.hint-popup.is-open .hint-popup__text {
  transition-delay: 0.14s;
}

.hint-popup.is-open .hint-popup__stars {
  transition-delay: 0.18s;
}

.hint-popup.is-open .hint-popup__item--bell {
  transition-delay: 0.22s;
}

.hint-popup.is-open .hint-popup__item--choco {
  transition-delay: 0.3s;
}

.hint-popup.is-open .hint-popup__item--hat {
  transition-delay: 0.38s;
}

.hint-popup__text {
  position: absolute;
  left: 49px;
  top: 127px;
  width: 262px;
  z-index: 2;
  margin: 0;
  font-family: "Congenial Cyrillic BETA", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  color: #fff;
}

.hint-popup__stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hint-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;
}

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

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

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

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

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

.hint-popup__item {
  position: absolute;
  z-index: 2;
  display: block;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transform-origin: center;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
}

.hint-popup__item:active {
  background: transparent;
  outline: none;
}

.hint-popup.is-open .hint-popup__item:active {
  transform: scale(1.08);
  transition-duration: 0.12s;
}

.hint-popup.is-open .hint-popup__item:active .hint-popup__cursor {
  opacity: 1;
  transform: none;
  animation: none;
}

.hint-popup.is-open .hint-popup__item:active .hint-popup__pack {
  filter:
    drop-shadow(0 0 16px #fff8dc)
    drop-shadow(0 0 32px #e9dbb2);
}

.hint-popup__sand {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  pointer-events: none;
}

.hint-popup__sand img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.25;
  mix-blend-mode: screen;
}

.hint-popup__item--bell .hint-popup__sand {
  width: 119%;
  height: 113%;
  transform: translate(-50%, -50%) rotate(118.44deg);
}

.hint-popup__item--hat .hint-popup__sand {
  width: 155%;
  height: 148%;
  transform: translate(-50%, -50%) rotate(180deg);
}

.hint-popup__item--choco .hint-popup__sand {
  width: 130%;
  height: 101%;
  transform: translate(-50%, -50%) rotate(133.38deg);
}

.hint-popup__pack {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 27px #e9dbb2);
  pointer-events: none;
  transform-origin: center;
  will-change: transform;
  animation-duration: 5.6s;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  transition: filter 0.35s ease;
}

.hint-popup__cursor {
  position: absolute;
  z-index: 3;
  width: 23px;
  height: 31px;
  pointer-events: none;
  object-fit: contain;
  opacity: 0;
  transform: translate(10px, 12px);
  will-change: opacity, transform;
  animation-name: hint-cursor-in;
  animation-duration: 5.6s;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.hint-popup__item--bell .hint-popup__cursor {
  right: -8px;
  bottom: -10px;
  animation-delay: 0s;
}

.hint-popup__item--hat .hint-popup__cursor {
  right: -6px;
  bottom: -14px;
  animation-delay: 1.2s;
}

.hint-popup__item--choco .hint-popup__cursor {
  right: -12px;
  top: 58%;
  animation-delay: 2.4s;
}

@keyframes hint-cursor-in {
  0%,
  21.43%,
  100% {
    opacity: 0;
    transform: translate(10px, 12px);
  }

  8%,
  13.5% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

.hint-popup__item--bell {
  left: 102px;
  top: 227px;
  width: 125px;
  height: 120px;
}

.hint-popup__item--choco {
  left: 33px;
  top: 382px;
  width: 131px;
  height: 295px;
}

.hint-popup__item--bell .hint-popup__pack {
  animation-name: product-pulse;
  animation-delay: 0s;
}

.hint-popup__item--hat .hint-popup__pack {
  animation-name: product-pulse;
  animation-delay: 1.2s;
}

.hint-popup__item--choco .hint-popup__pack {
  transform: rotate(-12.64deg);
  animation-name: product-pulse-choco;
  animation-delay: 2.4s;
}

.hint-popup__item--hat {
  left: 188px;
  top: 404px;
  width: 107px;
  height: 120px;
}

.hint-popup__item:focus-visible {
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .hint-popup.is-open .hint-popup__item:hover,
  .hint-popup.is-open .hint-popup__item:focus-visible {
    transform: scale(1.1);
  }

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

  .hint-popup.is-open .hint-popup__item:hover .hint-popup__cursor,
  .hint-popup.is-open .hint-popup__item:focus-visible .hint-popup__cursor {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hint-popup__dim,
  .hint-popup__logo,
  .hint-popup__close,
  .hint-popup__text,
  .hint-popup__stars,
  .hint-popup__item {
    transition-duration: 0.01ms;
    transition-delay: 0s;
  }

  .hint-popup__pack {
    animation: none;
  }

  .hint-popup__cursor {
    animation: none;
    opacity: 0;
  }
}
