/* Star Stories — the "little compass" poster add-on (on-screen preview).
   The printable A3 document carries its own inline CSS (see poster.js). */

/* the add-on trigger under "Create this book" */
.ss-addon { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(201,162,39,0.22); text-align: center; }
.ss-addon-btn {
  font-family: Georgia, serif; font-size: 14px; cursor: pointer; letter-spacing: 0.02em;
  color: #cdb964; background: transparent; border: 1px solid #cdb964; border-radius: 10px;
  padding: 10px 16px; width: 100%;
}
.ss-addon-btn:hover { background: rgba(205,185,100,0.1); }
.ss-addon-hint { display: block; margin-top: 8px; font-size: 12px; color: #9a9382; line-height: 1.5; }

/* overlay (mirrors the reader overlay) */
.ss-poster-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(16, 16, 28, 0.78); backdrop-filter: blur(3px);
  overflow-y: auto; padding: 24px 16px 60px;
}
.ss-poster-overlay.is-open { display: block; }
.ss-poster-body { display: flex; justify-content: center; }

/* the poster itself — an A3 sheet scaled to fit the screen */
.pc-poster {
  width: min(94vw, 500px); aspect-ratio: 297 / 420;
  background: #faf6ec; color: #2c2416; position: relative;
  padding: 8.5%; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 6px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  font-family: Georgia, 'Times New Roman', serif;
}
.pc-frame { position: absolute; inset: 4.5%; border: 1.5px solid #c9a227; border-radius: 12px; pointer-events: none; }
.pc-frame:before { content: ""; position: absolute; inset: 10px; border: 0.6px solid #d9c98f; border-radius: 9px; }
.pc-kicker { text-align: center; letter-spacing: 0.3em; text-transform: uppercase; font-size: 10px; color: #9a7010; margin-bottom: 12px; }
.pc-title { text-align: center; font-size: clamp(20px, 5.4vw, 30px); font-weight: normal; letter-spacing: 0.03em; line-height: 1.12; color: #2c2416; }
.pc-sub { text-align: center; font-size: 12px; color: #8a7860; margin-top: 8px; font-style: italic; }
.pc-avatar { display: block; width: 34%; height: auto; margin: 16px auto 8px; filter: drop-shadow(0 8px 18px rgba(44,36,22,0.25)); }
.pc-avatar.pc-vec svg { display: block; width: 100%; height: auto; }
.pc-rules { margin: 10px auto 0; width: 100%; display: flex; flex-direction: column; gap: clamp(8px, 1.7vh, 15px); }
.pc-rule { display: flex; gap: 12px; align-items: flex-start; }
.pc-rule .pc-star { flex: 0 0 auto; color: #c9a227; font-size: 14px; line-height: 1.45; }
.pc-rule p { font-size: clamp(12px, 2.9vw, 15px); line-height: 1.45; color: #3a3020; }
.pc-rule small { display: block; color: #9a8a6a; font-size: 10px; font-style: italic; margin-top: 2px; }
.pc-foot { margin-top: auto; text-align: center; color: #8a7860; font-style: italic; font-size: 11px; padding-top: 14px; }
.pc-foot b { color: #9a7010; font-style: normal; letter-spacing: 0.05em; }
