* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  background: #f4c2d0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  overflow: hidden;
}

.splash {
  position: relative;
  min-height: 100%;
  min-height: 100dvh;
}

.splash-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.splash-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(80, 30, 50, 0.28) 100%);
  pointer-events: none;
}

.card {
  position: absolute;
  left: 50%;
  bottom: 16%;
  transform: translateX(-50%);
  width: min(230px, 62vw);
  padding: 18px 16px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 30px rgba(80, 30, 50, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  color: #fff;
  z-index: 2;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.percent {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.bar {
  margin: 12px auto 0;
  width: 86%;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #f4b6c8, #ec6d93);
  transition: width 0.25s ease;
}

.status {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
}

.fail {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #1a1014;
  color: #fff;
  z-index: 5;
}

.fail button {
  border: 0;
  background: #ec6d93;
  color: #fff;
  padding: 10px 22px;
  border-radius: 22px;
}

.hide { display: none; }
