* {
  box-sizing: border-box;
  user-select: none;
}

html,
body {
  height: 100%;
  touch-action: none
}

body {
  font-family: Roboto, sans-serif;
  width: 100%;
  padding: 0;
  margin: 0;
  background: #000;
  overflow: hidden;
  color: #FFF;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#loaderContent {
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloaderLogo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  height: 70%;
  width: 100%;
  max-width: 700px;
  justify-content: center;
  animation: logoShow 1s forwards;
}


@keyframes logoShow {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#logoIconic {
  object-fit: contain;
  width: 60%;
  max-height: 33%;
}

#progress {
  display: inline-block;
  width: 40vw;
  height: 10px;
  margin: 1vh 35px;
  border-radius: 20px;
  border: 2px solid;
  border-color: #1f1c1f;
  z-index: 999;
  background-color: #000;
}

@media screen and (orientation: portrait) {
  #progress {
    width: 65vw;
  }
}


.bar {
  border-radius: 20px;
  width: 0%;
  height: 100%;
  transition: width;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(.36, .55, .63, .48);
}

.shadow {
  box-shadow: 0px 45px 50px rgba(0, 0, 0, 0.25);
}

.loader {
  background-color: #e9113a;
  background: linear-gradient(to right, #e9113a, #ea9d9d);
}

.close {
  position: absolute;
  width: 27px;
  height: 85%;
  opacity: 1;
  margin: 0 5px 0 5px;
  right: 1.5%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.close:before,
.close:after {
  position: absolute;
  left: 42%;
  top: 19%;
  content: ' ';
  height: 64%;
  width: 15%;
  background-color: #f5f5f5;
}

.close:before {
  transform: rotate(45deg);
}

.close:after {
  transform: rotate(-45deg);
}

#notifications {
  background-color: rgba(0, 0, 0, 0.9);
  height: 100%;
  position: fixed;
  display: flex;
  z-index: 10;
  align-content: center;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
}

#notificationText {
  margin: 2vw;
  font-size: 18px;
  text-align: center;
  width: 96vw;
}

.notificationButton {
  background-color: #1a1a1a;
  margin: 10px 10px;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  width: 20vw;
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (orientation: portrait) {
  .notificationButton {
    width: 20vh;
  }
}



.replayViewHeader {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 8vh;
  width: 100%;
  position: relative;
}

.replayViewTitle {
  text-align: center;
  font-size: 1.5em;
}

#replayWrapper {
  width: 100%;
  height: 89%;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zeroOpacity {
  opacity: 0;
}


#replayView {
  background-color: rgb(0 0 0 / 50%);
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-content: center;
  flex-wrap: wrap;
}

#replayViewContainer {
  width: 90%;
  height: 90%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-right: 4px;
  padding-left: 2px;
  align-items: center;
  background: black;
  border-radius: 24px;
}

#btnCloseReplay {
  right: 1%;
}

#btnBackReplay {
  position: absolute;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  left: 2%;
  width: 30px;
}

.hide {
  display: none !important;
}

* {
  box-sizing: border-box;
}

h1 {
  margin: 0;
}

p {
  white-space: pre-line;
  margin: 0;
  width: 100%;
  line-height: 1.8;
  font-size: 1em;
}

h3 {
  text-align: center;
  font-size: 1.45em;
  text-transform: uppercase;
  margin: 10px 0;
}

#menuBody {
  width: 100%;
  height: 90%;
  display: flex;
  flex-direction: column;
}

.menuContent {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 5vw 8px 5vw;
  width: 100%;
  height: 100%;
  margin-bottom: 15px;
}

.acceptMenu {
  height: 87%;
  margin-bottom: 0;
  /* centered by spacers below: justify-content:center would push an overflowing list above the scroll start */
  justify-content: flex-start;
}

/* equal growing spacers center the content and collapse when it overflows */
.acceptMenu::before,
.acceptMenu::after {
  content: '';
  flex: 1 0 0;
}

.menuContent::-webkit-scrollbar {
  width: 10px;
}

.menuContent::-webkit-scrollbar-track {
  border-radius: 10px;
}

.menuContent::-webkit-scrollbar-thumb {
  background-color: #e1e0e0;
  border-radius: 16px;
  border: 2px solid #1e2420;
}

.menuContent>img {
  width: 30vw;
  max-width: 200px;
  margin: 10px 0;
}

.menuContent>canvas {
  width: 30vw;
  max-width: 200px;
  margin: 10px 0;
}

#menuTop>img:hover {
  background: #2b2b2b;
}

#menuNavigation>img:hover {
  background: #2b2b2b;
}

#popups {
  display: flex;
  width: 100%;
  height: 100%;
  position: fixed;
  justify-content: center;
  align-items: center;
}

#menuMain {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-right: 4px;
  padding-left: 2px;
  width: 95%;
  height: 95%;
  align-items: center;
  background: #000000de;
  border-radius: 32px;
}

@media screen and (orientation: landscape) and (min-height: 720px) {
  #menuMain {
    width: 84%;
    height: 84%;
  }
}


#menuTop {
  position: relative;
  display: flex;
  align-items: center;
  height: 10%;
  width: 100%;
  border-bottom: 2px solid #ffffff40;
  z-index: 2;
}

.popupBtnWrapper {
  height: 13%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 2px solid #ffffff40;
  justify-content: center;
}

@media only screen and (max-height: 460px) {
  .close {
    right: 10px;
  }
}

@media only screen and (max-height: 800px) {
  .close {
    right: 10px;
  }
}

#menuTop h1 {
  width: 100%;
  text-align: center;
  font-size: clamp(15px, 4vh, 70px);
}

/* TODO */
@media (orientation: portrait) {
  #popups {
    flex-direction: column;
  }
}


.switch {
  position: relative;
  display: inline-block;
  padding-right: 56px;
  width: 70px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

input:checked+.slider {
  background-color: #ffffff;
}

.slider.round {
  border-radius: 34px;
}

.slider {
  position: absolute;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d4d4d4;
  -webkit-transition: .2s;
  transition: .2s;
}

.slider.round:before {
  border-radius: 50%;
}

.slider:before {
  position: absolute;
  content: "";
  height: 38px;
  width: 38px;
  left: 0px;
  bottom: -6px;
  background: linear-gradient(to bottom, #667FFF, #4965F2);
  -webkit-transition: .2s;
  transition: .2s;
}

input:checked+.slider:before {
  -webkit-transform: translateX(34px);
  -ms-transform: translateX(34px);
  transform: translateX(34px);
}

#settingsContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  align-items: center;
  height: 100%;
}

.label {
  width: 60%;
  font-size: clamp(20px, 3vw, 50px);
  margin: 20px 0 20px 0;
}

.preloader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 8px solid rgb(255, 255, 255);
  border-right-color: orange;
  animation: l2 1s infinite linear;
  transform: translate(-50%, -50%);
}

@keyframes l2 {
  to {
    transform: translate(-50%, -50%) rotate(1turn)
  }
}

.blink {
  animation: blink 1s;
}

@keyframes blink {
  0% {
    opacity: 0;
  }

  30% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.fadeIn {
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.fadeOut {
  animation: fadeOut 0.2s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.fadeOutPreloader {
  animation: fadeOutPreloader 1s forwards;
  pointer-events: none;
}

@keyframes fadeOutPreloader {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.paytable {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  width: 100%;
}

.cell {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 17px;
  margin: 10px 0 10px 0;
  flex-direction: column;
  width: 50%;
}

@media screen and (orientation: landscape) {
  .cell {
    width: 25%;
  }
}


.cell>canvas {
  max-width: 160px;
  padding: 15px;
}

.cell table {
  font-size: clamp(12px, 1.8cqw, 20px);
  margin-left: 5px;
  white-space: nowrap;
}

.cell th:first-child {
  text-align: right;
  color: #ff9900;
}

.cell th:last-child {
  text-align: left;
  padding-left: 10px;
}

ul {
  list-style-type: none;
  color: white;
  margin: 0;
  padding: 0;
}

li {
  margin-top: 5px;
  color: #54e344;
}

li>span:nth-child(2) {
  color: white;
}

.lines {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  align-items: center;
  margin: 20px 0;
  gap: 5px;
}

table {
  border-spacing: 0px;
  border-collapse: collapse;
  margin: 10px 0;
}

td {
  color: white;
  border: 2px solid gray;
  width: 12px;
  height: 12px;
}

.lineFill {
  background-color: #54e344;
}

.line {
  display: flex;
  align-items: center;
}

.line>p {
  margin-right: 10px;
  width: auto;
}

@media only screen and (max-width: 720px) {
  .cell>canvas {
    padding: 5px;
    width: 90px;
  }
}

@media only screen and (max-width: 500px) {
  .cell {
    font-size: 12px;
  }
}

@media only screen and (max-width: 400px) {
  .cell {
    font-size: 3vw;
    width: 50%;
  }
}

.textAlignCenter {
  text-align: center;
}

.btnsInfoRow img {
  height: 60px;
  width: 60px;
}

.btnsInfoRow canvas {
  width: 60px;
}

.btnsInfoRow {
  display: flex;
  align-items: center;
  margin: 10px 0 10px 0;
  width: 100%;
}

.btnsInfoRow>p {
  white-space: inherit;
  margin-left: 10px;
}

.button-group {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
}

.btnsInfo {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.btnsInfoRow .btnSpinArrow {
  position: absolute;
  height: 37px;
  width: auto;
  top: 11px;
  left: 12px;
}

#clock {
  position: absolute;
  right: 15px;
  top: 2px;
  font-size: clamp(10px, 1.5vw, 15px);
  text-shadow: 1px 1px 2px #000;
  font-weight: bold;
  z-index: 9999;
}

#slotName {
  position: absolute;
  left: 15px;
  top: 2px;
  font-size: clamp(10px, 1.5vw, 15px);
  text-shadow: 1px 1px 2px #000;
  font-weight: bold;
  z-index: 9999;
}

.centerBuyDiv {
  height: 100%;
  align-content: center;
}

.copyFade {
  animation: copyFade 2s;
}

@keyframes copyFade {
  0% {
    opacity: 1;
  }

  75% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.replayEndButtons {
  display: flex;
  flex-wrap: wrap;
  width: 30%;
  height: 15%;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  gap: 75px;

}

.fadeBack {
  width: 100%;
  height: 100%;
  background: #000000c4;
  display: flex;
  justify-content: center;
  align-items: center;
}

.replayEndButtons .replayButton {
  font-size: clamp(15px, 4vw, 20px);
}

@media only screen and (max-width: 800px) {
  .replayEndButtons {
    width: 70%;
  }
}

.popup {
  position: absolute;
  display: flex;
  background: #b121bf;
  border-radius: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  white-space: nowrap;
  width: 103%;
  height: 103%;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  align-items: center;
  justify-content: center;
}

.replayTableHeader {
  display: flex;
  padding: 8px 5vw 8px 5vw;
  -webkit-text-stroke: 1px #ffffff;
}

.replayTableTitle {
  font-size: clamp(15px, 3vh, 20px)
}


.replayButton {
  display: flex;
  font-size: clamp(10px, 2vw, 14px);
  border-radius: 16px;
  justify-content: center;
  width: 75%;
  height: 80%;
  align-items: center;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.replayTableRow {
  width: 100%;
  min-height: 10%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  -webkit-text-stroke: 0.25px #ffffff;
  border-bottom: 1px solid #6d6d6d;
}

.replayTableCol {
  display: flex;
  width: 20%;
  align-items: stretch;
  justify-content: center;
  text-align: center;
}

.replayTableColIn {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}


@media (max-width: 800px) {
  .replayTableCol {
    width: 33%;
  }

  .replayTableRow {
    min-height: 100px;
    padding-bottom: 10px;
  }

  .replayTableHeader :nth-child(4) {
    display: none;
  }

  .replayTableHeader :nth-child(5) {
    display: none;
  }

  .replayTableCol:nth-child(4) {
    width: 40%;
  }

  .replayTableCol:nth-child(5) {
    width: 40%;
  }

}


.btnWatch {
  background: linear-gradient(to bottom, #667FFF, #4965F2);
}

.btnCopy {
  background: linear-gradient(to bottom, #4DCE5A, #31A027);
}

/* ---------- Buy bonus: ticket cards ----------
   Layout is pure CSS over the stock buyFeature.ejs markup
   (.buyTitle, .buyDesc, .buyImage, .buyPriceWrapper, .buyButton),
   so games with their own copy of the template keep working.
   Landscape: vertical tickets, up to 4 per row, more wrap down (vertical scroll).
   Portrait: horizontal tickets in one column. */

.buyBetPanel+.centerBuyDiv {
  width: 100%;
  height: auto;
  flex: 1 0 auto;
}

.buyWrapper {
  --buyGap: 14px;
  display: grid;
  /* fixed track: up to 4 per row, shrinks to --buyMin before wrapping */
  --buyMin: 150px;
  --buyCol: max(var(--buyMin), min(226px, (100% - 3 * var(--buyGap)) / 4 - 1px));
  grid-template-columns: repeat(auto-fit, var(--buyCol));
  justify-content: center;
  align-items: stretch;
  gap: var(--buyGap);
  width: 100%;
  margin: 14px 0 0;
  padding: 0 0 16px;
}

.buyOffer {
  /* distance from the card bottom to the tear-off line */
  --buyStub: 98px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  color: #1c2033;
  font-size: 16px;
  text-align: center;
  -webkit-mask:
    radial-gradient(circle 11px at 0 calc(100% - var(--buyStub)), #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% calc(100% - var(--buyStub)), #0000 98%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 11px at 0 calc(100% - var(--buyStub)), #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% calc(100% - var(--buyStub)), #0000 98%, #000) right / 51% 100% no-repeat;
}

/* tear-off line */
.buyOffer::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: var(--buyStub);
  border-top: 2px dashed #d5d9e3;
  pointer-events: none;
}

.buyImage {
  order: -1;
  flex: none;
  width: 100%;
  height: 150px;
  min-height: 0;
  padding: 8px;
  border-radius: 10px;
  background: #f3f5fa;
  object-fit: contain;
}

.buyTitle {
  flex-shrink: 0;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  color: #1c2033;
  overflow-wrap: anywhere;
}

.buyDesc {
  flex-shrink: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  color: #5e6478;
}

/* price + button live below the tear-off line */
.buyPriceWrapper {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 26px;
}

.buyPrice {
  width: 100%;
  font-size: 17px;
  font-weight: 800;
  line-height: 22px;
  color: #1c2b5a;
}

.buyVolatility {
  font-size: 1em;
  width: 100%;
  color: #212941;
  font-weight: bold;
}

.buyButton {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(#ffb340, #ff8a00);
  box-shadow: 0 5px 0 #c96a00;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.buyButton:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #c96a00;
}

.unavailable {
  background-color: #f92525;
  cursor: auto
}

.buyButton.unavailable,
.buyButton.unavailable:active {
  padding: 0 6px;
  background: linear-gradient(#ff6b6b, #e83a3a);
  box-shadow: 0 5px 0 #a82424;
  transform: none;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
}

.buyBetPanel {
  display: flex;
  flex: none;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 340px;
  margin-top: 4px;
  padding: 8px 10px 13px 18px; /* +shadow of the buttons */
  border-radius: 14px;
  background: #fff;
  color: #1c2b5a;
  font-size: 18px;
  z-index: 1;
}

.buyBetAdjast {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(#ffb340, #ff8a00);
  box-shadow: 0 4px 0 #c96a00;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.buyBetAdjast:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #c96a00;
}

.disabled {
  background: #818181;
  cursor: default
}

.buyBetAdjast.disabled,
.buyBetAdjast.disabled:active {
  background: #c9ced8;
  box-shadow: 0 4px 0 #a3a9b6;
  transform: none;
}

.buyBetValue {
  width: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 900;
  color: #1c2b5a;
}

.buyBetTitle {
  font-weight: 800;
  color: #1c2b5a;
}

.buyBetControl {
  display: flex;
  align-items: center;
}

/* landscape phones: compact tickets so a whole row fits the short screen */
@media (orientation: landscape) and (max-height: 500px) {
  .buyBetPanel {
    max-width: 280px;
    padding: 7px 8px 11px 14px;
    font-size: 15px;
  }

  .buyBetAdjast {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }

  .buyBetValue {
    width: 70px;
  }

  .buyWrapper {
    --buyGap: 10px;
    --buyMin: 120px;
    margin-top: 8px;
  }

  .buyOffer {
    --buyStub: 84px;
    gap: 6px;
    padding: 10px;
  }

  .buyOffer::after {
    left: 10px;
    right: 10px;
  }

  .buyImage {
    height: 72px;
    padding: 4px;
  }

  .buyTitle {
    font-size: 16px;
  }

  .buyDesc {
    font-size: 11px;
  }

  .buyPriceWrapper {
    padding-top: 20px;
  }

  .buyPrice {
    font-size: 15px;
    line-height: 20px;
  }

  .buyButton {
    height: 36px;
    font-size: 16px;
    box-shadow: 0 4px 0 #c96a00;
  }
}

@media (orientation: portrait) {
  .buyBetPanel {
    max-width: 460px;
  }

  /* bet panel stays on top: only the offers list scrolls, fading out under the panel */
  .buyBetPanel+.centerBuyDiv {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }

  /* no scrollbar: it would shift the cards off the bet panel's edges; the bottom fade hints at more */
  .buyBetPanel+.centerBuyDiv::-webkit-scrollbar {
    display: none;
  }

  .buyWrapper {
    grid-template-columns: minmax(0, 460px);
    gap: 12px;
    margin-top: 0;
    padding: 20px 0 24px;
  }

  .buyOffer {
    --buyStub: 66px;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr auto;
    grid-template-areas:
      "img ."
      "img title"
      "img desc"
      "img ."
      "price button";
    column-gap: 12px;
    row-gap: 4px;
    text-align: left;
  }

  .buyImage {
    grid-area: img;
    align-self: center;
    width: 96px;
    height: 96px;
    padding: 6px;
  }

  .buyTitle {
    grid-area: title;
  }

  .buyDesc {
    grid-area: desc;
  }

  .buyPriceWrapper {
    grid-area: price;
    align-self: center;
    margin-top: 20px;
    padding-top: 0;
    text-align: center;
  }

  .buyButton {
    grid-area: button;
    margin-top: 20px;
  }
}

/* big screens: scale the whole buy menu */
@media (min-width: 1000px) and (min-height: 1080px) {

  .buyBetPanel,
  .buyBetPanel+.centerBuyDiv {
    zoom: 1.35;
  }
}

/* ===== Bet / Autoplay menus: white chips, orange selected (same palette as buy) ===== */
.centerDiv {
  display: block;
  width: 100%;
}

.bets,
.autoButtons {
  /* fixed-width chips, wrapped and centered so a short last row stays in the middle */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
  width: 100%;
  min-width: 0;
  max-width: 760px;
  margin: 0 auto;
  padding: 6px 4px 14px;
  box-sizing: border-box;
}

.autoButtons {
  padding-bottom: 6px;
}

.autoWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.autoWrapper>div:not(.autoButtons) {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
}

.autoWrapper>.autoButtons+div {
  margin-top: 8px;
}

.poolButton {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 92px;
  height: 44px;
  min-width: 0;
  padding: 0 2px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 0 #c3c8da;
  color: #1c2b5a;
  font-family: Roboto, sans-serif;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.poolButton.poolButtonSelected {
  background: linear-gradient(#ffb340, #ff8a00);
  box-shadow: 0 4px 0 #c96a00;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}

.poolButton:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #c3c8da;
}

.poolButton.poolButtonSelected:active {
  box-shadow: 0 2px 0 #c96a00;
}

.popupBtnContinue {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 220px;
  /* leave room above and below (incl. the 5px 3D shadow) in the short 13% footer */
  height: min(48px, 100% - 22px);
  min-height: 28px;
  margin-bottom: 5px;
  border-radius: 12px;
  background: linear-gradient(#ffb340, #ff8a00);
  box-shadow: 0 5px 0 #c96a00;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
  font-family: Roboto, sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.popupBtnContinue:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #c96a00;
}

@media (orientation: landscape) and (max-height: 500px) {
  .poolButton {
    flex-basis: 88px;
    height: 36px;
    font-size: 12px;
  }

  .bets,
  .autoButtons {
    gap: 8px 6px;
  }

  .autoWrapper {
    gap: 4px;
  }

  .autoWrapper>div:not(.autoButtons) {
    font-size: 12px;
  }

  .autoWrapper>.autoButtons+div {
    margin-top: 4px;
  }

  /* phone landscape: 13% footer is ~45px, too tight for the 3D button */
  .acceptMenu {
    height: 84%;
  }

  .popupBtnWrapper {
    height: 16%;
  }

  .popupBtnContinue {
    height: min(40px, 100% - 20px);
    width: 180px;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0 4px 0 #c96a00;
  }
}

/* big screens: scale bet / autoplay menus */
@media (min-width: 1000px) and (min-height: 1080px) {

  .centerDiv,
  .popupBtnContinue {
    zoom: 1.35;
  }
}

.symbol {
  width: 25%;
  max-width: 150px;
}

.symbolWrapper {
  width: 100%;
}

@media only screen and (min-height: 1080px) {
  .replayTableTitle {
    font-size: clamp(15px, 2.5vh, 50px)
  }

  .replayTableRow {
    font-size: clamp(15px, 2vh, 40px);
  }

  .replayButton {
    font-size: clamp(15px, 2vh, 40px);
  }

  body {
    font-size: 35px;
  }

  .cell {
    font-size: 35px;
  }

  .cell>canvas {
    max-width: 300px;
  }

  td {
    width: 30px;
    height: 30px;
  }
}

.imgWrapper>canvas {
  width: 30vw;
  max-width: 200px;
}

.imgWrapper>img {
  max-width: 200px;
}

.imgWrapper {
  width: 100%;
}
.cheatItem {
    font-size: clamp(14px, 2.3vw, 20px);    
    font-weight: bold;
    height: 50px;
    border-radius: 14px;
    border: 3px solid #667FFF;
    display: flex;   
    align-items: center;
    flex: 1 1 75px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    text-align: center;
    padding: 9px;
    margin: 10px;
}

.cheatTabs {
    display: flex;
    width: 100%;
}

.cheatTab {
    font-size: clamp(14px, 2.3vw, 20px);
    font-weight: bold;
    flex: 1;
    text-align: center;
    padding: 12px;
    margin: 10px;
    border-bottom: 3px solid transparent;
    opacity: 0.5;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.cheatTab.active {
    border-bottom-color: #667FFF;
    opacity: 1;
}

.cheatList.hidden {
    display: none;
}
