#jt-lottery-fab {
  position: fixed;
  z-index: 61;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 0;
  border-radius: 50%;
  color: #fff8ea;
  background: radial-gradient(circle at 35% 30%, #f3d27a, #c45a12 42%, #8c1224 78%);
  box-shadow: 0 12px 28px rgba(140, 18, 36, .45), 0 0 0 4px rgba(243, 210, 122, .35);
  font-family: "Noto Serif SC", "Songti SC", serif;
  letter-spacing: .12em;
  font-size: 13px;
  line-height: 1.1;
}
#jt-lottery-fab i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #f3d27a 40%, #c98a1a);
  box-shadow: 0 0 8px #fff3;
}
#jt-lottery-fab::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dashed rgba(243, 210, 122, .85);
  animation: jtLotSpin 8s linear infinite;
  pointer-events: none;
}
#jt-lottery-fab:active { transform: scale(.96); }
@keyframes jtLotSpin { to { transform: rotate(360deg); } }

.jt-lot {
  position: fixed;
  inset: 0;
  z-index: 480;
  display: none;
  overflow: auto;
  color: #fff6ea;
  font-family: "Noto Serif SC", "Songti SC", "PingFang SC", "Microsoft YaHei", serif;
  background:
    radial-gradient(520px 280px at 50% 12%, rgba(243, 210, 122, .34), transparent 62%),
    radial-gradient(380px 260px at 0% 30%, rgba(196, 35, 56, .35), transparent 55%),
    radial-gradient(380px 260px at 100% 70%, rgba(196, 35, 56, .28), transparent 50%),
    repeating-linear-gradient(135deg, rgba(243, 210, 122, .045) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #6a1828 0%, #3a0c16 38%, #14060c 100%);
}
.jt-lot.on { display: block; }
.jt-lot-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.jt-lot-sky span {
  position: absolute;
  top: -12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f3d27a;
  opacity: .75;
  box-shadow: 0 0 8px #f3d27a;
  animation: jtLotFall linear infinite;
}
@keyframes jtLotFall {
  to { transform: translateY(110vh); opacity: .05; }
}
.jt-lot-close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(243, 210, 122, .75);
  border-radius: 50%;
  color: #f3d27a;
  background: rgba(40, 8, 14, .55);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}
.jt-lot-wrap {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  margin: 0 auto;
  padding: calc(22px + env(safe-area-inset-top, 0px)) 18px calc(28px + env(safe-area-inset-bottom, 0px));
}
.jt-lot-head { text-align: center; }
.jt-lot-seal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 6px;
  border-radius: 50%;
  color: #f3d27a;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  border: 1px solid #e6c87a;
  background: radial-gradient(circle at 35% 30%, #d23a4c, #6d0d1b 72%);
  box-shadow: 0 0 0 5px rgba(230, 200, 122, .16), 0 8px 16px rgba(0, 0, 0, .25);
}
.jt-lot-kicker {
  margin: 0;
  letter-spacing: .46em;
  text-indent: .46em;
  font-size: 12px;
  color: #f3d27a;
}
.jt-lot h1 {
  margin: 2px 0 0;
  font-size: 42px;
  letter-spacing: .34em;
  text-indent: .34em;
  background: linear-gradient(180deg, #fff8df 10%, #f0d48a 46%, #b8893b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .28));
}
.jt-lot-sub {
  margin: 2px 0 0;
  letter-spacing: .22em;
  font-size: 13px;
  color: rgba(255, 236, 196, .82);
}
.jt-lot-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 8px 0;
}
.jt-lot-meters div {
  padding: 8px 10px 9px;
  text-align: center;
  border-radius: 16px;
  border: 1px solid rgba(243, 210, 122, .4);
  background: linear-gradient(180deg, rgba(255, 248, 230, .12), rgba(0, 0, 0, .16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.jt-lot-meters b {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  color: #f6e2a8;
}
.jt-lot-meters span {
  font-size: 12px;
  letter-spacing: .16em;
  color: rgba(255, 236, 210, .8);
}
.jt-lot-stage {
  position: relative;
  width: min(332px, 88vw);
  height: min(332px, 88vw);
  margin: 22px auto 6px;
}
.jt-lot-stage::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, #8d1a2e 0 68%, transparent 69%),
    conic-gradient(from 20deg, #8a6230, #f6e2a8, #a87832, #fff1c4, #8a6230);
  box-shadow: 0 22px 40px rgba(0, 0, 0, .4), inset 0 0 0 3px rgba(90, 30, 12, .45);
}
.jt-lot-pointer {
  position: absolute;
  z-index: 6;
  top: -8px;
  left: 50%;
  width: 26px;
  height: 38px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff6d4, #e0b45a 55%, #a31830);
  clip-path: polygon(50% 100%, 0 8%, 50% 0, 100% 8%);
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .4));
}
.jt-lot-pointer::after {
  content: "";
  position: absolute;
  left: 5px;
  top: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #f3d27a 40%, #c8102e);
  box-shadow: 0 0 10px #f3d27a;
}
.jt-lot-bulbs {
  position: absolute;
  inset: -6px;
  z-index: 4;
  border-radius: 50%;
  pointer-events: none;
}
.jt-lot-bulbs i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4px;
  border-radius: 50%;
  background: #fff6d0;
  box-shadow: 0 0 8px #f3d27a, inset 0 0 0 1px rgba(140, 18, 36, .25);
  animation: jtLotBlink 1.1s steps(2, end) infinite;
}
.jt-lot.spinning .jt-lot-bulbs i { animation-duration: .16s; }
@keyframes jtLotBlink { 50% { opacity: .28; background: #ffd0d4; } }
.jt-lot-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  border: 8px solid #fff1c2;
  box-shadow: inset 0 0 0 7px #6d0d1b, inset 0 0 0 9px #e6c87a, 0 10px 24px rgba(0, 0, 0, .28);
  transition: transform 4.8s cubic-bezier(.12, .72, .08, 1);
  background: #6d0d1b;
  overflow: hidden;
}
.jt-lot-spoke {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 50%;
  margin-left: -1px;
  background: linear-gradient(#fff6d4, rgba(255, 246, 212, .05));
  transform-origin: center bottom;
  pointer-events: none;
}
.jt-lot-sheen {
  position: absolute;
  inset: 16px;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .28), transparent 28%),
    radial-gradient(circle at 70% 78%, rgba(60, 0, 10, .18), transparent 36%);
}
.jt-lot-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}
.jt-lot-label .arm {
  width: 84px;
  margin-left: -42px;
  text-align: center;
}
.jt-lot-label img {
  width: 34px;
  height: 34px;
  margin: 0 auto 4px;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .28));
}
.jt-lot-label span {
  display: inline-block;
  max-width: 78px;
  padding: 1px 7px 2px;
  border-radius: 999px;
  background: rgba(255, 250, 240, .92);
  color: #6d1020;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .02em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .18);
}
.jt-lot-hub {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px;
  border-radius: 50%;
  border: 3px solid #fff6d4;
  color: #fff8ea;
  letter-spacing: .18em;
  text-indent: .18em;
  font-size: 26px;
  background:
    radial-gradient(circle at 35% 28%, #f06a78, #b42338 46%, #6d0d1b 78%);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, .35),
    inset 0 0 0 5px rgba(243, 210, 122, .45),
    0 0 0 6px rgba(109, 13, 27, .55);
}
.jt-lot-hub:disabled { filter: saturate(.7); }
.jt-lot-hub:active:not(:disabled) { transform: scale(.96); }
.jt-lot-msg {
  min-height: 1.3em;
  margin: 10px 0 0;
  text-align: center;
  color: #ffd0d0;
  font-size: 14px;
}
.jt-lot-legend, .jt-lot-recent {
  margin-top: 14px;
  padding: 14px 12px 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 248, 236, .1), rgba(255, 248, 236, .04));
  border: 1px solid rgba(243, 210, 122, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.jt-lot-legend h2, .jt-lot-recent h2 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .28em;
  text-align: center;
  color: #f3d27a;
  font-weight: 600;
}
.jt-lot-odds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.jt-lot-odds span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 8px;
  border-radius: 14px;
  background: rgba(20, 6, 10, .28);
  border: 1px solid rgba(243, 210, 122, .18);
  font-size: 13px;
}
.jt-lot-odds img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.jt-lot-odds em {
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jt-lot-odds b { margin-left: auto; color: #f6e2a8; font-weight: 700; }
.jt-lot-recent ul { list-style: none; margin: 0; padding: 0; }
.jt-lot-recent li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  border-top: 1px solid rgba(243, 210, 122, .16);
  font-size: 14px;
}
.jt-lot-recent li:first-child { border-top: 0; }
.jt-lot-recent img { width: 32px; height: 32px; object-fit: contain; }
.jt-lot-recent em { margin-left: auto; font-style: normal; color: #f3d27a; }
.jt-lot-recent time { color: rgba(255, 236, 210, .7); font-size: 12px; }
.jt-lot-mask {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(16, 4, 8, .66);
}
.jt-lot-mask.on { display: grid; }
.jt-lot-card {
  position: relative;
  width: min(320px, 100%);
  padding: 28px 20px 20px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid #e6c87a;
  background:
    radial-gradient(200px 110px at 50% 0%, rgba(243, 210, 122, .5), transparent 70%),
    linear-gradient(180deg, #fffdf8, #f4e0bc);
  color: #3a2218;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 0 0 5px rgba(255, 250, 240, .65);
  animation: jtLotPop .45s cubic-bezier(.16, 1, .3, 1);
}
.jt-lot-card.win { box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px #f3d27a, 0 0 40px rgba(243, 210, 122, .35); }
@keyframes jtLotPop {
  from { transform: scale(.84) translateY(12px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.jt-lot-medal {
  width: 96px;
  height: 96px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #f6e2a8 55%, #e7c98a);
  border: 3px solid #8c1224;
  box-shadow: 0 8px 16px rgba(140, 18, 36, .18);
}
.jt-lot-medal img { width: 64px; height: 64px; margin: 0; object-fit: contain; }
.jt-lot-card p { margin: 0; letter-spacing: .28em; color: #8c1224; font-size: 14px; }
.jt-lot-card h3 { margin: 8px 0; font-size: 30px; letter-spacing: .1em; color: #8c1224; }
.jt-lot-card .pay { margin: 0 0 16px; letter-spacing: 0; color: #7a4e12; font-size: 15px; }
.jt-lot-card button {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  color: #fff8ea;
  letter-spacing: .28em;
  background: linear-gradient(180deg, #d23a4c, #7a1020);
  box-shadow: 0 8px 16px rgba(140, 18, 36, .25);
}
#jt-lot-confetti {
  position: fixed;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #jt-lottery-fab::after, .jt-lot-sky span, .jt-lot-bulbs i { animation: none; }
  .jt-lot-wheel { transition-duration: .2s; }
}

/* 原位置贴着底栏，客服被签到行和导航挡住。上移后和抽奖一起露在首屏右侧。 */
.service-fab {
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 168px) !important;
  z-index: 80 !important;
}
