/* The Mahjong Island Plus paywall (/play). Same cream card as the identity gate; quiet, one gold call to action. */
.paywall {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(10, 18, 14, 0.6);
  animation: paywall-fade 0.2s ease-out;
}

.paywall[hidden] {
  display: none !important;
}

.paywall-card {
  display: grid;
  gap: 0.8rem;
  width: min(26rem, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 1.6rem 1.4rem 1.25rem;
  border-radius: 1.15rem;
  background: #f7f4ec;
  color: #1c2822;
  color-scheme: light;
  text-align: center;
  box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.28);
}

.paywall-card:focus {
  outline: none;
}

.paywall-kicker,
.paywall-title,
.paywall-copy,
.paywall-price,
.paywall-free {
  margin: 0;
}

.paywall-kicker {
  color: #9a6a10;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.paywall-title {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.paywall-copy {
  color: rgba(28, 40, 34, 0.74);
  font-size: 0.97rem;
  line-height: 1.45;
}

.paywall-perks {
  display: grid;
  gap: 0.35rem;
  margin: 0.1rem 0;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
  font-weight: 650;
}

.paywall-perks li::before {
  content: "✓";
  margin-right: 0.5rem;
  color: #b8861b;
  font-weight: 900;
}

.paywall-price {
  color: rgba(28, 40, 34, 0.6);
  font-size: 0.86rem;
  font-weight: 650;
}

.paywall-join {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 13px;
  background: linear-gradient(180deg, #f8d779, #d9a93a);
  color: #3d2a08;
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 #9a6a10, 0 10px 18px rgba(80, 60, 10, 0.2);
}

.paywall-join:hover,
.paywall-join:focus-visible {
  filter: brightness(1.04);
}

.paywall-later {
  min-height: 40px;
  border: 0;
  background: none;
  color: rgba(28, 40, 34, 0.62);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.paywall-later:hover,
.paywall-later:focus-visible {
  color: #1c2822;
}

.paywall-free {
  color: rgba(28, 40, 34, 0.62);
  font-size: 0.84rem;
  line-height: 1.5;
}

.paywall-free a {
  color: #246b55;
  font-weight: 700;
}

.play-allowance,
.home-allowance {
  margin: 0.2rem 0 0;
  color: var(--play-muted, rgba(232, 238, 230, 0.55));
  font-size: 0.74rem;
  font-weight: 650;
}

.home-allowance {
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.play-allowance[hidden],
.home-allowance[hidden] {
  display: none;
}

@keyframes paywall-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .paywall {
    animation: none;
  }
}
