/* 开屏等待页：深色 + 金色，和牌桌/登录页同一套视觉 */
#boot-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px
    calc(24px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(198, 122, 40, 0.22), transparent 62%),
    radial-gradient(90% 60% at 50% 110%, rgba(28, 84, 66, 0.28), transparent 60%),
    linear-gradient(180deg, #0a0d13 0%, #070a10 55%, #05070c 100%);
  color: #f3e9d6;
  overflow: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#boot-splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 桌面纹理当成背景底纹，轻微模糊 */
#boot-splash::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: url("../../assets/img/Texture/texture_bg-02.webp") center / cover no-repeat;
  opacity: 0.16;
  filter: blur(6px) saturate(0.9);
  pointer-events: none;
}

#boot-splash > * {
  position: relative;
  z-index: 1;
}

.bs-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(160deg, #ffd98f, #b8802f 55%, #6d4a16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(255, 214, 140, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bs-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0a0d13;
}

.bs-brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffe6b8;
  text-shadow: 0 2px 12px rgba(255, 186, 92, 0.35);
  margin: 0;
}

.bs-brand em {
  font-style: normal;
  color: #ffcf7d;
}

.bs-sub {
  margin: -8px 0 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(243, 233, 214, 0.45);
}

.bs-clock {
  position: relative;
  width: 132px;
  height: 132px;
  margin-top: 6px;
}

.bs-clock svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.bs-clock .track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 6;
}

.bs-clock .bar {
  fill: none;
  stroke: url(#bsGrad);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.95s linear;
}

.bs-clock .num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.bs-clock .num b {
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffe6b8;
}

.bs-clock .num span {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(243, 233, 214, 0.45);
}

.bs-tip {
  font-size: 13px;
  color: rgba(243, 233, 214, 0.62);
  letter-spacing: 0.04em;
  min-height: 18px;
  text-align: center;
}

.bs-suits {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 214, 140, 0.5);
}

.bs-suits i {
  font-style: normal;
  animation: bsPulse 1.6s ease-in-out infinite;
}

.bs-suits i:nth-child(2) {
  animation-delay: 0.2s;
}
.bs-suits i:nth-child(3) {
  animation-delay: 0.4s;
}
.bs-suits i:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes bsPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.bs-enter {
  margin-top: 4px;
  min-width: 176px;
  height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #2a1a06;
  background: linear-gradient(180deg, #ffdf9e, #e8b45c 55%, #c98d33);
  box-shadow: 0 8px 22px rgba(201, 141, 51, 0.35);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.12s ease;
}

.bs-enter.is-ready {
  opacity: 1;
  pointer-events: auto;
}

.bs-enter.is-ready:active {
  transform: scale(0.97);
}

.bs-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 11px;
  color: rgba(243, 233, 214, 0.28);
  letter-spacing: 0.08em;
}

/* 落地页 iframe 放到最底层，不挡操作 */
iframe[data-luodi] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
}