/* Colours taken from the original purple and red PRIME pages. */
:root,
[data-theme='purple'] {
  --bg: #07050d;
  --orb-a: #7c3aed;
  --orb-b: #c026d3;
  --accent: #a855f7;
  --accent-rgb: 168, 85, 247;
  --glow-rgb: 147, 51, 234;
  --card-top: rgba(24, 14, 40, 0.95);
  --card-bottom: rgba(10, 8, 18, 0.98);
  --badge-text: #d8b4fe;
  --spin-mid: #f0abfc;
  --spin-core: #0f0a1a;
  --title-start: #c084fc;
  --title-end: #e879f9;
  --title-filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.45));
  --perk-icon: #c084fc;
  --btn: linear-gradient(135deg, #d946ef, #9333ea 55%, #6d28d9);
}

[data-theme='red'] {
  --bg: #07070a;
  --orb-a: #e0102c;
  --orb-b: #7a0018;
  --accent: #ff2d46;
  --accent-rgb: 255, 45, 70;
  --glow-rgb: 255, 30, 60;
  --card-top: rgba(22, 14, 16, 0.96);
  --card-bottom: rgba(10, 10, 12, 0.98);
  --badge-text: #ff8090;
  --spin-mid: #ff8a3d;
  --spin-core: #0d0b0c;
  --title-start: #ff2d46;
  --title-end: #ff2d46;
  --title-filter: none;
  --perk-icon: #ff4a5e;
  --btn: linear-gradient(135deg, #ff3a50, #d4001f 60%, #9e0018);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font-family: 'Segoe UI', Roboto, Arial, Helvetica, sans-serif;
}

[hidden] {
  display: none !important;
}

#pz-landing {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px 16px;
  overflow: hidden;
  background: var(--bg);
}

.pz-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 70%);
  pointer-events: none;
}

.pz-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  opacity: 0.45;
  filter: blur(90px);
  pointer-events: none;
  animation: pz-float 12s ease-in-out infinite;
}

.pz-orb-a {
  top: -120px;
  left: -120px;
  background: var(--orb-a);
}

.pz-orb-b {
  right: -120px;
  bottom: -140px;
  background: var(--orb-b);
  animation-delay: -6s;
}

.pz-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  padding: 1.5px;
  border-radius: 26px;
  background: conic-gradient(from var(--pz-a, 0deg), var(--accent), transparent 30%, transparent 70%, var(--accent));
  animation: pz-border 5s linear infinite, pz-in 0.7s ease-out both;
}

.pz-card-inner {
  position: relative;
  padding: 26px 22px 18px;
  border-radius: 25px;
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.pz-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--badge-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.pz-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ee66b;
  animation: pz-ping 1.8s ease-out infinite;
}

.pz-logo-wrap {
  position: relative;
  display: block;
  width: min(56vw, 200px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pz-spin {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(var(--accent), var(--spin-mid), transparent 40%, var(--accent) 75%, var(--accent));
  animation: pz-rotate 4s linear infinite;
}

.pz-spin::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--spin-core);
}

.pz-logo-clip {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 12px 40px rgba(var(--accent-rgb), 0.3);
}

.pz-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.pz-title {
  margin: 0 0 6px;
  background: linear-gradient(90deg, var(--title-start) 0%, #fff 50%, var(--title-end) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--accent);
  font-size: clamp(40px, 11vw, 54px);
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 1;
  -webkit-text-fill-color: transparent;
  filter: var(--title-filter);
  animation: pz-shine 4s linear infinite;
}

.pz-subtitle {
  margin: 0 0 20px;
  color: #cfcfd4;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
}

.pz-perks {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.pz-perks li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #e6e6ea;
  font-size: 12px;
  font-weight: 600;
}

.pz-perks span {
  color: var(--perk-icon);
  font-size: 12px;
}

.pz-turnstile {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.pz-turnstile:empty {
  display: none;
}

.pz-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pz-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 14px 20px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--btn);
  box-shadow: 0 10px 30px rgba(var(--glow-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.5px;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: box-shadow 0.18s ease;
  animation: pz-pulse 2.4s ease-in-out infinite;
}

.pz-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: pz-sweep 3s ease-in-out infinite;
}

.pz-btn:hover {
  box-shadow: 0 16px 40px rgba(var(--glow-rgb), 0.6);
}

.pz-btn[disabled] {
  opacity: 0.75;
  cursor: progress;
}

.pz-btn svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.pz-arrow {
  font-size: 18px;
}

.pz-btn:focus-visible,
.pz-logo-wrap:focus-visible,
a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.pz-status {
  margin: 12px 0 0;
  color: #ff9d9d;
  font-size: 13px;
  line-height: 1.5;
}

.pz-status.ok {
  color: #7ff0a4;
}

.pz-fallback {
  display: block;
  margin-top: 10px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
}

.pz-note {
  margin: 16px 0 0;
  color: #8c8c94;
  font-size: 12px;
}

.pz-footer {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #6d6d75;
  font-size: 11px;
  line-height: 1.6;
}

.pz-footer a {
  color: #9a9aa2;
}

.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px 56px;
  line-height: 1.7;
}

.legal h1 {
  font-size: 30px;
}

.legal h2 {
  margin: 28px 0 6px;
  font-size: 19px;
}

.legal p,
.legal li {
  color: #cfcfd4;
}

.legal a {
  color: #fff;
}

@property --pz-a {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes pz-border {
  to {
    --pz-a: 360deg;
  }
}

@keyframes pz-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pz-shine {
  to {
    background-position: 200% center;
  }
}

@keyframes pz-sweep {
  0%,
  60% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}

@keyframes pz-pulse {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(var(--glow-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  50% {
    box-shadow: 0 10px 44px rgba(var(--glow-rgb), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
}

@keyframes pz-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 230, 107, 0.6);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(46, 230, 107, 0);
  }
}

@keyframes pz-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(40px, 30px);
  }
}

@keyframes pz-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 360px) {
  .pz-perks li {
    padding: 6px 8px;
    font-size: 11px;
  }

  .pz-btn {
    font-size: 14px;
    letter-spacing: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
