/* ==========================================================================
   THE SEVEN MARKS — presentation layer
   Purple is reserved. Every amethyst pixel on this site means
   "something is hidden here." Nothing below is visible until a mark is found.
   ========================================================================== */

/* ---------- The craft / no-television section ---------- */
.craft-body { max-width: 68ch; margin: 2rem auto 0; text-align: left; }
.craft-body .lead { margin-bottom: 1.1rem; }
.craft-body .lead:last-child { margin-bottom: 0; }
.craft-body strong { color: var(--gold); font-weight: 500; }
#craft {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(107,63,160,0.14), transparent 62%),
    transparent;
}

/* ==========================================================================
   HOT SPOTS — the marks themselves.
   Deliberately almost invisible. A booker will never notice these.
   ========================================================================== */

/* The signature: no cue at all until you are already hovering it */
.mark-hot { cursor: default; transition: filter 1.4s ease, opacity 1.4s ease; }
.mark-hot:hover { filter: drop-shadow(0 0 14px rgba(124,58,237,0.85)); opacity: 0.95; }

/* One letter, leaning half a degree. Findable only by someone really looking. */
.mark-tilt {
  display: inline-block;
  transform: rotate(4deg) translateY(-1px);
  cursor: pointer;
  transition: color 600ms ease, text-shadow 600ms ease, transform 600ms ease;
}
.mark-tilt:hover {
  color: var(--secret, #7c3aed);
  text-shadow: 0 0 22px rgba(124,58,237,0.9);
  transform: rotate(-4deg) translateY(-1px);
}

/* The vanished card, returned to the reveal panel */
.mark-ghost-card {
  display: block;
  margin: 1.6rem auto 0;
  width: 34px; height: 48px;
  border: 1px solid rgba(124,58,237,0.28);
  border-radius: 5px;
  background: rgba(124,58,237,0.05);
  color: rgba(237,230,218,0.16);
  font-size: 15px; line-height: 46px; text-align: center;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16,1,0.3,1),
              box-shadow 700ms ease, color 700ms ease, border-color 700ms ease;
}
.mark-ghost-card:hover {
  opacity: 1;
  color: var(--secret, #7c3aed);
  border-color: rgba(124,58,237,0.9);
  transform: translateY(-5px) rotate(-7deg) scale(1.12);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 32px rgba(124,58,237,0.55);
}

/* ==========================================================================
   THE TOAST — confirmation that something was found
   ========================================================================== */
.mark-toast {
  position: fixed; left: 50%; bottom: 34px;
  transform: translate(-50%, 24px);
  z-index: 120;
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.95rem 1.5rem;
  max-width: min(90vw, 480px);
  border: 1px solid rgba(124,58,237,0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(36,21,49,0.98), rgba(18,10,25,0.98));
  box-shadow: 0 22px 60px rgba(0,0,0,0.6), 0 0 40px rgba(124,58,237,0.3);
  color: var(--text, #ede6da);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.02rem; font-style: italic;
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.16,1,0.3,1),
              transform 700ms cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
.mark-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.mark-toast-sigil {
  color: var(--secret, #7c3aed);
  font-size: 0.85rem;
  text-shadow: 0 0 16px rgba(124,58,237,0.95);
  animation: mark-pulse 2.4s ease-in-out infinite;
}
@keyframes mark-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.25); }
}

/* ==========================================================================
   THE LEDGER PANEL — appears only after the first mark
   ========================================================================== */
.marks-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 110;
  font-family: 'Cormorant Garamond', Georgia, serif;
  opacity: 0; transform: translateY(14px);
  transition: opacity 900ms cubic-bezier(0.16,1,0.3,1),
              transform 900ms cubic-bezier(0.16,1,0.3,1);
}
.marks-panel.is-live { opacity: 1; transform: none; }

.marks-toggle {
  display: flex; align-items: center; gap: 0.6rem;
  margin-left: auto;
  padding: 0.6rem 1.05rem;
  border: 1px solid rgba(124,58,237,0.5);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(36,21,49,0.96), rgba(18,10,25,0.96));
  color: var(--text, #ede6da);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 24px rgba(124,58,237,0.22);
  transition: box-shadow 500ms ease, border-color 500ms ease, transform 500ms cubic-bezier(0.16,1,0.3,1);
}
.marks-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(124,58,237,0.9);
  box-shadow: 0 14px 36px rgba(0,0,0,0.55), 0 0 34px rgba(124,58,237,0.4);
}
.marks-sigil {
  color: var(--secret, #7c3aed); font-size: 0.8rem;
  text-shadow: 0 0 14px rgba(124,58,237,0.9);
  animation: mark-pulse 3.2s ease-in-out infinite;
}
.marks-count {
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-size: 0.74rem; letter-spacing: 0.16em; color: var(--gold, #d4af37);
}

.marks-body {
  width: min(88vw, 310px);
  margin-top: 0.7rem;
  padding: 1.3rem 1.35rem;
  border: 1px solid rgba(124,58,237,0.42);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(36,21,49,0.99), rgba(18,10,25,0.99));
  box-shadow: 0 26px 70px rgba(0,0,0,0.65), 0 0 46px rgba(124,58,237,0.2);
  opacity: 0; visibility: hidden;
  transform: translateY(10px) scale(0.97); transform-origin: bottom right;
  transition: opacity 520ms cubic-bezier(0.16,1,0.3,1),
              transform 520ms cubic-bezier(0.16,1,0.3,1),
              visibility 520ms;
}
.marks-panel.is-open .marks-body { opacity: 1; visibility: visible; transform: none; }

.marks-title {
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold, #d4af37); margin-bottom: 0.7rem;
}
.marks-note {
  font-size: 0.97rem; line-height: 1.55;
  color: rgba(237,230,218,0.72); margin-bottom: 1rem;
}

.marks-dots { display: flex; gap: 0.5rem; margin-bottom: 0.4rem; }
.marks-dot {
  width: 100%; height: 3px; border-radius: 2px;
  background: rgba(237,230,218,0.13);
  transition: background 800ms ease, box-shadow 800ms ease;
}
.marks-dot.is-lit {
  background: linear-gradient(90deg, var(--secret, #7c3aed), var(--gold, #d4af37));
  box-shadow: 0 0 14px rgba(124,58,237,0.75);
}

.marks-reward:not(:empty) {
  margin-top: 1.3rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(124,58,237,0.3);
}
.marks-word {
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-size: 1.5rem; letter-spacing: 0.22em;
  color: var(--gold, #d4af37);
  text-shadow: 0 0 30px rgba(212,175,55,0.55);
  margin: 0.5rem 0 1rem;
  animation: word-arrive 1400ms cubic-bezier(0.16,1,0.3,1);
}
@keyframes word-arrive {
  from { opacity: 0; letter-spacing: 0.9em; filter: blur(9px); }
  to   { opacity: 1; letter-spacing: 0.22em; filter: none; }
}
.marks-cta { display: inline-block; margin-top: 0.3rem; font-size: 0.8rem; }

.marks-panel.is-complete .marks-toggle {
  border-color: var(--gold, #d4af37);
  box-shadow: 0 14px 40px rgba(0,0,0,0.55), 0 0 40px rgba(212,175,55,0.45);
}

@media (max-width: 620px) {
  .marks-panel { right: 12px; bottom: 12px; }
  .marks-toggle { padding: 0.5rem 0.85rem; }
}

/* ==========================================================================
   THE LEDGER PAGE
   ========================================================================== */
.ledger-list {
  max-width: 640px; margin: 2.6rem auto 0;
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(36,21,49,0.7), rgba(18,10,25,0.7));
  padding: 1.6rem 1.8rem;
  text-align: left;
}
.ledger-list ol { list-style: none; counter-reset: sig; }
.ledger-list li {
  counter-increment: sig;
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(237,230,218,0.07);
  color: var(--text, #ede6da);
}
.ledger-list li:last-child { border-bottom: 0; }
.ledger-list li::before {
  content: counter(sig, upper-roman);
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--secret, #7c3aed); min-width: 2.6rem;
}
.ledger-empty { color: rgba(237,230,218,0.5); font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  .mark-toast, .marks-panel, .marks-body, .marks-word, .marks-sigil, .mark-toast-sigil {
    animation: none !important; transition-duration: 0.001ms !important;
  }
}
