:root {
  --cyan: #22F7FF;
  --mag: #FF2BD6;
  --purple: #7B5CFF;
  --bg: #05060a;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 18px 0;
  background: #05060a;
  position: relative;
  isolation: isolate;
}

/* ✅ overlay gradient แยกเลเยอร์ (paint ดีขึ้น) */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 700px at 15% 10%, rgba(34, 247, 255, .14), transparent 55%),
    radial-gradient(900px 700px at 85% 25%, rgba(255, 43, 214, .12), transparent 55%),
    #05060a;
}

.posterWrap {
  width: min(520px, 100vw);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 120px rgba(0, 0, 0, .55);
  position: relative;
  padding-bottom: 110px;
  /* กันพื้นที่ให้ปุ่ม fixed ไม่ทับรูปมาก */
}

.posterImg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.cta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  width: min(520px, 92vw);
  height: 74px;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;

  font-weight: 1000;
  font-size: 26px;
  letter-spacing: .3px;
  color: #071018;

  background:
    radial-gradient(120% 180% at 20% 0%, rgba(255, 255, 255, .35), transparent 45%),
    linear-gradient(90deg, var(--cyan) 0%, var(--purple) 45%, var(--mag) 100%);
  border: 1px solid rgba(255, 255, 255, .18);

  box-shadow:
    0 18px 70px rgba(0, 0, 0, .55),
    0 0 0 3px rgba(34, 247, 255, .22) inset,
    0 0 0 7px rgba(255, 43, 214, .16) inset;

  transform: translateX(-50%);
  transition: transform .22s ease, opacity .22s ease, filter .22s ease;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: linear-gradient(110deg,
      transparent 0%,
      rgba(255, 255, 255, .65) 22%,
      rgba(255, 255, 255, .18) 40%,
      transparent 60%);
  transform: translateX(-60%);
  opacity: .75;
  filter: blur(1px);
  animation: shine 2.1s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes shine {
  0% {
    transform: translateX(-60%);
    opacity: .40
  }

  40% {
    opacity: .95
  }

  100% {
    transform: translateX(65%);
    opacity: .45
  }
}

@keyframes cyberPulse {
  0% {
    transform: translateX(-50%) scale(1);
    filter: brightness(1)
  }

  50% {
    transform: translateX(-50%) scale(1.03);
    filter: brightness(1.12)
  }

  100% {
    transform: translateX(-50%) scale(1);
    filter: brightness(1)
  }
}

.cta.pulse {
  animation: cyberPulse 2.6s ease-in-out infinite
}

.cta.is-down {
  transform: translateX(-50%) translateY(10px) scale(.985);
  opacity: .92
}

.cta.is-up {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1
}

.cta:active {
  transform: translateX(-50%) scale(.992);
  filter: brightness(1.10)
}

@media (prefers-reduced-motion: reduce) {
  .cta::before {
    animation: none;
  }

  .cta.pulse {
    animation: none;
  }
}