/* ════════════════════════════════════════════════════════════════════════════
SLOT MACHINE STYLES - ROBIT ornate frame overlay (portrait)
═══════════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;900&family=Rajdhani:wght@700&display=swap');

/* วัดจาก robit-slot-bg.png 768×1024 — ขอบในเซลล์ (ไม่รวมเส้น cyan) */
:root {
  /* ป้ายหัวโลหะในกรอบแดง — เพิ่มค่า top เพื่อเลื่อนลง */
  --slot-top-banner-top: 17.4%;
  --slot-top-banner-width: 88%;
  /* กรอบเหลือง — กว้างเท่าเดิม (100% กรอบแดง) สูงขยายเท่าๆ กันบน-ล่าง ให้ครอบวงล้อ+งานใต้กรอบ */
  --slot-yellow-w: 1446;
  --slot-yellow-h: 1990;
  --slot-yellow-pack-scale: 0.93;
  --slot-metal-w: 1446;
  --slot-metal-h: 1088;
  /* วงล้อ 8 ช่อง (เลข 1–8) — วงใน หลังฐาน% */
  --slot-wheel-top: 11.3%;
  --slot-wheel-width: 58%;
  --slot-wheel-lock-w: 54;
  /* วงล้อ 10 ช่อง (เลข 1–10) — วงนอก ขอบทองพอดีกรอบโลหะ */
  --slot-wheel-8-width: 98.7%;
  /* สองชิ้นใต้กรอบโลหะ — กว้างเท่าขอบโลหะที่มองเห็น ชิ้นละครึ่ง ชิดกลางพอดี */
  --slot-under-pair-left: 2.07%;
  --slot-under-pair-width: 95.99%;
  --slot-metal-vis-bottom: 94.94%;
  --slot-reels-left: 8.66%;
  --slot-reels-top: 22.95%;
  --slot-reels-width: 82.68%;
  --slot-reels-height: 46.92%;
  --slot-reels-gap-x: 1.73%;
  --slot-reels-row-gap: 0px;
  /* ตำแหน่งรางวัล/เลขชนะ — กรอบหกเหลี่ยมบนสุดกลาง */
  --slot-win-amount-left: 50%;
  --slot-win-amount-top: 10%;
  --slot-win-roof-top: 3.8%;
  --slot-win-hex-size: clamp(88px, 22cqw, 128px);
  /* รางวัล: เริ่ม 30% ของกรอบ → จบใหญ่ล้นนอก 10% (110%) — เท่ากันทุกรางวัล */
  --slot-win-prize-scale-start: 0.3;
  --slot-win-prize-scale-end: 1.1;
  --slot-win-amount-top-stack: 3.2%;
  --slot-win-amount-lane-step: 6.2%;
  /* ปุ่มสปิน — กึ่งกลางวงกลมบนฐานสปิน */
  --slot-spin-left: 50%;
  --slot-spin-top: 77.6%;
  --slot-spin-size: 188px;
  --spin-medal-x: 50%;
  --spin-medal-y: 48%;
  --spin-medal-size: 15%;
  /* ช่องแสดงผล 3 ช่องเหนือ SPIN — วัดจาก robit-slot-bg.png */
  --slot-deck-credit-left: 8.72%;
  --slot-deck-credit-top: 75.4%;
  --slot-deck-credit-width: 21.35%;
  --slot-deck-credit-height: 6.15%;
  --slot-deck-bet-left: 38.8%;
  --slot-deck-bet-top: 75.4%;
  --slot-deck-bet-width: 23.31%;
  --slot-deck-bet-height: 6.15%;
  --slot-deck-win-left: 68.5%;
  --slot-deck-win-top: 75.4%;
  --slot-deck-win-width: 22.8%;
  --slot-deck-win-height: 6.15%;
  /* ปุ่ม SPIN — กึ่งกลางช่องเดิม สัดส่วนตามต้นฉบับ ขยาย ~10% */
  --slot-spin-hit-left: calc(35.33% - 5px);
  --slot-spin-hit-top: calc(80.10% - 10px);
  --slot-spin-hit-width: 31.33%;
  --slot-spin-hit-height: 12.38%;
  /* ช่องรองรับด้านใน — สัมพันธ์กับ .slot-spin-hit */
  --slot-spin-socket-left: 10.8%;
  --slot-spin-socket-top: 21.7%;
  --slot-spin-socket-width: 78%;
  --slot-spin-socket-height: 51.3%;
}

#slotPage .spin-base-stack {
  display: none !important;
}

/* ฐานสปิน — ด้านหลัง สัมผัสไม่ได้ */
#slotPage .spin-base-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
  margin: 0;
  padding: 0;
  line-height: 0;
}

#slotPage .spin-base-3d .spin-base-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  pointer-events: none !important;
  background: transparent !important;
  vertical-align: bottom;
}

/* ปุ่มสปิน — หน้าสุด กึ่งกลางวงกลมฐาน */
#slotPage .spin-base-stack .diamond-spin-container {
  position: absolute !important;
  left: var(--spin-medal-x) !important;
  top: calc(var(--spin-medal-y) - 20px) !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  z-index: 3 !important;
  pointer-events: auto;
  overflow: visible !important;
  width: calc(var(--spin-medal-size) + 5px) !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  text-align: center;
}

#slotPage .spin-base-stack .spin-btn-wrap,
#slotPage .spin-base-stack .diamond-btn-new,
#slotPage .spin-base-stack .spin-coin-3d {
  width: 100% !important;
  height: 100% !important;
}

#slotPage .spin-base-stack .crystal-spin-btn .spin-crystal-icon {
  width: 78% !important;
  height: 78% !important;
  max-width: none !important;
  object-fit: contain !important;
}

html.player-stage #slotPage .spin-base-stack {
  width: min(144%, 900px);
  height: min(56%, 580px);
  bottom: 0;
}

@media (max-width: 768px) {
  #slotPage .spin-base-stack {
    width: min(calc(88vw + 50px) * 2, 860px);
    height: min(calc(52vw + 50px) * 2, 560px);
    bottom: 0;
  }
  :root {
    --spin-medal-y: 47%;
    --spin-medal-size: 16%;
  }
}

.slot-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  z-index: 0;
  container-type: size;
  container-name: slot-stage;
}

/* ภายใน stage ที่ล็อกสัดส่วนแล้ว — ตู้ภาพซ่อนชั่วคราว เหลือฐานระบบสล็อต */
.slot-stage-bg,
.slot-spin-btn-img {
  display: none !important;
}

/* เมฆบนฟ้า — ชั้นบนเล็ก ช้า อยู่หลัง · ชั้นล่างใหญ่ เร็ว อยู่หน้า */
#slotPage .slot-sky-drift {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
#slotPage .slot-sky-cloud {
  position: absolute;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
#slotPage .slot-sky-cloud-far {
  top: 0;
  width: 52%;
  opacity: 0.72;
  z-index: 1;
  animation: slot-cm-cloud-far 180s linear infinite;
}
#slotPage .slot-sky-cloud-near {
  top: 4.5%;
  width: 86%;
  opacity: 1;
  z-index: 2;
  animation: slot-cm-cloud-near 96s linear infinite;
}
@keyframes slot-cm-cloud-far {
  0% { transform: translate3d(108%, 0, 0); }
  25% { transform: translate3d(50%, -1.1%, 0); }
  50% { transform: translate3d(-8%, 0.5%, 0); }
  75% { transform: translate3d(-66%, -0.7%, 0); }
  100% { transform: translate3d(-124%, 0, 0); }
}
@keyframes slot-cm-cloud-near {
  0% { transform: translate3d(118%, 0.4%, 0); }
  25% { transform: translate3d(57.5%, -0.8%, 0); }
  50% { transform: translate3d(-3%, 0.9%, 0); }
  75% { transform: translate3d(-63.5%, -0.4%, 0); }
  100% { transform: translate3d(-124%, 0.4%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  #slotPage .slot-sky-cloud-far,
  #slotPage .slot-sky-cloud-near {
    animation: none;
  }
  #slotPage .slot-sky-cloud-far {
    left: 8%;
    top: 0;
  }
  #slotPage .slot-sky-cloud-near {
    left: -4%;
    top: 4.5%;
  }
}

/* กล่องแดง 9:16 กึ่งกลางห้อง — กรอบเหลืองขนาดชิ้นงานอยู่กลางในกล่อง */
#slotPage .slot-ratio-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
  border: 2px solid transparent;
  background: transparent;
  pointer-events: none;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* กรอบข้อความภารกิจของฐาน% — ชิดเหนือแถบโลหะ */
#slotPage .slot-hunt-mission {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 8.6%;
  top: calc(
    var(--slot-top-banner-top) * var(--slot-yellow-w) * 16 / (var(--slot-yellow-h) * 9)
    - (var(--slot-yellow-w) * 16 / (var(--slot-yellow-h) * 9) - 1) * 50%
    - 9.2%
  );
  z-index: 9;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 4%;
  border: 2px solid #3dff5a;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18, 42, 24, 0.94) 0%, rgba(6, 14, 10, 0.92) 100%);
  box-shadow:
    0 0 10px rgba(61, 255, 90, 0.35),
    inset 0 0 0 1px rgba(214, 255, 106, 0.28);
  pointer-events: none;
  container-type: size;
  line-height: 1.05;
}

#slotPage .slot-hunt-mission[hidden] {
  display: none !important;
}

#slotPage .slot-hunt-mission-text {
  color: #f3ffe4;
  font-family: Tahoma, 'Segoe UI', sans-serif;
  font-size: 28cqh;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
}

#slotPage .slot-hunt-reward {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
  background: transparent;
  pointer-events: none;
}

#slotPage .slot-hunt-reward[hidden] {
  display: none !important;
}

#slotPage .slot-hunt-reward-board {
  width: min(94%, 520px);
  max-height: min(78%, 640px);
  box-sizing: border-box;
  padding: 12px 10px 14px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-align: center;
  pointer-events: none;
}

#slotPage .slot-hunt-reward-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

#slotPage .slot-hunt-reward-piece {
  box-sizing: border-box;
  min-width: 0;
  padding: 7px 4px 8px;
  border: 0;
  border-radius: 0;
  background: none;
  text-align: center;
  pointer-events: auto;
}

#slotPage .slot-hunt-reward-piece.is-leaving {
  pointer-events: none;
  opacity: 0;
  transform: scale(0.84);
  transition: opacity 240ms ease, transform 240ms ease;
  z-index: 2;
}

#slotPage .slot-hunt-reward-title {
  color: #8dff63;
  font-family: Tahoma, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  pointer-events: none;
  text-shadow: 0 1px 2px #000, 0 0 8px #000;
}

#slotPage .slot-hunt-reward-status {
  margin-top: 8px;
  color: #f3ffe4;
  font-family: Tahoma, 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

#slotPage .slot-hunt-reward-amount {
  margin-top: 10px;
  color: #ffe56a;
  font-family: Orbitron, Tahoma, sans-serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

#slotPage .slot-hunt-reward-piece .slot-hunt-reward-status {
  margin-top: 0;
  font-size: 12px;
  line-height: 1.2;
  text-shadow: 0 1px 2px #000, 0 0 8px #000;
}

#slotPage .slot-hunt-reward-piece .slot-hunt-reward-amount {
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 2px #000, 0 0 8px #000;
}

#slotPage .slot-hunt-reward-piece .slot-hunt-reward-claim {
  margin-top: 6px;
  min-width: 0;
  width: 100%;
  min-height: 30px;
  padding: 4px 2px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #d8ff8a 0%, #3dff5a 46%, #14943a 100%);
  color: #06210c;
  font-family: Tahoma, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

/* ฐาน% — อยู่กับชุดในกรอบเหลือง ชิดหัวกรอบโลหะ (ค่าเดิมคิดจากกรอบแดง 9:16) */
#slotPage .slot-top-banner-wrap {
  position: absolute;
  left: 50%;
  top: calc(
    var(--slot-top-banner-top) * var(--slot-yellow-w) * 16 / (var(--slot-yellow-h) * 9)
    - (var(--slot-yellow-w) * 16 / (var(--slot-yellow-h) * 9) - 1) * 50%
  );
  transform: translateX(-50%);
  width: var(--slot-top-banner-width);
  z-index: 8;
  line-height: 0;
  pointer-events: none;
}

#slotPage .slot-top-banner {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

#slotPage .slot-hunt-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}

/* จอดำในฐาน% — แถบเขียวของเลเวลที่กำลังล่า เต็ม 100% เมื่อครบเป้าเลเวลนั้น */
#slotPage .slot-hunt-meter {
  position: absolute;
  left: 14.24%;
  top: 46.07%;
  width: 70.92%;
  height: 16.55%;
  z-index: 2;
  overflow: hidden;
  border-radius: 3.25% / 42%;
  container-type: size;
  pointer-events: none;
}

#slotPage .slot-hunt-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  transition: width 0.7s linear;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 46%, rgba(140, 230, 150, 0.16) 100%),
    linear-gradient(90deg, #8dffb8 0%, #c8ff86 52%, #f3ffd4 100%);
  box-shadow:
    0 0 18px rgba(176, 255, 140, 0.95),
    inset 0 0 8px rgba(255, 255, 255, 0.35);
}

/* วันเวลาภารกิจ — ช่องเขียวกรอบขวาบนสุด (absolute ล็อค ไม่ขยับเลย์เอาต์ตอนเวลาเดิน) */
#slotPage .slot-side-tabbar-right > .slot-side-tab[data-tab="1"] > .slot-side-tab-time {
  position: relative;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

#slotPage .slot-side-tab-clock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0 1px;
  overflow: hidden;
  color: #fff;
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-weight: 700;
  font-size: clamp(5px, 1.4vw, 7px);
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55), 0 0 4px rgba(0, 0, 0, 0.35);
}

/* โหมดวัน: ตัวเลขชิดขวาในช่องคงที่ + คำว่า วัน คงที่ */
#slotPage .slot-side-tab-clock-num {
  flex: 0 0 1.35em;
  width: 1.35em;
  min-width: 1.35em;
  max-width: 1.35em;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

#slotPage .slot-side-tab-clock-unit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* โหมด ≤1 วัน: HH:MM:SS ช่องละ 1 ตัว กว้างคงที่ */
#slotPage .slot-side-tab-clock-ch {
  flex: 0 0 0.62em;
  width: 0.62em;
  min-width: 0.62em;
  max-width: 0.62em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#slotPage .slot-side-tab-clock.is-rest,
#slotPage .slot-side-tab-time.is-rest .slot-side-tab-clock {
  color: #fff;
}

#slotPage .slot-hunt-pct {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 3%;
  overflow: hidden;
  color: #ffffff;
  font-family: Orbitron, sans-serif;
  font-weight: 900;
  font-size: 48cqh;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  -webkit-text-stroke: 0.45px #102418;
  paint-order: stroke fill;
  text-shadow:
    0 1px 0 #04140c,
    0 -1px 0 #04140c,
    1px 0 0 #04140c,
    -1px 0 0 #04140c,
    0 0 4px rgba(0, 0, 0, 0.9);
}

#slotPage .slot-hunt-pct.is-long {
  font-size: 40cqh;
  letter-spacing: 0;
}

#slotPage .slot-hunt-pct.is-xlong {
  font-size: 32cqh;
  letter-spacing: 0;
}

/* เลขตัวคูณ — ช่องว่างดำเหนือขอบกรอบโลหะ */
#slotPage .slot-mult-readout {
  position: absolute;
  left: 50%;
  top: 12.4%;
  width: 32%;
  height: 3.5%;
  transform: translate(-50%, -50%);
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#slotPage .slot-mult-readout .gold-digit-row {
  height: 78%;
  gap: 0.03em;
}

#slotPage .slot-mult-readout .gold-digit {
  height: 100%;
  width: auto;
}

#slotPage .slot-mult-readout .mult-unit {
  display: flex;
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  margin-left: 0.04em;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffe7a3;
  background: linear-gradient(180deg, #fff6d2 0%, #f0c14b 46%, #a87412 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#slotPage .slot-frame-stack {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 auto;
  z-index: 2;
  line-height: 0;
}

#slotPage .slot-art-guide {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: var(--slot-yellow-w) / var(--slot-yellow-h);
  box-sizing: border-box;
  border: 2px solid transparent;
  background: transparent;
  line-height: 0;
  flex: 0 0 auto;
  overflow: visible;
  z-index: 2;
}

/* กรอบงาน — ซ่อนจากผู้เล่น คงตำแหน่งไว้ */
#slotPage .slot-work-frame {
  display: none;
  position: absolute;
  box-sizing: border-box;
  border: 2px solid #ffe500;
  pointer-events: none;
  z-index: 50;
}

#slotPage .slot-work-frame-wheel {
  left: 4.594%;
  width: 90.809%;
  top: -11.075%;
  height: 65.985%;
}

#slotPage .slot-work-frame-board {
  left: 3.997%;
  width: 92.007%;
  top: 24.848%;
  height: 63.444%;
}

#slotPage .slot-work-frame-pad {
  left: 5.9%;
  width: 89.31%;
  top: 85.775%;
  height: 43.503%;
  border-color: #1a5cff;
  z-index: 51;
}

/* ทั้งชุดในกรอบเหลืองย่อเป็นก้อนเดียว จากศูนย์กลาง — ไม่เลื่อนชิ้นแยก */
#slotPage .slot-yellow-pack {
  position: absolute;
  inset: 0;
  transform: scale(var(--slot-yellow-pack-scale));
  transform-origin: 50% 50%;
  line-height: 0;
  z-index: 1;
  container-type: size;
}

#slotPage .slot-metal-stage {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  aspect-ratio: var(--slot-metal-w) / var(--slot-metal-h);
  line-height: 0;
  z-index: 2;
}

/* สองชิ้นแถวเดียว ชิดกัน — กว้างเท่าขอบโลหะ ชิดใต้กรอบโลหะ อยู่ในกรอบเหลือง */
#slotPage .slot-under-frame-pair {
  display: block;
  position: absolute;
  left: var(--slot-under-pair-left);
  width: var(--slot-under-pair-width);
  top: calc(50% + ((var(--slot-metal-vis-bottom) - 50%) * var(--slot-metal-h) / var(--slot-yellow-h)) - 4.4%);
  aspect-ratio: 75 / 23;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  z-index: 4;
  overflow: clip;
  pointer-events: none;
  user-select: none;
}

#slotPage .slot-under-frame-piece {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

/* เครดิตสปินซ้าย / เหรียญธนาคารขวา — ฝังกลางฐานไม้ */
#slotPage .slot-credit-readout,
#slotPage .slot-coin-readout {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#slotPage .slot-under-frame-pair > .slot-under-frame-piece {
  width: 92%;
  margin-left: auto;
  margin-right: auto;
}

#slotPage .slot-credit-readout {
  left: 19.7%;
  width: 60.6%;
  top: 34.3%;
  bottom: auto;
  height: 27.6%;
  overflow: visible;
  clip-path: none;
}

/* เลขเครดิต + รางวัลชนะเหรียญ — เหลือแค่เงาวับพาดหน้าเลข (ไม่มีแสงเรืองด้านหลัง)
   แถบวับเลื่อนด้วย background-position + มาสก์รูปเลข (ไม่ใช้ transform กับมาสก์) */
#slotPage .slot-credit-readout .gold-digit-row,
.slot-win-row-amount .gold-digit-row.is-credit-flex {
  position: relative;
  z-index: 1;
  overflow: visible;
}

#slotPage .slot-credit-readout .credit-digit-slot:not(.is-idle),
#slotPage .slot-credit-readout .credit-letter-slot,
.slot-win-row-amount .credit-digit-slot:not(.is-idle),
.slot-win-row-amount .credit-letter-slot {
  position: relative;
  overflow: visible !important;
}

/* แถบแสงวับพาดหน้าเลข — สีเดียวกับ .medal::after */
#slotPage .slot-credit-readout .credit-digit-slot:not(.is-idle)::after,
#slotPage .slot-credit-readout .credit-letter-slot::after,
.slot-win-row-amount .credit-digit-slot:not(.is-idle)::after,
.slot-win-row-amount .credit-letter-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: linear-gradient(100deg, transparent 0%, rgba(255, 248, 214, 0.2) 32%, rgba(255, 255, 255, 0.78) 50%, rgba(140, 230, 255, 0.35) 68%, transparent 100%);
  background-repeat: no-repeat;
  background-size: 42% 120%;
  background-position: -160% 50%;
  -webkit-mask-image: var(--digit-mask);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--digit-mask);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  animation: creditDigitSheen 8s ease-in-out infinite;
}

#slotPage .slot-credit-readout .credit-digit-slot .gold-digit,
#slotPage .slot-credit-readout .credit-letter-slot .gold-credit-letter,
#slotPage .slot-credit-readout .credit-letter-slot .gold-digit,
#slotPage .slot-credit-readout .gold-credit-unit,
.slot-win-row-amount .credit-digit-slot .gold-digit,
.slot-win-row-amount .credit-letter-slot .gold-credit-letter,
.slot-win-row-amount .credit-letter-slot .gold-digit,
.slot-win-row-amount .gold-credit-unit {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}

/* พาดช้า: พักนาน → ค่อยๆ เลื่อนข้ามเลข (~3 วิ) → พัก */
@keyframes creditDigitSheen {
  0%, 38% { background-position: -160% 50%; opacity: 0; }
  42% { opacity: 0.9; }
  82% { background-position: 280% 50%; opacity: 0.9; }
  88%, 100% { background-position: 280% 50%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #slotPage .slot-credit-readout .credit-digit-slot::after,
  #slotPage .slot-credit-readout .credit-letter-slot::after,
  .slot-win-row-amount .credit-digit-slot::after,
  .slot-win-row-amount .credit-letter-slot::after {
    animation: none;
  }
}

#slotPage .slot-coin-readout {
  left: 50%;
}

/* ฐานเหรียญ — มุมบนซ้าย ไม้ชิดขอบบนจอ (ส่วนใสบนภาพ 6.35% อยู่นอกจอ) */
/* แทบบาร์แนวตั้งซ้าย+ขวา — ล็อคกับจอ 9:16 จุดเดียวกัน
   บน=วงล้อใหญ่ / ล่าง=ขอบบนจอย (JS เขียน % ของจอ)
   กรอบดำแยกชั้น 6 อัน · ส่วนล่างเล็กติดแม่ไว้แสดงเวลา */
#slotPage .slot-ratio-guide > .slot-side-tabbar {
  /* สัดส่วนช่องขาวล็อกตามไอคอน — กว้างเต็ม / สูงพอดี ไม่กินช่องเขียว */
  --slot-tab-white-ratio: 1 / 1; /* ช่องขาวจัตุรัสตามไอคอน — ไม่รวมช่องเขียว */
  --slot-tab-green-h: 16px;
  position: absolute;
  top: var(--slot-tabbar-top, 7%);
  bottom: var(--slot-tabbar-bottom, 24%);
  z-index: 48;
  width: clamp(42px, 8.6vw, 64px);
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  pointer-events: none;
}

#slotPage .slot-ratio-guide > .slot-side-tabbar-left {
  left: 0;
  right: auto;
}

#slotPage .slot-ratio-guide > .slot-side-tabbar-right {
  left: auto;
  right: 0;
}

#slotPage .slot-side-tabbar > .slot-side-tab {
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: transparent;
  border: 2px solid #000;
  border-radius: 10px;
  overflow: visible;
  will-change: transform;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform-origin: center center;
  /* scale แยกจาก transform — กดยุบได้แม้ตอนซ้อนไพ่ */
  scale: 1;
  transition: scale 0.14s cubic-bezier(0.33, 0.08, 0.2, 1);
}

#slotPage .slot-side-tabbar > .slot-side-tab.is-press {
  scale: 0.86;
}

/* หน้าต่างจากแทบขวาบน — กว้างเต็มจอแสดงผล สูงลดนิดให้เห็นขอบนอก */
#slotPage .slot-ratio-guide > .slot-tab-page {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.42);
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

#slotPage .slot-ratio-guide > .slot-tab-page[hidden] {
  display: none !important;
}

/* ตอนเปิดหน้าต่างกิจ — ซ่อนเลข/โพลรางวัลที่ fixed ทับกรอบ (หน้าต่างอยู่ที่เดิม) */
html.is-slot-tab-page-open .slot-win-row-amount.is-win-show-float,
html.is-slot-tab-page-open .slot-win-merge-chip,
html.is-slot-tab-page-open #slotPaylinePopLayer,
html.is-slot-tab-page-open .slot-win-fly-ghost,
html.is-slot-tab-page-open .slot-win-fly-ghost--heavy,
html.is-slot-tab-page-open .slot-win-merge-layer {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.slot-tab-page-sheet {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 90%;
  max-height: 90%;
  margin: 0;
  padding: clamp(16px, 4vw, 28px) clamp(14px, 3.5vw, 24px) clamp(18px, 4.5vw, 32px);
  border: 2px solid #000;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(160deg, #1a2433 0%, #0d141f 55%, #151c28 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  color: #f4f7fb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.slot-tab-page-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 2px solid #000;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.slot-tab-page-title {
  margin: 0 44px 0 0;
  padding: 0;
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: clamp(18px, 5vw, 26px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #ffe500;
  text-shadow: 0 1px 0 #000;
}

.slot-tab-page-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  font-family: Rajdhani, sans-serif;
  font-size: clamp(14px, 3.8vw, 18px);
  font-weight: 600;
  line-height: 1.45;
  color: #e8eef6;
  white-space: pre-wrap;
  -webkit-overflow-scrolling: touch;
}

.slot-tab-page-body.is-boss-list {
  --boss-gap: 10px;
  --boss-row-h: 64px;
  --boss-visible: 6;
  white-space: normal;
  display: flex;
  flex-direction: column;
  gap: var(--boss-gap);
  padding-right: 2px;
  /* ระบบเลื่อนเอง — ผู้เล่นเลื่อนดู LV อื่นไม่ได้ */
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
}

.slot-tab-boss-meta {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  font-size: clamp(12px, 3.2vw, 15px);
  font-weight: 600;
  color: rgba(232, 238, 246, 0.78);
  letter-spacing: 0.02em;
}

.slot-tab-boss-empty {
  padding: 18px 12px;
  text-align: center;
  color: rgba(232, 238, 246, 0.7);
}

.slot-tab-boss-list {
  display: flex;
  flex-direction: column;
  gap: var(--boss-gap);
  width: 100%;
  flex: 0 0 auto;
  min-height: 0;
}

.slot-tab-boss-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  box-sizing: border-box;
  flex: 0 0 auto;
  /* JS วัดความสูงจริงให้พอดี 6 ฐาน / หน้า — ไม่ให้โผล่ฐานที่ 7 */
  height: var(--boss-row-h);
  min-height: var(--boss-row-h);
  max-height: var(--boss-row-h);
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 229, 0, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 229, 0, 0.06), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 55%),
    rgba(8, 14, 22, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.slot-tab-boss-row.is-current {
  border-color: rgba(255, 229, 0, 0.65);
  background:
    linear-gradient(90deg, rgba(255, 229, 0, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 55%),
    rgba(12, 20, 32, 0.88);
}

.slot-tab-boss-row.is-ready {
  border-color: rgba(80, 220, 140, 0.7);
  background:
    linear-gradient(90deg, rgba(80, 220, 140, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 55%),
    rgba(8, 22, 16, 0.86);
}

.slot-tab-boss-lv {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 1px;
  box-sizing: border-box;
  width: 2.2em;
  min-width: 2.2em;
  max-width: 2.2em;
  padding: 4px 0;
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: clamp(13px, 3.6vw, 17px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: #ffe500;
  white-space: nowrap;
  text-align: center;
}

.slot-tab-boss-lv.is-empty {
  color: transparent;
}

.slot-tab-boss-row.is-bridge {
  border-color: rgba(120, 200, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(80, 180, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 55%),
    rgba(8, 14, 22, 0.72);
}

.slot-tab-boss-row.is-bridge.is-current {
  border-color: rgba(120, 200, 255, 0.7);
  background:
    linear-gradient(90deg, rgba(80, 180, 255, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 55%),
    rgba(10, 18, 30, 0.88);
}

.slot-tab-boss-row.is-bridge.is-ready {
  border-color: rgba(120, 220, 255, 0.75);
}

.slot-tab-boss-claim.is-coin .slot-tab-boss-claim-amt {
  color: #ffe500;
}

.slot-tab-boss-lv-label,
.slot-tab-boss-lv-num {
  display: block;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: inherit;
}

.slot-tab-boss-row.is-ready .slot-tab-boss-lv {
  color: #7dffb2;
}

.slot-tab-boss-mid {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.slot-tab-boss-line {
  min-width: 0;
  max-width: 100%;
  font-size: clamp(12px, 3.3vw, 15px);
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-tab-boss-sep,
.slot-tab-boss-prize {
  display: inline;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  white-space: nowrap;
  vertical-align: middle;
}

.slot-tab-boss-task {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  margin: 0 2px 0 0;
  padding: 3px 8px;
  border: 1px solid rgba(255, 229, 0, 0.55);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 229, 0, 0.12), rgba(255, 229, 0, 0.03)),
    rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #e8eef6;
  font: inherit;
  font-weight: inherit;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.slot-tab-boss-row.is-current .slot-tab-boss-task {
  border-color: rgba(255, 229, 0, 0.85);
  background:
    linear-gradient(180deg, rgba(255, 229, 0, 0.18), rgba(255, 229, 0, 0.05)),
    rgba(0, 0, 0, 0.32);
}

.slot-tab-boss-row.is-ready .slot-tab-boss-task {
  border-color: rgba(80, 220, 140, 0.7);
  background:
    linear-gradient(180deg, rgba(80, 220, 140, 0.16), rgba(80, 220, 140, 0.04)),
    rgba(0, 0, 0, 0.28);
}

.slot-tab-boss-sep {
  color: rgba(232, 238, 246, 0.45);
}

.slot-tab-boss-prize {
  color: rgba(255, 229, 0, 0.92);
}

.slot-tab-boss-bar {
  position: relative;
  /* สั้นลงจากขวา — ชิดซ้ายเท่าเดิม */
  width: 68%;
  max-width: 68%;
  align-self: flex-start;
  height: 14px;
  margin-top: 1px;
  margin-right: auto;
  margin-left: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.slot-tab-boss-bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe500, #ffb400);
}

.slot-tab-boss-row.is-ready .slot-tab-boss-bar-fill {
  background: linear-gradient(90deg, #4adf8e, #9dffc4);
}

.slot-tab-boss-bar-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 1px #000;
  pointer-events: none;
}

.slot-tab-boss-tag {
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: clamp(10px, 2.8vw, 12px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: rgba(232, 238, 246, 0.72);
  white-space: nowrap;
  text-align: right;
}

.slot-tab-boss-row.is-current .slot-tab-boss-tag {
  color: #ffe500;
}

/* ช่องรับจัตุรัสมุมขวา — ต่อกันตามแถว LV ที่พร้อม */
.slot-tab-boss-claim {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  align-self: center;
  width: calc(var(--boss-row-h) - 14px);
  height: calc(var(--boss-row-h) - 14px);
  min-width: 44px;
  min-height: 44px;
  max-width: 72px;
  max-height: 72px;
  aspect-ratio: 1 / 1;
  padding: 3px;
  gap: 2px;
  border: 1px solid rgba(80, 220, 140, 0.75);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(80, 220, 140, 0.2), rgba(8, 28, 18, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.slot-tab-boss-claim-amt {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 1px 2px 0;
  color: #ffe56a;
  font-family: Orbitron, Tahoma, sans-serif;
  font-size: clamp(9px, 2.4vw, 11px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-tab-boss-claim-btn {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(180deg, #d8ff8a 0%, #3dff5a 46%, #14943a 100%);
  color: #06210c;
  font-family: Tahoma, 'Segoe UI', sans-serif;
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.slot-tab-boss-claim-btn:active {
  filter: brightness(0.92);
}

/* รับรางวัลอยู่ที่ฐาน LV แล้ว — ซ่อนบอร์ดบนตู้ */
#slotPage .slot-hunt-reward {
  display: none !important;
}

.slot-tab-boss-more {
  /* ไม่กินความสูงหน้า — กันโผล่เกิน 6 ฐาน */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.slot-tab-page-foot {
  position: absolute;
  left: 8px;
  bottom: 6px;
  margin: 0;
  padding: 0;
  font-family: Rajdhani, Orbitron, sans-serif;
  font-size: clamp(11px, 2.8vw, 14px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(232, 238, 246, 0.72);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* กรอบล่างสุด — เปิดให้ลูกศรโผล่นอกกรอบ */
#slotPage .slot-side-tabbar > .slot-side-tab[data-tab="6"] {
  position: relative;
  overflow: visible;
  z-index: 2;
}

#slotPage .slot-side-tabbar > .slot-side-tab[data-tab="6"] > .slot-side-tab-main,
#slotPage .slot-side-tabbar > .slot-side-tab[data-tab="6"] > .slot-side-tab-time {
  overflow: hidden;
}

#slotPage .slot-side-tab > .slot-side-tab-main {
  flex: 0 0 auto;
  /* ทุกฐาน — ช่องขาวจัตุรัสเท่ากัน กว้างทับกรอบดำ สูงตามไอคอน 1:1 */
  width: calc(100% + 4px);
  margin: -2px -2px 0;
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  background: #fff;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* แทบขวาบนสุด — ไอคอนอยู่หน้า เห็นเต็มในช่องขาวจัตุรัส */
#slotPage .slot-side-tabbar-right > .slot-side-tab[data-tab="1"] {
  position: relative;
  z-index: 3;
  overflow: visible;
}

#slotPage .slot-side-tabbar-right > .slot-side-tab[data-tab="1"] > .slot-side-tab-main {
  z-index: 1;
  overflow: visible;
  background-color: #fff;
  background-image: url('../assets/images/slot-tab-right-1.png?v=20261022tabr11');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

/* จุดแดงมุมขวาบนในไอคอน — อยู่ในกรอบ กันโดน overflow ตอนพับแทบตัดหาย */
#slotPage .slot-side-tab-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 8;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35em;
  height: 1.35em;
  padding: 0 0.28em;
  border: 1.5px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5a5a 0%, #d10000 55%, #9a0000 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: Orbitron, Tahoma, sans-serif;
  font-size: clamp(10px, 2.8vw, 13px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transform-origin: center center;
}

#slotPage .slot-side-tab-badge[hidden] {
  display: none !important;
}

#slotPage .slot-side-tab-badge.is-wide {
  min-width: 1.7em;
  padding: 0 0.35em;
  font-size: clamp(9px, 2.4vw, 11px);
}

#slotPage .slot-side-tab-badge.is-pop {
  animation: slotHuntBadgePop 0.42s cubic-bezier(0.22, 1.2, 0.36, 1);
}

@keyframes slotHuntBadgePop {
  0% { transform: scale(0.4); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

#slotPage .slot-side-tabbar-right > .slot-side-tab[data-tab="1"] > .slot-side-tab-time {
  position: relative;
  z-index: 2;
}

/* ส่วนล่างติดกรอบแม่ — ช่องเวลา (สูงคงที่ ไม่ถูกกินเมื่อช่องขาวสูงตามไอคอน) */
#slotPage .slot-side-tab > .slot-side-tab-time {
  flex: 0 0 var(--slot-tab-green-h, 16px);
  height: var(--slot-tab-green-h, 16px);
  max-height: var(--slot-tab-green-h, 16px);
  min-height: var(--slot-tab-green-h, 16px);
  box-sizing: border-box;
  border-top: 2px solid #000;
  background-color: transparent;
  background-image: url('../assets/images/slot-tab-time-bg.png?v=20261020tabtime1');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: clamp(6px, 1.6vw, 9px);
  font-weight: 700;
  line-height: 1;
  color: #000;
  letter-spacing: 0.02em;
  border-radius: 0 0 8px 8px;
}

/* ลูกศรแบบชี้วงล้อ — นอกกรอบล่างสุด กึ่งกลาง ชิดขอบล่าง ชี้ขึ้นหาวงล้อ
   ขยายพื้นที่กดให้ติดง่าย (อยู่นอกกรอบ + z สูง) */
#slotPage .slot-side-tab > .slot-side-tab-pointer {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: clamp(36px, 9vw, 48px);
  height: clamp(28px, 7vw, 40px);
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, 72%);
  pointer-events: auto;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

#slotPage .slot-side-tab > .slot-side-tab-pointer::before {
  content: "";
  position: absolute;
  inset: -6px -4px -8px;
  pointer-events: auto;
}

#slotPage .slot-side-tab > .slot-side-tab-pointer svg {
  display: block;
  width: clamp(14px, 3.2vw, 20px);
  height: clamp(12px, 2.6vw, 16px);
  overflow: visible;
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.33, 0.08, 0.2, 1);
}

#slotPage .slot-side-tab > .slot-side-tab-pointer polygon {
  fill: #ffe500;
  stroke: #6a4e08;
  stroke-width: 0.9;
  stroke-linejoin: round;
}

/* พับแบบวางไพ่จริง — กรอบทุกอันสูงเต็มเท่าเดิม ไม่หดยุบ
   กรอบล่างเลื่อนขึ้นซ้อนท้าย โผล่แค่ขอบล่าง (ขาวเล็ก + เขียวเต็ม) */
#slotPage .slot-side-tabbar.is-collapsed {
  bottom: auto;
  height: calc(
    var(--slot-tab-card-h, 56px)
    + (5 * var(--slot-tab-stack-step, 22px))
    + var(--slot-tab-stack-arrow-pad, 18px)
  );
  gap: 0;
}

#slotPage .slot-side-tabbar.is-collapsed > .slot-side-tab {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  flex: none;
  width: 100%;
  height: var(--slot-tab-card-h, 56px);
  min-height: var(--slot-tab-card-h, 56px);
  overflow: hidden;
}

/* กรอบบนสุดอยู่หน้าสุด — แสดงเต็ม (จังหวะเลื่อนใช้ JS FLIP ~1.5s) */
#slotPage .slot-side-tabbar.is-collapsed > .slot-side-tab[data-tab="1"] {
  z-index: 16;
  overflow: visible;
  transform: translateY(0);
}

#slotPage .slot-side-tabbar.is-collapsed > .slot-side-tab[data-tab="2"] {
  z-index: 15;
  transform: translateY(var(--slot-tab-stack-step, 22px));
}

#slotPage .slot-side-tabbar.is-collapsed > .slot-side-tab[data-tab="3"] {
  z-index: 14;
  transform: translateY(calc(2 * var(--slot-tab-stack-step, 22px)));
}

#slotPage .slot-side-tabbar.is-collapsed > .slot-side-tab[data-tab="4"] {
  z-index: 13;
  transform: translateY(calc(3 * var(--slot-tab-stack-step, 22px)));
}

#slotPage .slot-side-tabbar.is-collapsed > .slot-side-tab[data-tab="5"] {
  z-index: 12;
  transform: translateY(calc(4 * var(--slot-tab-stack-step, 22px)));
}

#slotPage .slot-side-tabbar.is-collapsed > .slot-side-tab[data-tab="6"] {
  z-index: 11;
  overflow: visible;
  transform: translateY(calc(5 * var(--slot-tab-stack-step, 22px)));
}

/* พับแล้วลูกศรชี้สลับลง — กดอีกครั้งขยายเต็ม */
#slotPage .slot-side-tabbar.is-collapsed .slot-side-tab-pointer svg {
  transform: rotate(180deg);
}

#slotPage .slot-coin-corner {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  width: calc(var(--slot-under-pair-width) * var(--slot-yellow-pack-scale) / 2 * 1.12);
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  pointer-events: none;
  user-select: none;
  transform: translateY(-6.35%);
}

#slotPage .slot-coin-corner .slot-coin-readout {
  left: 8%;
  width: 84%;
  top: 29%;
  bottom: auto;
  height: 40%;
  overflow: clip;
  clip-path: inset(0);
  container-type: size;
}

#slotPage .slot-coin-readout .gold-credit-unit {
  display: block;
  align-self: center;
  flex: 0 0 auto;
  margin-left: 0.06em;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 86cqh;
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: #f4f7fb;
  background: linear-gradient(180deg, #ffffff 0%, #e7edf4 42%, #9aa6b5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0.05em 0 rgba(18, 22, 28, 0.65));
  pointer-events: none;
  user-select: none;
}

#slotPage .slot-coin-readout .coin-unit {
  height: 100%;
  width: auto;
  margin-left: 0.03em;
  background: none;
  filter: none;
  -webkit-text-fill-color: unset;
}

#slotPage .slot-coin-readout .coin-letter {
  margin-left: 0.01em;
}

#slotPage .slot-credit-readout .gold-digit-row,
#slotPage .slot-coin-readout .gold-digit-row {
  height: 34%;
  max-width: 68%;
  gap: 0.02em;
}

#slotPage .slot-credit-readout .gold-digit-row {
  height: 100%;
  max-width: none;
  transform-origin: center center;
}

#slotPage .slot-coin-readout .gold-digit-row {
  height: 100%;
  max-width: none;
  transform-origin: center center;
}

#slotPage .slot-coin-readout .coin-digit-ref {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  pointer-events: none;
}

#slotPage .slot-coin-readout .gold-digit-comma {
  height: 100%;
  align-self: center;
}

#slotPage .slot-coin-readout .coin-digit-slot {
  display: block;
  height: 100%;
  width: auto;
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
}

#slotPage .slot-coin-readout .coin-digit-slot .gold-digit {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

#slotPage .is-pump,
.slot-win-row-amount .is-pump {
  align-items: stretch;
}

#slotPage .pump-digit.is-idle,
.slot-win-row-amount .pump-digit.is-idle,
#slotPage .gold-digit-comma.is-idle,
.slot-win-row-amount .gold-digit-comma.is-idle,
#slotPage .gold-credit-unit.is-idle,
.slot-win-row-amount .gold-credit-unit.is-idle {
  visibility: hidden;
}

#slotPage .pump-digit,
.slot-win-row-amount .pump-digit {
  display: block;
  height: 100%;
  flex: 0 0 auto;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1.03 / 1;
}

#slotPage .slot-coin-readout .pump-digit {
  aspect-ratio: 354 / 362;
}

#slotPage .pump-strip,
.slot-win-row-amount .pump-strip {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  display: block;
}

#slotPage .pump-cell,
.slot-win-row-amount .pump-cell {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

#slotPage .slot-coin-readout .pump-cell .gold-digit,
.slot-win-row-amount .pump-cell .gold-digit,
.slot-win-row-amount.is-win-show-float .pump-cell .gold-digit {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  aspect-ratio: auto;
  transform: translateX(calc(var(--ink, -50) * 1%));
}

#slotPage .slot-credit-readout .gold-credit-unit {
  display: block;
  align-self: center;
  flex: 0 0 auto;
  margin-left: 0.08em;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 86cqh;
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: #ffe7a3;
  background: linear-gradient(180deg, #fff6d2 0%, #f0c14b 46%, #a87412 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0.05em 0 rgba(48, 28, 4, 0.7));
  pointer-events: none;
  user-select: none;
}

#slotPage .slot-credit-readout .gold-credit-unit.is-word {
  font-size: 40cqh;
  letter-spacing: 0;
  margin-left: 0.16em;
}

#slotPage .slot-credit-readout .gold-digit-row.is-credit-lock {
  position: relative;
  display: block;
  overflow: visible;
  gap: 0;
  max-width: none;
  line-height: 0;
}

#slotPage .slot-credit-readout .is-credit-lock > .credit-digit-slot,
#slotPage .slot-credit-readout .is-credit-lock > .pump-digit,
#slotPage .slot-credit-readout .is-credit-lock > .gold-digit-comma,
#slotPage .slot-credit-readout .is-credit-lock > .credit-letter-slot {
  position: absolute;
  margin: 0;
  top: 0;
}

#slotPage .slot-credit-readout .is-credit-lock > .pump-digit {
  aspect-ratio: auto;
  overflow: clip;
  clip-path: inset(0);
}

#slotPage .slot-credit-readout .credit-digit-slot,
#slotPage .slot-credit-readout .is-credit-lock .pump-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

#slotPage .slot-credit-readout .credit-digit-slot .gold-digit,
#slotPage .slot-credit-readout .is-credit-lock .pump-cell .gold-digit {
  position: relative;
  top: auto;
  left: auto;
  height: 100%;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  transform: none;
}

#slotPage .slot-credit-readout .is-credit-lock .pump-cell {
  position: relative;
  height: 100%;
  overflow: hidden;
}

#slotPage .slot-credit-readout .credit-letter-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

#slotPage .slot-credit-readout .credit-letter-slot .gold-credit-letter {
  position: relative;
  height: 100%;
  width: auto;
  margin: 0;
}

#slotPage .slot-credit-readout .credit-digit-slot.is-idle,
#slotPage .slot-coin-readout .credit-digit-slot.is-idle {
  visibility: hidden;
}

#slotPage .slot-coin-readout .gold-digit-row.is-coin-lock {
  position: relative;
  display: block;
  height: auto;
  overflow: visible;
  gap: 0;
  max-width: none;
  line-height: 0;
}

#slotPage .slot-coin-readout .is-coin-lock > .credit-digit-slot,
#slotPage .slot-coin-readout .is-coin-lock > .pump-digit,
#slotPage .slot-coin-readout .is-coin-lock > .gold-digit-comma,
#slotPage .slot-coin-readout .is-coin-lock > .credit-letter-slot {
  position: absolute;
  margin: 0;
  top: 0;
}

#slotPage .slot-coin-readout .is-coin-lock > .pump-digit {
  aspect-ratio: auto;
  overflow: clip;
  clip-path: inset(0);
}

#slotPage .slot-coin-readout .is-coin-lock .credit-digit-slot,
#slotPage .slot-coin-readout .is-coin-lock .pump-cell,
#slotPage .slot-coin-readout .is-coin-lock .credit-letter-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

#slotPage .slot-coin-readout .is-coin-lock .pump-cell {
  position: relative;
  height: 100%;
  overflow: hidden;
}

#slotPage .slot-coin-readout .is-coin-lock .credit-digit-slot .gold-digit,
#slotPage .slot-coin-readout .is-coin-lock .pump-cell .gold-digit,
#slotPage .slot-coin-readout .is-coin-lock .credit-letter-slot .gold-digit {
  position: relative;
  top: auto;
  left: auto;
  height: 100%;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  margin: 0;
  transform: none;
  background: none;
  filter: none;
  -webkit-text-fill-color: unset;
  object-fit: contain;
}

#slotPage .slot-coin-readout .is-coin-lock > .gold-digit-comma {
  position: absolute;
  top: 0;
  object-fit: contain;
  transform: none;
  background: none;
  filter: none;
}

#slotPage .slot-credit-readout img.gold-credit-letter {
  height: 100%;
  width: auto;
  margin-left: 0.04em;
  background: none;
  filter: none;
  -webkit-text-fill-color: unset;
  -webkit-background-clip: unset;
  background-clip: unset;
  object-fit: contain;
  align-self: center;
}

#slotPage .slot-credit-readout .gold-digit,
#slotPage .slot-coin-readout .gold-digit {
  height: 100%;
  width: auto;
}

/* ชั้นล่าง: แผ่นรอง — ย่อให้อยู่ในเงาโลหะ ไม่โผล่พ้นขอบกรอบ */
#slotPage .slot-metal-board {
  position: absolute;
  left: 9.5%;
  top: 15.2%;
  width: 81%;
  height: 68.5%;
  max-width: none !important;
  display: block !important;
  z-index: 1;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

#slotPage .slot-metal-grid {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  z-index: 5;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

#slotPage .slot-win-row-amount,
.slot-win-row-amount.is-win-show-float {
  position: absolute;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  border-radius: 12px;
}

#slotPage .slot-win-row-amount::before,
.slot-win-row-amount.is-win-show-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(6, 5, 8, 0.82);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  pointer-events: none;
}

.slot-win-row-amount.is-win-show-float {
  position: fixed;
  z-index: 400;
}

#slotPage .slot-win-row-amount[hidden],
.slot-win-row-amount.is-win-show-float[hidden] {
  display: none !important;
}

#slotPage .slot-win-row-amount .gold-digit-row,
.slot-win-row-amount.is-win-show-float .gold-digit-row {
  position: relative;
  z-index: 1;
  height: 72%;
  max-width: none;
  width: max-content;
  flex: 0 0 auto;
  gap: 0.03em;
  justify-content: center;
  transform-origin: center center;
}

#slotPage .slot-win-row-amount .gold-digit-row.is-credit-flex,
.slot-win-row-amount.is-win-show-float .gold-digit-row.is-credit-flex {
  height: auto;
  overflow: visible;
}

#slotPage .slot-win-row-amount .gold-digit-comma,
.slot-win-row-amount.is-win-show-float .gold-digit-comma {
  aspect-ratio: 96 / 139;
  object-fit: contain;
}

#slotPage .slot-win-row-amount .credit-digit-slot,
.slot-win-row-amount.is-win-show-float .credit-digit-slot,
#slotPage .slot-win-row-amount .credit-letter-slot,
.slot-win-row-amount.is-win-show-float .credit-letter-slot {
  flex: 0 0 auto;
}

#slotPage .slot-win-row-amount .gold-digit,
.slot-win-row-amount.is-win-show-float .gold-digit {
  height: 100%;
  width: auto;
  aspect-ratio: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

/* ต้องมี aspect-ratio — ถ้า auto ความกว้างช่องเลขจะเป็น 0 (strip เป็น absolute) */
#slotPage .slot-win-row-amount .pump-digit,
.slot-win-row-amount.is-win-show-float .pump-digit {
  aspect-ratio: 1.03 / 1;
}

/* อักษรหน่วยรางวัล — ฟอนต์ทองตัวพิมพ์ใหญ่ (gold-letter-*) */
#slotPage .slot-win-row-amount img.gold-win-letter,
.slot-win-row-amount.is-win-show-float img.gold-win-letter {
  display: block;
  align-self: center;
  flex: 0 0 auto;
  height: 100%;
  width: auto;
  margin-left: 0.04em;
  object-fit: contain;
  background: none;
  -webkit-text-fill-color: unset;
  filter: drop-shadow(0 0.05em 0 rgba(48, 28, 4, 0.55));
  pointer-events: none;
  user-select: none;
}

#slotPage .slot-win-row-amount .gold-credit-unit,
.slot-win-row-amount.is-win-show-float .gold-credit-unit {
  display: flex;
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  margin-left: 0;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: #ffe7a3;
  background: linear-gradient(180deg, #fff6d2 0%, #f0c14b 46%, #a87412 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0.05em 0 rgba(48, 28, 4, 0.7));
  pointer-events: none;
  user-select: none;
}

/* หน่วย K/M/… เป็นไฟล์ทับทิม — อย่าใช้ text-clip */
#slotPage .slot-win-row-amount img.gold-credit-unit,
.slot-win-row-amount.is-win-show-float img.gold-credit-unit,
#slotPage .slot-win-row-amount img.gold-credit-letter,
.slot-win-row-amount.is-win-show-float img.gold-credit-letter {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: unset;
  color: inherit;
  filter: none;
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* วงล้อ 8 ช่อง — กึ่งกลางด้านหลังฐาน% / อยู่ชั้นในของวง 10 */
#slotPage .slot-wheel-base {
  position: absolute;
  left: 50%;
  /* จุดบนเดิม + ครึ่งความกว้างตอนวัด → ศูนย์กลางคงที่เมื่อขยาย */
  top: calc(
    var(--slot-wheel-top) * var(--slot-yellow-w) * 16 / (var(--slot-yellow-h) * 9)
    - (var(--slot-yellow-w) * 16 / (var(--slot-yellow-h) * 9) - 1) * 50%
    + (var(--slot-wheel-lock-w) * 0.5cqw)
  );
  bottom: auto;
  transform: translate(-50%, -50%);
  width: var(--slot-wheel-width);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  line-height: 0;
}

#slotPage .slot-wheel-svg {
  display: block;
  width: 100%;
  height: 100%;
}

#slotPage .slot-wheel-pointer {
  fill: #ffe500;
  stroke: #6a4e08;
  stroke-width: 0.8;
}

#slotPage .slot-wheel-svg text {
  font-size: 12.8px;
}

#slotPage .slot-wheel-svg text.is-picked {
  fill: #ffe56a;
  font-size: 14.4px;
  font-weight: 900;
}

#slotPage .slot-wheel-svg text.is-long {
  font-size: 9px;
}

#slotPage .slot-wheel-svg text.is-long.is-picked {
  font-size: 10.5px;
}

#slotPage .slot-wheel-8-svg text.is-picked {
  fill: #ffe56a;
  font-size: 11px;
  font-weight: 900;
}

/* วงล้อ 10 ช่อง — ศูนย์เดียวกับวง 8 ขอบพอดีกรอบโลหะ วาดก่อนจึงอยู่หลัง */
#slotPage .slot-wheel-8-base {
  position: absolute;
  left: 50%;
  top: calc(
    var(--slot-wheel-top) * var(--slot-yellow-w) * 16 / (var(--slot-yellow-h) * 9)
    - (var(--slot-yellow-w) * 16 / (var(--slot-yellow-h) * 9) - 1) * 50%
    + (var(--slot-wheel-lock-w) * 0.5cqw)
  );
  bottom: auto;
  transform: translate(-50%, -50%);
  width: var(--slot-wheel-8-width);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  line-height: 0;
}

#slotPage .slot-wheel-8-svg {
  display: block;
  width: 100%;
  height: 100%;
}

#slotPage .slot-art-guide .slot-machine-overlay,
#slotPage.slot-page-themed .slot-art-guide .slot-machine-overlay {
  left: 10.03% !important;
  top: 16.18% !important;
  width: 79.94% !important;
  height: 66.64% !important;
  z-index: 2;
  pointer-events: none;
}

#slotPage .slot-art-guide .reels-grid {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  column-gap: 0;
}

#slotPage .slot-art-guide .reel-col {
  position: absolute;
  top: 0;
  height: 100%;
  padding: 0;
  container-type: size;
  overflow: hidden;
  clip-path: inset(0);
}

#slotPage .slot-art-guide #reel-col-0 { left: 0%; width: 22.92%; }
#slotPage .slot-art-guide #reel-col-1 { left: 26.47%; width: 21.89%; }
#slotPage .slot-art-guide #reel-col-2 { left: 51.90%; width: 21.71%; }
#slotPage .slot-art-guide #reel-col-3 { left: 77.25%; width: 22.75%; }

#slotPage .slot-art-guide .reel-col .reel-strip span::before,
#slotPage .slot-art-guide .reel-col .reel-strip span::after {
  display: none !important;
}

/* จอย — ชิดใต้ฐานไม้ กว้างเท่าฐานนั้น กรอบน้ำเงินพอดีชิ้นงาน */
#slotPage .slot-controller {
  position: absolute;
  left: var(--slot-under-pair-left);
  width: var(--slot-under-pair-width);
  height: auto;
  top: calc(
    50%
    + ((var(--slot-metal-vis-bottom) - 50%) * var(--slot-metal-h) / var(--slot-yellow-h))
    + 14.2%
  );
  z-index: 3;
  box-sizing: content-box;
  border: 0;
  line-height: 0;
  pointer-events: none;
  user-select: none;
  transform-origin: 50% 58%;
  animation: slot-controller-glide 3.6s cubic-bezier(0.45, 0.02, 0.55, 0.98) infinite;
}

@keyframes slot-controller-glide {
  0%, 100% {
    transform: translateY(0) scale(1, 1);
  }
  42% {
    transform: translateY(1.8%) scale(1.016, 0.984);
  }
  70% {
    transform: translateY(-1.15%) scale(0.992, 1.012);
  }
}

@media (prefers-reduced-motion: reduce) {
  #slotPage .slot-controller {
    animation: none;
  }
}

#slotPage .slot-controller-art {
  display: block;
  width: 100%;
  height: auto;
}

/* ลูกแก้วดำ — วงที่มองเห็นพอดีจุดดำกลางจอย (ศูนย์ 764,500 เส้นผ่านศูนย์กลาง 230.75 ในภาพ 1536×1024) */
#slotPage .slot-controller-orb {
  position: absolute;
  left: 49.74%;
  top: 48.83%;
  width: 17.89%;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
}

#slotPage .slot-controller-orb-tl { left: 21.35%; top: 26.95%; width: 15.87%; }
#slotPage .slot-controller-orb-tr { left: 78.65%; top: 26.95%; width: 15.94%; }
#slotPage .slot-controller-orb-bl { left: 31.51%; top: 47.85%; width: 10.35%; }
#slotPage .slot-controller-orb-br { left: 68.49%; top: 47.85%; width: 10.37%; }

#slotPage .slot-controller-dollar {
  position: absolute;
  left: 50%;
  top: 48.55%;
  width: 11.55%;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 2;
}

#slotPage .slot-controller-orb-mid,
#slotPage .slot-controller-orb-tl,
#slotPage .slot-controller-orb-tr,
#slotPage .slot-controller-orb-bl,
#slotPage .slot-controller-orb-br,
#slotPage .slot-controller-dollar,
#slotPage .slot-controller-auto,
#slotPage .slot-controller-maxbet,
#slotPage .slot-controller-plate,
#slotPage .slot-controller-plus {
  transition: transform 0.16s cubic-bezier(0.2, 0.85, 0.3, 1);
}

#slotPage .slot-controller.is-sunk > .slot-controller-orb-mid,
#slotPage .slot-controller.is-sunk > .slot-controller-dollar,
#slotPage .slot-controller.is-sunk-tl > .slot-controller-orb-tl,
#slotPage .slot-controller.is-sunk-tr > .slot-controller-orb-tr,
#slotPage .slot-controller.is-sunk-bl > .slot-controller-orb-bl,
#slotPage .slot-controller.is-sunk-br > .slot-controller-orb-br,
#slotPage .slot-controller.is-sunk-bl > .slot-controller-plate,
#slotPage .slot-controller.is-sunk-br > .slot-controller-plus {
  transform: translate(-50%, -50%) scale(0.94);
  transition-duration: 0.06s;
}

#slotPage .slot-controller.is-sunk-tl > .slot-controller-auto {
  transform: translate(-50%, -50%) rotate(-12deg) scale(0.94);
  transition-duration: 0.06s;
}

#slotPage .slot-controller.is-auto-on > .slot-controller-auto {
  filter: drop-shadow(0 0 6px rgba(255, 210, 70, 0.95));
}

#slotPage .slot-controller.is-mult-locked > .slot-plate-btn,
#slotPage .slot-controller.is-mult-locked > .slot-plus-btn,
#slotPage .slot-controller.is-mult-locked > .slot-maxbet-btn {
  pointer-events: none;
}

#slotPage .slot-controller.is-sunk-tr > .slot-controller-maxbet {
  transform: translate(-50%, -50%) rotate(14deg) scale(0.94);
  transition-duration: 0.06s;
}

#slotPage .slot-pad-btn {
  position: absolute;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 4;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#slotPage .slot-dollar-btn { left: 49.74%; top: 48.83%; width: 15.02%; }
#slotPage .slot-auto-btn { left: 21.35%; top: 26.95%; width: 13.32%; }
#slotPage .slot-maxbet-btn { left: 78.65%; top: 26.95%; width: 13.38%; }
#slotPage .slot-plate-btn { left: 31.51%; top: 47.85%; width: 8.69%; }
#slotPage .slot-plus-btn { left: 68.49%; top: 47.85%; width: 8.71%; }

/* AUTO ทอง — กลางลูกแก้วซ้ายบน เอียงตามเขาจอย */
#slotPage .slot-controller-auto {
  position: absolute;
  left: 21.31%;
  top: 26.95%;
  width: 10.88%;
  height: auto;
  transform: translate(-50%, -50%) rotate(-12deg);
  z-index: 2;
}

/* MAX BET ทอง — กลางลูกแก้วขวาบน เอียงตามเขาขวา */
#slotPage .slot-controller-maxbet {
  position: absolute;
  left: 78.69%;
  top: 26.78%;
  width: 10.54%;
  height: auto;
  transform: translate(-50%, -50%) rotate(14deg);
  z-index: 2;
}

/* แถบทอง — กลางลูกแก้วซ้ายล่าง */
#slotPage .slot-controller-plate {
  position: absolute;
  left: 31.51%;
  top: 48.03%;
  width: 7.1%;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* เครื่องหมายบวกทอง — กลางลูกแก้วขวาล่าง */
#slotPage .slot-controller-plus {
  position: absolute;
  left: 68.64%;
  top: 47.76%;
  width: 7.1%;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* ซ่อนรางวัลบิน/HUD ล่าง — เหลือไอคอนใน 12 ช่องกริด */
#slotPage .slot-win-podium,
#slotPage .slot-win-merge-layer,
#slotPage .slot-win-count-layer,
#slotPage .slot-win-amount-anchor,
#slotPage .slot-win-amount,
#slotPage .slot-win-fly-ghost,
#slotPage .slot-win-merge-chip,
#slotPage .slot-win-icon,
#slotPage .slot-deck-hud,
#slotPage .slot-deck-panel,
#slotPage .slot-deck-win,
.slot-win-fly-ghost,
.slot-win-model-fly-still {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* แผง Credit / ช่องว่าง 3 ช่องบนปุ่ม SPIN */
.slot-deck-hud {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.slot-deck-panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  overflow: hidden;
  gap: 0.1em;
  box-sizing: border-box;
  padding: 0 3%;
}

.slot-deck-credit {
  left: var(--slot-deck-credit-left);
  top: var(--slot-deck-credit-top);
  width: var(--slot-deck-credit-width);
  height: var(--slot-deck-credit-height);
}

.slot-deck-bet {
  left: var(--slot-deck-bet-left);
  top: var(--slot-deck-bet-top);
  width: var(--slot-deck-bet-width);
  height: var(--slot-deck-bet-height);
}

.slot-deck-win {
  left: var(--slot-deck-win-left);
  top: var(--slot-deck-win-top);
  width: var(--slot-deck-win-width);
  height: var(--slot-deck-win-height);
  padding: 0 0 0 1.5%;
}

.slot-deck-label {
  font-family: 'Rajdhani', 'Orbitron', sans-serif;
  font-size: clamp(6px, 1.85cqw, 10px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6ecfff;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  text-indent: 0.1em;
  text-shadow:
    0 0 5px rgba(80, 200, 255, 0.75),
    0 0 10px rgba(0, 180, 255, 0.35);
}

.slot-deck-label-wide {
  font-size: clamp(6px, 1.85cqw, 10px);
  letter-spacing: 0.06em;
  text-indent: 0.06em;
}

.slot-deck-value {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(8px, 3.2cqw, 14px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: #ffbf2a;
  width: 100%;
  text-align: center;
  text-shadow:
    0 0 3px rgba(255, 190, 40, 0.32),
    0 1px 0 rgba(80, 50, 0, 0.45);
}

/* ข้อความ TOTAL BET — ขึ้น 5px */
.slot-deck-bet .slot-deck-label {
  transform: translateY(-10px);
}

/* ข้อความ CREDIT / WIN — ขึ้นเล็กน้อย */
.slot-deck-credit .slot-deck-label,
.slot-deck-win .slot-deck-label {
  transform: translateY(-0.48em);
}

/* เลข CREDIT — ลงเล็กน้อย */
.slot-deck-credit .slot-deck-value {
  margin-top: 0.18em;
  transform: translateY(0.2em);
}

/* เลข WIN — ลงเล็กน้อยให้ตรงช่องพื้นหลัง */
.slot-deck-win .slot-deck-value {
  margin-top: 0.14em;
  transform: translateY(0.12em);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.slot-deck-win .slot-deck-value.is-win-flash {
  color: #4dff88;
  text-shadow:
    0 0 5px rgba(80, 255, 140, 1),
    0 0 12px rgba(40, 255, 120, 0.78),
    0 0 22px rgba(0, 220, 90, 0.42);
  animation: slotDeckWinGlowBlink 0.72s ease-in-out 3;
}

.slot-deck-win .slot-deck-value.is-lose-flash {
  color: #ff4d5c;
  text-shadow:
    0 0 5px rgba(255, 80, 90, 1),
    0 0 12px rgba(255, 40, 60, 0.78),
    0 0 22px rgba(220, 0, 40, 0.42);
  animation: slotDeckWinGlowBlink 0.72s ease-in-out 3;
}

@keyframes slotDeckWinGlowBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.48; }
}

/* ปุ่ม SPIN — overlay ทับตำแหน่งเดิม กดแล้วยุบเข้ากลางเบาๆ */
.slot-spin-hit {
  position: absolute;
  left: var(--slot-spin-hit-left);
  top: var(--slot-spin-hit-top);
  width: var(--slot-spin-hit-width);
  height: var(--slot-spin-hit-height);
  z-index: 7;
  overflow: visible;
}

.slot-spin-socket {
  display: none;
  position: absolute;
  left: var(--slot-spin-socket-left);
  top: var(--slot-spin-socket-top);
  width: var(--slot-spin-socket-width);
  height: var(--slot-spin-socket-height);
  background: url('../assets/images/robit-slot-spin-socket.png?v=20260823modelfly') center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 0;
}

.slot-spin-btn-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  pointer-events: none;
  user-select: none;
  transform-origin: center center;
  transition: transform 0.08s ease-out, filter 0.08s ease-out;
}

.slot-spin-hit.is-pressed .slot-spin-btn-img {
  transform: scale(0.975);
  filter: brightness(0.94);
}

.slot-spin-btn {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.slot-spin-btn:disabled {
  cursor: not-allowed;
}

.slot-spin-hit.is-spinning .slot-spin-btn {
  cursor: wait;
}

.slot-machine {
  background: linear-gradient(135deg, #1a0a0a 0%, #0a0a0a 100%);
  border: 3px solid #d4af37;
  border-radius: 20px;
  padding: 20px;
  margin: 20px auto;
  max-width: 500px;
  width: 95%;
  position: relative;
}

.slot-machine-overlay {
  position: absolute;
  left: var(--slot-reels-left);
  top: var(--slot-reels-top);
  width: var(--slot-reels-width);
  height: var(--slot-reels-height);
  z-index: 2;
  margin: 0;
  padding: 0;
  max-width: none;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.payline-indicator {
  display: none !important;
}

/* รางวัลชนะ — กรอบหกเหลี่ยม + รางวัลหลุดออกจากกรอบ */
.slot-win-podium {
  position: absolute;
  left: 50%;
  top: var(--slot-win-roof-top);
  transform: translateX(-50%);
  width: min(70%, 300px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  pointer-events: none;
  z-index: 30;
}

.slot-win-hex-stage {
  position: relative;
  width: var(--slot-win-hex-size);
  height: var(--slot-win-hex-size);
  flex-shrink: 0;
  overflow: visible;
  /* กรอบ+รางวัลโชว์พร้อมกันทั้งก้อน — ไม่โชว์กรอบเปล่าก่อน */
  opacity: 0;
  visibility: hidden;
}

.slot-win-hex-stage:has(.slot-win-fx.show) {
  opacity: 1;
  visibility: visible;
}

.slot-win-hex-stage.is-merge-await {
  opacity: 0.72;
  visibility: visible;
}

/* กรอบหกเหลี่ยม — ชั้นหลัง (โชว์พร้อมรางวัล ไม่มีดีเลย์แยก) */
.slot-win-hex {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.72) 0%, rgba(124, 77, 255, 0.55) 48%, rgba(255, 217, 120, 0.42) 100%);
  filter:
    drop-shadow(0 0 8px rgba(0, 229, 255, 0.45))
    drop-shadow(0 0 18px rgba(124, 77, 255, 0.22));
  opacity: 1;
  visibility: visible;
  transform: none;
}

.slot-win-hex::before {
  content: '';
  position: absolute;
  inset: 2.5px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background:
    radial-gradient(circle at 28% 22%, rgba(124, 77, 255, 0.28) 0%, transparent 52%),
    radial-gradient(circle at 74% 78%, rgba(0, 229, 255, 0.18) 0%, transparent 46%),
    rgba(4, 8, 18, 0.97);
  z-index: 0;
  pointer-events: none;
}

.slot-win-fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  pointer-events: none;
  overflow: visible;
  opacity: 1;
  visibility: visible;
}

.slot-win-fx.show {
  /* visibility ของทั้งก้อนอยู่ที่ .slot-win-hex-stage */
}

.slot-win-prize {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* กล่องรางวัลขนาดคงที่ = กรอบ (scale เท่านั้นที่เปลี่ยน 30%→110%) */
.slot-win-icon {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  font-size: calc(var(--slot-win-hex-size) * 0.42);
  line-height: 1;
  background: none;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: flat;
  backface-visibility: visible;
  -webkit-font-smoothing: antialiased;
  transform-origin: center center;
  transform: scale(var(--slot-win-prize-scale-start));
}

/* จุดยึดเลขเก่า — เก็บไว้แต่ไม่ใช้ */
.slot-win-amount-anchor {
  position: absolute;
  left: var(--slot-win-amount-left);
  top: var(--slot-win-amount-top);
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: center;
}

/* เลขใต้รางวัลเลิกใช้ — แสดงจำนวนที่ช่อง WIN เท่านั้น */
.slot-win-count-layer {
  display: none !important;
}

.slot-win-amount,
.slot-win-count-chip {
  position: relative;
  z-index: 8;
  display: none;
  flex-shrink: 0;
  margin: 0;
  color: #ffe566;
  font-size: clamp(22px, 5.5cqw, 40px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.5px;
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.95),
    0 3px 0 #000,
    0 0 18px rgba(255, 215, 0, 0.85);
  pointer-events: none;
  transform: none;
  animation: none;
  filter: none;
  white-space: nowrap;
  opacity: 1;
}

.slot-win-count-chip.is-top-stack {
  font-size: clamp(30px, 6.5vw, 52px);
}

.slot-win-amount.is-show,
.slot-win-count-chip.is-show {
  display: block !important;
  visibility: visible !important;
}

/* เลขรางวัลเต็ม + กระพริบช้า */
.slot-win-count-chip.is-win-amount-blink {
  animation: slotWinAmountBlink 1.85s ease-in-out infinite !important;
}

@keyframes slotWinAmountBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.38; }
}

/* emoji / ไอคอน: มี perspective เพื่อหมุนโผล่จากกรอบ */
.slot-win-icon.is-emoji-prize,
.slot-win-icon.is-prize-pop:not(.is-model-3d) {
  perspective: 900px;
  transform-style: preserve-3d;
}

/* เล็ก 30% → ใหญ่ล้นนอก 10% (scale 1.1) — เท่ากันทุกรางวัล */
.slot-win-icon.is-prize-pop {
  animation: slotWinPrizeEmerge 1.35s cubic-bezier(0.22, 0.82, 0.28, 1) forwards;
  filter: drop-shadow(0 0 12px rgba(255, 200, 80, 0.55));
}

.slot-win-icon.is-emoji-prize.is-prize-pop .slot-win-emoji-spin {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  will-change: transform;
  animation: slotWinPrizeSpinOut 1.35s cubic-bezier(0.22, 0.82, 0.28, 1) forwards;
}

.slot-win-icon.is-model-3d {
  width: 100%;
  height: 100%;
}

.slot-win-icon.is-model-3d.is-prize-pop {
  animation: slotWinPrizeEmerge 1.35s cubic-bezier(0.22, 0.82, 0.28, 1) forwards;
  filter: drop-shadow(0 0 14px rgba(255, 80, 60, 0.45));
}

.slot-win-icon.is-prize-pop:not(.is-model-3d):not(.is-emoji-prize) > img,
.slot-win-icon.is-prize-pop:not(.is-model-3d):not(.is-emoji-prize) .game-icon-coin,
.slot-win-icon.is-prize-pop:not(.is-model-3d):not(.is-emoji-prize) .game-icon-grenade,
.slot-win-icon.is-prize-pop:not(.is-model-3d):not(.is-emoji-prize) .game-icon-shield,
.slot-win-icon.is-prize-pop:not(.is-model-3d):not(.is-emoji-prize) .game-icon-starship,
.slot-win-icon.is-prize-pop:not(.is-model-3d):not(.is-emoji-prize) .game-icon-reaper,
.slot-win-icon.is-prize-pop:not(.is-model-3d):not(.is-emoji-prize) .game-icon-bust,
.slot-win-icon.is-prize-pop:not(.is-model-3d):not(.is-emoji-prize) .game-icon-crate,
.slot-win-icon.is-prize-pop:not(.is-model-3d):not(.is-emoji-prize) .game-icon-diamond,
.slot-win-icon.is-prize-pop:not(.is-model-3d):not(.is-emoji-prize) .game-icon-star,
.slot-win-icon.is-prize-pop:not(.is-model-3d):not(.is-emoji-prize) .game-icon-key {
  transform-origin: center center;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  will-change: transform;
  animation: slotWinPrizeSpinOut 1.35s cubic-bezier(0.22, 0.82, 0.28, 1) forwards;
}

.slot-win-icon.is-soft-sun,
.slot-win-icon.is-soft-sun.is-prize-pop,
.slot-win-icon.is-model-3d.is-soft-sun.is-prize-pop,
.slot-win-icon.is-model-3d.is-soft-sun.is-prize-pop.is-prize-pulse {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.slot-win-icon.is-prize-pop.is-prize-pulse {
  animation: slotWinPulse 1.1s ease-in-out infinite;
}

.slot-win-icon.is-emoji-prize.is-prize-pop.is-prize-pulse .slot-win-emoji-spin {
  animation: slotWinEmojiPulseY 1.1s ease-in-out infinite;
}

.slot-win-icon.is-model-3d.is-prize-pop.is-prize-pulse {
  animation: slotWinPulse3d 1.1s ease-in-out infinite;
}

.slot-win-icon.is-prize-pop.is-prize-pulse:not(.is-model-3d):not(.is-emoji-prize) > img,
.slot-win-icon.is-prize-pop.is-prize-pulse:not(.is-model-3d):not(.is-emoji-prize) .game-icon-coin,
.slot-win-icon.is-prize-pop.is-prize-pulse:not(.is-model-3d):not(.is-emoji-prize) .game-icon-grenade,
.slot-win-icon.is-prize-pop.is-prize-pulse:not(.is-model-3d):not(.is-emoji-prize) .game-icon-shield,
.slot-win-icon.is-prize-pop.is-prize-pulse:not(.is-model-3d):not(.is-emoji-prize) .game-icon-starship,
.slot-win-icon.is-prize-pop.is-prize-pulse:not(.is-model-3d):not(.is-emoji-prize) .game-icon-reaper,
.slot-win-icon.is-prize-pop.is-prize-pulse:not(.is-model-3d):not(.is-emoji-prize) .game-icon-bust,
.slot-win-icon.is-prize-pop.is-prize-pulse:not(.is-model-3d):not(.is-emoji-prize) .game-icon-crate,
.slot-win-icon.is-prize-pop.is-prize-pulse:not(.is-model-3d):not(.is-emoji-prize) .game-icon-diamond,
.slot-win-icon.is-prize-pop.is-prize-pulse:not(.is-model-3d):not(.is-emoji-prize) .game-icon-star,
.slot-win-icon.is-prize-pop.is-prize-pulse:not(.is-model-3d):not(.is-emoji-prize) .game-icon-key {
  animation: slotWinIconIdleSpin 2.8s linear infinite;
}

.slot-win-icon .game-icon-coin,
.slot-win-icon .game-icon-grenade,
.slot-win-icon .game-icon-shield,
.slot-win-icon .game-icon-starship,
.slot-win-icon .game-icon-reaper,
.slot-win-icon .game-icon-bust,
.slot-win-icon .game-icon-crate,
.slot-win-icon .game-icon-diamond,
.slot-win-icon .game-icon-star,
.slot-win-icon .game-icon-key,
.slot-win-icon .slot-win-emoji-spin,
#slotWinIcon .game-icon-coin,
#slotWinIcon .game-icon-grenade,
#slotWinIcon .game-icon-shield,
#slotWinIcon .game-icon-starship,
#slotWinIcon .game-icon-reaper,
#slotWinIcon .game-icon-bust,
#slotWinIcon .game-icon-crate,
#slotWinIcon .game-icon-diamond,
#slotWinIcon .game-icon-star,
#slotWinIcon .game-icon-key {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  display: block;
}

.slot-win-icon.is-prize-pop .game-icon-coin,
.slot-win-icon.is-prize-pop .game-icon-grenade,
.slot-win-icon.is-prize-pop .game-icon-shield,
.slot-win-icon.is-prize-pop .game-icon-starship,
.slot-win-icon.is-prize-pop .game-icon-reaper,
.slot-win-icon.is-prize-pop .game-icon-bust,
.slot-win-icon.is-prize-pop .game-icon-crate,
.slot-win-icon.is-prize-pop .game-icon-diamond,
.slot-win-icon.is-prize-pop .game-icon-star,
.slot-win-icon.is-prize-pop .game-icon-key {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  backface-visibility: visible;
}

.slot-win-icon .game-icon-model,
#slotWinIcon .game-icon-model,
.slot-win-icon .game-icon-model-canvas,
#slotWinIcon .game-icon-model-canvas {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-color: transparent;
  --progress-bar-height: 0px;
  pointer-events: none;
  outline: none;
}

.slot-win-icon.is-model-3d {
  width: 100%;
  height: 100%;
}

/* ให้รูปพรีวิวโชว์ชัดตอนโมเดลยังโหลด — อยู่ในกรอบหกเหลี่ยมขนาดคงที่ */
.slot-win-icon .game-icon-model.poster-showed,
#slotWinIcon .game-icon-model {
  min-width: 0;
  min-height: 0;
}

.slot-win-prize.is-fly-to-bag {
  animation: none !important;
  will-change: auto;
  opacity: 0 !important;
}

.slot-win-fly-ghost {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}

.slot-win-fly-ghost--heavy {
  z-index: 5000;
}

.slot-win-fly-ghost img,
.slot-win-fly-ghost canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* คัดลอก 4 ไอคอนแถวกลางออกมาหน้า → ผสาน 4→2→1 */
.slot-win-merge-layer {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: visible;
}

.slot-win-merge-chip {
  position: fixed;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform, opacity, filter;
  z-index: 6000;
  background: none;
  filter:
    drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 10px rgba(0, 229, 255, 0.35));
}

.slot-win-merge-chip::before,
.slot-win-merge-chip::after {
  content: none;
  display: none;
}

.slot-win-merge-chip .slot-win-merge-icon {
  position: relative;
  z-index: 2;
  width: 88%;
  height: 88%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-win-merge-chip .slot-win-merge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.slot-win-merge-chip.is-fusing {
  filter:
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 16px rgba(0, 229, 255, 0.75))
    drop-shadow(0 0 28px rgba(255, 217, 120, 0.35));
}

.reel-col .reel-strip span.is-merge-source {
  opacity: 0.28;
}

.slot-win-prize.is-fly-to-bag .slot-win-icon {
  animation: none !important;
}

.slot-win-prize.is-fly-to-bag .slot-win-amount {
  display: none !important;
}

/* เล็ก 30% ของกรอบ → ใหญ่ล้นนอก 10% — เท่ากันทุกรางวัล */
@keyframes slotWinPrizeEmerge {
  0% {
    opacity: 1;
    transform: scale(var(--slot-win-prize-scale-start));
  }
  100% {
    opacity: 1;
    transform: scale(var(--slot-win-prize-scale-end));
  }
}

/* หมุนเล่นตัวตอนโต (ไม่เปลี่ยนขนาด — ขนาดอยู่ที่ parent) */
@keyframes slotWinPrizeSpinOut {
  0% { transform: rotateY(-80deg); }
  100% { transform: rotateY(360deg); }
}

@keyframes slotWinIconIdleSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

@keyframes slotWinEmojiPulseY {
  0%, 100% { transform: rotateY(360deg) scale(1); }
  50% { transform: rotateY(360deg) scale(1.04); }
}

@keyframes slotWinPulse {
  0%, 100% { transform: scale(var(--slot-win-prize-scale-end)); }
  50% { transform: scale(calc(var(--slot-win-prize-scale-end) * 1.03)); }
}

@keyframes slotWinPulse3d {
  0%, 100% { transform: scale(var(--slot-win-prize-scale-end)); }
  50% { transform: scale(calc(var(--slot-win-prize-scale-end) * 1.03)); }
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  column-gap: var(--slot-reels-gap-x);
  row-gap: 0;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* แต่ละคอลัมน์ = ช่องเดียวต่อเนื่อง (บน+กลาง+ล่าง ไม่ตัดกัน) */
.reel-col {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 0 1%;
  box-sizing: border-box;
}

.reel-col .reel-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--slot-reels-row-gap);
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.reel-col .reel-strip span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100cqh / 3);
  flex-shrink: 0;
  line-height: 1;
  font-size: min(28cqh, 70cqw, 48px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  user-select: none;
  isolation: isolate;
  overflow: visible;
  z-index: 1;
  box-sizing: border-box;
}

/* พื้นหลังหกเหลี่ยมแบบกล่องหิบ — หมุนไปกับชิ้นรางวัลในแต่ละช่อง */
.reel-col .reel-strip span::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 94%;
  height: 94%;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.72) 0%, rgba(124, 77, 255, 0.55) 48%, rgba(255, 217, 120, 0.42) 100%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.reel-col .reel-strip span::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(94% - 3px);
  height: calc(94% - 3px);
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background:
    radial-gradient(circle at 28% 22%, rgba(124, 77, 255, 0.3) 0%, transparent 52%),
    radial-gradient(circle at 74% 78%, rgba(0, 229, 255, 0.2) 0%, transparent 46%),
    rgba(4, 8, 18, 0.97);
  box-shadow:
    0 0 10px rgba(0, 229, 255, 0.18),
    inset 0 0 10px rgba(0, 229, 255, 0.06);
  z-index: 0;
  pointer-events: none;
}

.reel-col .reel-strip span > img:not(.game-icon-clip),
.reel-col .reel-strip span > .game-icon-coin,
.reel-col .reel-strip span > .game-icon-grenade,
.reel-col .reel-strip span > .game-icon-shield,
.reel-col .reel-strip span > .game-icon-starship,
.reel-col .reel-strip span > .game-icon-reaper,
.reel-col .reel-strip span > .game-icon-bust,
.reel-col .reel-strip span > .game-icon-crate,
.reel-col .reel-strip span > .game-icon-diamond,
.reel-col .reel-strip span > .game-icon-star,
.reel-col .reel-strip span > .game-icon-key {
  position: relative;
  z-index: 2;
  width: 68% !important;
  height: 68% !important;
  max-width: 68% !important;
  max-height: 68% !important;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

#slotPage .slot-art-guide .reel-col .reel-strip span > img.game-icon-clip {
  position: relative;
  z-index: 2;
  width: 82% !important;
  height: 82% !important;
  max-width: 82% !important;
  max-height: 82% !important;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  filter: none;
}

#slotPage .slot-art-guide .reel-col:not(.spinning) .reel-strip span.reel-row-top > img.game-icon-clip,
#slotPage .slot-art-guide .reel-col:not(.spinning) .reel-strip span:nth-child(2) > img.game-icon-clip {
  transform: translateY(-7%);
}

#slotPage .slot-art-guide .reel-col:not(.spinning) .reel-strip span.reel-row-bot > img.game-icon-clip,
#slotPage .slot-art-guide .reel-col:not(.spinning) .reel-strip span:nth-child(4) > img.game-icon-clip {
  transform: translateY(7%);
}

/* สี่แถวตรง — โคลนไอคอนขึ้นเลเยอร์ fixed ทับทุกอย่าง (ไม่รั่วหลังฐานเครดิต) */
#slotPage .slot-art-guide .reel-col .reel-strip span.reel-row-mid.is-payline-source-hidden > img {
  opacity: 0 !important;
  visibility: hidden !important;
}

#slotPaylinePopLayer.slot-payline-pop-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  overflow: visible;
}

#slotPaylinePopLayer .slot-payline-pop-clone-wrap {
  position: fixed;
  margin: 0;
  padding: 0;
  pointer-events: none;
  transform-origin: center center;
  overflow: visible;
}

#slotPaylinePopLayer .slot-payline-pop-clone-wrap > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transform-origin: center center;
}

#slotPaylinePopLayer .slot-payline-pop-clone-wrap.is-payline-pop > img {
  will-change: transform, filter;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
  /* โผล่แล้วค้างเด้งขยายเบาๆ ที่ศูนย์กลาง — ไม่เลื่อนขึ้นลง */
  animation: paylineWinPopOut 0.22s cubic-bezier(0.18, 0.92, 0.28, 1) forwards,
    paylineWinHoldPulse 1.05s ease-in-out 0.22s infinite,
    paylineWinGleam 3.6s ease-in-out infinite;
  animation-delay: 0s, 0.22s, 0.22s;
}

/* กำลังกลับเข้าที่ — หยุดเด้งขยาย */
#slotPaylinePopLayer .slot-payline-pop-clone-wrap.is-payline-return {
  animation: none;
  transform: none;
}

#slotPaylinePopLayer .slot-payline-pop-clone-wrap.is-payline-return > img {
  animation: paylineWinPopReturn 0.07s cubic-bezier(0.3, 0.05, 0.4, 1) forwards;
  filter: none;
  will-change: transform;
}

#slotPaylinePopLayer .slot-payline-pop-clone-wrap.is-payline-return::after {
  display: none;
}

#slotPaylinePopLayer .slot-payline-pop-clone-wrap.is-payline-pop::after {
  content: "";
  position: absolute;
  top: -8%;
  left: 8%;
  width: 48%;
  height: 116%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 248, 214, 0.2) 32%, rgba(255, 255, 255, 0.78) 50%, rgba(140, 230, 255, 0.35) 68%, transparent 100%);
  animation: paylineWinSheenOnce 0.38s ease-in-out,
    paylineWinSheen 3.6s ease-in-out 0.38s infinite;
}

@keyframes paylineWinPopOut {
  0% { transform: scale(1); }
  55% { transform: scale(1.68); }
  78% { transform: scale(1.52); }
  100% { transform: scale(1.58); }
}

@keyframes paylineWinHoldPulse {
  0%, 100% { transform: scale(1.58); }
  40% { transform: scale(1.66); }
  70% { transform: scale(1.55); }
}

@keyframes paylineWinPopReturn {
  0% { transform: scale(1.58); }
  100% { transform: scale(1); }
}

@keyframes paylineWinGleam {
  0%, 64%, 100% { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4)); }
  74% { filter: drop-shadow(0 0 7px rgba(255, 226, 140, 0.95)) drop-shadow(0 0 12px rgba(0, 229, 255, 0.55)); }
  86% { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4)); }
}

@keyframes paylineWinSheenOnce {
  0% { transform: translateX(-160%) skewX(-18deg); opacity: 0; }
  10% { opacity: 0.95; }
  55% { transform: translateX(280%) skewX(-18deg); opacity: 0.95; }
  70%, 100% { transform: translateX(280%) skewX(-18deg); opacity: 0; }
}

@keyframes paylineWinSheen {
  0%, 66% { transform: translateX(-160%) skewX(-18deg); opacity: 0; }
  72% { opacity: 0.9; }
  84% { transform: translateX(280%) skewX(-18deg); opacity: 0.9; }
  90%, 100% { transform: translateX(280%) skewX(-18deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #slotPaylinePopLayer .slot-payline-pop-clone-wrap.is-payline-pop > img,
  #slotPaylinePopLayer .slot-payline-pop-clone-wrap.is-payline-return > img,
  #slotPaylinePopLayer .slot-payline-pop-clone-wrap.is-payline-pop::after {
    animation: none;
  }
  #slotPaylinePopLayer .slot-payline-pop-clone-wrap.is-payline-pop > img {
    transform: scale(1.58);
    filter: drop-shadow(0 0 7px rgba(255, 226, 140, 0.95));
  }
}

.reel-col {
  container-type: size;
}

.reel-col.spinning .reel-strip span {
  text-shadow: none;
}

.reel-col.spinning-fast .reel-strip {
  opacity: 1;
  will-change: transform;
}

.reel-col.spinning .reel-strip span > img {
  filter: none !important;
}

.reel-col.spinning .reel-strip {
  will-change: transform;
  transform: translateZ(0);
}

.reel-col.spinning-fast .reel-strip span {
  opacity: 1;
}

/* คง class เก่าไว้เผื่อไม่พัง — ไม่ใช้แล้วในหน้า ROBIT */
.reel-cell {
  display: none;
}

.reel-labels,
.result-display,
.spin-history,
.diamond-btn,
.progress-ring,
.diamond-label,
.diamond-cost,
.cycle-mult-btn,
.cycle-hint,
.auto-indicator {
  display: none !important;
}

.diamond-spin-container {
  text-align: center;
  margin: 12px auto 0;
  position: relative;
  z-index: 12;
  flex-shrink: 0;
  overflow: visible;
}

#slotPage.slot-page-themed .diamond-spin-container {
  position: absolute;
  left: var(--spin-medal-x);
  top: calc(var(--spin-medal-y) - 20px);
  transform: translate(-50%, -50%);
  margin: 0;
  overflow: visible;
  z-index: 3;
  width: calc(var(--spin-medal-size) + 5px);
  height: auto;
  aspect-ratio: 1 / 1;
}

.spin-btn-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* เผื่อพื้นที่เด้ง — ไม่ให้ canvas ครอปโมเดล */
  width: var(--slot-spin-size, 150px);
  height: var(--slot-spin-size, 150px);
  overflow: visible;
}

/* เลิกใช้วงกดค้าง — ใช้การหมุนเหรียญแทน */
.spin-hold-ring {
  display: none !important;
}

.diamond-btn-new {
  position: relative;
  z-index: 1;
  width: var(--slot-spin-size, 150px);
  height: var(--slot-spin-size, 150px);
  border-radius: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  box-shadow: none;
  margin: 0 auto;
  filter: none;
  overflow: visible;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.spin-coin-3d {
  position: absolute;
  inset: 0;
  width: var(--slot-spin-size, 150px);
  height: var(--slot-spin-size, 150px);
  display: block;
  z-index: 2;
  overflow: visible;
}

.spin-coin-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.crystal-spin-btn .spin-crystal-icon,
.crystal-spin-btn .spin-coin-fallback {
  display: block;
  width: 100px;
  height: 100px;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  position: relative;
  z-index: 1;
}

.spin-coin-3d.is-ready ~ .spin-coin-fallback,
.spin-coin-3d:not(:empty) ~ .spin-coin-fallback {
  opacity: 0;
  position: absolute;
  inset: 0;
}

.diamond-btn-new:hover,
.diamond-btn-new:active {
  transform: none;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* CSS หมุนเหรียญ — สำรองถ้า 3D ยังไม่พร้อม */
@keyframes spinCoinFlick {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(720deg); }
}
@keyframes spinCoinHoldWind {
  from { transform: rotateY(0deg) scale(1); }
  to   { transform: rotateY(360deg) scale(1); }
}
@keyframes spinCoinAutoFast {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}
@keyframes spinCoinStop {
  0%   { transform: rotateY(0deg) scale(1); }
  70%  { transform: rotateY(300deg) scale(1.04, 0.96); }
  100% { transform: rotateY(360deg) scale(1); }
}

/* กดที — ไม่ยืดหยุ่น/เด้งที่ปุ่ม (หมุนเหรียญอย่างเดียว) */
.spin-btn-wrap.is-flick {
  animation: none !important;
  transform: none !important;
}

#slotPage.slot-page-themed.is-spin-bounce .slot-stage {
  overflow: hidden;
}

.spin-btn-wrap.is-flick:not(:has(.spin-coin-3d.is-ready)) .spin-coin-fallback {
  animation: spinCoinFlick 0.9s linear both;
}
.spin-btn-wrap.is-hold-wind:not(:has(.spin-coin-3d.is-ready)) .spin-coin-fallback {
  animation: spinCoinHoldWind 1s linear both;
}
.spin-btn-wrap.is-auto-spin:not(:has(.spin-coin-3d.is-ready)) .spin-coin-fallback {
  animation: spinCoinAutoFast 0.28s linear infinite;
}
.spin-btn-wrap.is-auto-stop:not(:has(.spin-coin-3d.is-ready)) .spin-coin-fallback {
  animation: spinCoinStop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.spin-hold-ring {
  display: none !important;
}

@media (max-width: 768px) {
  .reel-col .reel-strip span {
    font-size: min(28cqh, 74cqw, 48px);
  }
  .diamond-btn-new {
    width: var(--slot-spin-size, 150px);
    height: var(--slot-spin-size, 150px);
    font-size: 34px;
  }
  .spin-btn-wrap {
    width: var(--slot-spin-size, 150px);
    height: var(--slot-spin-size, 150px);
  }
  #slotPage.slot-page-themed .slot-diamond-display {
    font-size: 34px;
  }
}

/* มือถือ/แท็บเล็ตแนวตั้ง: ขยายตู้เต็มจอแบบ cover ให้ขอบรูปชิดจอ */
@media (max-width: 1024px) {
  #slotPage.slot-page-themed {
    overflow: hidden;
  }
  #slotPage.slot-page-themed .slot-stage {
    position: absolute;
    inset: auto;
    left: 50%;
    top: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
    aspect-ratio: 9 / 19.5;
    width: max(100%, calc(100vh * 9 / 19.5));
    height: auto;
    max-width: none;
    max-height: none;
  }
  @supports (height: 100dvh) {
    #slotPage.slot-page-themed .slot-stage {
      width: max(100%, calc(100dvh * 9 / 19.5));
    }
  }
  #slotPage.slot-page-themed .slot-stage-bg {
    object-fit: fill;
  }
}

/* Session reward bag — top-right เหมือนกล่องหิบในล็อบบี้ */
.slot-session-bag-btn {
  position: relative;
  top: -12px;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 200;
  width: clamp(86.4px, 13.2vw, 103.2px);
  height: clamp(86.4px, 13.2vw, 103.2px);
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #d4af37;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.slot-session-bag-btn:focus,
.slot-session-bag-btn:focus-visible,
.slot-session-bag-btn:active {
  outline: none;
}

.slot-session-bag-btn:hover {
  background: transparent;
  transform: scale(1.06);
}

.slot-session-bag-btn.is-catch {
  animation: slotBagCatch 0.45s ease;
}

@keyframes slotBagCatch {
  0% { transform: scale(1); }
  35% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

.slot-session-bag-icon {
  font-size: 66px;
  line-height: 1;
}

.slot-session-bag-count {
  position: absolute;
  top: 16px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff4d4d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.slot-session-bag-count[hidden] {
  display: none !important;
}

.slot-session-bag-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  max-height: min(55vh, 420px);
  overflow-y: auto;
  padding: 12px 4px 8px;
  justify-items: center;
}

.slot-session-bag-list[hidden],
#slotSessionBagEmpty[hidden] {
  display: none !important;
}

.slot-session-bag-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  min-width: 0;
}

.slot-session-bag-item-icon {
  font-size: 56px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-session-bag-item-icon .game-icon-coin,
.slot-session-bag-item-icon .game-icon-grenade,
.slot-session-bag-item-icon .game-icon-shield,
.slot-session-bag-item-icon .game-icon-starship,
.slot-session-bag-item-icon .game-icon-reaper,
.slot-session-bag-item-icon .game-icon-bust,
.slot-session-bag-item-icon .game-icon-crate,
.slot-session-bag-item-icon .game-icon-diamond,
.slot-session-bag-item-icon .game-icon-star,
.slot-session-bag-item-icon .game-icon-key {
  width: 56px;
  height: 56px;
}

.slot-session-bag-item-amount {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

@media (max-width: 768px) {
  .slot-session-bag-btn {
    width: clamp(86.4px, 13.2vw, 103.2px);
    height: clamp(86.4px, 13.2vw, 103.2px);
    top: -12px;
    right: auto;
    bottom: auto;
  }
  .slot-session-bag-icon { font-size: 62px; }
  .slot-session-bag-item-icon { font-size: 48px; }
  .slot-session-bag-item-icon .game-icon-coin,
  .slot-session-bag-item-icon .game-icon-grenade,
  .slot-session-bag-item-icon .game-icon-shield,
  .slot-session-bag-item-icon .game-icon-starship,
  .slot-session-bag-item-icon .game-icon-reaper,
  .slot-session-bag-item-icon .game-icon-bust,
  .slot-session-bag-item-icon .game-icon-crate,
  .slot-session-bag-item-icon .game-icon-diamond,
  .slot-session-bag-item-icon .game-icon-star,
  .slot-session-bag-item-icon .game-icon-key {
    width: 48px;
    height: 48px;
  }
  .slot-session-bag-item-amount { font-size: 18px; }
}


.slot-diamond-display .game-icon-diamond {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
}

#slotPage.slot-page-themed .slot-diamond-display,
#slotPage.slot-page-themed .slot-diamond-display .format-number {
  color: #f0c14d;
  text-shadow: 0 1px 0 #8a6a18, 0 0 12px rgba(240, 193, 77, 0.35);
}

/* Soft-recommend multiplier confirm */
.slot-mult-confirm-overlay {
  z-index: 9800;
}
.slot-mult-confirm-panel {
  max-width: 360px;
  width: min(360px, calc(100vw - 36px));
  text-align: center;
  padding: 22px 20px 18px;
  background: rgba(8, 14, 28, 0.96);
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(124, 77, 255, 0.18),
    0 16px 40px rgba(0, 0, 0, 0.55);
}
.slot-mult-confirm-title {
  margin: 0 0 10px;
  color: #9dffc8;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 0 14px rgba(0, 204, 102, 0.35);
}
.slot-mult-confirm-msg {
  margin: 0 0 18px;
  color: #e8fbff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}
.slot-mult-confirm-actions {
  display: flex;
  gap: 10px;
}
.slot-mult-confirm-btn {
  flex: 1;
  min-height: 48px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.slot-mult-confirm-btn.is-system {
  background: linear-gradient(135deg, #00a85a, #1ee68a);
  color: #04140c;
}
.slot-mult-confirm-btn.is-continue {
  background: linear-gradient(135deg, #c9a106, #ffe566);
  color: #2a2200;
}
.slot-mult-confirm-btn:active {
  transform: scale(0.98);
}
