* { box-sizing: border-box; }
html, body, #display-root {
  touch-action: none;
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  overflow: hidden;
  background: #000;
}

#display-root {
  touch-action: none;
  transform-origin: top center;
  isolation: isolate;
  contain: layout paint;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url("../assets/file_000000000f6881f4aeb6905b2ad2259a.png");
  background-size: 100% 85%;
  background-position: center;
  background-repeat: no-repeat;
}

.lucky-card {
  position: absolute;
  left: calc(50% - 143px);
  top: calc(50% - 44px);
  width: 80px;
  height: 77px;
  object-fit: contain;
  display: block;
}

.super-lucky-card {
  position: absolute;
  left: calc(50% + 105px);
  top: calc(50% - 6px);
  width: 77px;
  height: 77px;
  transform: translate(-50%, -50%);
  z-index: 999;
  object-fit: fill;
  display: block;
}


/* Responsive 2:3 game stage */
#display-root {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  background-image: none;
  transform: none;
}

.display-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1024px;
  height: 1536px;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--display-scale, 1));
  transform-origin: center center;
  background-image: url("../assets/file_000000000f6881f4aeb6905b2ad2259a.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}


/* Card positions calibrated on 1024x1536 canvas */
#display-canvas .lucky-card {
  left: 218px;
  top: 751px;
  width: 224px;
  height: 215px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  z-index: 10;
}

#display-canvas .super-lucky-card {
  left: 810px;
  top: 751px;
  width: 224px;
  height: 215px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  z-index: 10;
}


/* Countdown centered in the red panel on the fixed 1024x1536 canvas */
#display-canvas .round-timer {
  position: absolute;
  left: 512px;
  top: 752px;
  width: 300px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  color: #ffd72f;
  font: 900 112px/1 Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px #ffb000, 0 2px 5px #300;
  pointer-events: none;
  z-index: 100;
  animation: none;
  transition: none;
}

#display-canvas .round-timer.is-locked {
  color: #ff5555;
  text-shadow: 0 0 8px #ff2020, 0 2px 5px #300;
}


/* Gold winner light: glow only, without changing card positions */
#display-canvas .fruit-card.is-lit {
  z-index: 40;
  outline: 5px solid #ffe15a;
  outline-offset: -7px;
  border-radius: 26px;
  box-shadow: 0 0 24px 8px rgba(255, 190, 20, 0.9),
              inset 0 0 18px rgba(255, 230, 90, 0.45);
}

#display-canvas .lucky-card.is-lit,
#display-canvas .super-lucky-card.is-lit {
  z-index: 40;
  filter: drop-shadow(0 0 14px #ffe15a)
          drop-shadow(0 0 24px rgba(255, 185, 20, 0.9));
}


/* Dim every slot except the active clockwise light */
#display-canvas.light-scan-active .fruit-card:not(.is-lit),
#display-canvas.light-scan-active .lucky-card:not(.is-lit),
#display-canvas.light-scan-active .super-lucky-card:not(.is-lit) {
  opacity: 0.16 !important;
  filter: grayscale(0.5) brightness(0.38) !important;
  transition: opacity 120ms linear, filter 120ms linear;
}

#display-canvas.light-scan-active .fruit-card.is-lit,
#display-canvas.light-scan-active .lucky-card.is-lit,
#display-canvas.light-scan-active .super-lucky-card.is-lit {
  opacity: 1 !important;
}

/* أزرار رهان ثلاثية الأبعاد */
#display-canvas .bet-prototype-3d {
  position: absolute;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

#display-canvas .bet-value-3d {
  position: absolute;
  top: 1085px;
  width: 132px;
  height: 42px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  border: 2px solid #8c520d;
  border-radius: 24px;
  color: #fff9df;
  font: 900 27px/1 Arial, sans-serif;
  text-shadow: 0 2px 2px #663600;
  background: linear-gradient(180deg, #fff2a4, #f3bd3f 32%, #b56d0e 67%, #ffdc68);
  box-shadow: 0 4px 0 #633a09, inset 0 3px 4px #fff8ce, inset 0 -3px 4px #9a590a;
}

#display-canvas .bet-button-3d {
  position: absolute;
  top: 1138px;
  width: 178px;
  height: 106px;
  transform: translateX(-50%);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#display-canvas .bet-gold-3d,
#display-canvas .bet-silver-3d,
#display-canvas .bet-cap-3d {
  position: absolute;
  left: 50%;
  display: block;
  border-radius: 50%;
  box-sizing: border-box;
}

#display-canvas .bet-gold-3d {
  z-index: 1;
  bottom: 9px;
  width: 184px;
  height: 72px;
  transform: translateX(-50%);
  border: 0;
  border-top: 5px solid #fff4ad;
  border-left: 6px solid #f4d16d;
  border-right: 6px solid #98600f;
  border-bottom: 11px solid #77470b;
  background: linear-gradient(180deg, #fffbd4 0%, #ffe783 18%, #e3ad39 42%, #f4cf5d 58%, #c78824 77%, #f5d271 100%);
  box-shadow: 0 8px 0 #80500f, 0 10px 6px rgba(20, 8, 2, .42), inset 0 5px 6px #fffbd8, inset 0 -6px 7px #95600f;
}

#display-canvas .bet-silver-3d {
  z-index: 2;
  bottom: 27px;
  width: 134px;
  height: 60px;
  transform: translateX(-50%);
  border: 0;
  border-top: 5px solid #fff;
  border-left: 6px solid #e9eef0;
  border-right: 6px solid #879296;
  border-bottom: 10px solid #5e696e;
  background: linear-gradient(180deg, #fff 0%, #e9edef 25%, #bcc6ca 53%, #e3e8ea 72%, #aab4b8 100%);
  box-shadow: 0 6px 0 #566166, 0 8px 5px rgba(20, 8, 2, .36), inset 0 5px 6px #fff, inset 0 -5px 6px #7b8589;
  transition: transform 90ms ease;
}

#display-canvas .bet-cap-3d {
  z-index: 3;
  bottom: 40px;
  width: 104px;
  height: 50px;
  transform: translateX(-50%) translateY(-4px);
  border: 0;
  border-top: 5px solid #ffc8bd;
  border-left: 6px solid #ef7668;
  border-right: 6px solid #a51917;
  border-bottom: 9px solid #680d12;
  background: radial-gradient(ellipse at 34% 18%, #ffd9d1 0%, #ff8878 22%, #f04439 48%, #cb2022 74%, #8a1018 100%);
  box-shadow: 0 8px 0 #710e13, 0 10px 6px rgba(20, 5, 4, .45), inset 0 7px 8px #ffe5df, inset 0 -6px 7px #850e16;
  transition: transform 90ms ease, box-shadow 90ms ease, background 120ms ease;
}

#display-canvas .bet-cap-3d::before {
  content: "";
  position: absolute;
  left: 17%;
  top: 12%;
  width: 47%;
  height: 25%;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.2) 100%);
  opacity: .9;
  pointer-events: none;
}

#display-canvas .bet-button-3d.is-pressing .bet-cap-3d,
#display-canvas .bet-button-3d:active .bet-cap-3d {
  transform: translateX(-50%) translateY(9px) scale(.97);
}

#display-canvas .bet-button-3d.is-pressing .bet-silver-3d,
#display-canvas .bet-button-3d:active .bet-silver-3d {
  transform: translateX(-50%) translateY(3px);
}

#display-canvas .bet-button-3d.is-selected .bet-cap-3d {
  border-top-color: #d9f8ff;
  border-left-color: #6edaff;
  border-right-color: #0758b8;
  border-bottom-color: #06377c;
  background: radial-gradient(ellipse at 34% 18%, #e5fcff 0%, #8de5ff 22%, #279af4 48%, #0861ca 74%, #063b8d 100%);
  box-shadow: 0 8px 0 #07377b, 0 10px 6px rgba(8, 22, 45, .4), inset 0 7px 8px #eafcff, inset 0 -6px 7px #06418e;
}

#display-canvas .bet-button-3d.is-selected:not(:active):not(.is-pressing) .bet-cap-3d {
  transform: translateX(-50%) translateY(9px) scale(.97);
}

#display-canvas .bet-button-3d.is-selected:not(:active):not(.is-pressing) .bet-silver-3d {
  transform: translateX(-50%) translateY(3px);
}

/* رهاناتي لليوم ورهاني الحالي داخل الخانتين أسفل الطاولة */
#display-canvas .bet-ledgers {
  position: absolute;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  direction: rtl;
  font-family: Arial, sans-serif;
  color: #fff0c4;
}

#display-canvas .bet-ledger {
  position: absolute;
  top: 1320px;
  width: 365px;
  height: 125px;
  padding: 9px 16px 6px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  box-sizing: border-box;
  background: transparent;
}

#display-canvas .bet-ledger-today { left: 125px; }
#display-canvas .bet-ledger-current { left: 534px; }

#display-canvas .bet-ledger h2 {
  margin: 0;
  color: #ffe39a;
  font-size: 25px;
  line-height: 32px;
  font-weight: 800;
  text-shadow: 0 2px 2px rgba(35, 12, 2, .9);
}

#display-canvas .bet-ledger-rule {
  height: 2px;
  margin: 3px 18px 5px;
  background: linear-gradient(90deg, transparent, #d99b3b, #ffe6a1, #d99b3b, transparent);
}

#display-canvas .bet-ledger-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff1cf;
  font-size: 19px;
  line-height: 27px;
  font-weight: 700;
}

#display-canvas .bet-ledger-total strong {
  min-width: 48px;
  color: #ffd76a;
  font-size: 23px;
}


/* Fruit cards — one final definition */
#display-canvas .fruit-card {
  position: absolute;
  width: 178px !important;
  height: 200px !important;
  display: flex;
  flex-direction: column;
  align-items: center !important;
  z-index: 20;
  pointer-events: none;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transform: translateX(-50%) !important;
  border-radius: 14px !important;
  clip-path: inset(0 round 14px) !important;
  background: transparent !important;
  outline: none !important;
  outline-offset: 0 !important;
  margin-top: 0 !important;
}

#display-canvas .fruit-card img {
  display: block;
  width: 170px !important;
  height: 140px !important;
  max-width: 100% !important;
  flex: 0 0 140px !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  margin-inline: auto !important;
}

#display-canvas .fruit-multiplier {
  width: 100% !important;
  height: 42px !important;
  flex: 0 0 42px !important;
  margin: 0 !important;
  text-align: center !important;
  color: #fff2cc;
  font: 700 34px/42px Arial, sans-serif;
  text-shadow: 0 2px 4px #1a0800;
}

#display-canvas .fruit-card:has(img[alt="strawberry"]) {
  margin-top: -6px !important;
}

#display-canvas .fruit-card:has(img[alt="orange"]),
#display-canvas .fruit-card:has(img[alt="lemon"]),
#display-canvas .fruit-card:has(img[alt="grapes"]),
#display-canvas .fruit-card:has(img[alt="cherries"]) {
  height: 198px !important;
}


/* ROUND LABEL DESIGN */
#display-canvas .round-info {
  position: absolute;
  left: 512px;
  top: 400px;
  width: 430px;
  height: 66px;
  transform: translate(-50%, -50%);
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  direction: rtl;
  color: #fff2d0;
  font: 800 30px/1 Arial, sans-serif;
  text-shadow: 0 2px 3px #3b1605;
  pointer-events: none;
}

#display-canvas #display-round-number {
  min-width: 34px;
  text-align: center;
  color: #ffe3a0;
}


/* FRUIT HISTORY STRIP DESIGN */
#display-canvas .fruit-history-strip {
  position: absolute;
  left: 512px;
  top: 1480px;
  width: 980px;
  height: 110px;
  transform: translate(-50%, -50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 12px;
  box-sizing: border-box;
  direction: rtl;
  border: 1px solid rgba(245, 205, 119, .72);
  border-radius: 13px;
  background: rgba(35, 14, 4, .22);
  pointer-events: none;
}

#display-canvas .fruit-history-title {
  flex: 0 0 120px;
  color: #ffe3a0;
  text-align: center;
  font: 800 18px/1 Arial, sans-serif;
  text-shadow: 0 1px 2px #321304;
}

#display-canvas .fruit-history-items {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 3px;
}

#display-canvas .fruit-history-slot {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
}


/* GAME BACK BUTTON */
/* GAME MUTE BUTTON */
#display-canvas .game-mute-button {
  position: absolute;
  left: 52px;
  top: 160px;
  z-index: 110;
  width: 72px;
  height: 72px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 4px solid #70400c;
  border-radius: 50%;
  color: #fff2d2;
  background: linear-gradient(180deg, #fff0a2 0%, #e6ad39 38%, #87500e 100%);
  box-shadow: 0 5px 0 #482708, inset 0 3px 4px rgba(255,255,220,.8);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#display-canvas .game-mute-button::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid #a8ffe0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 34% 18%, #e2fff4 0%, #75f0c3 18%, #1abc94 43%, #087b72 70%, #034654 100%);
}

#display-canvas .game-mute-icon {
  position: relative;
  z-index: 1;
  font: 700 34px/1 Arial, sans-serif;
  color: #fff9d8;
  text-shadow: 0 2px 2px #064943;
}

#display-canvas .game-mute-button i {
  display: none;
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: #fff0d0;
  transform: rotate(-48deg);
  box-shadow: 0 1px 2px #064943;
}

#display-canvas .game-mute-button.is-muted i {
  display: block;
}

#display-canvas .game-mute-button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #482708, inset 0 3px 5px rgba(40,5,2,.35);
}


/* Mute button: match back button and sit over right lower lantern */
#display-canvas .game-mute-button {
  position: absolute !important;
  left: 965px !important;
  right: auto !important;
  top: 255px !important;
  width: 110px !important;
  height: 110px !important;
  min-width: 110px !important;
  min-height: 110px !important;
  transform: translate(-50%, -50%) !important;
  z-index: 120 !important;
}

#display-canvas .game-mute-button .game-mute-icon {
  font-size: 48px !important;
  line-height: 1 !important;
}


/* TOP UI CONTROLS */
#display-canvas .game-network-status,
#display-canvas .game-side-action {
  position: absolute;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 0;
  border: 4px solid #70400c;
  border-radius: 50%;
  color: #fff9d8;
  background: linear-gradient(180deg, #fff0a2 0%, #e6ad39 38%, #87500e 100%);
  box-shadow: 0 5px 0 #482708, inset 0 3px 4px rgba(255,255,220,.8);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#display-canvas .game-network-status::before,
#display-canvas .game-side-action::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid #a8ffe0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 34% 18%, #e2fff4 0%, #75f0c3 18%, #1abc94 43%, #087b72 70%, #034654 100%);
}
#display-canvas .game-side-action {
  left: 910px;
  width: 110px;
  height: 110px;
  z-index: 119;
}
#display-canvas .game-side-history { top: 55px; }
#display-canvas .game-side-help { top: 160px; }
#display-canvas .game-side-players { top: 265px; }
#display-canvas .game-side-action svg,
#display-canvas .game-side-action span {
  position: relative;
  z-index: 1;
}
#display-canvas .game-side-action svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: #fff9d8;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 2px #064943);
}
#display-canvas .game-side-help span {
  font: 800 62px/1 Arial, sans-serif;
  text-shadow: 0 2px 2px #064943;
}
#display-canvas .game-network-status {
  left: 148px;
  top: 57px;
  width: 64px;
  height: 64px;
  z-index: 121;
}
#display-canvas .game-network-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #baffdd;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#display-canvas .game-network-status.is-offline .game-network-icon {
  stroke: #ffd0b7;
  opacity: .72;
}
#display-canvas .daily-prize-banner {
  position: absolute;
  left: 512px;
  top: 75px;
  width: 590px;
  height: 88px;
  transform: translate(-50%, -50%);
  z-index: 30;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 5px solid #d69b35;
  border-radius: 48px;
  color: #ffe6a3;
  background: linear-gradient(180deg, #66f2df 0%, #18bbaa 48%, #087477 100%);
  box-shadow: inset 0 3px 5px rgba(255,225,150,.45), 0 4px 0 #064547;
  font-family: Arial, sans-serif;
  text-shadow: 0 2px 3px #260805;
}
#display-canvas .daily-prize-banner span {
  font-size: 26px;
  font-weight: 800;
}
#display-canvas .daily-prize-banner strong {
  min-width: 110px;
  color: #fff0bd;
  text-align: center;
  font-size: 34px;
  font-weight: 900;
}
#display-canvas .game-network-status:active,
#display-canvas .game-side-action:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #482708, inset 0 3px 5px rgba(40,5,2,.35);
}


/* RESTORE BACK BUTTON AND SPACE SIDE ICONS */
#display-canvas .game-side-history { top: 0 !important; }
#display-canvas .game-side-help { top: 100px !important; }
#display-canvas .game-side-players { top: 200px !important; }


/* NETWORK SPEED METER AND PRIZE POSITION */
#display-canvas .daily-prize-banner {
  left: 590px !important;
  top: 50px !important;
}
#display-canvas .game-network-status {
  left: 140px !important;
  top: 25px !important;
  width: 130px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  padding: 0 10px !important;
  border-radius: 22px !important;
  cursor: default !important;
  background: transparent !important;

  box-shadow: none !important;}
#display-canvas .game-network-status::before {
  display: none !important;
}
#display-canvas .game-network-status .game-network-icon {
  flex: 0 0 30px;
  width: 30px !important;
  height: 30px !important;
}
#display-canvas .game-network-measurement {
  position: relative;
  z-index: 1;
  color: #d8ffe8;
  direction: ltr;
  white-space: nowrap;
  font: 800 15px/1 Arial, sans-serif;
  text-shadow: 0 1px 2px #064943;
}
#display-canvas .game-network-status.is-offline {
  background: linear-gradient(180deg, #8b3428 0%, #551813 100%) !important;
}


/* NETWORK INDICATOR TEXT ONLY */
#display-canvas .game-network-status,
#display-canvas .game-network-status.is-online,
#display-canvas .game-network-status.is-offline,
#display-canvas .game-network-status.is-checking {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: none !important;
  background-image: none !important;
}
#display-canvas .game-network-status::before,
#display-canvas .game-network-status::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: none !important;
}






/* GAME CLOSE BUTTON */
#display-canvas .game-close-button {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 200;
  width: 110px;
  height: 110px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 4px solid #70400c;
  border-radius: 50%;
  color: #fff2d2;
  background: linear-gradient(180deg, #fff0a2 0%, #e6ad39 38%, #87500e 100%);
  box-shadow: 0 5px 0 #482708, inset 0 3px 4px rgba(255,255,220,.8);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#display-canvas .game-close-button::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid #a8ffe0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 34% 18%, #e2fff4 0%, #75f0c3 18%, #1abc94 43%, #087b72 70%, #034654 100%);
}
#display-canvas .game-close-button span {
  position: relative;
  z-index: 1;
  font: 700 72px/1 Arial, sans-serif;
  text-shadow: 0 2px 2px #064943;
}
#display-canvas .game-close-button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #482708, inset 0 3px 5px rgba(40,5,2,.35);
}

#display-canvas .game-side-players {
  display: none !important;
}


/* FRUITS INSIDE LUCKY RESULT CARDS */
#display-canvas .special-fruit-overlay {
  position: absolute;
  z-index: 41;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .8));
}
#display-canvas .special-fruit-overlay img {
  display: block;
  object-fit: contain;
}
#display-canvas .lucky-bonus-fruits {
  left: 218px;
  top: 815px;
  width: 150px;
  height: 72px;
  transform: translate(-50%, -50%);
  gap: 16px;
}
#display-canvas .lucky-bonus-fruits img {
  width: 54px;
  height: 54px;
}
#display-canvas .super-lucky-bonus-fruits {
  left: 810px;
  top: 800px;
  width: 120px;
  height: 104px;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: repeat(2, 50px);
  grid-template-rows: repeat(2, 50px);
  justify-content: center;
  align-content: center;
}
#display-canvas .super-lucky-bonus-fruits img {
  width: 46px;
  height: 46px;
}
#display-canvas .super-lucky-bonus-fruits img:first-child {
  grid-column: 1 / span 2;
  justify-self: center;
}


/* FRUITS INSIDE LUCKY HISTORY CARDS */
#display-canvas .fruit-history-slot {
  position: relative;
  overflow: visible;
}
#display-canvas .fruit-history-main {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#display-canvas .fruit-history-bonus {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 3px;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .9));
}
#display-canvas .fruit-history-bonus-lucky {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transform: translateX(-50%);
}
#display-canvas .fruit-history-bonus-lucky img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}
#display-canvas .fruit-history-bonus-super {
  width: 36px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(2, 18px);
  grid-template-rows: repeat(2, 17px);
  justify-content: center;
  transform: translateX(-50%);
}
#display-canvas .fruit-history-bonus-super img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}
#display-canvas .fruit-history-bonus-super img:first-child {
  grid-column: 1 / span 2;
  justify-self: center;
}


/* CENTER AND ENLARGE BONUS FRUITS IN HISTORY */
#display-canvas .fruit-history-bonus {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
}
#display-canvas .fruit-history-bonus-lucky {
  gap: 4px;
  transform: translate(-50%, -50%);
}
#display-canvas .fruit-history-bonus-lucky img {
  width: 28px;
  height: 28px;
}
#display-canvas .fruit-history-bonus-super {
  width: 60px;
  height: 56px;
  grid-template-columns: repeat(2, 30px);
  grid-template-rows: repeat(2, 28px);
  transform: translate(-50%, -50%);
}
#display-canvas .fruit-history-bonus-super img {
  width: 28px;
  height: 28px;
}


/* ENLARGE FRUIT RESULTS IN HISTORY */
#display-canvas .fruit-history-main[alt="orange"],
#display-canvas .fruit-history-main[alt="lemon"],
#display-canvas .fruit-history-main[alt="grapes"],
#display-canvas .fruit-history-main[alt="cherry"],
#display-canvas .fruit-history-main[alt="apple"],
#display-canvas .fruit-history-main[alt="watermelon"],
#display-canvas .fruit-history-main[alt="mango"],
#display-canvas .fruit-history-main[alt="strawberry"] {
  inset: auto;
  left: 50%;
  top: 50%;
  width: 125%;
  height: 125%;
  transform: translate(-50%, -50%);
}
#display-canvas .fruit-history-bonus-lucky img {
  width: 34px;
  height: 34px;
}
#display-canvas .fruit-history-bonus-super {
  width: 76px;
  height: 68px;
  grid-template-columns: repeat(2, 38px);
  grid-template-rows: repeat(2, 34px);
}
#display-canvas .fruit-history-bonus-super img {
  width: 34px;
  height: 34px;
}


/* SWIPEABLE FRUIT HISTORY WITH SPACED RESULTS */
#display-canvas .fruit-history-strip {
  pointer-events: auto;
}
#display-canvas .fruit-history-items {
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-start;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#display-canvas .fruit-history-items::-webkit-scrollbar {
  display: none;
}
#display-canvas .fruit-history-slot {
  flex: 0 0 76px;
  width: 76px;
  scroll-snap-align: center;
}
#display-canvas .fruit-history-main[alt="orange"],
#display-canvas .fruit-history-main[alt="lemon"],
#display-canvas .fruit-history-main[alt="grapes"],
#display-canvas .fruit-history-main[alt="cherry"],
#display-canvas .fruit-history-main[alt="apple"],
#display-canvas .fruit-history-main[alt="watermelon"],
#display-canvas .fruit-history-main[alt="mango"],
#display-canvas .fruit-history-main[alt="strawberry"] {
  width: 125%;
  height: 125%;
}
#display-canvas .fruit-history-bonus-super {
  left: 50%;
  top: 50%;
  bottom: auto;
  width: 60px;
  height: 54px;
  grid-template-columns: repeat(2, 30px);
  grid-template-rows: repeat(2, 27px);
  transform: translate(-50%, -50%);
  overflow: hidden;
}
#display-canvas .fruit-history-bonus-super img {
  width: 27px;
  height: 27px;
}


/* SLIGHTLY SMALLER LUCKY PRO FRUITS */
#display-canvas .fruit-history-bonus-lucky img {
  width: 30px;
  height: 30px;
}


/* SLIGHTLY LARGER LUCKY HISTORY CARDS */
#display-canvas .fruit-history-main[alt="lucky_pro"],
#display-canvas .fruit-history-main[alt="super_lucky"] {
  inset: auto;
  left: 50%;
  top: 50%;
  width: 112%;
  height: 112%;
  transform: translate(-50%, -50%);
}


/* DAILY PRIZE BANNER SIZE AND POSITION */
#display-canvas .daily-prize-banner {
  height: 76px !important;
  top: 33px !important;
}


/* COMPACT ROUND HISTORY MODAL */
#display-canvas .game-history-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 70px;
  background: rgba(0, 0, 0, .48);
}
#display-canvas .game-history-modal {
  width: 100%;
  max-width: 850px;
  max-height: 72%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  border: 5px solid #d69b35;
  border-radius: 38px;
  color: #fff0bd;
  background: linear-gradient(180deg, #087b72 0%, #075c59 45%, #073c3d 100%);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .65), inset 0 2px 8px rgba(255, 245, 190, .35);
  font-family: Arial, sans-serif;
}
#display-canvas .game-history-modal-header {
  min-height: 100px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-sizing: border-box;
  border-bottom: 3px solid rgba(255, 220, 140, .55);
  direction: rtl;
  font-size: 34px;
  text-shadow: 0 2px 3px #064943;
}
#display-canvas .game-history-modal-close {
  width: 64px;
  height: 64px;
  border: 3px solid #ffe3a0;
  border-radius: 50%;
  color: #fff4cf;
  background: linear-gradient(180deg, #66f2df, #18bbaa 48%, #087477);
  box-shadow: 0 3px 0 #064547, inset 0 2px 4px rgba(255,255,220,.65);
  font: 700 48px/1 Arial, sans-serif;
  cursor: pointer;
}
#display-canvas .game-history-modal-list {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 24px 24px;
  box-sizing: border-box;
  direction: rtl;
  overscroll-behavior: contain;
}
#display-canvas .game-history-round {
  margin: 0 0 16px;
  padding: 20px 22px;
  border: 2px solid rgba(245, 205, 119, .7);
  border-radius: 24px;
  background: rgba(3, 48, 48, .68);
  box-shadow: inset 0 1px 5px rgba(255, 240, 190, .13);
}
#display-canvas .game-history-round-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffe3a0;
  font-size: 25px;
}
#display-canvas .game-history-round-heading time {
  font-size: 18px;
  opacity: .92;
}
#display-canvas .game-history-round-result {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(245, 205, 119, .55);
  font-size: 25px;
}
#display-canvas .game-history-round-result img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
#display-canvas .game-history-round-fruits {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
#display-canvas .game-history-round-fruits img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
#display-canvas .game-history-message {
  margin: 35px 0;
  text-align: center;
  font-size: 26px;
  color: #fff0bd;
}


/* COMPACT PLAYER HISTORY MODAL */
#display-canvas .player-history-backdrop {
  position: absolute;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 70px;
  background: rgba(0, 0, 0, .48);
}
#display-canvas .player-history-modal {
  width: 100%;
  max-width: 850px;
  max-height: 72%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  border: 5px solid #d69b35;
  border-radius: 38px;
  color: #fff0bd;
  background: linear-gradient(180deg, #087b72 0%, #075c59 48%, #073c3d 100%);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .65), inset 0 2px 8px rgba(255, 245, 190, .35);
  font-family: Arial, sans-serif;
}
#display-canvas .player-history-header {
  min-height: 100px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-sizing: border-box;
  border-bottom: 3px solid rgba(255, 220, 140, .55);
  direction: ltr;
  font-size: 32px;
  text-shadow: 0 2px 3px #064943;
}
#display-canvas .player-history-close {
  width: 64px;
  height: 64px;
  border: 3px solid #ffe3a0;
  border-radius: 50%;
  color: #fff4cf;
  background: linear-gradient(180deg, #66f2df, #18bbaa 48%, #087477);
  box-shadow: 0 3px 0 #064547, inset 0 2px 4px rgba(255,255,220,.65);
  font: 700 48px/1 Arial, sans-serif;
  cursor: pointer;
}
#display-canvas .player-history-list {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 24px 24px;
  box-sizing: border-box;
  direction: ltr;
  overscroll-behavior: contain;
}
#display-canvas .player-history-round {
  margin: 0 0 16px;
  padding: 20px 22px;
  border: 2px solid rgba(245, 205, 119, .7);
  border-radius: 24px;
  background: rgba(3, 48, 48, .68);
  box-shadow: inset 0 1px 5px rgba(255, 240, 190, .13);
}
#display-canvas .player-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffe3a0;
  font-size: 24px;
}
#display-canvas .player-history-heading time {
  font-size: 17px;
  opacity: .92;
}
#display-canvas .player-history-outcome {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(245, 205, 119, .55);
  font-size: 22px;
}
#display-canvas .player-history-outcome img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}
#display-canvas .player-history-outcome > strong {
  color: #ffe3a0;
  font-size: 25px;
}
#display-canvas .player-history-outcome > span {
  margin-left: auto;
  color: #fff0bd;
}
#display-canvas .player-history-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
#display-canvas .player-history-total {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid rgba(245, 205, 119, .7);
  border-radius: 20px;
  background: rgba(1, 35, 35, .55);
  font-size: 19px;
}
#display-canvas .player-history-total strong {
  color: #fff4cf;
  font-size: 25px;
}
#display-canvas .player-history-no-bets,
#display-canvas .player-history-message {
  margin: 25px 0;
  color: #fff0bd;
  text-align: center;
  font-size: 23px;
}


/* DISABLE PLAYER HISTORY POPUP */
#display-canvas .player-history-backdrop {
  display: none !important;
  pointer-events: none !important;
}


/* GAME HELP MODAL FINAL STYLE */
#display-canvas .game-help-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, .68);
}
#display-canvas .game-help-modal-backdrop[hidden] {
  display: none !important;
}
#display-canvas .game-help-modal {
  width: min(88%, 820px);
  max-height: 76%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  border: 5px solid #d6a43b;
  border-radius: 34px;
  color: #fff0c2;
  background: linear-gradient(180deg, #087f78, #034d4b);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .65), inset 0 0 0 2px rgba(255, 224, 140, .35);
  font-family: Arial, sans-serif;
}
#display-canvas .game-help-modal-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 22px;
  box-sizing: border-box;
  border-bottom: 2px solid rgba(255, 220, 130, .55);
  font-size: 23px;
}
#display-canvas .game-help-modal-close {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 3px solid #ffe59a;
  border-radius: 50%;
  color: #fff7d8;
  background: linear-gradient(180deg, #51e0c5, #087d77);
  box-shadow: 0 3px 0 #064844;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}
#display-canvas .game-help-modal-content {
  overflow-y: auto;
  padding: 18px 26px 24px;
  font-size: 20px;
  line-height: 1.65;
}
#display-canvas .game-help-modal-content section + section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 220, 130, .45);
}
#display-canvas .game-help-modal-content h2 {
  margin: 0 0 6px;
  color: #ffe59a;
  font-size: 23px;
}
#display-canvas .game-help-modal-content p {
  margin: 7px 0;
}


/* GAME HELP MODAL STYLE */
#display-canvas .game-help-modal-backdrop {
  position:absolute; inset:0; z-index:9999;
  display:flex; align-items:center; justify-content:center;
  padding:24px; box-sizing:border-box; background:rgba(0,0,0,.68);
}
#display-canvas .game-help-modal-backdrop[hidden] { display:none !important; }
#display-canvas .game-help-modal {
  width:min(88%,820px); max-height:76%; display:flex; flex-direction:column;
  overflow:hidden; box-sizing:border-box; border:5px solid #d6a43b;
  border-radius:34px; color:#fff0c2;
  background:linear-gradient(180deg,#087f78,#034d4b);
  box-shadow:0 8px 24px rgba(0,0,0,.65); font-family:Arial,sans-serif;
}
#display-canvas .game-help-modal-header {
  min-height:76px; display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:10px 22px; border-bottom:2px solid rgba(255,220,130,.55);
  font-size:23px;
}
#display-canvas .game-help-modal-close {
  width:52px; height:52px; flex:0 0 52px; border:3px solid #ffe59a;
  border-radius:50%; color:#fff7d8;
  background:linear-gradient(180deg,#51e0c5,#087d77);
  font-size:38px; line-height:1; cursor:pointer;
}
#display-canvas .game-help-modal-content {
  overflow-y:auto; padding:18px 26px 24px; font-size:20px; line-height:1.65;
}
#display-canvas .game-help-modal-content section + section {
  margin-top:16px; padding-top:12px; border-top:1px solid rgba(255,220,130,.45);
}
#display-canvas .game-help-modal-content h2 {
  margin:0 0 6px; color:#ffe59a; font-size:23px;
}
#display-canvas .game-help-modal-content p { margin:7px 0; }


/* FRESH EMPTY HISTORY WINDOW */
#display-canvas .fresh-history-window-backdrop {
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, .64);
}
#display-canvas .fresh-history-window-backdrop[hidden] {
  display: none !important;
}
#display-canvas .fresh-history-window {
  width: min(86%, 850px);
  height: 70%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  border: 5px solid #d6a43b;
  border-radius: 32px;
  color: #fff0c2;
  background: linear-gradient(180deg, #087f78, #034d4b);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .65);
  font-family: Arial, sans-serif;
}
#display-canvas .fresh-history-window-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  box-sizing: border-box;
  border-bottom: 2px solid rgba(255, 220, 130, .55);
  font-size: 24px;
}
#display-canvas .fresh-history-window-close {
  width: 52px;
  height: 52px;
  border: 3px solid #ffe59a;
  border-radius: 50%;
  color: #fff7d8;
  background: linear-gradient(180deg, #51e0c5, #087d77);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}
#display-canvas .fresh-history-window-body {
  flex: 1;
  overflow-y: auto;
}


/* Crazy Fruit in-app loading screen */
#crazy-fruit-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 18px;
  background-color: #140802;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, .78)),
    url("../assets/file_000000000f6881f4aeb6905b2ad2259a.png");
  background-size: cover, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility .35s ease;
}
#crazy-fruit-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.crazy-fruit-loader__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  width: min(82vw, 320px);
  box-sizing: border-box;
  padding: 25px 20px 22px;
  border: 1px solid rgba(255, 214, 112, .72);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(75, 31, 7, .96), rgba(22, 9, 3, .97));
  box-shadow: 0 12px 38px rgba(0, 0, 0, .55), inset 0 1px rgba(255, 238, 183, .18);
  color: #fff4d5;
  font-family: Arial, sans-serif;
  text-align: center;
  direction: rtl;
}
.crazy-fruit-loader__spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 226, 154, .28);
  border-top-color: #ffe181;
  border-radius: 50%;
  animation: crazy-fruit-loader-spin .85s linear infinite;
}
.crazy-fruit-loader__title {
  color: #ffe08a;
  font-size: 22px;
  letter-spacing: .4px;
}
.crazy-fruit-loader__text {
  color: #fff1d1;
  font-size: 14px;
}
@keyframes crazy-fruit-loader-spin {
  to { transform: rotate(360deg); }
}


/* Crazy Fruit logo-style loading title */
.crazy-fruit-loader__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font: 900 clamp(30px, 9vw, 44px)/.88 Arial, sans-serif;
  letter-spacing: -1px;
  filter: drop-shadow(0 6px 3px rgba(0, 0, 0, .75));
}
.crazy-fruit-loader__title span {
  display: block;
  -webkit-text-stroke: 1.4px #572707;
  paint-order: stroke fill;
}
.crazy-fruit-loader__zaman {
  color: #ffbd32;
  text-shadow: 0 2px 0 #a94d08, 0 4px 0 #682b06, 0 6px 0 #3b1804;
}
.crazy-fruit-loader__fruity {
  color: #58df35;
  text-shadow: 0 2px 0 #31851c, 0 4px 0 #1c5512, 0 6px 0 #0c310b;
}


/* Taller loading card */
.crazy-fruit-loader__card {
  height: min(48dvh, 520px);
  min-height: min(360px, calc(100dvh - 36px));
  max-height: calc(100dvh - 36px);
  justify-content: center;
  gap: clamp(18px, 3.5dvh, 32px);
}


/* Original Zaman Fruity logo crop */
.crazy-fruit-loader__logo {
  width: min(78vw, 280px);
  aspect-ratio: 1.85;
  flex: 0 0 auto;
  background-image: url("../assets/file_000000000f6881f4aeb6905b2ad2259a.png");
  background-size: 238% 667%;
  background-position: 50% 8%;
  background-repeat: no-repeat;
}


/* Loading card color matches balance bar */
.crazy-fruit-loader__card {
  background: linear-gradient(180deg, #43e8d5 0%, #12c7b8 42%, #078d88 100%);
  border-color: #d9b45a;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .32), 0 8px 30px rgba(0, 0, 0, .42);
}


/* Loader card matches game area */
#crazy-fruit-loader {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 0;
}
.crazy-fruit-loader__card {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  max-width: none;
  box-sizing: border-box;
  border: 4px solid #b97828;
  border-radius: 0;
  background: linear-gradient(180deg, #74300e 0%, #5e230b 48%, #451607 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 224, 129, .2);
}


/* Force loading card to match the balance bar */
#crazy-fruit-loader .crazy-fruit-loader__card {
  background: linear-gradient(180deg, #43e8d5 0%, #12c7b8 42%, #078d88 100%) !important;
  border-color: #d9b45a !important;
}


/* Make the original logo fill the loading card */
#crazy-fruit-loader .crazy-fruit-loader__logo {
  width: calc(100% + 40px);
  max-width: 100vw;
  margin-inline: -20px;
  aspect-ratio: 1.85;
}


/* Loading dots below status */
.crazy-fruit-loader__spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: auto;
  height: 16px;
  margin-top: -6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  animation: none;
}
.crazy-fruit-loader__spinner i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffe181;
  box-shadow: 0 0 10px rgba(255, 225, 129, .65);
  animation: crazy-fruit-loader-dot .9s ease-in-out infinite;
}
.crazy-fruit-loader__spinner i:nth-child(2) { animation-delay: .15s; }
.crazy-fruit-loader__spinner i:nth-child(3) { animation-delay: .3s; }
@keyframes crazy-fruit-loader-dot {
  0%, 80%, 100% { transform: scale(.65); opacity: .55; }
  40% { transform: scale(1.15); opacity: 1; }
}


/* Logo fills the upper area; loading stays at the bottom */
#crazy-fruit-loader .crazy-fruit-loader__card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0 20px 24px;
  overflow: hidden;
}
#crazy-fruit-loader .crazy-fruit-loader__logo {
  order: 0;
  flex: 0 0 auto;
  width: calc(100% + 40px);
  max-width: 100vw;
  margin: 0 -20px;
  aspect-ratio: 1.85;
}
#crazy-fruit-loader .crazy-fruit-loader__text {
  order: 1;
  margin-top: auto;
  padding-top: 16px;
  text-align: center;
}
#crazy-fruit-loader .crazy-fruit-loader__spinner {
  order: 2;
  margin-top: 12px;
  margin-bottom: 8px;
}


/* Full original game artwork inside the loading card */
#crazy-fruit-loader .crazy-fruit-loader__card {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background-color: #073b38 !important;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, .04) 0%, rgba(0, 0, 0, .02) 58%, rgba(5, 139, 132, .84) 100%),
    url("../assets/file_000000000f6881f4aeb6905b2ad2259a.png") !important;
  background-size: 100% 100%, 100% 100% !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
}
#crazy-fruit-loader .crazy-fruit-loader__logo {
  display: none !important;
}
#crazy-fruit-loader .crazy-fruit-loader__text,
#crazy-fruit-loader .crazy-fruit-loader__spinner {
  position: relative;
  z-index: 1;
}


/* Logo crop only at the top; loading text and dots at the bottom */
#crazy-fruit-loader .crazy-fruit-loader__card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0 20px 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #43e8d5 0%, #12c7b8 42%, #078d88 100%) !important;
}
#crazy-fruit-loader .crazy-fruit-loader__logo {
  display: block !important;
  order: 0;
  flex: 0 0 auto;
  width: calc(100% + 40px);
  max-width: 100vw;
  margin: 0 -20px;
  aspect-ratio: 1.85;
  background-image: url("../assets/file_000000000f6881f4aeb6905b2ad2259a.png");
  background-size: 238% 667%;
  background-position: 50% 8%;
  background-repeat: no-repeat;
}
#crazy-fruit-loader .crazy-fruit-loader__text {
  order: 1;
  margin-top: auto;
  padding-top: 16px;
  text-align: center;
}
#crazy-fruit-loader .crazy-fruit-loader__spinner {
  order: 2;
  margin-top: 12px;
}


/* Logo crop only, scaled to the card width */
#crazy-fruit-loader .crazy-fruit-loader__card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0 20px 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #43e8d5 0%, #12c7b8 42%, #078d88 100%) !important;
}
#crazy-fruit-loader .crazy-fruit-loader__logo {
  display: block !important;
  order: 0;
  flex: 0 0 auto;
  width: calc(100% + 40px);
  max-width: 100vw;
  margin: 0 -20px;
  aspect-ratio: 1.85;
  background-image: url("../assets/file_000000000f6881f4aeb6905b2ad2259a.png");
  background-size: 238% 667%;
  background-position: 50% 8%;
  background-repeat: no-repeat;
}
#crazy-fruit-loader .crazy-fruit-loader__text {
  order: 1;
  margin-top: auto;
  padding-top: 16px;
  text-align: center;
}
#crazy-fruit-loader .crazy-fruit-loader__spinner {
  order: 2;
  margin-top: 12px;
}


/* Taller logo crop, same card width */
#crazy-fruit-loader .crazy-fruit-loader__logo {
  aspect-ratio: 1.55;
}


/* Center the logo without changing its dimensions */
#crazy-fruit-loader .crazy-fruit-loader__card {
  position: relative;
  display: block;
  padding: 0;
}
#crazy-fruit-loader .crazy-fruit-loader__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}
#crazy-fruit-loader .crazy-fruit-loader__text {
  position: absolute;
  right: 12px;
  bottom: 76px;
  left: 12px;
  margin: 0;
  padding: 0;
  text-align: center;
}
#crazy-fruit-loader .crazy-fruit-loader__spinner {
  position: absolute;
  bottom: 30px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
}


/* Slightly enlarge the centered logo proportionally */
#crazy-fruit-loader .crazy-fruit-loader__logo {
  transform: translate(-50%, -50%) scale(1.08);
}


/* Amount wagered on each fruit */
#display-canvas .fruit-card {
  pointer-events: auto !important;
  cursor: pointer;
  touch-action: manipulation;
}

#display-canvas .fruit-card .fruit-bet-total {
  position: absolute;
  z-index: 15;
  top: 5px;
  right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 23px;
  box-sizing: border-box;
  padding: 2px 7px;
  border: 1px solid #f0c45a;
  border-radius: 12px;
  background: rgba(35, 14, 4, .9);
  color: #fff2cc;
  font: 700 14px/1.2 Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px #1a0800;
  white-space: nowrap;
  pointer-events: none;
}

#display-canvas .fruit-card .fruit-bet-total:empty {
  display: none;
}
