/* ═══════════════════════════════════════════════════════════════════
   GUARDIANS · WHISPERS FROM LUNARA (whispers.css)
   The only page that whispers. Portal grammar kept — hero-stage,
   bands — but the proclamation is lowercase and italic (the one
   deliberate break), the palette runs moon-silver where the others
   run gold, and every pool of light is candle-sized. The page's ONE
   gold door is the Draw button: here, the precious act is drawing a
   whisper. portal.css is LAW.
   ═══════════════════════════════════════════════════════════════════ */

/* the whispered proclamation */
.stage-name.whispered .g1,
.stage-name.whispered .g2 {
  text-transform: lowercase; font-style: italic; letter-spacing: 0.04em;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  text-shadow: 0 2px 14px rgba(6, 6, 16, 0.85), 0 0 30px rgba(168, 188, 236, 0.28);
}
.stage-name.whispered .g2 { color: #c8d4f0; }

/* moon-silver band heads */
.wl-head {
  max-width: 1100px; margin: 0 auto 6px; display: flex; align-items: baseline; gap: 12px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  color: #a8bce4;
}
.wl-head::after { content: ""; flex: 1 1 auto; border-top: 1px solid rgba(168, 188, 228, 0.28); }
.wl-note {
  max-width: 1100px; margin: 0 auto 16px; font-family: var(--f-arc); font-style: italic;
  color: #9d92b8; font-size: 0.95rem;
}
.wl-gap { height: clamp(30px, 5vw, 54px); }

/* ── About Lunara: the close portrait ── */
.wl-about {
  max-width: 1100px; margin: 0 auto; display: flex; align-items: flex-start;
  gap: clamp(18px, 3vw, 40px); flex-wrap: wrap;
}
.wl-about .pic { flex: 0 1 460px; min-width: 280px; }
.wl-about .pic img {
  width: 100%; height: auto; border-radius: 12px; cursor: zoom-in;
  border: 1px solid rgba(168, 188, 228, 0.3);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 0 34px rgba(168, 188, 236, 0.12);
}
.wl-about .tx { flex: 1 1 400px; min-width: 260px; padding-top: 4px; }
.wl-about h2 { font-family: var(--f-arc); font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 10px; color: #f0eaf8; }
.wl-about p { font-family: var(--f-arc); line-height: 1.75; color: #c9bfdd; margin: 0 0 16px; }
.wl-about .doors { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── THE WHISPER JAR ── */
html:not(.whispers-on) .wj-live { display: none; }
html.whispers-on #wj-fallback { display: none; }

.wj-row {
  max-width: 1100px; margin: 0 auto; display: flex; align-items: center;
  gap: clamp(18px, 3.4vw, 46px); flex-wrap: wrap;
}
.wj-jarbtn {
  flex: 0 1 clamp(160px, 18vw, 230px); width: clamp(160px, 18vw, 230px);
  margin: 0 auto; position: relative; background: none; border: none; padding: 0;
  cursor: pointer;
}
html:not(.whispers-on) .wj-jarbtn { pointer-events: none; cursor: default; }
.wj-jarbtn:focus-visible { outline: 2px solid rgba(168, 188, 228, 0.6); outline-offset: 8px; border-radius: 14px; }
.wj-jar {
  display: block; width: 100%;
  margin: 0 auto; height: auto;
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 30px rgba(255, 220, 150, 0.16));
  animation: wj-breathe 6s ease-in-out infinite;
}
@keyframes wj-breathe {
  0%, 100% { filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 24px rgba(255, 220, 150, 0.12)); }
  50%      { filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 38px rgba(255, 220, 150, 0.24)); }
}
/* sparkles wake on hover; the glass rattles on a draw */
.wj-spark {
  position: absolute; color: #e8e0ff; opacity: 0; pointer-events: none;
  text-shadow: 0 0 8px rgba(200, 190, 255, 0.9); font-size: 0.9rem;
}
.wj-spark.s1 { top: 18%; left: 6%; }
.wj-spark.s2 { top: 8%; right: 10%; font-size: 0.7rem; }
.wj-spark.s3 { bottom: 22%; right: 2%; font-size: 0.8rem; }
@keyframes wj-sparkle {
  0%   { opacity: 0; transform: translateY(4px) scale(0.7); }
  40%  { opacity: 1; transform: translateY(-4px) scale(1.05); }
  100% { opacity: 0; transform: translateY(-12px) scale(0.8); }
}
.wj-jarbtn:hover .wj-spark.s1, .wj-jarbtn:focus-visible .wj-spark.s1 { animation: wj-sparkle 1.6s ease-out infinite; }
.wj-jarbtn:hover .wj-spark.s2, .wj-jarbtn:focus-visible .wj-spark.s2 { animation: wj-sparkle 1.6s ease-out 0.45s infinite; }
.wj-jarbtn:hover .wj-spark.s3, .wj-jarbtn:focus-visible .wj-spark.s3 { animation: wj-sparkle 1.6s ease-out 0.9s infinite; }
.wj-jarbtn:hover .wj-jar { filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 44px rgba(255, 220, 150, 0.3)); }
@keyframes wj-rattle {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-2.4deg) translateX(-1px); }
  35% { transform: rotate(2.2deg) translateX(1px); }
  55% { transform: rotate(-1.6deg); }
  75% { transform: rotate(1.1deg); }
}
.wj-jarbtn.rattle .wj-jar { animation: wj-rattle 0.5s ease-in-out; transform-origin: 50% 88%; }
@media (prefers-reduced-motion: reduce) {
  .wj-jarbtn.rattle .wj-jar,
  .wj-jarbtn:hover .wj-spark.s1, .wj-jarbtn:hover .wj-spark.s2, .wj-jarbtn:hover .wj-spark.s3,
  .wj-jarbtn:focus-visible .wj-spark.s1, .wj-jarbtn:focus-visible .wj-spark.s2, .wj-jarbtn:focus-visible .wj-spark.s3 { animation: none; }
}
.wj-side { flex: 1 1 380px; min-width: 280px; }
.wj-card {
  border: 1px solid rgba(168, 188, 228, 0.25); border-radius: 12px;
  background: rgba(14, 12, 28, 0.8); padding: clamp(18px, 3vw, 28px);
  min-height: 170px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.wj-card .quote { font-family: var(--f-arc); font-style: italic; font-size: 1.08rem; line-height: 1.7; color: #e9e2f4; margin: 0 0 12px; }
.wj-card .idle { font-family: var(--f-arc); font-style: italic; color: #9d92b8; margin: 0; }
.wj-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.wj-chips span {
  font-size: 0.7rem; letter-spacing: 0.08em; color: #a8bce4;
  border: 1px solid rgba(168, 188, 228, 0.35); border-radius: 999px; padding: 2px 11px;
}
.wj-line { font-size: 0.9rem; line-height: 1.55; color: #c9bfdd; margin: 0 0 6px; }
.wj-line b { color: #a8bce4; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.66rem; }
.wj-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.wj-buttons button { font-family: inherit; cursor: pointer; }

@keyframes wj-reveal {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.wj-card.wj-lit .quote, .wj-card.wj-lit .wj-chips, .wj-card.wj-lit .wj-line { animation: wj-reveal 0.32s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .wj-jar { animation: none; }
  .wj-card.wj-lit .quote, .wj-card.wj-lit .wj-chips, .wj-card.wj-lit .wj-line { animation: none; }
}

/* No-JS truth: every slip laid on the table */
#wj-fallback { max-width: 940px; margin: 0 auto; }
.wf-slip {
  border: 1px solid rgba(183, 154, 224, 0.22); border-radius: 10px;
  background: rgba(16, 13, 30, 0.72); margin: 0 0 12px; padding: 16px 18px;
}
.wf-slip .quote { font-family: var(--f-arc); font-style: italic; line-height: 1.65; color: #e9e2f4; margin: 0 0 8px; }
.wf-slip .tags { font-size: 0.74rem; color: #a8bce4; margin: 0 0 6px; }
.wf-slip p { margin: 0 0 4px; font-size: 0.88rem; color: #c9bfdd; }
.wf-slip b { color: #a8bce4; text-transform: uppercase; font-size: 0.66rem; letter-spacing: 0.08em; }

/* ── Books & Doorways ── */
.wl-books {
  max-width: 1100px; margin: 0 auto; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  align-items: stretch;
}
.wl-book {
  border: 1px solid rgba(168, 188, 228, 0.22); border-radius: 12px;
  background: rgba(14, 12, 28, 0.78); padding: 20px; text-align: center;
  margin: 0; display: flex; flex-direction: column;
}
.wl-book figcaption { flex: 1 1 auto; }
.wl-book img {
  width: min(100%, 230px); height: auto; border-radius: 8px; cursor: zoom-in;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.wl-book figcaption { font-family: var(--f-arc); font-style: italic; color: #ab9fc4; margin-top: 10px; }
.wl-book .doors {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  max-width: 330px; margin: 14px auto 0; width: 100%;
}
.wl-book .doors .btn-ghost { text-align: center; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
.wl-tiles { display: grid; gap: 10px; grid-auto-rows: 1fr; height: 100%; }
.wl-tile {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  border: 1px solid rgba(168, 188, 228, 0.22); border-radius: 10px;
  padding: 13px 16px; background: rgba(14, 12, 28, 0.78);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.wl-tile:hover { border-color: rgba(168, 188, 228, 0.5); box-shadow: 0 0 22px rgba(168, 188, 236, 0.16); }
.wl-tile .icon { font-size: 1.2rem; flex: 0 0 auto; }
.wl-tile strong { display: block; color: #f0eaf8; font-size: 0.9rem; }
.wl-tile em { display: block; font-style: normal; color: #9d92b8; font-size: 0.76rem; }
.wl-tile .ext { margin-left: auto; color: #a8bce4; }


/* ── THE NIGHT PAGES: one book, everything inside ── */
html:not(.nightpages-on) .np-live { display: none; }
html.nightpages-on #np-fallback { display: none; }
html:not(.nightpages-on) .np-indexpage { display: none; }

.wl-credo {
  font-family: var(--f-arc); font-style: italic; color: #a8bce4;
  border-left: 2px solid rgba(168, 188, 228, 0.4); padding-left: 14px;
  line-height: 1.7; margin: 0 0 16px;
}
/* one object at rest: the closed journal; the spread opens IN PLACE */
.np-zone { max-width: 820px; margin: 0 auto; }
#np-head { scroll-margin-top: 84px; }
html:not(.nightpages-on) .np-closed { display: none; }
html.nightpages-on .np-zone:not(.book-open) .np-spread { display: none; }
html.nightpages-on .np-zone.book-open .np-closed { display: none; }

.np-closed {
  margin: 0 auto; width: clamp(230px, 30vw, 340px);
  background: none; border: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: transform 0.25s ease;
}
.np-closed img {
  width: 100%; height: auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 30px rgba(168, 188, 236, 0.16));
  transition: filter 0.25s ease;
}
.np-closed:hover, .np-closed:focus-visible { transform: translateY(-5px); }
.np-closed:hover img, .np-closed:focus-visible img {
  filter: drop-shadow(0 30px 38px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 46px rgba(168, 188, 236, 0.34));
}
.np-closed:focus-visible { outline: 2px solid rgba(168, 188, 228, 0.6); outline-offset: 8px; border-radius: 12px; }
.np-closed-hint {
  font-family: var(--f-ui); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: #a8bce4; opacity: 0.8; transition: opacity 0.25s ease;
}
.np-closed:hover .np-closed-hint { opacity: 1; }
@keyframes np-open-book {
  0%   { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}
.np-zone.book-open .np-spread { animation: np-open-book 0.35s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .np-closed, .np-closed:hover { transform: none; transition: none; }
  .np-zone.book-open .np-spread { animation: none; }
}

/* the spread's ribbon header: close (left) · random (right) */
.np-tools {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: rgba(6, 7, 15, 0.82);
  border-bottom: 1px solid rgba(168, 188, 228, 0.22);
}
.np-tools-foot { border-bottom: none; border-top: 1px solid rgba(168, 188, 228, 0.22); }
.np-corner.bottom { top: auto; bottom: 10px; }
.np-tools button {
  cursor: pointer; background: none; border: 1px solid rgba(168, 188, 228, 0.35);
  border-radius: 999px; padding: 7px 16px; color: #c8d4f0;
  font-family: var(--f-ui); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.np-tools button:hover { border-color: rgba(168, 188, 228, 0.75); color: #fff; }

/* the spread */
.np-spread {
  outline: none; width: 100%;
  display: grid; grid-template-columns: minmax(190px, 250px) 1fr;
  grid-template-rows: auto 1fr auto;
  border-radius: 12px; overflow: hidden; position: relative;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
}
.np-spread::after {
  content: ""; position: absolute; top: 46px; bottom: 46px; left: min(250px, 34%); width: 40px;
  transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.45) 50%, transparent);
}
.np-spread:focus-visible { box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(168, 188, 228, 0.5); }
.np-page { padding: clamp(20px, 3vw, 34px); min-height: 460px; }
.np-page.np-paper { position: relative; padding-top: clamp(40px, 5vw, 52px); }
.np-indexpage {
  background:
    linear-gradient(rgba(8, 9, 20, 0.34), rgba(8, 9, 20, 0.46)),
    url("../images/whispers/night-paper-0.webp") center / cover;
  border-right: 1px solid rgba(0, 0, 0, 0.4);
}
.np-paper { background-size: cover; background-position: center; }
.np-paper.pp0 {
  background-image: linear-gradient(rgba(8, 9, 20, 0.3), rgba(8, 9, 20, 0.42)),
    url("../images/whispers/night-paper-0.webp");
}
.np-paper.pp1 {
  background-image: linear-gradient(rgba(8, 9, 20, 0.3), rgba(8, 9, 20, 0.42)),
    url("../images/whispers/night-paper-1.webp");
}

/* the index */
.np-indexhead {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: #a8bce4; margin: 0 0 12px;
}
.np-index { display: grid; gap: 2px; }
.np-index button {
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--f-arc); font-style: italic; font-size: 0.92rem; line-height: 1.35;
  color: #c3badc; padding: 7px 6px; border-bottom: 1px dotted rgba(168, 188, 228, 0.22);
  display: flex; align-items: baseline; gap: 8px;
}
.np-index button:hover { color: #f0eaf8; background: rgba(168, 188, 236, 0.07); }
.np-index button.open { color: #f0eaf8; font-weight: 700; background: rgba(168, 188, 236, 0.1); }
.np-index .mark { flex: 0 0 auto; font-size: 0.7rem; opacity: 0.8; }

/* corner ribbons — where a reader's thumbs rest */
.np-corner {
  position: absolute; top: 10px; left: 12px; z-index: 2; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(8, 8, 18, 0.5); border: 1px solid rgba(168, 188, 228, 0.4);
  color: #c8d4f0; font-size: 1rem; line-height: 1; backdrop-filter: blur(2px);
}
.np-corner.right { left: auto; right: 12px; }
.np-corner:hover { border-color: rgba(168, 188, 228, 0.8); color: #fff; }
.np-ribbon-back { display: none; }

/* the poem */
.np-title { font-family: var(--f-arc); font-weight: 400; font-size: 1.25rem; color: #f0eaf8; margin: 0 0 6px; }
.np-note { font-family: var(--f-arc); font-style: italic; font-size: 0.85rem; color: #9d92b8; margin: 0 0 14px; }
.np-verse {
  white-space: pre-line; font-family: var(--f-arc); font-style: italic;
  line-height: 1.75; color: #d8d1e8; margin: 0 0 16px;
}
.np-sig { font-family: var(--f-arc); font-size: 0.85rem; color: #a8bce4; text-align: right; margin: 0; }
.np-counter-hidden { display: none; }

/* art on a page: image or the living plate */
.np-art { position: relative; margin: 0 0 6px; }
.np-art img, .np-art video {
  display: block; width: 100%; height: auto; border-radius: 8px;
  border: 1px solid rgba(168, 188, 228, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.np-art img[data-zoom] { cursor: zoom-in; }
.np-art .wl-sound { left: 8px; bottom: 8px; }
.np-prayer {
  font-family: var(--f-arc); font-size: 0.82rem; font-style: italic;
  color: #9d92b8; margin: 8px 2px 16px; line-height: 1.6;
}
@keyframes np-turn {
  0%   { opacity: 0; transform: translateX(10px); }
  100% { opacity: 1; transform: translateX(0); }
}
#np-page.np-turn { animation: np-turn 0.3s ease-out; }
@media (prefers-reduced-motion: reduce) {
  #np-page.np-turn { animation: none; }
  .np-journal, .np-journal:hover { transform: none; transition: none; }
}

/* one page at a time on small screens */
@media (max-width: 720px) {
  .np-spread { grid-template-columns: 1fr; }
  .np-spread::after { display: none; }
  .np-page.np-paper { display: none; }
  .np-spread.entry-open .np-indexpage { display: none; }
  .np-spread.entry-open .np-page.np-paper { display: block; }
  .np-ribbon-back {
    display: inline-block; position: sticky; bottom: 6px; margin-top: 16px; cursor: pointer;
    font-family: var(--f-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: #c8d4f0; background: rgba(8, 8, 18, 0.75);
    border: 1px solid rgba(168, 188, 228, 0.4); border-radius: 6px; padding: 11px 18px;
  }
}

/* the flat book (No-JS / print truth) */
.np-flat { border-top: 1px solid rgba(168, 188, 228, 0.18); padding: 18px 0; }
.np-flat:first-of-type { border-top: none; }
.np-flat h4 { font-family: var(--f-arc); font-weight: 400; font-size: 1.15rem; color: #f0eaf8; margin: 0 0 6px; }
.np-flat video, .np-flat img.np-flat-art { display: block; width: 100%; height: auto; border-radius: 8px; margin: 0 0 10px; }
