/* V0.41.1 interaction corrections layered over the frozen V0.40.4 visuals. */

/* Empty CLAIM TO WALLET keeps the approved glow-only rhythm, just much faster. */
.aka-wallet-drawer-inner.is-vault.is-empty-feedback .aka-wallet-vault-stat strong {
  animation:akaVaultEmptyValueReject 360ms cubic-bezier(.20,.88,.24,1) both;
}

/* The archive artwork keeps every hover treatment, but only its CTA enters. */
#gallery .poster-card[data-archive] {
  cursor:default;
}

#gallery .poster-card[data-archive] [data-archive-access] {
  cursor:pointer;
}

/* Attention belongs to motion and light, not another label on the archive art. */
#gallery .poster-card[data-archive].is-archive-entry-unlocked.has-available-secret:not(.has-attention-signal),
#gallery .poster-card[data-archive].is-archive-entry-unlocked.has-available-secret:not(.has-attention-signal):hover,
#gallery .poster-card[data-archive].is-archive-entry-unlocked.has-available-secret:not(.has-attention-signal).active-touch {
  animation:none !important;
  filter:none !important;
}

#gallery .poster-card[data-archive].is-archive-entry-unlocked.has-attention-signal {
  animation:akaArchiveAttentionSidePulse 2.8s ease-in-out infinite !important;
  will-change:box-shadow;
}

@keyframes akaArchiveAttentionSidePulse {
  0%,100% {
    box-shadow:
      -5px 0 13px rgba(52,211,104,.13),
      5px 0 13px rgba(52,211,104,.13),
      0 0 0 1px rgba(80,230,128,.14);
  }
  50% {
    box-shadow:
      -11px 0 23px rgba(52,211,104,.34),
      11px 0 23px rgba(52,211,104,.34),
      0 0 0 1px rgba(105,244,151,.38),
      inset 0 0 13px rgba(49,201,101,.055);
  }
}

/* The poster's existing NEW TRACE copy stays intact. This separate aura clears
   only after the exact changed Reel/node is genuinely acknowledged. */
#modalContent .aka-archive-file-card.has-unseen-trace-attention,
#modalContent .aka-archive-file-card.has-key-ready-lock {
  animation:akaArchivePosterAttentionAura 2.8s ease-in-out infinite !important;
  will-change:box-shadow;
}

@keyframes akaArchivePosterAttentionAura {
  0%,100% {
    border-color:rgba(212,168,67,.44);
    box-shadow:
      -4px 0 11px rgba(212,168,67,.12),
      4px 0 11px rgba(212,168,67,.12),
      0 0 0 1px rgba(212,168,67,.10);
  }
  50% {
    border-color:rgba(255,218,109,.78);
    box-shadow:
      -9px 0 22px rgba(212,168,67,.31),
      9px 0 22px rgba(212,168,67,.31),
      0 0 0 1px rgba(255,226,139,.26),
      inset 0 0 14px rgba(212,168,67,.045);
  }
}

/* Only small, currently usable in-archive locks inherit the Blue Trailer's
   calm rhythm. Large red archive-gate locks are intentionally not selected. */
#modalContent .aka-archive-task-icon.is-key-ready .aka-archive-task-lock,
#modalContent .aka-archive-question-tab.is-key-ready .aka-archive-question-tab-lock,
#modalContent .aka-archive-question-source-lock-panel.is-key-lock.is-key-ready .aka-archive-question-source-lock-icon,
#modalContent .aka-main-silver-seal.is-key-ready .aka-main-silver-seal-lock,
#modalContent .aka-archive-main-seal-btn.is-key-ready > i {
  transform-origin:center;
  animation:akaUsablePhysicalLockPulse 2.8s ease-in-out infinite !important;
}

#modalContent .aka-archive-task-icon.is-key-ready {
  border-color:rgba(235,219,177,.36) !important;
  box-shadow:0 0 0 1px rgba(212,168,67,.08),0 0 9px rgba(212,168,67,.10) !important;
}

@keyframes akaUsablePhysicalLockPulse {
  0%,100% { opacity:.84;transform:scale(.95); }
  50% { opacity:1;transform:scale(1.11); }
}

/* SECRET REEL notices use a clean circular reel with no loose film-strip tail. */
.aka-game-notice-symbol .aka-game-notice-film-reel::after {
  content:none !important;
  display:none !important;
}

@media (prefers-reduced-motion:reduce) {
  .aka-wallet-drawer-inner.is-vault.is-empty-feedback .aka-wallet-vault-stat strong {
    animation:none !important;
  }

  #gallery .poster-card[data-archive].is-archive-entry-unlocked.has-attention-signal,
  #modalContent .aka-archive-file-card.has-unseen-trace-attention,
  #modalContent .aka-archive-file-card.has-key-ready-lock,
  #modalContent .aka-archive-task-icon.is-key-ready .aka-archive-task-lock,
  #modalContent .aka-archive-question-tab.is-key-ready .aka-archive-question-tab-lock,
  #modalContent .aka-archive-question-source-lock-panel.is-key-lock.is-key-ready .aka-archive-question-source-lock-icon,
  #modalContent .aka-main-silver-seal.is-key-ready .aka-main-silver-seal-lock,
  #modalContent .aka-archive-main-seal-btn.is-key-ready > i {
    animation:none !important;
  }

  #gallery .poster-card[data-archive].is-archive-entry-unlocked.has-attention-signal {
    box-shadow:-8px 0 18px rgba(52,211,104,.24),8px 0 18px rgba(52,211,104,.24) !important;
  }

  #modalContent .aka-archive-file-card.has-unseen-trace-attention,
  #modalContent .aka-archive-file-card.has-key-ready-lock {
    border-color:rgba(255,218,109,.67) !important;
    box-shadow:-7px 0 17px rgba(212,168,67,.23),7px 0 17px rgba(212,168,67,.23) !important;
  }
}
