/* Greedy Lion — layout built from the Figma design (390 x 625 game area) */

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  touch-action: manipulation
}

body,
button,
input {
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif
}

button {
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  padding: 0
}

img {
  display: block;
  -webkit-user-drag: none;
  user-drag: none
}

.hidden {
  display: none !important
}

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000
}

#stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 390px;
  height: 625px;
  transform-origin: 0 0;
  overflow: hidden;
  background: #05a8d0
}

section {
  position: absolute;
  inset: 0
}

.abs {
  position: absolute
}

.ibtn {
  position: absolute;
  display: block
}

.ibtn img {
  width: 100%;
  height: 100%;
  pointer-events: none
}

.ibtn:active {
  transform: scale(.93)
}

/* ---------- splash ---------- */

#loading {
  z-index: 60;
  background: #4d47a8 url(../assets/splash_bg.png) center top/100% 100% no-repeat
}

.ld-track {
  position: absolute;
  left: 63.5px;
  top: 297px;
  width: 267px;
  height: 26px;
  background: url(../assets/loader_track.png) 0 0/100% 100% no-repeat
}

.ld-fill {
  position: absolute;
  left: 2px;
  top: 1.9px;
  height: 22.3px;
  width: 0;
  background: url(../assets/loader_fill.png) 0 0/261.9px 22.3px no-repeat;
  border-radius: 11px
}

.ld-text {
  position: absolute;
  left: 0;
  width: 390px;
  top: 301.5px;
  text-align: center;
  color: #fff;
  font-size: 12px;
  line-height: 15px
}

/* ---------- game ---------- */

#game {
  background: #05a8d0 url(../assets/bg.png) 0 0/390px 625px no-repeat
}

.t-round {
  left: 47px;
  top: 13px;
  font-size: 12px;
  line-height: 15px;
  color: #0A5E81
}

#btnMusic i {
  display: none;
  position: absolute;
  left: 3px;
  right: 3px;
  top: 15px;
  height: 3px;
  border-radius: 2px;
  background: #ff5a4d;
  transform: rotate(-45deg)
}

#btnMusic.off i {
  display: block
}

/* domes */

.dome {
  position: absolute;
  z-index: 3;
  cursor: pointer;
  width: 85.56px;
  height: 92.44px
}

.dome img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: filter .12s
}

.sp {
  z-index: 3;
  height: auto;
  transition: filter .12s, transform .12s
}

.sp.hl {
  filter: brightness(1.2) drop-shadow(0 0 6px #ffe36a);
  transform: scale(1.08)
}

.sp.win {
  animation: winArt .45s infinite alternate
}

.game-dim .sp:not(.hl):not(.win) {
  filter: brightness(.55)
}

/* foot / cards */

.card {
  padding: 0;
  z-index: 3
}

.card img {
  width: 100%;
  height: 100%;
  pointer-events: none
}

.card:active {
  transform: translateY(1px)
}

.sqav {
  background: #8a4a2c;
  border: 1.5px solid #e8a443;
  border-radius: 4px;
  z-index: 3
}

.t-card {
  font-size: 11px;
  line-height: 11px;
  color: #7a4a30;
  z-index: 3
}

.t-rank {
  font-size: 16px;
  line-height: 16px;
  font-weight: 500;
  color: #6a2e1a;
  z-index: 3
}

.t-hist {
  font-size: 15px;
  line-height: 15px;
  font-weight: 700;
  color: #6a2e1a;
  z-index: 3
}

.tri {
  width: 0;
  height: 0;
  border-left: 10px solid #dcc3a4;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-top: 2px;
  z-index: 3
}

.t-result {
  font-size: 13px;
  line-height: 13px;
  color: #f3d6c8;
  z-index: 3
}

/* result row */

#resultRow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none
}

.rs {
  position: absolute;
  top: 453.6px;
  width: 29.79px;
  height: 29.79px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fbeed8, #efd7b3);
  border: 1px solid #e3c394;
  box-shadow: inset 0 -2px 0 #d8b78a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden
}

.rs img {
  max-width: 21px;
  max-height: 20px;
  width: auto;
  height: auto
}

.newtag {
  position: absolute;
  left: 60px;
  top: 445px;
  width: 29px;
  height: 11.5px;
  background: #f7d52e;
  border: .5px solid #c58a10;
  border-radius: 2px;
  color: #c0392b;
  font: 700 8px/10.5px Arial, sans-serif;
  text-align: center;
  z-index: 4
}

/* chips */

#chips {
  position: absolute;
  inset: 0;
  z-index: 3
}

.chip {
  position: absolute;
  top: 500.5px;
  width: 64.12px;
  height: 55.57px;
  cursor: pointer;
  transition: filter .15s, transform .12s
}

.chip img {
  width: 100%;
  height: 100%;
  pointer-events: none;
  position: absolute;
  inset: 0
}

.chip.sel {
  transform: translateY(-1px)
}

.chip:active {
  transform: scale(.95)
}

.chip.dis {
  filter: brightness(.55);
  pointer-events: none
}

/* bottom bar */

.t-lbl {
  font-size: 11px;
  line-height: 13px;
  color: #fbe9cf;
  z-index: 3;
  font-weight: 500;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.pill {
  border-radius: 9px;
  background: linear-gradient(#f6dfc0, #ecd0a8);
  box-shadow: inset 0 2px 3px #0004;
  z-index: 3
}

.t-pill {
  font-size: 11px;
  line-height: 17.5px;
  color: #6a2e1a;
  font-weight: 500;
  z-index: 4;
  white-space: nowrap
}

#btnAdd,
#btnAuto {
  z-index: 5
}

#btnAuto.on {
  filter: hue-rotate(-75deg) saturate(1.4)
}

#btnAuto span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 16px/1 Roboto, Arial, sans-serif;
  color: #fff;
  text-shadow: 0 1px 0 #1f6008, 0 0 4px #1f6008;
  pointer-events: none
}

#toast {
  position: absolute;
  left: 50%;
  top: 330px;
  transform: translateX(-50%) scale(.9);
  padding: 6px 14px;
  border-radius: 16px;
  background: #000b;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: .25s;
  z-index: 80;
  pointer-events: none;
  white-space: nowrap
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) scale(1)
}

#winFx {
  position: absolute;
  inset: 0;
  z-index: 70;
  pointer-events: none
}

.winbox {
  position: absolute;
  left: 0;
  top: 150px;
  width: 390px;
  text-align: center;
  animation: winIn 3s forwards
}

.winbox h2 {
  font-size: 38px;
  font-style: italic;
  font-weight: 900;
  color: #ffe03a;
  -webkit-text-stroke: 4px #b34a08;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 #7c2f05
}

.winbox h3 {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  -webkit-text-stroke: 4px #1d7a14;
  paint-order: stroke fill;
  margin-top: 2px
}

@keyframes winIn {
  0% {
    transform: scale(.2);
    opacity: 0
  }
  12% {
    transform: scale(1.15);
    opacity: 1
  }
  20% {
    transform: scale(1)
  }
  85% {
    opacity: 1
  }
  100% {
    opacity: 0;
    transform: translateY(-24px)
  }
}

.cp {
  position: absolute;
  width: 16px;
  height: 16px;
  background: url(../assets/starcoin.png) center/contain no-repeat;
  animation: cfly 1.6s ease-out forwards
}

@keyframes cfly {
  0% {
    transform: translate(0, 0) scale(.4);
    opacity: 1
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(1);
    opacity: 0
  }
}

/* ---------- modals ---------- */

.mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 16, 30, .55);
  z-index: 90
}

.modal {
  position: absolute;
  inset: 0;
  z-index: 91
}

.xhit {
  width: 44px;
  height: 44px;
  z-index: 5;
  position: absolute
}

.rule-txt {
  font-size: 13px;
  line-height: 20px;
  color: #5b2316;
  font-weight: 400
}

.t-sound {
  font-size: 20px;
  line-height: 25px;
  color: #7a3a24
}

#vol {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: 0
}

#vol::-webkit-slider-runnable-track {
  height: 14.5px;
  margin-top: 8.75px;
  border-radius: 8px;
  background: linear-gradient(#ff8a1c, #ff6a00);
  border: 1.5px solid #8a3510;
  box-shadow: inset 0 2px 2px #fff5
}

#vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  margin-top: -11.7px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ff9a3c, #ff7410);
  border: 1px solid #ffb57a;
  box-shadow: 0 2px 3px #0006, inset 0 -2px 3px #d9560a
}

#vol::-moz-range-track {
  height: 14.5px;
  border-radius: 8px;
  background: linear-gradient(#ff8a1c, #ff6a00);
  border: 1.5px solid #8a3510
}

#vol::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ff7410;
  border: 1px solid #ffb57a
}

.t-th {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #6a2e1a;
  white-space: nowrap
}

.t-td {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #5b2316;
  white-space: nowrap
}

.rowbg {
  background: rgba(247, 224, 190, .8);
  border-radius: 6px
}

#histList {
  overflow: auto
}

#histList .hrow {
  display: grid;
  grid-template-columns: 100px 1fr 70px;
  align-items: center;
  height: 30px;
  font-size: 12px;
  color: #5b2316;
  border-bottom: 1px solid #e8cfa8
}

#histList .pos {
  color: #1c8a1c;
  font-weight: 700
}

#histList .neg {
  color: #b22;
  font-weight: 700
}

#histList img {
  height: 18px;
  display: inline-block;
  vertical-align: middle
}

.empty {
  text-align: center;
  padding: 30px;
  color: #9a6a50;
  font-size: 13px
}

.dlg {
  text-align: center;
  font-size: 16px;
  color: #5b2316
}

.dlg p {
  margin-bottom: 16px
}

.dlg input {
  width: 100%;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid #e0b585;
  background: #fff;
  color: #5b2316;
  margin-bottom: 14px;
  user-select: text;
  -webkit-user-select: text
}

.btn {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  padding: 7px 24px;
  border-radius: 20px;
  margin: 0 6px;
  box-shadow: 0 2px 0 #0004
}

.btn.g {
  background: linear-gradient(#8de32e, #35990f)
}

.btn.r {
  background: linear-gradient(#f26a5a, #c92f2f)
}

/* result popup */

.t-res {
  font-size: 12px;
  line-height: 15px;
  color: #ffeccc;
  white-space: nowrap;
  text-shadow: 0 1px 2px #5a0a0a
}

.t-resv {
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: #ffc94a;
  text-shadow: 0 1px 2px #5a0a0a
}

.t-res2 {
  font-size: 14px;
  line-height: 17px;
  color: #ffd24a
}

.t-rk {
  font-size: 12px;
  line-height: 15px;
  color: #ffd24a;
  text-shadow: 0 1px 2px #4a0a2a
}

/* leaderboard */

#lbTabs {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.lbtab {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transition: filter .15s
}

.lbtab.off {
  filter: brightness(.72) saturate(.85)
}

.lbstar {
  position: absolute;
  top: 168.7px;
  width: 6.74px;
  height: 6.74px;
  background: #c9567a;
  transform: rotate(45deg)
}

.lbtable {
  background: #000;
  border: .5px solid #777;
  overflow: hidden
}

.lbhead {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 23px;
  background: linear-gradient(#444, #2e2e2e)
}

.t-lbh {
  font-size: 12px;
  line-height: 15px;
  color: #d8d8d8;
  white-space: nowrap
}

.t-lbh.q {
  width: 11px;
  height: 11px;
  line-height: 10px;
  text-align: center;
  font-size: 8px;
  border: 1px solid #bbb;
  border-radius: 50%;
  margin-top: 1px
}

#lbBody {
  position: absolute;
  inset: 0;
  pointer-events: none
}

#lbBody .vl {
  position: absolute;
  top: 195.7px;
  height: 272.5px;
  width: 0;
  border-left: .5px solid #666
}

#lbBody .hl2 {
  position: absolute;
  left: 30px;
  width: 316.75px;
  height: 0;
  border-top: .5px solid #555
}

#lbBody img.bar {
  position: absolute;
  left: 29.9px;
  width: 318.7px;
  height: 34.66px
}

.lbt {
  position: absolute;
  color: #fff;
  font-size: 12px;
  line-height: 14px;
  white-space: nowrap
}

.lbt.c {
  text-align: center
}

.lbav {
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 3px;
  border: .5px solid #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  overflow: hidden
}

.lbcoin {
  position: absolute;
  width: 14.44px;
  height: 14.44px
}

.lbt.rk4 {
  color: #ddd
}

.cn {
  z-index: 6
}

/* ---- v4: dome states (from the gameplay video) ---- */

#clockNum {
  display: flex;
  align-items: center;
  justify-content: center;
  font: italic 900 24px/1 "Montserrat", "Arial Black", "Segoe UI Black", Arial, sans-serif;
  letter-spacing: -1px;
  color: #f0791a;
  text-shadow: -.7px -.7px 0 #fff3c4, .7px -.7px 0 #fff3c4, -.7px .7px 0 #fff3c4, .7px .7px 0 #fff3c4, 0 1.5px 0 #b84a00;
  z-index: 4;
  pointer-events: none
}

.dome .dim,
.dome .pnk {
  opacity: 0
}

.game-dim .dome .nor {
  opacity: 0
}

.game-dim .dome .dim {
  opacity: 1
}

.dome.has .nor,
.dome.has .dim,
.dome.hl .nor,
.dome.hl .dim,
.dome.win .nor,
.dome.win .dim {
  opacity: 0 !important
}

.dome.has .pnk,
.dome.hl .pnk,
.dome.win .pnk {
  opacity: 1
}

.dome.hl .pnk {
  filter: brightness(1.12) drop-shadow(0 0 6px #ffe36a)
}

.dome.hl,
.dome.win {
  z-index: 6
}

.dome.win .pnk {
  animation: winArt .45s infinite alternate
}

@keyframes winArt {
  from {
    filter: brightness(1.05) drop-shadow(0 0 4px #fff27a)
  }
  to {
    filter: brightness(1.28) drop-shadow(0 0 12px #ffb300) drop-shadow(0 0 4px #fff)
  }
}

.dome .bet {
  position: absolute;
  left: 0;
  right: 0;
  top: 46px;
  text-align: center;
  font-size: 8px;
  line-height: 9px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 1px #7a1f1f, 0 0 2px #7a1f1f;
  display: none;
  z-index: 4
}

.dome.has .bet {
  display: block
}

.dome:active .pnk {
  opacity: 1
}

/* ---- v5: details taken from the gameplay video ---- */

#clockNum {
  font: italic 900 24px/1 "Montserrat", "Arial Black", "Segoe UI Black", Arial, sans-serif;
  color: #e8531a;
  letter-spacing: -1px;
  text-shadow: -.6px -.6px 0 #fff0c4, .6px -.6px 0 #fff0c4, -.6px .6px 0 #fff0c4, .6px .6px 0 #fff0c4, 0 1px 0 #a83a00
}

#clockNum.pulse {
  animation: clk .5s
}

@keyframes clk {
  0% {
    transform: scale(1.35)
  }
  100% {
    transform: scale(1)
  }
}

#trophy {
  z-index: 5;
  display: block
}

#trophy svg {
  width: 100%;
  height: 36px;
  display: block;
  filter: drop-shadow(0 1px 1px #0005)
}

#trophy i {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 1px;
  height: 9px;
  background: #b32323;
  border: 1px solid #f0b85a;
  border-radius: 2px;
  color: #fff;
  font: normal 700 6.5px/8px Arial, sans-serif;
  text-align: center
}

#trophy:active {
  transform: scale(.94)
}

#sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden
}

.cloud {
  position: absolute;
  height: 22px;
  border-radius: 20px;
  background: #fff;
  opacity: .28;
  filter: blur(1.5px);
  animation: cdrift linear infinite
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%
}

.cloud::before {
  width: 30px;
  height: 30px;
  left: 14px;
  top: -14px
}

.cloud::after {
  width: 22px;
  height: 22px;
  left: 42px;
  top: -8px
}

@keyframes cdrift {
  from {
    transform: translateX(-120px)
  }
  to {
    transform: translateX(520px)
  }
}

.bird {
  position: absolute;
  width: 12px;
  height: 8px;
  animation: bflyr linear forwards
}

.bird svg {
  width: 100%;
  height: 100%;
  animation: flap .25s infinite alternate
}

@keyframes flap {
  from {
    transform: scaleY(1)
  }
  to {
    transform: scaleY(.45)
  }
}

@keyframes bflyr {
  from {
    transform: translate(0, 0)
  }
  50% {
    transform: translate(220px, -12px)
  }
  to {
    transform: translate(460px, 6px)
  }
}

.dome .paws {
  position: absolute;
  left: 0;
  right: 0;
  top: 61px;
  display: none;
  justify-content: center;
  gap: 2px;
  z-index: 4
}

.dome .paws i {
  width: 11px;
  height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23f6b93a' stroke='%23b97a14' stroke-width='1.6'/%3E%3Cg fill='%23fff3c4'%3E%3Cellipse cx='12' cy='15' rx='4.6' ry='3.6'/%3E%3Ccircle cx='6.8' cy='10.4' r='1.9'/%3E%3Ccircle cx='10.2' cy='7.4' r='1.9'/%3E%3Ccircle cx='13.8' cy='7.4' r='1.9'/%3E%3Ccircle cx='17.2' cy='10.4' r='1.9'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat
}

.dome.has .paws {
  display: flex
}

.dome .hot {
  position: absolute;
  left: 52px;
  top: 2px;
  width: 30px;
  height: 15px;
  border-radius: 5px;
  background: #e8392b;
  border: 1px solid #fff4;
  color: #ffe45a;
  font: 900 8px/13px Arial, sans-serif;
  text-align: center;
  display: none;
  z-index: 5;
  letter-spacing: .3px
}

.dome .hot::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: -4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #e8392b
}

.dome.top .hot {
  display: block
}

.dome .bet {
  top: 47px;
  font-size: 9px;
  font-weight: 600;
  color: #fff2ee;
  text-shadow: 0 1px 1px #8a2a2a, 0 0 2px #8a2a2a
}

.game-dim .dome.has .bet {
  color: #8a544c
}

#hand {
  position: absolute;
  width: 26px;
  height: 28px;
  z-index: 9;
  pointer-events: none;
  opacity: 0
}

#hand.tap {
  animation: handTap .7s ease-out
}

@keyframes handTap {
  0% {
    opacity: 0;
    transform: translate(8px, 10px) scale(1.1)
  }
  25% {
    opacity: 1;
    transform: translate(0, 0) scale(1)
  }
  45% {
    transform: translate(0, 2px) scale(.88)
  }
  70% {
    opacity: 1;
    transform: translate(0, 0) scale(1)
  }
  100% {
    opacity: 0;
    transform: translate(-4px, -4px)
  }
}

.fcoin {
  position: absolute;
  width: 13px;
  height: 14px;
  background: url(../assets/starcoin.png) center/contain no-repeat;
  z-index: 8;
  pointer-events: none
}

/* result popup: slides up, rotating rays, confetti */

#resBox.in {
  animation: slideUp .6s cubic-bezier(.2, 1.2, .3, 1) both
}

@keyframes slideUp {
  from {
    transform: translateY(60%);
    opacity: 0
  }
  to {
    transform: translateY(0);
    opacity: 1
  }
}

#rays {
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 248, 170, .55) 0 7deg, rgba(255, 200, 60, 0) 7deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0, #000 35%, transparent 72%);
  mask: radial-gradient(circle, #000 0, #000 35%, transparent 72%);
  animation: spinr 8s linear infinite
}

@keyframes spinr {
  to {
    transform: rotate(360deg)
  }
}

#resFood {
  animation: foodPop 1s ease-out both
}

@keyframes foodPop {
  0% {
    transform: scale(.2) rotate(-25deg);
    opacity: 0
  }
  45% {
    transform: scale(1.25) rotate(6deg);
    opacity: 1
  }
  70% {
    transform: scale(.95)
  }
  100% {
    transform: scale(1) rotate(0)
  }
}

.cf {
  position: absolute;
  width: 7px;
  height: 4px;
  top: -8px;
  animation: cfall linear forwards
}

@keyframes cfall {
  to {
    transform: translate(var(--dx), 330px) rotate(var(--rot))
  }
}

.t-res.c {
  text-align: center
}

.t-res {
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 2px #5a0a0a, 0 0 3px #5a0a0a
}

.t-resv {
  font-size: 15px;
  color: #fff3c4
}

.t-rk {
  color: #ffd24a
}

.chip span {
  position: absolute;
  left: 0;
  right: 0;
  top: 36px;
  text-align: center;
  font: 500 11px/14px Roboto, Arial, sans-serif;
  color: #fff;
  text-shadow: 0 1px 1px #8a3a1a;
  pointer-events: none
}

/* ---- v6: hover (glove cursor + pink dome) and Firefox-safe glow (no filters on dome art) ---- */

.dome {
  cursor: url(../assets/glove.svg) 8 3, pointer
}

.dome.hl .pnk,
.dome.win .pnk {
  filter: none !important;
  animation: none !important
}

.dome::before {
  content: "";
  position: absolute;
  left: -14px;
  top: -10px;
  right: -14px;
  bottom: -8px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 120, .85), rgba(255, 200, 60, .35) 60%, rgba(255, 200, 60, 0));
  opacity: 0;
  pointer-events: none;
  z-index: 0
}

.dome.hl::before {
  opacity: 1
}

.dome.win::before {
  opacity: 1;
  animation: glowP .45s infinite alternate
}

@keyframes glowP {
  from {
    opacity: .55;
    transform: scale(.95)
  }
  to {
    opacity: 1;
    transform: scale(1.12)
  }
}

.dome img {
  z-index: 1
}

#game:not(.game-dim) .dome:hover .nor {
  opacity: 0
}

#game:not(.game-dim) .dome:hover .pnk {
  opacity: 1
}

#chips {
  pointer-events: none
}

.chip {
  pointer-events: auto
}

.chip.dis {
  pointer-events: none
}

/* ---- v7: betting effect exactly like the video ---- */

/* bet keeps the normal cream dome (pink only on hover / spin pointer); amount is dark on cream */

.dome.has .nor {
  opacity: 1 !important
}

.dome.has .pnk {
  opacity: 0
}

.dome.has:hover .nor {
  opacity: 0 !important
}

.dome.has:hover .pnk {
  opacity: 1
}

.dome.hl .nor,
.dome.win .nor {
  opacity: 0 !important
}

.dome.hl .pnk,
.dome.win .pnk {
  opacity: 1
}

.game-dim .dome.has .nor {
  opacity: 0 !important
}

.game-dim .dome.has .dim {
  opacity: 1 !important
}

.game-dim .dome.hl .dim,
.game-dim .dome.win .dim,
.game-dim .dome.has.hl .dim {
  opacity: 0 !important
}

.dome .bet {
  color: #6b5850;
  text-shadow: none;
  font-weight: 600
}

.dome.hl .bet,
.dome.win .bet,
.dome:hover .bet,
.game-dim .dome .bet {
  color: #fff;
  text-shadow: 0 1px 1px #8a2a2a, 0 0 2px #8a2a2a
}

.dome .paws {
  display: none !important
}

.dome.has.pw .paws {
  display: flex !important
}

.dome .hot {
  left: 60px;
  top: 3px
}

.chip.press {
  animation: chipPress .28s ease-out
}

@keyframes chipPress {
  0% {
    transform: scale(1)
  }
  35% {
    transform: scale(1.22)
  }
  100% {
    transform: scale(1)
  }
}

.dome .dim {
  filter: brightness(1.38) saturate(.95)
}

/* ---- v8: little lion idle animation (from the video: blinks/winks every 2s, gentle head sway) ---- */

#lionWrap {
  z-index: 2;
  transform-origin: 50% 92%;
  animation: lionSway 3.6s ease-in-out infinite
}

#lionWrap img {
  width: 100%;
  height: 100%;
  display: block;
  filter: none
}

@keyframes lionSway {
  0%,
  100% {
    transform: rotate(-1.1deg) scale(1)
  }
  50% {
    transform: rotate(1.3deg) scale(1.012)
  }
}

.lid {
  position: absolute;
  width: 18px;
  height: 12px;
  border-radius: 50% 50% 55% 55%/45% 45% 60% 60%;
  background: radial-gradient(ellipse at 50% 30%, #f3a93f, #e98f26);
  border-bottom: 1.6px solid #5b2f12;
  opacity: 0;
  animation: lidBlink 2.2s infinite;
  pointer-events: none
}

.lid:nth-of-type(2) {
  animation-delay: .03s
}

@keyframes lidBlink {
  0%,
  86%,
  100% {
    opacity: 0;
    transform: scaleY(.3)
  }
  90% {
    opacity: 1;
    transform: scaleY(1)
  }
  95% {
    opacity: 1;
    transform: scaleY(1)
  }
  98% {
    opacity: 0;
    transform: scaleY(.4)
  }
}

/* v9: blink = crossfade to a closed-eyes version of the same lion image (no overlay glitches) */

.lid {
  display: none !important
}

#lionWrap .blink {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  pointer-events: none;
  animation: blinkA 2.2s infinite
}

@keyframes blinkA {
  0%,
  85%,
  100% {
    opacity: 0
  }
  88% {
    opacity: 1
  }
  93% {
    opacity: 1
  }
  96% {
    opacity: 0
  }
}

/* v10: head nod like the video - every 2.2s the head dips down + tilts, wink/blink at the bottom, then comes back up */

#lionWrap {
  animation: lionNod 2.2s ease-in-out infinite;
  transform-origin: 50% 94%
}

@keyframes lionNod {
  0%,
  62% {
    transform: translateY(0) rotate(0) scaleY(1)
  }
  76% {
    transform: translateY(0) rotate(-1.2deg) scaleY(.985)
  }
  88% {
    transform: translateY(1px) rotate(-2.6deg) scaleY(.952)
  }
  94% {
    transform: translateY(1px) rotate(-2.2deg) scaleY(.955)
  }
  100% {
    transform: translateY(0) rotate(0) scaleY(1)
  }
}

/* v11: slower, continuous (no resting pause): head keeps gently nodding down/up, blink at the lowest point */

#lionWrap {
  animation: lionNod2 4.4s ease-in-out infinite;
  transform-origin: 50% 94%
}

@keyframes lionNod2 {
  0% {
    transform: translateY(0) rotate(1deg) scaleY(1)
  }
  50% {
    transform: translateY(1px) rotate(-2.6deg) scaleY(.952)
  }
  100% {
    transform: translateY(0) rotate(1deg) scaleY(1)
  }
}

#lionWrap .blink {
  animation: blinkB 4.4s ease-in-out infinite
}

@keyframes blinkB {
  0%,
  43%,
  58%,
  100% {
    opacity: 0
  }
  48%,
  53% {
    opacity: 1
  }
}

/* v12: smaller neck dip */

@keyframes lionNod2 {
  0% {
    transform: translateY(0) rotate(.5deg) scaleY(1)
  }
  50% {
    transform: translateY(0) rotate(-1.2deg) scaleY(.982)
  }
  100% {
    transform: translateY(0) rotate(.5deg) scaleY(1)
  }
}

/* v13: text styles from the video screenshot */

.dome .bet,
.dome.hl .bet,
.dome.win .bet,
.dome:hover .bet,
.game-dim .dome .bet {
  font-size: 11.5px;
  line-height: 12px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 1px rgba(110, 60, 40, .65), 0 0 2px rgba(110, 60, 40, .5);
  letter-spacing: 0;
  top: 45px
}

#clockNum {
  font: italic 900 25px/1 "Arial Black", "Montserrat", "Segoe UI Black", Arial, sans-serif;
  letter-spacing: -.5px;
  color: #f9a11b;
  -webkit-text-stroke: 2.4px #9a3a0c;
  paint-order: stroke fill;
  text-shadow: 0 1px 0 rgba(120, 40, 0, .5)
}

/* v14: bet amount / paws / HOT exactly as in the video (zoomed frame measurements) */

.dome .bet,
.dome.hl .bet,
.dome.win .bet,
.dome:hover .bet,
.game-dim .dome .bet {
  top: 38px;
  font: 500 12px/12px Roboto, "Segoe UI", Arial, sans-serif;
  color: #8a544c;
  text-shadow: none;
  -webkit-text-stroke: .35px #7a3f38;
  letter-spacing: 0
}

.dome .paws {
  top: 64px;
  gap: 3px
}

.dome .paws i {
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffb02e'/%3E%3Cstop offset='1' stop-color='%23ff4a1c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='11' fill='%23ee5326' stroke='%23b42a12' stroke-width='1.8'/%3E%3Cg fill='url(%23g)'%3E%3Cellipse cx='12' cy='15.4' rx='5.2' ry='4' fill='%23ffd93c'/%3E%3Cellipse cx='12' cy='17.2' rx='4.6' ry='2.4' fill='%23ff9a2a' opacity='.55'/%3E%3Ccircle cx='6.6' cy='10.6' r='2.1'/%3E%3Ccircle cx='10' cy='7.4' r='2.1'/%3E%3Ccircle cx='14' cy='7.4' r='2.1'/%3E%3Ccircle cx='17.4' cy='10.6' r='2.1'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat
}

.dome .hot {
  left: 59px;
  top: 0;
  width: 34px;
  height: 18px;
  border-radius: 4px;
  background: #e1504a;
  border: 0;
  color: #ffe44a;
  font: 900 12.5px/18px Arial, sans-serif;
  letter-spacing: .2px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .25)
}

.dome .hot::after {
  left: 5px;
  bottom: -5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #e1504a
}

/* v15: clock number centred in the watch face, smaller */

#clockNum {
  left: 175.5px !important;
  top: 208px !important;
  width: 44px !important;
  height: 30px !important;
  font-size: 19px;
  letter-spacing: 0;
  -webkit-text-stroke: 2px #9a3a0c;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-right: 1px
}

/* v16: last 3 seconds - red digits and a shaking clock (from the video) */

#clockNum.red {
  color: #ec2b2f;
  -webkit-text-stroke: 2px #8a1414
}

#clockNum.shake {
  animation: clkShake .5s ease-out
}

@keyframes clkShake {
  0% {
    transform: scale(1.3) rotate(0)
  }
  15% {
    transform: scale(1.15) rotate(-16deg)
  }
  35% {
    transform: scale(1.1) rotate(13deg)
  }
  55% {
    transform: rotate(-8deg)
  }
  75% {
    transform: rotate(4deg)
  }
  100% {
    transform: scale(1) rotate(0)
  }
}

/* v17: background birds (red, yellow beak, flapping wings) flying across the sky */

.bird2 {
  position: absolute;
  width: 26px;
  height: 16px;
  animation: bfly linear forwards;
  transform: scale(var(--sc, 1))
}

.bird2 .bwave {
  width: 100%;
  height: 100%;
  animation: bbob .9s ease-in-out infinite alternate
}

.bird2 svg {
  width: 100%;
  height: 100%;
  overflow: visible
}

.bird2 .wing {
  transform-origin: 16px 11px;
  animation: bflap .16s ease-in-out infinite alternate
}

@keyframes bflap {
  from {
    transform: rotate(18deg) scaleY(1)
  }
  to {
    transform: rotate(-34deg) scaleY(.7)
  }
}

@keyframes bbob {
  from {
    transform: translateY(-4px)
  }
  to {
    transform: translateY(5px)
  }
}

@keyframes bfly {
  from {
    left: -30px
  }
  to {
    left: 420px
  }
}

/* v18: dome size like the video (80 x 81.3 instead of the Figma 85.6 x 92.4): narrower, shorter cap, arches kept */

.dome {
  width: 80px;
  height: 81.3px
}

.dome .v {
  position: absolute;
  left: 0;
  top: 0;
  width: 80px;
  height: 81.3px;
  pointer-events: none
}

.dome .v img {
  position: absolute;
  inset: auto;
  left: 0;
  top: 0;
  width: 85.56px;
  height: 92.44px;
  transform-origin: 0 0
}

.dome .v img.t {
  clip-path: inset(0 0 38% 0);
  transform: scale(.935, .855)
}

.dome .v img.b {
  clip-path: inset(62% 0 0 0);
  transform: translateY(-3.7px) scale(.935, .92)
}

.dome::before {
  left: -12px;
  right: -12px;
  top: -8px;
  bottom: -6px
}

#d_strawberry {
  top: 49.6px !important;
}

#d_chicken {
  left: 154.7px !important;
  top: 19.2px !important;
}

.lbt.dk {
  color: #000 !important;
  text-shadow: none
}

/* trophy icon (your image); timer sits on its red ribbon */

#trophy img {
  width: 100%;
  height: 100%;
  display: block
}

#trophy i {
  left: 0;
  right: 0;
  top: 28.5px;
  bottom: auto;
  height: 8px;
  background: none;
  border: 0;
  border-radius: 0;
  color: #fff;
  font: 700 6.5px/8px Arial, sans-serif;
  text-align: center;
  text-shadow: 0 1px 1px rgba(90, 0, 0, .7);
  letter-spacing: .2px
}

#d_grapes {
  left: 157.1px !important;
  top: 272.3px !important;
}

/* v21: Today Rank / MyHistory text like the video (smaller, medium weight, dark brown) */

.t-card {
  font: 500 10.5px/11px Roboto, Arial, sans-serif;
  color: #5e4036;
  left: 87.5px !important;
  top: 380.5px !important
}

.t-rank {
  font: 500 14px/14px Roboto, Arial, sans-serif;
  color: #6b4c3f;
  top: 398.5px !important;
  left: 112px !important
}

.t-hist {
  font: 500 12.5px/15px Roboto, Arial, sans-serif;
  color: #6b4c3f;
  top: 392px !important
}

/* v22: Today Rank / MyHistory card matched to the design image */

.t-card {
  font: 500 9.5px/11px Roboto, "Segoe UI", Arial, sans-serif !important;
  color: #4a3028 !important;
  -webkit-text-stroke: .25px #4a3028
}

.t-rank {
  font: 500 14px/14px Roboto, "Segoe UI", Arial, sans-serif !important;
  color: #4a3028 !important;
  -webkit-text-stroke: .25px #4a3028
}

.t-hist {
  font: 600 12px/15px Roboto, "Segoe UI", Arial, sans-serif !important;
  color: #4a3028 !important
}

#btnRank+.sqav,
.sqav[style*="left:46px;top:383px"] {
  left: 45px !important;
  top: 377.5px !important;
  width: 37px !important;
  height: 37px !important;
  border: 2px solid #e3a23c;
  border-radius: 5px
}

.rs img {
  max-width: 25px;
  max-height: 24px
}

/* auto finger: wanders over the domes during betting (not mouse driven), the dome under it turns pink, gone after count 4 */

#hand.auto {
  opacity: 1;
  transition: left .55s ease-in-out, top .55s ease-in-out;
  animation: fgBob .6s ease-in-out infinite alternate
}

@keyframes fgBob {
  from {
    margin: 0
  }
  to {
    margin: -3px 0 0 -2px
  }
}

.dome.fg .nor {
  opacity: 0 !important
}

.dome.fg .pnk {
  opacity: 1 !important
}

#hand.auto {
  transition: left .45s ease-in-out, top .45s ease-in-out
}

#hand.auto {
  transition: left .8s ease-in-out, top .8s ease-in-out
}

/* result popup: the baked-in lion is animated (head tilts/nods, body breathes) like the video */

.lionpart {
  position: absolute;
  left: 0;
  top: 0;
  width: 391.3px;
  height: 347.2px;
  background: url(../assets/pop_result.png) 0 0/391.3px auto no-repeat;
  pointer-events: none
}

.lbody {
  clip-path: inset(184px 271px 112px 8px);
  transform-origin: 64px 235px;
  animation: lBody 1.8s ease-in-out infinite alternate
}

.lhead {
  clip-path: inset(92px 271px 162px 8px);
  transform-origin: 64px 186px;
  animation: lHead 1.8s ease-in-out infinite
}

@keyframes lBody {
  from {
    transform: scaleY(1)
  }
  to {
    transform: scaleY(1.02)
  }
}

@keyframes lHead {
  0% {
    transform: rotate(-2.5deg) translateY(1px)
  }
  25% {
    transform: rotate(1.5deg) translateY(-1px)
  }
  50% {
    transform: rotate(3deg) translateY(1px)
  }
  75% {
    transform: rotate(-1deg) translateY(-1px)
  }
  100% {
    transform: rotate(-2.5deg) translateY(1px)
  }
}

/* v23: result-popup lion = frames cut from the video (hands on cheeks, head sway, wink), looped smoothly */

.lbody,
.lhead,
.lionpart {
  display: none !important
}

.lionspr {
  position: absolute;
  left: 0;
  top: 97px;
  width: 121.9px;
  height: 154.4px;
  background: url(../assets/lionsprite.png) 0 0/3168.75px 154.4px no-repeat;
  animation: lionSpr 1.3s steps(26) infinite;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 78%, transparent 100%)
}

@keyframes lionSpr {
  from {
    background-position: 0 0
  }
  to {
    background-position: -3168.75px 0
  }
}

/* smoother: a second copy of the frames, half a frame later and half transparent, blends neighbouring frames */

.lionspr.l2 {
  animation-delay: -.025s;
  opacity: .5
}

.dome {
  cursor: default !important
}

/* profile pictures */

.sqav {
  background: #8a4a2c url(../assets/avatar.png) center/cover no-repeat !important
}

.lbav img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

#btnAuto.on {
  filter: none !important;
  animation: none !important
}

#autoTxt {
  display: none !important
}

/* mouse hover no longer changes the dome colour - only the dome under the auto finger (.fg) turns pink */

#game:not(.game-dim) .dome:not(.fg):not(.hl):not(.win):hover .nor {
  opacity: 1 !important
}

#game:not(.game-dim) .dome:not(.fg):not(.hl):not(.win):hover .pnk {
  opacity: 0 !important
}

#game:not(.game-dim) .dome:not(.fg):not(.hl):not(.win):hover .bet {
  color: #8a544c !important;
  text-shadow: none !important
}

.dome.fg .bet {
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(110, 60, 40, .65) !important
}

/* v24 finger like the video: sits at the dome's right-hand side, tilted, taps once per dome (1.1s), glides quickly to the next dome clockwise */

#hand.auto {
  transition: left .35s ease-in-out, top .35s ease-in-out !important;
  animation: fgTap 1.1s ease-in-out infinite !important;
  transform: rotate(-14deg);
  transform-origin: 20% 10%
}

@keyframes fgTap {
  0%,
  55% {
    transform: rotate(-14deg) scale(1)
  }
  68% {
    transform: rotate(-14deg) scale(.86) translate(-2px, -3px)
  }
  82%,
  100% {
    transform: rotate(-14deg) scale(1)
  }
}

/* bet amount keeps its colour when the finger is on the dome */

.dome.fg .bet,
#game:not(.game-dim) .dome.fg .bet {
  color: #8a544c !important;
  text-shadow: none !important
}

/* watch (clock face) shakes during the 3-2-1 count: a clipped copy of the lion's watch rotates/scales like the video */

#lionWrap .wtch {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: url(../assets/lion.png) 0 0/100% 100% no-repeat;
  clip-path: circle(24.5px at 41.4px 112.8px);
  transform-origin: 41.4px 112.8px;
  pointer-events: none
}

#lionWrap .wtch.wshake {
  animation: wtchShake .5s ease-out
}

@keyframes wtchShake {
  0% {
    transform: scale(1.18) rotate(0)
  }
  15% {
    transform: scale(1.1) rotate(-9deg)
  }
  32% {
    transform: scale(1.06) rotate(8deg)
  }
  50% {
    transform: rotate(-5deg)
  }
  70% {
    transform: rotate(3deg)
  }
  100% {
    transform: scale(1) rotate(0)
  }
}

/* v25: win popup - new background + your new lion. Head/hands/scarf part sways, wink every 1.3s, body breathes (video: hands on cheeks, head tilting) */

.lbody,
.lhead,
.lionpart,
.lionspr {
  display: none !important
}

.wlion {
  position: absolute;
  left: 5px;
  top: 70px;
  width: 108px;
  height: 127.5px;
  pointer-events: none;
  z-index: 1
}

.wlion img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block
}

.wl-low {
  position: absolute;
  inset: 0;
  clip-path: inset(55% 0 0 0);
  transform-origin: 50% 100%;
  animation: wlBreath 1.3s ease-in-out infinite
}

.wl-up {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 40% 0);
  transform-origin: 50% 62%;
  animation: wlSway 1.3s ease-in-out infinite
}

.wl-bl {
  opacity: 0;
  animation: wlWink 1.3s infinite
}

@keyframes wlSway {
  0% {
    transform: rotate(-3.2deg) translate(1px, 1px) scale(1.01, .99)
  }
  25% {
    transform: rotate(0deg) translate(0, -1.5px) scale(1, 1.01)
  }
  50% {
    transform: rotate(3.2deg) translate(-1px, 1px) scale(1.01, .99)
  }
  75% {
    transform: rotate(0deg) translate(0, -1.5px) scale(1, 1.01)
  }
  100% {
    transform: rotate(-3.2deg) translate(1px, 1px) scale(1.01, .99)
  }
}

@keyframes wlBreath {
  0%,
  100% {
    transform: scaleY(1)
  }
  50% {
    transform: scaleY(1.018)
  }
}

@keyframes wlWink {
  0%,
  66% {
    opacity: 0
  }
  70%,
  80% {
    opacity: 1
  }
  86%,
  100% {
    opacity: 0
  }
}

.wlion {
  left: 15px !important;
  top: 86px !important;
  width: 92px !important;
  height: 108.5px !important
}

/* v26: losing popup - same stage, but the lion cries (frames cut from the new video: shocked face, tears, wink every 2s) */

.closion {
  position: absolute;
  left: 8px;
  top: 75.5px;
  width: 95.4px;
  height: 125.4px;
  display: none;
  pointer-events: none;
  z-index: 1
}

#resBox.lose .closion {
  display: block
}

#resBox.lose .wlion {
  display: none
}

.lsp {
  position: absolute;
  inset: 0;
  background: url(../assets/losesprite.png) 0 0/3815.7px 125.4px no-repeat;
  animation: loseSpr 2s steps(40) infinite;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 80%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 80%, transparent 100%)
}

.lsp.l2 {
  animation-delay: -.0125s;
  opacity: .5
}

@keyframes loseSpr {
  from {
    background-position: 0 0
  }
  to {
    background-position: -3815.7px 0
  }
}

/* result icon: pops in, then keeps floating / swaying / pulsing (video) */

#resFood {
  animation: foodPop 1s ease-out both, foodFloat 1.6s ease-in-out 1s infinite !important;
  filter: drop-shadow(0 3px 4px rgba(90, 20, 0, .45))
}

@keyframes foodFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg) scale(1)
  }
  25% {
    transform: translateY(-3px) rotate(0deg) scale(1.05)
  }
  50% {
    transform: translateY(0) rotate(5deg) scale(1)
  }
  75% {
    transform: translateY(3px) rotate(0deg) scale(.96)
  }
}

/* result popup entrance like the video: slides up from below the screen in ~0.7s, no bounce, no fade */

#resBox.in {
  animation: slideUp2 .7s cubic-bezier(.22, .7, .3, 1) both !important
}

@keyframes slideUp2 {
  from {
    transform: translateY(520px);
    opacity: 1
  }
  to {
    transform: translateY(0);
    opacity: 1
  }
}

/* v27: top buttons like the design image: translucent teal circle, thin light ring, white glyph */

.ibtn .tb {
  position: absolute;
  left: 1.5px;
  top: 2px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: rgba(14, 106, 140, .42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 1px 2px rgba(0, 60, 90, .25);
  display: flex;
  align-items: center;
  justify-content: center
}

.ibtn .tb svg {
  width: 17px;
  height: 17px;
  display: block
}

.ibtn .tb span {
  font: 900 20px/1 "Arial Black", Arial, sans-serif;
  color: #fff;
  margin-top: -1px
}

#btnBack .tb svg {
  width: 18px;
  height: 18px
}

#btnMusic i {
  top: 15.5px
}

.ibtn .tb {
  background: rgba(22, 128, 160, .5);
  box-shadow: inset 0 0 0 1.2px rgba(255, 255, 255, .32), 0 1px 2px rgba(0, 60, 90, .2)
}

.ibtn .tb svg {
  width: 19px;
  height: 19px
}

#btnBack .tb svg {
  width: 21px;
  height: 21px
}

.ibtn .tb span {
  font-size: 22px
}

/* top buttons = icons cropped from your design image */

.ibtn .tbi {
  position: absolute;
  left: 1.5px;
  top: 2px;
  width: 29px;
  height: 29px;
  display: block;
  pointer-events: none
}

/* v28: big soft clouds drifting slowly across behind the wheel (video) */

.cloud {
  height: 30px !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, .78) !important;
  opacity: 1 !important;
  filter: blur(2.5px) !important;
  animation-name: cdrift2 !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important
}

.cloud::before {
  width: 44px !important;
  height: 44px !important;
  left: 16% !important;
  top: -22px !important
}

.cloud::after {
  width: 34px !important;
  height: 34px !important;
  left: 50% !important;
  top: -15px !important
}

@keyframes cdrift2 {
  from {
    transform: translateX(-140px)
  }
  to {
    transform: translateX(520px)
  }
}

#sky {
  z-index: 0 !important
}

/* birds fly both ways: left->right and right->left (mirrored) */

.bird2 {
  transform: scale(calc(var(--sc, 1) * var(--fx, 1)), var(--sc, 1)) !important
}

@keyframes bflyL {
  from {
    left: 420px
  }
  to {
    left: -30px
  }
}

/* card arrows inside the cards like the design (grey-beige, near the right edge) */

.tri {
  border-left: 11px solid #d3c1ad !important;
  border-top: 7.5px solid transparent !important;
  border-bottom: 7.5px solid transparent !important;
  top: 387.5px !important;
  z-index: 6 !important;
  
}

.tri:first-of-type {}
/* v29: loader exactly like the design image */
#loading{background:
 linear-gradient(rgba(112,138,245,.38),rgba(112,138,245,.38)) 307px 372px/45px 45px no-repeat,
 linear-gradient(rgba(112,138,245,.34),rgba(112,138,245,.34)) 329px 470px/46px 46px no-repeat,
 linear-gradient(rgba(112,138,245,.34),rgba(112,138,245,.34)) 72px 512px/43px 43px no-repeat,
 linear-gradient(rgba(112,138,245,.4),rgba(112,138,245,.4)) 12px 562px/39px 39px no-repeat,
 linear-gradient(rgba(112,138,245,.3),rgba(112,138,245,.3)) 11px 407px/27px 27px no-repeat,
 linear-gradient(rgba(112,138,245,.3),rgba(112,138,245,.3)) 175px 560px/40px 40px no-repeat,
 linear-gradient(#4b44a5 0,#5766bd 38%,#6a8fd8 70%,#78a9e6 100%)!important}
.ld-track{left:66px!important;top:296px!important;width:258px!important;height:28px!important;border-radius:15px;background:#1b1f3a!important;border:2.2px solid #8d97b0;box-shadow:0 2px 4px rgba(10,15,50,.45),inset 0 1px 3px rgba(0,0,0,.5)}
.ld-fill{left:1px!important;top:1px!important;height:21.6px!important;border-radius:11px!important;background:repeating-linear-gradient(115deg,#f8a321 0 6px,#ee7d0d 6px 12px)!important;box-shadow:inset 0 2px 2px rgba(255,255,255,.35),inset 0 -2px 2px rgba(150,60,0,.3)}
.ld-text{top:301.5px!important;font:400 12.5px/17px Roboto,"Segoe UI",Arial,sans-serif!important;color:#fff!important;text-shadow:0 1px 1px rgba(0,0,0,.35)}

/* "Tap to start" after loading - the tap also unlocks the browser's sound */
.ld-text.tap{animation:ldBlink 1s ease-in-out infinite;font-weight:700;letter-spacing:.5px}
@keyframes ldBlink{0%,100%{opacity:1}50%{opacity:.35}}
#loading{cursor:pointer}
#loading{cursor:default!important}

/* v30: WIN effect (from the video): a bright sun-burst inside a glass bubble expands as the popup rises, star sparkles fly out */
.wburst{position:absolute;left:195px;top:74px;width:0;height:0;pointer-events:none;z-index:4}
#resBox.lose .wburst{display:none!important}
.wburst i{position:absolute;display:block;border-radius:50%;transform:translate(-50%,-50%)}
.wb-glow{width:230px;height:230px;background:radial-gradient(circle,#fff 0,#fff3a0 18%,#ffb62e 40%,rgba(255,140,20,.55) 62%,rgba(255,120,0,0) 72%);animation:wbGlow 1.1s ease-out both}
.wb-ring{width:150px;height:150px;border:3px solid rgba(255,255,255,.8);background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.55),rgba(255,255,255,.12) 45%,rgba(255,255,255,0) 70%);box-shadow:0 0 14px rgba(255,255,255,.7),inset 0 0 18px rgba(255,255,255,.55);animation:wbRing 1.1s ease-out both}
.wb-ring.r2{width:110px;height:110px;animation-delay:.12s;opacity:.7}
.wb-st{width:16px;height:16px;border-radius:0!important;background:#fff;clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);animation:wbStar 1.1s ease-out both}
.wb-st.s1{--dx:-120px;--dy:-60px}.wb-st.s2{--dx:125px;--dy:-40px}.wb-st.s3{--dx:-95px;--dy:70px}.wb-st.s4{--dx:100px;--dy:80px}.wb-st.s5{--dx:10px;--dy:-120px}
@keyframes wbGlow{0%{transform:translate(-50%,-50%) scale(.2);opacity:1}35%{opacity:1}100%{transform:translate(-50%,-50%) scale(1.7);opacity:0}}
@keyframes wbRing{0%{transform:translate(-50%,-50%) scale(.3);opacity:1}100%{transform:translate(-50%,-50%) scale(1.5);opacity:0}}
@keyframes wbStar{0%{transform:translate(-50%,-50%) scale(.2) rotate(0);opacity:1}100%{transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) scale(1.3) rotate(120deg);opacity:0}}

/* each bet tap: the dome zooms up ~12% and settles back (video, ~0.3s) */
.dome.pop{animation:betPop .32s cubic-bezier(.3,1.4,.5,1)}
@keyframes betPop{0%{transform:scale(1)}35%{transform:scale(1.13)}70%{transform:scale(.98)}100%{transform:scale(1)}}

/* win popup: "This Round Ranking" profile (video) + coins fly to the balance */
.rkbox{position:absolute;left:145px;top:244px;width:100px;height:90px;text-align:center}
#resBox.lose .rkbox{display:none}
.rkav{position:absolute;left:28px;top:12px;width:44px;height:44px;border-radius:50%;border:3px solid #f3c049;background:#fbeed5;box-shadow:0 0 0 2px #a8681c,0 0 8px rgba(255,200,80,.7);overflow:hidden}
.rkav img{width:100%;height:100%;object-fit:cover;display:block}
.rkcrown{position:absolute;left:34px;top:-2px;width:32px;height:21px}
.rkname{position:absolute;left:12px;top:53px;width:76px;height:13px;line-height:13px;background:#ffd21f;color:#5a2a00;font:700 7.5px/13px Arial,sans-serif;clip-path:polygon(0 0,100% 0,94% 50%,100% 100%,0 100%,6% 50%);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 8px}
.rkpts{position:absolute;left:18px;top:70px;width:64px;height:12px;border-radius:7px;background:#4a1428;color:#ffc94a;font:700 8px/12px Arial,sans-serif}
.rkpts .cn2{display:inline-block;width:9px;height:9px;margin:1.5px 3px -1.5px 0;background:url(../assets/starcoin.png) center/contain no-repeat}
.flyc{position:absolute;width:20px;height:21.5px;background:url(../assets/starcoin.png) center/contain no-repeat;z-index:95;pointer-events:none}
