:root {
  color-scheme: dark;
  background: #080b24;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 280px; }

body {
  min-width: 280px;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 25%, #24206a 0, transparent 34rem),
    radial-gradient(circle at 50% 85%, #37145f 0, transparent 35rem),
    #080b24;
}

.page {
  width: min(100%, 600px);
  margin: 0 auto;
  overflow: hidden;
  background: #090923;
  box-shadow: 0 0 80px #02020c, 0 0 2px #6c3cff;
}

.brand-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 9px 16px 6px;
  background: linear-gradient(180deg, #080817, #11113e 86%, #11113e);
  border-bottom: 2px solid #7d47ee;
  box-shadow: 0 5px 22px #100654;
}

.brand-logo {
  display: block;
  width: min(56%, 245px);
  height: auto;
  filter: drop-shadow(0 2px 9px #ff0e43a0);
}

.poster {
  position: relative;
  width: 100%;
  aspect-ratio: 941 / 1672;
  isolation: isolate;
}

.poster-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-area {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 29%;
  padding: 5.5% 3% max(1.5%, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, #09061977 30%, #07071cdd 100%);
}

.claim-link {
  position: relative;
  isolation: isolate;
  display: block;
  width: min(88%, 520px);
  border-radius: 30px;
  animation: cta-heartbeat 2.7s ease-in-out infinite;
  transition: transform .18s ease, filter .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.claim-link::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 15% 7%;
  padding: 3px;
  border-radius: 24px;
  pointer-events: none;
  background: conic-gradient(
    from var(--sweep-angle),
    transparent 0deg 298deg,
    #743cff33 313deg,
    #47eaffaa 326deg,
    #ffffff 336deg,
    #f54cff 344deg,
    transparent 356deg 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 9px #66f6ff);
  animation: cta-border-sweep 3.2s linear infinite;
}

.claim-link img {
  display: block;
  width: 100%;
  height: auto;
}

.claim-link:hover {
  animation: none;
  transform: translateY(-2px) scale(1.025);
  filter: brightness(1.1);
}

.claim-link:active {
  animation: none;
  transform: scale(.98);
}

.claim-link:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

@property --sweep-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes cta-heartbeat {
  0%, 38%, 100% { transform: scale(1); }
  7% { transform: scale(1.045); }
  14% { transform: scale(.99); }
  22% { transform: scale(1.07); }
  30% { transform: scale(1); }
}

@keyframes cta-border-sweep {
  to { --sweep-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .claim-link, .claim-link::after {
    animation: none;
    transition: none;
  }
  .claim-link::after { display: none; }
}
