@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
:root {
  --main-background: url("./images/background.svg");
  --wheel-arrow: url("./images/wheel-arrow.svg");
  --wheel-border: url("./images/wheel-border.svg");
  --wheel-body: url("./images/wheel-body.svg");
  --wheel-spin-button: url("./images/wheel-spin-button.svg");
  --win-modal-background: linear-gradient(303.15deg, #170A3F 34.34%, #6A4C94 83.84%);
  --win-modal-gift-icon: url("./images/win-modal-gift-icon.svg");
  --reg-modal-background: url("./images/reg-modal-background.svg");
  --wheel-body-dot: transparent;
  --wheel-text-color: white;
  --wheel-text-stroke: none;
  --wheel-text-shadow: none;
  --main-text-color: #EAC95B;
  --main-text-shadow: #59C8A4;
  --reg-modal-form-background: #13141F;
  --spin-button-box-shadow: none;
  --spin-button-background: none;
  --spin-button-text-stroke: none;
  --spin-button-box-shadow1: none;
  --primary: #170A3F;
  --secondary: #F1B330;
}

:root {
  --wheel-deg: 0;
  --wheel-radius: 50%;
  --wheel-size: 640px;
  --wheel-button-size: 200px;
  --wheel-spin-size: 18%;
  --wheel-stand-size: calc(var(--wheel-size) - 150px);
  --wheel-body-size: 100%;
  --wheel-content--title: 60px;
  --wheel-content--logo-height: 70px;
  --bonus-type-font-size: 30px;
  --bonus-amount-font-size: 20px;
  --reg-bonus-type-font-size: 13px;
  --reg-bonus-amount-font-size: 15px;
  --bonus-type-line-height: 47px;
  --bonus-type-top: 0px;
  --bonus-amount-bottom: 50%;
  --bonus-type-font-weight: 700;
  --bonus-amount-font-weight: 700;
  --wheel-type-text-font-family: "Bowlby One", sans-serif;
  --wheel-amount-text-font-family: "Montserrat", sans-serif;
  --gap: 16px;
}

@media screen and (min-width: 1600px) {
  :root {
    --wheel-size: 740px;
  }
}
@media screen and (max-height: 760px) {
  :root {
    --wheel-size: 620px;
  }
}
@media screen and (max-height: 730px) {
  :root {
    --wheel-size: 550px;
  }
}
@media screen and (max-height: 640px) {
  :root {
    --wheel-size: 500px;
  }
}
@media screen and (max-width: 1300px) {
  :root {
    --wheel-size: 500px;
    --wheel-content--title: 50px;
    --wheel-content--logo-height: 50px;
  }
}
@media screen and (max-width: 768px) {
  :root {
    --wheel-size: 600px;
  }
}
@media screen and (max-width: 1400px) and (max-height: 760px) {
  :root {
    --wheel-size: 500px;
    --wheel-content--title: 50px;
    --wheel-content--logo-height: 50px;
  }
}
@media screen and (max-width: 1200px) and (max-height: 760px) {
  :root {
    --wheel-content--title: 40px;
    --wheel-content--logo-height: 45px;
  }
}
@media screen and (max-width: 992px) and (max-height: 760px) {
  :root {
    --wheel-size: 400px;
  }
}
@media screen and (max-height: 580px) {
  :root {
    --wheel-size: 450px;
  }
}
@media screen and (max-width: 568px) {
  :root {
    --wheel-size: 350px;
    --wheel-content--title: 28px;
    --wheel-content--logo-height: 40px;
  }
}
@media screen and (max-height: 580px) and (orientation: landscape) {
  :root {
    --wheel-size: 300px;
    --wheel-content--title: 25px;
    --wheel-content--logo-height: 30px;
  }
}
@media (min-width: 768px) and (max-width: 1200px) and (orientation: portrait) {
  :root {
    --wheel-size: 700px;
    --wheel-content--title: 60px;
    --wheel-content--logo-height: 70px;
  }
}
/*
Resset sass
--------------------------------------------
*/
a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
html,
iframe,
img,
ins,
kbd,
label,
legend,
li,
mark,
menu,
nav,
object,
ol,
output,
p,
pre,
q,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video {
  vertical-align: baseline;
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0 !important;
  font: inherit;
}

* {
  -webkit-text-size-adjust: auto !important;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

a {
  border: 0;
}

html {
  overflow-x: hidden;
}

body {
  line-height: 1;
  word-wrap: break-word;
}

ol,
ul {
  padding: 0;
  margin: 0;
  background-image: none;
  list-style: none inside none;
}

blockquote,
q {
  quotes: none;
}

blockquote:after,
blockquote:before,
q:after,
q:before {
  content: "";
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove controls from Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0; /* Removes leftover margin */
}

input,
textarea {
  -webkit-appearance: none;
  appearance: none;
  line-height: normal;
  -moz-appearance: none;
}

:focus {
  outline-style: none;
  outline-color: transparent;
}

button::-moz-focus-inner {
  border: 0;
}

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

.cgs-clear {
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  clear: both !important;
}

button {
  outline: none !important;
}

a, label, button {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset;
          box-shadow: 0 0 0 30px white inset;
}

html, body, #root, .main {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--primary);
  background-image: var(--main-background);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: var(--gap) var(--gap) 0 var(--gap);
}

.modal {
  padding: 0;
  border: none;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  min-height: 300px;
}
.modal::-ms-backdrop {
  background: rgba(0, 0, 0, 0.7);
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}
.modal[open] {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.modal .close-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 12px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.modal .close-icon img {
  display: block;
  width: 100%;
}

.wheel {
  width: var(--wheel-size);
  height: var(--wheel-size);
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  top: calc(var(--wheel-size) * 0.08);
  z-index: 3;
  rotate: var(--wheel-deg);
}
.wheel__dot {
  position: absolute;
  display: none;
  z-index: 2;
  width: 19.8%;
  height: 19.8%;
  background: var(--wheel-body-dot);
  border-radius: 138px;
}
.wheel__dot.animate {
  -webkit-transition: rotate cubic-bezier(0.2, 1, 0.2, 1) 6s;
  transition: rotate cubic-bezier(0.2, 1, 0.2, 1) 6s;
}
.wheel__chip {
  position: absolute;
  bottom: -3%;
  left: 10%;
  z-index: 5;
}
.wheel__crown {
  position: absolute;
  z-index: 5;
  top: -20%;
}
.wheel__arrow {
  position: absolute;
  width: 12%;
  height: 12%;
  top: -4%;
  left: 50%;
  z-index: 1;
  background: var(--wheel-arrow) no-repeat center center/contain;
  translate: -50%;
}
.wheel__body {
  position: relative;
  width: var(--wheel-body-size);
  height: var(--wheel-body-size);
  background: var(--wheel-body) no-repeat center/100%;
  overflow: hidden;
}
.wheel__body.animate {
  -webkit-transition: rotate cubic-bezier(0.2, 1, 0.2, 1) 5s;
  transition: rotate cubic-bezier(0.2, 1, 0.2, 1) 5s;
}
.wheel__body__bonus-item {
  position: absolute;
  top: 2%;
  left: 26%;
  width: 49.3%;
  height: 47.6%;
  -webkit-transform-origin: center bottom;
          transform-origin: center bottom;
}
.wheel__body__bonus-item:nth-of-type(1) {
  rotate: 0deg;
}
.wheel__body__bonus-item:nth-of-type(2) {
  rotate: 90deg;
}
.wheel__body__bonus-item:nth-of-type(3) {
  rotate: 180deg;
}
.wheel__body__bonus-item:nth-of-type(4) {
  rotate: 270deg;
}
.wheel__body__bonus-item:nth-child(odd) p {
  color: #FFFFFF;
}
.wheel__body__bonus-item:nth-child(even) p {
  color: #662682;
}
.wheel__body__bonus-type {
  margin-top: var(--bonus-type-top);
  color: var(--wheel-text-color);
  text-align: center;
  text-shadow: var(--wheel-text-stroke);
  text-transform: uppercase;
  font-family: var(--wheel-type-text-font-family);
  font-size: var(--bonus-type-font-size);
  font-weight: var(--bonus-type-font-weight);
  line-height: var(--bonus-type-line-height);
  -webkit-filter: drop-shadow(0 3.8px 3.8px var(--wheel-text-shadow));
          filter: drop-shadow(0 3.8px 3.8px var(--wheel-text-shadow));
}
.wheel__body__bonus-amount {
  text-align: center;
}
.wheel__spin {
  width: var(--wheel-spin-size);
  height: var(--wheel-spin-size);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-color: var(--primary);
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  border: 0 none;
  cursor: pointer;
}
.wheel__spin img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.wheel__stand {
  width: calc(var(--wheel-size) * 0.6);
  height: calc(var(--wheel-size) * 0.2);
  position: relative;
}
.wheel__stand::before {
  content: "";
  width: calc(100% + var(--wheel-size) * 0.041);
  height: calc(var(--wheel-size) * 0.05);
  position: absolute;
  bottom: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  background-color: var(--primary);
}
.wheel__stand::after {
  content: "";
  width: 100%;
  height: calc(var(--wheel-size) * 0.2);
  position: absolute;
  background-color: var(--primary);
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}
.wheel-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-item-align: end;
      align-self: flex-end;
}
.wheel::after {
  content: "";
  width: calc(var(--wheel-size) + 10px);
  height: calc(var(--wheel-size) + 10px);
  background: var(--primary);
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.wheel-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: calc(var(--gap) * 3);
}
.wheel-content h1 {
  font-size: var(--wheel-content--title);
  font-weight: 900;
}
.wheel-content h1 span {
  color: var(--secondary);
}
.wheel-content img {
  height: var(--wheel-content--logo-height);
}

.won-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0;
  background: var(--win-modal-background) no-repeat center/cover;
  height: 100%;
  min-height: 100%;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.won-content > img {
  width: auto;
  height: auto;
  min-width: 150px;
  min-height: 150px;
  max-width: 300px;
  max-height: 300px;
  -o-object-fit: contain;
     object-fit: contain;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.modal.win .won-content {
  padding: 24px;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

@media screen and (max-width: 520px) {
  .modal.win {
    width: 100%;
    scale: 1;
  }
  .won-content {
    width: 100%;
    min-height: 320px;
    height: 100%;
  }
}
.reg-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 776px;
  min-height: 520px;
  overflow: hidden;
}
.reg-content__background {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 50%;
  height: 100%;
  background: var(--reg-modal-background) no-repeat center/cover;
}
.reg-content .win-side {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 50%;
  overflow: hidden;
}
.reg-content .win-side .wheel {
  width: 305px;
  height: 305px;
  margin-bottom: 10px;
}
.reg-content .win-side .wheel__spin {
  scale: 0.4;
}
.reg-content .win-side .wheel__chip, .reg-content .win-side .wheel__crown {
  display: none;
}
.reg-content .win-side .wheel__body__bonus-type {
  margin-top: 7px;
  font-size: var(--reg-bonus-type-font-size);
  line-height: normal;
}
.reg-content .win-side .wheel__body__bonus-amount {
  bottom: 42%;
  font-size: var(--reg-bonus-amount-font-size);
}
.reg-content .win-side .amount-wrap {
  max-width: 80%;
  margin-top: 20px;
}
.reg-content .win-side .amount-wrap h3 {
  color: white;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 39px;
}
.reg-content .win-side .amount-wrap p {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 8px;
  color: #E8C657;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 39px;
}
.reg-content .form-side {
  width: 50%;
  background: var(--reg-modal-form-background);
}

@media screen and (max-width: 820px) {
  .modal.reg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    scale: 1;
  }
  .reg-content {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    width: 100%;
    min-height: 100% !important;
    padding: 40px 16px;
  }
  .reg-content__background {
    width: 100%;
  }
  .reg-content .win-side {
    width: 100%;
  }
  .reg-content .win-side .amount-wrap {
    max-width: 100% !important;
    margin: 0;
  }
  .reg-content .form-side {
    width: 100%;
    min-height: 100%;
    margin-top: 32px;
  }
}
@media (max-width: 992px) {
  .main {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
  .wheel-content {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-align: center;
  }
}
@media (max-width: 568px) {
  .wheel-content {
    gap: calc(var(--gap) * 2);
  }
}
@media (max-width: 992px) and (orientation: landscape) {
  .main {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
  }
}
@media screen and (max-width: 768px) {
  .wheel-wrap {
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
  }
}
@media (min-width: 768px) and (max-width: 1200px) and (orientation: portrait) {
  .main {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
  .wheel-wrap {
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
  }
  .wheel-content {
    text-align: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
}