body {
  position: relative;
  overflow-x: hidden;
}

/* =========================
   GOLD STROKE ICON
========================= */

.gold-stroke-icon {
  --gold-stroke: 1.5;
  --gold-speed: 15s;

  --gold-base-opacity: 0.16;
  --gold-fill-opacity: 0.78;

  --gold-glow-stroke: 4;
  --gold-glow-blur: 7;
  --gold-glow-opacity: 0.75;
}

.gold-stroke-icon,
.gold-stroke-icon .tn-atom {
  overflow: visible !important;
}

.gold-stroke-icon img {
  opacity: 0 !important;
}

.gold-stroke-icon svg.gold-inline-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* =========================
   GLASS SHAPE
========================= */

.glass-shape,
.glass-shape .tn-atom,
.glass-shape.tn-atom {
  overflow: hidden !important;
}

.glass-shape .tn-atom,
.glass-shape.tn-atom {
  position: relative !important;

  background: rgba(22, 22, 20, 0.18) !important;

  -webkit-backdrop-filter: blur(8px) saturate(155%) !important;
  backdrop-filter: blur(10px) saturate(155%) !important;

  border: 1px solid rgba(163, 130, 68, 0.32) !important;

  border-radius: 0 !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 229, 175, 0.08),
    inset 0 -1px 0 rgba(255, 229, 175, 0.035),
    inset 0 0 42px rgba(181, 139, 72, 0.055),
    inset 0 0 90px rgba(0, 0, 0, 0.32),
    0 18px 45px rgba(0, 0, 0, 0.18) !important;
}

.glass-shape .tn-atom::before,
.glass-shape.tn-atom::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;

  width: 100%;
  height: 1.5px;

  background: linear-gradient(
    90deg,
    rgba(226, 187, 105, 0) 0%,
    rgba(226, 187, 105, 0.65) 50%,
    rgba(226, 187, 105, 0) 100%
  );

  pointer-events: none;
}

.glass-shape .tn-atom::after,
.glass-shape.tn-atom::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;

  background:
    radial-gradient(
      ellipse at center,
      rgba(255, 221, 150, 0.025) 0%,
      rgba(255, 221, 150, 0) 55%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.025) 0%,
      rgba(0, 0, 0, 0.16) 100%
    );

  pointer-events: none;
}

/* =========================
   GOLD GLOW BUTTON
========================= */

.tn-elem.gold-glow-button {
  position: absolute !important;
  overflow: visible !important;
  z-index: 20 !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tn-elem.gold-glow-button::before {
  content: "";
  position: absolute;
  left: -28px;
  top: -28px;
  right: -28px;
  bottom: -28px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 221, 150, 0.7) 0%,
    rgba(183, 156, 97, 0.48) 32%,
    rgba(183, 156, 97, 0.22) 56%,
    rgba(183, 156, 97, 0) 78%
  );
  opacity: 0;
  transform: scale(0.9);
  filter: blur(16px);
  pointer-events: none;
  z-index: 0;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    filter 0.35s ease;
}

.tn-elem.gold-glow-button .tn-atom {
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  background: #A38A55 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: none !important;
  color: #ffffff !important;
  text-decoration: none;
  cursor: pointer;
  transform-origin: center center;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease !important;
  will-change: transform, box-shadow;
  user-select: none;
  -webkit-user-select: none;
}

.tn-elem.gold-glow-button .tn-atom * {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.tn-elem.gold-glow-button .tn-atom::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 3;
}

.tn-elem.gold-glow-button .tn-atom::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: transparent;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 10px 18px rgba(255, 255, 255, 0.18),
    inset 10px 0 16px rgba(255, 255, 255, 0.1),
    inset -10px 0 16px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 2;
}

/* =========================
   GOLD DARK BUTTON
========================= */

.tn-elem.gold-dark-button {
  position: relative !important;
  overflow: visible !important;
  z-index: 20 !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tn-elem.gold-dark-button::before {
  content: "";
  position: absolute;
  left: -10px;
  top: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(
    ellipse at center,
    rgba(183, 156, 97, 0.12) 0%,
    rgba(183, 156, 97, 0.06) 42%,
    rgba(183, 156, 97, 0) 76%
  );
  opacity: 0.45;
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.tn-elem.gold-dark-button .tn-atom {
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;

  background:
    radial-gradient(
      ellipse at center,
      rgba(183, 156, 97, 0.24) 0%,
      rgba(183, 156, 97, 0.16) 24%,
      rgba(183, 156, 97, 0.08) 46%,
      rgba(183, 156, 97, 0.025) 68%,
      rgba(183, 156, 97, 0) 86%
    ),
    linear-gradient(
      90deg,
      rgba(12, 12, 10, 0.98) 0%,
      rgba(17, 16, 13, 0.97) 50%,
      rgba(12, 12, 10, 0.98) 100%
    ) !important;

  border: 1px solid rgba(157, 124, 54, 0.62) !important;

  box-shadow:
    inset 0 0 0 1px rgba(255, 230, 170, 0.025),
    inset 0 8px 14px rgba(255, 255, 255, 0.018),
    inset 0 -10px 18px rgba(0, 0, 0, 0.24),
    0 0 12px rgba(183, 156, 97, 0.055) !important;

  color: #d8c394 !important;
  text-decoration: none;
  cursor: pointer;
  transform-origin: center center;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    filter 0.22s ease,
    color 0.22s ease !important;

  user-select: none;
  -webkit-user-select: none;
}

.tn-elem.gold-dark-button .tn-atom * {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  color: inherit !important;
}

/* =========================
   GOLD GLASS BUTTON
========================= */

.tn-elem.gold-glass-button {
  position: absolute !important;
  overflow: visible !important;
  z-index: 20 !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tn-elem.gold-glass-button .tn-atom {
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(183, 156, 97, 0.08) 42%,
      rgba(183, 156, 97, 0.04) 100%
    ) !important;

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  border: 1px solid rgba(183, 156, 97, 0.92) !important;

  box-shadow:
    inset 0 0 14px rgba(255, 255, 255, 0.06) !important;

  color: #ffffff !important;
  text-decoration: none;
  cursor: pointer;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease,
    background 0.25s ease !important;

  user-select: none;
  -webkit-user-select: none;
}

/* =========================
   SPARKS
========================= */

.gold-spark {
  position: absolute;
  left: var(--spark-x);
  top: var(--spark-y);
  width: var(--spark-size);
  height: var(--spark-size);
  border-radius: 50%;
  background: rgba(255, 238, 190, 0.95);
  opacity: 0;
  pointer-events: none;
  z-index: 30;

  box-shadow:
    0 0 4px rgba(255, 238, 190, 0.9),
    0 0 8px rgba(255, 205, 120, 0.45);

  transform: translate(-50%, -50%) translate(0, 0) scale(1);

  animation:
    goldPixelSparkFly var(--spark-duration)
    cubic-bezier(0.12, 0.65, 0.25, 1)
    forwards;

  animation-delay: var(--spark-delay);
}

/* =========================
   HOVER
========================= */

@media (hover: hover) and (pointer: fine) {

  .tn-elem.gold-glow-button:hover::before {
    opacity: 1;
    transform: scale(1);
    filter: blur(20px);
  }

  .tn-elem.gold-glow-button:hover .tn-atom {
    background: #b79c61 !important;
    transform: scale(1.025) !important;
    filter: brightness(1.08);
  }

  .tn-elem.gold-dark-button:hover .tn-atom {
    transform: scale(1.008) !important;
  }

  .tn-elem.gold-glass-button:hover .tn-atom {
    transform: scale(1.025) !important;
    filter: brightness(1.08);
  }
}

/* =========================
   KEYFRAMES
========================= */

@keyframes goldPixelSparkFly {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0, 0) scale(0.4);
  }

  10% {
    opacity: 1;
    transform:
      translate(-50%, -50%)
      translate(calc(var(--spark-tx) * 0.1), calc(var(--spark-ty) * 0.1))
      scale(1);
  }

  72% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform:
      translate(-50%, -50%)
      translate(var(--spark-tx), var(--spark-ty))
      scale(0.15);
  }
}


/*Карточки событий: раскладка + кнопка. Применяется к блокам с классом .uc-past-event или .uc-current-event*/


.uc-past-event .t-store__card-list,
.uc-current-event .t-store__card-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.uc-past-event .js-product,
.uc-current-event .js-product {
  display: flex;
  flex-direction: column;
}

.uc-past-event .t-store__card__wrap_all,
.uc-current-event .t-store__card__wrap_all {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
}

.uc-past-event .t-store__card__wrap_txt-and-btns,
.uc-current-event .t-store__card__wrap_txt-and-btns {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.uc-past-event .t-store__card__wrap_txt-and-btns > a,
.uc-current-event .t-store__card__wrap_txt-and-btns > a {
  display: block;
  flex: 1 1 auto;
}

.uc-past-event .t-store__card__textwrapper,
.uc-current-event .t-store__card__textwrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.uc-past-event .t-store__card__descr,
.uc-current-event .t-store__card__descr {
  flex: 1 1 auto;
}

.uc-past-event .t-store__card__textwrapper::after,
.uc-current-event .t-store__card__textwrapper::after {
  display: block;
  width: fit-content;
  margin: 14px auto 0 0;
  padding: 16px 16px;
  border: 1px solid #e0bd74;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--t-text-font, Arial);
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.uc-past-event .js-product:hover .t-store__card__textwrapper::after,
.uc-current-event .js-product:hover .t-store__card__textwrapper::after {
  background-color: #e0bd74;
  color: #fff;
}

/* Подписи кнопок */
.uc-past-event .t-store__card__textwrapper::after {
  content: "ПОДРОБНЕЕ";
}

.uc-current-event .t-store__card__textwrapper::after {
  content: "ПОДРОБНЕЕ";
}
