/* Elevation 168 — paid tier gate.
   Covers the page rather than hiding pieces of it: the workout content stays
   in the DOM for the moment entitlement arrives, but is not readable or
   scrollable behind the gate. */
.e168-gated { overflow: hidden; }

.e168-gate {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 6, 8, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.e168-gate-card {
  width: min(460px, 100%);
  padding: 38px 30px 32px;
  text-align: center;
  background: #0b0d11;
  border: 1px solid rgba(225, 6, 0, 0.32);
}

.e168-gate-icon {
  width: 68px; height: 68px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border: 1px solid rgba(225, 6, 0, 0.42);
  border-radius: 50%;
  color: #e10600;
}

.e168-gate-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e10600;
  margin: 0 0 8px;
}

.e168-gate-title {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
  color: #f7f7f4;
  margin: 0 0 14px;
}

.e168-gate-body {
  color: #c7ccd1;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 auto 18px;
  max-width: 36ch;
}

.e168-gate-price {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a929b;
  margin: 0 0 16px;
  min-height: 1em;
}

.e168-gate-buy {
  display: block;
  width: 100%;
  padding: 16px 22px;
  border: none;
  background: #e10600;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease;
}
.e168-gate-buy:hover:not(:disabled) { background: #ff2419; }
.e168-gate-buy:disabled { opacity: 0.5; cursor: default; }

.e168-gate-restore {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 13px 22px;
  background: transparent;
  border: 1px solid rgba(247, 247, 244, 0.24);
  color: #f7f7f4;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.e168-gate-restore:hover:not(:disabled) { border-color: #e10600; color: #ff8a80; }
.e168-gate-restore:disabled { opacity: 0.5; cursor: default; }

.e168-gate-msg {
  min-height: 1.2em;
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: #fbbf24;
}

.e168-gate-back {
  display: inline-block;
  margin-top: 18px;
  color: #8a929b;
  font-size: 0.85rem;
  text-decoration: none;
}
.e168-gate-back:hover { color: #f7f7f4; }

@media (prefers-reduced-motion: reduce) {
  .e168-gate { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(5, 6, 8, 0.97); }
}

/* Subscription disclosure. Required on the purchase screen by both stores,
   so it must be legible -- not grey-on-grey fine print. */
.e168-gate-terms {
  margin: 16px auto 0;
  max-width: 40ch;
  font-size: 0.76rem;
  line-height: 1.6;
  color: #8a929b;
}

.e168-gate-legal {
  margin: 14px 0 0;
  font-size: 0.76rem;
  color: #6b727a;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.e168-gate-legal a { color: #8a929b; text-decoration: underline; }
.e168-gate-legal a:hover { color: #f7f7f4; }
