:root {
  --playful-bg: #0d0618;
  --playful-purple: #7b3ff2;
  --playful-purple-light: #a78bfa;
  --playful-border: rgba(139, 92, 246, 0.35);
  --playful-yellow: #f5c518;
  --playful-green: #22c55e;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius-pill: 999px;
  --max-w: 420px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: var(--font);
  min-height: 100%;
  min-height: 100dvh;
  color: #fff;
  background: var(--playful-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.page--playful {
  background: var(--playful-bg);
  background-image:
    linear-gradient(rgba(123, 63, 242, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 63, 242, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
  padding: 0 0 calc(88px + var(--safe-bottom));
}

.playful-banner {
  width: 100%;
  background: var(--playful-yellow);
  color: #111;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 16px;
  padding-top: calc(10px + var(--safe-top));
}

.playful-shell {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-name {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--playful-purple-light);
  margin-bottom: 12px;
}

.playful-sub .hl {
  color: #fff;
  font-weight: 700;
}

.logo-swap {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
}

.logo-swap__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.86) rotate(-6deg);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.logo-swap__item.is-active {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.logo-swap__svg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.playful-headline {
  font-size: clamp(1.55rem, 6.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

.playful-headline .platform-name {
  display: inline-block;
  color: var(--playful-purple-light);
  min-width: 6.2ch;
}

.platform-name.is-in {
  animation: name-swap 0.4s ease;
}

@keyframes name-swap {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.playful-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 16px;
  max-width: 320px;
}

.unlock-bar {
  width: 100%;
  text-align: left;
  border: 1px solid var(--playful-border);
  border-radius: 14px;
  background: rgba(30, 10, 50, 0.7);
  padding: 12px 14px;
  margin-bottom: 18px;
}

.unlock-bar__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.unlock-bar__count strong {
  color: var(--playful-yellow);
  font-size: 1rem;
}

.unlock-bar__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.unlock-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7b3ff2, #f5c518);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.45);
  animation: bar-pulse 2s ease-in-out infinite;
}

@keyframes bar-pulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

.unlock-bar__hint {
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.reward-callout {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(245, 197, 24, 0.35);
  border-radius: 14px;
  background: rgba(245, 197, 24, 0.08);
  padding: 14px;
  margin-bottom: 22px;
}

.reward-callout strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--playful-yellow);
  margin-bottom: 6px;
}

.reward-callout p {
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.reward-callout .hl {
  color: #fff;
  font-weight: 700;
}

.btn-playful {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  min-height: 54px;
  padding: 14px 22px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.25;
  background: linear-gradient(90deg, #7b3ff2, #a855f7);
  box-shadow: 0 8px 28px rgba(123, 63, 242, 0.5);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-playful:active {
  transform: scale(0.98);
}

.btn-playful.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  box-shadow: none;
  cursor: not-allowed;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px 0 22px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.stars {
  display: inline-flex;
  gap: 2px;
}

.star {
  width: 16px;
  height: 16px;
  background: #00b67a;
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  font-weight: 700;
}

.live-card {
  width: 100%;
  border: 1px solid var(--playful-border);
  border-radius: 14px;
  background: rgba(30, 10, 50, 0.7);
  padding: 12px 14px;
  margin-bottom: 24px;
  overflow: hidden;
  text-align: left;
}

.live-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.live-ticker {
  white-space: nowrap;
  overflow: hidden;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.live-ticker .cash {
  color: var(--playful-green);
  font-weight: 700;
}

.live-ticker .cash.cash-glow {
  animation: cash-glow 0.7s ease-out;
}

@keyframes cash-glow {
  0% {
    text-shadow: 0 0 0 transparent;
  }
  40% {
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.95);
    color: #86efac;
  }
  100% {
    text-shadow: 0 0 0 transparent;
  }
}

.section-label {
  width: 100%;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.journey {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.journey-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  border: 1px solid var(--playful-border);
  border-radius: 14px;
  padding: 14px;
  background: rgba(30, 10, 50, 0.55);
}

.journey-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  background: linear-gradient(145deg, #7b3ff2, #a855f7);
}

.journey-item strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.journey-item p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.tip-card {
  width: 100%;
  position: relative;
  border: 1px solid var(--playful-border);
  border-radius: 14px;
  padding: 16px;
  background: rgba(30, 10, 50, 0.55);
  text-align: left;
  margin-bottom: 20px;
}

.tip-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--playful-purple);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.tip-card strong.title {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.tip-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
}

.tip-loss {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(245, 197, 24, 0.25);
  color: rgba(255, 214, 120, 0.9) !important;
  font-weight: 600;
}

.tip-card .hl {
  color: #fff;
  font-weight: 700;
}

.playful-footer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 20px calc(12px + var(--safe-bottom));
  background: linear-gradient(180deg, transparent, rgba(13, 6, 24, 0.95) 30%);
  display: flex;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta .btn-playful {
  max-width: var(--max-w);
}

/* Gate popup */
body.gate-open {
  overflow: hidden;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px calc(16px + var(--safe-bottom));
}

.gate[hidden] {
  display: none;
}

.gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 12, 0.72);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.gate__panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #160b28;
  border: 1px solid var(--playful-border);
  border-radius: 20px;
  padding: 22px 20px 20px;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
  outline: none;
}

.gate.is-open .gate__backdrop {
  opacity: 1;
}

.gate.is-open .gate__panel {
  transform: translateY(0);
  opacity: 1;
}

.gate__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.gate__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--playful-yellow);
  margin-bottom: 6px;
}

.gate__title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  padding-right: 28px;
}

.gate__rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.gate__rules li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}

.gate__rule-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  background: linear-gradient(145deg, #7b3ff2, #a855f7);
}

.gate__rules strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.gate__rules p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.gate__rules .hl,
.tip-card .hl {
  color: #fff;
  font-weight: 700;
}

.gate__checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.gate__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--playful-border);
  background: rgba(30, 10, 50, 0.55);
}

.gate__check input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--playful-purple);
  flex-shrink: 0;
  cursor: pointer;
}

.gate__cta {
  max-width: none;
}

.gate__cta-hint {
  margin-top: 10px;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 214, 120, 0.85);
  font-weight: 600;
}

@media (min-width: 480px) {
  .gate {
    align-items: center;
  }
}
