@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@800;900&display=swap");

:root {
  --app-height: 100vh;
  --color-purple-950: #1a0024;
  --color-purple-900: #270030;
  --color-yellow: #ffec16;
  --color-white: #fff;
  --wheel-size-target: min(70vw, 1120px);
  --wheel-bottom-depth: clamp(170px, 16.5vw, 340px);
  --wheel-min-top: clamp(250px, 30vh, 290px);
  --wheel-size: min(
    var(--wheel-size-target),
    calc(var(--app-height) + var(--wheel-bottom-depth) - var(--wheel-min-top))
  );
  --wheel-top: calc(var(--app-height) + var(--wheel-bottom-depth) - var(--wheel-size));
  --fire-height: clamp(130px, 17vw, 279px);
  --fire-bottom-offset: 0px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-purple-950);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: var(--app-height);
  margin: 0;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-purple-950);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.game {
  position: relative;
  isolation: isolate;
  min-height: var(--app-height);
  overflow: hidden;
}

.game__background,
.game__fire,
.game__side-gradient {
  pointer-events: none;
  position: fixed;
  left: 0;
  width: 100%;
}

.game__background {
  inset: 0;
  z-index: -2;
  background: url("../img/bg-lg.jpg") center top / cover no-repeat;
}

.game__background::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(
    circle at 50% 42%,
    rgba(41, 0, 61, 0) 0,
    rgba(24, 0, 35, 0.1) 44%,
    rgba(24, 0, 35, 0.72) 100%
  );
}

.game__fire {
  bottom: var(--fire-bottom-offset);
  z-index: 5;
  height: var(--fire-height);
  background: url("../img/fire.png") center top / cover no-repeat;
}

.game__side-gradient {
  inset: 0;
  z-index: 6;
  background: linear-gradient(
    90deg,
    rgba(25, 0, 34, 0.98) 0%,
    rgba(25, 0, 34, 0.92) 8%,
    rgba(25, 0, 34, 0.58) 19%,
    rgba(25, 0, 34, 0.12) 33%,
    rgba(25, 0, 34, 0) 43%,
    rgba(25, 0, 34, 0) 57%,
    rgba(25, 0, 34, 0.12) 67%,
    rgba(25, 0, 34, 0.58) 81%,
    rgba(25, 0, 34, 0.92) 92%,
    rgba(25, 0, 34, 0.98) 100%
  );
}

.game__stage {
  position: relative;
  /* z-index: 4; */
  min-height: var(--app-height);
  padding-top: clamp(6px, 1.1vw, 16px);
}

.game__brand {
  position: relative;
  z-index: 8;
  width: min(31vw, 400px);
  margin: 0 auto;
}

.game__logo {
  width: 100%;
  filter: drop-shadow(0 8px 5px rgba(0, 0, 0, 0.62));
}

.game__banner {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(64vw, 880px);
  min-height: clamp(50px, 4.9vw, 78px);
  margin: clamp(-9px, -0.5vw, -4px) auto 0;
  padding: clamp(7px, 0.65vw, 11px) clamp(16px, 2.5vw, 40px)
    clamp(9px, 0.78vw, 14px);
  background: url("../img/header.png") center / 50% 100% no-repeat;
  text-align: center;
}

.game__banner-text {
  position: relative;
  display: inline-block;
  color: #fffe3e;
  background: linear-gradient(
    180deg,
    #ffe20a 0%,
    #ffe20a 49%,
    #ffff55 50%,
    #ffff55 58%,
    #ffff55 59%,
    #ffff55 100%
  );
  background-clip: text;
  font-family: Poppins, Arial, sans-serif;
  font-size: clamp(22px, 2vw, 38px);
  font-weight: 700;
  line-height: 0.96;
  text-transform: uppercase;
  -webkit-background-clip: text;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.72);
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 5px #4a0066)
    drop-shadow(0 4px 1px #080008)
    drop-shadow(0 9px 9px rgba(0, 0, 0, 0.8));
    
  white-space: nowrap;
}

.game__banner-text::before {
  display: none;
  content: none;
}

.game__banner-lines {
  display: none;
}

.game__wheel-wrap {
  position: absolute;
  z-index: 4;
  top: var(--wheel-top);
  right: 0;
  left: 0;
  height: var(--wheel-size);
}

.wheel,
#spinwheel {
  position: absolute;
  left: 50%;
  width: var(--wheel-size) !important;
  max-width: none;
  overflow: visible;
  transform: translateX(-50%);
}

#spinwheel::after {
  display: block;
  padding-bottom: 100%;
  content: "";
}

#spinwheel canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transform-origin: 50% 50%;
}

#spinwheel canvas[data-layer="seg_2"] {
  will-change: transform;
}

#spinwheel .spin-button {
  position: absolute;
  z-index: 12;
  top: 50%;
  left: 50%;
  cursor: pointer;
  filter:
    drop-shadow(0 8px 8px rgba(0, 0, 0, 0.78))
    drop-shadow(0 0 14px rgba(0, 145, 255, 0.6));
  transform: translate(-50%, -50%);
}

.game-loader {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lds-dual-ring {
  display: inline-block;
  width: 100px;
  height: 100px;
}

.lds-dual-ring::after {
  display: block;
  width: 100px;
  height: 100px;
  margin: 1px;
  border: 10px solid #ffd43e;
  border-color: #ffd43e transparent #ffd43e transparent;
  border-radius: 50%;
  content: "";
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

.bonus-modals {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2vw, 28px);
  background: rgba(3, 0, 12, 0.74);
}

.bonus-modals.active {
  display: flex;
}

.bonus-modal {
  position: relative;
  display: none;
  width: min(74vw, 650px);
  max-height: calc(var(--app-height) - 32px);
}

.bonus-modal.active {
  display: block;
}

.bonus-modal__panel {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.72));
}

.bonus-modal__brand {
  position: absolute;
  z-index: 2;
  top: -5.5%;
  left: 50%;
  width: min(39%, 225px);
  transform: translateX(-50%);

}

.bonus-modal__art {
  width: 100%;
  border-radius: 5px;
}

.bonus-modal__cta {
  position: absolute;
  z-index: 3;
  bottom: 4.1%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  min-width: 250px;
  aspect-ratio: 400 / 106;
  padding: 0 20px;
  color: #fff;
  background: url("../img/cta.png") center / 100% 100% no-repeat;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.78));
}

.bonus-modal__cta-text {
  display: block;
  color: #fff;
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1;
  text-shadow:
    0 4px 0 rgba(0, 75, 0, 0.45),
    0 5px 8px rgba(0, 0, 0, 0.88);
  white-space: nowrap;
  font-family: Poppins, Arial, sans-serif;
  margin-bottom: 5px;
}

.modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: none;
  overflow: auto;
  background: rgba(0, 0, 0, 0.72);
}

.modal.in {
  display: block;
}

.modal-dialog {
  width: min(92vw, 560px);
  margin: 10vh auto;
}

.modal-content {
  border-radius: 8px;
  background: #fff;
  color: #1b1b1b;
  font-family: Arial, sans-serif;
  text-align: center;
}

.modal-body {
  padding: 28px;
}

.modal-ont__title,
.modal-ont__content,
.modal-ont__disclaimer {
  margin: 0 0 16px;
}

.modal-ont a {
  color: #00008b;
  font-weight: 700;
}

@media screen and (min-width: 1921px) {
  :root {
    --wheel-size-target: clamp(1260px, min(76vw, 134vh), 1520px);
    --wheel-bottom-depth: calc(var(--wheel-size-target) * 0.33);
  }
}

@media screen and (max-width: 1200px) {
  :root {
    --wheel-size-target: min(94vw, 1020px);
    --wheel-bottom-depth: clamp(145px, 22vw, 300px);
  }

  .game__brand {
    width: min(42vw, 380px);
  }

  .game__banner {
    width: min(78vw, 820px);
  }

}

@media screen and (min-width: 768px) and (max-height: 1100px) {
  :root {
    --fire-height: clamp(190px, 12vw, 236px);
    --fire-bottom-offset: clamp(-50px, -6.5vw, -96px);
  }
}

@media screen and (max-width: 767px) {
  :root {
    --wheel-size-target: 145vw;
    --wheel-bottom-depth: 40vw;
    --wheel-min-top: clamp(230px, 35vh, 280px);
    --fire-height: clamp(90px, 24vw, 210px);
    --fire-bottom-offset: 0px;
  }

  .game__stage {
    padding-top: max(16px, 5vw);
  }

  .game__brand {
    width: min(68vw, 320px);
  }

  .game__banner {
    width: 94vw;
    min-height: clamp(70px, 18vw, 96px);
    padding: 0 18px;
    background: none;
  }

  .game__banner-text--desktop {
    display: none;
  }

  .game__banner-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }

  .game__banner-text--mobile {
    font-size: clamp(22px, 7.4vw, 36px);
    line-height: 0.95;
  }

  .bonus-modal {
    width: min(95vw, 800px);
  }

  .bonus-modal__brand {
    top: -6.3%;
    width: 38%;
  }

  .bonus-modal__cta {
    min-width: 0;
    width: 52%;
  }
  .bonus-modal__cta-text {
    font-size: 5vw!important;
  }
}

@media screen and (max-width: 767px) {
  .game__side-gradient {
    background: linear-gradient( 90deg, rgba(25, 0, 34, 0.98) 0%, rgba(25, 0, 34, 0.6) 8%, rgba(25, 0, 34, 0.2) 19%, rgba(25, 0, 34, 0.12) 33%, rgba(25, 0, 34, 0) 43%, rgba(25, 0, 34, 0) 57%, rgba(25, 0, 34, 0.12) 67%, rgba(25, 0, 34, 0.2) 81%, rgba(25, 0, 34, 0.6) 92%, rgba(25, 0, 34, 0.98) 100% );
  }
}

@media screen and (max-width: 430px) {
  .game__banner-text {
    font-size: clamp(24px, 5.2vw, 24px);
  }
}
