/* ===================================================================
   lore.css, the Golden Pickle King chase, PRESERVED from the original
   lore site. Selectors are scoped under .lore-scene so the exact visuals
   and animations survive inside the SPA without colliding with app styles.
   =================================================================== */
.lore-scene {
  position: relative; width: 100%; height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #fff 0%, var(--parchment) 78%);
  color: var(--ink); font-family: 'EB Garamond', serif; user-select: none; touch-action: none;
}
.lore-scene.fullscreen { position: fixed; inset: 0; z-index: 500; }

.lore-scene #frame { position: absolute; inset: 18px; border: 2px solid rgba(184,134,11,.35); border-radius: 6px; pointer-events: none; z-index: 3; }
.lore-scene #frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(184,134,11,.25); border-radius: 4px; }
.lore-scene #stage { position: absolute; inset: 0; overflow: hidden; }
.lore-scene #pickle { position: absolute; left: 0; top: 0; height: 280px; width: auto; opacity: 0; will-change: transform;
  filter: drop-shadow(0 30px 25px rgba(58,50,38,.18)) drop-shadow(0 6px 8px rgba(58,50,38,.15)); z-index: 2; cursor: pointer; pointer-events: auto; }
.lore-scene #ui { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px; z-index: 1; pointer-events: none; }
.lore-scene #text-anchor { max-width: 640px; width: 100%; position: relative; }
.lore-scene .lore { font-family: 'Cinzel','EB Garamond',serif; font-size: 1.55rem; line-height: 1.7; letter-spacing: .3px; color: var(--ink); opacity: 0; position: absolute; left: 0; right: 0; white-space: pre-line; }
.lore-scene #reveal { font-family: 'Cinzel Decorative',serif; color: var(--gold); font-size: 2.6rem; font-weight: 700; opacity: 0; position: absolute; left: 0; right: 0; }
.lore-scene #hunt { opacity: 0; position: absolute; left: 0; right: 0; }
.lore-scene #hunt .eyebrow { font-family: 'Cinzel',serif; text-transform: uppercase; letter-spacing: .3em; font-size: .85rem; color: var(--moss); }
.lore-scene #hunt h2 { font-family: 'Cinzel Decorative',serif; font-size: 3rem; margin: 1rem 0 0; color: var(--ink); }
.lore-scene #hunt p { font-family: 'EB Garamond',serif; color: rgba(58,50,38,.7); font-size: 1.1rem; margin-top: .75rem; }
.lore-scene #final { opacity: 0; display: none; flex-direction: column; align-items: center; gap: 12px; pointer-events: auto; }
.lore-scene #final .headline { font-family: 'Cinzel',serif; color: var(--gold); font-size: 1.35rem; }
.lore-scene #final .sub { font-family: 'EB Garamond',serif; color: rgba(58,50,38,.7); font-size: 1rem; margin-bottom: 1rem; }
.lore-scene .lore-btn { pointer-events: auto; background: transparent; color: var(--moss); border: 2px solid var(--moss);
  padding: 14px 26px; font-size: 1.05rem; font-family: 'Cinzel',serif; letter-spacing: .5px; cursor: pointer; border-radius: 50px;
  transition: transform .2s cubic-bezier(.175,.885,.32,1.275), background .2s, color .2s, box-shadow .2s; width: 100%; max-width: 420px; }
.lore-scene .lore-btn:hover { background: var(--moss); color: #fff; box-shadow: 0 12px 28px -10px rgba(74,110,58,.5); transform: translateY(-2px); }
.lore-scene .bubble { position: absolute; pointer-events: none; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--ink);
  font-family: 'Cinzel',serif; font-size: .9rem; border: 1px solid rgba(184,134,11,.3); box-shadow: 0 10px 30px -10px rgba(58,50,38,.35);
  transform: translate(-50%,-50%); z-index: 5; }

/* ---- Follow gate states on the final CTA buttons ---- */
.lore-scene .lore-btn.followed { background: var(--moss); color: #fff; cursor: default; opacity: .9; }
.lore-scene .lore-btn.verifying { opacity: .7; cursor: progress; }
.lore-scene .lore-btn.locked { opacity: .5; }
.lore-scene .lore-btn.lit {
  background: linear-gradient(135deg, #6fae4e, var(--moss)); color: #fff; border-color: transparent;
  box-shadow: 0 0 0 3px rgba(91,122,69,.22), 0 14px 30px -10px rgba(74,110,58,.6);
  animation: gateGlow 1.7s ease-in-out infinite;
}
@keyframes gateGlow {
  0%,100% { box-shadow: 0 0 0 3px rgba(91,122,69,.22), 0 14px 30px -10px rgba(74,110,58,.6); }
  50%     { box-shadow: 0 0 0 7px rgba(91,122,69,.10), 0 18px 36px -10px rgba(74,110,58,.75); }
}
.lore-scene .gate-hint { margin-top: 6px; font-family: 'Cinzel',serif; font-size: .82rem; color: var(--moss); opacity: .85; text-align: center; }

/* Small "replay lore" framing when viewed from the Lore tab */
.lore-scene .replay-hint { position: absolute; top: 26px; left: 0; right: 0; text-align: center; font-family: var(--font-head);
  color: var(--moss); letter-spacing: .2em; text-transform: uppercase; font-size: .7rem; opacity: .8; z-index: 4; }
