/* Plus paywall — a Discord-style bottom sheet shown before the native Google
   Play purchase. Lives globally but only opened by JS inside the Android app
   (where window.WordSistersPremium exists). Hidden + inert everywhere else. */
.ws-paywall[hidden] { display: none; }
.ws-paywall {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: inherit;
}
.ws-paywall-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 26, 20, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.ws-paywall.open .ws-paywall-backdrop { opacity: 1; }

.ws-paywall-sheet {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fffdf8;
  border-radius: 26px 26px 0 0;
  padding: 0 22px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 44px rgba(18, 26, 20, 0.3);
  transform: translateY(101%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 94vh;
  overflow-y: auto;
}
.ws-paywall.open .ws-paywall-sheet { transform: translateY(0); }

.ws-paywall-grabber {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  margin: 12px auto 0;
  position: relative;
  z-index: 2;
}
.ws-paywall-x {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.ws-paywall-hero {
  text-align: center;
  margin: -36px -22px 20px;
  padding: 54px 22px 24px;
  background: radial-gradient(120% 90% at 50% 0%, #43a268 0%, #2f7d4f 52%, #246a41 100%);
  color: #fff;
}
.ws-paywall-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 13px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 8px 18px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-paywall-badge img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.ws-paywall-hero h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.ws-paywall-tagline {
  margin: 7px 0 0;
  font-size: 14px;
  opacity: 0.93;
}

.ws-paywall-benefits {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.ws-paywall-benefits li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 2px;
  font-size: 15.5px;
  color: #243024;
  border-bottom: 1px solid #f1ede3;
}
.ws-paywall-benefits li:last-child { border-bottom: none; }
.ws-paywall-benefits b { font-weight: 800; }
.ws-pw-check {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  background: #e4f4ea;
  color: #2f7d4f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.ws-paywall-price {
  text-align: center;
  margin: 2px 0 18px;
  color: #6b7568;
  text-decoration: none;
}
.ws-paywall-price #ws-paywall-price-amount {
  font-size: 29px;
  font-weight: 700;
  color: #243024;
  text-decoration: none;
  letter-spacing: 0.4px;
}
.ws-pw-period { font-size: 15px; color: #6b7568; }

.ws-paywall-cta {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: #2f7d4f;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(47, 125, 79, 0.34);
  transition: transform 0.12s ease, background 0.2s ease;
}
.ws-paywall-cta:active { transform: scale(0.985); background: #276b43; }
.ws-paywall-later {
  display: block;
  width: 100%;
  margin: 9px 0 0;
  padding: 11px;
  border: none;
  background: none;
  color: #8a9486;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ws-paywall-fine {
  text-align: center;
  margin: 9px 0 0;
  font-size: 12px;
  color: #aab1a4;
}
body.ws-paywall-open { overflow: hidden; }

/* Dark mode */
.dark-mode .ws-paywall-sheet { background: #1e231e; }
.dark-mode .ws-paywall-benefits li { color: #e8ede5; border-color: #2c332c; }
.dark-mode .ws-paywall-benefits .ws-pw-check { background: #21402e; }
.dark-mode .ws-paywall-price #ws-paywall-price-amount { color: #fff; }
