html,
body {
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  background-color: #090414;
  background-image:
    linear-gradient(180deg, rgba(12, 4, 26, 0.12) 0%, rgba(6, 2, 14, 0.86) 100%),
    url("../images/back.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  color: #fff;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  right: 0;
  top: 0;
  left: 0;
  height: min(56vw, 320px);
  background: url(../images/gold.png) no-repeat top left / 100% auto;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  height: min(56vw, 320px);
  background: url(../images/gold.png) no-repeat top left / 100% auto;
  transform: rotate(180deg);
  pointer-events: none;
}

div.filter {
  background:
    linear-gradient(180deg, rgba(36, 4, 34, 0.2) 0%, rgba(8, 3, 18, 0.6) 100%),
    rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(2px) saturate(120%);
  height: 100%;
  width: 100%;
  z-index: 1;
  position: fixed;
  top: 0;
  left: 0;
}

a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

a:hover {
  color: inherit;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

img {
  width: 100%;
  vertical-align: middle;
}

header {
  position: relative;
  z-index: 2;
  padding: 18px 10px 4px;
  background-color: transparent;
  margin-bottom: 18px;
  overflow: visible;
}

main {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow-y: auto;
}

.header__logo {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

header img {
  max-width: 212px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.main-wrap {
  width: 100%;
  padding: 0 18px;
}

.new_text {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 16px;
  text-align: center;
  margin: 0 auto 16px;
  max-width: 620px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.promo-kicker,
.promo-title,
.promo-copy,
.promo-note {
  display: block;
}

.promo-kicker {
  width: fit-content;
  margin: 0 auto 8px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 219, 83, 0.85);
  border-radius: 999px;
  background: rgba(20, 8, 30, 0.72);
  color: #ffdf5f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.promo-title {
  color: #fff6bf;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.05;
}

.promo-copy {
  margin: 9px auto 0;
  max-width: 540px;
  color: #f6edf7;
  font-size: 15px;
  font-weight: 650;
}

.promo-note {
  margin-top: 8px;
  color: #ffd46b;
  font-size: 12px;
  font-weight: 700;
}

.game {
  max-width: 560px;
  margin: 0 auto;
}

.wheel-wrap {
  position: relative;
  background: url(../images/wheel_outside.svg) no-repeat center / contain;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 100%;
  max-width: 560px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.5));
}

.wheel-wrap::before {
  content: "";
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(255, 218, 75, 0.42);
  border-radius: 50%;
  box-shadow:
    0 0 22px rgba(255, 204, 49, 0.34),
    inset 0 0 20px rgba(255, 77, 55, 0.2);
  pointer-events: none;
}

.wheel {
  position: absolute;
  width: calc(100% - 53px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14%;
  min-width: 48px;
  filter: drop-shadow(0 0 12px rgba(255, 229, 96, 0.75));
}

.wheel-arrow {
  position: absolute;
  max-width: 34px;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.55));
}

.whell-rotate {
  -webkit-transform: rotate(3562deg);
  transform: rotate(3562deg);
}

.game[data-spin="1"] .whell-rotate {
  -webkit-animation: step1 6.6s;
  animation: step1 6.6s;
  -webkit-animation-timing-function: ease;
  animation-timing-function: ease;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
  -webkit-animation-direction: normal;
  animation-direction: normal;
  -webkit-transform: rotate(6100deg);
  transform: rotate(6100deg);
}

@-webkit-keyframes step1 {
  0% {
    -webkit-transform: rotate(3562deg);
    transform: rotate(3562deg);
  }
  90% {
    -webkit-transform: rotate(6100deg);
    transform: rotate(6100deg);
  }
  95% {
    -webkit-transform: rotate(6100deg);
    transform: rotate(6100deg);
  }
  to {
    -webkit-transform: rotate(6100deg);
    transform: rotate(6100deg);
  }
}

@keyframes step1 {
  0% {
    -webkit-transform: rotate(3562deg);
    transform: rotate(3562deg);
  }
  90% {
    -webkit-transform: rotate(6100deg);
    transform: rotate(6100deg);
  }
  95% {
    -webkit-transform: rotate(6100deg);
    transform: rotate(6100deg);
  }
  to {
    -webkit-transform: rotate(6100deg);
    transform: rotate(6100deg);
  }
}

.wrap-btn {
  margin-top: 20px;
  color: #fff;
  font-size: 15px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.wrap-btn p {
  margin-bottom: 8px;
}

.countdown-number.countdown-optional,
.countdown .days,
.countdown .hours {
  display: none;
}

.countdown-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1em;
  margin: 0 2px;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffec8b 0%, #f2a900 100%);
  color: #3f1700;
  font-size: 16px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.countdown-label {
  color: #fff6bf;
  font-weight: 800;
}

.btn-red {
  padding: 4px;
  border-radius: 999px;
  max-width: 300px;
  width: 100%;
  margin: 18px auto 0;
  background: linear-gradient(
    to right,
    rgba(166, 123, 44, 1) 0%,
    rgba(253, 249, 141, 1) 50%,
    rgba(166, 123, 44, 1) 100%
  );
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(255, 201, 43, 0.32);
}

.btn {
  display: inline-block;
  font-weight: 900;
  min-width: 220px;
  color: #fff;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  font-size: 0.96rem;
  line-height: 1.5;
  background: #306a39;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0;
  padding: 17px 0;
  margin: 14px 0 0;
  box-shadow: 0 2px 0 rgb(0 0 0 / 25%);
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  cursor: pointer;
}

.btn:focus {
  box-shadow: none;
  outline: none;
}

.btn-red .btn {
  border-color: transparent;
  width: 100%;
  border-radius: 999px;
  padding: 0.78rem 0.86rem;
  margin: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 87, 64, 1) 0%,
    rgba(207, 20, 50, 1) 52%,
    rgba(136, 8, 35, 1) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 5px 0 rgba(84, 0, 20, 0.72);
}

.modal .btn {
  width: 100%;
  max-width: 280px;
  min-width: 0;
  color: #341900;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff16d 0%, #ffb000 56%, #f28a00 100%);
  padding: 14px 12px;
  font-size: 0.88rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 5px 0 rgba(111, 54, 0, 0.5);
}

.modal .btn:hover,
.modal .btn:focus {
  color: #000;
}

.modal-section {
  display: none;
}

.modal-section.show {
  background: rgba(0, 0, 0, 0.68);
  display: block;
  position: fixed;
  width: 100vw;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10;
}

.modal-section[data-modal="2"].show {
  background:
    linear-gradient(180deg, rgba(18, 3, 28, 0.42), rgba(0, 0, 0, 0.7)),
    url(../images/gold.png) no-repeat top left / 100%;
}

.modal-section .modal {
  position: absolute;
  padding: 22px 18px;
  text-align: center;
  width: calc(100% - 40px);
  height: fit-content;
  max-width: 380px;
  border: 1px solid rgba(255, 219, 83, 0.68);
  border-radius: 8px;
  left: 50%;
  top: 50%;
  background:
    linear-gradient(180deg, rgba(76, 12, 67, 0.97) 0%, rgba(28, 7, 40, 0.98) 100%);
  transform: translate(-50%, -50%);
  display: none;
  color: white;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.modal-section[data-modal="1"].show .modal:nth-child(1),
.modal-section[data-modal="2"].show .modal:nth-child(2) {
  display: block;
}

.modal-h3 {
  width: 100%;
  display: block;
  font-style: normal;
  font-weight: bolder;
  font-size: 26px;
  line-height: 1.12;
  text-align: center;
  color: #ffdf5f;
  text-shadow: 0 2px 0 rgba(85, 22, 0, 0.85);
  margin: 0 0 16px;
}

.text-popap {
  color: #fff4f7;
  font-size: 15px;
  font-weight: 650;
}

.text-popap span {
  color: #ffdf5f;
  font-weight: 900;
}

.image-popap {
  margin-top: 16px;
  margin-bottom: 26px;
}

.my-p {
  color: #f6edf7;
  font-size: 15px;
  font-weight: 650;
}

.my-title-pop {
  color: #fff16d;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.12;
  margin: 8px auto 10px;
  text-shadow: 0 2px 0 rgba(85, 22, 0, 0.85);
}

.modal-img {
  display: block;
  margin: 10px auto 0;
  max-width: 200px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.34));
}

@media (max-height: 740px) {
  header {
    margin-bottom: 10px;
    padding-top: 12px;
  }

  header img {
    max-width: 180px;
  }

  .promo-title {
    font-size: 30px;
  }

  .promo-copy {
    font-size: 14px;
  }

  .game {
    max-width: min(500px, 74vh);
  }

  .wrap-btn {
    margin-top: 12px;
  }
}

@media (max-width: 380px) {
  .main-wrap {
    padding: 0 14px;
  }

  .promo-copy {
    font-size: 13px;
  }

  .promo-title {
    font-size: 28px;
  }

  .btn {
    min-width: 0;
    font-size: 0.86rem;
  }

  .modal-section .modal {
    width: calc(100% - 28px);
    padding: 20px 14px;
  }
}

@media (max-width: 480px) {
  header {
    margin-bottom: 10px;
  }

  header img {
    max-width: 190px;
  }

  .promo-title {
    font-size: 30px;
  }

  .game {
    max-width: 330px;
  }

  .wrap-btn {
    margin-top: 12px;
  }
}

@media (max-width: 380px) {
  .promo-title {
    font-size: 28px;
  }
}
