* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none
}

html,
body {
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  touch-action: manipulation
}

/* 720x1510 phone screen: top 370px black, game occupies the bottom 1140px (~75%) */

#screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 720px;
  height: 1510px;
  transform-origin: 0 0;
  overflow: hidden;
  background: #000
}

#stage {
  position: absolute;
  left: 0;
  top: 70px;
  width: 720px;
  height: 1600px;
  overflow: hidden;
  background: #2A56C0;
  color: #fff
}

#mask {
  position: absolute;
  left: 0;
  top: 0;
  width: 720px;
  height: 370px;
  background: #000;
  z-index: 200;
  pointer-events: none
}

.abs {
  position: absolute
}

svg.fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 720px;
  height: 1600px;
  pointer-events: none
}

/* ---------- background ---------- */

#sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #291f74 0, #4b4188 300px, #0965bc 360px, #0a75c3 410px, #0a77b9 470px, #0f5cb2 520px, #2968a3 580px, #3d71b8 640px, #5a5aa8 720px, #6a3fb8 1228px, #481f8d 1600px)
}

#beam {
  left: 190px;
  top: 300px;
  width: 340px;
  height: 340px;
  background: linear-gradient(180deg, #291f74, #332270 40%, #3b2d7c 70%, #424186);
  box-shadow: 0 0 30px rgba(20, 10, 80, .6)
}

#beam i {
  position: absolute;
  left: 0;
  width: 340px;
  height: 4px;
  background: rgba(120, 110, 200, .35)
}

#beam b {
  position: absolute;
  top: 0;
  width: 5px;
  height: 540px;
  background: rgba(10, 30, 106, .3)
}

#halo {
  left: 80px;
  top: 500px;
  width: 560px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(154, 240, 255, .45), rgba(154, 240, 255, 0))
}

#floor {
  left: 0;
  top: 1228px;
  width: 720px;
  height: 372px;
  background: linear-gradient(180deg, #8d52c6, #8846c4 25%, #7937ad 50%, #481f8d)
}

#floorglow {
  left: 130px;
  top: 1250px;
  width: 460px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0))
}

/* ---------- buttons ---------- */

.btn {
  position: absolute;
  cursor: pointer;
  transition: transform .08s, filter .15s
}

.btn:active {
  transform: translateY(3px) scale(.97)
}

.circ {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, var(--a), var(--d));
  border: 2px solid rgba(255, 255, 255, .7);
  box-shadow: 0 5px 0 var(--d), 0 7px 8px rgba(0, 0, 0, .35)
}

.circ::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 36px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0))
}

.circ span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: italic 900 30px/1 Georgia, serif;
  z-index: 2
}

.red {
  --a: #FF5A7A;
  --d: #B0103A
}

.blue {
  --a: #6AC0FF;
  --d: #1250B8
}

.bar-h,
.bar-v {
  position: absolute;
  background: #fff;
  border-radius: 3px;
  z-index: 2
}

.bar-h {
  left: 14px;
  top: 20px;
  width: 22px;
  height: 7px
}

.bar-v {
  left: 21.5px;
  top: 12.5px;
  width: 7px;
  height: 22px
}

.glass {
  width: 56px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(154, 184, 232, .75), rgba(90, 120, 184, .6));
  border: 2px solid rgba(208, 224, 255, .9);
  overflow: hidden
}

.glass::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  right: 3px;
  height: 22px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0))
}

.glass svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%
}

#spin {
  left: 575px;
  top: 1070px;
  width: 116px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FF5A4A, #C01010);
  border: 2px solid #FFA090;
  box-shadow: 0 7px 0 #7A0808, 0 9px 10px rgba(0, 0, 0, .4);
  font: italic 900 30px/50px Inter, Arial, sans-serif;
  text-align: center;
  color: #FFF47A;
  -webkit-text-stroke: 3px #7A0A0A;
  paint-order: stroke fill
}

#spin.dis {
  filter: grayscale(.5) brightness(.8);
  pointer-events: none
}

#auto {
  left: 494px;
  top: 1068px;
  width: 72px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #C090FF, #6A2CC8);
  border: 2px solid rgba(224, 200, 255, .8);
  box-shadow: 0 7px 0 #2A1066, 0 9px 10px rgba(0, 0, 0, .4);
  font: 500 19px/52px Inter, Arial, sans-serif;
  text-align: center
}

#auto.on {
  background: linear-gradient(180deg, #FFE680, #E0A020);
  color: #4A2A00;
  font-weight: 800
}

#auto::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 3px;
  width: 52px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0))
}

.panel {
  position: absolute
}

#jp {
  left: 210px;
  top: 643px;
  width: 290px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(180deg, #0a1040, #02092c);
  border: 3px solid #8a3d90;
  text-align: center;
  font: 800 32px/42px Inter, Arial, sans-serif;
  cursor: pointer
}

#jp span {
  background: linear-gradient(180deg, #FFF4A8, #D89A18);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

#jp::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  right: 6px;
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .12)
}

#win {
  left: 270px;
  top: 1062px;
  width: 216px;
  height: 70px;
  border-radius: 22px;
  /*background: linear-gradient(180deg, #7a1cc8, #4a0a8a);
  border: 5px solid #E8B030;*/
  box-shadow: 0 0 0 2px rgba(255, 224, 138, .0) inset
}

#win::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 17px;
  border: 2px solid rgba(255, 224, 138, .6)
}

#win b {
  position: absolute;
  left: 24px;
  top: 12px;
  font: 900 30px/40px Inter, Arial, sans-serif;
  color: #fff
}

#win span {
  position: absolute;
  left: 96px;
  width: 104px;
  top: 12px;
  text-align: center;
  font: 800 30px/40px Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #FFF4A8, #E8A818);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

#total {
  left: 130px;
  top: 1074px;
  width: 74px;
  height: 48px;
  border-radius: 6px;
  background: #14102A;
  border: 2px solid #5A4A8A;
  text-align: center
}

#total small {
  display: block;
  font: 600 12px/16px Inter, Arial, sans-serif;
  color: #C8C0E0;
  margin-top: 2px
}

#total span {
  display: block;
  font: 500 24px/26px Inter, Arial, sans-serif
}

#lines-label {
  left: 110px;
  top: 1052px;
  width: 110px;
  text-align: center;
  font: 400 20px/22px Inter, Arial, sans-serif;
  color: #D8C8F0
}

#freebadge {
  left: 100px;
  top: 1034px;
  width: 130px;
  text-align: center;
  font: 800 16px/20px Inter, Arial, sans-serif;
  color: #FFE08A;
  display: none;
  text-shadow: 0 2px 3px #000
}

#coin {
  left: 84px;
  top: 1166px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #FFE680, #D8920A);
  border: 3px solid #FFF2B0;
  z-index: 3
}

#pill {
  left: 84px;
  top: 1168px;
  width: 226px;
  height: 46px;
  border-radius: 23px;
  background: rgba(42, 22, 8, .45)
}

#bal {
  left: 146px;
  top: 1174px;
  font: 700 26px/42px Inter, Arial, sans-serif;
  color: #FFF4D0
}

.star {
  position: absolute;
  inset: 0
}

/* ---------- reels ---------- */

#reels {
  left: 80px;
  top: 730px;
  width: 560px;
  height: 312px;
  overflow: hidden;
  display: flex;
  background: #fff
}

.reel {
  width: 112px;
  height: 312px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #8d8d9c, #c2c6d2 12%, #d4d7df 50%, #c2c6d2 88%, #8d8d9c);
}

.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0) 13%, rgba(0, 0, 0, 0) 87%, rgba(0, 0, 0, .18));
  z-index: 3
}

.reel+.reel {
  box-shadow: inset 3px 0 0 #B8B8C8
}

.strip {
  position: absolute;
  left: 0;
  top: 0;
  width: 112px;
  will-change: transform
}

.cell {
  position: relative;
  width: 112px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center
}

.cell svg {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3))
}

.cell.win::after {
  content: "";
  position: absolute;
  inset: 2px 4px;
  border-radius: 14px;
  border: 4px solid #FFE060;
  background: rgba(255, 224, 96, .1);
  box-shadow: 0 0 16px #FFE060, inset 0 0 12px rgba(255, 224, 96, .6);
  animation: glow .5s infinite alternate
}

.cell.win svg {
  animation: pulse .5s infinite alternate
}

@keyframes glow {
  from {
    opacity: .55
  }
  to {
    opacity: 1
  }
}

@keyframes pulse {
  from {
    transform: scale(1)
  }
  to {
    transform: scale(1.1)
  }
}

.pl {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(90, 58, 122, .9);
  border: 1.5px solid #9A7ABA;
  font: 700 11px/19px Inter, Arial, sans-serif;
  text-align: center;
  color: rgba(255, 255, 255, .85);
  z-index: 5;
  transition: background .2s
}

.pl.on {
  background: var(--c);
  border: 2px solid #fff;
  color: #fff;
  line-height: 18px;
  box-shadow: 0 0 8px var(--c)
}

#lines polyline {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px currentColor)
}

/* ---------- top hud ---------- */

#title {
  left: 0;
  top: 578px;
  width: 720px;
  text-align: center;
  font: italic 900 50px/60px Inter, Arial, sans-serif;
  color: #E8281A;
  -webkit-text-stroke: 4px #FFD36B;
  paint-order: stroke fill;
  text-shadow: 0 4px 6px rgba(0, 0, 0, .45);
  letter-spacing: 1px
}

#trophy {
  left: 524px;
  top: 522px;
  width: 72px;
  height: 86px;
  cursor: pointer
}

#trophy small {
  position: absolute;
  left: 8px;
  top: 66px;
  width: 56px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #C02030, #7A0A1A);
  border: 2px solid #E8B030;
  font: 600 12px/12px Inter, Arial, sans-serif;
  text-align: center;
  color: #FFE9B0;
  padding-top: 1px
}

/* ---------- plaque & fx ---------- */

#plaque {
  left: 150px;
  top: 380px;
  width: 420px;
  height: 140px;
  border-radius: 36px;
  background: linear-gradient(180deg, #5A24B0, #240A50);
  border: 6px solid #FFD36B;
  box-shadow: 0 0 30px rgba(255, 217, 77, .7);
  text-align: center;
  display: none;
  z-index: 20
}

#plaque b {
  display: block;
  font: italic 900 34px/44px Inter, Arial, sans-serif;
  margin-top: 8px
}

#plaque span {
  display: block;
  font: italic 900 72px/80px Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #FFF4A8, #E8A818);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

#plaque.show {
  display: block;
  animation: pop .45s cubic-bezier(.2, 1.4, .4, 1)
}

@keyframes pop {
  from {
    transform: scale(.3);
    opacity: 0
  }
  to {
    transform: scale(1);
    opacity: 1
  }
}

.fxcoin {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #FFF0A0, #F0B020 70%, #B87A08);
  border: 2px solid #FFF8D0;
  z-index: 19;
  pointer-events: none;
  animation: fall var(--t) ease-in forwards
}

@keyframes fall {
  0% {
    transform: translate(0, 0) rotate(0);
    opacity: 1
  }
  85% {
    opacity: 1
  }
  100% {
    transform: translate(var(--dx), var(--dy)) rotate(360deg);
    opacity: 0
  }
}

#toast {
  left: 110px;
  top: 470px;
  width: 500px;
  text-align: center;
  padding: 14px 20px;
  border-radius: 30px;
  background: rgba(20, 10, 50, .85);
  border: 3px solid #FFD36B;
  font: 700 26px/32px Inter, Arial, sans-serif;
  color: #FFE9A0;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s
}

#toast.show {
  opacity: 1
}

/* ---------- loading ---------- */

#loading {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #4B3FA8, #6482D0 50%, #7AAEE8);
  z-index: 100;
  transition: opacity .5s
}

#loading i {
  position: absolute;
  background: rgba(106, 138, 240, .35)
}

#lbar {
  left: 120px;
  top: 772px;
  width: 480px;
  height: 56px;
  border-radius: 28px;
  background: #1B1E3F;
  border: 4px solid #9AA4C8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
  overflow: hidden
}

#lfill {
  position: absolute;
  left: 4px;
  top: 4px;
  height: 40px;
  width: 0;
  border-radius: 20px;
  background: repeating-linear-gradient(115deg, #FFB838 0 16px, #F08010 16px 34px);
  overflow: hidden
}

#ltxt {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  text-align: center;
  font: 400 22px/48px Inter, Arial, sans-serif;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5)
}

/* ---------- popups ---------- */

.popup {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 50;
  display: none
}

.popup.show {
  display: block;
  animation: fade .2s
}

@keyframes fade {
  from {
    opacity: 0
  }
  to {
    opacity: 1
  }
}

.modal {
  position: absolute;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(26, 10, 58, .94);
  border: 3px solid #E0C890;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5)
}

.mh {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 72px;
  background: linear-gradient(180deg, #D824E8, #8A0AA0);
  text-align: center;
  font: 500 28px/72px Inter, Arial, sans-serif;
  z-index: 2
}

.mh::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0))
}

.x {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  border: 4px solid #fff;
  background: linear-gradient(180deg, #5A24B0, #2A0F5C)
}

.x.r {
  background: radial-gradient(circle at 40% 30%, #FF7A6A, #C0101A)
}

.x svg {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 36px;
  height: 36px
}

.mb {
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .35) transparent
}

.mb::-webkit-scrollbar {
  width: 5px
}

.mb::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .35);
  border-radius: 3px
}

.gbtn {
  position: absolute;
  width: 190px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(180deg, #7BF27B, #2BD04A 50%, #18A83A);
  border: 2px solid #0A5A18;
  box-shadow: 0 6px 0 #0E7A22;
  font: 500 22px/48px Inter, Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  color: #fff;
  overflow: hidden
}

.gbtn::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  right: 8px;
  height: 18px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0))
}

.gbtn.red {
  background: linear-gradient(180deg, #FF7A6A, #E03020 50%, #B01010);
  border-color: #6A0808;
  box-shadow: 0 6px 0 #7A0808;
  --a: 0;
  --d: 0
}

.gbtn:active {
  transform: translateY(3px)
}

/* rules */

.rules {
  padding: 20px 26px 30px;
  font-size: 26px;
  line-height: 40px
}

.rules h4 {
  font-size: 24px;
  color: #FFE08A;
  margin: 16px 0 6px;
  line-height: 32px
}

.rules table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 12px
}

.rules th {
  background: rgba(255, 255, 255, .1);
  color: #FFE08A;
  font-size: 22px;
  padding: 8px
}

.rules td {
  text-align: center;
  font-size: 22px;
  padding: 2px 8px
}

.rules td svg {
  width: 56px;
  height: 56px;
  vertical-align: middle
}

.rules .sp {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 8px 14px;
  margin: 8px 0;
  font-size: 22px;
  line-height: 30px
}

.rules .sp svg {
  width: 76px;
  height: 76px;
  flex: none
}

/* rank */

#rankm {
  left: 38px;
  top: 548px;
  width: 644px;
  height: 644px;
  background: linear-gradient(180deg, #8E1B47, #5A0F2E);
  border: 4px solid #E8C060;
  border-radius: 22px;
  overflow: visible
}

#tabs {
  position: absolute;
  left: 0;
  top: 26px;
  width: 644px;
  height: 70px
}

.tab {
  position: absolute;
  top: 2px;
  width: 60px;
  height: 64px;
  cursor: pointer
}

.tab svg {
  position: absolute;
  inset: 0
}

.tab b {
  position: absolute;
  inset: 0;
  text-align: center;
  font: 700 22px/64px Inter, Arial, sans-serif
}

.tab.on .hx {
  fill: url(#gTabOn)
}

.dot {
  position: absolute;
  top: 32px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E06A8A
}

#tbl {
  position: absolute;
  left: 16px;
  top: 107px;
  width: 612px;
  height: 490px;
  background: #000;
  overflow: hidden
}

#thead {
  height: 46px;
  background: linear-gradient(180deg, #5A5050, #2A2424);
  border: 2px solid #8A8080;
  display: flex;
  font: 400 22px/42px Inter, Arial, sans-serif;
  color: #E8E0E0
}

#thead div {
  text-align: center;
  border-right: 2px solid rgba(138, 128, 128, .8)
}

#rows {
  position: absolute;
  left: 0;
  top: 46px;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .35) transparent
}

#rows::-webkit-scrollbar {
  width: 5px
}

#rows::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .35);
  border-radius: 3px
}

.row {
  position: relative;
  height: 45px;
  display: flex;
  align-items: center;
  font: 400 22px/1 Inter, Arial, sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, .12)
}

.row .c1 {
  width: 110px;
  text-align: center;
  font-size: 24px
}

.row .c2 {
  width: 198px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
  overflow: hidden
}

.row .c3 {
  width: 150px;
  text-align: center
}

.row .c4 {
  width: 154px;
  display: flex;
  justify-content: center
}

.row .aw {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, .7);
  border-radius: 10px;
  padding: 5px 10px;
  width: 136px;
  font-weight: 500;
  color: #fff
}

.cn {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #FFE680, #D8920A);
  border: 2px solid #FFF2B0;
  flex: none
}

.row.r1 {
  background: linear-gradient(180deg, #FFE9A0, #D8A040);
  color: #2A1A10
}

.row.r2 {
  background: linear-gradient(180deg, #F4F4FA, #A8A8BC);
  color: #2A1A10
}

.row.r3 {
  background: linear-gradient(180deg, #FFB890, #D87A4A);
  color: #2A1A10
}

.row.r1 .c1,
.row.r2 .c1,
.row.r3 .c1 {
  font: italic 900 40px/1 Inter, Arial, sans-serif;
  color: #fff;
  -webkit-text-stroke: 3px var(--bd);
  paint-order: stroke fill;
  text-align: left;
  padding-left: 8px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  height: 100%;
  display: flex;
  align-items: center
}

.row.r1 {
  --bg: linear-gradient(90deg, #E8308A, #B01868);
  --bd: #6A0A3A
}

.row.r2 {
  --bg: linear-gradient(90deg, #6A5AC8, #3A2A88);
  --bd: #1A1048
}

.row.r3 {
  --bg: linear-gradient(90deg, #E8703A, #B04018);
  --bd: #6A2008
}

.av {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .6)
}

/* settings */

#tg {
  position: absolute;
  left: 278px;
  top: 128px;
  width: 248px;
  height: 76px;
  border-radius: 38px;
  cursor: pointer;
  background: linear-gradient(180deg, #3EE03E, #128A12);
  border: 3px solid #0A5A0A;
  transition: background .25s
}

#tg span {
  position: absolute;
  left: 24px;
  top: 0;
  line-height: 70px;
  font: 500 26px/70px Inter, Arial, sans-serif
}

#tg i {
  position: absolute;
  top: 1px;
  left: 122px;
  width: 118px;
  height: 68px;
  border-radius: 34px;
  background: linear-gradient(180deg, #FFD060, #F59A10 50%, #E86000);
  border: 2px solid rgba(138, 58, 0, .6);
  transition: left .25s
}

#tg i::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 5px;
  width: 88px;
  height: 22px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0))
}

#tg.off {
  background: linear-gradient(180deg, #8A8AA0, #4A4A60);
  border-color: #2A2A3A
}

#tg.off i {
  left: 2px
}

#tg.off span {
  left: auto;
  right: 24px
}

/* recharge */

#rch {
  left: 84px;
  top: 625px;
  width: 552px;
  height: 490px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fff, #DCEBFF);
  border: none;
  overflow: hidden
}

#rch .top {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, #6A8AF0, #8AA8F8)
}

#rch p {
  position: absolute;
  left: 0;
  right: 0;
  top: 268px;
  text-align: center;
  font: 700 29px/42px Inter, Arial, sans-serif;
  color: #6A6AA8
}

/* auto */

.chip {
  position: absolute;
  width: 172px;
  height: 64px;
  border-radius: 32px;
  background: linear-gradient(180deg, #4A1A9A, #2A0F5C);
  border: 2px solid #8A6AD0;
  text-align: center;
  font: 700 30px/60px Inter, Arial, sans-serif;
  cursor: pointer
}

.chip.on {
  background: linear-gradient(180deg, #FFE680, #E0A020);
  border: 4px solid #fff;
  color: #4A2A00;
  line-height: 56px
}

/* jackpot details */

.cd {
  position: absolute;
  top: 532px;
  width: 118px;
  height: 76px;
  border-radius: 14px;
  background: linear-gradient(180deg, #3A1470, #240A50);
  border: 3px solid #E0A82E;
  text-align: center;
  font: 900 44px/70px Inter, Arial, sans-serif;
  background-clip: padding-box;
  color: #FFE08A
}

.cell img {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3));
  pointer-events: none
}

.cell.win img {
  animation: pulse .5s infinite alternate
}

.rules td img {
  width: 56px;
  height: 56px;
  vertical-align: middle
}

.rules .sp img {
  width: 76px;
  height: 76px;
  flex: none
}

.row.r1,
.row.r2,
.row.r3 {
  height: 58px
}

.row:not(.r1):not(.r2):not(.r3) .av {
  width: 38px;
  height: 38px
}

.row:not(.r1):not(.r2):not(.r3) .aw {
  padding: 3px 10px
}

#lbar {
  top: 843px;
  height: 52px
}

#lfill {
  height: 36px
}

#ltxt {
  line-height: 44px
}

/* extra 3D bevel */

.circ {
  box-shadow: 0 5px 0 var(--d), 0 7px 8px rgba(0, 0, 0, .35), inset 0 -5px 7px rgba(0, 0, 0, .28), inset 0 3px 4px rgba(255, 255, 255, .35)
}

#spin {
  box-shadow: 0 7px 0 #7A0808, 0 9px 10px rgba(0, 0, 0, .4), inset 0 -6px 8px rgba(0, 0, 0, .28), inset 0 3px 4px rgba(255, 255, 255, .4)
}

#auto {
  box-shadow: 0 7px 0 #2A1066, 0 9px 10px rgba(0, 0, 0, .4), inset 0 -6px 8px rgba(0, 0, 0, .28), inset 0 3px 4px rgba(255, 255, 255, .4)
}

.reel {
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .35)
}

#reels {
  box-shadow: 0 0 0 3px #FFE08A, 0 0 0 6px #B07A12
}

/* =====================================================================
   IMAGE SKIN - every visual below is a PNG in images/game/.
   To re-skin: replace the PNG with a new one of the same name
   (or change the url() here). Sizes are in game pixels (720 wide stage).
   ===================================================================== */

#bg {
  left: 0;
  top: 300px;
  width: 720px;
  height: 1140px;
  pointer-events: none
}

#frame {
  left: 0;
  top: 300px;
  width: 720px;
  height: 1140px;
  pointer-events: none
}

#back,
#music,
#trophy,
#title,
#jp,
#win,
#total,
#lines-label,
#info,
#minus,
#plus,
#auto,
#spin,
#pill,
#coin,
#profile {
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border: 0;
  box-shadow: none;
  border-radius: 0
}

#back {
  left: 24px;
  top: 528px;
  width: 60px;
  height: 64px;
  background-image: url(../images/game/icon_back.png)
}

#music {
  left: 626px;
  top: 528px;
  width: 60px;
  height: 64px;
  background-image: url(../images/game/icon_music.png)
}

#trophy {
  left: 524px;
  top: 522px;
  width: 72px;
  height: 86px;
  background-image: url(../images/game/icon_trophy.png)
}

#trophy small {
  position: absolute;
  left: 8px;
  top: 51px;
  width: 56px;
  height: 16px;
  background: none;
  border: 0;
  font: 600 12px/16px Inter, Arial, sans-serif;
  color: #FFE9B0;
  text-align: center;
  padding: 0
}

#title {
  left: 210px;
  top: 566px;
  width: 300px;
  height: 78px;
  background-image: url(../images/game/title_jackpot.png);
  font-size: 0;
  color: transparent;
  text-shadow: none;
  -webkit-text-stroke: 0;
  letter-spacing: 0
}

#jp {
  left: 210px;
  top: 641px;
  width: 300px;
  height: 54px;
  background-image: url(../images/game/panel_jackpot.png);
  font: 800 29px/48px Inter, Arial, sans-serif;
  padding-top: 3px
}

#jp::before {
  content: none
}

#win {
  left: 256px;
  top: 1056px;
  width: 224px;
  height: 78px;
  /*background-image: url(../images/game/panel_win.png)*/
}

#win::before {
  content: none
}

#win span {
  left: 100px;
  width: 104px;
  top: 15px;
  font: 800 30px/46px Inter, Arial, sans-serif
}

#total {
  left: 128px;
  top: 1072px;
  width: 78px;
  height: 54px;
  background-image: url(../images/game/panel_total.png)
}

#total span {
  display: block;
  margin-top: 25px;
  text-align: center;
  font: 500 22px/28px Inter, Arial, sans-serif;
  color: #fff
}

#lines-label {
  left: 110px;
  top: 1044px;
  width: 110px;
  height: 30px;
  background-image: url(../images/game/text_lines.png);
  font-size: 0
}

#info {
  left: 12px;
  top: 1065px;
  width: 60px;
  height: 66px;
  background-image: url(../images/game/btn_info.png)
}

#minus {
  left: 72px;
  top: 1065px;
  width: 60px;
  height: 66px;
  background-image: url(../images/game/btn_minus.png)
}

#plus {
  left: 201px;
  top: 1065px;
  width: 60px;
  height: 66px;
  background-image: url(../images/game/btn_plus.png)
}

#auto {
  left: 491px;
  top: 1061px;
  width: 78px;
  height: 70px;
  background-image: url(../images/game/btn_auto.png);
  font-size: 0
}

#auto::after {
  content: none
}

#auto.on {
  font: 800 26px/64px Inter, Arial, sans-serif;
  color: #4A2A00;
  background-image: url(../images/game/btn_auto.png)
}

#spin {
  left: 572px;
  top: 1066px;
  width: 124px;
  height: 72px;
  background-image: url(../images/game/btn_spin.png);
  font-size: 0;
  -webkit-text-stroke: 0
}

#pill {
  left: 84px;
  top: 1166px;
  width: 230px;
  height: 50px;
  background-image: url(../images/game/balance_pill.png)
}

#coin {
  left: 75px;
  top: 1175px;
  width: 40px;
  height: 40px;
  background-image: url(../images/game/coin.png);
  z-index: 3
}

#profile {
  left: 12px;
  top: 1170px;
  width: 46px;
  height: 46px;
  background-image: url(../images/game/icon_profile.png)
}

#bal {
  left: 128px
}

#reels {
  box-shadow: none;
  background: none
}

.reel {
  background: url(../images/game/reel_bg.png) 0 0/100% 100% no-repeat;
  box-shadow: none
}

.reel::after {
  content: none
}

.reel+.reel {
  box-shadow: none
}

/* payline numbers 1-30 on both sides must stay visible: the winning ones light up when a result is shown */
#plwrap {
  display: block;
}

#jp {
  background: none;
}

/* AUTO pressed state: stays pushed down + glowing while auto bet is running */

#auto.on {
  font-size: 0;
  background-color: transparent;
  background-image: url(../images/game/btn_auto.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  transform: translateY(4px) scale(.96);
  filter: brightness(.8) saturate(1.15)
}

#auto.on:active {
  transform: translateY(4px) scale(.96)
}

#auto.on::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  right: 4px;
  bottom: 4px;
  border-radius: 50%;
  box-shadow: 0 0 14px 5px rgba(255, 214, 90, .95);
  animation: autoGlow .9s infinite alternate;
  pointer-events: none
}

@keyframes autoGlow {
  from {
    opacity: .35
  }
  to {
    opacity: 1
  }
}

/* Number text in the WIN and JACKPOT panels: same style as the "140" in the reference WIN panel
   (bold, gold gradient, dark-brown outline, soft shadow) */

#win #winv,
#jp #jpv,
#jpv2 {
  font-family: "Arial Black", Impact, Inter, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: .5px;
  background: linear-gradient(180deg, #FFF6B0 0%, #FFD94A 45%, #E8A010 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px #6a3a00;
  paint-order: stroke fill;
  filter: drop-shadow(0 2px 1px rgba(60, 20, 0, .7))
}

#win #winv {
  font-size: 34px
}

#jp #jpv {
  font-size: 35px
}
/* ===== win coins flying into the balance ===== */
.flycoin{position:absolute;left:0;top:0;width:44px;height:44px;margin:-22px 0 0 -22px;background:url(../images/game/coin.png) center/100% 100% no-repeat;z-index:30;pointer-events:none;filter:drop-shadow(0 3px 3px rgba(0,0,0,.4))}
.plusamt{position:absolute;left:150px;top:1172px;font:800 28px/32px Inter,Arial,sans-serif;color:#5CFF7A;-webkit-text-stroke:1px #0a4a1a;paint-order:stroke fill;z-index:31;pointer-events:none;animation:plusUp 1.1s ease-out forwards}
@keyframes plusUp{from{transform:translateY(8px);opacity:0}15%{opacity:1}to{transform:translateY(-44px);opacity:0}}
#coin.pulse{animation:coinPulse .35s ease-out}
@keyframes coinPulse{0%{transform:scale(1)}50%{transform:scale(1.35)}100%{transform:scale(1)}}

/* ===== profile picture (tap to choose your own photo) ===== */
#profile{left:13px;top:1171px;width:54px;height:54px;background-image:url(../images/game/profile_pic.png);background-size:cover;background-position:center;border-radius:50%;border:2px solid #FFE08A;box-shadow:0 2px 6px rgba(0,0,0,.45);cursor:pointer}

/* ===== Rules / Game Info popup - card layout as in the reference video ===== */
.rules .ver{font-size:18px;line-height:26px;color:#cfc8e8;margin-top:6px}
.rules .pay{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0 6px}
.rules .pc{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.1);border-radius:14px;padding:8px 14px 8px 8px}
.rules .pc img{width:86px;height:86px;flex:none}
.rules .rw{display:grid;grid-template-columns:auto auto;column-gap:26px;row-gap:0;margin-left:auto;font-size:22px;line-height:32px;color:#fff;white-space:nowrap}
.rules .g{color:#3CE83C;font-weight:400}
.rules .sp{display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.1);border-radius:14px;padding:8px 14px;margin:10px 0;font-size:22px;line-height:30px}
.rules .sp.col{flex-direction:column;align-items:stretch;gap:2px}
.rules .spt{display:flex;align-items:center;gap:14px}
.rules .spr{display:flex;align-items:center;gap:8px;padding-left:96px;font-size:22px;line-height:34px}
.rules .spr img{width:40px;height:40px}
.rules .sp img{width:80px;height:80px;flex:none}
.rules .spr img{width:40px;height:40px}

/* highlighted payline numbers (left/right) shown while a result is displayed - bright ring in the line's colour */
.pl.on{width:26px;height:26px;margin:-2px 0 0 -2px;background:#f6f2ff;border:3px solid var(--c);color:#3a2a6a;font-weight:800;font-size:12px;line-height:20px;box-shadow:0 0 10px var(--c),0 0 4px #fff;z-index:6}

/* bigger coins that spin (flip) while flying, like in the reference screenshot */
.flycoin{width:76px;height:76px;margin:-38px 0 0 -38px;background:none;filter:drop-shadow(0 4px 4px rgba(0,0,0,.45))}
.flycoin i{display:block;width:100%;height:100%;background:url(../images/game/coin.png) center/100% 100% no-repeat;animation:coinFlip .5s linear infinite}
@keyframes coinFlip{0%{transform:scaleX(1)}25%{transform:scaleX(.35)}50%{transform:scaleX(1)}75%{transform:scaleX(.35)}100%{transform:scaleX(1)}}
.plusamt{font-size:26px}

/* result: left/right numbers of the winning lines - big bright ring + glow so they are clearly visible */
.pl.on{width:30px;height:30px;margin:-4px 0 0 -4px;border:4px solid var(--c);background:#fff;color:#2a1a5a;font-size:13px;line-height:22px;box-shadow:0 0 14px 4px var(--c);z-index:12;transition:none}
