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

body {
  background-size: cover;
  background-color: #000;
  background-repeat: no-repeat;
  background-position: top center;
}

body.loaded {
  background-image: url("./assets/images/full-bg.png");
}

textarea {
  position: absolute;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}

#root::before {
  content: url("./assets/images/icons/volume_off.svg")
    url("./assets/images/icons/provably.svg")
    url("./assets/images/icons/filled/provably.svg")
    url("./assets/images/icons/plus.svg") url("./assets/images/icons/close.svg")
    url("./assets/images/icons/history.svg")
    url("./assets/images/icons/info.svg")
    url("./assets/images/icons/volume_up.svg")
    url("./assets/images/icons/detail.svg")
    url("./assets/images/icons/filled/copy.svg")
    url("./assets/images/icons/copy.svg");
  display: none;
}

body,
input,
textarea {
  font-family: "Rowdies", "Inter", sans-serif;
}

canvas {
  z-index: 10;
}

* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;

  -webkit-touch-callout: none; /* iOS cihazlarda uzun basma menüsünü engelle */
  -moz-touch-callout: none;    
  -ms-touch-callout: none;    
  touch-callout: none;
}

html,
body {
  overflow: hidden;
  position: relative;
  touch-action: none;
  -ms-touch-action: none;
  touch-callout: none;
  user-select: none;
}

*::-webkit-scrollbar {
  width: 0;
  display: none;
}

/* curtains */

.curtains {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
}

.orientation-warning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 1);
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 1000000000000;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.orientation-warning .content {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: center;
  justify-content: center;
}

.orientation-warning img {
  width: 50%;
}

.curtains > div {
  position: absolute;
  background-image: url("./assets/images/curtain-left.png");
  background-repeat: no-repeat;
  background-size: cover;
  width: 524px;
  height: 1266px;
  zoom: 70%;
}

.curtains .left {
  left: 15%;
  background-image: url("./assets/images/curtain-left.png");
}

.curtains .right {
  right: 15%;
  background-image: url("./assets/images/curtain-right.png");
}

header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1210px;
  height: 141px;
  background-image: url("./assets/images/bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  margin: 0 auto;
  display: grid;
  place-items: center;
  user-select: none;
  z-index: 99;
  /* pointer-events: none; */
}

header .bar {
  position: relative;
  width: 100%;
  margin: 0 auto;
  transform: translateY(-1em);
  display: grid;
  place-items: center;
  justify-content: center;
}

header .bar .start {
  position: absolute;
  left: -6px;
  width: 54px;
  height: 60px;
  background-image: url("./assets/images/crystal.png");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 2;
}

header .steps {
  width: 994px;
  height: 26px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: center;
  justify-content: space-between;

  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  background: #55061c;
  border-radius: 12px;
  box-shadow: inset 0px -2px #84333e;
}

header .steps .multipliers {
  position: absolute;
  top: 175%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  font-size: 0.875em;
  color: rgba(255, 255, 255, 0.5);
}

[data-step="0"] .multipliers > div:nth-child(1),
[data-step="1"] .multipliers > div:nth-child(2),
[data-step="2"] .multipliers > div:nth-child(3),
[data-step="3"] .multipliers > div:nth-child(4),
[data-step="4"] .multipliers > div:nth-child(5),
[data-step="5"] .multipliers > div:nth-child(6),
[data-step="6"] .multipliers > div:nth-child(7),
[data-step="7"] .multipliers > div:nth-child(8) {
  color: #fff;
}

[data-step="1"] .multipliers > div:nth-child(1) {
  color: #948c0a;
}
[data-step="2"] .multipliers > div:nth-child(1),
[data-step="2"] .multipliers > div:nth-child(2) {
  color: #948c0a;
}
[data-step="3"] .multipliers > div:nth-child(1),
[data-step="3"] .multipliers > div:nth-child(2),
[data-step="3"] .multipliers > div:nth-child(3) {
  color: #948c0a;
}

[data-step="4"] .multipliers > div:nth-child(1),
[data-step="4"] .multipliers > div:nth-child(2),
[data-step="4"] .multipliers > div:nth-child(3),
[data-step="4"] .multipliers > div:nth-child(4) {
  color: #948c0a;
}

[data-step="5"] .multipliers > div:nth-child(1),
[data-step="5"] .multipliers > div:nth-child(2),
[data-step="5"] .multipliers > div:nth-child(3),
[data-step="5"] .multipliers > div:nth-child(4),
[data-step="5"] .multipliers > div:nth-child(5) {
  color: #948c0a;
}

[data-step="6"] .multipliers > div:nth-child(1),
[data-step="6"] .multipliers > div:nth-child(2),
[data-step="6"] .multipliers > div:nth-child(3),
[data-step="6"] .multipliers > div:nth-child(4),
[data-step="6"] .multipliers > div:nth-child(5),
[data-step="6"] .multipliers > div:nth-child(6) {
  color: #948c0a;
}

[data-step="7"] .multipliers > div:nth-child(1),
[data-step="7"] .multipliers > div:nth-child(2),
[data-step="7"] .multipliers > div:nth-child(3),
[data-step="7"] .multipliers > div:nth-child(4),
[data-step="7"] .multipliers > div:nth-child(5),
[data-step="7"] .multipliers > div:nth-child(6),
[data-step="7"] .multipliers > div:nth-child(7) {
  color: #948c0a;
}

[data-step="8"] .multipliers > div {
  color: #948c0a;
}

[data-step="8"] .multipliers > div:nth-child(9) {
  color: #fff;
}

header .steps .multipliers > div:not(:first-child) {
  transform: translateX(-15%);
}

header .steps .multipliers > div:last-child {
  position: absolute;
  right: 0;
  transform: none !important;
}

header .steps .crystal {
  position: absolute;
  top: -17px;
  left: -8px;
  width: 54px;
  height: 60px;
  background-image: url("./assets/images/crystal.png");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 11;
  transition: all 200ms linear;
}

header [data-step="1"] .crystal {
  left: calc(12.5% - 30px);
}
header [data-step="2"] .crystal {
  left: calc(25% - 30px);
}
header [data-step="3"] .crystal {
  left: calc(37.5% - 30px);
}
header [data-step="4"] .crystal {
  left: calc(50% - 30px);
}
header [data-step="5"] .crystal {
  left: calc(62.5% - 30px);
}
header [data-step="6"] .crystal {
  left: calc(75% - 30px);
}
header [data-step="7"] .crystal {
  left: calc(87.5% - 30px);
}
header [data-step="8"] .crystal {
  left: calc(100% - 46px);
}

header [data-step]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transition: all 200ms linear;
  background: linear-gradient(to bottom, #c8ca03, #948c0a);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

header [data-step="0"]::after {
  width: 0.001px;
}
header [data-step="1"]::after {
  width: 12.5%;
}
header [data-step="2"]::after {
  width: 25%;
}
header [data-step="3"]::after {
  width: 37.5%;
}
header [data-step="4"]::after {
  width: 50%;
}
header [data-step="5"]::after {
  width: 62.5%;
}
header [data-step="6"]::after {
  width: 75%;
}
header [data-step="7"]::after {
  width: 87.5%;
}
header [data-step="8"]::after {
  width: 100%;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

header .steps .step {
  position: relative;
  height: 100%;
}

header .steps .step::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 4px;
  width: 4px;
  height: 16px;
  border-radius: 12px;
  background: linear-gradient(to bottom, #7a350a, #d78316, #7a350a);
  z-index: 3;
}

header .steps .step.win::before {
  transition: width 200ms linear;
}

header .steps .step.win::before {
  width: 100%;
}

header .steps .step:last-child {
  position: absolute;
  right: 0;
}

header .steps .step:last-child::after {
  display: none;
}

header .steps .step:nth-child(9)::after {
  display: none;
}
header .steps .step:nth-child(10)::after {
  display: none;
}

header .steps .step:nth-child(9).win::before {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

header .steps .step:nth-child(1).win::before {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

header .steps .step:first-child.current::before {
  background-image: url("./assets/images/crystal.png");
  width: 54px;
  height: 60px;
  top: -62%;
  right: unset;
  left: -8px;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 10;
  transition: unset;
}

header .steps .step.win ~ .current::before {
  background-image: url("./assets/images/crystal.png");
  width: 54px;
  height: 60px;
  top: -62%;
  right: unset;
  left: -25px;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 10;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background-image: url("./assets/images/bottom_menu_fill_10.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 99;
  user-select: none;
}

footer .icon {
  display: grid;
  place-items: center;
  cursor: pointer;
}

footer .icon img {
  width: 48px;
  height: 48px;
}

footer > .left,
footer > .right,
footer > .center {
  bottom: 1em;
}

footer > .left,
footer > .right {
  z-index: 100;
}

footer > .left {
  position: absolute;
  left: 2em;

  display: flex;
  flex-direction: row;
  gap: 2em;
  align-items: center;
}

footer > .right {
  position: absolute;
  right: 2em;

  display: flex;
  flex-direction: row;
  gap: 2em;
  align-items: center;
}

footer > .center {
  position: absolute;
  width: 100%;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8em;
  align-items: flex-end;
  justify-content: center;
  color: #fff;
  white-space: nowrap;
  z-index: 3;
}

footer > .center .middle {
  display: grid;
  grid-template-columns: auto;
  gap: 1em;
  justify-content: center;
  align-items: center;
}

footer > .center .button {
  background-image: url("./assets/images/button.png");
  width: 265px;
  height: 125px;
  display: grid;
  place-items: center;
  font-size: 2em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  line-height: 1;
  zoom: 80%;
  transition: all 200ms linear;
}

footer > .center .button:hover {
  transform: scale(1.05);
}

footer > .center .button .title {
  align-content: end;
}

footer > .center .button img {
  margin: 0 auto;
  margin-bottom: -0.25em;
}

footer > .center .upper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 0.25em);
  zoom: 80%;
  display: flex;
}

.upper .provably-fair-icon {
  position: absolute;
  right: calc(100% + 2em);
  top: 0;
  height: 100%;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.upper .provably-fair-icon img {
  width: 60px;
}

.upper .select-balls {
  position: absolute;
  left: calc(100% + 2em);
  top: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  align-items: center;
}

.upper .select-balls > div {
  cursor: pointer;
}

.upper .select-balls .passive {
  opacity: 0.5;
  pointer-events: unset;
}

.upper .select-balls img {
  width: 120px;
}

footer > .center .balance-button {
  position: relative;
}

footer > .center .balance-button .inc {
  position: absolute;
  left: 0;
  top: 0;
  width: 22.5%;
  height: 100%;
  cursor: pointer;
}

footer > .center .balance-button .desc {
  position: absolute;
  right: 0;
  top: 0;
  width: 22.5%;
  height: 100%;
  cursor: pointer;
}

footer > .center .balance-button input {
  position: absolute;
  top: 17.5%;
  left: 50%;
  height: 50%;
  transform: translateX(-50%);
  background: none;
  width: 50%;
  margin: 0 auto;
  border: none;
  outline: none;
  appearance: none;
  -moz-appearance: textfield;
  text-align: center;
  font-weight: 700;
  font-size: 2.5em;
  color: #fff;
}
.balance-button.cashout {
  cursor: pointer;
  transition: all 200ms linear;
}
.balance-button.cashout:hover {
  transform: scale(1.05);
}
.balance-button.cashout input {
  pointer-events: none;
}

footer > .center .balance-button input::-webkit-outer-spin-button,
footer > .center .balance-button input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
footer > .center .balance-button .balance-text {
  position: absolute;
  bottom: 1.5em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.25em;
}

footer > .center .balance-button.bet .balance-text {
  bottom: 1em;
}

footer > .center .balance-button .currency {
  position: absolute;
  bottom: 0.9em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.75em;
  text-transform: uppercase;
}

footer > .center .balance {
  text-align: right;
}

footer > .center .text {
  font-size: 1.75em;
  text-transform: uppercase;
  font-weight: 700;
}
footer > .center .value {
  font-size: 1.25em;
  text-transform: uppercase;
}

footer .text,
footer .value {
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

footer .passive {
  opacity: 0.5;
  pointer-events: none;
}

.mobile-top {
  position: absolute;
  top: calc(100% + 1em);
  display: none;
  justify-content: end;
  gap: 1em;
  align-items: center;
  width: 100%;
  padding: 0 1em;
}

.mobile-top > div {
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgb(79 69 70 / 50%);
}

.mobile-top > div:first-child {
  margin-right: auto;
}

.mobile-top img {
  width: 75%;
  /*opacity: 0.85;*/
}

@media screen and (max-width: 1440px) {
  body {
    background-size: unset;
  }
  .curtains .right {
    right: 0;
  }
  .curtains .left {
    left: 0;
  }
}

@media screen and (max-width: 1200px) {
  footer > .center {
    gap: 4em;
  }
}

@media screen and (max-width: 1024px) {
  footer .icon {
    display: none;
  }
  .mobile-top {
    display: flex;
  }
  footer > .right,
  footer > .left {
    flex-direction: column;
    gap: 2em;
  }
  header {
    zoom: 70%;
    height: 200px;
  }
  header .steps .multipliers {
    font-size: 1em;
  }
  header .steps .multipliers > div:not(:first-child) {
    transform: translateX(-25%);
  }
  .upper .select-balls {
    grid-template-columns: 1fr;
    top: unset;
    bottom: 1em;
    left: calc(100% + 0.5em);
    height: unset;
  }
}

@media screen and (max-width: 768px) {
  .curtains .right {
    right: -15%;
  }
  .curtains .left {
    left: -15%;
  }
  header {
    zoom: 60%;
    height: 220px;
  }
  header .steps .multipliers {
    top: 200%;
  }
  footer {
    zoom: 90%;
  }
}

@media screen and (max-width: 700px) {
  footer > .left {
    left: 1em;
  }
  footer > .left,
  footer > .right {
    bottom: 160px;
  }
  footer {
    zoom: 90%;
    height: 120px;
  }
  footer > .center .balance {
    text-align: left;
    padding-left: 1em;
  }
  footer > .center .bet {
    text-align: right;
    padding-right: 1em;
  }
  footer > .center {
    bottom: 1.25em;
  }
  footer > .center {
    gap: 0;
  }
  header .bar {
    transform: translateY(-2em);
  }
}

@media screen and (max-width: 640px) {
  footer {
    zoom: 85%;
  }
  header {
    zoom: 50%;
  }
}

@media screen and (max-width: 540px) {
  footer {
    zoom: 75%;
  }
}

@media screen and (max-width: 480px) {
  footer {
    zoom: 75%;
    height: 100px;
  }
  footer > .center .text {
    font-size: 1.25em;
  }
  footer > .center .value {
    font-size: 0.875em;
  }
  footer > .center .button {
    zoom: 90%;
  }
  .curtains .right {
    right: -15%;
  }
  .curtains .left {
    left: -15%;
  }
  .curtains > div {
    zoom: 40%;
  }
  header {
    zoom: 38%;
    height: unset;
    margin-top: 10%;
    width: 100%;
    background-image: unset;
  }
  .mobile-top {
    top: calc(100% + 2em);
  }
  header .bar {
    transform: translateY(-4em);
  }
  header .steps .multipliers {
    top: 200%;
    font-size: 1.5em;
    padding-right: 1em;
  }
  footer #middle {
    zoom: 90%;
  }
  header .steps {
    zoom: 110%;
  }
}

@media screen and (max-width: 415px) {
  footer #middle {
    zoom: 80%;
  }
  header {
    zoom: 33%;
  }
}

@media screen and (max-width: 350px) {
  header {
    zoom: 28%;
    /*height: 260px;*/
  }
  footer {
    height: 80px;
    zoom: 65%;
  }
}

@media screen and (min-width: 2048px) {
  .curtains > div {
    zoom: 100%;
  }
}

@media screen and (max-height: 768px) and (orientation: landscape) {
  header {
    zoom: 80%;
  }
}
