* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.top {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1111;
  text-align: center;
  background: url(../images/bgc1.png) no-repeat 0 0;
  background-size: 100% 100% ;
}
.zb {
  max-width: 100%;
  height: 100%;
}
.rengm {
  position: absolute;
  left: 0;
  top: 31%;
  text-align: left;
}
.rengm .qiuxd {
  position: relative;
}
.rengm .renw {
  width: 74.23510467%;
}
.rengm .qiuq {
  position: absolute;
  right: 15%;
  top: 4%;
  text-align: center;
  width: 22.46376812%;
  -webkit-animation: play 3s linear infinite;
  animation: play 3s linear infinite;
  cursor: pointer;
}
.rengm .xsd {
  position: absolute;
  right: 15%;
  top: 28%;
  text-align: center;
  width: 31.80354267%;
}
.hide {
  display: none;
}
@-webkit-keyframes play {
  0% {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes play {
  0% {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
:root {
  --gold: #ffd86b;
  --gold-deep: #f7a93b;
  --mint: #5ce1d2;
  --rose: #ff6f8f;
  --ink: #0a1026;
  --panel: rgba(9, 18, 42, 0.76);
  --line: rgba(255, 255, 255, 0.14);
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  background: url(../images/bg.png) no-repeat 0 0;
  background-size: 100% 100%;
}
#wrap {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 0 max(12px, env(safe-area-inset-bottom));
  isolation: isolate;
}
.five {
  z-index: 6;
  position: absolute;
  left: 0;
  top: 0;
  text-align: center;
  width: 100%;
  height: 100%;
  background: url(../images/bg.png) no-repeat 0 0;
  background-size: 100% 100%;
  -webkit-background-size: 100% 100%;
}
.five .xnvg {
  margin: 12% 0 0;
  position: relative;
  z-index: 22;
}
.five .xnvg img {
  width: 79.46859903%;
}
.five .xnvg .ssdxxx {
  width: 50%;
  margin: 15% 0 0;
}
.five .logo {
  position: absolute;
  bottom: 7%;
  left: 0;
  text-align: center;
}
.five .logo img {
  width: 52.41545894%;
}
.scxhf {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.shengha {
  z-index: 6;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url(../images/bg.png) no-repeat 0 0;
  background-size: 100% 100%;
  display: flex;
  flex-direction: column;
  /* 子元素纵向排列，各自独占一行 */
  justify-content: center;
  /* 整体垂直居中 */
  align-items: center;
  /* 整体水平居中 */
}
.shengha .sxfh {
  width: 100%;
  position: relative;
  text-align: center;
}
.shengha .sxfh .imghb {
  width: 80.64516129%;
}
.shengha .sxfh .xacd {
  position: absolute;
  bottom: 8%;
  left: 0;
  width: 100%;
  text-align: center;
}
.shengha .sxfh .xacd img {
  width: 40.32258065%;
}
.shengha .xjffbtn,
.shengha .sxfh {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  display: block;
  text-align: center;
  margin-top: 20px;
}
.shengha .xjffbtn img {
  width: 45%;
}
.shengha.hide {
  display: none;
}
#wrap:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}
canvas {
  display: block;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
#topBar {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 448px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: 2;
}
.hudItem {
  min-width: 86px;
}
.hudItem.right {
  text-align: right;
}
.hudLabel {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0;
}
.hudValue {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 18px rgba(92, 225, 210, 0.35);
}
#topBar .sv {
  font-size: 30px;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(255, 216, 107, 0.42);
}
.hudTitle {
  text-align: center;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  white-space: nowrap;
}
.hudTitle strong {
  display: block;
  color: #fff;
  font-size: 14px;
}
#comboToast {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  padding: 10px 18px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(135deg, rgba(255, 111, 143, 0.96), rgba(247, 169, 59, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(255, 111, 143, 0.26);
  transition: transform 0.16s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.16s;
}
#comboToast.pop {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
#goalHint {
  transform: translateX(-50%);
  width: max-content;
  max-width: 88vw;
  text-align: center;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.35s;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
#hint {
  position: absolute;
  left: 50%;
  bottom: calc(10% + env(safe-area-inset-bottom));
  color: transparent;
  transform: translateX(-50%);
  width: max-content;
  max-width: 88vw;
  text-align: center;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.35s;
  background: transparent;
  box-shadow: 0 0 0 0 ;
}
#hint img {
  width: 60% ;
}
#fS {
  color: #efff42;
  font-size: 5rem;
  padding: 12% 0 20%;
  font-weight: bold;
}
#tierBox {
  opacity: 0;
}
#result {
  display: none;
  position: absolute;
  inset: 0;
  background: url(../images/bg.png) no-repeat 0 0;
  background-size: 100% 100%;
  z-index: 10;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#result.show {
  display: flex;
}
.resultPanel {
  width: min(88vw, 360px);
  padding: 28px 24px 24px;
  position: relative;
  text-align: center;
  background: url(../images/qx.png?t=1) no-repeat 0 0;
  background-size: 100% 100%;
  -webkit-background-size: 100% 100%;
}
.resultPanel .sx {
  position: absolute;
  left: 0;
  bottom: 1.5%;
  width: 100%;
  text-align: center;
  height: 30%;
  display: flex;
  justify-content: center;
  /* 水平居中 */
  align-items: center;
  /* 垂直居中 */
}
.resultPanel .sx img {
  width: 39.41463415%;
}
#musicPlayer {
  width: 1.8rem;
  height: 1.8rem;
  right: 2%;
  top: 2%;
  z-index: 1002;
  position: fixed;
  cursor: pointer;
  background: url(../images/music.png) no-repeat;
  background-size: 100% 100%;
  -webkit-animation: play 3s linear infinite;
}
#musicPlayer.pause {
  -webkit-animation: none;
  background: url(../images/music.png) no-repeat;
  background-size: 100% 100%;
}
#music {
  width: 8%;
  right: 4%;
  top: 2%;
  z-index: 120;
  cursor: pointer;
  background: url(../images/music.png) no-repeat;
  background-size: 100% 100%;
  position: fixed;
  -webkit-animation: play 3s linear infinite;
}
@-webkit-keyframes play {
  0% {
    -webkit-transform: rotate(0);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes play {
  0% {
    -webkit-transform: rotate(0);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}
.mask,
.maskWait {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 998;
}
.loading {
  position: fixed;
  left: 0;
  right: 0;
  top: 40%;
  bottom: 0;
  margin: 0 auto;
  width: 104px;
  height: 60px;
  text-align: center;
  font-size: 10px;
  z-index: 999;
}
.loading > div.rect {
  background-color: #fff;
  height: 100%;
  width: 0.4rem;
  display: inline-block;
  -webkit-animation: stretchdelay 1.2s infinite ease-in-out;
  animation: stretchdelay 1.2s infinite ease-in-out;
}
.loading .rect2 {
  -webkit-animation-delay: -1.1s !important;
  animation-delay: -1.1s !important;
}
.loading .rect3 {
  -webkit-animation-delay: -1s !important;
  animation-delay: -1s !important;
}
.loading .rect4 {
  -webkit-animation-delay: -0.9s !important;
  animation-delay: -0.9s !important;
}
.loading .rect5 {
  -webkit-animation-delay: -0.8s !important;
  animation-delay: -0.8s !important;
}
.loading .loadingText {
  color: #fff;
}
@-webkit-keyframes stretchdelay {
  0%,
  40%,
  100% {
    -webkit-transform: scaleY(0.4);
  }
  20% {
    -webkit-transform: scaleY(1);
  }
}
@keyframes stretchdelay {
  0%,
  40%,
  100% {
    transform: scaleY(0.4);
    -webkit-transform: scaleY(0.4);
  }
  20% {
    transform: scaleY(1);
    -webkit-transform: scaleY(1);
  }
}
.xsa {
  position: absolute;
  left: 3%;
  top: 5%;
  width: 93.07568438%;
}
.jqxxs {
  width: 81%;
  margin-top: 5%;
}
#result .det {
  display: none;
}
#result button {
  width: 100%;
  padding: 14px 24px;
  font-size: 17px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border: none;
  border-radius: 14px;
  color: #201508;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0;
  box-shadow: 0 14px 32px rgba(247, 169, 59, 0.25);
}
.scrose {
  position: relative;
}
.scrose .feb {
  position: absolute;
  left: 50%;
  margin-left: 5rem;
  width: 2.4rem;
  margin-top: -0.1rem;
  top: 46%;
}
.hpp {
  position: absolute;
  background: #fff;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hpp img {
  width: 130px;
}
.hpp.hide {
  display: none;
}
@media (max-height: 640px) {
  #topBar {
    padding: 8px 10px;
  }
  .hudTitle {
    display: none;
  }
  #hint {
    bottom: 8%;
    font-size: 13px;
  }
  .resultPanel {
    padding: 22px 20px 20px;
  }
}
@media screen and (min-width: 750px) {
  html,
  body {
    max-height: 912px;
    margin: 0 auto;
    max-width: 480px;
  }
  #fS {
    font-size: 2.5rem;
  }
  .scrose {
    position: relative;
  }
  .scrose .feb {
    position: absolute;
    left: 50%;
    margin-left: 2.5rem;
    width: 1.5rem;
    margin-top: -0.3rem;
    top: 46%;
  }
}
