body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top, rgba(255, 198, 61, 0.18), transparent 26%),
    linear-gradient(180deg, #180700 0%, #120702 38%, #0a0401 100%);
  font-family: Arial, sans-serif;
}

.img-container {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  overflow-x: hidden;
  padding-bottom: 116px;
  box-sizing: border-box;
  box-shadow: 0 0 0 1px rgba(255, 208, 100, 0.08);
}

.img-container img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.fixed-btn-wrapper {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
  padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 200px);
}

.fixed-btn {
  width: min(100%, 750px);
  min-height: 64px;
  box-sizing: border-box;
  pointer-events: auto;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(90deg, #ff7a00 0%, #ffb300 45%, #ffd95e 100%);
  color: #5b2400;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
  box-shadow: 0 12px 30px rgba(255, 140, 0, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  animation: btn-bounce 1.8s infinite cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.fixed-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.38) 50%, transparent 80%);
  transform: translateX(-130%);
  animation: btn-shine 2.4s linear infinite;
}

.fixed-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 140, 0, 0.42);
  filter: brightness(1.03);
}

.fixed-btn .download-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.fixed-btn .btn-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.fixed-btn .btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  gap: 2px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  text-align: center;
}

.fixed-btn .btn-line {
  display: block;
  white-space: nowrap;
}

.fixed-btn .btn-line-2 {
  font-size: 0.9em;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-box {
  width: min(100%, 380px);
  background: linear-gradient(180deg, #fffdfa 0%, #fff5e7 100%);
  border-radius: 20px;
  padding: 24px 18px 18px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  text-align: center;
  animation: popin 0.22s ease;
  border: 1px solid rgba(255, 183, 77, 0.25);
}

@keyframes popin {
  from {
    transform: scale(0.88);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #6a2e00;
}

.modal-btns {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.modal-btn {
  flex: 1;
  min-height: 44px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.modal-btn:active {
  transform: scale(0.98);
}

.modal-btn.confirm {
  background: linear-gradient(90deg, #ff9800, #ff6f00);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 111, 0, 0.22);
}

.modal-btn.cancel {
  background: #f2eadf;
  color: #5a4a3b;
}

.modal-btn.confirm:hover {
  background: linear-gradient(90deg, #ff9800, #ff3d00);
}

.modal-btn.cancel:hover {
  background: #dddddd;
}

@keyframes btn-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-3px) scale(1.03);
  }
}

@keyframes btn-shine {
  0% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(140%);
  }
}

@media (max-width: 480px) {
  .img-container {
    padding-bottom: 104px;
  }

  .fixed-btn {
    width: 100%;
    min-height: 58px;
    padding: 12px 18px;
    font-size: 14px;
    gap: 8px;
  }

  .fixed-btn .download-icon {
    width: 22px;
    height: 22px;
  }

  .fixed-btn .btn-logo {
    width: 42px;
    height: 42px;
  }

  .fixed-btn .btn-text {
    align-items: center;
    text-align: center;
  }

  .modal-mask {
    padding: 14px;
  }

  .modal-box {
    width: 100%;
    padding: 22px 16px 16px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-btns {
    flex-direction: column;
  }
}
