/* Lion & Lamp — demo paywall modal
   Only loaded on /library/try-*.html preview pages. */

body.ll-paywall-open { overflow: hidden; }

.ll-paywall-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(6, 9, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 240ms ease;
}
.ll-paywall-overlay.is-visible { opacity: 1; }

.ll-paywall-card {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: linear-gradient(180deg, #14172a 0%, #0d1024 100%);
  border: 1px solid rgba(212, 175, 78, 0.28);
  border-radius: 22px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(212, 175, 78, 0.08) inset;
  padding: 2.2rem 1.8rem 1.8rem;
  color: #f2ecd8;
  text-align: center;
  transform: translateY(14px) scale(0.98);
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.ll-paywall-overlay.is-visible .ll-paywall-card { transform: translateY(0) scale(1); }

.ll-paywall-crest {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(212, 175, 78, 0.08);
  border: 1px solid rgba(212, 175, 78, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ll-paywall-crest img { width: 40px; height: 40px; object-fit: contain; }

.ll-paywall-eyebrow {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d4af4e;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.ll-paywall-title {
  font-family: 'Boska', Georgia, serif;
  font-size: clamp(1.55rem, 4.5vw, 1.95rem);
  font-weight: 500;
  line-height: 1.15;
  color: #f7e9c1;
  margin: 0 0 0.6rem;
  letter-spacing: -0.005em;
}

.ll-paywall-sub {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(242, 236, 216, 0.78);
  margin: 0 0 1.4rem;
}

.ll-paywall-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  text-align: left;
  display: grid;
  gap: 0.45rem;
}
.ll-paywall-features li {
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(242, 236, 216, 0.9);
  padding-left: 1.6rem;
  position: relative;
}
.ll-paywall-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23d4af4e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 10l4 4 8-8'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}
.ll-paywall-features em { font-style: italic; color: #f2ecd8; }

.ll-paywall-ctas {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.ll-paywall-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  font-family: 'General Sans', system-ui, sans-serif;
}
.ll-paywall-btn:hover { transform: translateY(-1px); }

.ll-paywall-btn--primary {
  background: linear-gradient(135deg, #d4af4e 0%, #b98c2b 100%);
  color: #14172a;
  border: 1px solid rgba(255, 220, 140, 0.4);
  box-shadow: 0 6px 18px rgba(212, 175, 78, 0.25);
}
.ll-paywall-btn--primary:hover { background: linear-gradient(135deg, #e6c258 0%, #c99733 100%); }

.ll-paywall-btn--secondary {
  background: rgba(255, 255, 255, 0.03);
  color: #f2ecd8;
  border: 1px solid rgba(212, 175, 78, 0.35);
}
.ll-paywall-btn--secondary:hover {
  background: rgba(212, 175, 78, 0.08);
  border-color: rgba(212, 175, 78, 0.55);
}

.ll-paywall-price {
  font-family: 'Boska', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
.ll-paywall-price-sm {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.75;
  margin-left: 0.15rem;
}
.ll-paywall-btn-label {
  font-size: 0.88rem;
  font-weight: 500;
  text-align: right;
  line-height: 1.15;
  opacity: 0.9;
}

.ll-paywall-mini {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: rgba(242, 236, 216, 0.55);
}
.ll-paywall-mini a {
  color: rgba(242, 236, 216, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ll-paywall-mini a:hover { color: #f2ecd8; }

/* Small "You're playing the free preview" ribbon on demo pages */
.ll-demo-ribbon {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  background: linear-gradient(90deg, rgba(212, 175, 78, 0.16) 0%, rgba(212, 175, 78, 0.08) 100%);
  border-bottom: 1px solid rgba(212, 175, 78, 0.35);
  color: #f7e9c1;
  font-family: 'General Sans', system-ui, sans-serif;
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  text-align: center;
  letter-spacing: 0.02em;
}
.ll-demo-ribbon strong { color: #d4af4e; font-weight: 600; }
body.has-demo-ribbon .player-header { margin-top: 2.1rem; }

@media (max-width: 480px) {
  .ll-paywall-card { padding: 1.8rem 1.2rem 1.4rem; }
  .ll-paywall-btn { padding: 0.85rem 1rem; gap: 0.6rem; }
  .ll-paywall-price { font-size: 1.2rem; }
  .ll-paywall-btn-label { font-size: 0.78rem; }
  .ll-demo-ribbon { font-size: 0.75rem; padding: 0.45rem 0.8rem; }
}

/* ─────────────────────────────────────────────────────────
   Resume banner — shown on char-select if saved progress exists
   ───────────────────────────────────────────────────────── */
.ll-resume-banner {
  margin: 0 auto 1.5rem;
  max-width: 720px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(232, 184, 74, 0.15), rgba(232, 184, 74, 0.06));
  border: 1px solid rgba(232, 184, 74, 0.4);
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.ll-resume-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.ll-resume-copy { flex: 1 1 240px; min-width: 0; }
.ll-resume-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8b84a;
  margin-bottom: 0.25rem;
}
.ll-resume-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ll-text, #ede8d8);
  line-height: 1.3;
}
.ll-resume-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ll-resume-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.ll-resume-btn--primary {
  background: #e8b84a;
  color: #1a1a2e;
  box-shadow: 0 4px 12px rgba(232, 184, 74, 0.35);
}
.ll-resume-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(232, 184, 74, 0.5);
}
.ll-resume-btn--ghost {
  background: transparent;
  color: #ede8d8;
  border: 1px solid rgba(237, 232, 216, 0.3);
}
.ll-resume-btn--ghost:hover { background: rgba(237, 232, 216, 0.08); }

/* ─────────────────────────────────────────────────────────
   Homepage "Continue Reading" strip
   ───────────────────────────────────────────────────────── */
.resume-strip {
  display: none; /* hidden by default — script reveals if progress exists */
  padding: 2.5rem 0 1rem;
}
.resume-strip.is-visible { display: block; }
.resume-strip .container { max-width: 1180px; }
.resume-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.resume-strip-head h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ll-text, #ede8d8);
  margin: 0;
}
.resume-strip-head p { color: rgba(237, 232, 216, 0.65); margin: 0; font-size: 0.95rem; }
.resume-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.resume-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgba(232, 184, 74, 0.08);
  border: 1px solid rgba(232, 184, 74, 0.3);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.resume-card:hover {
  transform: translateY(-2px);
  background: rgba(232, 184, 74, 0.14);
  border-color: rgba(232, 184, 74, 0.5);
}
.resume-card-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(232, 184, 74, 0.2);
  display: grid; place-items: center;
  color: #e8b84a;
}
.resume-card-body { flex: 1; min-width: 0; }
.resume-card-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8b84a;
  margin-bottom: 0.15rem;
}
.resume-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ll-text, #ede8d8);
  margin: 0 0 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.resume-card-meta {
  font-size: 0.85rem;
  color: rgba(237, 232, 216, 0.6);
}
