/* Loading states to prevent content flashing */
.betting-overlay {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.betting-overlay.loaded {
  opacity: 1;
}

.footer-icon {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.footer-icon.loaded {
  opacity: 1;
}

/* Prevent image loading flashes */
img {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

img.loaded,
img[src] {
  opacity: 1;
}

html,
body {
  font-family: "Inter-Bold" !important;
  margin: auto;
}

html,
body {
  touch-action: manipulation;
  /* ✅ Blocks pinch & double-tap zoom */
  overscroll-behavior: none;
  /* ✅ Stops bounce/scroll zoom */
}

* {
  box-sizing: border-box;
}

input,
select,
textarea,
button {
  font-size: 16px !important;
}

p {
  margin: 0;
}

#gameStage {
  overflow: hidden;
  position: fixed;
}

#panel,
#tournament-modal,
#dailywins-modal {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  background: #000000d9;
  background: #000000;
  background: rgba(0, 0, 0, 0.95);
  color: white;
  text-align: left;
  flex-direction: column;
}

#panelMain {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#rulesPageHeader {
  box-sizing: content-box;
  height: 12%;
  width: 98%;
  border-bottom: 5px solid #a48723;
  display: flex;
  align-items: center;
}

#headerTitle,
#headerCloseBtn {
  margin-left: auto;
  color: white;
}

#headerCloseBtn {
  height: 80%;
}

#gamerules_container {
  padding-left: 0;
  padding-right: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.override {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: unset;
}

#panel.showRules,
#tournament-modal.showRules,
#dailywins-modal.showRules {
  display: block;
}

.container {
  padding-left: 0;
  padding-right: 0;
}

.mt-10 {
  margin-top: 2%;
}

.heading {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg,
      #ffd700 0%,
      #fff9c4 20%,
      #ffecb3 40%,
      #fff59d 60%,
      #fff9c4 80%,
      #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 6px;
  text-shadow: 0 6px 30px rgba(255, 215, 0, 0.6);
  margin-bottom: 10px;
  margin-top: 10px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.heading::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -20px;
  right: -20px;
  bottom: -10px;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 215, 0, 0.1),
      transparent);
  border-radius: 15px;
  z-index: -1;
}

.heading::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  background: linear-gradient(90deg,
      transparent,
      #ffd700,
      rgba(255, 193, 7, 0.8),
      #ffd700,
      transparent);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

#rulesHeader {
  box-sizing: content-box;
  border-bottom: 2.77px solid #a48723;
  width: 100%;
  display: flex;
  align-items: center !important;
  justify-content: center;
}

.lower {
  width: 100%;
  height: 81%;
  margin-top: 15px;
  overflow-x: hidden;
  margin: auto;
}

.close {
  font-size: 28px;
  font-weight: bold;
  opacity: 1 !important;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 100%;
  width: 45%;
  justify-content: end;
}

#lower_container {
  width: 100%;
  margin: auto;
}

#lower_container,
#pay_table {
  display: none;
}

#lower_container {
  display: block;
}

.paytable img {
  width: 100px;
}

.info_headings {
  color: #ffca0d;
  color: linear-gradient(89.86deg, #ffc400 15.92%, #ffad08 85.23%);
  background: linear-gradient(89.86deg, #ffc400 15.92%, #ffad08 85.23%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Inter-Bold";
  text-transform: uppercase;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.info_contentText {
  font-size: 1vw;
  font-size: 1.5vw;
  line-height: 1.8;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.family-bold {
  font-family: "Inter-Bold" !important;
}

.flex-row {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  margin-bottom: 1.25em;
}

.gamerules .flex-row {
  justify-content: space-around;
  margin-top: 1.25em;
}

.gamerules h4 {
  margin-bottom: 5px;
}

.symb_info {
  display: flex;
  align-items: center;
}

.lower-pre {
  display: flex;
  align-items: center;
  justify-content: center;
}

.symb_info p {
  font-size: 1.2em;
  text-align: left;
}

.gamerules {
  padding: 0 15px;
  font-size: 16px;
}

.mt-5 {
  margin-top: 5px !important;
}

.mt-60 {
  margin-top: 60px;
}

.paytable_image {
  margin: 1.25em 0;
}

.paytable_image img {
  width: 60%;
}

.paytable_values {
  margin: 10px;
  margin-right: 0;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}

.paytable_values p {
  margin: 0;
  font-size: 1.2em;
  padding-left: 0.2em;
}

.payline-container {
  margin: 5px;
}

.space_and_enter {
  text-align: left;
  margin: 1.25em;
}

.adjacent,
.paytable {
  margin-top: 10px;
}

.volatility {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border: 2px solid;
  border-radius: 9px;
  max-width: 350;
  padding: 0.1em 0.5em;
  font-size: clamp(1.2vw, 1.3vw, 1.5vw) !important;
}

.winuptoText {
  font-size: 1.5dvw;
  font-size: 1vw;
  font-size: 1.5vw;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.volatility_text {
  color: white;
  text-transform: uppercase;
}

p.volatility_text {
  margin-bottom: 0;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.volatility_imgs img {
  width: 0.65em;
}

.volatility_imgs {
  margin-inline: 0.7em;
}

.adjacent {
  padding: 15px;
}

.parallel,
.symb_info_parallel {
  display: flex;
  justify-content: space-between;
}

.parallel {
  align-items: center;
}

.symb_info_parallel {
  align-items: flex-start;
  width: 50%;
  font-size: 1.47vmax;
  font-size: 1.4dvw;
  font-size: 0.8vw;
  margin: 10px;
  gap: 5%;
  padding: 1vw;
  background: linear-gradient(100.78deg,
      rgba(111, 111, 111, 0.7) 0.44%,
      rgba(32, 32, 32, 0.96) 101.92%);
  border-radius: 4px;
}

.symb_info_parallel img {
  width: 32%;
  min-width: 42%;
  object-fit: contain;
  max-height: 12vw;
}

.paytable_samp {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-family: "Noto Sans", sans-serif;
  gap: 30px;
}

.samp_divs {
  width: 25%;
  display: flex;
  font-size: 1.34vmax;
  align-items: center;
  justify-content: center;
  font-family: "Inter-Bold";
}

.samp_divs img {
  width: 59%;
  object-fit: contain;
  max-height: 10.5vw;
  min-width: 59%;
}

#text-flex_Container {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
}

::-webkit-scrollbar {
  width: var(--scrollWidth);
}

/* Track */
::-webkit-scrollbar-track {
  background: #d9d9d9;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #1f1f1f;
  border: 3px solid transparent;
  background-clip: content-box;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.lower::-webkit-scrollbar {
  width: var(--rulesScrollWidth);
}

/* Track */
.lower::-webkit-scrollbar-track {
  background: #d9d9d9;
}

/* Handle */
.lower::-webkit-scrollbar-thumb {
  background: #1f1f1f;
  border: 3px solid transparent;
  background-clip: content-box;
}

/* Handle on hover */
.lower::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Swipe for IOS */

#swipe-layer {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  text-align: center;
  background: rgba(10 10 10 / 46%);
  visibility: hidden;
  overflow: auto;
  z-index: 9999;
  -webkit-overflow-scrolling: touch;
}

.swipe-object {
  animation: MoveUpDown 1.5s linear infinite;
  position: fixed;
  padding-top: 100px;
  left: 0;
  right: 0;
  margin: 0 auto;
  top: 0;
}

@keyframes MoveUpDown {
  0% {
    top: 0;
    bottom: 0;
  }

  50% {
    bottom: 50px;
  }

  100% {
    top: 50px;
    bottom: 0;
  }
}

.paytable-main-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

#paytable,
#fsPaytable {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 602px;
}

.payline-row {
  display: flex;
  justify-content: center;
}

.payline-row div.payline-col {
  height: 15px;
  width: 15px;
  background: grey;
  border: 1px solid black;
}

#paytable .hightlight-square,
#fsPaytable .hightlight-square {
  background-color: white;
}

.payline {
  display: flex;
  align-items: center;
}

.payline .paylineIndex {
  width: 1.2em;
  text-align: right;
}

#panel[isMobile="true"] .close {
  width: 85px;
}

#panel[isMobile="true"] .close img {
  margin: auto;
  height: 64%;
}

@media (min-width: 600px) {
  body {
    font-size: 16px;
  }
}

@media (max-width: 420px) and (orientation: portrait) {
  .symb_info {
    flex-direction: column;
  }

  .symb_info p {
    text-align: center;
  }

  .gamerules .flex-row {
    justify-content: center;
    margin-top: 1.25em;
  }

  .volatility_text {
    font-size: 16px;
  }

  */ span.volatility_imgs img {
    width: 5px;
  }

  .mt-60 {
    margin-top: 0;
  }

  .lower {
    height: 100vh;
  }

  .upper {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
  }

  .paytable_values {
    margin: 5px;
    margin-right: 0;
  }
}

@media (max-height: 550px) {
  .lower {
    height: 74%;
  }
}

@media (height: 540px) {
  .lower {
    height: 73%;
  }
}

@media (max-height: 400px) {
  .lower {
    height: 80%;
  }
}

@media (max-height: 360px) {
  .lower {
    height: 70%;
  }
}

@media (max-width: 840px) {
  .gamerules {
    font-size: 16px;
  }

  .gamerules .flex-row {
    justify-content: center;
  }

  .lower {
    padding-bottom: 10%;
  }

  .paytable_image img {
    width: 90%;
  }
}

@media (orientation: portrait) {
  .volatility {
    border-radius: 6px;
    font-size: clamp(2vw, 2.5vw, 3vw) !important;
  }

  #panel[isMobile="true"] #rulesHeader {
    padding: 5px 0px;
  }

  #panel[isMobile="true"] .close {
    width: auto;
  }

  #panel[isMobile="true"] .close img {
    margin: auto;
    height: 80%;
  }

  @media (orientation: landscape) {
    #panel[isMobile="true"] .close img {
      margin: auto;
      height: 90%;
    }
  }

  #paytable {
    width: 300px;
  }

  #panel[isMobile="true"] .heading {
    margin-left: 35px;
    margin-top: 10px;
  }

  body,
  html {
    overflow: hidden !important;
  }

  #swipe-layer {
    display: none;
  }

  .parallel {
    display: block;
  }

  .paytable_samp {
    width: 95%;
    margin: auto;
    column-gap: 2em;
    row-gap: 1em;
    margin-bottom: 1rem;
  }

  .symb_info_parallel {
    width: 100%;
    font-size: 2.3vw;
    gap: 1%;
    margin-left: 0;
  }

  .symb_info_parallel img {
    width: 25%;
    min-width: 25%;
    max-height: 22vw;
  }

  .samp_divs {
    width: 45%;
    font-size: 3vw;
    border-radius: 1.25vw !important;
  }

  .samp_divs .paytable_values {
    border-radius: 0.2rem !important;
  }

  .samp_divs img {
    width: 55%;
    min-width: 55%;
    max-height: 22vw;
  }

  .info_headings {
    font-size: 5vw;
  }

  .info_contentText {
    font-size: 2.5vw;
  }

  .winuptoText {
    font-size: 2.5vw;
  }

  #text-flex_Container {
    flex-direction: column;
  }
}

@media (max-width: 350px) {
  .samp_divs {
    font-size: 2.9vw;
  }

  .paytable_values {
    margin: 5px;
    margin-right: 0;
  }
}

@media (max-width: 300px) {
  .samp_divs {
    font-size: 2.8vw;
  }
}

@media (max-width: 280px) {
  .samp_divs {
    font-size: 2.7vw;
  }
}

@media screen and (orientation: landscape) and (max-width: 659px) {
  .samp_divs {
    font-size: 16px;
  }

  .paytable_values {
    border-radius: 0.5rem !important;
    margin: 5px !important;
  }
}

@media (orientation: landscape) {
  .paytable_values {
    margin-right: 0;
    border-radius: 0.5vw !important;
  }

  .samp_divs {
    border-radius: 0.5vw !important;
  }
}

@media screen and (orientation: landscape) and (max-width: 600px) {
  .samp_divs img {
    width: 50%;
  }

  .symb_info_parallel img {
    width: 27%;
  }

  .symb_info_parallel {
    font-size: 16px;
  }
}

@media screen and (orientation: landscape) and (max-width: 600px) {
  .samp_divs {
    font-size: 16px;
  }

  .symb_info_parallel {
    font-size: 16px;
  }
}

@media (max-width: 350px) {
  div#panel {
    width: 100%;
    margin: auto;
  }
}

@media (max-width: 370px) and (orientation: portrait) {
  .samp_divs {
    width: 44%;
  }
}

.samp_divs {
  background: linear-gradient(100.78deg,
      rgba(111, 111, 111, 0.7) 0.44%,
      rgba(32, 32, 32, 0.96) 101.92%);
  border-radius: 0.8rem;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.samp_divs::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  padding: clamp(1px, 0.08vw, 2px);
  background: linear-gradient(100.81deg,
      rgba(255, 255, 255, 0.5) -0.31%,
      rgba(219, 250, 255, 0.2) 99.79%);
  box-sizing: border-box;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.paytable_values {
  background: #000000;
  backdrop-filter: blur(15.639097213745117px);
  border-radius: 0.5rem;
}

@media (min-width: 1024px),
screen and (orientation: landscape) {
  .samp_divs {
    width: 100%;
  }
}

.scatter_container {
  width: 100%;
  display: flex;
  justify-content: center !important;
  align-items: center !important;
}

.scatter_main_container {
  width: 45%;
  height: 100%;
  background: #1b1a1a;
  border-radius: 0.8vw;
  padding: 1vw;
  display: flex;
  justify-content: center;
  align-items: center !important;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.scatter_main_container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.8vw;
  padding: clamp(1px, 0.2vw, 2px);
  background: linear-gradient(100.81deg,
      rgba(255, 255, 255, 0.5) -0.31%,
      rgba(219, 250, 255, 0.2) 99.79%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.scatter_cont_container {
  width: 100%;
  height: 100%;
  border-radius: 0.4vw;
  background-color: black;
  backdrop-filter: blur(15.639097213745117px);
  display: flex;
  flex-direction: column;
  justify-content: center !important;
  align-items: center !important;
  padding: 2%;
}

.scatter_rules_container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 30%;
}

.scatter_rules_container>.game-rules {
  font-size: 1.2rem !important;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.parallel .game-rules {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.scatter-highlight_text {
  color: #ffd400;
  font-weight: 700;
}

.scatter_value_image_container {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  height: 70%;
  width: 100%;
}

.scatter_value_image_container .scatter_paytable_values {
  width: 35%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end !important;
  align-items: flex-end !important;
  font-size: 2vw;
  padding: 0px 1.5vw;
}

.scatter_value_image_container .scatter_paytable_values .scatter_paytable_label {
  width: 100%;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.scatter_paytable_label span {
  flex: 1;
  text-align: left;
}

.scatter_paytable_label span:nth-child(2) {
  text-align: center;
}

.scatter_paytable_label span:last-child {
  text-align: right;
}

.scatter_value_image_container img {
  width: 150px;
  margin: 5px;
  height: 150px;
}

@media (orientation: portrait) {
  .scatter_main_container {
    width: 80%;
    border-radius: 1.25vw;
  }

  .scatter_main_container::before {
    border-radius: 1.25vw;
    padding: 0.5px;
  }

  .scatter_rules_container>.game-rules {
    padding-top: 2%;
    font-size: 16px !important;
    line-height: 1.25;
  }

  .scatter_paytable_label {
    font-size: 16px;
  }

  .scatter_value_image_container img {
    width: 100px;
    margin: 5px;
    height: 100px;
  }

  .scatter_value_image_container .scatter_paytable_values {
    font-size: 4vw;
  }
}

@media (max-width: 1600px) {
  .scatter_value_image_container img {
    width: 100px;
    margin: 5px;
    height: 100px;
  }
}

.scatter_paytable_values .label_value {
  color: #ffd400;
}

.paytable_values .label_value {
  color: #ffcc00;
}

.label_value {
  font-weight: 700;
}

.gamerules_img {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  width: 100%;
}

.gamerules_img div {
  width: 25%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gamerules_img div img {
  width: 55%;
  height: 55%;
  object-fit: contain;
}

.g-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  column-gap: 2.5vw;
  row-gap: 1.5vw;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.g-layout .scatter_value_image_container .scatter_paytable_values {
  margin-bottom: 0vw;
  background: black;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center !important;
  align-items: center !important;
  font-size: 1.9vw;
  padding-left: 0;
  padding-right: 0;
  width: 50%;
  height: 90%;
  padding: 0.25vw;
  padding-left: 0.3vw;
  padding-right: 0.3vw;
  border-radius: 0.25vw;
}

.g-layout .scatter_value_image_container {
  background: linear-gradient(100.78deg,
      rgba(111, 111, 111, 0.7) 0.44%,
      rgba(32, 32, 32, 0.96) 101.92%);
  justify-content: center;
  align-items: center !important;
  padding: 0;
  border-radius: 0.5vw;
  position: relative;
  overflow: hidden;
  z-index: 0;
  padding-left: 3%;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  height: 85% !important;
}

.g-layout .scatter_value_image_container::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  padding: clamp(1px, 0.08vw, 2px);
  background: linear-gradient(100.81deg,
      rgba(255, 255, 255, 0.5) -0.31%,
      rgba(219, 250, 255, 0.2) 99.79%);
  box-sizing: border-box;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.g-layout .scatter_paytable_label span:first-child {
  width: 45% !important;
  flex: 2;
}

.g-layout .scatter_paytable_label span:nth-child(2) {
  width: 10% !important;
  flex: 1;
}

.g-layout .scatter_paytable_label span:last-child {
  width: 45% !important;
  flex: 2;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

@media (orientation: portrait) {
  .g-layout .scatter_value_image_container .scatter_paytable_values {
    font-size: 16px;
    padding: 2px !important;
    padding: 0px 4px !important;
    border-radius: 0.5vw;
  }

  .g-layout .scatter_value_image_container {
    padding: 0vw;
    padding-left: 1vw;
    border-radius: 0.8vw !important;
  }

  .g-layout .scatter_paytable_label span:first-child {
    width: 45% !important;
    text-align: left;
    flex: 3;
  }

  .g-layout .scatter_paytable_label span:nth-child(2) {
    text-align: right;
    width: 10% !important;
    flex: 1;
  }

  .g-layout .scatter_paytable_label span:last-child {
    text-align: right;
    width: 45% !important;
    flex: 3;
  }
}

@media (orientation: portrait) and (min-width: 500px) and (max-width: 1024px) {
  .candyBonanza {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(3, 1fr) !important;
    column-gap: 4vw;
    row-gap: 3vw;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
  }

  .candyBonanza .scatter_value_image_container .scatter_paytable_values {
    font-size: 1.7vw !important;
  }

  .info_contentText {
    font-size: 2.25vw;
  }

  .winuptoText {
    font-size: 2.25vw;
  }

  .candy_scatter_wrapper .symb_info_parallel {
    font-size: 2.25vw !important;
  }
}

@media (orientation: portrait) and (max-width: 370px) {
  .g-layout .scatter_value_image_container .scatter_paytable_values {
    font-size: 3vw;
    padding: 0px 4px !important;
  }
}

@media (orientation: portrait) and (max-width: 480px) {
  .g-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .g-layout> :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: 50% !important;
    justify-self: center !important;
  }

  .candy-balance-info {
    padding: 14px 20px;
  }
}

/* Main scrollbar styling */
::-webkit-scrollbar {
  width: var(--scrollWidth);
  height: var(--scrollWidth);
}

::-webkit-scrollbar-track {
  background: var(--scrollbarTrack);
  border-radius: calc(var(--scrollWidth) / 2);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbarThumb);
  border: 3px solid var(--scrollbarBorder);
  border-radius: calc(var(--scrollWidth) / 2);
  background-clip: content-box;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbarThumbHover);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Panel-specific scrollbar */
.lower::-webkit-scrollbar {
  width: var(--rulesScrollWidth);
  height: var(--rulesScrollWidth);
}

.lower::-webkit-scrollbar-track {
  background: var(--scrollbarTrack);
}

.lower::-webkit-scrollbar-thumb {
  background: var(--scrollbarThumb);
  border: 3px solid var(--scrollbarBorder);
  background-clip: content-box;
}

.lower::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbarThumbHover);
}

/* Firefox support */
.lower {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbarThumb) var(--scrollbarTrack);
}

/* <<------------------------------------------candy style----------------------------------------------->>>> */

.candyBonanza .scatter_value_image_container .scatter_paytable_values {
  margin-bottom: 0vw;
  background: black;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center !important;
  align-items: center !important;
  font-size: 1.5vw;
  padding-left: 0;
  padding-right: 0;
  width: 50%;
  height: 85%;
  padding: 0.25vw;
  padding-left: 0.3vw;
  padding-right: 0.3vw;
  border-radius: 0.25vw;
}

.candyBonanza .scatter_value_image_container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (orientation: portrait) {
  .candyBonanza .scatter_value_image_container .scatter_paytable_values {
    padding: 2px !important;
    padding: 0px 4px !important;
    border-radius: 0.5vw;
    font-size: 2vw !important;
  }

  .candyBonanza .symb_info_parallel {
    width: 100%;
    font-size: 3.6vw;
    gap: 1%;
    margin-left: 0;
  }

  .candyBonanza {
    column-gap: 5vw;
    row-gap: 2.5vw;
  }
}

.volatility-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5vw;
  display: none;
}

.volatility-border-wrapper {
  padding: 1px;
  border-radius: 0.5vw;
  background: linear-gradient(100.81deg,
      rgba(255, 255, 255, 0.5) -0.31%,
      rgba(219, 250, 255, 0.2) 99.79%);
  display: inline-block;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.volatility-img-text-cont {
  border-radius: 0.5vw;
  background: linear-gradient(100.78deg,
      rgba(111, 111, 111, 0.7) 0.44%,
      rgba(32, 32, 32, 0.96) 101.92%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5vw;
}

.vol-img-section {
  display: flex;
  justify-content: center;
  gap: 0.4vw;
  align-items: center;
  width: 100%;
  height: 50%;
  background-color: black;
  backdrop-filter: blur(9.344522476196289px);
  border-radius: 0.25vw;
  padding: 0.25vw;
}

.vol-img-section div {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 20%;
  height: 100%;
}

.vol-img-section img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vol-text {
  width: 100%;
  height: 50%;
  color: #fefefe;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: 1.1vw;
  text-shadow: -1px -1px 0 #a66f00, 1px -1px 0 #a66f00, -1px 1px 0 #a66f00,
    1px 1px 0 #a66f00, 0px -1px 0 #a66f00, 0px 1px 0 #a66f00, -1px 0px 0 #a66f00,
    1px 0px 0 #a66f00,
    /* Black drop shadow */
    -1px 2px 0 #000000;
}

.candyBonanza_footer {
  height: 8% !important;
}

@media (orientation: portrait) {
  .vol-text {
    font-size: 1.8vw;
  }

  .candyBonanza_footer {
    height: 5% !important;
  }
}

@media (orientation: landscape) {
  .candyBonanza_footer {
    height: 10% !important;
  }
}

@media (orientation: portrait) and (max-width: 480px) {
  .vol-text {
    font-size: 3vw;
  }
}

/* Footer container */
.game-footer {
  width: 100%;
  height: 9%;
  background-color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* .footer-icon {
  height: 40%;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
} */

.close img {
  height: 80%;
}

.candy_scatter_cont {
  width: 100%;
  height: 100%;
  display: inherit;
  flex-direction: row;
  align-items: center;
  background: #000000;
  backdrop-filter: blur(15.639097213745117px);
  border-radius: 4px;
  padding: 8px;
  padding-right: 15px;
}

.candy_scatter_wrapper .symb_info_parallel {
  background: linear-gradient(100.78deg,
      rgba(111, 111, 111, 0.7) 0.44%,
      rgba(32, 32, 32, 0.96) 101.92%);
  border-radius: 0.6vw;
  font-size: 1.5vw;
}

/* Responsive adjustments */
@media (orientation: portrait) {
  .game-footer {
    height: 7%;
  }

  .footer-icon {
    height: 50%;
  }

  .close img {
    height: 90%;
  }

  .candy_scatter_wrapper {
    display: flex;
  }

  .symbols_pay {
    margin-top: 6vw;
  }

  .candy_scatter_wrapper .symb_info_parallel {
    font-size: 16px;
    gap: 1%;
    margin-left: 0;
    background: linear-gradient(100.78deg,
        rgba(111, 111, 111, 0.7) 0.44%,
        rgba(32, 32, 32, 0.96) 101.92%);
    border-radius: 0.6vw;
  }

  .candy_scatter_cont {
    padding: 15px;
    padding-right: 25px;
  }

  .candy_scatter_wrapper .symb_info_border_wrapper {
    padding: 0.8px;
    width: 50%;
  }
}

.symb_info_border_wrapper {
  padding: 1.35px;
  border-radius: 6px;
  background: #1b1a1a;
  display: inline-block;
  width: 32%;
  height: 100%;
  backdrop-filter: blur(20px);
  border: 2px solid #666363;
}

.candy_scatter_wrapper .symb_info_parallel {
  background: #1b1a1a;
  border-radius: 6px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 8px;
  line-height: 1.25;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

@media (orientation: portrait) and (min-width: 481px) {
  .candyBonanza {
    column-gap: 4vw !important;
    row-gap: 0vw !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  }

  .candyBonanza .scatter_value_image_container .scatter_paytable_values {
    width: 66%;
    font-size: 16px !important;
    padding: 32px 4px !important;
  }
}

.candy_scatter_wrapper .symb_info_parallel img {
  min-width: 100px !important;
  min-height: 100px !important;
  object-fit: contain;
}

@media (orientation: portrait) and (max-width: 480px) {
  .candyBonanza {
    column-gap: 8vw !important;
    row-gap: 0vw !important;
  }

  .symbols_pay {
    margin-top: 6vw !important;
  }

  .candy_scatter_wrapper .symb_info_parallel img {
    min-width: 80px !important;
    min-height: 80px !important;
    object-fit: contain;
  }
}

.candy_scatter_wrapper {
  margin: 0 20px 20px;
}

.symbols_pay {
  margin-top: 3vw;
}

.volatility-section {
  margin: 30px 0 0 0;
}

.info_headings {
  font-size: 1.04rem;
  font-size: 1.25rem;
}

.winuptoText {
  font-size: 0.875rem;
  font-size: 1rem;
}

.info_contentText {
  font-size: 0.875rem;
  font-size: 1rem;
}

.candy_scatter_wrapper .symb_info_parallel {
  font-size: 0.875rem !important;
  font-size: 1rem !important;
}

.candyBonanza .scatter_value_image_container .scatter_paytable_values {
  width: 60%;
  font-size: 0.875rem !important;
  font-size: clamp(10px, 13px, 14px) !important;
  padding: 2rem 0.5rem !important;
}

@media (max-width: 800px) {
  .heading {
    font-size: 16px !important;
  }

  .info_headings {
    font-size: 16px;
  }

  .winuptoText {
    font-size: 16px;
  }

  .info_contentText {
    font-size: 16px;
  }

  .candy_scatter_wrapper .symb_info_parallel {
    font-size: 16px !important;
  }

  .candy_scatter_wrapper .symb_info_border_wrapper {
    width: 82%;
  }

  .candyBonanza .scatter_value_image_container .scatter_paytable_values {
    width: 66%;
    font-size: 16px !important;
    padding: 22px 4px !important;
  }

  .vol-img-section {
    gap: 2px;
    padding: 2px;
  }

  .level-row {
    font-size: 16px !important;
  }

  .points-amount {
    font-size: 16px !important;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .heading {
    font-size: 20px !important;
  }

  .info_headings {
    font-size: 16px;
  }

  .winuptoText {
    font-size: 16px;
  }

  .info_contentText {
    font-size: 16px;
  }

  .candy_scatter_wrapper .symb_info_parallel {
    font-size: 16px !important;
  }

  .candy_scatter_wrapper .symb_info_border_wrapper {
    width: 65%;
  }

  .candyBonanza .scatter_value_image_container .scatter_paytable_values {
    width: 66%;
    font-size: 16px !important;
    padding: 22px 4px !important;
  }

  .vol-img-section {
    gap: 2px;
    padding: 2px;
  }

  .level-row {
    font-size: 16px !important;
  }

  .points-amount {
    font-size: 16px !important;
  }
}

@media (max-width: 400px) {
  .vol-img-section {
    gap: 2px;
    padding: 2px;
  }

  .vol-text {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .heading {
    font-size: 19px !important;
    margin-top: 10px;
  }

  .info_headings {
    font-size: 16px;
  }

  .winuptoText {
    font-size: 16px;
  }

  .info_contentText {
    font-size: 16px;
  }

  .candy_scatter_wrapper .symb_info_parallel {
    font-size: 16px !important;
  }

  .candy_scatter_wrapper .symb_info_border_wrapper {
    width: 70%;
  }

  .candyBonanza .scatter_value_image_container .scatter_paytable_values {
    width: 66%;
    font-size: 16px !important;
    padding: 8px 4px !important;
  }

  .vol-img-section {
    gap: 2px;
    padding: 2px;
  }

  .vol-text {
    font-size: 16px;
  }
}

.main-wrapper {
  width: 100%;
  margin: 0 auto;
  margin: 20px 0 0 0;
}

.treasure-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.treasure-item {
  background: #1b1a1a;
  border: 2px solid #666363;
  border-radius: 6px;
  gap: 0px;
  height: 100px;
  width: 305px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.treasure-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  border: 2px solid;

  border-image-source: linear-gradient(100.81deg,
      rgba(255, 255, 255, 0.5) -0.31%,
      rgba(219, 250, 255, 0.2) 99.79%);

  transition: left 0.5s;
  backdrop-filter: blur(20px);
}

.icon-holder {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
  position: relative;
  order: 2;
}

.item-details {
  flex: 1;
  color: white;
  order: 1;
  background-color: black;
  height: 88%;
  margin-left: 3%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 4px;
}

.level-row {
  font-size: 14px;
  font-size: 1rem;
  opacity: 0.8;
  display: flex;
}

.level-row span:first-child {
  width: 35%;
  text-align: center;
}

.level-row span:nth-child(2) {
  width: 10%;
  text-align: center;
}

.level-row span:last-child {
  width: 45%;
  text-align: center;
}

.points-amount {
  font-size: 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffcc00;
}

/* Specific color styles */
.crimson-style {
  background: linear-gradient(145deg, #ff4444, #cc2222);
}

.azure-style {
  background: linear-gradient(145deg, #4488ff, #2266cc);
}

.violet-style {
  background: linear-gradient(145deg, #8844ff, #6622cc);
}

.forest-style {
  background: linear-gradient(145deg, #44ff88, #22cc66);
}

.amber-style {
  background: linear-gradient(145deg, #ff8844, #cc5522);
}

.teal-style {
  background: linear-gradient(145deg, #44ffff, #22cccc);
}

.magenta-style {
  background: linear-gradient(145deg, #ff44aa, #cc2288);
}

.golden-style {
  background: linear-gradient(145deg, #ffff44, #cccc22);
}

.jade-style {
  background: linear-gradient(145deg, #00ff88, #00cc55);
}

@media (max-width: 768px) {
  .treasure-item {
    width: 305px;
    height: 100px;
  }

  .candy-close-button {
    width: 35px !important;
    height: 35px !important;
    font-size: 18px !important;
  }

  .heading::after {
    bottom: 67px;
    width: 40%;
  }
}

.treasure-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  order: 2;
  margin-right: 3%;
}

@media (max-width: 480px) {
  .treasure-item {
    width: 300px;
    height: 106px;
    gap: 0px;
  }

  .level-row {
    font-size: 16px;
  }

  .candy_scatter_wrapper .symb_info_border_wrapper {
    width: 75%;
    height: 8rem;
  }

  .points-amount {
    font-size: 12px;
  }

  .candy_scatter_cont {
    padding: 10px;
    padding-right: 15px;
  }

  .sugar-treasure-layout {
    margin: 0 10px;
  }

  .sugar-treasure-item {
    gap: 0px !important;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .treasure-item {
    width: 250px;
    height: 80px;
    gap: 0px;
  }

  .treasure-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
  }

  .level-row {
    font-size: 16px;
  }

  .candy_scatter_wrapper .symb_info_border_wrapper {
    width: 60%;
    height: 7.5rem;
  }

  .candy_scatter_wrapper .symb_info_parallel img {
    min-width: 80px !important;
    min-height: 80px !important;
    object-fit: contain;
  }

  .points-amount {
    font-size: 16px;
  }

  .candy_scatter_cont {
    padding: 10px;
    padding-right: 15px;
  }

  .pay-table-section {
    padding: 15px 25px 25px !important;
    margin: 0px !important;
  }

  .lower {
    padding-top: 10px !important;
  }

  #lower_container {
    margin-top: 0px !important;
  }
}

@media (max-width: 400px) {
  .candy_scatter_wrapper .symb_info_border_wrapper {
    width: 100%;
    height: 8rem;
  }

  .candy_scatter_cont {
    padding: 10px;
    padding-right: 15px;
  }

  .level-row {
    font-size: 16px;
  }

  .points-amount {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .level-row {
    font-size: 16px !important;
    opacity: 0.8;
    display: flex;
  }

  .points-amount {
    font-size: 16px !important;
  }

  .candy_scatter_wrapper .symb_info_border_wrapper {
    width: 100%;
  }

  .treasure-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .vol-text {
    font-size: 1.8vw;
  }
}

.vol-img-section {
  display: flex;
  justify-content: center;
  gap: 0.4vw;
  align-items: center;
  max-width: 7.5rem;
  height: 50%;
  background-color: black;
  backdrop-filter: blur(9.344522476196289px);
  border-radius: 0.25vw;
  padding: 0.25vw;
}

.vol-text {
  width: 100%;
  height: 50%;
  color: #fefefe;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 2.2vw;
  font-size: 1.2rem;
  text-shadow: -1px -1px 0 #a66f00, 1px -1px 0 #a66f00, -1px 1px 0 #a66f00,
    1px 1px 0 #a66f00, 0px -1px 0 #a66f00, 0px 1px 0 #a66f00, -1px 0px 0 #a66f00,
    1px 0px 0 #a66f00, -1px 2px 0 #000000;
}

.volatility-img-text-cont {
  height: 100%;
  border-radius: 0.5vw;
  background: linear-gradient(100.78deg,
      rgba(111, 111, 111, 0.7) 0.44%,
      rgba(32, 32, 32, 0.96) 101.92%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5vw;
  display: inline-block;
}

.volatility-border-wrapper {
  padding: 1px;
  border-radius: 0.5vw;
  background: linear-gradient(100.81deg,
      rgba(255, 255, 255, 0.5) -0.31%,
      rgba(219, 250, 255, 0.2) 99.79%);
  display: inline-block;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: inline-block;
  height: 100%;
}

@media (orientation: portrait) {
  .vol-img-section {
    display: flex;
    justify-content: center;
    gap: 0.5vw;
    align-items: center;
    max-width: 6.5rem !important;
    height: 50%;
    background-color: black;
    backdrop-filter: blur(9.344522476196289px);
    border-radius: 0.25vw;
    padding: 0.5vw;
  }

  .vol-text {
    font-size: 16px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .vol-img-section {
    display: flex;
    justify-content: center;
    gap: 0.5vw;
    align-items: center;
    max-width: 6.5rem !important;
    height: 50%;
    background-color: black;
    backdrop-filter: blur(9.344522476196289px);
    border-radius: 0.25vw;
    padding: 0.5vw;
  }

  .vol-text {
    font-size: 1rem;
  }
}

.game-footer {
  background-color: black;
}

@media (orientation: portrait) and (min-width: 481px) {
  .heading {
    font-size: 22px !important;
  }

  .info_headings {
    font-size: 16.63px;
  }

  .winuptoText {
    font-size: 16px;
  }

  .info_contentText {
    font-size: 16px;
  }

  .candy_scatter_wrapper .symb_info_parallel {
    font-size: 16px !important;
  }

  .points-amount {
    font-size: 16px !important;
  }

  .level-row {
    font-size: 16px !important;
  }

  .candy_scatter_wrapper .symb_info_parallel img {
    min-width: 85px !important;
    min-height: 85px !important;
    object-fit: contain;
  }
}

.symb_info_border_wrapper {
  width: 25rem;
  height: 10rem;
}

.total_bet {
  margin-top: 20px;
}

.candy-close-button {
  border: 2px solid rgba(255, 215, 0, 0.6);
  background: radial-gradient(circle at 30% 30%,
      rgba(255, 215, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.4) 70%),
    linear-gradient(135deg,
      rgba(255, 215, 0, 0.1) 0%,
      rgba(255, 193, 7, 0.05) 100%);
  color: #ffd700;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3),
    inset 0 1px 0 rgba(255, 215, 0, 0.3);
  position: relative;
  margin-left: auto;
  z-index: 1;
  overflow: hidden;
}

.candy-close-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg,
      transparent,
      rgba(255, 215, 0, 0.4),
      transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.candy-close-button:hover {
  background: radial-gradient(circle at 30% 30%,
      rgba(255, 215, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.2) 70%),
    linear-gradient(135deg,
      rgba(255, 215, 0, 0.2) 0%,
      rgba(255, 193, 7, 0.1) 100%);
  border-color: rgba(255, 215, 0, 1);
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.5),
    inset 0 1px 0 rgba(255, 215, 0, 0.5);
}

.candy-close-button:hover::before {
  transform: rotate(360deg);
}

.candy-close-button:focus {
  outline: 3px solid rgba(255, 215, 0, 0.8);
  outline-offset: 2px;
}

.candy-close-button {
  width: 50px;
  height: 50px;
  font-size: 25px;
  font-family: "Noto Sans", sans-serif;
  order: 3;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-self: end;
}

.candy-close-button:focus {
  outline: 3px solid rgba(255, 215, 0, 0.8);
  outline-offset: 2px;
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .candy-close-button {
    transform: translateZ(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .candy-close-button {
    transition: none !important;
    animation: none !important;
  }
}

.candy-header-section {
  background: linear-gradient(135deg,
      rgba(40, 30, 15, 0.9) 0%,
      rgba(25, 20, 10, 0.95) 50%,
      rgba(40, 30, 15, 0.9) 100%),
    linear-gradient(45deg,
      transparent 30%,
      rgba(255, 215, 0, 0.05) 50%,
      transparent 70%);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg,
      transparent,
      rgba(255, 215, 0, 0.8),
      rgba(255, 193, 7, 0.6),
      rgba(255, 215, 0, 0.8),
      transparent) 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 215, 0, 0.2),
    inset 0 1px 0 rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 10;
  font-family: "Noto Sans", sans-serif;
}

.candy-header-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 215, 0, 1),
      rgba(255, 193, 7, 0.8),
      rgba(255, 215, 0, 1),
      transparent);
}

.candy-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 10px;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  max-width: min(1600px, calc(100% - 40px));
}

.lower {
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: min(1600px, calc(100% - 40px));
  margin: 0 auto;
  width: 100%;
}

.gamerules_container {
  padding-top: 20px;
  max-width: min(1600px, calc(100% - 40px));
  margin: 0 auto;
  width: 100%;
}

.lower::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.spinner-border {
  display: none;
}

#lower_container {
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

/* Section Styling */
.section {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #242324;
  margin-bottom: 4px;
  /* background-image: url('../../footerImages/rulesBGTile.jpg'); */
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  padding: 10px 20px;
}

.section:last-child {
  border-bottom: none;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
}

h1.info_headings {
  font-size: 28px;
  color: white;
  text-align: left;
  position: relative;
  display: inline-block;
  width: 100%;
}

h4 {
  color: #d4af37;
  font-size: 1.3rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

p.info_contentText {
  color: #e0e0e0;
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.8;
  text-align: justify;
}

ul {
  list-style: none;
  padding: 0;
}

li.info_contentText {
  color: #e0e0e0;
  font-size: 16px;
  margin-bottom: 2px;
  padding-left: 25px;
  position: relative;
  line-height: 1.7;
}

li.info_contentText::before {
  content: "\2022";
  color: #ffd700;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 16px;
  line-height: inherit;
}

.winuptoText {
  font-size: 16px;
  color: #e0e0e0;
  font-family: "Noto Sans", sans-serif;
  margin-bottom: 8px;
}

.total_bet {
  text-align: center;
  font-size: 1.1rem;
  padding: 15px;
  background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
  border-radius: 10px;
  border: 2px solid rgba(212, 175, 55, 0.4);
  margin: 20px 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); */
}

.rtp-info {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid #d4af37;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  margin: 25px 0;
}

.rtp-info span {
  color: #ffd700;
}

@media (max-width: 768px) {
  .candy-balance-amount {
    font-size: 16px !important;
  }

  .section {
    margin-left: 0px;
    margin-right: 0px;
  }

  h1.info_headings {
    font-size: 1.8rem;
  }

  p.info_contentText,
  li.info_contentText {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .lower {
    max-width: 100%;
  }

  .candy-balance-amount {
    font-size: 24px;
  }

  h1.info_headings {
    font-size: 1rem;
  }

  p.info_contentText,
  li.info_contentText {
    font-size: 16px;
    line-height: 1.6;
  }

  .treasure-layout {
    gap: 10px !important;
  }

  .pay-table-section {
    margin: 20px !important;
  }

  #lower_container {
    margin: 20px !important;
  }
}

/* Animation for loading */
.section {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.section:nth-child(1) {
  animation-delay: 0.1s;
}

.section:nth-child(2) {
  animation-delay: 0.2s;
}

.section:nth-child(3) {
  animation-delay: 0.3s;
}

.section:nth-child(4) {
  animation-delay: 0.4s;
}

.section:nth-child(5) {
  animation-delay: 0.5s;
}

.section:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar Styling */
.lower::-webkit-scrollbar {
  width: 8px;
}

.lower::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
}

.lower::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4af37, #ffd700);
  border-radius: 4px;
}

.lower::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffd700, #d4af37);
}

.candy-balance-info {
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(20, 15, 8, 0.8) 100%),
    radial-gradient(circle at 30% 30%,
      rgba(255, 215, 0, 0.1) 0%,
      transparent 70%);
  border-radius: 10px;
  border: 2px solid transparent;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.25),
    inset 0 1px 0 rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(20px) saturate(1.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.candy-balance-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 215, 0, 0.15),
      transparent);
  transition: all 0.8s ease;
}

.candy-balance-info:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 50px rgba(255, 215, 0, 0.35),
    inset 0 1px 0 rgba(255, 215, 0, 0.4);
}

.candy-balance-info:hover::before {
  left: 100%;
}

.candy-balance-amount {
  font-size: 18px;
  font-feature-settings: "tnum";
  background: linear-gradient(135deg,
      #ffd700 0%,
      #fff9c4 25%,
      #ffecb3 50%,
      #fff9c4 75%,
      #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
  position: relative;
  letter-spacing: 1px;
}

.candy-balance-amount::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 215, 0, 0.8),
      rgba(255, 193, 7, 0.6),
      rgba(255, 215, 0, 0.8),
      transparent);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@media (max-width: 768px) {
  .candy-header-content {
    position: static;
    flex-wrap: wrap;
    padding: 5px 10px;
  }

  .heading {
    order: 0;
    position: static;
    transform: none;
    flex: 1;
    text-align: center;
  }

  .candy-close-button {
    order: 1;
    margin-left: auto;
    align-self: center;
  }

  .candy-balance-info {
    order: 2;
    width: 100%;
    text-align: center;
    margin-top: 5px;
  }
}

.pay-table-section {
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  place-content: center;
  /* background-image: url('../../footerImages/rulesBGTile.jpg'); */
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid #242324;
  margin: 20px 0;
  scrollbar-width: none;
}

@media (min-width: 850px) and (max-width: 950px) {
  .heading {
    font-size: 34px;
  }
}

@media (min-width: 760px) and (max-width: 820px) {
  .candy-balance-info {
    padding: 12px !important;
  }
}

@media (min-width: 1920px) {
  .lower {
    max-width: 1800px;
  }

  .pay-table-section {
    height: 100%;
  }
}

@media (min-width: 1520px) {
  .treasure-item {
    height: 120px;
    width: 281px;
  }

  .treasure-layout {
    gap: 25px;
  }

  .points-amount {
    font-size: 1.2rem;
  }
}

@media (min-width: 768px) and (min-height: 500px) {
  .pay-table-section {
    height: 100%;
    overflow-y: auto;
  }
}

@media (orientation: landscape) and (min-width: 660px) and (max-height: 390px) {
  .lower {
    height: 78%;
  }
}

@media (orientation: landscape) and (min-width: 660px) and (max-height: 375px) {
  .lower {
    height: 61%;
  }
}

@media (orientation: landscape) and (min-width: 660px) and (max-height: 350px) {
  .lower {
    height: 67%;
  }
}

.sugar-treasure-layout {
  display: grid;
  font-family: "Noto Sans", sans-serif;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: white;
  justify-content: center;
}

.sugar-treasure-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #1b1a1a;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 2px solid #666363;
  border-radius: 6px;
  gap: 0.5rem;
  max-width: 420px;
}

.sugar-treasure-image {
  width: 32%;
  height: auto;
  object-fit: contain;
}

.sugar-score-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 1rem;
  background-color: black;
  border-radius: 4px;
  flex: 1;
  margin: 5px;
  padding: 5px;
}

.sugar-level-row {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: white;
  padding: 1px 8px;
  border-radius: 8px;
}

.sugar-level-row span:nth-child(2) {
  flex: 0 0 20px;
  text-align: center;
}

.sugar-level-row span:first-child {
  flex: 1;
  text-align: left;
}

.sugar-points-amount {
  flex: 1;
  color: #ffcc00;
  text-align: right;
}

@media (max-width: 768px) and (min-width: 725px) {
  .sugar-treasure-item {
    max-width: 280px;
  }
}

@media (orientation: landscape) {
  .sugar-treasure-item {
    flex-direction: row;
    align-items: center;
  }

  .sugar-treasure-image {
    max-width: 30%;
  }
}

.game-version {
  padding: 10px;
  display: block;
  position: relative;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 999999999;
  text-align: center;
  width: 100%;
  font-size: 16px;
}

@media (orientation: portrait) and (max-width: 600px) {
  .game-version {
    font-size: 16px;
  }
}

@media (min-width: 1140px) and (max-width: 1960px) {
  .game-version {
    bottom: 0%;
  }
}

@media (max-width: 920px) {
  .sugar-level-row {
    padding: 1px 0px;
  }

  .scatter_value_image_container .scatter_paytable_values {
    width: 45%;
    padding-right: 0.5vw;
  }
}

.scatter_paytable_label span:nth-child(2) {
  flex: 0 0 20px;
  text-align: center;
}

.scatter_paytable_label span:first-child {
  flex: 1;
  text-align: left;
}

.scatter_paytable_label .label_value {
  flex: 1;
  color: #ffcc00;
  text-align: right;
}

.horizontalLine {
  margin-top: 6px;
  margin-bottom: 6px;
  border: none;
  height: 0.5px;
  background-color: #4a4a4a;
}

.button-table-section {
  margin: 20px 0;
  color: #e0e0e0;
}

.button-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.button-table th,
.button-table td {
  border: 1px solid gray;
  padding: 14px 16px;
  vertical-align: middle;
  color: #e0e0e0;
  letter-spacing: 0.5px;
}

.button-table th {
  font-weight: bold;
}

.button-table td:nth-child(1) {
  width: 80px;
}

.button-table .button-image {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .button-table {
    font-size: 14px;
    table-layout: fixed;

  }

  .button-table th,
  .button-table td {
    padding: 6px;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 16px;

  }

  .button-table .button-image {
    width: 40px;
    height: 40px;

  }

  .button-table td:nth-child(1) {
    width: 15%;
  }

  .button-table td:nth-child(2) {
    width: 25%;
  }

  .button-table td:nth-child(3) {
    width: 60%;
  }


}

@media (max-width: 480px) {
  .button-table {
    font-size: 12px;

  }

  .button-table th,
  .button-table td {
    padding: 4px;

  }

  .button-table .button-image {
    width: 30px;
    height: 30px;

  }

  .button-table td:nth-child(1) {
    width: 20%;
  }

  .button-table td:nth-child(2) {
    width: 30%;
  }

  .button-table td:nth-child(3) {
    width: 50%;
  }


}

.wild-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wild-imgs {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  padding-left: 20px;
}

.wild-mult-img {
  /* display: inline-block; */
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0;
}

.wild-mult-golden {
  /* display: inline-block; */
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin: 0;
}
