* {
  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;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  touch-action: manipulation
}

button {
  font-family: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit
}

.hidden {
  display: none !important
}

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

.stage-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center
}

.stage {
  position: relative;
  width: 720px;
  height: 1140px;
  flex: none;
  transform-origin: center bottom;
  overflow: hidden;
  background: #2b1013
}

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

#loading {
  background: #000
}

.load-stage {
  background: linear-gradient(#4a45a8 0%, #5f6fc0 45%, #7aa8e4 100%)
}

.squares i {
  position: absolute;
  background: rgba(110, 140, 240, .35)
}

.loadbar {
  position: absolute;
  left: 120px;
  top: 540px;
  width: 480px;
  height: 54px;
  border-radius: 30px;
  background: #1b1f38;
  border: 4px solid #8e95a8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
  overflow: hidden
}

.loadfill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 30px;
  background: repeating-linear-gradient(115deg, #f6a21b 0 16px, #ee7d08 16px 32px);
  transition: width .15s
}

.loadbar span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4)
}

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

.hall {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(120, 70, 50, .45), transparent 55%), linear-gradient(#241214, #3a1b17 55%, #2a1210)
}

.hall .lane {
  position: absolute;
  left: 50%;
  top: 150px;
  width: 0;
  height: 0;
  border-left: 360px solid transparent;
  border-right: 360px solid transparent;
  border-top: 300px solid rgba(70, 35, 25, .55);
  transform: translateX(-50%)
}

.chand {
  position: absolute;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #e8c98a, #6d4a25 70%);
  opacity: .5;
  box-shadow: 0 0 18px rgba(255, 220, 150, .5)
}

.c1 {
  left: 300px;
  top: 20px;
  width: 130px
}

.c2 {
  left: 320px;
  top: 68px;
  width: 90px
}

.poker {
  position: absolute;
  right: -10px;
  top: 12px;
  font: 700 28px Georgia, serif;
  color: rgba(255, 255, 255, .35);
  background: rgba(0, 0, 0, .3);
  padding: 4px 18px 4px 10px;
  border-radius: 12px 0 0 12px
}

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

.round-btn {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, #ffe58a, #e8b933 70%);
  border: 6px solid #6b5a52;
  box-shadow: 0 0 0 2px #d9b45a inset, 0 3px 6px rgba(0, 0, 0, .5);
  transition: transform .1s
}

.round-btn:active {
  transform: scale(.92)
}

.round-btn.big {
  width: 92px;
  height: 92px;
  border-width: 6px
}

.x {
  position: relative;
  display: block;
  width: 30px;
  height: 30px
}

.x:before,
.x:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 7px;
  background: #5a3b08;
  border-radius: 4px
}

.x:before {
  transform: translate(-50%, -50%) rotate(45deg)
}

.x:after {
  transform: translate(-50%, -50%) rotate(-45deg)
}

.q {
  font: 900 44px Arial;
  color: #5a3b08
}

.round-text {
  position: absolute;
  left: 132px;
  top: 36px;
  font-size: 27px;
  color: #d9c8c0;
  opacity: .85;
  z-index: 5;
  letter-spacing: .5px
}

/* ---------- players ---------- */

.players {
  position: absolute;
  left: 0;
  top: 113px;
  width: 720px;
  height: 96px;
  z-index: 4
}

.pframe {
  position: absolute;
  top: 0;
  width: 92px;
  height: 92px;
  border-radius: 6px;
  background: #2d1708;
  border: 4px solid;
  border-image: linear-gradient(135deg, #f6d058, #a8742a, #4fc1c8) 1;
  box-shadow: 0 0 8px rgba(0, 0, 0, .6)
}

.pframe svg {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%)
}

.pframe .crown {
  position: absolute;
  left: -12px;
  top: -18px;
  width: 44px;
  height: 30px
}

.pframe .pbet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  text-align: center;
  font-size: 17px;
  color: #ffe9a8;
  text-shadow: 0 1px 2px #000;
  opacity: 0;
  transition: opacity .3s
}

.pframe .pbet.show {
  opacity: 1
}

/* ---------- table ---------- */

.table-arc {
  position: absolute;
  left: -190px;
  top: 392px;
  width: 1100px;
  height: 1400px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 20%, #a33a4c, #7d2234 55%, #5e1626);
  border-top: 12px solid #e6b23d;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, .5), 0 -2px 0 #8a5a12;
  z-index: 1
}

.dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s;
  z-index: 6
}

.dim.on {
  opacity: 1
}

/* ---------- wheel ---------- */

.wheelwrap {
  position: absolute;
  left: 177px;
  top: 220px;
  width: 382px;
  height: 382px;
  z-index: 7;
  transition: transform .8s cubic-bezier(.3, .8, .3, 1);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6))
}

.wheelwrap.zoom {
  transform: translateY(32px) scale(1.42)
}

.wheelwrap canvas {
  width: 100%;
  height: 100%;
  display: block
}

.ball {
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e7dcc2 55%, #9d8c68);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .7);
  opacity: 0
}

/* ---------- side widgets ---------- */

.newbox {
  position: absolute;
  left: 33px;
  top: 466px;
  width: 118px;
  height: 122px;
  border-radius: 8px;
  z-index: 3;
  background: linear-gradient(#ff8a8a, #d53a4c);
  border: 3px solid #fff0f0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .5);
  overflow: hidden
}

.newtag {
  height: 42px;
  background: linear-gradient(#ffe36a, #f6b422);
  color: #c02020;
  font: 900 31px Arial;
  text-align: center;
  line-height: 42px;
  border-bottom: 2px solid #fff
}

.nball {
  width: 60px;
  height: 60px;
  margin: 12px auto 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 31px Arial;
  color: #fff;
  box-shadow: 0 0 0 3px #fff6 inset, 0 2px 4px rgba(0, 0, 0, .5)
}

.nball.red,
.hb.red {
  background: radial-gradient(circle at 35% 30%, #ff6b6b, #d9102a 60%, #7c0613)
}

.nball.black,
.hb.black {
  background: radial-gradient(circle at 35% 30%, #777, #2b2024 60%, #0c0507)
}

.nball.green,
.hb.green {
  background: radial-gradient(circle at 35% 30%, #a6f06a, #35b317 60%, #16690a)
}

.trophy {
  position: absolute;
  left: 597px;
  top: 306px;
  width: 90px;
  z-index: 3;
  text-align: center;
  cursor: pointer
}

.trophy span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -4px;
  background: none important;
  color: #ffe9a8;
  font-size: 14px;
  line-height: 17px;
  border-radius: 2px
}

.stopwatch {
  position: absolute;
  left: 583px;
  top: 458px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  z-index: 3;
  background: radial-gradient(circle at 40% 30%, #8cff6e, #1db81f 65%, #0c6a10);
  border: 7px solid #f2b52a;
  box-shadow: 0 0 0 3px #8a5a12, 0 4px 8px rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: 700 38px Arial;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .5)
}

.stopwatch:before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: 26px;
  height: 16px;
  margin-left: -13px;
  background: #f2b52a;
  border-radius: 4px 4px 0 0
}

.stopwatch.off {
  display: none
}

.stopwatch.low {
  background: radial-gradient(circle at 40% 30%, #ff9a8a, #e02a1a 65%, #7a0e08);
  animation: pulse .5s infinite alternate
}

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

/* ---------- bet boxes ---------- */

.bets {
  position: absolute;
  left: 0;
  top: 613px;
  width: 720px;
  height: 350px;
  z-index: 3
}

.bet {
  position: absolute;
  width: 164px;
  height: 162px;
  border-radius: 30px;
  border: 4px solid #f08a96;
  background: linear-gradient(#9e3045, #7a1f33);
  overflow: hidden;
  text-align: center;
  color: #ffd3cf;
  transition: transform .1s, box-shadow .3s, filter .2s
}

.bet:active {
  transform: scale(.97)
}

.bet .t {
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  font: 800 46px/1 Arial, sans-serif;
  white-space: nowrap;
  letter-spacing: -1px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25)
}

.bet .m {
  position: absolute;
  left: 0;
  right: 0;
  top: 80px;
  font: 700 30px/1 Arial;
  color: #ffdcd8
}

.bet .f {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: rgba(80, 10, 24, .55);
  border-top: 2px solid rgba(240, 140, 150, .35);
  font: 700 21px/40px Georgia, serif;
  color: #e8b53c;
  white-space: nowrap;
  overflow: hidden
}

.bet .f small {
  color: #e8b53c;
  font-size: inherit
}

.bet .stack {
  position: absolute;
  right: 6px;
  top: 6px;
  min-width: 34px;
  height: 34px;
  border-radius: 17px;
  background: radial-gradient(circle, #a68bff, #5a3dc9);
  border: 3px dashed #fff;
  color: #fff;
  font: 700 13px/28px Arial;
  padding: 0 4px;
  opacity: 0;
  transform: scale(.4);
  transition: .2s
}

.bet .stack.on {
  opacity: 1;
  transform: scale(1)
}

.bet.win {
  border-color: #ffe34a;
  box-shadow: 0 0 16px 6px rgba(255, 214, 60, .85), 0 0 0 3px #fff3a0 inset;
  animation: glow .5s infinite alternate;
  z-index: 2
}

@keyframes glow {
  to {
    box-shadow: 0 0 26px 10px rgba(255, 214, 60, 1), 0 0 0 3px #fff3a0 inset
  }
}

.bets.locked .bet:not(.win) {
  filter: brightness(.8)
}

/* ---------- bottom wood bar ---------- */

.woodbar {
  position: absolute;
  left: 0;
  right: 0;
  top: 980px;
  height: 160px;
  z-index: 3;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 3px, transparent 3px 9px), linear-gradient(#e0912a, #a85a10 40%, #7a3c08);
  border-top: 6px solid #f3d27a;
  box-shadow: 0 -3px 0 #5a1626
}

.gained-label {
  position: absolute;
  left: 24px;
  top: 42px;
  font-size: 20px;
  color: #fff3dc;
  text-shadow: 0 1px 2px #000
}

.coinbox {
  position: absolute;
  left: 6px;
  top: 80px;
  width: 148px;
  height: 44px;
  background: rgba(0, 0, 0, .4);
  border-radius: 0 6px 6px 0
}

.coinbox .coin {
  position: absolute;
  left: 0;
  top: -6px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #ffe58a, #f0a800 70%);
  border: 3px solid #ffd84a;
  box-shadow: 0 0 4px #000a
}

.coinbox .coin:after {
  content: "★";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff3a0;
  font-size: 22px;
  text-shadow: 0 1px 1px #a06000
}

.coinbox span {
  position: absolute;
  left: 52px;
  right: 4px;
  top: 0;
  line-height: 44px;
  font-size: 21px;
  color: #fff;
  overflow: hidden;
  white-space: nowrap
}

.chipbar {
  position: absolute;
  left: 158px;
  top: 22px;
  width: 395px;
  height: 108px;
  background: rgba(40, 25, 15, .65);
  border-radius: 10px;
  transition: opacity .3s
}

.chip {
  position: absolute;
  top: 34px;
  width: 84px;
  height: 84px;
  margin-top: -4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 25px Arial;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  cursor: pointer;
  transition: transform .15s;
  background: radial-gradient(circle at 50% 35%, var(--c1), var(--c2));
  box-shadow: 0 3px 6px rgba(0, 0, 0, .5), 0 0 0 4px var(--c3) inset
}

.chip:after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .55)
}

.chip.sel {
  transform: scale(1.2) translateY(-14px);
  box-shadow: 0 0 14px 3px #fff8, 0 0 0 4px #ffe58a inset
}

.chip b {
  position: relative;
  z-index: 1
}

.again {
  position: absolute;
  left: 562px;
  top: 48px;
  width: 150px;
  height: 72px;
  border-radius: 36px;
  font: 900 30px Arial;
  color: #fff;
  text-shadow: 0 2px 2px rgba(0, 0, 0, .4);
  background: linear-gradient(#ffcf4a, #f58a0c 55%, #e16a00);
  border: 3px solid #ffe58a;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .5);
  transition: transform .1s, opacity .3s
}

.again:active {
  transform: scale(.94)
}

.woodbar.nobet .chipbar,
.woodbar.nobet .again {
  opacity: 0;
  pointer-events: none
}

/* ---------- toast / win ---------- */

.toast {
  position: absolute;
  left: 50%;
  top: 640px;
  transform: translate(-50%, 10px);
  background: rgba(0, 0, 0, .8);
  color: #fff;
  font-size: 26px;
  padding: 12px 28px;
  border-radius: 30px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  white-space: nowrap
}

.toast.on {
  opacity: 1;
  transform: translate(-50%, 0)
}

.winpop {
  position: absolute;
  left: 50%;
  top: 420px;
  transform: translate(-50%, 0) scale(.3);
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  font: 900 70px Arial Black, Arial;
  color: #ffe34a;
  text-shadow: 0 4px 0 #a05a00, 0 0 24px #ff9a00;
  transition: .5s cubic-bezier(.2, 1.6, .4, 1);
  white-space: nowrap
}

.winpop.on {
  opacity: 1;
  transform: translate(-50%, 0) scale(1)
}

.winpop small {
  display: block;
  font-size: 30px;
  color: #fff;
  text-shadow: 0 2px 3px #000
}

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

.modal-back {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, .55);
  animation: fade .2s
}

@keyframes fade {
  from {
    opacity: 0
  }
}

.modal-x {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 21
}

.modal-x .x:before,
.modal-x .x:after {
  width: 30px;
  height: 7px
}

.modal-x.gold {
  left: 588px;
  top: 195px;
  background: radial-gradient(#e9a54a, #b36b1a);
  border: 3px solid #f3c36a
}

.modal-x.gold .x:before,
.modal-x.gold .x:after {
  background: #5a3008
}

.modal-x.pink {
  left: 648px;
  top: 210px;
  width: 66px;
  height: 66px;
  background: radial-gradient(#ff6a84, #c61a40);
  border: 3px solid #ffd0d8
}

.modal-x.pink .x:before,
.modal-x.pink .x:after {
  background: #fff
}

.modal-x.yellow {
  left: 628px;
  top: 132px;
  width: 60px;
  height: 60px;
  background: radial-gradient(#ffd84a, #d9a010);
  border: 3px solid #6b5a52
}

.modal-x.yellow .x:before,
.modal-x.yellow .x:after {
  background: #5a3b08
}

.hist {
  position: absolute;
  left: 44px;
  top: 268px;
  width: 632px;
  height: 290px;
  border-radius: 12px;
  background: linear-gradient(#d99a3c, #c98428);
  border: 3px solid #f0be63;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .6);
  overflow: hidden
}

.hist-tabs {
  display: flex;
  height: 84px
}

.hist-tabs button {
  flex: 1;
  font-size: 34px;
  color: #fff4d8;
  background: linear-gradient(#e0a04a, #c07a22);
  opacity: .75
}

.hist-tabs button.on {
  background: linear-gradient(#f0b24c, #d68a2a);
  opacity: 1;
  box-shadow: inset -3px 0 0 #ffd88a
}

.hist-body {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 12px 6px;
  background: rgba(160, 90, 20, .35);
  height: 206px;
  overflow: auto
}

.hb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 25px Arial;
  color: #fff;
  box-shadow: 0 0 0 3px #fff8 inset, 0 2px 4px rgba(0, 0, 0, .6)
}

.hb .nw {
  position: absolute;
  top: -17px;
  left: -7px;
  background: #d4121a;
  color: #fff;
  font: 700 15px/18px Arial;
  padding: 0 7px;
  border-radius: 9px;
  border: 1px solid #fff
}

.myrows {
  grid-column: 1/-1;
  font-size: 20px;
  color: #fff;
  width: 100%
}

.myrows div {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr 1fr;
  padding: 5px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  text-align: center
}

.myrows .w {
  color: #fff35a
}

.myrows .l {
  color: #ffd0d0
}

.myrows .h {
  font-weight: 700;
  background: rgba(0, 0, 0, .2)
}

.empty {
  grid-column: 1/-1;
  text-align: center;
  font-size: 22px;
  color: #fff;
  padding-top: 60px
}

.rank {
  position: absolute;
  left: 36px;
  top: 240px;
  width: 648px;
  height: 640px;
  border-radius: 16px;
  background: linear-gradient(#8e1b46, #661436);
  border: 5px solid #e8b95a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .6)
}

.rank-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 104px;
  position: relative
}

.rtab {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  background: #d9373a;
  color: #ffe9a8;
  font: 700 24px Georgia, serif;
  cursor: pointer;
  border: 0
}

.rtab.on {
  background: #f0b030;
  color: #8a1010;
  transform: scale(1.15)
}

.rtab.crown {
  width: 62px;
  background: #f08a1a;
  color: #fff
}

.rank-table {
  margin: 0 16px;
  border: 3px solid #cfa24c;
  border-radius: 8px;
  background: #000;
  height: 512px;
  overflow: hidden
}

.rank-head,
.rrow {
  display: grid;
  grid-template-columns: 104px 196px 156px 1fr;
  align-items: center;
  text-align: center
}

.rank-head {
  height: 46px;
  background: #3a3236;
  color: #d8d2d4;
  font-size: 26px
}

.rank-rows {
  height: 462px;
  overflow: auto
}

.rrow {
  height: 56px;
  border-bottom: 2px solid #333;
  color: #fff;
  font-size: 22px;
  position: relative
}

.rrow .av {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding-left: 6px;
  font-size: 18px;
  line-height: 1.05;
  overflow: hidden
}

.rrow .av i {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--a)
}

.rrow .aw {
  margin: 0 12px;
  height: 34px;
  border-radius: 8px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 21px
}

.rrow .aw:before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(#ffe58a, #f0a800);
  display: block
}

.rrow.r1 {
  background: linear-gradient(90deg, #d93a8a, #f4c64a 30%, #f0b830);
  color: #2b1a00;
  height: 62px
}

.rrow.r2 {
  background: linear-gradient(90deg, #4a3aa8, #c8c8d8 30%, #d4d4e0);
  color: #2b2b3a;
  height: 62px
}

.rrow.r3 {
  background: linear-gradient(90deg, #c0553a, #e8a070 30%, #e08850);
  color: #3a1a08;
  height: 62px
}

.rrow .rk {
  font: italic 900 46px Georgia, serif;
  color: #fff;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .5)
}

.rrow.r1 .aw,
.rrow.r2 .aw,
.rrow.r3 .aw {
  background: #2a1a10;
  color: #fff
}

.rules {
  position: absolute;
  left: 10px;
  top: 208px;
  width: 700px;
  min-height: 600px;
  max-height: 780px;
  overflow: auto;
  border-radius: 36px;
  background: rgba(240, 210, 100, .96);
  color: #111;
  padding: 34px 12px 20px;
  font-size: 30px;
  line-height: 1.28
}

.rules h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 12px
}

.rules p {
  margin-bottom: 26px
}

.plist {
  min-height: 0;
  top: 240px
}

.plist .pr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  font-size: 26px;
  border-bottom: 1px solid rgba(0, 0, 0, .2)
}

.plist .pr i {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--a)
}

.plist .pr b {
  margin-left: auto;
  color: #6b1a1a
}

/* ---------- original graphics (cropped from reference) ---------- */

.round-btn {
  width: 72px;
  height: 72px;
  border: 0;
  background: center/100% 100% no-repeat;
  box-shadow: none;
  border-radius: 50%
}

.round-btn.big {
  width: 94px;
  height: 94px
}

#btnClose {
  background-image: url(img/btn_close.png)
}

#btnHelp {
  background-image: url(img/btn_help.png)
}

#btnSound {
  background-image: url(img/btn_sound.png)
}

#btnPlayers {
  background-image: url(img/btn_group.png)
}

.mute {
  display: none;
  position: absolute;
  left: 18px;
  top: 34px;
  width: 38px;
  height: 5px;
  background: #5a3b08;
  border-radius: 3px;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 1px #f6e08a
}

.players {
  top: 100px;
  height: 112px
}

.pframe {
  width: 116px;
  height: 112px;
  border: 0;
  border-image: none;
  background: none;
  box-shadow: none;
  border-radius: 0
}

.pframe img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none
}

.pframe .pbet {
  bottom: -22px
}

.wheelwrap {
  width: 380px;
  height: 380px;
  left: 178px;
  top: 221px
}

#wheel {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  will-change: transform;
  pointer-events: none
}

.trophy {
  left: 596px;
  top: 308px;
  width: 90px;
  height: 72px;
  background: url(img/trophy.png) center/100% 100% no-repeat
}

.trophy span {
  left: 14px;
  right: 14px;
  bottom: 1px;
  height: 17px;
  line-height: 17px;
   background: none important;
  font-size: 12px
}

.chip {
  width: 84px;
  height: 84px;
  margin: 0;
  top: 13px;
  border: 0;
  background: center/100% 100% no-repeat;
  box-shadow: none;
  border-radius: 50%
}

.chip:after {
  display: none
}

.chip.sel {
  transform: scale(1.12) translateY(-12px);
  box-shadow: 0 0 14px 4px rgba(255, 235, 150, .9)
}

.again {
  left: 560px;
  top: 46px;
  width: 154px;
  height: 78px;
  border: 0;
  background: url(img/again.png) center/100% 100% no-repeat;
  box-shadow: none;
  border-radius: 39px
}

/* ---------- popup + text clone pass ---------- */

.round-text {
  font-size: 26px;
  font-weight: 300;
  color: #d8c4bc;
  opacity: .9;
  top: 38px;
  letter-spacing: .3px
}

.bet {
  border-width: 4px;
  border-color: #f28b95;
  background: linear-gradient(#a03247, #7d2136)
}

.bet .t {
  font: 800 52px/1 "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  color: #ffcfcb;
  top: 12px;
  letter-spacing: -1px
}

.bet .m {
  font: 700 32px/1 "Arial Rounded MT Bold", Arial, sans-serif;
  color: #ffdad6;
  top: 78px
}

.bet .f {
  height: 42px;
  font: 700 30px/42px Georgia, "Times New Roman", serif;
  color: #e9b13a;
  background: rgba(90, 12, 28, .55)
}

.bet .f.sm {
  font-size: 21px
}

.gained-label {
  font-size: 19px;
  color: #ffe9c8
}

.coinbox span {
  font-size: 20px
}

/* history */

.modal-back {
  background: rgba(0, 0, 0, .58)
}

.hist {
  left: 44px;
  top: 270px;
  width: 632px;
  height: 288px;
  border: 3px solid #f4cc7c;
  border-radius: 10px;
  background: linear-gradient(#d29a48, #c0842c);
  box-shadow: 0 0 0 2px #8a5a1a, 0 8px 20px rgba(0, 0, 0, .6)
}

.hist-tabs {
  height: 85px
}

.hist-tabs button {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: .3px;
  color: #f8e3ae;
  background: linear-gradient(#e9c27a, #dcaa55);
  opacity: 1;
  text-shadow: none
}

.hist-tabs button.on {
  color: #fff2cd;
  background: linear-gradient(#f0a636, #d98419);
  box-shadow: inset 0 2px 0 #ffd27a, inset -2px 0 0 #ffe2a0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  margin-right: -16px;
  z-index: 1;
  position: relative
}

.hist-body {
  display: grid;
  grid-template-columns: repeat(10, 52px);
  justify-content: space-between;
  gap: 28px 0;
  padding: 34px 24px 0;
  height: 203px;
  background: rgba(150, 84, 24, .45);
  overflow: hidden;
  align-content: start
}

.hb {
  width: 52px;
  height: 52px;
  font: 700 24px Arial;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .85) inset, 0 2px 3px rgba(0, 0, 0, .6)
}

.hb:before {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 26px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, 0))
}

.hb .nw {
  top: -18px;
  left: -5px;
  font: 700 16px/18px Arial;
  padding: 0 8px;
  background: linear-gradient(#ff3b3b, #c40d12);
  border: 2px solid #fff;
  border-radius: 10px;
  z-index: 2
}

.modal-x.gold {
  left: 584px;
  top: 194px;
  width: 64px;
  height: 64px;
  background: radial-gradient(circle at 50% 35%, #e3a653, #a8651a);
  border: 4px solid #f4c46c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .6)
}

.modal-x.gold .x:before,
.modal-x.gold .x:after {
  background: #6a3c10
}

/* leaderboard */

.rank {
  left: 38px;
  top: 248px;
  width: 644px;
  height: 644px;
  border: 5px solid #e9bc62;
  border-radius: 18px;
  background: linear-gradient(#8f1a4a, #6a1238);
  box-shadow: inset 0 0 0 2px #5a0e2c, 0 8px 22px rgba(0, 0, 0, .65)
}

.rank-tabs {
  gap: 0;
  height: 100px;
  padding: 0 8px;
  justify-content: space-between
}

.dia {
  width: 9px;
  height: 9px;
  background: #f07aa0;
  transform: rotate(45deg);
  flex: none;
  margin: 0 -2px
}

.rtab {
  position: relative;
  width: 66px;
  height: 62px;
  background: linear-gradient(#ffe08a, #c98a1c);
  color: #f6d070;
  font: 700 26px Georgia, serif;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%)
}

.rtab:before {
  content: "";
  position: absolute;
  inset: 4px;
  background: linear-gradient(#a8143c, #6c0a28);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%)
}

.rtab span {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px #000
}

.rtab.on {
  transform: none
}

.rtab.on:before {
  background: linear-gradient(#ff4a74, #d01a48)
}

.rtab.crown {
  background: linear-gradient(#ffe08a, #c98a1c);
  width: 70px
}

.rtab.crown:before {
  background: linear-gradient(#ff9a2a, #d4540a)
}

.rank-table {
  margin: 0 14px;
  height: 520px;
  border: 3px solid #d5a850;
  border-radius: 6px;
  background: #050303
}

.rank-head {
  height: 50px;
  background: linear-gradient(#4a4448, #2e2a2d);
  color: #dcd6d8;
  font-size: 27px;
  grid-template-columns: 106px 196px 156px 1fr
}

.rank-head span:last-child:after {
  content: "?";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #cfc8ca;
  border-radius: 50%;
  font-size: 14px;
  line-height: 16px;
  margin-left: 6px;
  vertical-align: 3px
}

.rank-rows {
  height: 467px
}

.rrow {
  height: 52px;
  grid-template-columns: 106px 196px 156px 1fr;
  border-bottom: 2px solid #3a3a3a;
  font-size: 22px
}

.rrow.r1,
.rrow.r2,
.rrow.r3 {
  height: 60px;
  border-bottom: 3px solid #1a1a1a
}

.rrow.r1 {
  background: linear-gradient(100deg, #d8368a 0, #e8508c 17%, #f2c040 18%, #f0b02a 100%)
}

.rrow.r2 {
  background: linear-gradient(100deg, #4838a8 0, #6a58c8 17%, #d2d2e0 18%, #c8c8d8 100%)
}

.rrow.r3 {
  background: linear-gradient(100deg, #b8482a 0, #d8683e 17%, #eaa070 18%, #e08a52 100%)
}

.rrow .rk {
  font: italic 900 52px/1 Georgia, serif;
  color: #fff;
  -webkit-text-stroke: 2px #8a5a10;
  paint-order: stroke fill;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .4)
}

.rrow.r2 .rk {
  -webkit-text-stroke-color: #3a2a90
}

.rrow.r3 .rk {
  -webkit-text-stroke-color: #8a2a10
}

.rrow .rk sup {
  font-size: .38em;
  vertical-align: top;
  position: relative;
  top: 4px
}

.rrow .av {
  font-size: 19px;
  color: inherit
}

.rrow .av i {
  width: 48px;
  height: 48px;
  border-radius: 3px;
  margin-right: 2px
}

.rrow .aw {
  height: 36px;
  margin: 0 10px;
  border-radius: 9px;
  background: #2a1c14;
  border: 2px solid #4a3a2a;
  font-size: 22px
}

.rrow .aw:before {
  width: 26px;
  height: 26px;
  border: 2px solid #ffe58a;
  box-sizing: border-box
}

/* rules */

.rules {
  left: 10px;
  top: 208px;
  width: 700px;
  height: 797px;
  max-height: none;
  border-radius: 38px;
  background: rgba(238, 206, 104, .93);
  padding: 34px 14px 20px;
  font: 400 31px/1.3 Arial, Helvetica, sans-serif;
  color: #0a0a0a
}

.rules h2 {
  font-size: 43px;
  font-weight: 700;
  margin-bottom: 14px
}

.rules p {
  margin-bottom: 34px
}

.modal-x.yellow {
  left: 633px;
  top: 132px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 50% 35%, #ffd84a, #e3a912);
  border: 4px solid #5d4a42
}

.plist {
  height: auto;
  top: 240px
}

.bet .f,
.rrow,
.hb,
.rank-head {
  font-variant-numeric: lining-nums
}

.trophy span {
  height: 24px;
  line-height: 17px;
  bottom: 0;
  left: 12px;
  right: 12px;
  font-size: 13px
}

/* ---------- original background + clock ---------- */

.bgimg {
  position: absolute;
  left: 0;
  top: 0;
  width: 720px;
  height: 980px;
  background: #2b1013 url(img/bg.jpg) 0 0/720px 980px no-repeat
}

.table-arc {
  display: none
}

.stopwatch {
  left: 580px;
  top: 456px;
  width: 104px;
  height: 108px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: url(img/stopwatch.png) center/100% 100% no-repeat;
  padding-top: 21px;
  font: 400 36px/1 Arial, Helvetica, sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45)
}

.stopwatch:before {
  display: none
}

.stopwatch.low {
  background: url(img/stopwatch.png) center/100% 100% no-repeat;
  filter: hue-rotate(-100deg) saturate(1.3);
  animation: pulse .5s infinite alternate
}

.stopwatch {
  left: 578px;
  top: 454px;
  width: 108px;
  height: 142px;
  align-items: flex-start;
  padding-top: 66px;
  line-height: 36px
}
/* ---------- fonts (Roboto = Android UI text, Fredoka = rounded bold titles) ---------- */
html,body,button{font-family:Roboto,"Segoe UI",Arial,sans-serif}
.round-text{font-family:Roboto,Arial,sans-serif;font-weight:300}
.bet .t{font-family:Fredoka,"Arial Rounded MT Bold","Trebuchet MS",sans-serif;font-weight:600;font-size:54px;letter-spacing:0}
.bet .m{font-family:Fredoka,"Arial Rounded MT Bold",sans-serif;font-weight:500;font-size:31px}
.bet .f{font-family:Georgia,"Times New Roman",serif;font-weight:700}
.gained-label,.coinbox span{font-family:Roboto,Arial,sans-serif;font-weight:400}
.newtag{font-family:Fredoka,Arial,sans-serif;font-weight:600;font-size:30px}
.hist-tabs button{font-family:Roboto,Arial,sans-serif;font-weight:400}
.hb,.stopwatch,.nball{font-family:Roboto,Arial,sans-serif;font-weight:500}
.rank-head,.rrow,.myrows{font-family:Roboto,Arial,sans-serif}
.rules,.plist{font-family:Roboto,Arial,sans-serif;font-weight:400}
.rules h2{font-weight:700}
.toast,.winpop{font-family:Fredoka,Roboto,Arial,sans-serif}

/* countdown: digit turns dark brown on 3-2-1, no red/pulse (as in the original video) */
.stopwatch.low{filter:none;animation:none;color:#7a2a12;text-shadow:none}

/* ===== clone pass 3: fonts, coin icon, clock flip animation ===== */
@keyframes flipIn{
  0%{transform:perspective(400px) rotateY(88deg) scale(.7);opacity:0}
  35%{opacity:1}
  70%{transform:perspective(400px) rotateY(-12deg) scale(1.12)}
  100%{transform:none;opacity:1}
}
.stopwatch.low{animation:none}
/* bet boxes: condensed bold title like the original */
.bet .t{font-family:Oswald,"Roboto Condensed","Arial Narrow",Impact,sans-serif;font-weight:700;font-size:58px;line-height:1;top:6px;letter-spacing:.5px;color:#ffd0cc}
.bet .m{font-family:Roboto,Arial,sans-serif;font-weight:500;font-size:30px;top:80px;color:#ffd9d4}
.bet .f{font-family:Georgia,"Times New Roman",serif;font-weight:700;color:#fff}
.bet .f .mine{color:#f0c24a}
/* coin icon from the reference */
.coinbox .coin{background:url(img/coin.png) center/100% 100% no-repeat;border:0;box-shadow:none;width:44px;height:44px;left:-2px;top:-2px}
.coinbox .coin:after{display:none}
.coinbox span{font-family:Roboto,Arial,sans-serif;font-size:21px;left:56px;color:#fff}
.rrow .aw{background:none;border:0;border-radius:0;height:auto;font:700 23px Roboto,Arial,sans-serif;color:#fff;gap:12px}
.rrow .aw:before{content:"";width:28px;height:28px;border:0;border-radius:0;background:url(img/coin.png) center/100% 100% no-repeat}
.rrow.r1 .aw,.rrow.r2 .aw,.rrow.r3 .aw{background:#241912;border:2px solid rgba(255,255,255,.55);border-radius:10px;height:38px;margin:0 10px}
.rrow .rk{font-family:"Rockwell","Roboto Slab",Georgia,serif;font-weight:900}
.bet .t{font-size:53px;top:10px}

/* wheel zoom + clock exit timing from the video */
@keyframes flipOut{0%{transform:none;opacity:1}100%{transform:perspective(400px) rotateY(-88deg) scale(.6);opacity:0}}
.wheelwrap{transition:transform .45s cubic-bezier(.3,.8,.3,1)}
.dim{transition:opacity .3s}

/* only the inner disc (inside the yellow glow ring) rotates; rim stays fixed */
#wheelbase{position:absolute;left:0;top:0;width:100%;height:100%;display:block;border-radius:50%;pointer-events:none}
#wheel{position:absolute;left:0;top:0;border-radius:0}
#wheel{transform-origin:189.8px 191.3px}   /* rotate exactly around the true centre of the ring */

/* "New >" box cloned from the reference (text removed - label + ball are live) */
.newbox{left:30px;top:464px;width:124px;height:126px;border:0;border-radius:0;background:url(img/newbox.png) center/100% 100% no-repeat;box-shadow:none;overflow:visible}
.newtag{position:absolute;left:0;right:0;top:7px;height:32px;line-height:32px;background:none;border:0;text-align:center;font:700 30px/32px Oswald,"Roboto Condensed",Arial,sans-serif;letter-spacing:.3px;color:#a31419;text-shadow:0 1px 0 rgba(255,255,255,.35)}
.nball{position:absolute;left:32px;top:42px;width:58px;height:58px;margin:0;border:2px solid rgba(255,255,255,.85);font:400 30px/1 Roboto,Arial,sans-serif;box-shadow:0 2px 3px rgba(0,0,0,.5),0 0 0 1px rgba(0,0,0,.25) inset}
.nball:before{content:"";position:absolute;left:10px;top:3px;width:34px;height:14px;border-radius:50%;background:linear-gradient(rgba(255,255,255,.4),rgba(255,255,255,0))}

/* ===== Game History / My History - cloned from reference ===== */
.hist{left:43px;top:271px;width:632px;height:286px;border:2px solid #e2ad52;border-radius:9px;background:rgba(193,137,64,.84);box-shadow:0 0 0 1px rgba(120,70,10,.5),0 6px 18px rgba(0,0,0,.55);overflow:hidden}
.hist-tabs{height:84px;display:flex;position:relative}
.hist-tabs button{flex:1;height:100%;border:0;border-radius:0;font:300 35px/84px Roboto,Arial,sans-serif;letter-spacing:.2px;color:#f4d68a;text-shadow:0 1px 1px rgba(120,70,0,.35);
  background:linear-gradient(#d9a95b,#cf9d4e);box-shadow:none;opacity:1;clip-path:none;margin:0;position:relative}
.hist-tabs button.on{flex:0 0 315px;color:#f7dc94;background:linear-gradient(180deg,#eaa93a 0%,#d8901f 55%,#c8801a 100%);
  box-shadow:inset 0 2px 0 rgba(255,224,150,.55),inset -2px 0 0 #f4c565,inset 3px 0 0 rgba(255,210,120,.35);clip-path:none;margin:0;z-index:1}
.hist-tabs button.on:before{content:"";position:absolute;left:0;top:0;width:46px;height:100%;background:linear-gradient(115deg,rgba(255,215,130,.28) 0,rgba(255,215,130,0) 70%);pointer-events:none}
.hist-tabs button:not(.on){flex:1;border-left:0;background:linear-gradient(#d4a45a,#c99650)}
.hist-body{display:grid;grid-template-columns:repeat(10,52px);justify-content:space-between;gap:28px 0;padding:33px 25px 0;height:202px;background:transparent;overflow:hidden;align-content:start}
.hb{position:relative;width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;font:300 28px/1 Roboto,Arial,sans-serif;color:#fff;box-shadow:0 2px 3px rgba(0,0,0,.35);border:2px solid rgba(255,255,255,.75)}
.hb:before{display:none}
.hb.red{background:radial-gradient(circle at 50% 28%,#ff6a78 0,#ec1e3c 48%,#d2132f 100%)}
.hb.black{background:radial-gradient(circle at 50% 25%,#5a4646 0,#2b1c1d 50%,#150c0d 100%);border:3px solid #d9d2d2}
.hb.green{background:radial-gradient(circle at 50% 28%,#9af460 0,#55cf2c 55%,#3dac1e 100%);border:0}
.hb .nw{position:absolute;left:50%;top:-20px;transform:translateX(-50%);min-width:56px;height:22px;padding:0 6px;border-radius:11px;border:2px solid #fff;background:linear-gradient(#f5262d,#c60b14);color:#fff;font:500 14px/18px Roboto,Arial,sans-serif;letter-spacing:.3px;text-align:center;z-index:3}
.myrows{color:#fff;font-family:Roboto,Arial,sans-serif;font-weight:300}
.myrows div{border-bottom:1px solid rgba(255,235,190,.35)}
.myrows .h{background:rgba(120,70,10,.3);font-weight:400}
.empty{font:300 26px Roboto,Arial,sans-serif;color:#f6e1ad}

/* ===== Game Rule popup - clone pass ===== */
.rules{left:10px;top:210px;width:700px;height:795px;border-radius:40px;background:rgba(236,210,116,.9);box-shadow:none;padding:30px 12px 20px;font:400 31px/40px Roboto,Arial,sans-serif;color:#000;overflow:hidden}
.rules h2{font:700 42px/52px Roboto,Arial,sans-serif;margin:0 0 20px;text-align:center;color:#000}
.rules p{margin:0 0 40px;font:400 31px/40px Roboto,Arial,sans-serif}
.rules p:last-child{margin-top:-4px}
.modal-x.yellow{left:640px;top:134px;width:46px;height:46px;border:3px solid #5b4a42;background:radial-gradient(circle at 50% 35%,#ffe262,#e8b81c)}
.modal-x.yellow .x:before,.modal-x.yellow .x:after{width:24px;height:5px;background:#4a3206}
.rules{background:rgba(214,190,112,.93);padding:30px 12px 20px;font:400 36px/40px Roboto,Arial,sans-serif}
.rules h2{font:700 46px/52px Roboto,Arial,sans-serif;margin:0 0 10px}
.rules p{font:400 36px/40px Roboto,Arial,sans-serif;margin:0 0 40px}
.rules{padding:26px 2px 20px 12px;background:rgba(214,190,112,.95)}
.rules h2{margin-bottom:14px}
.rules{padding-right:8px;background:rgba(214,190,112,.9)}

/* ===== Leaderboard - clone of reference ===== */
.lb{position:absolute;left:37px;top:248px;width:646px;height:644px;border-radius:22px;border:3px solid #f1e8a6;
  background:linear-gradient(90deg,#3b0614 0%,#86183a 20%,#a42046 45%,#a42046 55%,#86183a 80%,#3b0614 100%);
  box-shadow:inset 0 0 0 3px #2a0510,inset 0 0 0 5px #c9a85a,0 8px 22px rgba(0,0,0,.65)}
.lb-tabs{position:absolute;left:0;top:0;width:100%;height:100px}
.lb-dia{position:absolute;top:54px;width:10px;height:10px;background:#e0688c;transform:rotate(45deg)}
.lb-hex{position:absolute;top:34px;width:54px;height:50px;border:0;background:url(img/hex_off.png) center/100% 100% no-repeat;padding:0;cursor:pointer;
  font:700 26px/50px Georgia,"Times New Roman",serif;color:#f6cf55;text-shadow:0 1px 1px rgba(0,0,0,.6)}
.lb-hex.on{background-image:url(img/hex_on.png);color:#a3262a;text-shadow:0 1px 0 rgba(255,255,255,.5)}
.lb-hex span{display:block;line-height:50px;pointer-events:none}
.lb-crown{position:absolute;left:543px;top:9px;width:66px;height:82px;background:url(img/tab_crown.png) center/100% 100% no-repeat}
.lb-table{position:absolute;left:14px;top:103px;width:612px;height:523px;border:3px solid #cbc6bb;border-radius:11px;background:#000;overflow:hidden}
.lb-head{height:48px;display:grid;grid-template-columns:107px 196px 156px 1fr;background:linear-gradient(#3b3b39,#2c2b2f);color:#c9c7c8;font:300 27px/48px Roboto,Arial,sans-serif;text-align:center}
.lb-head span+span{border-left:2px solid #1b1b1b;box-shadow:inset 1px 0 0 #555}
.lb-head .qm{color:#c9c7c8;display:inline-block;width:22px;height:22px;border:2px solid #c9c7c8;border-radius:50%;font:400 15px/18px Roboto,Arial,sans-serif;margin-left:6px;vertical-align:3px;font-style:normal}
.lb-rows{height:469px;overflow-y:auto;scrollbar-width:none}
.lb-rows::-webkit-scrollbar{display:none}
.lb-row{position:relative;display:grid;grid-template-columns:107px 196px 156px 1fr;align-items:center;height:45px;border-bottom:2px solid #4a4a4a;color:#fff;font-family:Roboto,Arial,sans-serif}
.lb-row>span+span{border-left:2px solid #4a4a4a}
.lb-row>span{height:100%;display:flex;align-items:center}
.lb-rk{justify-content:center;font-size:22px}
.lb-user{gap:6px;padding-left:4px;font-size:18px;line-height:1.05;overflow:hidden}
.lb-user i{flex:none;width:40px;height:40px;background:var(--a);border-radius:3px}
.lb-user em{font-style:normal;word-break:break-all}
.lb-pts{justify-content:center;font-size:23px;color:#f2f2f2}
.lb-aw{padding-left:12px}
.pill{display:flex;align-items:center;width:132px;font-weight:700;font-size:22px}
.pill .cn{flex:none;width:26px;height:26px;background:url(img/coin.png) center/100% 100% no-repeat}
.pill em{font-style:normal;flex:1;text-align:right;padding-right:6px}
.lb-row.r1,.lb-row.r2,.lb-row.r3{height:57px;border-bottom:3px solid #1a1a1a;color:#241a00}
.lb-row.r1{background:linear-gradient(#efe07f 0,#fdf08f 40%,#f0d06d 65%,#dfa84b 88%,#e1b248 100%)}
.lb-row.r2{background:linear-gradient(#d3d5e2 0,#ededf7 38%,#c4c3d1 62%,#85839b 88%,#898a9e 100%)}
.lb-row.r3{background:linear-gradient(#e07f55 0,#f0a176 38%,#ed9067 55%,#c66940 78%,#af512d 90%,#d26b3e 100%)}
.lb-badge{position:absolute;left:0;top:0;height:100%;width:112px;pointer-events:none}
.lb-row.r1>.lb-user,.lb-row.r2>.lb-user,.lb-row.r3>.lb-user{grid-column:2;margin-left:-5px;border-left:0;padding-left:0;font-size:20px}
.lb-row.r1 .lb-user i,.lb-row.r2 .lb-user i,.lb-row.r3 .lb-user i{width:50px;height:50px}
.lb-row.r1 .lb-pts,.lb-row.r2 .lb-pts,.lb-row.r3 .lb-pts{border-left:2px solid rgba(80,50,0,.35);color:#241a00;text-shadow:0 0 2px rgba(255,255,255,.45)}
.lb-row.r1 .pill,.lb-row.r2 .pill,.lb-row.r3 .pill{background:#241913;border:2px solid rgba(255,255,255,.6);border-radius:9px;height:38px;color:#fff;padding:0 4px 0 6px;width:140px;box-sizing:border-box}
.lb-row.r1>.lb-aw,.lb-row.r2>.lb-aw,.lb-row.r3>.lb-aw{border-left:0;padding-left:4px}
.lb-close{position:absolute;left:646px;top:209px;width:68px;height:68px;border:0;border-radius:50%;background:url(img/rank_close.png) center/100% 100% no-repeat;cursor:pointer;z-index:21;transition:transform .1s}
.lb-close:active{transform:scale(.92)}


/* clock swings like a pendulum from its ring during 3-2-1-0 (seen in the video) */
@keyframes clockSwing{
  0%{transform:rotate(-7deg) translateX(-1px)}
  100%{transform:rotate(7deg) translateX(1px)}
}
.stopwatch{transform-origin:50% 9%}

/* win animation chips */
.flychip{position:absolute;left:0;top:0;width:22px;height:22px;border-radius:50%;background:center/100% 100% no-repeat;pointer-events:none;z-index:40;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}

/* profile pictures */
.lb-user i{background-size:cover;background-position:center;background-repeat:no-repeat}
.plist .pr{gap:14px;padding:8px 18px}
.plist .pr i{flex:none;width:52px;height:52px;border-radius:50%;background-size:cover;background-position:center;background-repeat:no-repeat;border:3px solid #fff3c0;box-shadow:0 0 0 2px #b8821f,0 2px 4px rgba(0,0,0,.35)}
.plist .pr span{font-size:28px;font-weight:500}
.plist .pr b{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:26px;color:#5a1010}
.plist .pr b:before{content:"";width:28px;height:28px;background:url(img/coin.png) center/100% 100% no-repeat}

/* selected chip: a yellow arc keeps circling its rim (as in the video) */
.chip.sel{box-shadow:none}
.chip.sel:before{content:"";display:block;position:absolute;inset:-4px;border-radius:50%;pointer-events:none;
  background:conic-gradient(from 0deg,rgba(255,224,80,0) 0deg,rgba(255,224,80,0) 190deg,rgba(255,216,74,.9) 260deg,#fff7b8 335deg,rgba(255,224,80,0) 360deg);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));
  mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4px));
  filter:drop-shadow(0 0 4px rgba(255,220,90,.9));animation:chipRing 1.8s linear infinite}
@keyframes chipRing{to{transform:rotate(360deg)}}

/* double ring: two concentric yellow arcs, both circling clockwise */
.chip.sel:before{inset:-6px;animation:chipRing 1.8s linear infinite}
.chip.sel:after{content:"";display:block;position:absolute;inset:-1px;border-radius:50%;pointer-events:none;border:0;
  background:conic-gradient(from 0deg,rgba(255,224,80,0) 0deg,rgba(255,224,80,0) 170deg,rgba(255,210,60,.9) 250deg,#fffbc8 330deg,rgba(255,224,80,0) 360deg);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3px));
  mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3px));
  filter:drop-shadow(0 0 3px rgba(255,220,90,.9));animation:chipRing 1.8s linear infinite;animation-delay:-.9s}

/* rings sit directly on the chip border - no gap */
.chip.sel:before{inset:-1px;-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3px));mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3px))}
.chip.sel:after{inset:3px;-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px))}

/* ===== WIN popup + "Starting 0s" popup (from the video) ===== */
.winpop{left:33px;top:366px;width:669px;height:399px;transform:scale(.4);transform-origin:50% 60%;opacity:0;pointer-events:none;z-index:25;transition:transform .35s cubic-bezier(.2,1.5,.4,1),opacity .3s;font:inherit;text-align:initial;white-space:normal}
.winpop.on{opacity:1;transform:scale(1)}
.winpop img{display:block;width:100%;height:100%;pointer-events:none}
.winamt{position:absolute;left:0;right:0;top:258px;height:112px;line-height:112px;text-align:center;font:700 104px/112px Oswald,"Roboto Condensed",Impact,sans-serif;letter-spacing:3px;
  background:linear-gradient(#fff7a8 0%,#ffd84a 38%,#f1a615 62%,#b9690a 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-stroke:3px #6b3d07;paint-order:stroke fill;
  filter:drop-shadow(0 5px 0 #4a2a05)}
.startpop{position:absolute;left:100px;top:525px;width:620px;height:66px;border-radius:10px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);z-index:26;opacity:0;pointer-events:none;transition:opacity .35s}
.startpop.on{opacity:1}
.startpop span{position:absolute;top:0;height:66px;line-height:66px;text-align:center;font:300 34px/66px Roboto,Arial,sans-serif;color:#f4eaea;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.startpop .st{left:160px;width:200px}
.startpop .sn{left:427px;width:80px}
.winamt{-webkit-text-stroke:0;background:linear-gradient(#fffbc0 0%,#ffe45a 35%,#ffc21a 62%,#e08a0a 100%);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(1px 0 0 #7a4308) drop-shadow(-1px 0 0 #7a4308) drop-shadow(0 -1px 0 #7a4308) drop-shadow(0 5px 0 #5a3206)}
.winamt{top:262px;height:104px;line-height:104px;font-size:100px;background:linear-gradient(180deg,#fffbc4 18%,#ffe95a 40%,#ffc41c 62%,#f09a10 86%);-webkit-background-clip:text;background-clip:text}
.winpop{text-shadow:none}
.winamt{text-shadow:none}
.startpop{background:rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.18)}

/* ball: smaller cream-white ball like the video */
.ball{width:10px;height:10px;margin:-5px 0 0 -5px;background:radial-gradient(circle at 35% 30%,#fffef6,#f4e7c4 55%,#b79f6b);box-shadow:0 1px 2px rgba(0,0,0,.7)}

/* ===== My History popup (cloned from reference) ===== */
.hist{transition:height .15s}
.hist.tall{height:638px}
.hist.tall .hist-body{height:554px;padding:0;display:block;overflow:hidden;background:transparent;position:relative}
.hist-tabs button.on:last-child{flex:1;margin-right:0;clip-path:polygon(0 0,100% 0,calc(100% - 22px) 100%,0 100%)}
.my-date{position:relative;height:96px;display:flex;align-items:center;justify-content:center;font:300 40px/1 Roboto,Arial,sans-serif;color:#fff2d6}
.my-date .arr{position:absolute;top:34px;width:30px;height:30px;border-radius:50%;border:2px solid rgba(255,240,205,.95);color:#fff2d6;font:400 20px/24px Arial,sans-serif;padding:0;text-align:center;background:rgba(255,255,255,.08);cursor:pointer}
.my-date .arr:first-child{left:98px}
.my-date .arr:last-of-type{right:98px}
.my-date .arr:disabled{opacity:.35;cursor:default}
.my-list{height:394px;overflow-y:auto;scrollbar-width:none;padding:0 18px}
.my-list::-webkit-scrollbar{display:none}
.nodata{text-align:center;font:300 34px/1 Roboto,Arial,sans-serif;color:#fff0cf;padding-top:152px}
.my-foot{position:absolute;left:0;right:0;bottom:12px;text-align:center;font:400 22px/1.2 Roboto,Arial,sans-serif;color:#fff6e2}
.hist.tall .myrows{width:100%}
.my-foot{font-size:20px;white-space:nowrap;bottom:14px}
.my-list{height:400px}

/* My History: smaller type + dark-brown text like the reference */
.hist.tall .hist-tabs button:not(.on){color:#6b4516;text-shadow:none}
.my-date{font:400 33px/1 Roboto,Arial,sans-serif;color:#5e3a0f}
.my-date .arr{width:28px;height:28px;border:2px solid #6b4516;color:#6b4516;background:rgba(255,255,255,.12);font:400 18px/22px Arial,sans-serif}
.nodata{font:400 31px/1 Roboto,Arial,sans-serif;color:#5a360d}
.my-foot{font:400 18px/1.2 Roboto,Arial,sans-serif;color:#5a360d}
