/* ─── Reset & base ─────────────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  font-family: "Inter-Bold" !important;
  margin: auto;
  touch-action: manipulation;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

input,
select,
textarea,
button {
  font-size: 16px !important;
}

p { margin: 0; }


/* ─── Panel containers ──────────────────────────────────────────────────────── */
#gameStage {
  overflow: hidden;
  position: fixed;
}

#gameRulesPanel {
  display: none;
  position: fixed;
  flex-direction: column;
  overflow: hidden;
}


#historyPanel {
  display: none;
  position: fixed;
  flex-direction: column;
  overflow: hidden;
}

#panel,
#tournament-modal,
#dailywins-modal {
  display: none;
}

#panel.showRules,
#tournament-modal.showRules,
#dailywins-modal.showRules {
  display: flex;
}

.betting-overlay {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.95);
  color: white;
  text-align: left;
}

#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; }
.container { padding-left: 0; padding-right: 0; }
.mt-10 { margin-top: 2%; }

/* ─── Header ────────────────────────────────────────────────────────────────── */
.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: 10px 0;
  position: absolute;
  left: 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%;
  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);
}

.header-section {
  background-color: #030303;
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-shrink: 0;
}

.header-content {
  border-bottom: 2.77px solid #a48723;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #030303;
  padding: 15px 20px;
  position: relative;
  z-index: 1;
}

/* ─── Scrollable content ────────────────────────────────────────────────────── */
.lower {
  overflow-y: auto;
  overflow-x: hidden;
  max-width: 100%;
  padding: 0 30px;
  padding-left: max(30px, env(safe-area-inset-left));
  padding-right: max(30px, env(safe-area-inset-right));
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: #030303;
  -webkit-overflow-scrolling: touch;
  margin: 15px auto 0;
  width: 100%;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbarThumb) var(--scrollbarTrack);
}

.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;
}

.close img { height: 80%; }

#lower_container {
  width: 100%;
  margin: 20px auto 0;
  overflow-x: hidden;
  position: relative;
  z-index: 2;
}

#lower_container,
#pay_table {
  display: none;
  overflow-x: hidden;
}

#lower_container { display: block; }

.paytable img { width: 100px; }

/* ─── Scrollbars ────────────────────────────────────────────────────────────── */
::-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; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbarThumbHover); border-color: rgba(0, 0, 0, 0.2); }

.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); }

/* ─── Typography ────────────────────────────────────────────────────────────── */
.info_headings {
  color: #f1c46d;
  background: linear-gradient(89.86deg, #ffc400 15.92%, #ffad08 85.23%);
  -webkit-background-clip: text;
  background-clip: text;
  text-transform: uppercase;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

h2.info_headings {
  font-size: larger;
  text-align: left;
  position: relative;
  display: inline-block;
  width: 100%;
}

.lower h4 {
  color: #d4af37;
  font-size: max(16px, 1.3rem);
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.info_contentText {
  font-size: 16px;
  margin-bottom: 0.7em;
  line-height: 1.8;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

p.info_contentText {
  color: #e0e0e0;
  font-size: 16px;
  margin-bottom: 15px;
  text-align: justify;
}

li.info_contentText {
  color: #e0e0e0;
  font-size: 16px;
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  line-height: 1.7;
}

li.info_contentText::before {
  content: "\2022";
  color: #ffd700;
  position: absolute;
  left: 0;
  font-size: 16px;
  line-height: inherit;
}

.winuptoText {
  font-size: max(16px, 1.5vw);
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: #e0e0e0;
  margin-bottom: 8px;
}

.family-bold { font-family: "Inter-Bold" !important; }
.mt-5 { margin-top: 5px !important; }
.mt-60 { margin-top: 60px; }

.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;
}

/* ─── Layout helpers ────────────────────────────────────────────────────────── */
.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; }
.gamerules { padding: 0 15px; font-size: 16px; }

.symb_info { display: flex; align-items: center; }
.symb_info p { font-size: max(16px, 1.2em); text-align: left; }
.lower-pre { display: flex; align-items: center; justify-content: center; }

.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;
  background: #000000;
  backdrop-filter: blur(15.64px);
  border-radius: 0.5rem;
}

.paytable_values p { margin: 0; font-size: max(16px, 1.2em); padding-left: 0.2em; }

.payline-container { margin: 5px; }
.space_and_enter { text-align: left; margin: 1.25em; }
.adjacent, .paytable { margin-top: 10px; }
.adjacent { padding: 15px; }

.volatility {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border: 2px solid;
  border-radius: 9px;
  max-width: 350px;
  padding: 0.1em 0.5em;
  font-size: clamp(16px, 1.5vw, 1.5vw) !important;
}

.volatility_imgs img { width: 0.65em; }
.volatility_imgs { margin-inline: 0.7em; }

.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: max(16px, 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;
  margin-bottom: 1rem;
}

.samp_divs {
  width: 25%;
  display: flex;
  font-size: max(16px, 1.34vmax);
  align-items: center;
  justify-content: center;
  font-family: "Inter-Bold";
  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;
  inset: 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;
}

.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; }

/* ─── iOS swipe layer ───────────────────────────────────────────────────────── */
#swipe-layer {
  position: absolute;
  background: rgba(10 10 10 / 46%);
  width: 100%;
  text-align: center;
  visibility: hidden;
  overflow: auto;
  z-index: 9999;
  -webkit-overflow-scrolling: touch;
}

.swipe-object { position: fixed; padding-top: 100px; left: 0; right: 0; margin: 0 auto; top: 0; }

/* ─── Paytable layout ───────────────────────────────────────────────────────── */
.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%; }

/* ─── Button table ──────────────────────────────────────────────────────────── */
.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;
}

/* Sound buttons styling */
.sound-buttons-cell {
  border: 1px solid gray;
  padding: 14px 16px;
  vertical-align: middle;
  color: #e0e0e0;
  letter-spacing: 0.5px;
}

.sound-buttons-container {
  border: none;
  background: transparent;
}

.sound-buttons-container .button-image {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
}

/* ─── Scatter / symbol layout ───────────────────────────────────────────────── */
.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.64px);
  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: 16px !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: 0 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_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; }

.scatter_value_image_container img { width: 150px; margin: 5px; height: 150px; }

.scatter_paytable_values .label_value { color: #ffd400; }
.paytable_values .label_value { color: #ffcc00; }
.label_value { font-weight: 700; }

/* ─── g-layout grid ─────────────────────────────────────────────────────────── */
.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 {
  background: black;
  width: 50%;
  height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center !important;
  align-items: center !important;
  font-size: max(16px, 1.9vw);
  padding: 0.25vw 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 0 0 3%;
  border-radius: 0.5vw;
  position: relative;
  overflow: hidden;
  z-index: 0;
  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;
  inset: 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;
}

.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; }

/* ─── Candy Bonanza ─────────────────────────────────────────────────────────── */
.candyBonanza .scatter_value_image_container .scatter_paytable_values {
  background: black;
  width: 50%;
  height: 85%;
  display: flex;
  flex-direction: column;
  justify-content: center !important;
  align-items: center !important;
  font-size: max(16px, 1.5vw);
  padding: 0.25vw 0.3vw;
  border-radius: 0.25vw;
}

.candyBonanza .scatter_value_image_container img { width: 100%; height: 100%; object-fit: contain; }
.candyBonanza_footer { height: 8% !important; }

/* ─── Volatility section ────────────────────────────────────────────────────── */
.volatility-section {
  width: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  margin-top: 1.5vw;
}

.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;
  height: 100%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.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: inline-block;
  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;
  max-width: 7.5rem;
  height: 50%;
  background-color: black;
  backdrop-filter: blur(9.34px);
  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: max(16px, 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;
}

/* ─── Candy scatter wrapper ─────────────────────────────────────────────────── */
.candy_scatter_cont {
  width: 100%; height: 100%;
  display: inherit;
  flex-direction: row;
  align-items: center;
  background: #000000;
  backdrop-filter: blur(15.64px);
  border-radius: 4px;
  padding: 8px 15px 8px 8px;
}

.candy_scatter_wrapper { margin: 0 20px 20px; }

.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;
}

/* Final resolved candy_scatter_wrapper .symb_info_parallel */
.candy_scatter_wrapper .symb_info_parallel {
  background: #1b1a1a;
  border-radius: 6px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 8px;
  line-height: 1.25;
  font-size: 1rem !important;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/* ─── Sections ──────────────────────────────────────────────────────────────── */
.section {
  position: relative;
  overflow: hidden;
  border: 1px solid #242324;
  margin-bottom: 4px;
  background: linear-gradient(130deg, #0f0f0f 0%, rgba(39, 39, 40, 0.3) 100%);
  border-radius: 26px;
  padding: 10px 16px;
}

.section:last-child { border-bottom: none; }

.section::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
}

/* ─── Treasure layout ───────────────────────────────────────────────────────── */
.main-wrapper { width: 100%; margin: 20px 0 0; }

.treasure-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.treasure-item {
  border: 2px solid #666363;
  border-radius: 6px;
  min-height: 100px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  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,
.sc-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%);
  backdrop-filter: blur(20px);
}

.sc-treasure-item {
  border: 2px solid #666363;
  border-radius: 6px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  max-width: 550px;
  margin: 0 auto;
}

.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;
  margin: 3% 0 3% 3%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 4px;
  padding: 8px;
  min-width: 0;
}

.level-row {
  font-size: clamp(16px, 1.1vw, 18px);
  opacity: 0.8;
  display: grid;
  grid-template-columns: 0.7fr auto 1fr;
  white-space: nowrap;
  align-items: center;
}

.level-row span:first-child { font-size: 1.5rem; text-align: right; padding-right: 8px; font-weight: 900; }
.level-row span:nth-child(2) { text-align: center; font-size: 1.5rem; }
.level-row span:last-child { text-align: left; padding-left: 8px; }

.points-amount { font-size: 1.5rem; font-weight: 900; color: #f1c46d; }

.treasure-image {
  width: clamp(80px, 30%, 100px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  order: 2;
  margin: 3% 3% 3% 0;
  align-self: center;
}

/* ─── Symbol colour 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); }

/* ─── Sugar treasure ────────────────────────────────────────────────────────── */
.sugar-treasure-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: white;
  justify-content: center;
  font-family: "Noto Sans", sans-serif;
}

.sugar-treasure-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #1b1a1a;
  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:first-child { flex: 1; text-align: left; }
.sugar-level-row span:nth-child(2) { flex: 0 0 20px; text-align: center; }
.sugar-points-amount { flex: 1; color: #ffcc00; text-align: right; }

/* ─── Misc components ───────────────────────────────────────────────────────── */
.horizontalLine { margin: 6px 0 12px; border: none; height: 0.5px; background-color: #4a4a4a; }

.play-btn-bar { width: 100%; display: flex; justify-content: center; align-items: center; padding: 8px 0; background-color: #000; flex-shrink: 0; }

.wild-item { display: flex; align-items: center; gap: 10px; }
.wild-imgs { display: flex; gap: 4px; }
.wild-mult-img1 { width: 70px; height: 70px; object-fit: contain; margin: 0; }
.wild-mult-img2 { width: 100px; height: 100px; object-fit: contain; margin: 0; }
.wild-mult-img3 { width: 125px; height: 125px; object-fit: contain; margin: 0; }
.wild-burst { display: flex; gap: 4px; align-items: center; justify-content: center; }
.wild-burst-img { width: 200px; height: 200px; object-fit: contain; margin: 0; }

.game-version {
  padding: 10px;
  display: block;
  position: sticky;
  bottom: 0; left: 0;
  z-index: 99;
  text-align: center;
  width: 100%;
  font-size: 16px;
  color: #888888;
  background-color: rgba(0, 0, 0, 0.8);
  max-height: 60px;
}

.centerAlign { display: flex; margin-left: 10px; align-items: center; gap: 10px; flex-wrap: wrap; }
.centerAlign img { margin: 0; }

.img-box, .ante-img-box {
  position: relative;
  display: inline-block;
  min-width: 140px;
  min-height: 140px;
  padding: 10px 20px;
}

.img-box img, .ante-img-box img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 0;
  margin: 0;
}

.img-box .text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: block;
  text-align: center;
  word-break: normal;
  font-size: 16px;
  font-family: "Noto Sans", sans-serif;
  font-weight: 900;
}

.ante-img-box .text {
  position: absolute;
  top: 25px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 95px;
  height: 55px;
  text-align: center;
  overflow: hidden;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.05;
  font-size: 20px;
  font-family: "Noto Sans", sans-serif;
  font-weight: 900;
}

.ante-img-box .on-text {
  position: absolute;
  bottom: 20px; left: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 20px;
  text-align: center;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 0.95;
  font-size: 11px;
  font-weight: 900;
}

.ante-img-box .off-text {
  position: absolute;
  bottom: 20px; right: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 20px;
  text-align: center;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 0.95;
  font-size: 11px;
  font-weight: 900;
}

.pay-table-section { width: 100%; position: relative; overflow: visible; }

.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; }

.total_bet {
  text-align: center;
  font-size: max(16px, 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;
}

.symbols_pay { margin-top: 3vw; }

img { max-width: 100%; height: auto; }

.lower ul { list-style: none; padding: 0; }

.spinner-border { display: none; }

/* ─── Candy close button ────────────────────────────────────────────────────── */
.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;
  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;
  justify-content: center;
  font-weight: 300;
  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;
  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);
  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);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.5), inset 0 1px 0 rgba(255, 215, 0, 0.5);
}

.candy-close-button:focus {
  outline: 3px solid rgba(255, 215, 0, 0.8);
  outline-offset: 2px;
}

/* ─── Candy header ──────────────────────────────────────────────────────────── */
.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;
  padding-left: max(10px, env(safe-area-inset-left));
  padding-right: max(10px, env(safe-area-inset-right));
  width: 100%;
  position: relative;
  max-width: min(1600px, calc(100vw - 40px));
}

.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);
  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);
}

.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);
}

/* ─── Next app frame ────────────────────────────────────────────────────────── */
#nextAppFrameWrapper {
  width: 100%; height: 100%;
  overflow: hidden;
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  align-items: end;
  justify-content: center;
  padding-top: 20px;
  background: transparent;
}

.modal-card iframe {
  width: 100%; height: 100%;
  border-radius: 10px;
  background-color: transparent;
  border: 2px solid rgb(255, 230, 0);
}

/* ─── Candy scrollbar override ──────────────────────────────────────────────── */
.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); }

.scatter-layout {
  display: flex;
  flex-direction: row;
}


/* ═══════════════════════════════════════════════════════════════════════════════
RESPONSIVE
═══════════════════════════════════════════════════════════════════════════════ */

@media screen and (max-width: 768px) {
  .scatter-layout {
    flex-direction: column;
  }
}
@media (min-width: 600px) {
  body { font-size: 16px; }
}

@media (min-width: 1024px), screen and (orientation: landscape) {
  .samp_divs { width: 100%; }
}

@media (min-width: 1520px) {
  .treasure-layout { grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); gap: 25px; }
  .treasure-item { min-height: 120px; }
  .points-amount { font-size: 1.5rem; }
}

@media (min-width: 1920px) {
  .lower { max-width: 1800px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .lower { padding-left: 30px; padding-right: 30px; }
}

@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 (max-width: 1600px) {
  .scatter_value_image_container img { width: 100px; margin: 5px; height: 100px; }
}

@media (max-width: 920px) {
  .sugar-level-row { padding: 1px 0; }
  .scatter_value_image_container .scatter_paytable_values { width: 45%; padding-right: 0.5vw; }
}

@media (max-width: 840px) {
  .gamerules { font-size: 16px; }
  .gamerules .flex-row { justify-content: center; }
  .lower { padding-bottom: 10%; }
  .paytable_image img { width: 90%; }
}

@media (max-width: 800px) {
  .heading { font-size: 16px !important; }
  .winuptoText, .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; }
}

@media (max-width: 768px) {
  .treasure-layout { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
  .candy-close-button { width: 35px !important; height: 35px !important; font-size: 18px !important; }
  .heading::after { bottom: 67px; width: 40%; }
  .candy-header-content { position: static; flex-wrap: wrap; padding: 5px 10px; }
  .heading { order: 0; position: static; 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; }
  .candy-balance-amount { font-size: 16px !important; }
  p.info_contentText, li.info_contentText { font-size: 16px; }
}

@media (max-width: 768px) and (min-width: 725px) {
  .sugar-treasure-item { max-width: 280px; }
}

@media (max-width: 550px) {
  .treasure-layout { grid-template-columns: 1fr; gap: 10px !important; }
  .level-row { font-size: 16px; }
  .points-amount { font-size: 16px; }
  .level-row span:first-child, .level-row span:nth-child(2) { font-size: 16px; }
  .candy_scatter_wrapper .symb_info_border_wrapper { width: 75%; height: 8rem; }
  .candy_scatter_cont { padding: 10px 15px 10px 10px; }
  .sugar-treasure-layout { margin: 0 10px; }
  .sugar-treasure-item { gap: 0 !important; }
  .treasure-item{
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .heading { font-size: 19px !important; margin-top: 10px; }
  .winuptoText, .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; }
  .lower { max-width: 100%; }
  .candy-balance-amount { font-size: 24px; }
  p.info_contentText, li.info_contentText { font-size: 16px; line-height: 1.6; }
  .button-table { font-size: 16px; }
  .button-table th, .button-table td { padding: 4px; }
  .button-table td:last-child, .button-table th:last-child {
    /* padding-right: 12px !important;
    padding-left: 8px !important; */
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .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%; }
  .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; }
  .wild-mult-img { width: 40px; height: 40px; }
}

@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; }
  .mt-60 { margin-top: 0; }
  .lower { height: 100vh; padding: 0; }
  .paytable_values { margin: 5px; margin-right: 0; }
}

@media (max-width: 400px) {
  .vol-img-section { gap: 2px; padding: 2px; }
  .vol-text { font-size: 16px; }
  .candy_scatter_wrapper .symb_info_border_wrapper { width: 100%; height: 8rem; }
  .candy_scatter_cont { padding: 10px 15px 10px 10px; }
  .level-row { font-size: 16px; }
  .points-amount { font-size: 16px; }
  .level-row span:first-child { font-size: 16px; }
}

@media (max-width: 370px) and (orientation: portrait) {
  .samp_divs { width: 44%; }
}

@media (max-width: 360px) {
  .level-row { font-size: 16px !important; }
  .candy_scatter_wrapper .symb_info_border_wrapper { width: 100%; }
}

@media (max-width: 350px) {
  .samp_divs { font-size: max(16px, 2.9vw); }
  .paytable_values { margin: 5px; margin-right: 0; }
  div#panel { width: 100%; margin: auto; }
}

@media (max-width: 300px) {
  .samp_divs { font-size: max(16px, 2.8vw); }
}

@media (max-width: 280px) {
  .samp_divs { font-size: max(16px, 2.7vw); }
}

@media (max-width: 768px) {
  .button-table { font-size: 16px; }
  .button-table th, .button-table td { padding: 6px; }
  .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%; }
}

/* ─── Portrait ──────────────────────────────────────────────────────────────── */
@media (orientation: portrait) {
  .volatility { border-radius: 6px; font-size: clamp(2vw, 2.5vw, 3vw) !important; }
  #panel[isMobile="true"] #rulesHeader { padding: 5px 0; }
  #panel[isMobile="true"] .close { width: auto; }
  #panel[isMobile="true"] .close img { margin: auto; height: 80%; }
  #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: max(16px, 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: max(16px, 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_contentText { font-size: 16px; }
  .winuptoText { font-size: max(16px, 2.5vw); }
  #text-flex_Container { flex-direction: column; }
  .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: max(16px, 4vw); }
  .g-layout .scatter_value_image_container .scatter_paytable_values { font-size: 16px; padding: 0 4px !important; border-radius: 0.5vw; }
  .g-layout .scatter_value_image_container { padding: 0 0 0 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; }
  .candyBonanza .scatter_value_image_container .scatter_paytable_values { padding: 0 4px !important; border-radius: 0.5vw; font-size: max(16px, 2vw) !important; }
  .candyBonanza .symb_info_parallel { width: 100%; font-size: max(16px, 3.6vw); gap: 1%; margin-left: 0; }
  .candyBonanza { column-gap: 5vw; row-gap: 2.5vw; }
  .vol-img-section { gap: 0.5vw; max-width: 6.5rem !important; padding: 0.5vw; }
  .vol-text { font-size: 16px; }
  .candyBonanza_footer { height: 5% !important; }
  .candy_scatter_wrapper { display: flex; }
  .symbols_pay { margin-top: 6vw; }
  .candy_scatter_wrapper .symb_info_parallel { font-size: 16px; gap: 1%; margin-left: 0; border-radius: 0.6vw; }
  .candy_scatter_cont { padding: 15px 25px 15px 15px; }
  .candy_scatter_wrapper .symb_info_border_wrapper { padding: 0.8px; width: 50%; }
  .game-version { bottom: 0; }
  .lower { margin-bottom: 0; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
  .wild-mult-img1, .wild-mult-img2 { width: 70px; height: 70px; }
  .wild-mult-img3 { width: 95px; height: 95px; }
  .game-version { bottom: 0%; }
}

@media (orientation: portrait) and (min-width: 481px) {
  .heading { font-size: 22px !important; }
  .info_headings { font-size: 16.63px; }
  .winuptoText, .info_contentText { font-size: 16px; }
  .candy_scatter_wrapper .symb_info_parallel { 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; }
  .candyBonanza { column-gap: 4vw !important; row-gap: 0 !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; }
}

@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: max(16px, 1.7vw) !important; }
  .info_contentText { font-size: 16px; }
  .winuptoText { font-size: max(16px, 2.25vw); }
  .candy_scatter_wrapper .symb_info_parallel { font-size: max(16px, 2.25vw) !important; }
}

@media (orientation: portrait) and (max-width: 600px) {
  .game-version { font-size: 16px; }
}

@media (orientation: portrait) and (max-width: 480px) {
  .vol-text { font-size: max(16px, 3vw); }
  .candyBonanza { column-gap: 8vw !important; row-gap: 0 !important; }
  .symbols_pay { margin-top: 6vw !important; }
  .candy_scatter_wrapper .symb_info_parallel img { min-width: 80px !important; min-height: 80px !important; }
}

@media (orientation: portrait) and (max-width: 370px) {
  .g-layout .scatter_value_image_container .scatter_paytable_values { font-size: max(16px, 3vw); padding: 0 4px !important; }
}

/* ─── Landscape ─────────────────────────────────────────────────────────────── */
@media (orientation: landscape) {
  .paytable_values { margin-right: 0; border-radius: 0.5vw !important; }
  .samp_divs { border-radius: 0.5vw !important; }
  .candyBonanza_footer { height: 10% !important; }
  .sugar-treasure-item { flex-direction: row; align-items: center; }
  .sugar-treasure-image { max-width: 30%; }
}

@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 screen and (orientation: landscape) and (max-width: 600px) {
  .samp_divs { font-size: 16px; }
  .samp_divs img { width: 50%; }
  .symb_info_parallel { font-size: 16px; }
  .symb_info_parallel img { width: 27%; }
}

/* @media (max-width: 480px) {
  .button-table td:last-child, .button-table th:last-child {
    padding-right: 8px;
    padding-left: 8px;
  }
} */

@media (orientation: landscape) and (max-height: 500px) {
  .heading { font-size: 20px !important; }
  .info_headings { font-size: 16px; }
  .winuptoText, .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; }
  .level-row span:first-child { font-size: 16px !important; }
  .vol-img-section { gap: 0.5vw; max-width: 6.5rem !important; padding: 0.5vw; }
  .vol-text { font-size: 1rem; }
  .treasure-layout { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .level-row { font-size: 16px; }
  .treasure-image { width: clamp(60px, 25%, 90px); }
  .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; }
  .candy_scatter_cont { padding: 10px 15px 10px 10px; }
  .lower { padding-top: 10px !important; }
}

@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%; } }
@media (orientation: landscape) and (max-height: 550px) { .game-version { bottom: 0; } .lower { margin-bottom: 0; } }

/* ─── Height breakpoints ────────────────────────────────────────────────────── */
@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%; } }

#panel[isMobile="true"] .close { width: 85px; }
#panel[isMobile="true"] .close img { margin: auto; height: 64%; }
